Enum Document.Provenance.OperationType
- java.lang.Object
-
- java.lang.Enum<Document.Provenance.OperationType>
-
- com.google.cloud.documentai.v1beta3.Document.Provenance.OperationType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<Document.Provenance.OperationType>
- Enclosing class:
- Document.Provenance
public static enum Document.Provenance.OperationType extends Enum<Document.Provenance.OperationType> implements com.google.protobuf.ProtocolMessageEnum
If a processor or agent does an explicit operation on existing elements.
Protobuf enumgoogle.cloud.documentai.v1beta3.Document.Provenance.OperationType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ADD
Add an element.EVAL_APPROVED
Deprecated.EVAL_REQUESTED
Deprecated.EVAL_SKIPPED
Deprecated.OPERATION_TYPE_UNSPECIFIED
Operation type unspecified.REMOVE
Remove an element identified by `parent`.REPLACE
Currently unused.UNRECOGNIZED
UPDATE
Updates any fields within the given provenance scope of the message.
-
Field Summary
Fields Modifier and Type Field Description static int
ADD_VALUE
Add an element.static int
EVAL_APPROVED_VALUE
Deprecated.static int
EVAL_REQUESTED_VALUE
Deprecated.static int
EVAL_SKIPPED_VALUE
Deprecated.static int
OPERATION_TYPE_UNSPECIFIED_VALUE
Operation type unspecified.static int
REMOVE_VALUE
Remove an element identified by `parent`.static int
REPLACE_VALUE
Currently unused.static int
UPDATE_VALUE
Updates any fields within the given provenance scope of the message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static Document.Provenance.OperationType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<Document.Provenance.OperationType>
internalGetValueMap()
static Document.Provenance.OperationType
valueOf(int value)
Deprecated.static Document.Provenance.OperationType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static Document.Provenance.OperationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Document.Provenance.OperationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OPERATION_TYPE_UNSPECIFIED
public static final Document.Provenance.OperationType OPERATION_TYPE_UNSPECIFIED
Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.
OPERATION_TYPE_UNSPECIFIED = 0;
-
ADD
public static final Document.Provenance.OperationType ADD
Add an element.
ADD = 1;
-
REMOVE
public static final Document.Provenance.OperationType REMOVE
Remove an element identified by `parent`.
REMOVE = 2;
-
UPDATE
public static final Document.Provenance.OperationType UPDATE
Updates any fields within the given provenance scope of the message. It overwrites the fields rather than replacing them. Use this when you want to update a field value of an entity without also updating all the child properties.
UPDATE = 7;
-
REPLACE
public static final Document.Provenance.OperationType REPLACE
Currently unused. Replace an element identified by `parent`.
REPLACE = 3;
-
EVAL_REQUESTED
@Deprecated public static final Document.Provenance.OperationType EVAL_REQUESTED
Deprecated.Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true];
-
EVAL_APPROVED
@Deprecated public static final Document.Provenance.OperationType EVAL_APPROVED
Deprecated.Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.
EVAL_APPROVED = 5 [deprecated = true];
-
EVAL_SKIPPED
@Deprecated public static final Document.Provenance.OperationType EVAL_SKIPPED
Deprecated.Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true];
-
UNRECOGNIZED
public static final Document.Provenance.OperationType UNRECOGNIZED
-
-
Field Detail
-
OPERATION_TYPE_UNSPECIFIED_VALUE
public static final int OPERATION_TYPE_UNSPECIFIED_VALUE
Operation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.
OPERATION_TYPE_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
ADD_VALUE
public static final int ADD_VALUE
Add an element.
ADD = 1;
- See Also:
- Constant Field Values
-
REMOVE_VALUE
public static final int REMOVE_VALUE
Remove an element identified by `parent`.
REMOVE = 2;
- See Also:
- Constant Field Values
-
UPDATE_VALUE
public static final int UPDATE_VALUE
Updates any fields within the given provenance scope of the message. It overwrites the fields rather than replacing them. Use this when you want to update a field value of an entity without also updating all the child properties.
UPDATE = 7;
- See Also:
- Constant Field Values
-
REPLACE_VALUE
public static final int REPLACE_VALUE
Currently unused. Replace an element identified by `parent`.
REPLACE = 3;
- See Also:
- Constant Field Values
-
EVAL_REQUESTED_VALUE
@Deprecated public static final int EVAL_REQUESTED_VALUE
Deprecated.Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true];
- See Also:
- Constant Field Values
-
EVAL_APPROVED_VALUE
@Deprecated public static final int EVAL_APPROVED_VALUE
Deprecated.Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.
EVAL_APPROVED = 5 [deprecated = true];
- See Also:
- Constant Field Values
-
EVAL_SKIPPED_VALUE
@Deprecated public static final int EVAL_SKIPPED_VALUE
Deprecated.Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true];
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static Document.Provenance.OperationType[] 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 (Document.Provenance.OperationType c : Document.Provenance.OperationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Document.Provenance.OperationType 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static Document.Provenance.OperationType 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 Document.Provenance.OperationType 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<Document.Provenance.OperationType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static Document.Provenance.OperationType 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
-
-