// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: rt_task.proto
|
|
package com.xiaopeng.api.vo.automaticPilot.protobuf;
|
|
/**
|
* Protobuf type {@code acm.proto.intelliservices.rt.RtTask}
|
*/
|
public final class RtTask extends
|
com.google.protobuf.GeneratedMessageV3 implements
|
// @@protoc_insertion_point(message_implements:acm.proto.intelliservices.rt.RtTask)
|
RtTaskOrBuilder {
|
private static final long serialVersionUID = 0L;
|
// Use RtTask.newBuilder() to construct.
|
private RtTask(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
|
super(builder);
|
}
|
private RtTask() {
|
taskId_ = "";
|
orderId_ = "";
|
orderPhase_ = java.util.Collections.emptyList();
|
points_ = java.util.Collections.emptyList();
|
taskType_ = 0;
|
preActions_ = java.util.Collections.emptyList();
|
postActions_ = java.util.Collections.emptyList();
|
}
|
|
@Override
|
@SuppressWarnings({"unused"})
|
protected Object newInstance(
|
UnusedPrivateParameter unused) {
|
return new RtTask();
|
}
|
|
@Override
|
public final com.google.protobuf.UnknownFieldSet
|
getUnknownFields() {
|
return this.unknownFields;
|
}
|
private RtTask(
|
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();
|
|
taskId_ = s;
|
break;
|
}
|
case 18: {
|
String s = input.readStringRequireUtf8();
|
|
orderId_ = s;
|
break;
|
}
|
case 24: {
|
int rawValue = input.readEnum();
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
orderPhase_ = new java.util.ArrayList<Integer>();
|
mutable_bitField0_ |= 0x00000001;
|
}
|
orderPhase_.add(rawValue);
|
break;
|
}
|
case 26: {
|
int length = input.readRawVarint32();
|
int oldLimit = input.pushLimit(length);
|
while(input.getBytesUntilLimit() > 0) {
|
int rawValue = input.readEnum();
|
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
|
orderPhase_ = new java.util.ArrayList<Integer>();
|
mutable_bitField0_ |= 0x00000001;
|
}
|
orderPhase_.add(rawValue);
|
}
|
input.popLimit(oldLimit);
|
break;
|
}
|
case 34: {
|
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
|
points_ = new java.util.ArrayList<Waypoint>();
|
mutable_bitField0_ |= 0x00000002;
|
}
|
points_.add(
|
input.readMessage(Waypoint.parser(), extensionRegistry));
|
break;
|
}
|
case 40: {
|
int rawValue = input.readEnum();
|
|
taskType_ = rawValue;
|
break;
|
}
|
case 50: {
|
if (!((mutable_bitField0_ & 0x00000004) != 0)) {
|
preActions_ = new java.util.ArrayList<TaskAction>();
|
mutable_bitField0_ |= 0x00000004;
|
}
|
preActions_.add(
|
input.readMessage(TaskAction.parser(), extensionRegistry));
|
break;
|
}
|
case 58: {
|
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
|
postActions_ = new java.util.ArrayList<TaskAction>();
|
mutable_bitField0_ |= 0x00000008;
|
}
|
postActions_.add(
|
input.readMessage(TaskAction.parser(), extensionRegistry));
|
break;
|
}
|
case 64: {
|
|
sequence_ = input.readUInt32();
|
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)) {
|
orderPhase_ = java.util.Collections.unmodifiableList(orderPhase_);
|
}
|
if (((mutable_bitField0_ & 0x00000002) != 0)) {
|
points_ = java.util.Collections.unmodifiableList(points_);
|
}
|
if (((mutable_bitField0_ & 0x00000004) != 0)) {
|
preActions_ = java.util.Collections.unmodifiableList(preActions_);
|
}
|
if (((mutable_bitField0_ & 0x00000008) != 0)) {
|
postActions_ = java.util.Collections.unmodifiableList(postActions_);
|
}
|
this.unknownFields = unknownFields.build();
|
makeExtensionsImmutable();
|
}
|
}
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtTaskOuterClass.internal_static_acm_proto_intelliservices_rt_RtTask_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtTaskOuterClass.internal_static_acm_proto_intelliservices_rt_RtTask_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
RtTask.class, Builder.class);
|
}
|
|
public static final int TASK_ID_FIELD_NUMBER = 1;
|
private volatile Object taskId_;
|
/**
|
* <pre>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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 ORDER_ID_FIELD_NUMBER = 2;
|
private volatile Object orderId_;
|
/**
|
* <pre>
|
*关联的订单id
|
* </pre>
|
*
|
* <code>string order_id = 2;</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 = 2;</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 ORDER_PHASE_FIELD_NUMBER = 3;
|
private java.util.List<Integer> orderPhase_;
|
private static final com.google.protobuf.Internal.ListAdapter.Converter<
|
Integer, OrderPhase> orderPhase_converter_ =
|
new com.google.protobuf.Internal.ListAdapter.Converter<
|
Integer, OrderPhase>() {
|
public OrderPhase convert(Integer from) {
|
@SuppressWarnings("deprecation")
|
OrderPhase result = OrderPhase.valueOf(from);
|
return result == null ? OrderPhase.UNRECOGNIZED : result;
|
}
|
};
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return A list containing the orderPhase.
|
*/
|
@Override
|
public java.util.List<OrderPhase> getOrderPhaseList() {
|
return new com.google.protobuf.Internal.ListAdapter<
|
Integer, OrderPhase>(orderPhase_, orderPhase_converter_);
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return The count of orderPhase.
|
*/
|
@Override
|
public int getOrderPhaseCount() {
|
return orderPhase_.size();
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index of the element to return.
|
* @return The orderPhase at the given index.
|
*/
|
@Override
|
public OrderPhase getOrderPhase(int index) {
|
return orderPhase_converter_.convert(orderPhase_.get(index));
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return A list containing the enum numeric values on the wire for orderPhase.
|
*/
|
@Override
|
public java.util.List<Integer>
|
getOrderPhaseValueList() {
|
return orderPhase_;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of orderPhase at the given index.
|
*/
|
@Override
|
public int getOrderPhaseValue(int index) {
|
return orderPhase_.get(index);
|
}
|
private int orderPhaseMemoizedSerializedSize;
|
|
public static final int POINTS_FIELD_NUMBER = 4;
|
private java.util.List<Waypoint> points_;
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
@Override
|
public java.util.List<Waypoint> getPointsList() {
|
return points_;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
@Override
|
public java.util.List<? extends WaypointOrBuilder>
|
getPointsOrBuilderList() {
|
return points_;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
@Override
|
public int getPointsCount() {
|
return points_.size();
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
@Override
|
public Waypoint getPoints(int index) {
|
return points_.get(index);
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
@Override
|
public WaypointOrBuilder getPointsOrBuilder(
|
int index) {
|
return points_.get(index);
|
}
|
|
public static final int TASK_TYPE_FIELD_NUMBER = 5;
|
private int taskType_;
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @return The enum numeric value on the wire for taskType.
|
*/
|
@Override public int getTaskTypeValue() {
|
return taskType_;
|
}
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @return The taskType.
|
*/
|
@Override public OrderType getTaskType() {
|
@SuppressWarnings("deprecation")
|
OrderType result = OrderType.valueOf(taskType_);
|
return result == null ? OrderType.UNRECOGNIZED : result;
|
}
|
|
public static final int PRE_ACTIONS_FIELD_NUMBER = 6;
|
private java.util.List<TaskAction> preActions_;
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
@Override
|
public java.util.List<TaskAction> getPreActionsList() {
|
return preActions_;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
@Override
|
public java.util.List<? extends TaskActionOrBuilder>
|
getPreActionsOrBuilderList() {
|
return preActions_;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
@Override
|
public int getPreActionsCount() {
|
return preActions_.size();
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
@Override
|
public TaskAction getPreActions(int index) {
|
return preActions_.get(index);
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
@Override
|
public TaskActionOrBuilder getPreActionsOrBuilder(
|
int index) {
|
return preActions_.get(index);
|
}
|
|
public static final int POST_ACTIONS_FIELD_NUMBER = 7;
|
private java.util.List<TaskAction> postActions_;
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
@Override
|
public java.util.List<TaskAction> getPostActionsList() {
|
return postActions_;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
@Override
|
public java.util.List<? extends TaskActionOrBuilder>
|
getPostActionsOrBuilderList() {
|
return postActions_;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
@Override
|
public int getPostActionsCount() {
|
return postActions_.size();
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
@Override
|
public TaskAction getPostActions(int index) {
|
return postActions_.get(index);
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
@Override
|
public TaskActionOrBuilder getPostActionsOrBuilder(
|
int index) {
|
return postActions_.get(index);
|
}
|
|
public static final int SEQUENCE_FIELD_NUMBER = 8;
|
private int sequence_;
|
/**
|
* <pre>
|
* 任务在订单中的顺序(从1开始)
|
* </pre>
|
*
|
* <code>uint32 sequence = 8;</code>
|
* @return The sequence.
|
*/
|
@Override
|
public int getSequence() {
|
return sequence_;
|
}
|
|
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 {
|
getSerializedSize();
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, taskId_);
|
}
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
|
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, orderId_);
|
}
|
if (getOrderPhaseList().size() > 0) {
|
output.writeUInt32NoTag(26);
|
output.writeUInt32NoTag(orderPhaseMemoizedSerializedSize);
|
}
|
for (int i = 0; i < orderPhase_.size(); i++) {
|
output.writeEnumNoTag(orderPhase_.get(i));
|
}
|
for (int i = 0; i < points_.size(); i++) {
|
output.writeMessage(4, points_.get(i));
|
}
|
if (taskType_ != OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) {
|
output.writeEnum(5, taskType_);
|
}
|
for (int i = 0; i < preActions_.size(); i++) {
|
output.writeMessage(6, preActions_.get(i));
|
}
|
for (int i = 0; i < postActions_.size(); i++) {
|
output.writeMessage(7, postActions_.get(i));
|
}
|
if (sequence_ != 0) {
|
output.writeUInt32(8, sequence_);
|
}
|
unknownFields.writeTo(output);
|
}
|
|
@Override
|
public int getSerializedSize() {
|
int size = memoizedSize;
|
if (size != -1) return size;
|
|
size = 0;
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(taskId_)) {
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, taskId_);
|
}
|
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(orderId_)) {
|
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, orderId_);
|
}
|
{
|
int dataSize = 0;
|
for (int i = 0; i < orderPhase_.size(); i++) {
|
dataSize += com.google.protobuf.CodedOutputStream
|
.computeEnumSizeNoTag(orderPhase_.get(i));
|
}
|
size += dataSize;
|
if (!getOrderPhaseList().isEmpty()) { size += 1;
|
size += com.google.protobuf.CodedOutputStream
|
.computeUInt32SizeNoTag(dataSize);
|
}orderPhaseMemoizedSerializedSize = dataSize;
|
}
|
for (int i = 0; i < points_.size(); i++) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeMessageSize(4, points_.get(i));
|
}
|
if (taskType_ != OrderType.ORDER_TYPE_UNSPECIFIED.getNumber()) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeEnumSize(5, taskType_);
|
}
|
for (int i = 0; i < preActions_.size(); i++) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeMessageSize(6, preActions_.get(i));
|
}
|
for (int i = 0; i < postActions_.size(); i++) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeMessageSize(7, postActions_.get(i));
|
}
|
if (sequence_ != 0) {
|
size += com.google.protobuf.CodedOutputStream
|
.computeUInt32Size(8, sequence_);
|
}
|
size += unknownFields.getSerializedSize();
|
memoizedSize = size;
|
return size;
|
}
|
|
@Override
|
public boolean equals(final Object obj) {
|
if (obj == this) {
|
return true;
|
}
|
if (!(obj instanceof RtTask)) {
|
return super.equals(obj);
|
}
|
RtTask other = (RtTask) obj;
|
|
if (!getTaskId()
|
.equals(other.getTaskId())) return false;
|
if (!getOrderId()
|
.equals(other.getOrderId())) return false;
|
if (!orderPhase_.equals(other.orderPhase_)) return false;
|
if (!getPointsList()
|
.equals(other.getPointsList())) return false;
|
if (taskType_ != other.taskType_) return false;
|
if (!getPreActionsList()
|
.equals(other.getPreActionsList())) return false;
|
if (!getPostActionsList()
|
.equals(other.getPostActionsList())) return false;
|
if (getSequence()
|
!= other.getSequence()) 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) + TASK_ID_FIELD_NUMBER;
|
hash = (53 * hash) + getTaskId().hashCode();
|
hash = (37 * hash) + ORDER_ID_FIELD_NUMBER;
|
hash = (53 * hash) + getOrderId().hashCode();
|
if (getOrderPhaseCount() > 0) {
|
hash = (37 * hash) + ORDER_PHASE_FIELD_NUMBER;
|
hash = (53 * hash) + orderPhase_.hashCode();
|
}
|
if (getPointsCount() > 0) {
|
hash = (37 * hash) + POINTS_FIELD_NUMBER;
|
hash = (53 * hash) + getPointsList().hashCode();
|
}
|
hash = (37 * hash) + TASK_TYPE_FIELD_NUMBER;
|
hash = (53 * hash) + taskType_;
|
if (getPreActionsCount() > 0) {
|
hash = (37 * hash) + PRE_ACTIONS_FIELD_NUMBER;
|
hash = (53 * hash) + getPreActionsList().hashCode();
|
}
|
if (getPostActionsCount() > 0) {
|
hash = (37 * hash) + POST_ACTIONS_FIELD_NUMBER;
|
hash = (53 * hash) + getPostActionsList().hashCode();
|
}
|
hash = (37 * hash) + SEQUENCE_FIELD_NUMBER;
|
hash = (53 * hash) + getSequence();
|
hash = (29 * hash) + unknownFields.hashCode();
|
memoizedHashCode = hash;
|
return hash;
|
}
|
|
public static RtTask parseFrom(
|
java.nio.ByteBuffer data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static RtTask parseFrom(
|
java.nio.ByteBuffer data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static RtTask parseFrom(
|
com.google.protobuf.ByteString data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static RtTask parseFrom(
|
com.google.protobuf.ByteString data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static RtTask parseFrom(byte[] data)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data);
|
}
|
public static RtTask parseFrom(
|
byte[] data,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return PARSER.parseFrom(data, extensionRegistry);
|
}
|
public static RtTask parseFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static RtTask 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 RtTask parseDelimitedFrom(java.io.InputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseDelimitedWithIOException(PARSER, input);
|
}
|
public static RtTask 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 RtTask parseFrom(
|
com.google.protobuf.CodedInputStream input)
|
throws java.io.IOException {
|
return com.google.protobuf.GeneratedMessageV3
|
.parseWithIOException(PARSER, input);
|
}
|
public static RtTask 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(RtTask 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.RtTask}
|
*/
|
public static final class Builder extends
|
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
|
// @@protoc_insertion_point(builder_implements:acm.proto.intelliservices.rt.RtTask)
|
RtTaskOrBuilder {
|
public static final com.google.protobuf.Descriptors.Descriptor
|
getDescriptor() {
|
return RtTaskOuterClass.internal_static_acm_proto_intelliservices_rt_RtTask_descriptor;
|
}
|
|
@Override
|
protected FieldAccessorTable
|
internalGetFieldAccessorTable() {
|
return RtTaskOuterClass.internal_static_acm_proto_intelliservices_rt_RtTask_fieldAccessorTable
|
.ensureFieldAccessorsInitialized(
|
RtTask.class, Builder.class);
|
}
|
|
// Construct using com.xiaopeng.api.vo.automaticPilot.protobuf.RtTask.newBuilder()
|
private Builder() {
|
maybeForceBuilderInitialization();
|
}
|
|
private Builder(
|
BuilderParent parent) {
|
super(parent);
|
maybeForceBuilderInitialization();
|
}
|
private void maybeForceBuilderInitialization() {
|
if (com.google.protobuf.GeneratedMessageV3
|
.alwaysUseFieldBuilders) {
|
getPointsFieldBuilder();
|
getPreActionsFieldBuilder();
|
getPostActionsFieldBuilder();
|
}
|
}
|
@Override
|
public Builder clear() {
|
super.clear();
|
taskId_ = "";
|
|
orderId_ = "";
|
|
orderPhase_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
if (pointsBuilder_ == null) {
|
points_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000002);
|
} else {
|
pointsBuilder_.clear();
|
}
|
taskType_ = 0;
|
|
if (preActionsBuilder_ == null) {
|
preActions_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000004);
|
} else {
|
preActionsBuilder_.clear();
|
}
|
if (postActionsBuilder_ == null) {
|
postActions_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000008);
|
} else {
|
postActionsBuilder_.clear();
|
}
|
sequence_ = 0;
|
|
return this;
|
}
|
|
@Override
|
public com.google.protobuf.Descriptors.Descriptor
|
getDescriptorForType() {
|
return RtTaskOuterClass.internal_static_acm_proto_intelliservices_rt_RtTask_descriptor;
|
}
|
|
@Override
|
public RtTask getDefaultInstanceForType() {
|
return RtTask.getDefaultInstance();
|
}
|
|
@Override
|
public RtTask build() {
|
RtTask result = buildPartial();
|
if (!result.isInitialized()) {
|
throw newUninitializedMessageException(result);
|
}
|
return result;
|
}
|
|
@Override
|
public RtTask buildPartial() {
|
RtTask result = new RtTask(this);
|
int from_bitField0_ = bitField0_;
|
result.taskId_ = taskId_;
|
result.orderId_ = orderId_;
|
if (((bitField0_ & 0x00000001) != 0)) {
|
orderPhase_ = java.util.Collections.unmodifiableList(orderPhase_);
|
bitField0_ = (bitField0_ & ~0x00000001);
|
}
|
result.orderPhase_ = orderPhase_;
|
if (pointsBuilder_ == null) {
|
if (((bitField0_ & 0x00000002) != 0)) {
|
points_ = java.util.Collections.unmodifiableList(points_);
|
bitField0_ = (bitField0_ & ~0x00000002);
|
}
|
result.points_ = points_;
|
} else {
|
result.points_ = pointsBuilder_.build();
|
}
|
result.taskType_ = taskType_;
|
if (preActionsBuilder_ == null) {
|
if (((bitField0_ & 0x00000004) != 0)) {
|
preActions_ = java.util.Collections.unmodifiableList(preActions_);
|
bitField0_ = (bitField0_ & ~0x00000004);
|
}
|
result.preActions_ = preActions_;
|
} else {
|
result.preActions_ = preActionsBuilder_.build();
|
}
|
if (postActionsBuilder_ == null) {
|
if (((bitField0_ & 0x00000008) != 0)) {
|
postActions_ = java.util.Collections.unmodifiableList(postActions_);
|
bitField0_ = (bitField0_ & ~0x00000008);
|
}
|
result.postActions_ = postActions_;
|
} else {
|
result.postActions_ = postActionsBuilder_.build();
|
}
|
result.sequence_ = sequence_;
|
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 RtTask) {
|
return mergeFrom((RtTask)other);
|
} else {
|
super.mergeFrom(other);
|
return this;
|
}
|
}
|
|
public Builder mergeFrom(RtTask other) {
|
if (other == RtTask.getDefaultInstance()) return this;
|
if (!other.getTaskId().isEmpty()) {
|
taskId_ = other.taskId_;
|
onChanged();
|
}
|
if (!other.getOrderId().isEmpty()) {
|
orderId_ = other.orderId_;
|
onChanged();
|
}
|
if (!other.orderPhase_.isEmpty()) {
|
if (orderPhase_.isEmpty()) {
|
orderPhase_ = other.orderPhase_;
|
bitField0_ = (bitField0_ & ~0x00000001);
|
} else {
|
ensureOrderPhaseIsMutable();
|
orderPhase_.addAll(other.orderPhase_);
|
}
|
onChanged();
|
}
|
if (pointsBuilder_ == null) {
|
if (!other.points_.isEmpty()) {
|
if (points_.isEmpty()) {
|
points_ = other.points_;
|
bitField0_ = (bitField0_ & ~0x00000002);
|
} else {
|
ensurePointsIsMutable();
|
points_.addAll(other.points_);
|
}
|
onChanged();
|
}
|
} else {
|
if (!other.points_.isEmpty()) {
|
if (pointsBuilder_.isEmpty()) {
|
pointsBuilder_.dispose();
|
pointsBuilder_ = null;
|
points_ = other.points_;
|
bitField0_ = (bitField0_ & ~0x00000002);
|
pointsBuilder_ =
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
getPointsFieldBuilder() : null;
|
} else {
|
pointsBuilder_.addAllMessages(other.points_);
|
}
|
}
|
}
|
if (other.taskType_ != 0) {
|
setTaskTypeValue(other.getTaskTypeValue());
|
}
|
if (preActionsBuilder_ == null) {
|
if (!other.preActions_.isEmpty()) {
|
if (preActions_.isEmpty()) {
|
preActions_ = other.preActions_;
|
bitField0_ = (bitField0_ & ~0x00000004);
|
} else {
|
ensurePreActionsIsMutable();
|
preActions_.addAll(other.preActions_);
|
}
|
onChanged();
|
}
|
} else {
|
if (!other.preActions_.isEmpty()) {
|
if (preActionsBuilder_.isEmpty()) {
|
preActionsBuilder_.dispose();
|
preActionsBuilder_ = null;
|
preActions_ = other.preActions_;
|
bitField0_ = (bitField0_ & ~0x00000004);
|
preActionsBuilder_ =
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
getPreActionsFieldBuilder() : null;
|
} else {
|
preActionsBuilder_.addAllMessages(other.preActions_);
|
}
|
}
|
}
|
if (postActionsBuilder_ == null) {
|
if (!other.postActions_.isEmpty()) {
|
if (postActions_.isEmpty()) {
|
postActions_ = other.postActions_;
|
bitField0_ = (bitField0_ & ~0x00000008);
|
} else {
|
ensurePostActionsIsMutable();
|
postActions_.addAll(other.postActions_);
|
}
|
onChanged();
|
}
|
} else {
|
if (!other.postActions_.isEmpty()) {
|
if (postActionsBuilder_.isEmpty()) {
|
postActionsBuilder_.dispose();
|
postActionsBuilder_ = null;
|
postActions_ = other.postActions_;
|
bitField0_ = (bitField0_ & ~0x00000008);
|
postActionsBuilder_ =
|
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
|
getPostActionsFieldBuilder() : null;
|
} else {
|
postActionsBuilder_.addAllMessages(other.postActions_);
|
}
|
}
|
}
|
if (other.getSequence() != 0) {
|
setSequence(other.getSequence());
|
}
|
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 {
|
RtTask parsedMessage = null;
|
try {
|
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
|
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
|
parsedMessage = (RtTask) e.getUnfinishedMessage();
|
throw e.unwrapIOException();
|
} finally {
|
if (parsedMessage != null) {
|
mergeFrom(parsedMessage);
|
}
|
}
|
return this;
|
}
|
private int bitField0_;
|
|
private Object taskId_ = "";
|
/**
|
* <pre>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearTaskId() {
|
|
taskId_ = getDefaultInstance().getTaskId();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 任务唯一标识
|
* </pre>
|
*
|
* <code>string task_id = 1;</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 Object orderId_ = "";
|
/**
|
* <pre>
|
*关联的订单id
|
* </pre>
|
*
|
* <code>string order_id = 2;</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 = 2;</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 = 2;</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 = 2;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearOrderId() {
|
|
orderId_ = getDefaultInstance().getOrderId();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
*关联的订单id
|
* </pre>
|
*
|
* <code>string order_id = 2;</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 java.util.List<Integer> orderPhase_ =
|
java.util.Collections.emptyList();
|
private void ensureOrderPhaseIsMutable() {
|
if (!((bitField0_ & 0x00000001) != 0)) {
|
orderPhase_ = new java.util.ArrayList<Integer>(orderPhase_);
|
bitField0_ |= 0x00000001;
|
}
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return A list containing the orderPhase.
|
*/
|
public java.util.List<OrderPhase> getOrderPhaseList() {
|
return new com.google.protobuf.Internal.ListAdapter<
|
Integer, OrderPhase>(orderPhase_, orderPhase_converter_);
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return The count of orderPhase.
|
*/
|
public int getOrderPhaseCount() {
|
return orderPhase_.size();
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index of the element to return.
|
* @return The orderPhase at the given index.
|
*/
|
public OrderPhase getOrderPhase(int index) {
|
return orderPhase_converter_.convert(orderPhase_.get(index));
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index to set the value at.
|
* @param value The orderPhase to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setOrderPhase(
|
int index, OrderPhase value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureOrderPhaseIsMutable();
|
orderPhase_.set(index, value.getNumber());
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param value The orderPhase to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addOrderPhase(OrderPhase value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensureOrderPhaseIsMutable();
|
orderPhase_.add(value.getNumber());
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param values The orderPhase to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAllOrderPhase(
|
Iterable<? extends OrderPhase> values) {
|
ensureOrderPhaseIsMutable();
|
for (OrderPhase value : values) {
|
orderPhase_.add(value.getNumber());
|
}
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearOrderPhase() {
|
orderPhase_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000001);
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @return A list containing the enum numeric values on the wire for orderPhase.
|
*/
|
public java.util.List<Integer>
|
getOrderPhaseValueList() {
|
return java.util.Collections.unmodifiableList(orderPhase_);
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of orderPhase at the given index.
|
*/
|
public int getOrderPhaseValue(int index) {
|
return orderPhase_.get(index);
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param index The index of the value to return.
|
* @return The enum numeric value on the wire of orderPhase at the given index.
|
* @return This builder for chaining.
|
*/
|
public Builder setOrderPhaseValue(
|
int index, int value) {
|
ensureOrderPhaseIsMutable();
|
orderPhase_.set(index, value);
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param value The enum numeric value on the wire for orderPhase to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addOrderPhaseValue(int value) {
|
ensureOrderPhaseIsMutable();
|
orderPhase_.add(value);
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* TASK对应的行程阶段,若一个订单被拆分成多个TASK,车端使用order_id关联,使用seq排序
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.OrderPhase order_phase = 3;</code>
|
* @param values The enum numeric values on the wire for orderPhase to add.
|
* @return This builder for chaining.
|
*/
|
public Builder addAllOrderPhaseValue(
|
Iterable<Integer> values) {
|
ensureOrderPhaseIsMutable();
|
for (int value : values) {
|
orderPhase_.add(value);
|
}
|
onChanged();
|
return this;
|
}
|
|
private java.util.List<Waypoint> points_ =
|
java.util.Collections.emptyList();
|
private void ensurePointsIsMutable() {
|
if (!((bitField0_ & 0x00000002) != 0)) {
|
points_ = new java.util.ArrayList<Waypoint>(points_);
|
bitField0_ |= 0x00000002;
|
}
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder> pointsBuilder_;
|
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public java.util.List<Waypoint> getPointsList() {
|
if (pointsBuilder_ == null) {
|
return java.util.Collections.unmodifiableList(points_);
|
} else {
|
return pointsBuilder_.getMessageList();
|
}
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public int getPointsCount() {
|
if (pointsBuilder_ == null) {
|
return points_.size();
|
} else {
|
return pointsBuilder_.getCount();
|
}
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Waypoint getPoints(int index) {
|
if (pointsBuilder_ == null) {
|
return points_.get(index);
|
} else {
|
return pointsBuilder_.getMessage(index);
|
}
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder setPoints(
|
int index, Waypoint value) {
|
if (pointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePointsIsMutable();
|
points_.set(index, value);
|
onChanged();
|
} else {
|
pointsBuilder_.setMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder setPoints(
|
int index, Waypoint.Builder builderForValue) {
|
if (pointsBuilder_ == null) {
|
ensurePointsIsMutable();
|
points_.set(index, builderForValue.build());
|
onChanged();
|
} else {
|
pointsBuilder_.setMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder addPoints(Waypoint value) {
|
if (pointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePointsIsMutable();
|
points_.add(value);
|
onChanged();
|
} else {
|
pointsBuilder_.addMessage(value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder addPoints(
|
int index, Waypoint value) {
|
if (pointsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePointsIsMutable();
|
points_.add(index, value);
|
onChanged();
|
} else {
|
pointsBuilder_.addMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder addPoints(
|
Waypoint.Builder builderForValue) {
|
if (pointsBuilder_ == null) {
|
ensurePointsIsMutable();
|
points_.add(builderForValue.build());
|
onChanged();
|
} else {
|
pointsBuilder_.addMessage(builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder addPoints(
|
int index, Waypoint.Builder builderForValue) {
|
if (pointsBuilder_ == null) {
|
ensurePointsIsMutable();
|
points_.add(index, builderForValue.build());
|
onChanged();
|
} else {
|
pointsBuilder_.addMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder addAllPoints(
|
Iterable<? extends Waypoint> values) {
|
if (pointsBuilder_ == null) {
|
ensurePointsIsMutable();
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
values, points_);
|
onChanged();
|
} else {
|
pointsBuilder_.addAllMessages(values);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder clearPoints() {
|
if (pointsBuilder_ == null) {
|
points_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000002);
|
onChanged();
|
} else {
|
pointsBuilder_.clear();
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Builder removePoints(int index) {
|
if (pointsBuilder_ == null) {
|
ensurePointsIsMutable();
|
points_.remove(index);
|
onChanged();
|
} else {
|
pointsBuilder_.remove(index);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Waypoint.Builder getPointsBuilder(
|
int index) {
|
return getPointsFieldBuilder().getBuilder(index);
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public WaypointOrBuilder getPointsOrBuilder(
|
int index) {
|
if (pointsBuilder_ == null) {
|
return points_.get(index); } else {
|
return pointsBuilder_.getMessageOrBuilder(index);
|
}
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public java.util.List<? extends WaypointOrBuilder>
|
getPointsOrBuilderList() {
|
if (pointsBuilder_ != null) {
|
return pointsBuilder_.getMessageOrBuilderList();
|
} else {
|
return java.util.Collections.unmodifiableList(points_);
|
}
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Waypoint.Builder addPointsBuilder() {
|
return getPointsFieldBuilder().addBuilder(
|
Waypoint.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public Waypoint.Builder addPointsBuilder(
|
int index) {
|
return getPointsFieldBuilder().addBuilder(
|
index, Waypoint.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
* ROBOTAXI任务必须要有一个可以作为导航终点的点
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.Waypoint points = 4;</code>
|
*/
|
public java.util.List<Waypoint.Builder>
|
getPointsBuilderList() {
|
return getPointsFieldBuilder().getBuilderList();
|
}
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>
|
getPointsFieldBuilder() {
|
if (pointsBuilder_ == null) {
|
pointsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
Waypoint, Waypoint.Builder, WaypointOrBuilder>(
|
points_,
|
((bitField0_ & 0x00000002) != 0),
|
getParentForChildren(),
|
isClean());
|
points_ = null;
|
}
|
return pointsBuilder_;
|
}
|
|
private int taskType_ = 0;
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @return The enum numeric value on the wire for taskType.
|
*/
|
@Override public int getTaskTypeValue() {
|
return taskType_;
|
}
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @param value The enum numeric value on the wire for taskType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setTaskTypeValue(int value) {
|
|
taskType_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @return The taskType.
|
*/
|
@Override
|
public OrderType getTaskType() {
|
@SuppressWarnings("deprecation")
|
OrderType result = OrderType.valueOf(taskType_);
|
return result == null ? OrderType.UNRECOGNIZED : result;
|
}
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @param value The taskType to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setTaskType(OrderType value) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
|
taskType_ = value.getNumber();
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 任务类型
|
* </pre>
|
*
|
* <code>.acm.proto.intelliservices.rt.OrderType task_type = 5;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearTaskType() {
|
|
taskType_ = 0;
|
onChanged();
|
return this;
|
}
|
|
private java.util.List<TaskAction> preActions_ =
|
java.util.Collections.emptyList();
|
private void ensurePreActionsIsMutable() {
|
if (!((bitField0_ & 0x00000004) != 0)) {
|
preActions_ = new java.util.ArrayList<TaskAction>(preActions_);
|
bitField0_ |= 0x00000004;
|
}
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder> preActionsBuilder_;
|
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public java.util.List<TaskAction> getPreActionsList() {
|
if (preActionsBuilder_ == null) {
|
return java.util.Collections.unmodifiableList(preActions_);
|
} else {
|
return preActionsBuilder_.getMessageList();
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public int getPreActionsCount() {
|
if (preActionsBuilder_ == null) {
|
return preActions_.size();
|
} else {
|
return preActionsBuilder_.getCount();
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public TaskAction getPreActions(int index) {
|
if (preActionsBuilder_ == null) {
|
return preActions_.get(index);
|
} else {
|
return preActionsBuilder_.getMessage(index);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder setPreActions(
|
int index, TaskAction value) {
|
if (preActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePreActionsIsMutable();
|
preActions_.set(index, value);
|
onChanged();
|
} else {
|
preActionsBuilder_.setMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder setPreActions(
|
int index, TaskAction.Builder builderForValue) {
|
if (preActionsBuilder_ == null) {
|
ensurePreActionsIsMutable();
|
preActions_.set(index, builderForValue.build());
|
onChanged();
|
} else {
|
preActionsBuilder_.setMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder addPreActions(TaskAction value) {
|
if (preActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePreActionsIsMutable();
|
preActions_.add(value);
|
onChanged();
|
} else {
|
preActionsBuilder_.addMessage(value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder addPreActions(
|
int index, TaskAction value) {
|
if (preActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePreActionsIsMutable();
|
preActions_.add(index, value);
|
onChanged();
|
} else {
|
preActionsBuilder_.addMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder addPreActions(
|
TaskAction.Builder builderForValue) {
|
if (preActionsBuilder_ == null) {
|
ensurePreActionsIsMutable();
|
preActions_.add(builderForValue.build());
|
onChanged();
|
} else {
|
preActionsBuilder_.addMessage(builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder addPreActions(
|
int index, TaskAction.Builder builderForValue) {
|
if (preActionsBuilder_ == null) {
|
ensurePreActionsIsMutable();
|
preActions_.add(index, builderForValue.build());
|
onChanged();
|
} else {
|
preActionsBuilder_.addMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder addAllPreActions(
|
Iterable<? extends TaskAction> values) {
|
if (preActionsBuilder_ == null) {
|
ensurePreActionsIsMutable();
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
values, preActions_);
|
onChanged();
|
} else {
|
preActionsBuilder_.addAllMessages(values);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder clearPreActions() {
|
if (preActionsBuilder_ == null) {
|
preActions_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000004);
|
onChanged();
|
} else {
|
preActionsBuilder_.clear();
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public Builder removePreActions(int index) {
|
if (preActionsBuilder_ == null) {
|
ensurePreActionsIsMutable();
|
preActions_.remove(index);
|
onChanged();
|
} else {
|
preActionsBuilder_.remove(index);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public TaskAction.Builder getPreActionsBuilder(
|
int index) {
|
return getPreActionsFieldBuilder().getBuilder(index);
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public TaskActionOrBuilder getPreActionsOrBuilder(
|
int index) {
|
if (preActionsBuilder_ == null) {
|
return preActions_.get(index); } else {
|
return preActionsBuilder_.getMessageOrBuilder(index);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public java.util.List<? extends TaskActionOrBuilder>
|
getPreActionsOrBuilderList() {
|
if (preActionsBuilder_ != null) {
|
return preActionsBuilder_.getMessageOrBuilderList();
|
} else {
|
return java.util.Collections.unmodifiableList(preActions_);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public TaskAction.Builder addPreActionsBuilder() {
|
return getPreActionsFieldBuilder().addBuilder(
|
TaskAction.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public TaskAction.Builder addPreActionsBuilder(
|
int index) {
|
return getPreActionsFieldBuilder().addBuilder(
|
index, TaskAction.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction pre_actions = 6;</code>
|
*/
|
public java.util.List<TaskAction.Builder>
|
getPreActionsBuilderList() {
|
return getPreActionsFieldBuilder().getBuilderList();
|
}
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder>
|
getPreActionsFieldBuilder() {
|
if (preActionsBuilder_ == null) {
|
preActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder>(
|
preActions_,
|
((bitField0_ & 0x00000004) != 0),
|
getParentForChildren(),
|
isClean());
|
preActions_ = null;
|
}
|
return preActionsBuilder_;
|
}
|
|
private java.util.List<TaskAction> postActions_ =
|
java.util.Collections.emptyList();
|
private void ensurePostActionsIsMutable() {
|
if (!((bitField0_ & 0x00000008) != 0)) {
|
postActions_ = new java.util.ArrayList<TaskAction>(postActions_);
|
bitField0_ |= 0x00000008;
|
}
|
}
|
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder> postActionsBuilder_;
|
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public java.util.List<TaskAction> getPostActionsList() {
|
if (postActionsBuilder_ == null) {
|
return java.util.Collections.unmodifiableList(postActions_);
|
} else {
|
return postActionsBuilder_.getMessageList();
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public int getPostActionsCount() {
|
if (postActionsBuilder_ == null) {
|
return postActions_.size();
|
} else {
|
return postActionsBuilder_.getCount();
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public TaskAction getPostActions(int index) {
|
if (postActionsBuilder_ == null) {
|
return postActions_.get(index);
|
} else {
|
return postActionsBuilder_.getMessage(index);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder setPostActions(
|
int index, TaskAction value) {
|
if (postActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePostActionsIsMutable();
|
postActions_.set(index, value);
|
onChanged();
|
} else {
|
postActionsBuilder_.setMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder setPostActions(
|
int index, TaskAction.Builder builderForValue) {
|
if (postActionsBuilder_ == null) {
|
ensurePostActionsIsMutable();
|
postActions_.set(index, builderForValue.build());
|
onChanged();
|
} else {
|
postActionsBuilder_.setMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder addPostActions(TaskAction value) {
|
if (postActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePostActionsIsMutable();
|
postActions_.add(value);
|
onChanged();
|
} else {
|
postActionsBuilder_.addMessage(value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder addPostActions(
|
int index, TaskAction value) {
|
if (postActionsBuilder_ == null) {
|
if (value == null) {
|
throw new NullPointerException();
|
}
|
ensurePostActionsIsMutable();
|
postActions_.add(index, value);
|
onChanged();
|
} else {
|
postActionsBuilder_.addMessage(index, value);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder addPostActions(
|
TaskAction.Builder builderForValue) {
|
if (postActionsBuilder_ == null) {
|
ensurePostActionsIsMutable();
|
postActions_.add(builderForValue.build());
|
onChanged();
|
} else {
|
postActionsBuilder_.addMessage(builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder addPostActions(
|
int index, TaskAction.Builder builderForValue) {
|
if (postActionsBuilder_ == null) {
|
ensurePostActionsIsMutable();
|
postActions_.add(index, builderForValue.build());
|
onChanged();
|
} else {
|
postActionsBuilder_.addMessage(index, builderForValue.build());
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder addAllPostActions(
|
Iterable<? extends TaskAction> values) {
|
if (postActionsBuilder_ == null) {
|
ensurePostActionsIsMutable();
|
com.google.protobuf.AbstractMessageLite.Builder.addAll(
|
values, postActions_);
|
onChanged();
|
} else {
|
postActionsBuilder_.addAllMessages(values);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder clearPostActions() {
|
if (postActionsBuilder_ == null) {
|
postActions_ = java.util.Collections.emptyList();
|
bitField0_ = (bitField0_ & ~0x00000008);
|
onChanged();
|
} else {
|
postActionsBuilder_.clear();
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public Builder removePostActions(int index) {
|
if (postActionsBuilder_ == null) {
|
ensurePostActionsIsMutable();
|
postActions_.remove(index);
|
onChanged();
|
} else {
|
postActionsBuilder_.remove(index);
|
}
|
return this;
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public TaskAction.Builder getPostActionsBuilder(
|
int index) {
|
return getPostActionsFieldBuilder().getBuilder(index);
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public TaskActionOrBuilder getPostActionsOrBuilder(
|
int index) {
|
if (postActionsBuilder_ == null) {
|
return postActions_.get(index); } else {
|
return postActionsBuilder_.getMessageOrBuilder(index);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public java.util.List<? extends TaskActionOrBuilder>
|
getPostActionsOrBuilderList() {
|
if (postActionsBuilder_ != null) {
|
return postActionsBuilder_.getMessageOrBuilderList();
|
} else {
|
return java.util.Collections.unmodifiableList(postActions_);
|
}
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public TaskAction.Builder addPostActionsBuilder() {
|
return getPostActionsFieldBuilder().addBuilder(
|
TaskAction.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public TaskAction.Builder addPostActionsBuilder(
|
int index) {
|
return getPostActionsFieldBuilder().addBuilder(
|
index, TaskAction.getDefaultInstance());
|
}
|
/**
|
* <pre>
|
*
|
* </pre>
|
*
|
* <code>repeated .acm.proto.intelliservices.rt.TaskAction post_actions = 7;</code>
|
*/
|
public java.util.List<TaskAction.Builder>
|
getPostActionsBuilderList() {
|
return getPostActionsFieldBuilder().getBuilderList();
|
}
|
private com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder>
|
getPostActionsFieldBuilder() {
|
if (postActionsBuilder_ == null) {
|
postActionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
|
TaskAction, TaskAction.Builder, TaskActionOrBuilder>(
|
postActions_,
|
((bitField0_ & 0x00000008) != 0),
|
getParentForChildren(),
|
isClean());
|
postActions_ = null;
|
}
|
return postActionsBuilder_;
|
}
|
|
private int sequence_ ;
|
/**
|
* <pre>
|
* 任务在订单中的顺序(从1开始)
|
* </pre>
|
*
|
* <code>uint32 sequence = 8;</code>
|
* @return The sequence.
|
*/
|
@Override
|
public int getSequence() {
|
return sequence_;
|
}
|
/**
|
* <pre>
|
* 任务在订单中的顺序(从1开始)
|
* </pre>
|
*
|
* <code>uint32 sequence = 8;</code>
|
* @param value The sequence to set.
|
* @return This builder for chaining.
|
*/
|
public Builder setSequence(int value) {
|
|
sequence_ = value;
|
onChanged();
|
return this;
|
}
|
/**
|
* <pre>
|
* 任务在订单中的顺序(从1开始)
|
* </pre>
|
*
|
* <code>uint32 sequence = 8;</code>
|
* @return This builder for chaining.
|
*/
|
public Builder clearSequence() {
|
|
sequence_ = 0;
|
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.RtTask)
|
}
|
|
// @@protoc_insertion_point(class_scope:acm.proto.intelliservices.rt.RtTask)
|
private static final RtTask DEFAULT_INSTANCE;
|
static {
|
DEFAULT_INSTANCE = new RtTask();
|
}
|
|
public static RtTask getDefaultInstance() {
|
return DEFAULT_INSTANCE;
|
}
|
|
private static final com.google.protobuf.Parser<RtTask>
|
PARSER = new com.google.protobuf.AbstractParser<RtTask>() {
|
@Override
|
public RtTask parsePartialFrom(
|
com.google.protobuf.CodedInputStream input,
|
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
|
throws com.google.protobuf.InvalidProtocolBufferException {
|
return new RtTask(input, extensionRegistry);
|
}
|
};
|
|
public static com.google.protobuf.Parser<RtTask> parser() {
|
return PARSER;
|
}
|
|
@Override
|
public com.google.protobuf.Parser<RtTask> getParserForType() {
|
return PARSER;
|
}
|
|
@Override
|
public RtTask getDefaultInstanceForType() {
|
return DEFAULT_INSTANCE;
|
}
|
|
}
|