Package com.google.cloud.vision.v1
Enum BatchOperationMetadata.State
java.lang.Object
java.lang.Enum<BatchOperationMetadata.State>
com.google.cloud.vision.v1.BatchOperationMetadata.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<BatchOperationMetadata.State>
- Enclosing class:
- BatchOperationMetadata
public static enum BatchOperationMetadata.State
extends Enum<BatchOperationMetadata.State>
implements com.google.protobuf.ProtocolMessageEnum
Enumerates the possible states that the batch request can be in.Protobuf enum
google.cloud.vision.v1.BatchOperationMetadata.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe request is done after the longrunning.Operations.CancelOperation has been called by the user.The request is done and no item has been successfully processed.Request is actively being processed.Invalid.The request is done and at least one item has been successfully processed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe request is done after the longrunning.Operations.CancelOperation has been called by the user.static final intThe request is done and no item has been successfully processed.static final intRequest is actively being processed.static final intInvalid.static final intThe request is done and at least one item has been successfully processed. -
Method Summary
Modifier and TypeMethodDescriptionstatic BatchOperationMetadata.StateforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<BatchOperationMetadata.State>static BatchOperationMetadata.StatevalueOf(int value) Deprecated.static BatchOperationMetadata.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static BatchOperationMetadata.StateReturns 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.
-
Enum Constant Details
-
STATE_UNSPECIFIED
Invalid.
STATE_UNSPECIFIED = 0; -
PROCESSING
Request is actively being processed.
PROCESSING = 1; -
SUCCESSFUL
The request is done and at least one item has been successfully processed.
SUCCESSFUL = 2; -
FAILED
The request is done and no item has been successfully processed.
FAILED = 3; -
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; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEInvalid.
STATE_UNSPECIFIED = 0;- See Also:
-
PROCESSING_VALUE
public static final int PROCESSING_VALUERequest is actively being processed.
PROCESSING = 1;- See Also:
-
SUCCESSFUL_VALUE
public static final int SUCCESSFUL_VALUEThe request is done and at least one item has been successfully processed.
SUCCESSFUL = 2;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe request is done and no item has been successfully processed.
FAILED = 3;- See Also:
-
CANCELLED_VALUE
public static final int CANCELLED_VALUEThe 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;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<BatchOperationMetadata.State> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static BatchOperationMetadata.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-