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.v1beta3.Document.Provenance.OperationType| Enum Constant and 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.
|
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Document.Provenance.OperationType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
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;public static final Document.Provenance.OperationType ADD
Add an element.
ADD = 1;public static final Document.Provenance.OperationType REMOVE
Remove an element identified by `parent`.
REMOVE = 2;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;public static final Document.Provenance.OperationType REPLACE
Currently unused. Replace an element identified by `parent`.
REPLACE = 3;@Deprecated public static final Document.Provenance.OperationType EVAL_REQUESTED
Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true];@Deprecated public static final Document.Provenance.OperationType EVAL_APPROVED
Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.
EVAL_APPROVED = 5 [deprecated = true];@Deprecated public static final Document.Provenance.OperationType EVAL_SKIPPED
Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true];public static final Document.Provenance.OperationType UNRECOGNIZED
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;public static final int ADD_VALUE
Add an element.
ADD = 1;public static final int REMOVE_VALUE
Remove an element identified by `parent`.
REMOVE = 2;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;public static final int REPLACE_VALUE
Currently unused. Replace an element identified by `parent`.
REPLACE = 3;@Deprecated public static final int EVAL_REQUESTED_VALUE
Deprecated. Request human review for the element identified by `parent`.
EVAL_REQUESTED = 4 [deprecated = true];@Deprecated public static final int EVAL_APPROVED_VALUE
Deprecated. Element is reviewed and approved at human review, confidence will be set to 1.0.
EVAL_APPROVED = 5 [deprecated = true];@Deprecated public static final int EVAL_SKIPPED_VALUE
Deprecated. Element is skipped in the validation process.
EVAL_SKIPPED = 6 [deprecated = true];public static Document.Provenance.OperationType[] values()
for (Document.Provenance.OperationType c : Document.Provenance.OperationType.values()) System.out.println(c);
public static Document.Provenance.OperationType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Document.Provenance.OperationType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Document.Provenance.OperationType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Document.Provenance.OperationType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Document.Provenance.OperationType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.