Class 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.GeneratedMessageV3.Builder<Document.Revision.Builder>
    implements Document.RevisionOrBuilder
     Contains past or forward revisions of this document.
     
    Protobuf type google.cloud.documentai.v1beta3.Document.Revision
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • clear

        public Document.Revision.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • getDefaultInstanceForType

        public Document.Revision getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public Document.Revision build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public Document.Revision buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public Document.Revision.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • setField

        public Document.Revision.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                  Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • clearField

        public Document.Revision.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • clearOneof

        public Document.Revision.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • setRepeatedField

        public Document.Revision.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          int index,
                                                          Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • addRepeatedField

        public Document.Revision.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                          Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • mergeFrom

        public Document.Revision.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Revision.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • mergeFrom

        public Document.Revision.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                   com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                            throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<Document.Revision.Builder>
        Throws:
        IOException
      • 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:
        hasAgent in interface Document.RevisionOrBuilder
        Returns:
        Whether the agent field is set.
      • getAgent

        public String getAgent()
         If the change was made by a person specify the name or id of that
         person.
         
        string agent = 4;
        Specified by:
        getAgent in interface Document.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:
        getAgentBytes in interface Document.RevisionOrBuilder
        Returns:
        The bytes for agent.
      • setAgent

        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;
        Parameters:
        value - The agent to set.
        Returns:
        This builder for chaining.
      • 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:
        This builder for chaining.
      • setAgentBytes

        public Document.Revision.Builder setAgentBytes​(com.google.protobuf.ByteString value)
         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:
        hasProcessor in interface Document.RevisionOrBuilder
        Returns:
        Whether the processor field is set.
      • getProcessor

        public String getProcessor()
         If the annotation was made by processor identify the processor by its
         resource name.
         
        string processor = 5;
        Specified by:
        getProcessor in interface Document.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:
        getProcessorBytes in interface Document.RevisionOrBuilder
        Returns:
        The bytes for processor.
      • setProcessor

        public Document.Revision.Builder setProcessor​(String value)
         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

        public Document.Revision.Builder clearProcessor()
         If the annotation was made by processor identify the processor by its
         resource name.
         
        string processor = 5;
        Returns:
        This builder for chaining.
      • setProcessorBytes

        public Document.Revision.Builder setProcessorBytes​(com.google.protobuf.ByteString value)
         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

        public String getId()
         Id of the revision, internally generated by doc proto storage.
         Unique within the context of the document.
         
        string id = 1;
        Specified by:
        getId in interface Document.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:
        getIdBytes in interface Document.RevisionOrBuilder
        Returns:
        The bytes for id.
      • setId

        public Document.Revision.Builder setId​(String value)
         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

        public Document.Revision.Builder 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

        public Document.Revision.Builder setIdBytes​(com.google.protobuf.ByteString value)
         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
        public List<Integer> getParentList()
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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];
        Specified by:
        getParentList in interface Document.RevisionOrBuilder
        Returns:
        A list containing the parent.
      • getParentCount

        @Deprecated
        public int getParentCount()
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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];
        Specified by:
        getParentCount in interface Document.RevisionOrBuilder
        Returns:
        The count of parent.
      • getParent

        @Deprecated
        public int getParent​(int index)
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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];
        Specified by:
        getParent in interface Document.RevisionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The parent at the given index.
      • setParent

        @Deprecated
        public Document.Revision.Builder setParent​(int index,
                                                   int value)
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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:
        index - The index to set the value at.
        value - The parent to set.
        Returns:
        This builder for chaining.
      • addParent

        @Deprecated
        public Document.Revision.Builder addParent​(int value)
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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:
        value - The parent to add.
        Returns:
        This builder for chaining.
      • addAllParent

        @Deprecated
        public Document.Revision.Builder addAllParent​(Iterable<? extends Integer> values)
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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:
        values - The parent to add.
        Returns:
        This builder for chaining.
      • clearParent

        @Deprecated
        public Document.Revision.Builder clearParent()
        Deprecated.
        google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta3/document.proto;l=866
         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:
        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:
        getParentIdsList in interface Document.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:
        getParentIdsCount in interface Document.RevisionOrBuilder
        Returns:
        The count of parentIds.
      • getParentIds

        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;
        Specified by:
        getParentIds in interface Document.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:
        getParentIdsBytes in interface Document.RevisionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the parentIds at the given index.
      • setParentIds

        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:
        index - The index to set the value at.
        value - The parentIds to set.
        Returns:
        This builder for chaining.
      • addParentIds

        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;
        Parameters:
        value - The parentIds to add.
        Returns:
        This builder for chaining.
      • addAllParentIds

        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;
        Parameters:
        values - The parentIds to add.
        Returns:
        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:
        This builder for chaining.
      • addParentIdsBytes

        public Document.Revision.Builder addParentIdsBytes​(com.google.protobuf.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;
        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:
        hasCreateTime in interface Document.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:
        getCreateTime in interface Document.RevisionOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public Document.Revision.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         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

        public Document.Revision.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         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

        public Document.Revision.Builder 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:
        getCreateTimeOrBuilder in interface Document.RevisionOrBuilder
      • hasHumanReview

        public boolean hasHumanReview()
         Human Review information of this revision.
         
        .google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
        Specified by:
        hasHumanReview in interface Document.RevisionOrBuilder
        Returns:
        Whether the humanReview field is set.
      • clearHumanReview

        public Document.Revision.Builder clearHumanReview()
         Human Review information of this revision.
         
        .google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
      • getHumanReviewBuilder

        public Document.Revision.HumanReview.Builder getHumanReviewBuilder()
         Human Review information of this revision.
         
        .google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
      • setUnknownFields

        public final Document.Revision.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>
      • mergeUnknownFields

        public final Document.Revision.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<Document.Revision.Builder>