public enum OperationState extends Enum<OperationState> implements com.google.protobuf.ProtocolMessageEnum
Possible states of long running operations.Protobuf enum
google.cloud.translation.v3.OperationState| Enum Constant and Description |
|---|
OPERATION_STATE_CANCELLED
The operation request was successfully canceled.
|
OPERATION_STATE_CANCELLING
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
OPERATION_STATE_FAILED
Failed to process operation.
|
OPERATION_STATE_RUNNING
Request is being processed.
|
OPERATION_STATE_SUCCEEDED
The operation was successful.
|
OPERATION_STATE_UNSPECIFIED
Invalid.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OPERATION_STATE_CANCELLED_VALUE
The operation request was successfully canceled.
|
static int |
OPERATION_STATE_CANCELLING_VALUE
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
static int |
OPERATION_STATE_FAILED_VALUE
Failed to process operation.
|
static int |
OPERATION_STATE_RUNNING_VALUE
Request is being processed.
|
static int |
OPERATION_STATE_SUCCEEDED_VALUE
The operation was successful.
|
static int |
OPERATION_STATE_UNSPECIFIED_VALUE
Invalid.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationState |
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<OperationState> |
internalGetValueMap() |
static OperationState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OperationState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OperationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationState OPERATION_STATE_UNSPECIFIED
Invalid.
OPERATION_STATE_UNSPECIFIED = 0;public static final OperationState OPERATION_STATE_RUNNING
Request is being processed.
OPERATION_STATE_RUNNING = 1;public static final OperationState OPERATION_STATE_SUCCEEDED
The operation was successful.
OPERATION_STATE_SUCCEEDED = 2;public static final OperationState OPERATION_STATE_FAILED
Failed to process operation.
OPERATION_STATE_FAILED = 3;public static final OperationState OPERATION_STATE_CANCELLING
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
OPERATION_STATE_CANCELLING = 4;public static final OperationState OPERATION_STATE_CANCELLED
The operation request was successfully canceled.
OPERATION_STATE_CANCELLED = 5;public static final OperationState UNRECOGNIZED
public static final int OPERATION_STATE_UNSPECIFIED_VALUE
Invalid.
OPERATION_STATE_UNSPECIFIED = 0;public static final int OPERATION_STATE_RUNNING_VALUE
Request is being processed.
OPERATION_STATE_RUNNING = 1;public static final int OPERATION_STATE_SUCCEEDED_VALUE
The operation was successful.
OPERATION_STATE_SUCCEEDED = 2;public static final int OPERATION_STATE_FAILED_VALUE
Failed to process operation.
OPERATION_STATE_FAILED = 3;public static final int OPERATION_STATE_CANCELLING_VALUE
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
OPERATION_STATE_CANCELLING = 4;public static final int OPERATION_STATE_CANCELLED_VALUE
The operation request was successfully canceled.
OPERATION_STATE_CANCELLED = 5;public static OperationState[] values()
for (OperationState c : OperationState.values()) System.out.println(c);
public static OperationState 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 OperationState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OperationState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OperationState> 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 OperationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.