Package com.google.cloud.documentai.v1
Enum Processor.State
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<Processor.State>
- Enclosing class:
- Processor
public static enum Processor.State
extends Enum<Processor.State>
implements com.google.protobuf.ProtocolMessageEnum
The possible states of the processor.Protobuf enum
google.cloud.documentai.v1.Processor.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones).The processor is being deleted, will be removed if successful.The processor is disabled.The processor is being disabled, will become `DISABLED` if successful.The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.The processor is being enabled, will become `ENABLED` if successful.The processor failed during creation or initialization of feature dependencies.The processor is in an unspecified state. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones).static final intThe processor is being deleted, will be removed if successful.static final intThe processor is disabled.static final intThe processor is being disabled, will become `DISABLED` if successful.static final intThe processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.static final intThe processor is being enabled, will become `ENABLED` if successful.static final intThe processor failed during creation or initialization of feature dependencies.static final intThe processor is in an unspecified state. -
Method Summary
Modifier and TypeMethodDescriptionstatic Processor.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<Processor.State>static Processor.StatevalueOf(int value) Deprecated.static Processor.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static Processor.StateReturns the enum constant of this type with the specified name.static Processor.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
STATE_UNSPECIFIED
The processor is in an unspecified state.
STATE_UNSPECIFIED = 0; -
ENABLED
The processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.
ENABLED = 1; -
DISABLED
The processor is disabled.
DISABLED = 2; -
ENABLING
The processor is being enabled, will become `ENABLED` if successful.
ENABLING = 3; -
DISABLING
The processor is being disabled, will become `DISABLED` if successful.
DISABLING = 4; -
CREATING
The processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.
CREATING = 5; -
FAILED
The processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.
FAILED = 6; -
DELETING
The processor is being deleted, will be removed if successful.
DELETING = 7; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEThe processor is in an unspecified state.
STATE_UNSPECIFIED = 0;- See Also:
-
ENABLED_VALUE
public static final int ENABLED_VALUEThe processor is enabled, i.e., has an enabled version which can currently serve processing requests and all the feature dependencies have been successfully initialized.
ENABLED = 1;- See Also:
-
DISABLED_VALUE
public static final int DISABLED_VALUEThe processor is disabled.
DISABLED = 2;- See Also:
-
ENABLING_VALUE
public static final int ENABLING_VALUEThe processor is being enabled, will become `ENABLED` if successful.
ENABLING = 3;- See Also:
-
DISABLING_VALUE
public static final int DISABLING_VALUEThe processor is being disabled, will become `DISABLED` if successful.
DISABLING = 4;- See Also:
-
CREATING_VALUE
public static final int CREATING_VALUEThe processor is being created, will become either `ENABLED` (for successful creation) or `FAILED` (for failed ones). Once a processor is in this state, it can then be used for document processing, but the feature dependencies of the processor might not be fully created yet.
CREATING = 5;- See Also:
-
FAILED_VALUE
public static final int FAILED_VALUEThe processor failed during creation or initialization of feature dependencies. The user should delete the processor and recreate one as all the functionalities of the processor are disabled.
FAILED = 6;- See Also:
-
DELETING_VALUE
public static final int DELETING_VALUEThe processor is being deleted, will be removed if successful.
DELETING = 7;- 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
-
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
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
-