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 enumgoogle.api.servicemanagement.v1.OperationMetadata.Status
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCELLEDThe operation or step has completed with cancellation.DONEThe operation or step has completed without errors.FAILEDThe operation or step has completed with errors.IN_PROGRESSThe operation or step is in progress.NOT_STARTEDThe operation or step has not started yet.STATUS_UNSPECIFIEDUnspecifed code.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intCANCELLED_VALUEThe operation or step has completed with cancellation.static intDONE_VALUEThe operation or step has completed without errors.static intFAILED_VALUEThe operation or step has completed with errors.static intIN_PROGRESS_VALUEThe operation or step is in progress.static intNOT_STARTED_VALUEThe operation or step has not started yet.static intSTATUS_UNSPECIFIED_VALUEUnspecifed code.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OperationMetadata.StatusforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<OperationMetadata.Status>internalGetValueMap()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.StatusvalueOf(String name)Returns 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 Detail
-
STATUS_UNSPECIFIED
public static final OperationMetadata.Status STATUS_UNSPECIFIED
Unspecifed code.
STATUS_UNSPECIFIED = 0;
-
DONE
public static final OperationMetadata.Status DONE
The operation or step has completed without errors.
DONE = 1;
-
NOT_STARTED
public static final OperationMetadata.Status NOT_STARTED
The operation or step has not started yet.
NOT_STARTED = 2;
-
IN_PROGRESS
public static final OperationMetadata.Status IN_PROGRESS
The operation or step is in progress.
IN_PROGRESS = 3;
-
FAILED
public static final OperationMetadata.Status FAILED
The operation or step has completed with errors. If the operation is rollbackable, the rollback completed with errors too.
FAILED = 4;
-
CANCELLED
public static final OperationMetadata.Status CANCELLED
The operation or step has completed with cancellation.
CANCELLED = 5;
-
UNRECOGNIZED
public static final OperationMetadata.Status UNRECOGNIZED
-
-
Field Detail
-
STATUS_UNSPECIFIED_VALUE
public static final int STATUS_UNSPECIFIED_VALUE
Unspecifed code.
STATUS_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
DONE_VALUE
public static final int DONE_VALUE
The operation or step has completed without errors.
DONE = 1;- See Also:
- Constant Field Values
-
NOT_STARTED_VALUE
public static final int NOT_STARTED_VALUE
The operation or step has not started yet.
NOT_STARTED = 2;- See Also:
- Constant Field Values
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUE
The operation or step is in progress.
IN_PROGRESS = 3;- See Also:
- Constant Field Values
-
FAILED_VALUE
public static final int FAILED_VALUE
The operation or step has completed with errors. If the operation is rollbackable, the rollback completed with errors too.
FAILED = 4;- See Also:
- Constant Field Values
-
CANCELLED_VALUE
public static final int CANCELLED_VALUE
The operation or step has completed with cancellation.
CANCELLED = 5;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static OperationMetadata.Status[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (OperationMetadata.Status c : OperationMetadata.Status.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperationMetadata.Status valueOf(String name)
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 public static OperationMetadata.Status valueOf(int value)
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
public static OperationMetadata.Status forNumber(int value)
- 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 final 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
-
-