Class Document.Revision

  • All Implemented Interfaces:
    Document.RevisionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
    Enclosing class:
    Document

    public static final class Document.Revision
    extends com.google.protobuf.GeneratedMessageV3
    implements Document.RevisionOrBuilder
     Contains past or forward revisions of this document.
     
    Protobuf type google.cloud.documentai.v1beta3.Document.Revision
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static Document.Revision parseFrom​(ByteBuffer data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(ByteBuffer data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(com.google.protobuf.ByteString data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(com.google.protobuf.ByteString data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(byte[] data)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(byte[] data,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static Document.Revision parseFrom​(com.google.protobuf.CodedInputStream input,
                                                  com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                           throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected Document.Revision.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<Document.Revision> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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