// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: rt_interaction_common.proto
|
|
package com.xiaopeng.api.vo.automaticPilot.protobuf;
|
|
/**
|
* <pre>
|
* 订单操作信息消息
|
* </pre>
|
*
|
* Protobuf type {@code acm.proto.intelliservices.rt.OrderOperation}
|
*/
|
public final class OrderOperation extends
|
com.google.protobuf.GeneratedMessageV3 implements
|
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.OrderOperation)
|
OrderOperationOrBuilder {
|
private static final long serialVersionUID = 0L;
|
// Use OrderOperation.newBuilder() to construct.
|
private OrderOperation(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
super(builder);
|
}
|
private OrderOperation() {
|
orderId_ = "";
|
taskId_ = "";
|
operationType_ = 0;
|
orderType_ = 0;
|
waypoints_ = java.util.Collections.emptyList();
|
}
|
|
@Override
|
@SuppressWarnings({"unused"})
|
protected Object newInstance(
|
UnusedPrivateParameter unused) {
|
return new OrderOperation();
|
}
|
|
@Override
|
public final com.google.protobuf.UnknownFieldSet
|
getUnknownFields() {
|
return this.unknownFields;
|
}
|
private OrderOperation(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
this();
|
if (extensionRegistry == null) {
|
throw new NullPointerException();
|
}
|
int mutable_bitField0_ = 0;
|
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();
|
|
operationType_ = rawValue;
|
break;
|
}
|
case 32: {
|
int rawValue = input.readEnum();
|
|
orderType_ = rawValue;
|
break;
|
}
|
case 42: {
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
waypoints_ = new java.util.ArrayList<Waypoint>();
|
mutable_bitField0_ |= 0x00000001;
|
}
|
waypoints_.add(
|
input.readMessage(Waypoint.parser(), extensionRegistry));
|
break;
|
}
|
case 50: {
|
Waypoint.Builder subBuilder = null;
|
if (targetPoint_ != null) {
|
subBuilder = targetPoint_.toBuilder();
|
}
|
targetPoint_ = input.readMessage(Waypoint.parser(), extensionRegistry);
|
if (subBuilder != null) {
|
subBuilder.mergeFrom(targetPoint_);
|
targetPoint_ = 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 {
|
if (((mutable_bitField0_ & 0x00000001) != 0)) {
|
waypoints_ = java.util.Collections.unmodifiableList(waypoints_);
|
}
|
this.unknownFields = unknownFields.build();
|
makeExtensionsImmutable();
|
}
|
}
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtInteractionCommon.internal_static_acm_proto_intelliservices_rt_OrderOperation_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtInteractionCommon.internal_static_acm_proto_intelliservices_rt_OrderOperation_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
OrderOperation.class, Builder.class);
|
}
|
|
public static final int ORDER_ID_FIELD_NUMBER = 1;
|
private volatile Object orderId_;
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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_;
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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 OPERATION_TYPE_FIELD_NUMBER = 3;
|
private int operationType_;
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @return The enum numeric value on the wire for operationType.
|
*/
|
@Override public int getOperationTypeValue() {
|
return operationType_;
|
}
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @return The operationType.
|
*/
|
@Override public OrderOperationType getOperationType() {
|
@SuppressWarnings("deprecation")
|
OrderOperationType result = OrderOperationType.valueOf(operationType_);
|
return result == null ? OrderOperationType.UNRECOGNIZED : result;
|
}
|
|
public static final int ORDER_TYPE_FIELD_NUMBER = 4;
|
private int orderType_;
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @return The enum numeric value on the wire for orderType.
|
*/
|
@Override public int getOrderTypeValue() {
|
return orderType_;
|
}
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @return The orderType.
|
*/
|
@Override public OrderType getOrderType() {
|
@SuppressWarnings("deprecation")
|
OrderType result = OrderType.valueOf(orderType_);
|
return result == null ? OrderType.UNRECOGNIZED : result;
|
}
|
|
public static final int WAYPOINTS_FIELD_NUMBER = 5;
|
private java.util.List<Waypoint> waypoints_;
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
@Override
|
public java.util.List<Waypoint> getWaypointsList() {
|
return waypoints_;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
@Override
|
public java.util.List<? extends WaypointOrBuilder>
|
getWaypointsOrBuilderList() {
|
return waypoints_;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
@Override
|
public int getWaypointsCount() {
|
return waypoints_.size();
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
@Override
|
public Waypoint getWaypoints(int index) {
|
return waypoints_.get(index);
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
@Override
|
public WaypointOrBuilder getWaypointsOrBuilder(
|
int index) {
|
return waypoints_.get(index);
|
}
|
|
public static final int TARGET_POINT_FIELD_NUMBER = 6;
|
private Waypoint targetPoint_;
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
* @return Whether the targetPoint field is set.
|
*/
|
@Override
|
public boolean hasTargetPoint() {
|
return targetPoint_ != null;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
* @return The targetPoint.
|
*/
|
@Override
|
public Waypoint getTargetPoint() {
|
return targetPoint_ == null ? Waypoint.getDefaultInstance() : targetPoint_;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
@Override
|
public WaypointOrBuilder getTargetPointOrBuilder() {
|
return getTargetPoint();
|
}
|
|
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 (operationType_ != OrderOperationType.ORDER_OPERATION_UNSPECIFIED.getNumber()) {
|
output.writeEnum(3, operationType_);
|
}
|
if (orderType_ != OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) {
|
output.writeEnum(4, orderType_);
|
}
|
for (int i = 0; i < waypoints_.size(); i++) {
|
output.writeMessage(5, waypoints_.get(i));
|
}
|
if (targetPoint_ != null) {
|
output.writeMessage(6, getTargetPoint());
|
}
|
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 (operationType_ != OrderOperationType.ORDER_OPERATION_UNSPECIFIED.getNumber()) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeEnumSize(3, operationType_);
|
}
|
if (orderType_ != OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeEnumSize(4, orderType_);
|
}
|
for (int i = 0; i < waypoints_.size(); i++) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeMessageSize(5, waypoints_.get(i));
|
}
|
if (targetPoint_ != null) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeMessageSize(6, getTargetPoint());
|
}
|
size += unknownFields.getSerializedSize();
|
memoizedSize = size;
|
return size;
|
}
|
|
@Override
|
public boolean equals(final Object obj) {
|
if (obj == this) {
|
return true;
|
}
|
if (!(obj instanceof OrderOperation)) {
|
return super.equals(obj);
|
}
|
OrderOperation other = (OrderOperation) obj;
|
|
if (!getOrderId()
|
.equals(other.getOrderId())) return false;
|
if (!getTaskId()
|
.equals(other.getTaskId())) return false;
|
if (operationType_ != other.operationType_) return false;
|
if (orderType_ != other.orderType_) return false;
|
if (!getWaypointsList()
|
.equals(other.getWaypointsList())) return false;
|
if (hasTargetPoint() != other.hasTargetPoint()) return false;
|
if (hasTargetPoint()) {
|
if (!getTargetPoint()
|
.equals(other.getTargetPoint())) 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) + OPERATION_TYPE_FIELD_NUMBER;
|
hash = (53 * hash) + operationType_;
|
hash = (37 * hash) + ORDER_TYPE_FIELD_NUMBER;
|
hash = (53 * hash) + orderType_;
|
if (getWaypointsCount() > 0) {
|
hash = (37 * hash) + WAYPOINTS_FIELD_NUMBER;
|
hash = (53 * hash) + getWaypointsList().hashCode();
|
}
|
if (hasTargetPoint()) {
|
hash = (37 * hash) + TARGET_POINT_FIELD_NUMBER;
|
hash = (53 * hash) + getTargetPoint().hashCode();
|
}
|
hash = (29 * hash) + unknownFields.hashCode();
|
memoizedHashCode = hash;
|
return hash;
|
}
|
|
public static OrderOperation parseFrom(
|
java.nio.ByteBuffer data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static OrderOperation parseFrom(
|
java.nio.ByteBuffer data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static OrderOperation parseFrom(
|
com.google.protobuf.ByteString data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static OrderOperation parseFrom(
|
com.google.protobuf.ByteString data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static OrderOperation parseFrom(byte[] data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static OrderOperation parseFrom(
|
byte[] data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static OrderOperation parseFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static OrderOperation 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 OrderOperation parseDelimitedFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseDelimitedWithIOException(PARSER, input);
|
}
|
public static OrderOperation 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 OrderOperation parseFrom(
|
com.google.protobuf.CodedInputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static OrderOperation 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(OrderOperation 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;
|
}
|
/**
|
* <pre>
|
* 订单操作信息消息
|
* </pre>
|
*
|
* Protobuf type {@code acm.proto.intelliservices.rt.OrderOperation}
|
*/
|
public static final class Builder extends
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
// @@protoc_insertion_point(builder_implements:acm.proto.intelliservices.rt.OrderOperation)
|
OrderOperationOrBuilder {
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtInteractionCommon.internal_static_acm_proto_intelliservices_rt_OrderOperation_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtInteractionCommon.internal_static_acm_proto_intelliservices_rt_OrderOperation_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
OrderOperation.class, Builder.class);
|
}
|
|
// Construct using com.xiaopeng.api.vo.automaticPilot.protobuf.OrderOperation.newBuilder()
|
private Builder() {
|
maybeForceBuilderInitialization();
|
}
|
|
private Builder(
|
BuilderParent parent) {
|
super(parent);
|
maybeForceBuilderInitialization();
|
}
|
private void maybeForceBuilderInitialization() {
|
if (com.google.protobuf.GeneratedMessageV3
|
.alwaysUseFieldBuilders) {
|
getWaypointsFieldBuilder();
|
}
|
}
|
@Override
|
public Builder clear() {
|
super.clear();
|
orderId_ = "";
|
|
taskId_ = "";
|
|
operationType_ = 0;
|
|
orderType_ = 0;
|
|
if (waypointsBuilder_ == null) {
|
waypoints_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
} else {
|
waypointsBuilder_.clear();
|
}
|
if (targetPointBuilder_ == null) {
|
targetPoint_ = null;
|
} else {
|
targetPoint_ = null;
|
targetPointBuilder_ = null;
|
}
|
return this;
|
}
|
|
@Override
|
public com.google.protobuf.Descriptors.Descriptor
|
getDescriptorForType() {
|
return RtInteractionCommon.internal_static_acm_proto_intelliservices_rt_OrderOperation_descriptor;
|
}
|
|
@Override
|
public OrderOperation getDefaultInstanceForType() {
|
return OrderOperation.getDefaultInstance();
|
}
|
|
@Override
|
public OrderOperation build() {
|
OrderOperation result = buildPartial();
|
if (!result.isInitialized()) {
|
throw newUninitializedMessageException(result);
|
}
|
return result;
|
}
|
|
@Override
|
public OrderOperation buildPartial() {
|
OrderOperation result = new OrderOperation(this);
|
int from_bitField0_ = bitField0_;
|
result.orderId_ = orderId_;
|
result.taskId_ = taskId_;
|
result.operationType_ = operationType_;
|
result.orderType_ = orderType_;
|
if (waypointsBuilder_ == null) {
|
if (((bitField0_ & 0x00000001) != 0)) {
|
waypoints_ = java.util.Collections.unmodifiableList(waypoints_);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
}
|
result.waypoints_ = waypoints_;
|
} else {
|
result.waypoints_ = waypointsBuilder_.build();
|
}
|
if (targetPointBuilder_ == null) {
|
result.targetPoint_ = targetPoint_;
|
} else {
|
result.targetPoint_ = targetPointBuilder_.build();
|
}
|
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 OrderOperation) {
|
return mergeFrom((OrderOperation)other);
|
} else {
|
super.mergeFrom(other);
|
return this;
|
}
|
}
|
|
public Builder mergeFrom(OrderOperation other) {
|
if (other == OrderOperation.getDefaultInstance()) return this;
|
if (!other.getOrderId().isEmpty()) {
|
orderId_ = other.orderId_;
|
onChanged();
|
}
|
if (!other.getTaskId().isEmpty()) {
|
taskId_ = other.taskId_;
|
onChanged();
|
}
|
if (other.operationType_ != 0) {
|
setOperationTypeValue(other.getOperationTypeValue());
|
}
|
if (other.orderType_ != 0) {
|
setOrderTypeValue(other.getOrderTypeValue());
|
}
|
if (waypointsBuilder_ == null) {
|
if (!other.waypoints_.isEmpty()) {
|
if (waypoints_.isEmpty()) {
|
waypoints_ = other.waypoints_;
|
bitField0_ = (bitField0_ & ~0x00000001);
|
} else {
|
ensureWaypointsIsMutable();
|
waypoints_.addAll(other.waypoints_);
|
}
|
onChanged();
|
}
|
} else {
|
if (!other.waypoints_.isEmpty()) {
|
if (waypointsBuilder_.isEmpty()) {
|
waypointsBuilder_.dispose();
|
waypointsBuilder_ = null;
|
waypoints_ = other.waypoints_;
|
bitField0_ = (bitField0_ & ~0x00000001);
|
waypointsBuilder_ =
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
getWaypointsFieldBuilder() : null;
|
} else {
|
waypointsBuilder_.addAllMessages(other.waypoints_);
|
}
|
}
|
}
|
if (other.hasTargetPoint()) {
|
mergeTargetPoint(other.getTargetPoint());
|
}
|
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 {
|
OrderOperation parsedMessage = null;
|
try {
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
parsedMessage = (OrderOperation) e.getUnfinishedMessage();
|
throw e.unwrapIOException();
|
} finally {
|
if (parsedMessage != null) {
|
mergeFrom(parsedMessage);
|
}
|
}
|
return this;
|
}
|
private int bitField0_;
|
|
private Object orderId_ = "";
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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;
|
}
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearOrderId() {
|
|
orderId_ = getDefaultInstance().getOrderId();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 订单ID
|
* </pre>
|
*
|
* <code>string order_id = 1;</code>
|
* @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_ = "";
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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;
|
}
|
}
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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;
|
}
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearTaskId() {
|
|
taskId_ = getDefaultInstance().getTaskId();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 任务ID
|
* </pre>
|
*
|
* <code>string task_id = 2;</code>
|
* @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 operationType_ = 0;
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @return The enum numeric value on the wire for operationType.
|
*/
|
@Override public int getOperationTypeValue() {
|
return operationType_;
|
}
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @param value The enum numeric value on the wire for operationType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setOperationTypeValue(int value) {
|
|
operationType_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @return The operationType.
|
*/
|
@Override
|
public OrderOperationType getOperationType() {
|
@SuppressWarnings("deprecation")
|
OrderOperationType result = OrderOperationType.valueOf(operationType_);
|
return result == null ? OrderOperationType.UNRECOGNIZED : result;
|
}
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @param value The operationType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setOperationType(OrderOperationType value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
|
operationType_ = value.getNumber();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 订单操作类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderOperationType operation_type = 3;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearOperationType() {
|
|
operationType_ = 0;
|
onChanged();
|
return this;
|
}
|
|
private int orderType_ = 0;
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @return The enum numeric value on the wire for orderType.
|
*/
|
@Override public int getOrderTypeValue() {
|
return orderType_;
|
}
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @param value The enum numeric value on the wire for orderType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setOrderTypeValue(int value) {
|
|
orderType_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @return The orderType.
|
*/
|
@Override
|
public OrderType getOrderType() {
|
@SuppressWarnings("deprecation")
|
OrderType result = OrderType.valueOf(orderType_);
|
return result == null ? OrderType.UNRECOGNIZED : result;
|
}
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @param value The orderType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setOrderType(OrderType value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
|
orderType_ = value.getNumber();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 订单类型,新发订单才需要
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType order_type = 4;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearOrderType() {
|
|
orderType_ = 0;
|
onChanged();
|
return this;
|
}
|
|
private java.util.List<Waypoint> waypoints_ =
|
java.util.Collections.emptyList();
|
private void ensureWaypointsIsMutable() {
|
if (!((bitField0_ & 0x00000001) != 0)) {
|
waypoints_ = new java.util.ArrayList<Waypoint>(waypoints_);
|
bitField0_ |= 0x00000001;
|
}
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder> waypointsBuilder_;
|
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public java.util.List<Waypoint> getWaypointsList() {
|
if (waypointsBuilder_ == null) {
|
return java.util.Collections.unmodifiableList(waypoints_);
|
} else {
|
return waypointsBuilder_.getMessageList();
|
}
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public int getWaypointsCount() {
|
if (waypointsBuilder_ == null) {
|
return waypoints_.size();
|
} else {
|
return waypointsBuilder_.getCount();
|
}
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Waypoint getWaypoints(int index) {
|
if (waypointsBuilder_ == null) {
|
return waypoints_.get(index);
|
} else {
|
return waypointsBuilder_.getMessage(index);
|
}
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder setWaypoints(
|
int index, Waypoint value) {
|
if (waypointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureWaypointsIsMutable();
|
waypoints_.set(index, value);
|
onChanged();
|
} else {
|
waypointsBuilder_.setMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder setWaypoints(
|
int index, Waypoint.Builder builderForValue) {
|
if (waypointsBuilder_ == null) {
|
ensureWaypointsIsMutable();
|
waypoints_.set(index, builderForValue.build());
|
onChanged();
|
} else {
|
waypointsBuilder_.setMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder addWaypoints(Waypoint value) {
|
if (waypointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureWaypointsIsMutable();
|
waypoints_.add(value);
|
onChanged();
|
} else {
|
waypointsBuilder_.addMessage(value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder addWaypoints(
|
int index, Waypoint value) {
|
if (waypointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureWaypointsIsMutable();
|
waypoints_.add(index, value);
|
onChanged();
|
} else {
|
waypointsBuilder_.addMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder addWaypoints(
|
Waypoint.Builder builderForValue) {
|
if (waypointsBuilder_ == null) {
|
ensureWaypointsIsMutable();
|
waypoints_.add(builderForValue.build());
|
onChanged();
|
} else {
|
waypointsBuilder_.addMessage(builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder addWaypoints(
|
int index, Waypoint.Builder builderForValue) {
|
if (waypointsBuilder_ == null) {
|
ensureWaypointsIsMutable();
|
waypoints_.add(index, builderForValue.build());
|
onChanged();
|
} else {
|
waypointsBuilder_.addMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder addAllWaypoints(
|
Iterable<? extends Waypoint> values) {
|
if (waypointsBuilder_ == null) {
|
ensureWaypointsIsMutable();
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
values, waypoints_);
|
onChanged();
|
} else {
|
waypointsBuilder_.addAllMessages(values);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder clearWaypoints() {
|
if (waypointsBuilder_ == null) {
|
waypoints_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
onChanged();
|
} else {
|
waypointsBuilder_.clear();
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Builder removeWaypoints(int index) {
|
if (waypointsBuilder_ == null) {
|
ensureWaypointsIsMutable();
|
waypoints_.remove(index);
|
onChanged();
|
} else {
|
waypointsBuilder_.remove(index);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Waypoint.Builder getWaypointsBuilder(
|
int index) {
|
return getWaypointsFieldBuilder().getBuilder(index);
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public WaypointOrBuilder getWaypointsOrBuilder(
|
int index) {
|
if (waypointsBuilder_ == null) {
|
return waypoints_.get(index); } else {
|
return waypointsBuilder_.getMessageOrBuilder(index);
|
}
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public java.util.List<? extends WaypointOrBuilder>
|
getWaypointsOrBuilderList() {
|
if (waypointsBuilder_ != null) {
|
return waypointsBuilder_.getMessageOrBuilderList();
|
} else {
|
return java.util.Collections.unmodifiableList(waypoints_);
|
}
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Waypoint.Builder addWaypointsBuilder() {
|
return getWaypointsFieldBuilder().addBuilder(
|
Waypoint.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public Waypoint.Builder addWaypointsBuilder(
|
int index) {
|
return getWaypointsFieldBuilder().addBuilder(
|
index, Waypoint.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
* 途径点列表,仅当operation_type为CLOUD_UPDATE_WAYPOINTS时有效
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint waypoints = 5;</code>
|
*/
|
public java.util.List<Waypoint.Builder>
|
getWaypointsBuilderList() {
|
return getWaypointsFieldBuilder().getBuilderList();
|
}
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>
|
getWaypointsFieldBuilder() {
|
if (waypointsBuilder_ == null) {
|
waypointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>(
|
waypoints_,
|
((bitField0_ & 0x00000001) != 0),
|
getParentForChildren(),
|
isClean());
|
waypoints_ = null;
|
}
|
return waypointsBuilder_;
|
}
|
|
private Waypoint targetPoint_;
|
private com.google.protobuf.SingleFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder> targetPointBuilder_;
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
* @return Whether the targetPoint field is set.
|
*/
|
public boolean hasTargetPoint() {
|
return targetPointBuilder_ != null || targetPoint_ != null;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
* @return The targetPoint.
|
*/
|
public Waypoint getTargetPoint() {
|
if (targetPointBuilder_ == null) {
|
return targetPoint_ == null ? Waypoint.getDefaultInstance() : targetPoint_;
|
} else {
|
return targetPointBuilder_.getMessage();
|
}
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public Builder setTargetPoint(Waypoint value) {
|
if (targetPointBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
targetPoint_ = value;
|
onChanged();
|
} else {
|
targetPointBuilder_.setMessage(value);
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public Builder setTargetPoint(
|
Waypoint.Builder builderForValue) {
|
if (targetPointBuilder_ == null) {
|
targetPoint_ = builderForValue.build();
|
onChanged();
|
} else {
|
targetPointBuilder_.setMessage(builderForValue.build());
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public Builder mergeTargetPoint(Waypoint value) {
|
if (targetPointBuilder_ == null) {
|
if (targetPoint_ != null) {
|
targetPoint_ =
|
Waypoint.newBuilder(targetPoint_).mergeFrom(value).buildPartial();
|
} else {
|
targetPoint_ = value;
|
}
|
onChanged();
|
} else {
|
targetPointBuilder_.mergeFrom(value);
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public Builder clearTargetPoint() {
|
if (targetPointBuilder_ == null) {
|
targetPoint_ = null;
|
onChanged();
|
} else {
|
targetPoint_ = null;
|
targetPointBuilder_ = null;
|
}
|
|
return this;
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public Waypoint.Builder getTargetPointBuilder() {
|
|
onChanged();
|
return getTargetPointFieldBuilder().getBuilder();
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
public WaypointOrBuilder getTargetPointOrBuilder() {
|
if (targetPointBuilder_ != null) {
|
return targetPointBuilder_.getMessageOrBuilder();
|
} else {
|
return targetPoint_ == null ?
|
Waypoint.getDefaultInstance() : targetPoint_;
|
}
|
}
|
/**
|
* <pre>
|
* 目标点,仅当operation_type为CLOUD_CHANGE_DESTINATION时有效
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.Waypoint target_point = 6;</code>
|
*/
|
private com.google.protobuf.SingleFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>
|
getTargetPointFieldBuilder() {
|
if (targetPointBuilder_ == null) {
|
targetPointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>(
|
getTargetPoint(),
|
getParentForChildren(),
|
isClean());
|
targetPoint_ = null;
|
}
|
return targetPointBuilder_;
|
}
|
@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.OrderOperation)
|
}
|
|
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.OrderOperation)
|
private static final OrderOperation DEFAULT_INSTANCE;
|
static {
|
DEFAULT_INSTANCE = new OrderOperation();
|
}
|
|
public static OrderOperation getDefaultInstance() {
|
return DEFAULT_INSTANCE;
|
}
|
|
private static final com.google.protobuf.Parser<OrderOperation>
|
PARSER = new com.google.protobuf.AbstractParser<OrderOperation>() {
|
@Override
|
public OrderOperation parsePartialFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return new OrderOperation(input, extensionRegistry);
|
}
|
};
|
|
public static com.google.protobuf.Parser<OrderOperation> parser() {
|
return PARSER;
|
}
|
|
@Override
|
public com.google.protobuf.Parser<OrderOperation> getParserForType() {
|
return PARSER;
|
}
|
|
@Override
|
public OrderOperation getDefaultInstanceForType() {
|
return DEFAULT_INSTANCE;
|
}
|
|
}
|