public static enum OperationMetadata.State extends Enum<OperationMetadata.State> implements ProtocolMessageEnum
Batch operation states.Protobuf enum
google.cloud.vision.v1p2beta1.OperationMetadata.State
Enum Constant and Description |
---|
CANCELLED
The batch processing was cancelled.
|
CREATED
Request is received.
|
DONE
The batch processing is done.
|
RUNNING
Request is actively being processed.
|
STATE_UNSPECIFIED
Invalid.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED_VALUE
The batch processing was cancelled.
|
static int |
CREATED_VALUE
Request is received.
|
static int |
DONE_VALUE
The batch processing is done.
|
static int |
RUNNING_VALUE
Request is actively being processed.
|
static int |
STATE_UNSPECIFIED_VALUE
Invalid.
|
Modifier and Type | Method and Description |
---|---|
static OperationMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<OperationMetadata.State> |
internalGetValueMap() |
static OperationMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static OperationMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OperationMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationMetadata.State STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0;
public static final OperationMetadata.State CREATED
Request is received.
CREATED = 1;
public static final OperationMetadata.State RUNNING
Request is actively being processed.
RUNNING = 2;
public static final OperationMetadata.State DONE
The batch processing is done.
DONE = 3;
public static final OperationMetadata.State CANCELLED
The batch processing was cancelled.
CANCELLED = 4;
public static final OperationMetadata.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Invalid.
STATE_UNSPECIFIED = 0;
public static final int CREATED_VALUE
Request is received.
CREATED = 1;
public static final int RUNNING_VALUE
Request is actively being processed.
RUNNING = 2;
public static final int DONE_VALUE
The batch processing is done.
DONE = 3;
public static final int CANCELLED_VALUE
The batch processing was cancelled.
CANCELLED = 4;
public static OperationMetadata.State[] values()
for (OperationMetadata.State c : OperationMetadata.State.values()) System.out.println(c);
public static OperationMetadata.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 OperationMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static OperationMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<OperationMetadata.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 OperationMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.