Package com.google.cloud.deploy.v1
Enum JobRun.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<JobRun.State>
- Enclosing class:
- JobRun
public static enum JobRun.State
extends Enum<JobRun.State>
implements com.google.protobuf.ProtocolMessageEnum
Valid states of a `JobRun`.Protobuf enum
google.cloud.deploy.v1.JobRun.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe `JobRun` has failed.The `JobRun` is in progress.The `JobRun` has an unspecified state.The `JobRun` has succeeded.The `JobRun` was terminated.The `JobRun` is terminating. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe `JobRun` has failed.static final intThe `JobRun` is in progress.static final intThe `JobRun` has an unspecified state.static final intThe `JobRun` has succeeded.static final intThe `JobRun` was terminated.static final intThe `JobRun` is terminating. -
Method Summary
Modifier and TypeMethodDescriptionstatic JobRun.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<JobRun.State>static JobRun.StatevalueOf(int value) Deprecated.static JobRun.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static JobRun.StateReturns the enum constant of this type with the specified name.static JobRun.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The `JobRun` has an unspecified state.
STATE_UNSPECIFIED = 0; -
IN_PROGRESS
The `JobRun` is in progress.
IN_PROGRESS = 1; -
SUCCEEDED
The `JobRun` has succeeded.
SUCCEEDED = 2; -
FAILED
The `JobRun` has failed.
FAILED = 3; -
TERMINATING
The `JobRun` is terminating.
TERMINATING = 4; -
TERMINATED
The `JobRun` was terminated.
TERMINATED = 5; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe `JobRun` has an unspecified state.
STATE_UNSPECIFIED = 0;- See Also:
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUEThe `JobRun` is in progress.
IN_PROGRESS = 1;- See Also:
-
SUCCEEDED_VALUE
public static final int SUCCEEDED_VALUEThe `JobRun` has succeeded.
SUCCEEDED = 2;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe `JobRun` has failed.
FAILED = 3;- See Also:
-
TERMINATING_VALUE
public static final int TERMINATING_VALUEThe `JobRun` is terminating.
TERMINATING = 4;- See Also:
-
TERMINATED_VALUE
public static final int TERMINATED_VALUEThe `JobRun` was terminated.
TERMINATED = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-