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 and Description |
|---|
ERROR_CODE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.code.
|
ERROR_MESSAGE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.message.
|
NAME
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.name.
|
STATUS
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.done.
|
UNDEFINED
Do not use.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_CODE_VALUE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.code.
|
static int |
ERROR_MESSAGE_VALUE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.error.message.
|
static int |
NAME_VALUE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.name.
|
static int |
STATUS_VALUE
A field in an API-specific (custom) Operation object which carries the same
meaning as google.longrunning.Operation.done.
|
static int |
UNDEFINED_VALUE
Do not use.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationResponseMapping |
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<OperationResponseMapping> |
internalGetValueMap() |
static OperationResponseMapping |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OperationResponseMapping |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OperationResponseMapping |
valueOf(String name)
Returns 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.
|
public static final OperationResponseMapping UNDEFINED
Do not use.
UNDEFINED = 0;public static final OperationResponseMapping NAME
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
NAME = 1;public static final OperationResponseMapping 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;public static final OperationResponseMapping 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;public static final OperationResponseMapping 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;public static final OperationResponseMapping UNRECOGNIZED
public static final int UNDEFINED_VALUE
Do not use.
UNDEFINED = 0;public static final int NAME_VALUE
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.name.
NAME = 1;public static final int STATUS_VALUE
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;public static final int ERROR_CODE_VALUE
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.code.
ERROR_CODE = 3;public static final int ERROR_MESSAGE_VALUE
A field in an API-specific (custom) Operation object which carries the same meaning as google.longrunning.Operation.error.message.
ERROR_MESSAGE = 4;public static OperationResponseMapping[] values()
for (OperationResponseMapping c : OperationResponseMapping.values()) System.out.println(c);
public static OperationResponseMapping valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static OperationResponseMapping valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OperationResponseMapping forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OperationResponseMapping> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static OperationResponseMapping valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.