Enum OperationMetadata.Status
java.lang.Object
java.lang.Enum<OperationMetadata.Status>
com.google.api.servicemanagement.v1.OperationMetadata.Status
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OperationMetadata.Status>
- Enclosing class:
- OperationMetadata
public static enum OperationMetadata.Status
extends Enum<OperationMetadata.Status>
implements com.google.protobuf.ProtocolMessageEnum
Code describes the status of the operation (or one of its steps).Protobuf enum
google.api.servicemanagement.v1.OperationMetadata.Status-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe operation or step has completed with cancellation.The operation or step has completed without errors.The operation or step has completed with errors.The operation or step is in progress.The operation or step has not started yet.Unspecifed code. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe operation or step has completed with cancellation.static final intThe operation or step has completed without errors.static final intThe operation or step has completed with errors.static final intThe operation or step is in progress.static final intThe operation or step has not started yet.static final intUnspecifed code. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationMetadata.StatusforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OperationMetadata.Status>static OperationMetadata.StatusvalueOf(int value) Deprecated.static OperationMetadata.StatusvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static OperationMetadata.StatusReturns the enum constant of this type with the specified name.static OperationMetadata.Status[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATUS_UNSPECIFIED
Unspecifed code.
STATUS_UNSPECIFIED = 0; -
DONE
The operation or step has completed without errors.
DONE = 1; -
NOT_STARTED
The operation or step has not started yet.
NOT_STARTED = 2; -
IN_PROGRESS
The operation or step is in progress.
IN_PROGRESS = 3; -
FAILED
The operation or step has completed with errors. If the operation is rollbackable, the rollback completed with errors too.
FAILED = 4; -
CANCELLED
The operation or step has completed with cancellation.
CANCELLED = 5; -
UNRECOGNIZED
-
-
Field Details
-
STATUS_UNSPECIFIED_VALUE
public static final int STATUS_UNSPECIFIED_VALUEUnspecifed code.
STATUS_UNSPECIFIED = 0;- See Also:
-
DONE_VALUE
public static final int DONE_VALUEThe operation or step has completed without errors.
DONE = 1;- See Also:
-
NOT_STARTED_VALUE
public static final int NOT_STARTED_VALUEThe operation or step has not started yet.
NOT_STARTED = 2;- See Also:
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUEThe operation or step is in progress.
IN_PROGRESS = 3;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe operation or step has completed with errors. If the operation is rollbackable, the rollback completed with errors too.
FAILED = 4;- See Also:
-
CANCELLED_VALUE
public static final int CANCELLED_VALUEThe operation or step has completed with cancellation.
CANCELLED = 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
public static com.google.protobuf.Internal.EnumLiteMap<OperationMetadata.Status> 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
public static OperationMetadata.Status valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) 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
-