Class Document.Revision
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.documentai.v1beta2.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 typegoogle.cloud.documentai.v1beta2.Document.Revision- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDocument.Revision.BuilderContains past or forward revisions of this document.static classDocument.Revision.HumanReviewHuman Review information of the document.static interfaceDocument.Revision.HumanReviewOrBuilderstatic classDocument.Revision.SourceCase-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intAGENT_FIELD_NUMBERstatic intCREATE_TIME_FIELD_NUMBERstatic intHUMAN_REVIEW_FIELD_NUMBERstatic intID_FIELD_NUMBERstatic intPARENT_FIELD_NUMBERstatic intPARENT_IDS_FIELD_NUMBERstatic intPROCESSOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)StringgetAgent()If the change was made by a person specify the name or id of that person.com.google.protobuf.ByteStringgetAgentBytes()If the change was made by a person specify the name or id of that person.com.google.protobuf.TimestampgetCreateTime()The time that the revision was created, internally generated by doc proto storage at the time of create.com.google.protobuf.TimestampOrBuildergetCreateTimeOrBuilder()The time that the revision was created, internally generated by doc proto storage at the time of create.static Document.RevisiongetDefaultInstance()Document.RevisiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()Document.Revision.HumanReviewgetHumanReview()Human Review information of this revision.Document.Revision.HumanReviewOrBuildergetHumanReviewOrBuilder()Human Review information of this revision.StringgetId()Id of the revision, internally generated by doc proto storage.com.google.protobuf.ByteStringgetIdBytes()Id of the revision, internally generated by doc proto storage.intgetParent(int index)Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated.intgetParentCount()Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated.StringgetParentIds(int index)The revisions that this revision is based on.com.google.protobuf.ByteStringgetParentIdsBytes(int index)The revisions that this revision is based on.intgetParentIdsCount()The revisions that this revision is based on.com.google.protobuf.ProtocolStringListgetParentIdsList()The revisions that this revision is based on.List<Integer>getParentList()Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated.com.google.protobuf.Parser<Document.Revision>getParserForType()StringgetProcessor()If the annotation was made by processor identify the processor by its resource name.com.google.protobuf.ByteStringgetProcessorBytes()If the annotation was made by processor identify the processor by its resource name.intgetSerializedSize()Document.Revision.SourceCasegetSourceCase()booleanhasAgent()If the change was made by a person specify the name or id of that person.booleanhasCreateTime()The time that the revision was created, internally generated by doc proto storage at the time of create.inthashCode()booleanhasHumanReview()Human Review information of this revision.booleanhasProcessor()If the annotation was made by processor identify the processor by its resource name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static Document.Revision.BuildernewBuilder()static Document.Revision.BuildernewBuilder(Document.Revision prototype)Document.Revision.BuildernewBuilderForType()protected Document.Revision.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()Document.Revision.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, 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, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
AGENT_FIELD_NUMBER
public static final int AGENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PROCESSOR_FIELD_NUMBER
public static final int PROCESSOR_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PARENT_IDS_FIELD_NUMBER
public static final int PARENT_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HUMAN_REVIEW_FIELD_NUMBER
public static final int HUMAN_REVIEW_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getSourceCase
public Document.Revision.SourceCase 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
public String 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
public String 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
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:
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 public List<Integer> getParentList()
Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=892The 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 public int getParentCount()
Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=892The 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 public int getParent(int index)
Deprecated.google.cloud.documentai.v1beta2.Document.Revision.parent is deprecated. See google/cloud/documentai/v1beta2/document.proto;l=892The 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
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:
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.v1beta2.Document.Revision.HumanReview human_review = 6;- Specified by:
hasHumanReviewin interfaceDocument.RevisionOrBuilder- Returns:
- Whether the humanReview field is set.
-
getHumanReview
public Document.Revision.HumanReview getHumanReview()
Human Review information of this revision.
.google.cloud.documentai.v1beta2.Document.Revision.HumanReview human_review = 6;- Specified by:
getHumanReviewin interfaceDocument.RevisionOrBuilder- Returns:
- The humanReview.
-
getHumanReviewOrBuilder
public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()
Human Review information of this revision.
.google.cloud.documentai.v1beta2.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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- 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
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:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Revision.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
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:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Revision getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-