public static enum BatchOperationMetadata.State extends Enum<BatchOperationMetadata.State> implements ProtocolMessageEnum
Enumerates the possible states that the batch request can be in.Protobuf enum
google.cloud.vision.v1p3beta1.BatchOperationMetadata.State
Enum Constant and Description |
---|
CANCELLED
The request is done after the longrunning.Operations.CancelOperation has
been called by the user.
|
FAILED
The request is done and no item has been successfully processed.
|
PROCESSING
Request is actively being processed.
|
STATE_UNSPECIFIED
Invalid.
|
SUCCESSFUL
The request is done and at least one item has been successfully
processed.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED_VALUE
The request is done after the longrunning.Operations.CancelOperation has
been called by the user.
|
static int |
FAILED_VALUE
The request is done and no item has been successfully processed.
|
static int |
PROCESSING_VALUE
Request is actively being processed.
|
static int |
STATE_UNSPECIFIED_VALUE
Invalid.
|
static int |
SUCCESSFUL_VALUE
The request is done and at least one item has been successfully
processed.
|
Modifier and Type | Method and Description |
---|---|
static BatchOperationMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<BatchOperationMetadata.State> |
internalGetValueMap() |
static BatchOperationMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static BatchOperationMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static BatchOperationMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BatchOperationMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BatchOperationMetadata.State STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0;
public static final BatchOperationMetadata.State PROCESSING
Request is actively being processed.
PROCESSING = 1;
public static final BatchOperationMetadata.State SUCCESSFUL
The request is done and at least one item has been successfully processed.
SUCCESSFUL = 2;
public static final BatchOperationMetadata.State FAILED
The request is done and no item has been successfully processed.
FAILED = 3;
public static final BatchOperationMetadata.State CANCELLED
The request is done after the longrunning.Operations.CancelOperation has been called by the user. Any records that were processed before the cancel command are output as specified in the request.
CANCELLED = 4;
public static final BatchOperationMetadata.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
Invalid.
STATE_UNSPECIFIED = 0;
public static final int PROCESSING_VALUE
Request is actively being processed.
PROCESSING = 1;
public static final int SUCCESSFUL_VALUE
The request is done and at least one item has been successfully processed.
SUCCESSFUL = 2;
public static final int FAILED_VALUE
The request is done and no item has been successfully processed.
FAILED = 3;
public static final int CANCELLED_VALUE
The request is done after the longrunning.Operations.CancelOperation has been called by the user. Any records that were processed before the cancel command are output as specified in the request.
CANCELLED = 4;
public static BatchOperationMetadata.State[] values()
for (BatchOperationMetadata.State c : BatchOperationMetadata.State.values()) System.out.println(c);
public static BatchOperationMetadata.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 BatchOperationMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static BatchOperationMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<BatchOperationMetadata.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 BatchOperationMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.