public static enum BatchTranslateMetadata.State extends Enum<BatchTranslateMetadata.State> implements ProtocolMessageEnum
State of the job.Protobuf enum
google.cloud.translation.v3beta1.BatchTranslateMetadata.State
Enum Constant and Description |
---|
CANCELLED
The batch is done after the user has called the
longrunning.Operations.CancelOperation.
|
CANCELLING
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
FAILED
The batch is done and no item was successfully processed.
|
RUNNING
Request is being processed.
|
STATE_UNSPECIFIED
Invalid.
|
SUCCEEDED
The batch is processed, and at least one item was successfully
processed.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED_VALUE
The batch is done after the user has called the
longrunning.Operations.CancelOperation.
|
static int |
CANCELLING_VALUE
Request is in the process of being canceled after caller invoked
longrunning.Operations.CancelOperation on the request id.
|
static int |
FAILED_VALUE
The batch is done and no item was successfully processed.
|
static int |
RUNNING_VALUE
Request is being processed.
|
static int |
STATE_UNSPECIFIED_VALUE
Invalid.
|
static int |
SUCCEEDED_VALUE
The batch is processed, and at least one item was successfully
processed.
|
Modifier and Type | Method and Description |
---|---|
static BatchTranslateMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<BatchTranslateMetadata.State> |
internalGetValueMap() |
static BatchTranslateMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static BatchTranslateMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BatchTranslateMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchTranslateMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchTranslateMetadata.State STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0;
public static final BatchTranslateMetadata.State RUNNING
Request is being processed.
RUNNING = 1;
public static final BatchTranslateMetadata.State SUCCEEDED
The batch is processed, and at least one item was successfully processed.
SUCCEEDED = 2;
public static final BatchTranslateMetadata.State FAILED
The batch is done and no item was successfully processed.
FAILED = 3;
public static final BatchTranslateMetadata.State CANCELLING
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
CANCELLING = 4;
public static final BatchTranslateMetadata.State CANCELLED
The batch is done after the user has called the longrunning.Operations.CancelOperation. Any records processed before the cancel command are output as specified in the request.
CANCELLED = 5;
public static final BatchTranslateMetadata.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Invalid.
STATE_UNSPECIFIED = 0;
public static final int RUNNING_VALUE
Request is being processed.
RUNNING = 1;
public static final int SUCCEEDED_VALUE
The batch is processed, and at least one item was successfully processed.
SUCCEEDED = 2;
public static final int FAILED_VALUE
The batch is done and no item was successfully processed.
FAILED = 3;
public static final int CANCELLING_VALUE
Request is in the process of being canceled after caller invoked longrunning.Operations.CancelOperation on the request id.
CANCELLING = 4;
public static final int CANCELLED_VALUE
The batch is done after the user has called the longrunning.Operations.CancelOperation. Any records processed before the cancel command are output as specified in the request.
CANCELLED = 5;
public static BatchTranslateMetadata.State[] values()
for (BatchTranslateMetadata.State c : BatchTranslateMetadata.State.values()) System.out.println(c);
public static BatchTranslateMetadata.State 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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static BatchTranslateMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static BatchTranslateMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<BatchTranslateMetadata.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static BatchTranslateMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.