Class Document.Revision (2.1.9)

public static final class Document.Revision extends GeneratedMessageV3 implements Document.RevisionOrBuilder

Contains past or forward revisions of this document.

Protobuf type google.cloud.documentai.v1.Document.Revision

Fields

AGENT_FIELD_NUMBER

public static final int AGENT_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

HUMAN_REVIEW_FIELD_NUMBER

public static final int HUMAN_REVIEW_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

PARENT_FIELD_NUMBER

public static final int PARENT_FIELD_NUMBER
Field Value
TypeDescription
int

PROCESSOR_FIELD_NUMBER

public static final int PROCESSOR_FIELD_NUMBER
Field Value
TypeDescription
int

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAgent()

public String getAgent()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
String

The agent.

getAgentBytes()

public ByteString getAgentBytes()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
ByteString

The bytes for agent.

getCreateTime()

public Timestamp getCreateTime()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstance()

public static Document.Revision getDefaultInstance()
Returns
TypeDescription
Document.Revision

getDefaultInstanceForType()

public Document.Revision getDefaultInstanceForType()
Returns
TypeDescription
Document.Revision

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

getHumanReview()

public Document.Revision.HumanReview getHumanReview()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.HumanReview

The humanReview.

getHumanReviewOrBuilder()

public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
Document.Revision.HumanReviewOrBuilder

getId()

public String getId()

Id of the revision. Unique within the context of the document.

string id = 1;

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Id of the revision. Unique within the context of the document.

string id = 1;

Returns
TypeDescription
ByteString

The bytes for id.

getParent(int index)

public int getParent(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
int

The parent at the given index.

getParentCount()

public int getParentCount()

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;

Returns
TypeDescription
int

The count of parent.

getParentList()

public List<Integer> getParentList()

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;

Returns
TypeDescription
List<Integer>

A list containing the parent.

getParserForType()

public Parser<Document.Revision> getParserForType()
Returns
TypeDescription
Parser<Revision>
Overrides

getProcessor()

public String getProcessor()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
String

The processor.

getProcessorBytes()

public ByteString getProcessorBytes()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
ByteString

The bytes for processor.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSourceCase()

public Document.Revision.SourceCase getSourceCase()
Returns
TypeDescription
Document.Revision.SourceCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAgent()

public boolean hasAgent()

If the change was made by a person specify the name or id of that person.

string agent = 4;

Returns
TypeDescription
boolean

Whether the agent field is set.

hasCreateTime()

public boolean hasCreateTime()

The time that the revision was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasHumanReview()

public boolean hasHumanReview()

Human Review information of this revision.

.google.cloud.documentai.v1.Document.Revision.HumanReview human_review = 6;

Returns
TypeDescription
boolean

Whether the humanReview field is set.

hasProcessor()

public boolean hasProcessor()

If the annotation was made by processor identify the processor by its resource name.

string processor = 5;

Returns
TypeDescription
boolean

Whether the processor field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilder()

public static Document.Revision.Builder newBuilder()
Returns
TypeDescription
Document.Revision.Builder

newBuilder(Document.Revision prototype)

public static Document.Revision.Builder newBuilder(Document.Revision prototype)
Parameter
NameDescription
prototypeDocument.Revision
Returns
TypeDescription
Document.Revision.Builder

newBuilderForType()

public Document.Revision.Builder newBuilderForType()
Returns
TypeDescription
Document.Revision.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Document.Revision.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Document.Revision.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

parseDelimitedFrom(InputStream input)

public static Document.Revision parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Document.Revision parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Document.Revision parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Document.Revision parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Document.Revision parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Document.Revision parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Document.Revision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Document.Revision
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Document.Revision> parser()
Returns
TypeDescription
Parser<Revision>

toBuilder()

public Document.Revision.Builder toBuilder()
Returns
TypeDescription
Document.Revision.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException