Package com.google.cloud.documentai.v1
Enum Document.Provenance.OperationType
java.lang.Object
java.lang.Enum<Document.Provenance.OperationType>
com.google.cloud.documentai.v1.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 enum
google.cloud.documentai.v1.Document.Provenance.OperationType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAdd an element.Deprecated.Deprecated.Deprecated.Operation type unspecified.Remove an element identified by `parent`.Currently unused.Updates any fields within the given provenance scope of the message. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAdd an element.static final intDeprecated.static final intDeprecated.static final intDeprecated.static final intOperation type unspecified.static final intRemove an element identified by `parent`.static final intCurrently unused.static final intUpdates any fields within the given provenance scope of the message. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<Document.Provenance.OperationType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified 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 Details
-
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
Add an element.
ADD = 1; -
REMOVE
Remove an element identified by `parent`.
REMOVE = 2; -
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
Currently unused. Replace an element identified by `parent`.
REPLACE = 3; -
EVAL_REQUESTED
Deprecated.Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true]; -
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.Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true]; -
UNRECOGNIZED
-
-
Field Details
-
OPERATION_TYPE_UNSPECIFIED_VALUE
public static final int OPERATION_TYPE_UNSPECIFIED_VALUEOperation type unspecified. If no operation is specified a provenance entry is simply used to match against a `parent`.
OPERATION_TYPE_UNSPECIFIED = 0;- See Also:
-
ADD_VALUE
public static final int ADD_VALUEAdd an element.
ADD = 1;- See Also:
-
REMOVE_VALUE
public static final int REMOVE_VALUERemove an element identified by `parent`.
REMOVE = 2;- See Also:
-
UPDATE_VALUE
public static final int UPDATE_VALUEUpdates 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:
-
REPLACE_VALUE
public static final int REPLACE_VALUECurrently unused. Replace an element identified by `parent`.
REPLACE = 3;- See Also:
-
EVAL_REQUESTED_VALUE
Deprecated.Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true];- See Also:
-
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:
-
EVAL_SKIPPED_VALUE
Deprecated.Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true];- 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<Document.Provenance.OperationType> 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 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
-