# Google Cloud Document Ai V1 Client - Class OperationType (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class OperationType.

If a processor or agent does an explicit operation on existing elements.

Protobuf type `google.cloud.documentai.v1.Document.Provenance.OperationType`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1 \\ Document \\ Provenance

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### OPERATION_TYPE_UNSPECIFIED

    Value: 0

Operation type unspecified. If no operation is specified a provenance
entry is simply used to match against a `parent`.

Generated from protobuf enum `OPERATION_TYPE_UNSPECIFIED = 0;`

### ADD

    Value: 1

Add an element.

Generated from protobuf enum `ADD = 1;`

### REMOVE

    Value: 2

Remove an element identified by `parent`.

Generated from protobuf enum `REMOVE = 2;`

### UPDATE

    Value: 7

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.

Generated from protobuf enum `UPDATE = 7;`

### REPLACE

    Value: 3

Currently unused. Replace an element identified by `parent`.

Generated from protobuf enum `REPLACE = 3;`

### EVAL_REQUESTED

    Value: 4

Deprecated. Request human review for the element identified by
`parent`.

Generated from protobuf enum `EVAL_REQUESTED = 4 [deprecated = true];`

### EVAL_APPROVED

    Value: 5

Deprecated. Element is reviewed and approved at human review,
confidence will be set to 1.0.

Generated from protobuf enum `EVAL_APPROVED = 5 [deprecated = true];`

### EVAL_SKIPPED

    Value: 6

Deprecated. Element is skipped in the validation process.

Generated from protobuf enum `EVAL_SKIPPED = 6 [deprecated = true];`