Package com.google.cloud.documentai.v1
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 ClassesModifier and TypeClassDescriptionstatic final classContains past or forward revisions of this document.static final classHuman Review information of the document.static interfacestatic enumNested 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.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAgent()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.TimestampOrBuilderThe time that the revision was created, internally generated by doc proto storage at the time of create.static Document.Revisionstatic final com.google.protobuf.Descriptors.DescriptorHuman 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.com.google.protobuf.Parser<Document.Revision>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.intbooleanhasAgent()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.inthashCode()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 booleanstatic Document.Revision.Builderstatic Document.Revision.BuildernewBuilder(Document.Revision prototype) protected Document.Revision.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Document.RevisionparseDelimitedFrom(InputStream input) static Document.RevisionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.RevisionparseFrom(byte[] data) static Document.RevisionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.RevisionparseFrom(com.google.protobuf.ByteString data) static Document.RevisionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.RevisionparseFrom(com.google.protobuf.CodedInputStream input) static Document.RevisionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.RevisionparseFrom(InputStream input) static Document.RevisionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Document.RevisionparseFrom(ByteBuffer data) static Document.RevisionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Document.Revision>parser()voidwriteTo(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, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
AGENT_FIELD_NUMBER
public static final int AGENT_FIELD_NUMBER- See Also:
-
PROCESSOR_FIELD_NUMBER
public static final int PROCESSOR_FIELD_NUMBER- See Also:
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER- See Also:
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER- See Also:
-
PARENT_IDS_FIELD_NUMBER
public static final int PARENT_IDS_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
HUMAN_REVIEW_FIELD_NUMBER
public static final int HUMAN_REVIEW_FIELD_NUMBER- See Also:
-
-
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
-
getSourceCase
- Specified by:
getSourceCasein interfaceDocument.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:
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
getHumanReviewOrBuilder
Human Review information of this revision.
.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;- Specified by:
getHumanReviewOrBuilderin interfaceDocument.RevisionOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.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
- Throws:
IOException
-
parseFrom
public static Document.Revision parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Revision.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-