// 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.SystemStatusUpdateEvent}
*/
public final class SystemStatusUpdateEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.SystemStatusUpdateEvent)
SystemStatusUpdateEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use SystemStatusUpdateEvent.newBuilder() to construct.
private SystemStatusUpdateEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private SystemStatusUpdateEvent() {
eventType_ = 0;
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new SystemStatusUpdateEvent();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SystemStatusUpdateEvent(
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: {
SystemStatus.Builder subBuilder = null;
if (systemStatus_ != null) {
subBuilder = systemStatus_.toBuilder();
}
systemStatus_ = input.readMessage(SystemStatus.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(systemStatus_);
systemStatus_ = subBuilder.buildPartial();
}
break;
}
case 26: {
Waypoint.Builder subBuilder = null;
if (point_ != null) {
subBuilder = point_.toBuilder();
}
point_ = input.readMessage(Waypoint.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(point_);
point_ = subBuilder.buildPartial();
}
break;
}
case 32: {
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_SystemStatusUpdateEvent_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return RtCloudEvent.internal_static_acm_proto_intelliservices_rt_SystemStatusUpdateEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
SystemStatusUpdateEvent.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_STATUS_FIELD_NUMBER = 2;
private SystemStatus systemStatus_;
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
* @return Whether the systemStatus field is set.
*/
@Override
public boolean hasSystemStatus() {
return systemStatus_ != null;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
* @return The systemStatus.
*/
@Override
public SystemStatus getSystemStatus() {
return systemStatus_ == null ? SystemStatus.getDefaultInstance() : systemStatus_;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
@Override
public SystemStatusOrBuilder getSystemStatusOrBuilder() {
return getSystemStatus();
}
public static final int POINT_FIELD_NUMBER = 3;
private Waypoint point_;
/**
*
*事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
* @return Whether the point field is set.
*/
@Override
public boolean hasPoint() {
return point_ != null;
}
/**
* *事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
* @return The point.
*/
@Override
public Waypoint getPoint() {
return point_ == null ? Waypoint.getDefaultInstance() : point_;
}
/**
* *事件发生的点位 ** *
.acm.proto.intelliservices.rt.Waypoint point = 3;
*/
@Override
public WaypointOrBuilder getPointOrBuilder() {
return getPoint();
}
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timestamp_;
/**
* * 时间戳(毫秒) ** *
int64 timestamp = 4;
* @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 (systemStatus_ != null) {
output.writeMessage(2, getSystemStatus());
}
if (point_ != null) {
output.writeMessage(3, getPoint());
}
if (timestamp_ != 0L) {
output.writeInt64(4, 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 (systemStatus_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getSystemStatus());
}
if (point_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getPoint());
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timestamp_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof SystemStatusUpdateEvent)) {
return super.equals(obj);
}
SystemStatusUpdateEvent other = (SystemStatusUpdateEvent) obj;
if (eventType_ != other.eventType_) return false;
if (hasSystemStatus() != other.hasSystemStatus()) return false;
if (hasSystemStatus()) {
if (!getSystemStatus()
.equals(other.getSystemStatus())) return false;
}
if (hasPoint() != other.hasPoint()) return false;
if (hasPoint()) {
if (!getPoint()
.equals(other.getPoint())) 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 (hasSystemStatus()) {
hash = (37 * hash) + SYSTEM_STATUS_FIELD_NUMBER;
hash = (53 * hash) + getSystemStatus().hashCode();
}
if (hasPoint()) {
hash = (37 * hash) + POINT_FIELD_NUMBER;
hash = (53 * hash) + getPoint().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 SystemStatusUpdateEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStatusUpdateEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStatusUpdateEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStatusUpdateEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStatusUpdateEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static SystemStatusUpdateEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static SystemStatusUpdateEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static SystemStatusUpdateEvent 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 SystemStatusUpdateEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static SystemStatusUpdateEvent 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 SystemStatusUpdateEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static SystemStatusUpdateEvent 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(SystemStatusUpdateEvent 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.SystemStatusUpdateEvent}
*/
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 SystemStatus systemStatus_;
private com.google.protobuf.SingleFieldBuilderV3<
SystemStatus, SystemStatus.Builder, SystemStatusOrBuilder> systemStatusBuilder_;
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
* @return Whether the systemStatus field is set.
*/
public boolean hasSystemStatus() {
return systemStatusBuilder_ != null || systemStatus_ != null;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
* @return The systemStatus.
*/
public SystemStatus getSystemStatus() {
if (systemStatusBuilder_ == null) {
return systemStatus_ == null ? SystemStatus.getDefaultInstance() : systemStatus_;
} else {
return systemStatusBuilder_.getMessage();
}
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public Builder setSystemStatus(SystemStatus value) {
if (systemStatusBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
systemStatus_ = value;
onChanged();
} else {
systemStatusBuilder_.setMessage(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public Builder setSystemStatus(
SystemStatus.Builder builderForValue) {
if (systemStatusBuilder_ == null) {
systemStatus_ = builderForValue.build();
onChanged();
} else {
systemStatusBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public Builder mergeSystemStatus(SystemStatus value) {
if (systemStatusBuilder_ == null) {
if (systemStatus_ != null) {
systemStatus_ =
SystemStatus.newBuilder(systemStatus_).mergeFrom(value).buildPartial();
} else {
systemStatus_ = value;
}
onChanged();
} else {
systemStatusBuilder_.mergeFrom(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public Builder clearSystemStatus() {
if (systemStatusBuilder_ == null) {
systemStatus_ = null;
onChanged();
} else {
systemStatus_ = null;
systemStatusBuilder_ = null;
}
return this;
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public SystemStatus.Builder getSystemStatusBuilder() {
onChanged();
return getSystemStatusFieldBuilder().getBuilder();
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
public SystemStatusOrBuilder getSystemStatusOrBuilder() {
if (systemStatusBuilder_ != null) {
return systemStatusBuilder_.getMessageOrBuilder();
} else {
return systemStatus_ == null ?
SystemStatus.getDefaultInstance() : systemStatus_;
}
}
/**
* .acm.proto.intelliservices.rt.SystemStatus system_status = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
SystemStatus, SystemStatus.Builder, SystemStatusOrBuilder>
getSystemStatusFieldBuilder() {
if (systemStatusBuilder_ == null) {
systemStatusBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
SystemStatus, SystemStatus.Builder, SystemStatusOrBuilder>(
getSystemStatus(),
getParentForChildren(),
isClean());
systemStatus_ = null;
}
return systemStatusBuilder_;
}
private Waypoint point_;
private com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder> pointBuilder_;
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
* @return Whether the point field is set.
*/
public boolean hasPoint() {
return pointBuilder_ != null || point_ != null;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
* @return The point.
*/
public Waypoint getPoint() {
if (pointBuilder_ == null) {
return point_ == null ? Waypoint.getDefaultInstance() : point_;
} else {
return pointBuilder_.getMessage();
}
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder setPoint(Waypoint value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
point_ = value;
onChanged();
} else {
pointBuilder_.setMessage(value);
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder setPoint(
Waypoint.Builder builderForValue) {
if (pointBuilder_ == null) {
point_ = builderForValue.build();
onChanged();
} else {
pointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder mergePoint(Waypoint value) {
if (pointBuilder_ == null) {
if (point_ != null) {
point_ =
Waypoint.newBuilder(point_).mergeFrom(value).buildPartial();
} else {
point_ = value;
}
onChanged();
} else {
pointBuilder_.mergeFrom(value);
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Builder clearPoint() {
if (pointBuilder_ == null) {
point_ = null;
onChanged();
} else {
point_ = null;
pointBuilder_ = null;
}
return this;
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public Waypoint.Builder getPointBuilder() {
onChanged();
return getPointFieldBuilder().getBuilder();
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
public WaypointOrBuilder getPointOrBuilder() {
if (pointBuilder_ != null) {
return pointBuilder_.getMessageOrBuilder();
} else {
return point_ == null ?
Waypoint.getDefaultInstance() : point_;
}
}
/**
*
*事件发生的点位
*
*
* .acm.proto.intelliservices.rt.Waypoint point = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder>
getPointFieldBuilder() {
if (pointBuilder_ == null) {
pointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
Waypoint, Waypoint.Builder, WaypointOrBuilder>(
getPoint(),
getParentForChildren(),
isClean());
point_ = null;
}
return pointBuilder_;
}
private long timestamp_ ;
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @param value The timestamp to set.
* @return This builder for chaining.
*/
public Builder setTimestamp(long value) {
timestamp_ = value;
onChanged();
return this;
}
/**
*
* 时间戳(毫秒)
*
*
* int64 timestamp = 4;
* @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.SystemStatusUpdateEvent)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.SystemStatusUpdateEvent)
private static final SystemStatusUpdateEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new SystemStatusUpdateEvent();
}
public static SystemStatusUpdateEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser