All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.temporal.api.enums.v1.ContinueAsNewInitiator Maven / Gradle / Ivy

There is a newer version: 1.24.3
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: temporal/api/enums/v1/workflow.proto

package io.temporal.api.enums.v1;

/**
 * Protobuf enum {@code temporal.api.enums.v1.ContinueAsNewInitiator}
 */
@javax.annotation.Generated(value="protoc", comments="annotations:ContinueAsNewInitiator.java.pb.meta")
public enum ContinueAsNewInitiator
    implements com.google.protobuf.ProtocolMessageEnum {
  /**
   * CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED = 0;
   */
  CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED(0),
  /**
   * 
   * The workflow itself requested to continue as new
   * 
* * CONTINUE_AS_NEW_INITIATOR_WORKFLOW = 1; */ CONTINUE_AS_NEW_INITIATOR_WORKFLOW(1), /** *
   * The workflow continued as new because it is retrying
   * 
* * CONTINUE_AS_NEW_INITIATOR_RETRY = 2; */ CONTINUE_AS_NEW_INITIATOR_RETRY(2), /** *
   * The workflow continued as new because cron has triggered a new execution
   * 
* * CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE = 3; */ CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE(3), UNRECOGNIZED(-1), ; /** * CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED = 0; */ public static final int CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED_VALUE = 0; /** *
   * The workflow itself requested to continue as new
   * 
* * CONTINUE_AS_NEW_INITIATOR_WORKFLOW = 1; */ public static final int CONTINUE_AS_NEW_INITIATOR_WORKFLOW_VALUE = 1; /** *
   * The workflow continued as new because it is retrying
   * 
* * CONTINUE_AS_NEW_INITIATOR_RETRY = 2; */ public static final int CONTINUE_AS_NEW_INITIATOR_RETRY_VALUE = 2; /** *
   * The workflow continued as new because cron has triggered a new execution
   * 
* * CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE = 3; */ public static final int CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE_VALUE = 3; public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.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. */ @java.lang.Deprecated public static ContinueAsNewInitiator 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 ContinueAsNewInitiator forNumber(int value) { switch (value) { case 0: return CONTINUE_AS_NEW_INITIATOR_UNSPECIFIED; case 1: return CONTINUE_AS_NEW_INITIATOR_WORKFLOW; case 2: return CONTINUE_AS_NEW_INITIATOR_RETRY; case 3: return CONTINUE_AS_NEW_INITIATOR_CRON_SCHEDULE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< ContinueAsNewInitiator> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public ContinueAsNewInitiator findValueByNumber(int number) { return ContinueAsNewInitiator.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { 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 io.temporal.api.enums.v1.WorkflowProto.getDescriptor().getEnumTypes().get(2); } private static final ContinueAsNewInitiator[] VALUES = values(); public static ContinueAsNewInitiator valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } if (desc.getIndex() == -1) { return UNRECOGNIZED; } return VALUES[desc.getIndex()]; } private final int value; private ContinueAsNewInitiator(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:temporal.api.enums.v1.ContinueAsNewInitiator) }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy