Class Document.Revision.Builder (2.8.0)

public static final class Document.Revision.Builder extends GeneratedMessageV3.Builder<Document.Revision.Builder> implements Document.RevisionOrBuilder

Contains past or forward revisions of this document.

Protobuf type google.cloud.documentai.v1.Document.Revision

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllParent(Iterable<? extends Integer> values) (deprecated)

public Document.Revision.Builder addAllParent(Iterable<? extends Integer> values)

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The parent to add.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

addAllParentIds(Iterable<String> values)

public Document.Revision.Builder addAllParentIds(Iterable<String> values)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameter
NameDescription
valuesIterable<String>

The parentIds to add.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

addParent(int value) (deprecated)

public Document.Revision.Builder addParent(int value)

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Parameter
NameDescription
valueint

The parent to add.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

addParentIds(String value)

public Document.Revision.Builder addParentIds(String value)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameter
NameDescription
valueString

The parentIds to add.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

addParentIdsBytes(ByteString value)

public Document.Revision.Builder addParentIdsBytes(ByteString value)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameter
NameDescription
valueByteString

The bytes of the parentIds to add.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Document.Revision.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Revision.Builder
Overrides

build()

public Document.Revision build()
Returns
TypeDescription
Document.Revision

buildPartial()

public Document.Revision buildPartial()
Returns
TypeDescription
Document.Revision

clear()

public Document.Revision.Builder clear()
Returns
TypeDescription
Document.Revision.Builder
Overrides

clearAgent()

public Document.Revision.Builder clearAgent()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

clearCreateTime()

public Document.Revision.Builder clearCreateTime()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Document.Revision.Builder

clearField(Descriptors.FieldDescriptor field)

public Document.Revision.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Document.Revision.Builder
Overrides

clearHumanReview()

public Document.Revision.Builder clearHumanReview()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.Builder

clearId()

public Document.Revision.Builder clearId()

Id of the revision. Unique within the context of the document.

string id = 1;

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Document.Revision.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Document.Revision.Builder
Overrides

clearParent() (deprecated)

public Document.Revision.Builder clearParent()

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

clearParentIds()

public Document.Revision.Builder clearParentIds()

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

clearProcessor()

public Document.Revision.Builder clearProcessor()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

clearSource()

public Document.Revision.Builder clearSource()
Returns
TypeDescription
Document.Revision.Builder

clone()

public Document.Revision.Builder clone()
Returns
TypeDescription
Document.Revision.Builder
Overrides

getAgent()

public String getAgent()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
String

The agent.

getAgentBytes()

public ByteString getAgentBytes()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
ByteString

The bytes for agent.

getCreateTime()

public Timestamp getCreateTime()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Document.Revision getDefaultInstanceForType()
Returns
TypeDescription
Document.Revision

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHumanReview()

public Document.Revision.HumanReview getHumanReview()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.HumanReview

The humanReview.

getHumanReviewBuilder()

public Document.Revision.HumanReview.Builder getHumanReviewBuilder()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.HumanReview.Builder

getHumanReviewOrBuilder()

public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.HumanReviewOrBuilder

getId()

public String getId()

Id of the revision. Unique within the context of the document.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Id of the revision. Unique within the context of the document.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParent(int index) (deprecated)

public int getParent(int index)

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The parent at the given index.

getParentCount() (deprecated)

public int getParentCount()

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Returns
TypeDescription
int

The count of parent.

getParentIds(int index)

public String getParentIds(int index)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The parentIds at the given index.

getParentIdsBytes(int index)

public ByteString getParentIdsBytes(int index)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the parentIds at the given index.

getParentIdsCount()

public int getParentIdsCount()

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Returns
TypeDescription
int

The count of parentIds.

getParentIdsList()

public ProtocolStringList getParentIdsList()

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Returns
TypeDescription
ProtocolStringList

A list containing the parentIds.

getParentList() (deprecated)

public List<Integer> getParentList()

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Returns
TypeDescription
List<Integer>

A list containing the parent.

getProcessor()

