Class Document.Revision

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.documentai.v1.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.GeneratedMessage implements Document.RevisionOrBuilder
 Contains past or forward revisions of this document.
 
Protobuf type google.cloud.documentai.v1.Document.Revision
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    Contains past or forward revisions of this document.
    static final class 
    Human Review information of the document.
    static interface 
     
    static enum 
     

    Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage

    com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage

    com.google.protobuf.AbstractMessage.BuilderParent

    Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

    com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     
    static final int
     

    Fields inherited from class com.google.protobuf.GeneratedMessage

    alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFields

    Fields inherited from class com.google.protobuf.AbstractMessage

    memoizedSize

    Fields inherited from class com.google.protobuf.AbstractMessageLite

    memoizedHashCode
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    If the change was made by a person specify the name or id of that person.
    com.google.protobuf.ByteString
    If the change was made by a person specify the name or id of that person.
    com.google.protobuf.Timestamp
    The time that the revision was created, internally generated by doc proto storage at the time of create.
    com.google.protobuf.TimestampOrBuilder
    The time that the revision was created, internally generated by doc proto storage at the time of create.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    Human Review information of this revision.
    Human Review information of this revision.
    Id of the revision, internally generated by doc proto storage.
    com.google.protobuf.ByteString
    Id of the revision, internally generated by doc proto storage.
    int
    getParent(int index)
    Deprecated.
    google.cloud.documentai.v1.Document.Revision.parent is deprecated.
    int
    Deprecated.
    google.cloud.documentai.v1.Document.Revision.parent is deprecated.
    getParentIds(int index)
    The revisions that this revision is based on.
    com.google.protobuf.ByteString
    getParentIdsBytes(int index)
    The revisions that this revision is based on.
    int
    The revisions that this revision is based on.
    com.google.protobuf.ProtocolStringList
    The revisions that this revision is based on.
    Deprecated.
    google.cloud.documentai.v1.Document.Revision.parent is deprecated.
    com.google.protobuf.Parser<Document.Revision>
     
    If the annotation was made by processor identify the processor by its resource name.
    com.google.protobuf.ByteString
    If the annotation was made by processor identify the processor by its resource name.
    int
     
     
    boolean
    If the change was made by a person specify the name or id of that person.
    boolean
    The time that the revision was created, internally generated by doc proto storage at the time of create.
    int
     
    boolean
    Human Review information of this revision.
    boolean
    If the annotation was made by processor identify the processor by its resource name.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
     
     
    newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
     
     
    parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(byte[] data)
     
    parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.ByteString data)
     
    parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    parseFrom(com.google.protobuf.CodedInputStream input)
     
    parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
     
    parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    static com.google.protobuf.Parser<Document.Revision>
     
     
    void
    writeTo(com.google.protobuf.CodedOutputStream output)
     

    Methods inherited from class com.google.protobuf.GeneratedMessage

    canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag

    Methods inherited from class com.google.protobuf.AbstractMessage

    findInitializationErrors, getInitializationErrorString, hashFields, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite

    addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLite

    toByteArray, toByteString, writeDelimitedTo, writeTo

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Field Details

  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getSourceCase

      public Document.Revision.SourceCase getSourceCase()
      Specified by:
      getSourceCase in interface Document.RevisionOrBuilder
    • 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.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886
       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.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886
       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.v1.Document.Revision.parent is deprecated. See google/cloud/documentai/v1/document.proto;l=886
       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.v1.Document.Revision.HumanReview human_review = 6;
      Specified by:
      hasHumanReview in interface Document.RevisionOrBuilder
      Returns:
      Whether the humanReview field is set.
    • getHumanReview

      public Document.Revision.HumanReview getHumanReview()
       Human Review information of this revision.
       
      .google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;
      Specified by:
      getHumanReview in interface Document.RevisionOrBuilder
      Returns:
      The humanReview.
    • getHumanReviewOrBuilder

      public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()
       Human Review information of this revision.
       
      .google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;
      Specified by:
      getHumanReviewOrBuilder in interface Document.RevisionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static Document.Revision parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static Document.Revision parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static Document.Revision.Builder newBuilder()
    • newBuilder

      public static Document.Revision.Builder newBuilder(Document.Revision prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Document.Revision getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Document.Revision> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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