public static final class Document.Revision extends GeneratedMessageV3 implements Document.RevisionOrBuilder
Contains past or forward revisions of this document.
Protobuf type google.cloud.documentai.v1beta3.Document.Revision
Static Fields
AGENT_FIELD_NUMBER
public static final int AGENT_FIELD_NUMBER
Field Value
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value
HUMAN_REVIEW_FIELD_NUMBER
public static final int HUMAN_REVIEW_FIELD_NUMBER
Field Value
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value
PROCESSOR_FIELD_NUMBER
public static final int PROCESSOR_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Document.Revision getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Document.Revision.Builder newBuilder()
Returns
newBuilder(Document.Revision prototype)
public static Document.Revision.Builder newBuilder(Document.Revision prototype)
Parameter
Returns
public static Document.Revision parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Revision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Revision parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Revision parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Revision parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Document.Revision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Revision parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Revision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Revision parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Revision> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getAgent()
If the change was made by a person specify the name or id of that
person.
string agent = 4;
Returns
Type | Description |
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
getCreateTime()
public Timestamp getCreateTime()
The time that the revision was created.
.google.protobuf.Timestamp create_time = 3;
Returns
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
The time that the revision was created.
.google.protobuf.Timestamp create_time = 3;
Returns
getDefaultInstanceForType()
public Document.Revision getDefaultInstanceForType()
Returns
getHumanReview()
public Document.Revision.HumanReview getHumanReview()
Human Review information of this revision.
.google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
Returns
getHumanReviewOrBuilder()
public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()
Human Review information of this revision.
.google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
Returns
getId()
Id of the revision. Unique within the context of the document.
string id = 1;
Returns
getIdBytes()
public ByteString getIdBytes()
Id of the revision. Unique within the context of the document.
string id = 1;
Returns
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
Name | Description |
index | int
The index of the element to return.
|
Returns
Type | Description |
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
Type | Description |
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
Type | Description |
List<Integer> | A list containing the parent.
|
getParserForType()
public Parser<Document.Revision> getParserForType()
Returns
Overrides
getProcessor()
public String getProcessor()
If the annotation was made by processor identify the processor by its
resource name.
string processor = 5;
Returns
Type | Description |
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
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSourceCase()
public Document.Revision.SourceCase getSourceCase()
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
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
Type | Description |
boolean | Whether the createTime field is set.
|
hasHumanReview()
public boolean hasHumanReview()
Human Review information of this revision.
.google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
Returns
Type | Description |
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
Type | Description |
boolean | Whether the processor field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Document.Revision.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Revision.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Document.Revision.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions