Package com.google.cloud
Enum OperationResponseMapping
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<OperationResponseMapping>
public enum OperationResponseMapping
extends Enum<OperationResponseMapping>
implements com.google.protobuf.ProtocolMessageEnum
An enum to be used to mark the essential (for polling) fields in an API-specific Operation object. A custom Operation object may contain many different fields, but only few of them are essential to conduct a successful polling process.Protobuf enum
google.cloud.OperationResponseMapping-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done.Do not use. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.static final intA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.static final intA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.static final intA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done.static final intDo not use. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationResponseMappingforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<OperationResponseMapping>static OperationResponseMappingvalueOf(int value) Deprecated.static OperationResponseMappingvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static OperationResponseMappingReturns the enum constant of this type with the specified name.static OperationResponseMapping[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED
Do not use.
UNDEFINED = 0; -
NAME
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
NAME = 1; -
STATUS
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done. If the annotated field is of an enum type, `annotated_field_name == EnumType.DONE` semantics should be equivalent to `Operation.done == true`. If the annotated field is of type boolean, then it should follow the same semantics as Operation.done. Otherwise, a non-empty value should be treated as `Operation.done == true`.
STATUS = 2; -
ERROR_CODE
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.
ERROR_CODE = 3; -
ERROR_MESSAGE
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.
ERROR_MESSAGE = 4; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_VALUE
public static final int UNDEFINED_VALUEDo not use.
UNDEFINED = 0;- See Also:
-
NAME_VALUE
public static final int NAME_VALUEA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
NAME = 1;- See Also:
-
STATUS_VALUE
public static final int STATUS_VALUEA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.done. If the annotated field is of an enum type, `annotated_field_name == EnumType.DONE` semantics should be equivalent to `Operation.done == true`. If the annotated field is of type boolean, then it should follow the same semantics as Operation.done. Otherwise, a non-empty value should be treated as `Operation.done == true`.
STATUS = 2;- See Also:
-
ERROR_CODE_VALUE
public static final int ERROR_CODE_VALUEA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.
ERROR_CODE = 3;- See Also:
-
ERROR_MESSAGE_VALUE
public static final int ERROR_MESSAGE_VALUEA field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.
ERROR_MESSAGE = 4;- 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<OperationResponseMapping> 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 OperationResponseMapping 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
-