Package com.google.cloud.documentai.v1
Class Document.Revision.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
com.google.cloud.documentai.v1.Document.Revision.Builder
- All Implemented Interfaces:
Document.RevisionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Document.Revision
public static final class Document.Revision.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
implements Document.RevisionOrBuilder
Contains past or forward revisions of this document.Protobuf type
google.cloud.documentai.v1.Document.Revision-
Method Summary
Modifier and TypeMethodDescriptionaddAllParent(Iterable<? extends Integer> values) Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.addAllParentIds(Iterable<String> values) The revisions that this revision is based on.addParent(int value) Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.addParentIds(String value) The revisions that this revision is based on.addParentIdsBytes(com.google.protobuf.ByteString value) The revisions that this revision is based on.build()clear()If the change was made by a person specify the name or id of that person.The time that the revision was created, internally generated by doc proto storage at the time of create.Human Review information of this revision.clearId()Id of the revision, internally generated by doc proto storage.Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.The revisions that this revision is based on.If the annotation was made by processor identify the processor by its resource name.getAgent()If the change was made by a person specify the name or id of that person.com.google.protobuf.ByteStringIf the change was made by a person specify the name or id of that person.com.google.protobuf.TimestampThe time that the revision was created, internally generated by doc proto storage at the time of create.com.google.protobuf.Timestamp.BuilderThe time that the revision was created, internally generated by doc proto storage at the time of create.com.google.protobuf.TimestampOrBuilderThe time that the revision was created, internally generated by doc proto storage at the time of create.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorHuman Review information of this revision.Human Review information of this revision.Human Review information of this revision.getId()Id of the revision, internally generated by doc proto storage.com.google.protobuf.ByteStringId of the revision, internally generated by doc proto storage.intgetParent(int index) Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.intDeprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.getParentIds(int index) The revisions that this revision is based on.com.google.protobuf.ByteStringgetParentIdsBytes(int index) The revisions that this revision is based on.intThe revisions that this revision is based on.com.google.protobuf.ProtocolStringListThe revisions that this revision is based on.Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.If the annotation was made by processor identify the processor by its resource name.com.google.protobuf.ByteStringIf the annotation was made by processor identify the processor by its resource name.booleanhasAgent()If the change was made by a person specify the name or id of that person.booleanThe time that the revision was created, internally generated by doc proto storage at the time of create.booleanHuman Review information of this revision.booleanIf the annotation was made by processor identify the processor by its resource name.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) The time that the revision was created, internally generated by doc proto storage at the time of create.mergeFrom(Document.Revision other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Human Review information of this revision.If the change was made by a person specify the name or id of that person.setAgentBytes(com.google.protobuf.ByteString value) If the change was made by a person specify the name or id of that person.setCreateTime(com.google.protobuf.Timestamp value) The time that the revision was created, internally generated by doc proto storage at the time of create.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time that the revision was created, internally generated by doc proto storage at the time of create.Human Review information of this revision.setHumanReview(Document.Revision.HumanReview.Builder builderForValue) Human Review information of this revision.Id of the revision, internally generated by doc proto storage.setIdBytes(com.google.protobuf.ByteString value) Id of the revision, internally generated by doc proto storage.setParent(int index, int value) Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.setParentIds(int index, String value) The revisions that this revision is based on.setProcessor(String value) If the annotation was made by processor identify the processor by its resource name.setProcessorBytes(com.google.protobuf.ByteString value) If the annotation was made by processor identify the processor by its resource name.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Revision.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Document.Revision.Builder>
-
mergeFrom
public Document.Revision.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Document.Revision.Builder>- Throws:
IOException
-
getSourceCase
- Specified by:
getSourceCasein interfaceDocument.RevisionOrBuilder
-
clearSource
-
hasAgent
public boolean hasAgent()If the change was made by a person specify the name or id of that person.
string agent = 4;- Specified by:
hasAgentin interfaceDocument.RevisionOrBuilder- Returns:
- Whether the agent field is set.
-
getAgent
If the change was made by a person specify the name or id of that person.
string agent = 4;- Specified by:
getAgentin interfaceDocument.RevisionOrBuilder- Returns:
- The agent.
-
getAgentBytes
public com.google.protobuf.ByteString getAgentBytes()If the change was made by a person specify the name or id of that person.
string agent = 4;- Specified by:
getAgentBytesin interfaceDocument.RevisionOrBuilder- Returns:
- The bytes for agent.
-
setAgent
If the change was made by a person specify the name or id of that person.
string agent = 4;- Parameters:
value- The agent to set.- Returns:
- This builder for chaining.
-
clearAgent
If the change was made by a person specify the name or id of that person.
string agent = 4;- Returns:
- This builder for chaining.
-
setAgentBytes
If the change was made by a person specify the name or id of that person.
string agent = 4;- Parameters:
value- The bytes for agent to set.- Returns:
- This builder for chaining.
-
hasProcessor
public boolean hasProcessor()If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Specified by:
hasProcessorin interfaceDocument.RevisionOrBuilder- Returns:
- Whether the processor field is set.
-
getProcessor
If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Specified by:
getProcessorin interfaceDocument.RevisionOrBuilder- Returns:
- The processor.
-
getProcessorBytes
public com.google.protobuf.ByteString getProcessorBytes()If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Specified by:
getProcessorBytesin interfaceDocument.RevisionOrBuilder- Returns:
- The bytes for processor.
-
setProcessor
If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Parameters:
value- The processor to set.- Returns:
- This builder for chaining.
-
clearProcessor
If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Returns:
- This builder for chaining.
-
setProcessorBytes
If the annotation was made by processor identify the processor by its resource name.
string processor = 5;- Parameters:
value- The bytes for processor to set.- Returns:
- This builder for chaining.
-
getId
Id of the revision, internally generated by doc proto storage. Unique within the context of the document.
string id = 1;- Specified by:
getIdin interfaceDocument.RevisionOrBuilder- Returns:
- The id.
-
getIdBytes
public com.google.protobuf.ByteString getIdBytes()Id of the revision, internally generated by doc proto storage. Unique within the context of the document.
string id = 1;- Specified by:
getIdBytesin interfaceDocument.RevisionOrBuilder- Returns:
- The bytes for id.
-
setId
Id of the revision, internally generated by doc proto storage. Unique within the context of the document.
string id = 1;- Parameters:
value- The id to set.- Returns:
- This builder for chaining.
-
clearId
Id of the revision, internally generated by doc proto storage. Unique within the context of the document.
string id = 1;- Returns:
- This builder for chaining.
-
setIdBytes
Id of the revision, internally generated by doc proto storage. Unique within the context of the document.
string id = 1;- Parameters:
value- The bytes for id to set.- Returns:
- This builder for chaining.
-
getParentList
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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];- Specified by:
getParentListin interfaceDocument.RevisionOrBuilder- Returns:
- A list containing the parent.
-
getParentCount
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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];- Specified by:
getParentCountin interfaceDocument.RevisionOrBuilder- Returns:
- The count of parent.
-
getParent
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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];- Specified by:
getParentin interfaceDocument.RevisionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The parent at the given index.
-
setParent
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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:
index- The index to set the value at.value- The parent to set.- Returns:
- This builder for chaining.
-
addParent
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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:
value- The parent to add.- Returns:
- This builder for chaining.
-
addAllParent
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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:
values- The parent to add.- Returns:
- This builder for chaining.
-
clearParent
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886The 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:
- This builder for chaining.
-
getParentIdsList
public com.google.protobuf.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;- Specified by:
getParentIdsListin interfaceDocument.RevisionOrBuilder- Returns:
- A list containing the parentIds.
-
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;- Specified by:
getParentIdsCountin interfaceDocument.RevisionOrBuilder- Returns:
- The count of parentIds.
-
getParentIds
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;- Specified by:
getParentIdsin interfaceDocument.RevisionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The parentIds at the given index.
-
getParentIdsBytes
public com.google.protobuf.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;- Specified by:
getParentIdsBytesin interfaceDocument.RevisionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the parentIds at the given index.
-
setParentIds
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:
index- The index to set the value at.value- The parentIds to set.- Returns:
- This builder for chaining.
-
addParentIds
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:
value- The parentIds to add.- Returns:
- This builder for chaining.
-
addAllParentIds
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:
values- The parentIds to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
addParentIdsBytes
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:
value- The bytes of the parentIds to add.- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3;- Specified by:
hasCreateTimein interfaceDocument.RevisionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimein interfaceDocument.RevisionOrBuilder- Returns:
- The createTime.
-
setCreateTime
The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3; -
setCreateTime
public Document.Revision.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3; -
mergeCreateTime
The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3; -
clearCreateTime
The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The time that the revision was created, internally generated by doc proto storage at the time of create.
.google.protobuf.Timestamp create_time = 3;- Specified by:
getCreateTimeOrBuilderin interfaceDocument.RevisionOrBuilder
-
hasHumanReview
public boolean hasHumanReview()Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;- Specified by:
hasHumanReviewin interfaceDocument.RevisionOrBuilder- Returns:
- Whether the humanReview field is set.
-
getHumanReview
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;- Specified by:
getHumanReviewin interfaceDocument.RevisionOrBuilder- Returns:
- The humanReview.
-
setHumanReview
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; -
setHumanReview
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; -
mergeHumanReview
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; -
clearHumanReview
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; -
getHumanReviewBuilder
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6; -
getHumanReviewOrBuilder
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;- Specified by:
getHumanReviewOrBuilderin interfaceDocument.RevisionOrBuilder
-