// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: rt_event_common.proto
package com.xiaopeng.api.vo.automaticPilot.protobuf;
/**
* Protobuf type {@code acm.proto.intelliservices.rt.NavigationInfoUpdateEvent}
*/
public final class NavigationInfoUpdateEvent extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.NavigationInfoUpdateEvent)
NavigationInfoUpdateEventOrBuilder {
private static final long serialVersionUID = 0L;
// Use NavigationInfoUpdateEvent.newBuilder() to construct.
private NavigationInfoUpdateEvent(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NavigationInfoUpdateEvent() {
eventType_ = 0;
}
@Override
@SuppressWarnings({"unused"})
protected Object newInstance(
UnusedPrivateParameter unused) {
return new NavigationInfoUpdateEvent();
}
@Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NavigationInfoUpdateEvent(
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: {
NavigationInfo.Builder subBuilder = null;
if (navigationInfo_ != null) {
subBuilder = navigationInfo_.toBuilder();
}
navigationInfo_ = input.readMessage(NavigationInfo.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(navigationInfo_);
navigationInfo_ = 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 RtEventCommon.internal_static_acm_proto_intelliservices_rt_NavigationInfoUpdateEvent_descriptor;
}
@Override
protected FieldAccessorTable
internalGetFieldAccessorTable() {
return RtEventCommon.internal_static_acm_proto_intelliservices_rt_NavigationInfoUpdateEvent_fieldAccessorTable
.ensureFieldAccessorsInitialized(
NavigationInfoUpdateEvent.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 NAVIGATION_INFO_FIELD_NUMBER = 2;
private NavigationInfo navigationInfo_;
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
* @return Whether the navigationInfo field is set.
*/
@Override
public boolean hasNavigationInfo() {
return navigationInfo_ != null;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
* @return The navigationInfo.
*/
@Override
public NavigationInfo getNavigationInfo() {
return navigationInfo_ == null ? NavigationInfo.getDefaultInstance() : navigationInfo_;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
@Override
public NavigationInfoOrBuilder getNavigationInfoOrBuilder() {
return getNavigationInfo();
}
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 (navigationInfo_ != null) {
output.writeMessage(2, getNavigationInfo());
}
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 (navigationInfo_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getNavigationInfo());
}
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 NavigationInfoUpdateEvent)) {
return super.equals(obj);
}
NavigationInfoUpdateEvent other = (NavigationInfoUpdateEvent) obj;
if (eventType_ != other.eventType_) return false;
if (hasNavigationInfo() != other.hasNavigationInfo()) return false;
if (hasNavigationInfo()) {
if (!getNavigationInfo()
.equals(other.getNavigationInfo())) 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 (hasNavigationInfo()) {
hash = (37 * hash) + NAVIGATION_INFO_FIELD_NUMBER;
hash = (53 * hash) + getNavigationInfo().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 NavigationInfoUpdateEvent parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NavigationInfoUpdateEvent parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NavigationInfoUpdateEvent parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NavigationInfoUpdateEvent parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NavigationInfoUpdateEvent parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static NavigationInfoUpdateEvent parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static NavigationInfoUpdateEvent parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NavigationInfoUpdateEvent 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 NavigationInfoUpdateEvent parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static NavigationInfoUpdateEvent 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 NavigationInfoUpdateEvent parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static NavigationInfoUpdateEvent 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(NavigationInfoUpdateEvent 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.NavigationInfoUpdateEvent}
*/
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 NavigationInfo navigationInfo_;
private com.google.protobuf.SingleFieldBuilderV3<
NavigationInfo, NavigationInfo.Builder, NavigationInfoOrBuilder> navigationInfoBuilder_;
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
* @return Whether the navigationInfo field is set.
*/
public boolean hasNavigationInfo() {
return navigationInfoBuilder_ != null || navigationInfo_ != null;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
* @return The navigationInfo.
*/
public NavigationInfo getNavigationInfo() {
if (navigationInfoBuilder_ == null) {
return navigationInfo_ == null ? NavigationInfo.getDefaultInstance() : navigationInfo_;
} else {
return navigationInfoBuilder_.getMessage();
}
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public Builder setNavigationInfo(NavigationInfo value) {
if (navigationInfoBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
navigationInfo_ = value;
onChanged();
} else {
navigationInfoBuilder_.setMessage(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public Builder setNavigationInfo(
NavigationInfo.Builder builderForValue) {
if (navigationInfoBuilder_ == null) {
navigationInfo_ = builderForValue.build();
onChanged();
} else {
navigationInfoBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public Builder mergeNavigationInfo(NavigationInfo value) {
if (navigationInfoBuilder_ == null) {
if (navigationInfo_ != null) {
navigationInfo_ =
NavigationInfo.newBuilder(navigationInfo_).mergeFrom(value).buildPartial();
} else {
navigationInfo_ = value;
}
onChanged();
} else {
navigationInfoBuilder_.mergeFrom(value);
}
return this;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public Builder clearNavigationInfo() {
if (navigationInfoBuilder_ == null) {
navigationInfo_ = null;
onChanged();
} else {
navigationInfo_ = null;
navigationInfoBuilder_ = null;
}
return this;
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public NavigationInfo.Builder getNavigationInfoBuilder() {
onChanged();
return getNavigationInfoFieldBuilder().getBuilder();
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
public NavigationInfoOrBuilder getNavigationInfoOrBuilder() {
if (navigationInfoBuilder_ != null) {
return navigationInfoBuilder_.getMessageOrBuilder();
} else {
return navigationInfo_ == null ?
NavigationInfo.getDefaultInstance() : navigationInfo_;
}
}
/**
* .acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
NavigationInfo, NavigationInfo.Builder, NavigationInfoOrBuilder>
getNavigationInfoFieldBuilder() {
if (navigationInfoBuilder_ == null) {
navigationInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
NavigationInfo, NavigationInfo.Builder, NavigationInfoOrBuilder>(
getNavigationInfo(),
getParentForChildren(),
isClean());
navigationInfo_ = null;
}
return navigationInfoBuilder_;
}
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.NavigationInfoUpdateEvent)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.NavigationInfoUpdateEvent)
private static final NavigationInfoUpdateEvent DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new NavigationInfoUpdateEvent();
}
public static NavigationInfoUpdateEvent getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser