Package com.google.cloud.documentai.v1
Enum 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 enum
google.cloud.documentai.v1.HumanReviewStatus.State-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSome error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.Human review validation is triggered and the document is under review.Human review is skipped for the document.Human review state is unspecified.Human review validation is triggered and passed, so no review is needed. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSome error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.static final intHuman review validation is triggered and the document is under review.static final intHuman review is skipped for the document.static final intHuman review state is unspecified.static final intHuman review validation is triggered and passed, so no review is needed. -
Method Summary
Modifier and TypeMethodDescriptionstatic HumanReviewStatus.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<HumanReviewStatus.State>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.StateReturns 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 Details
-
STATE_UNSPECIFIED
Human review state is unspecified. Most likely due to an internal error.
STATE_UNSPECIFIED = 0; -
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
Human review validation is triggered and passed, so no review is needed.
VALIDATION_PASSED = 2; -
IN_PROGRESS
Human review validation is triggered and the document is under review.
IN_PROGRESS = 3; -
ERROR
Some error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.
ERROR = 4; -
UNRECOGNIZED
-
-
Field Details
-
STATE_UNSPECIFIED_VALUE
public static final int STATE_UNSPECIFIED_VALUEHuman review state is unspecified. Most likely due to an internal error.
STATE_UNSPECIFIED = 0;- See Also:
-
SKIPPED_VALUE
public static final int SKIPPED_VALUEHuman 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:
-
VALIDATION_PASSED_VALUE
public static final int VALIDATION_PASSED_VALUEHuman review validation is triggered and passed, so no review is needed.
VALIDATION_PASSED = 2;- See Also:
-
IN_PROGRESS_VALUE
public static final int IN_PROGRESS_VALUEHuman review validation is triggered and the document is under review.
IN_PROGRESS = 3;- See Also:
-
ERROR_VALUE
public static final int ERROR_VALUESome error happened during triggering human review, see the [state_message][google.cloud.documentai.v1.HumanReviewStatus.state_message] for details.
ERROR = 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<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 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
-