// 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_;
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @return The enum numeric value on the wire for eventType.
|
*/
|
@Override public int getEventTypeValue() {
|
return eventType_;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @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_;
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
* @return Whether the navigationInfo field is set.
|
*/
|
@Override
|
public boolean hasNavigationInfo() {
|
return navigationInfo_ != null;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
* @return The navigationInfo.
|
*/
|
@Override
|
public NavigationInfo getNavigationInfo() {
|
return navigationInfo_ == null ? NavigationInfo.getDefaultInstance() : navigationInfo_;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
@Override
|
public NavigationInfoOrBuilder getNavigationInfoOrBuilder() {
|
return getNavigationInfo();
|
}
|
|
public static final int POINT_FIELD_NUMBER = 3;
|
private Waypoint point_;
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
* @return Whether the point field is set.
|
*/
|
@Override
|
public boolean hasPoint() {
|
return point_ != null;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
* @return The point.
|
*/
|
@Override
|
public Waypoint getPoint() {
|
return point_ == null ? Waypoint.getDefaultInstance() : point_;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
@Override
|
public WaypointOrBuilder getPointOrBuilder() {
|
return getPoint();
|
}
|
|
public static final int TIMESTAMP_FIELD_NUMBER = 4;
|
private long timestamp_;
|
/**
|
* <pre>
|
* 时间戳(毫秒)
|
* </pre>
|
*
|
* <code>int64 timestamp = 4;</code>
|
* @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<Builder> implements
|
// @@protoc_insertion_point(builder_implements:acm.proto.intelliservices.rt.NavigationInfoUpdateEvent)
|
NavigationInfoUpdateEventOrBuilder {
|
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);
|
}
|
|
// Construct using com.xiaopeng.api.vo.automaticPilot.protobuf.NavigationInfoUpdateEvent.newBuilder()
|
private Builder() {
|
maybeForceBuilderInitialization();
|
}
|
|
private Builder(
|
BuilderParent parent) {
|
super(parent);
|
maybeForceBuilderInitialization();
|
}
|
private void maybeForceBuilderInitialization() {
|
if (com.google.protobuf.GeneratedMessageV3
|
.alwaysUseFieldBuilders) {
|
}
|
}
|
@Override
|
public Builder clear() {
|
super.clear();
|
eventType_ = 0;
|
|
if (navigationInfoBuilder_ == null) {
|
navigationInfo_ = null;
|
} else {
|
navigationInfo_ = null;
|
navigationInfoBuilder_ = null;
|
}
|
if (pointBuilder_ == null) {
|
point_ = null;
|
} else {
|
point_ = null;
|
pointBuilder_ = null;
|
}
|
timestamp_ = 0L;
|
|
return this;
|
}
|
|
@Override
|
public com.google.protobuf.Descriptors.Descriptor
|
getDescriptorForType() {
|
return RtEventCommon.internal_static_acm_proto_intelliservices_rt_NavigationInfoUpdateEvent_descriptor;
|
}
|
|
@Override
|
public NavigationInfoUpdateEvent getDefaultInstanceForType() {
|
return NavigationInfoUpdateEvent.getDefaultInstance();
|
}
|
|
@Override
|
public NavigationInfoUpdateEvent build() {
|
NavigationInfoUpdateEvent result = buildPartial();
|
if (!result.isInitialized()) {
|
throw newUninitializedMessageException(result);
|
}
|
return result;
|
}
|
|
@Override
|
public NavigationInfoUpdateEvent buildPartial() {
|
NavigationInfoUpdateEvent result = new NavigationInfoUpdateEvent(this);
|
result.eventType_ = eventType_;
|
if (navigationInfoBuilder_ == null) {
|
result.navigationInfo_ = navigationInfo_;
|
} else {
|
result.navigationInfo_ = navigationInfoBuilder_.build();
|
}
|
if (pointBuilder_ == null) {
|
result.point_ = point_;
|
} else {
|
result.point_ = pointBuilder_.build();
|
}
|
result.timestamp_ = timestamp_;
|
onBuilt();
|
return result;
|
}
|
|
@Override
|
public Builder clone() {
|
return super.clone();
|
}
|
@Override
|
public Builder setField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
Object value) {
|
return super.setField(field, value);
|
}
|
@Override
|
public Builder clearField(
|
com.google.protobuf.Descriptors.FieldDescriptor field) {
|
return super.clearField(field);
|
}
|
@Override
|
public Builder clearOneof(
|
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
|
return super.clearOneof(oneof);
|
}
|
@Override
|
public Builder setRepeatedField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
int index, Object value) {
|
return super.setRepeatedField(field, index, value);
|
}
|
@Override
|
public Builder addRepeatedField(
|
com.google.protobuf.Descriptors.FieldDescriptor field,
|
Object value) {
|
return super.addRepeatedField(field, value);
|
}
|
@Override
|
public Builder mergeFrom(com.google.protobuf.Message other) {
|
if (other instanceof NavigationInfoUpdateEvent) {
|
return mergeFrom((NavigationInfoUpdateEvent)other);
|
} else {
|
super.mergeFrom(other);
|
return this;
|
}
|
}
|
|
public Builder mergeFrom(NavigationInfoUpdateEvent other) {
|
if (other == NavigationInfoUpdateEvent.getDefaultInstance()) return this;
|
if (other.eventType_ != 0) {
|
setEventTypeValue(other.getEventTypeValue());
|
}
|
if (other.hasNavigationInfo()) {
|
mergeNavigationInfo(other.getNavigationInfo());
|
}
|
if (other.hasPoint()) {
|
mergePoint(other.getPoint());
|
}
|
if (other.getTimestamp() != 0L) {
|
setTimestamp(other.getTimestamp());
|
}
|
this.mergeUnknownFields(other.unknownFields);
|
onChanged();
|
return this;
|
}
|
|
@Override
|
public final boolean isInitialized() {
|
return true;
|
}
|
|
@Override
|
public Builder mergeFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws java.io.IOException {
|
NavigationInfoUpdateEvent parsedMessage = null;
|
try {
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
parsedMessage = (NavigationInfoUpdateEvent) e.getUnfinishedMessage();
|
throw e.unwrapIOException();
|
} finally {
|
if (parsedMessage != null) {
|
mergeFrom(parsedMessage);
|
}
|
}
|
return this;
|
}
|
|
private int eventType_ = 0;
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @return The enum numeric value on the wire for eventType.
|
*/
|
@Override public int getEventTypeValue() {
|
return eventType_;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @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;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @return The eventType.
|
*/
|
@Override
|
public RtEventType getEventType() {
|
@SuppressWarnings("deprecation")
|
RtEventType result = RtEventType.valueOf(eventType_);
|
return result == null ? RtEventType.UNRECOGNIZED : result;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @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;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.RtEventType event_type = 1;</code>
|
* @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_;
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
* @return Whether the navigationInfo field is set.
|
*/
|
public boolean hasNavigationInfo() {
|
return navigationInfoBuilder_ != null || navigationInfo_ != null;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
* @return The navigationInfo.
|
*/
|
public NavigationInfo getNavigationInfo() {
|
if (navigationInfoBuilder_ == null) {
|
return navigationInfo_ == null ? NavigationInfo.getDefaultInstance() : navigationInfo_;
|
} else {
|
return navigationInfoBuilder_.getMessage();
|
}
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
public Builder setNavigationInfo(NavigationInfo value) {
|
if (navigationInfoBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
navigationInfo_ = value;
|
onChanged();
|
} else {
|
navigationInfoBuilder_.setMessage(value);
|
}
|
|
return this;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
public Builder setNavigationInfo(
|
NavigationInfo.Builder builderForValue) {
|
if (navigationInfoBuilder_ == null) {
|
navigationInfo_ = builderForValue.build();
|
onChanged();
|
} else {
|
navigationInfoBuilder_.setMessage(builderForValue.build());
|
}
|
|
return this;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
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;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
public Builder clearNavigationInfo() {
|
if (navigationInfoBuilder_ == null) {
|
navigationInfo_ = null;
|
onChanged();
|
} else {
|
navigationInfo_ = null;
|
navigationInfoBuilder_ = null;
|
}
|
|
return this;
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
public NavigationInfo.Builder getNavigationInfoBuilder() {
|
|
onChanged();
|
return getNavigationInfoFieldBuilder().getBuilder();
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
public NavigationInfoOrBuilder getNavigationInfoOrBuilder() {
|
if (navigationInfoBuilder_ != null) {
|
return navigationInfoBuilder_.getMessageOrBuilder();
|
} else {
|
return navigationInfo_ == null ?
|
NavigationInfo.getDefaultInstance() : navigationInfo_;
|
}
|
}
|
/**
|
* <code>.acm.proto.intelliservices.rt.NavigationInfo navigation_info = 2;</code>
|
*/
|
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_;
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
* @return Whether the point field is set.
|
*/
|
public boolean hasPoint() {
|
return pointBuilder_ != null || point_ != null;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
* @return The point.
|
*/
|
public Waypoint getPoint() {
|
if (pointBuilder_ == null) {
|
return point_ == null ? Waypoint.getDefaultInstance() : point_;
|
} else {
|
return pointBuilder_.getMessage();
|
}
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
public Builder setPoint(Waypoint value) {
|
if (pointBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
point_ = value;
|
onChanged();
|
} else {
|
pointBuilder_.setMessage(value);
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
public Builder setPoint(
|
Waypoint.Builder builderForValue) {
|
if (pointBuilder_ == null) {
|
point_ = builderForValue.build();
|
onChanged();
|
} else {
|
pointBuilder_.setMessage(builderForValue.build());
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
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;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
public Builder clearPoint() {
|
if (pointBuilder_ == null) {
|
point_ = null;
|
onChanged();
|
} else {
|
point_ = null;
|
pointBuilder_ = null;
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
public Waypoint.Builder getPointBuilder() {
|
|
onChanged();
|
return getPointFieldBuilder().getBuilder();
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
public WaypointOrBuilder getPointOrBuilder() {
|
if (pointBuilder_ != null) {
|
return pointBuilder_.getMessageOrBuilder();
|
} else {
|
return point_ == null ?
|
Waypoint.getDefaultInstance() : point_;
|
}
|
}
|
/**
|
* <pre>
|
*事件发生的点位
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint point = 3;</code>
|
*/
|
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_ ;
|
/**
|
* <pre>
|
* 时间戳(毫秒)
|
* </pre>
|
*
|
* <code>int64 timestamp = 4;</code>
|
* @return The timestamp.
|
*/
|
@Override
|
public long getTimestamp() {
|
return timestamp_;
|
}
|
/**
|
* <pre>
|
* 时间戳(毫秒)
|
* </pre>
|
*
|
* <code>int64 timestamp = 4;</code>
|
* @param value The timestamp to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setTimestamp(long value) {
|
|
timestamp_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 时间戳(毫秒)
|
* </pre>
|
*
|
* <code>int64 timestamp = 4;</code>
|
* @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<NavigationInfoUpdateEvent>
|
PARSER = new com.google.protobuf.AbstractParser<NavigationInfoUpdateEvent>() {
|
@Override
|
public NavigationInfoUpdateEvent parsePartialFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return new NavigationInfoUpdateEvent(input, extensionRegistry);
|
}
|
};
|
|
public static com.google.protobuf.Parser<NavigationInfoUpdateEvent> parser() {
|
return PARSER;
|
}
|
|
@Override
|
public com.google.protobuf.Parser<NavigationInfoUpdateEvent> getParserForType() {
|
return PARSER;
|
}
|
|
@Override
|
public NavigationInfoUpdateEvent getDefaultInstanceForType() {
|
return DEFAULT_INSTANCE;
|
}
|
|
}
|