public static enum BatchTranslateDocumentMetadata.State extends Enum<BatchTranslateDocumentMetadata.State> implements ProtocolMessageEnum
State of the job.Protobuf enum
google.cloud.translation.v3beta1.BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<BatchTranslateDocumentMetadata.State> |
internalGetValueMap() |
static BatchTranslateDocumentMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static BatchTranslateDocumentMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BatchTranslateDocumentMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchTranslateDocumentMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchTranslateDocumentMetadata.State STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0;
public static final BatchTranslateDocumentMetadata.State RUNNING
Request is being processed.
RUNNING = 1;
public static final BatchTranslateDocumentMetadata.State SUCCEEDED
The batch is processed, and at least one item was successfully processed.
SUCCEEDED = 2;
public static final BatchTranslateDocumentMetadata.State FAILED
The batch is done and no item was successfully processed.
FAILED = 3;
public static final BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.State[] values()
for (BatchTranslateDocumentMetadata.State c : BatchTranslateDocumentMetadata.State.values()) System.out.println(c);
public static BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static BatchTranslateDocumentMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<BatchTranslateDocumentMetadata.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 BatchTranslateDocumentMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.