// Generated by the protocol buffer compiler. DO NOT EDIT! // source: rt_xpu_cdu_interaction.proto package com.xiaopeng.api.vo.automaticPilot.protobuf; /** *
* 用户下车状态信息消息 ** * Protobuf type {@code acm.proto.intelliservices.rt.DropoffInfo} */ public final class DropoffInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.DropoffInfo) DropoffInfoOrBuilder { private static final long serialVersionUID = 0L; // Use DropoffInfo.newBuilder() to construct. private DropoffInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private DropoffInfo() { orderId_ = ""; taskId_ = ""; dropoffStatus_ = 0; } @Override @SuppressWarnings({"unused"}) protected Object newInstance( UnusedPrivateParameter unused) { return new DropoffInfo(); } @Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DropoffInfo( 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 10: { String s = input.readStringRequireUtf8(); orderId_ = s; break; } case 18: { String s = input.readStringRequireUtf8(); taskId_ = s; break; } case 24: { int rawValue = input.readEnum(); dropoffStatus_ = rawValue; break; } case 32: { timestamp_ = input.readInt64(); break; } case 42: { GeoPoint.Builder subBuilder = null; if (point_ != null) { subBuilder = point_.toBuilder(); } point_ = input.readMessage(GeoPoint.parser(), extensionRegistry); if (subBuilder != null) { subBuilder.mergeFrom(point_); point_ = subBuilder.buildPartial(); } 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 RtXpuCduInteraction.internal_static_acm_proto_intelliservices_rt_DropoffInfo_descriptor; } @Override protected FieldAccessorTable internalGetFieldAccessorTable() { return RtXpuCduInteraction.internal_static_acm_proto_intelliservices_rt_DropoffInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( DropoffInfo.class, Builder.class); } public static final int ORDER_ID_FIELD_NUMBER = 1; private volatile Object orderId_; /** *
* 订单ID ** *
string order_id = 1;
* @return The orderId.
*/
@Override
public String getOrderId() {
Object ref = orderId_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
orderId_ = s;
return s;
}
}
/**
* * 订单ID ** *
string order_id = 1;
* @return The bytes for orderId.
*/
@Override
public com.google.protobuf.ByteString
getOrderIdBytes() {
Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TASK_ID_FIELD_NUMBER = 2;
private volatile Object taskId_;
/**
* * 任务ID ** *
string task_id = 2;
* @return The taskId.
*/
@Override
public String getTaskId() {
Object ref = taskId_;
if (ref instanceof String) {
return (String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
taskId_ = s;
return s;
}
}
/**
* * 任务ID ** *
string task_id = 2;
* @return The bytes for taskId.
*/
@Override
public com.google.protobuf.ByteString
getTaskIdBytes() {
Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DROPOFF_STATUS_FIELD_NUMBER = 3;
private int dropoffStatus_;
/**
* * 下车状态 ** *
.acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @return The enum numeric value on the wire for dropoffStatus.
*/
@Override public int getDropoffStatusValue() {
return dropoffStatus_;
}
/**
* * 下车状态 ** *
.acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @return The dropoffStatus.
*/
@Override public DropoffStatus getDropoffStatus() {
@SuppressWarnings("deprecation")
DropoffStatus result = DropoffStatus.valueOf(dropoffStatus_);
return result == null ? DropoffStatus.UNRECOGNIZED : result;
}
public static final int TIMESTAMP_FIELD_NUMBER = 4;
private long timestamp_;
/**
* * 时间戳 ** *
int64 timestamp = 4;
* @return The timestamp.
*/
@Override
public long getTimestamp() {
return timestamp_;
}
public static final int POINT_FIELD_NUMBER = 5;
private GeoPoint point_;
/**
* * 下车位置 ** *
.acm.proto.intelliservices.rt.GeoPoint point = 5;
* @return Whether the point field is set.
*/
@Override
public boolean hasPoint() {
return point_ != null;
}
/**
* * 下车位置 ** *
.acm.proto.intelliservices.rt.GeoPoint point = 5;
* @return The point.
*/
@Override
public GeoPoint getPoint() {
return point_ == null ? GeoPoint.getDefaultInstance() : point_;
}
/**
* * 下车位置 ** *
.acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
@Override
public GeoPointOrBuilder getPointOrBuilder() {
return getPoint();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, orderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, taskId_);
}
if (dropoffStatus_ != DropoffStatus.DROPOFF_STATUS_UNSPECIFIED.getNumber()) {
output.writeEnum(3, dropoffStatus_);
}
if (timestamp_ != 0L) {
output.writeInt64(4, timestamp_);
}
if (point_ != null) {
output.writeMessage(5, getPoint());
}
unknownFields.writeTo(output);
}
@Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, orderId_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, taskId_);
}
if (dropoffStatus_ != DropoffStatus.DROPOFF_STATUS_UNSPECIFIED.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(3, dropoffStatus_);
}
if (timestamp_ != 0L) {
size += com.google.protobuf.CodedOutputStream
.computeInt64Size(4, timestamp_);
}
if (point_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getPoint());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@Override
public boolean equals(final Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof DropoffInfo)) {
return super.equals(obj);
}
DropoffInfo other = (DropoffInfo) obj;
if (!getOrderId()
.equals(other.getOrderId())) return false;
if (!getTaskId()
.equals(other.getTaskId())) return false;
if (dropoffStatus_ != other.dropoffStatus_) return false;
if (getTimestamp()
!= other.getTimestamp()) return false;
if (hasPoint() != other.hasPoint()) return false;
if (hasPoint()) {
if (!getPoint()
.equals(other.getPoint())) 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) + ORDER_ID_FIELD_NUMBER;
hash = (53 * hash) + getOrderId().hashCode();
hash = (37 * hash) + TASK_ID_FIELD_NUMBER;
hash = (53 * hash) + getTaskId().hashCode();
hash = (37 * hash) + DROPOFF_STATUS_FIELD_NUMBER;
hash = (53 * hash) + dropoffStatus_;
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getTimestamp());
if (hasPoint()) {
hash = (37 * hash) + POINT_FIELD_NUMBER;
hash = (53 * hash) + getPoint().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static DropoffInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DropoffInfo parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DropoffInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DropoffInfo parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DropoffInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static DropoffInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static DropoffInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static DropoffInfo 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 DropoffInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static DropoffInfo 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 DropoffInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static DropoffInfo 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(DropoffInfo 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.DropoffInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
* 订单ID
*
*
* string order_id = 1;
* @return The orderId.
*/
public String getOrderId() {
Object ref = orderId_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
orderId_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 订单ID
*
*
* string order_id = 1;
* @return The bytes for orderId.
*/
public com.google.protobuf.ByteString
getOrderIdBytes() {
Object ref = orderId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
orderId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 订单ID
*
*
* string order_id = 1;
* @param value The orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderId(
String value) {
if (value == null) {
throw new NullPointerException();
}
orderId_ = value;
onChanged();
return this;
}
/**
*
* 订单ID
*
*
* string order_id = 1;
* @return This builder for chaining.
*/
public Builder clearOrderId() {
orderId_ = getDefaultInstance().getOrderId();
onChanged();
return this;
}
/**
*
* 订单ID
*
*
* string order_id = 1;
* @param value The bytes for orderId to set.
* @return This builder for chaining.
*/
public Builder setOrderIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
orderId_ = value;
onChanged();
return this;
}
private Object taskId_ = "";
/**
*
* 任务ID
*
*
* string task_id = 2;
* @return The taskId.
*/
public String getTaskId() {
Object ref = taskId_;
if (!(ref instanceof String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
String s = bs.toStringUtf8();
taskId_ = s;
return s;
} else {
return (String) ref;
}
}
/**
*
* 任务ID
*
*
* string task_id = 2;
* @return The bytes for taskId.
*/
public com.google.protobuf.ByteString
getTaskIdBytes() {
Object ref = taskId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(String) ref);
taskId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 任务ID
*
*
* string task_id = 2;
* @param value The taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskId(
String value) {
if (value == null) {
throw new NullPointerException();
}
taskId_ = value;
onChanged();
return this;
}
/**
*
* 任务ID
*
*
* string task_id = 2;
* @return This builder for chaining.
*/
public Builder clearTaskId() {
taskId_ = getDefaultInstance().getTaskId();
onChanged();
return this;
}
/**
*
* 任务ID
*
*
* string task_id = 2;
* @param value The bytes for taskId to set.
* @return This builder for chaining.
*/
public Builder setTaskIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
taskId_ = value;
onChanged();
return this;
}
private int dropoffStatus_ = 0;
/**
*
* 下车状态
*
*
* .acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @return The enum numeric value on the wire for dropoffStatus.
*/
@Override public int getDropoffStatusValue() {
return dropoffStatus_;
}
/**
*
* 下车状态
*
*
* .acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @param value The enum numeric value on the wire for dropoffStatus to set.
* @return This builder for chaining.
*/
public Builder setDropoffStatusValue(int value) {
dropoffStatus_ = value;
onChanged();
return this;
}
/**
*
* 下车状态
*
*
* .acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @return The dropoffStatus.
*/
@Override
public DropoffStatus getDropoffStatus() {
@SuppressWarnings("deprecation")
DropoffStatus result = DropoffStatus.valueOf(dropoffStatus_);
return result == null ? DropoffStatus.UNRECOGNIZED : result;
}
/**
*
* 下车状态
*
*
* .acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @param value The dropoffStatus to set.
* @return This builder for chaining.
*/
public Builder setDropoffStatus(DropoffStatus value) {
if (value == null) {
throw new NullPointerException();
}
dropoffStatus_ = value.getNumber();
onChanged();
return this;
}
/**
*
* 下车状态
*
*
* .acm.proto.intelliservices.rt.DropoffStatus dropoff_status = 3;
* @return This builder for chaining.
*/
public Builder clearDropoffStatus() {
dropoffStatus_ = 0;
onChanged();
return this;
}
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;
}
private GeoPoint point_;
private com.google.protobuf.SingleFieldBuilderV3<
GeoPoint, GeoPoint.Builder, GeoPointOrBuilder> pointBuilder_;
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
* @return Whether the point field is set.
*/
public boolean hasPoint() {
return pointBuilder_ != null || point_ != null;
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
* @return The point.
*/
public GeoPoint getPoint() {
if (pointBuilder_ == null) {
return point_ == null ? GeoPoint.getDefaultInstance() : point_;
} else {
return pointBuilder_.getMessage();
}
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public Builder setPoint(GeoPoint value) {
if (pointBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
point_ = value;
onChanged();
} else {
pointBuilder_.setMessage(value);
}
return this;
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public Builder setPoint(
GeoPoint.Builder builderForValue) {
if (pointBuilder_ == null) {
point_ = builderForValue.build();
onChanged();
} else {
pointBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public Builder mergePoint(GeoPoint value) {
if (pointBuilder_ == null) {
if (point_ != null) {
point_ =
GeoPoint.newBuilder(point_).mergeFrom(value).buildPartial();
} else {
point_ = value;
}
onChanged();
} else {
pointBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public Builder clearPoint() {
if (pointBuilder_ == null) {
point_ = null;
onChanged();
} else {
point_ = null;
pointBuilder_ = null;
}
return this;
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public GeoPoint.Builder getPointBuilder() {
onChanged();
return getPointFieldBuilder().getBuilder();
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
public GeoPointOrBuilder getPointOrBuilder() {
if (pointBuilder_ != null) {
return pointBuilder_.getMessageOrBuilder();
} else {
return point_ == null ?
GeoPoint.getDefaultInstance() : point_;
}
}
/**
*
* 下车位置
*
*
* .acm.proto.intelliservices.rt.GeoPoint point = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
GeoPoint, GeoPoint.Builder, GeoPointOrBuilder>
getPointFieldBuilder() {
if (pointBuilder_ == null) {
pointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
GeoPoint, GeoPoint.Builder, GeoPointOrBuilder>(
getPoint(),
getParentForChildren(),
isClean());
point_ = null;
}
return pointBuilder_;
}
@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.DropoffInfo)
}
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.DropoffInfo)
private static final DropoffInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new DropoffInfo();
}
public static DropoffInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser