// Generated by the protocol buffer compiler. DO NOT EDIT!
|
// source: rt_order.proto
|
|
package com.xiaopeng.api.vo.automaticPilot.protobuf;
|
|
/**
|
* <pre>
|
* 订单操作类型枚举
|
* </pre>
|
*
|
* Protobuf enum {@code acm.proto.intelliservices.rt.OrderOperationType}
|
*/
|
public enum OrderOperationType
|
implements com.google.protobuf.ProtocolMessageEnum {
|
/**
|
* <pre>
|
* 未指定
|
* </pre>
|
*
|
* <code>ORDER_OPERATION_UNSPECIFIED = 0;</code>
|
*/
|
ORDER_OPERATION_UNSPECIFIED(0),
|
/**
|
* <pre>
|
* 云端新增订单,XPU与座舱交互指令
|
* </pre>
|
*
|
* <code>CLOUD_CREATE_ORDER = 1;</code>
|
*/
|
CLOUD_CREATE_ORDER(1),
|
/**
|
* <pre>
|
* 云端取消订单
|
* </pre>
|
*
|
* <code>CLOUD_CANCEL_ORDER = 2;</code>
|
*/
|
CLOUD_CANCEL_ORDER(2),
|
/**
|
* <pre>
|
* 车端取消订单
|
* </pre>
|
*
|
* <code>VEHICLE_CANCEL_ORDER = 3;</code>
|
*/
|
VEHICLE_CANCEL_ORDER(3),
|
/**
|
* <pre>
|
* 云端暂停订单
|
* </pre>
|
*
|
* <code>CLOUD_PAUSE_ORDER = 4;</code>
|
*/
|
CLOUD_PAUSE_ORDER(4),
|
/**
|
* <pre>
|
* 车端暂停订单
|
* </pre>
|
*
|
* <code>VEHICLE_PAUSE_ORDER = 5;</code>
|
*/
|
VEHICLE_PAUSE_ORDER(5),
|
/**
|
* <pre>
|
* 云端更新途经点
|
* </pre>
|
*
|
* <code>CLOUD_UPDATE_WAYPOINTS = 6;</code>
|
*/
|
CLOUD_UPDATE_WAYPOINTS(6),
|
/**
|
* <pre>
|
* 云端更改终点
|
* </pre>
|
*
|
* <code>CLOUD_CHANGE_DESTINATION = 7;</code>
|
*/
|
CLOUD_CHANGE_DESTINATION(7),
|
UNRECOGNIZED(-1),
|
;
|
|
/**
|
* <pre>
|
* 未指定
|
* </pre>
|
*
|
* <code>ORDER_OPERATION_UNSPECIFIED = 0;</code>
|
*/
|
public static final int ORDER_OPERATION_UNSPECIFIED_VALUE = 0;
|
/**
|
* <pre>
|
* 云端新增订单,XPU与座舱交互指令
|
* </pre>
|
*
|
* <code>CLOUD_CREATE_ORDER = 1;</code>
|
*/
|
public static final int CLOUD_CREATE_ORDER_VALUE = 1;
|
/**
|
* <pre>
|
* 云端取消订单
|
* </pre>
|
*
|
* <code>CLOUD_CANCEL_ORDER = 2;</code>
|
*/
|
public static final int CLOUD_CANCEL_ORDER_VALUE = 2;
|
/**
|
* <pre>
|
* 车端取消订单
|
* </pre>
|
*
|
* <code>VEHICLE_CANCEL_ORDER = 3;</code>
|
*/
|
public static final int VEHICLE_CANCEL_ORDER_VALUE = 3;
|
/**
|
* <pre>
|
* 云端暂停订单
|
* </pre>
|
*
|
* <code>CLOUD_PAUSE_ORDER = 4;</code>
|
*/
|
public static final int CLOUD_PAUSE_ORDER_VALUE = 4;
|
/**
|
* <pre>
|
* 车端暂停订单
|
* </pre>
|
*
|
* <code>VEHICLE_PAUSE_ORDER = 5;</code>
|
*/
|
public static final int VEHICLE_PAUSE_ORDER_VALUE = 5;
|
/**
|
* <pre>
|
* 云端更新途经点
|
* </pre>
|
*
|
* <code>CLOUD_UPDATE_WAYPOINTS = 6;</code>
|
*/
|
public static final int CLOUD_UPDATE_WAYPOINTS_VALUE = 6;
|
/**
|
* <pre>
|
* 云端更改终点
|
* </pre>
|
*
|
* <code>CLOUD_CHANGE_DESTINATION = 7;</code>
|
*/
|
public static final int CLOUD_CHANGE_DESTINATION_VALUE = 7;
|
|
|
public final int getNumber() {
|
if (this == UNRECOGNIZED) {
|
throw new IllegalArgumentException(
|
"Can't get the number of an unknown enum value.");
|
}
|
return value;
|
}
|
|
/**
|
* @param value The numeric wire value of the corresponding enum entry.
|
* @return The enum associated with the given numeric wire value.
|
* @deprecated Use {@link #forNumber(int)} instead.
|
*/
|
@Deprecated
|
public static OrderOperationType valueOf(int value) {
|
return forNumber(value);
|
}
|
|
/**
|
* @param value The numeric wire value of the corresponding enum entry.
|
* @return The enum associated with the given numeric wire value.
|
*/
|
public static OrderOperationType forNumber(int value) {
|
switch (value) {
|
case 0: return ORDER_OPERATION_UNSPECIFIED;
|
case 1: return CLOUD_CREATE_ORDER;
|
case 2: return CLOUD_CANCEL_ORDER;
|
case 3: return VEHICLE_CANCEL_ORDER;
|
case 4: return CLOUD_PAUSE_ORDER;
|
case 5: return VEHICLE_PAUSE_ORDER;
|
case 6: return CLOUD_UPDATE_WAYPOINTS;
|
case 7: return CLOUD_CHANGE_DESTINATION;
|
default: return null;
|
}
|
}
|
|
public static com.google.protobuf.Internal.EnumLiteMap<OrderOperationType>
|
internalGetValueMap() {
|
return internalValueMap;
|
}
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
OrderOperationType> internalValueMap =
|
new com.google.protobuf.Internal.EnumLiteMap<OrderOperationType>() {
|
public OrderOperationType findValueByNumber(int number) {
|
return OrderOperationType.forNumber(number);
|
}
|
};
|
|
public final com.google.protobuf.Descriptors.EnumValueDescriptor
|
getValueDescriptor() {
|
if (this == UNRECOGNIZED) {
|
throw new IllegalStateException(
|
"Can't get the descriptor of an unrecognized enum value.");
|
}
|
return getDescriptor().getValues().get(ordinal());
|
}
|
public final com.google.protobuf.Descriptors.EnumDescriptor
|
getDescriptorForType() {
|
return getDescriptor();
|
}
|
public static final com.google.protobuf.Descriptors.EnumDescriptor
|
getDescriptor() {
|
return RtOrder.getDescriptor().getEnumTypes().get(0);
|
}
|
|
private static final OrderOperationType[] VALUES = values();
|
|
public static OrderOperationType valueOf(
|
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
|
if (desc.getType() != getDescriptor()) {
|
throw new IllegalArgumentException(
|
"EnumValueDescriptor is not for this type.");
|
}
|
if (desc.getIndex() == -1) {
|
return UNRECOGNIZED;
|
}
|
return VALUES[desc.getIndex()];
|
}
|
|
private final int value;
|
|
private OrderOperationType(int value) {
|
this.value = value;
|
}
|
|
// @@protoc_insertion_point(enum_scope:acm.proto.intelliservices.rt.OrderOperationType)
|
}
|