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 CANCELLED
The operation or step has completed with cancellation.DONE
The operation or step has completed without errors.FAILED
The operation or step has completed with errors.IN_PROGRESS
The operation or step is in progress.NOT_STARTED
The operation or step has not started yet.STATUS_UNSPECIFIED
Unspecifed code.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
CANCELLED_VALUE
The operation or step has completed with cancellation.static int
DONE_VALUE
The operation or step has completed without errors.static int
FAILED_VALUE
The operation or step has completed with errors.static int
IN_PROGRESS_VALUE
The operation or step is in progress.static int
NOT_STARTED_VALUE
The operation or step has not started yet.static int
STATUS_UNSPECIFIED_VALUE
Unspecifed code.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static OperationMetadata.Status
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<OperationMetadata.Status>
internalGetValueMap()
static OperationMetadata.Status
valueOf(int value)
Deprecated.static OperationMetadata.Status
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static OperationMetadata.Status
valueOf(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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in 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:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in 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
-
-