Package com.google.cloud.documentai.v1
Class Document.Revision
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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.GeneratedMessageV3 implements Document.RevisionOrBuilder
Contains past or forward revisions of this document.
Protobuf typegoogle.cloud.documentai.v1.Document.Revision
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Document.Revision.Builder
Contains past or forward revisions of this document.static class
Document.Revision.HumanReview
Human Review information of the document.static interface
Document.Revision.HumanReviewOrBuilder
static class
Document.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 int
AGENT_FIELD_NUMBER
static int
CREATE_TIME_FIELD_NUMBER
static int
HUMAN_REVIEW_FIELD_NUMBER
static int
ID_FIELD_NUMBER
static int
PARENT_FIELD_NUMBER
static int
PARENT_IDS_FIELD_NUMBER
static int
PROCESSOR_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(Object obj)
String
getAgent()
If the change was made by a person specify the name or id of that person.com.google.protobuf.ByteString
getAgentBytes()
If the change was made by a person specify the name or id of that person.com.google.protobuf.Timestamp
getCreateTime()
The time that the revision was created, internally generated by doc proto storage at the time of create.com.google.protobuf.TimestampOrBuilder
getCreateTimeOrBuilder()
The time that the revision was created, internally generated by doc proto storage at the time of create.static Document.Revision
getDefaultInstance()
Document.Revision
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
Document.Revision.HumanReview
getHumanReview()
Human Review information of this revision.Document.Revision.HumanReviewOrBuilder
getHumanReviewOrBuilder()
Human Review information of this revision.String
getId()
Id of the revision, internally generated by doc proto storage.com.google.protobuf.ByteString
getIdBytes()
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
getParentCount()
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.String
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
getParentIdsCount()
The revisions that this revision is based on.com.google.protobuf.ProtocolStringList
getParentIdsList()
The revisions that this revision is based on.List<Integer>
getParentList()
Deprecated.google.cloud.documentai.v1.Document.Revision.parent is deprecated.com.google.protobuf.Parser<Document.Revision>
getParserForType()
String
getProcessor()
If the annotation was made by processor identify the processor by its resource name.com.google.protobuf.ByteString
getProcessorBytes()
If the annotation was made by processor identify the processor by its resource name.int
getSerializedSize()
Document.Revision.SourceCase
getSourceCase()
boolean
hasAgent()
If the change was made by a person specify the name or id of that person.boolean
hasCreateTime()
The time that the revision was created, internally generated by doc proto storage at the time of create.int
hashCode()
boolean
hasHumanReview()
Human Review information of this revision.boolean
hasProcessor()
If the annotation was made by processor identify the processor by its resource name.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static Document.Revision.Builder
newBuilder()
static Document.Revision.Builder
newBuilder(Document.Revision prototype)
Document.Revision.Builder
newBuilderForType()
protected Document.Revision.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static Document.Revision
parseDelimitedFrom(InputStream input)
static Document.Revision
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Revision
parseFrom(byte[] data)
static Document.Revision
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Revision
parseFrom(com.google.protobuf.ByteString data)
static Document.Revision
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Revision
parseFrom(com.google.protobuf.CodedInputStream input)
static Document.Revision
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Revision
parseFrom(InputStream input)
static Document.Revision
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static Document.Revision
parseFrom(ByteBuffer data)
static Document.Revision
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<Document.Revision>
parser()
Document.Revision.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.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 classcom.google.protobuf.GeneratedMessageV3
-
getSourceCase
public Document.Revision.SourceCase getSourceCase()
- Specified by:
getSourceCase
in 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:
hasAgent
in 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:
getAgent
in 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:
getAgentBytes
in 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:
hasProcessor
in 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:
getProcessor
in 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:
getProcessorBytes
in 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:
getId
in 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:
getIdBytes
in interfaceDocument.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=862The 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 interfaceDocument.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=862The 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 interfaceDocument.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=862The 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 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:
getParentIdsList
in 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:
getParentIdsCount
in 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:
getParentIds
in 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:
getParentIdsBytes
in 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:
hasCreateTime
in 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:
getCreateTime
in 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:
getCreateTimeOrBuilder
in interfaceDocument.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 interfaceDocument.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 interfaceDocument.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 interfaceDocument.RevisionOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Document.Revision.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public Document.Revision getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-