public String getProcessor()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
String

The processor.

getProcessorBytes()

public ByteString getProcessorBytes()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
ByteString

The bytes for processor.

getSourceCase()

public Document.Revision.SourceCase getSourceCase()
Returns
TypeDescription
Document.Revision.SourceCase

hasAgent()

public boolean hasAgent()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
boolean

Whether the agent field is set.

hasCreateTime()

public boolean hasCreateTime()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasHumanReview()

public boolean hasHumanReview()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
boolean

Whether the humanReview field is set.

hasProcessor()

public boolean hasProcessor()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
boolean

Whether the processor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCreateTime(Timestamp value)

public Document.Revision.Builder mergeCreateTime(Timestamp value)

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Document.Revision.Builder

mergeFrom(Document.Revision other)

public Document.Revision.Builder mergeFrom(Document.Revision other)
Parameter
NameDescription
otherDocument.Revision
Returns
TypeDescription
Document.Revision.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Document.Revision.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Document.Revision.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Document.Revision.Builder
Overrides

mergeHumanReview(Document.Revision.HumanReview value)

public Document.Revision.Builder mergeHumanReview(Document.Revision.HumanReview value)

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Parameter
NameDescription
valueDocument.Revision.HumanReview
Returns
TypeDescription
Document.Revision.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Document.Revision.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Revision.Builder
Overrides

setAgent(String value)

public Document.Revision.Builder setAgent(String value)

If the change was made by a person specify the name or id of that person.

string agent = 4;

Parameter
NameDescription
valueString

The agent to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setAgentBytes(ByteString value)

public Document.Revision.Builder setAgentBytes(ByteString value)

If the change was made by a person specify the name or id of that person.

string agent = 4;

Parameter
NameDescription
valueByteString

The bytes for agent to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public Document.Revision.Builder setCreateTime(Timestamp value)

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Document.Revision.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Document.Revision.Builder setCreateTime(Timestamp.Builder builderForValue)

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Document.Revision.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Document.Revision.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Document.Revision.Builder
Overrides

setHumanReview(Document.Revision.HumanReview value)

public Document.Revision.Builder setHumanReview(Document.Revision.HumanReview value)

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Parameter
NameDescription
valueDocument.Revision.HumanReview
Returns
TypeDescription
Document.Revision.Builder

setHumanReview(Document.Revision.HumanReview.Builder builderForValue)

public Document.Revision.Builder setHumanReview(Document.Revision.HumanReview.Builder builderForValue)

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Parameter
NameDescription
builderForValueDocument.Revision.HumanReview.Builder
Returns
TypeDescription
Document.Revision.Builder

setId(String value)

public Document.Revision.Builder setId(String value)

Id of the revision. Unique within the context of the document.

string id = 1;

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setIdBytes(ByteString value)

public Document.Revision.Builder setIdBytes(ByteString value)

Id of the revision. Unique within the context of the document.

string id = 1;

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setParent(int index, int value) (deprecated)

public Document.Revision.Builder setParent(int index, int value)

Deprecated. google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=701

The revisions that this revision is based on. This can include one or more parent (when documents are merged.) This field represents the index into the revisions field.

repeated int32 parent = 2 [deprecated = true];

Parameters
NameDescription
indexint

The index to set the value at.

valueint

The parent to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setParentIds(int index, String value)

public Document.Revision.Builder setParentIds(int index, String value)

The revisions that this revision is based on. Must include all the ids that have anything to do with this revision - eg. there are provenance.parent.revision fields that index into this field.

repeated string parent_ids = 7;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The parentIds to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setProcessor(String value)

public Document.Revision.Builder setProcessor(String value)

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Parameter
NameDescription
valueString

The processor to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setProcessorBytes(ByteString value)

public Document.Revision.Builder setProcessorBytes(ByteString value)

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Parameter
NameDescription
valueByteString

The bytes for processor to set.

Returns
TypeDescription
Document.Revision.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Document.Revision.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Document.Revision.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Document.Revision.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Document.Revision.Builder
Overrides