// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rt_cloud_event.proto
package com.xiaopeng.api.vo.automaticPilot.protobuf;
/**
* Protobuf type {@code acm.proto.intelliservices.rt.SystemStateSnapshotEvent}
*/
public final class SystemStateSnapshotEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.SystemStateSnapshotEvent)
SystemStateSnapshotEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use SystemStateSnapshotEvent.newBuilder() to construct.
private SystemStateSnapshotEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SystemStateSnapshotEvent() {
eventType_ = 0;
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new SystemStateSnapshotEvent();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SystemStateSnapshotEvent(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new NullPointerException();
}
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 8: {
int rawValue = input.readEnum();
eventType_ = rawValue;
break;
}
case 18: {
SystemStateSnapshot.Builder subBuilder = null;
if (systemStateSnapshot_ != null) {
subBuilder = systemStateSnapshot_.toBuilder();
}
systemStateSnapshot_ = input.readMessage(SystemStateSnapshot.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(systemStateSnapshot_);
systemStateSnapshot_ = subBuilder.buildPartial();
}
break;
}
case 24: {
timestamp_ = input.readInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return RtCloudEvent.internal_static_acm_proto_intelliservices_rt_SystemStateSnapshotEvent_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return RtCloudEvent.internal_static_acm_proto_intelliservices_rt_SystemStateSnapshotEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SystemStateSnapshotEvent.class, Builder.class);
}
public static final int EVENT_TYPE_FIELD_NUMBER = 1;
private int eventType_;
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The enum numeric value on the wire for eventType.
*/
@Override public int getEventTypeValue() {
return eventType_;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The eventType.
*/
@Override public RtEventType getEventType() {
@SuppressWarnings("deprecation")
RtEventType result = RtEventType.valueOf(eventType_);
return result == null ? RtEventType.UNRECOGNIZED : result;
}
public static final int SYSTEM_STATE_SNAPSHOT_FIELD_NUMBER = 2;
private SystemStateSnapshot systemStateSnapshot_;
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
* @return Whether the systemStateSnapshot field is set.
*/
@Override
public boolean hasSystemStateSnapshot() {
return systemStateSnapshot_ != null;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
* @return The systemStateSnapshot.
*/
@Override
public SystemStateSnapshot getSystemStateSnapshot() {
return systemStateSnapshot_ == null ? SystemStateSnapshot.getDefaultInstance() : systemStateSnapshot_;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
@Override
public SystemStateSnapshotOrBuilder getSystemStateSnapshotOrBuilder() {
return getSystemStateSnapshot();
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private long timestamp_;
/**
*
* 时间戳(毫秒) ** *
int64 timestamp = 3;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
private byte memoizedIsInitialized = -1;
@Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (eventType_ != RtEventType.kEventUnspecified.getNumber()) {
output.writeEnum(1, eventType_);
}
if (systemStateSnapshot_ != null) {
output.writeMessage(2, getSystemStateSnapshot());
}
if (timestamp_ != 0L) {
output.writeInt64(3, timestamp_);
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (eventType_ != RtEventType.kEventUnspecified.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, eventType_);
}
if (systemStateSnapshot_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSystemStateSnapshot());
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(3, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof SystemStateSnapshotEvent)) {
return super.equals(obj);
}
SystemStateSnapshotEvent other = (SystemStateSnapshotEvent) obj;
if (eventType_ != other.eventType_) return false;
if (hasSystemStateSnapshot() != other.hasSystemStateSnapshot()) return false;
if (hasSystemStateSnapshot()) {
if (!getSystemStateSnapshot()
.equals(other.getSystemStateSnapshot())) return false;
}
if (getTimestamp()
!= other.getTimestamp()) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
hash = (37 * hash) + EVENT_TYPE_FIELD_NUMBER;
hash = (53 * hash) + eventType_;
if (hasSystemStateSnapshot()) {
hash = (37 * hash) + SYSTEM_STATE_SNAPSHOT_FIELD_NUMBER;
hash = (53 * hash) + getSystemStateSnapshot().hashCode();
}
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static SystemStateSnapshotEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStateSnapshotEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStateSnapshotEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStateSnapshotEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStateSnapshotEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStateSnapshotEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStateSnapshotEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static SystemStateSnapshotEvent parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static SystemStateSnapshotEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static SystemStateSnapshotEvent parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static SystemStateSnapshotEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static SystemStateSnapshotEvent parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(SystemStateSnapshotEvent prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@Override
protected Builder newBuilderForType(
BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code acm.proto.intelliservices.rt.SystemStateSnapshotEvent}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder.acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The enum numeric value on the wire for eventType.
*/
@Override public int getEventTypeValue() {
return eventType_;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @param value The enum numeric value on the wire for eventType to set.
* @return This builder for chaining.
*/
public Builder setEventTypeValue(int value) {
eventType_ = value;
onChanged();
return this;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return The eventType.
*/
@Override
public RtEventType getEventType() {
@SuppressWarnings("deprecation")
RtEventType result = RtEventType.valueOf(eventType_);
return result == null ? RtEventType.UNRECOGNIZED : result;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @param value The eventType to set.
* @return This builder for chaining.
*/
public Builder setEventType(RtEventType value) {
if (value == null) {
throw new NullPointerException();
}
eventType_ = value.getNumber();
onChanged();
return this;
}
/**
* .acm.proto.intelliservices.rt.RtEventType event_type = 1;
* @return This builder for chaining.
*/
public Builder clearEventType() {
eventType_ = 0;
onChanged();
return this;
}
private SystemStateSnapshot systemStateSnapshot_;
private com.google.protobuf.SingleFieldBuilderV3<
SystemStateSnapshot, SystemStateSnapshot.Builder, SystemStateSnapshotOrBuilder> systemStateSnapshotBuilder_;
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
* @return Whether the systemStateSnapshot field is set.
*/
public boolean hasSystemStateSnapshot() {
return systemStateSnapshotBuilder_ != null || systemStateSnapshot_ != null;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
* @return The systemStateSnapshot.
*/
public SystemStateSnapshot getSystemStateSnapshot() {
if (systemStateSnapshotBuilder_ == null) {
return systemStateSnapshot_ == null ? SystemStateSnapshot.getDefaultInstance() : systemStateSnapshot_;
} else {
return systemStateSnapshotBuilder_.getMessage();
}
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public Builder setSystemStateSnapshot(SystemStateSnapshot value) {
if (systemStateSnapshotBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
systemStateSnapshot_ = value;
onChanged();
} else {
systemStateSnapshotBuilder_.setMessage(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public Builder setSystemStateSnapshot(
SystemStateSnapshot.Builder builderForValue) {
if (systemStateSnapshotBuilder_ == null) {
systemStateSnapshot_ = builderForValue.build();
onChanged();
} else {
systemStateSnapshotBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public Builder mergeSystemStateSnapshot(SystemStateSnapshot value) {
if (systemStateSnapshotBuilder_ == null) {
if (systemStateSnapshot_ != null) {
systemStateSnapshot_ =
SystemStateSnapshot.newBuilder(systemStateSnapshot_).mergeFrom(value).buildPartial();
} else {
systemStateSnapshot_ = value;
}
onChanged();
} else {
systemStateSnapshotBuilder_.mergeFrom(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public Builder clearSystemStateSnapshot() {
if (systemStateSnapshotBuilder_ == null) {
systemStateSnapshot_ = null;
onChanged();
} else {
systemStateSnapshot_ = null;
systemStateSnapshotBuilder_ = null;
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public SystemStateSnapshot.Builder getSystemStateSnapshotBuilder() {
onChanged();
return getSystemStateSnapshotFieldBuilder().getBuilder();
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
public SystemStateSnapshotOrBuilder getSystemStateSnapshotOrBuilder() {
if (systemStateSnapshotBuilder_ != null) {
return systemStateSnapshotBuilder_.getMessageOrBuilder();
} else {
return systemStateSnapshot_ == null ?
SystemStateSnapshot.getDefaultInstance() : systemStateSnapshot_;
}
}
/**
* .acm.proto.intelliservices.rt.SystemStateSnapshot system_state_snapshot = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
SystemStateSnapshot, SystemStateSnapshot.Builder, SystemStateSnapshotOrBuilder>
getSystemStateSnapshotFieldBuilder() {
if (systemStateSnapshotBuilder_ == null) {
systemStateSnapshotBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
SystemStateSnapshot, SystemStateSnapshot.Builder, SystemStateSnapshotOrBuilder>(
getSystemStateSnapshot(),
getParentForChildren(),
isClean());
systemStateSnapshot_ = null;
}
return systemStateSnapshotBuilder_;
}
private long timestamp_ ;
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 3;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 3;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 3;
* @return This builder for chaining.
*/
public Builder clearTimestamp() {
timestamp_ = 0L;
onChanged();
return this;
}
@Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:acm.proto.intelliservices.rt.SystemStateSnapshotEvent)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.SystemStateSnapshotEvent)
private static final SystemStateSnapshotEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new SystemStateSnapshotEvent();
}
public static SystemStateSnapshotEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser