Package com.google.cloud.documentai.v1
Enum HumanReviewStatus.State
- java.lang.Object
-
- java.lang.Enum<HumanReviewStatus.State>
-
- com.google.cloud.documentai.v1.HumanReviewStatus.State
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<HumanReviewStatus.State>
- Enclosing class:
- HumanReviewStatus
public static enum HumanReviewStatus.State extends Enum<HumanReviewStatus.State> implements com.google.protobuf.ProtocolMessageEnum
The final state of human review on a processed document.
Protobuf enumgoogle.cloud.documentai.v1.HumanReviewStatus.State
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORSome error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.IN_PROGRESSHuman review validation is triggered and the document is under review.SKIPPEDHuman review is skipped for the document.STATE_UNSPECIFIEDHuman review state is unspecified.UNRECOGNIZEDVALIDATION_PASSEDHuman review validation is triggered and passed, so no review is needed.
-
Field Summary
Fields Modifier and Type Field Description static intERROR_VALUESome error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.static intIN_PROGRESS_VALUEHuman review validation is triggered and the document is under review.static intSKIPPED_VALUEHuman review is skipped for the document.static intSTATE_UNSPECIFIED_VALUEHuman review state is unspecified.static intVALIDATION_PASSED_VALUEHuman review validation is triggered and passed, so no review is needed.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static HumanReviewStatus.StateforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<HumanReviewStatus.State>internalGetValueMap()static HumanReviewStatus.StatevalueOf(int value)Deprecated.static HumanReviewStatus.StatevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static HumanReviewStatus.StatevalueOf(String name)Returns the enum constant of this type with the specified name.static HumanReviewStatus.State[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STATE_UNSPECIFIED
public static final HumanReviewStatus.State STATE_UNSPECIFIED
Human review state is unspecified. Most likely due to an internal error.
STATE_UNSPECIFIED = 0;
-
SKIPPED
public static final HumanReviewStatus.State SKIPPED
Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.
SKIPPED = 1;
-
VALIDATION_PASSED
public static final HumanReviewStatus.State VALIDATION_PASSED
Human review validation is triggered and passed, so no review is needed.
VALIDATION_PASSED = 2;
-
IN_PROGRESS
public static final HumanReviewStatus.State IN_PROGRESS
Human review validation is triggered and the document is under review.
IN_PROGRESS = 3;
-
ERROR
public static final HumanReviewStatus.State ERROR
Some error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.
ERROR = 4;
-
UNRECOGNIZED
public static final HumanReviewStatus.State UNRECOGNIZED
-
-
Field Detail
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUE
Human review state is unspecified. Most likely due to an internal error.
STATE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
SKIPPED_VALUE
public static final int SKIPPED_VALUE
Human review is skipped for the document. This can happen because human review isn't enabled on the processor or the processing request has been set to skip this document.
SKIPPED = 1;- See Also:
- Constant Field Values
-
VALIDATION_PASSED_VALUE
public static final int VALIDATION_PASSED_VALUE
Human review validation is triggered and passed, so no review is needed.
VALIDATION_PASSED = 2;- See Also:
- Constant Field Values
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUE
Human review validation is triggered and the document is under review.
IN_PROGRESS = 3;- See Also:
- Constant Field Values
-
ERROR_VALUE
public static final int ERROR_VALUE
Some error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.
ERROR = 4;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static HumanReviewStatus.State[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (HumanReviewStatus.State c : HumanReviewStatus.State.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HumanReviewStatus.State valueOf(String name)
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 public static HumanReviewStatus.State valueOf(int value)
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
public static HumanReviewStatus.State forNumber(int value)
- 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<HumanReviewStatus.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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static HumanReviewStatus.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
-
-