// Generated by the protocol buffer compiler. DO NOT EDIT! // source: rt_task.proto package com.xiaopeng.api.vo.automaticPilot.protobuf; /** *
 * 前置/后置动作类型
 * 
* * Protobuf enum {@code acm.proto.intelliservices.rt.TaskActionType} */ public enum TaskActionType implements com.google.protobuf.ProtocolMessageEnum { /** *
   * 无效值
   * 
* * kActionUnknown = 0; */ kActionUnknown(0), /** *
   * 等待前一个任务完成
   * 
* * kWaitPrevTaskFinish = 1; */ kWaitPrevTaskFinish(1), /** *
   * 完成后触发下一个任务
   * 
* * kTriggerNextTaskOnFinish = 2; */ kTriggerNextTaskOnFinish(2), /** *
   * 终止任务
   * 
* * kTerminateTask = 3; */ kTerminateTask(3), /** *
   * 终止并替换为新任务
   * 
* * kTerminateForNewTask = 4; */ kTerminateForNewTask(4), /** *
   * 暂停任务
   * 
* * kPauseTask = 5; */ kPauseTask(5), /** *
   * 暂停并替换为新任务
   * 
* * kPauseForNewTask = 6; */ kPauseForNewTask(6), UNRECOGNIZED(-1), ; /** *
   * 无效值
   * 
* * kActionUnknown = 0; */ public static final int kActionUnknown_VALUE = 0; /** *
   * 等待前一个任务完成
   * 
* * kWaitPrevTaskFinish = 1; */ public static final int kWaitPrevTaskFinish_VALUE = 1; /** *
   * 完成后触发下一个任务
   * 
* * kTriggerNextTaskOnFinish = 2; */ public static final int kTriggerNextTaskOnFinish_VALUE = 2; /** *
   * 终止任务
   * 
* * kTerminateTask = 3; */ public static final int kTerminateTask_VALUE = 3; /** *
   * 终止并替换为新任务
   * 
* * kTerminateForNewTask = 4; */ public static final int kTerminateForNewTask_VALUE = 4; /** *
   * 暂停任务
   * 
* * kPauseTask = 5; */ public static final int kPauseTask_VALUE = 5; /** *
   * 暂停并替换为新任务
   * 
* * kPauseForNewTask = 6; */ public static final int kPauseForNewTask_VALUE = 6; 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 TaskActionType 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 TaskActionType forNumber(int value) { switch (value) { case 0: return kActionUnknown; case 1: return kWaitPrevTaskFinish; case 2: return kTriggerNextTaskOnFinish; case 3: return kTerminateTask; case 4: return kTerminateForNewTask; case 5: return kPauseTask; case 6: return kPauseForNewTask; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TaskActionType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TaskActionType findValueByNumber(int number) { return TaskActionType.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 RtTaskOuterClass.getDescriptor().getEnumTypes().get(5); } private static final TaskActionType[] VALUES = values(); public static TaskActionType 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 TaskActionType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:acm.proto.intelliservices.rt.TaskActionType) }