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
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
AGENT_FIELD_NUMBER
public static final int AGENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
HUMAN_REVIEW_FIELD_NUMBER
public static final int HUMAN_REVIEW_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PARENT_IDS_FIELD_NUMBER
public static final int PARENT_IDS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
PROCESSOR_FIELD_NUMBER
public static final int PROCESSOR_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Document.Revision getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Document.Revision.Builder newBuilder()
newBuilder(Document.Revision prototype)
public static Document.Revision.Builder newBuilder(Document.Revision prototype)
public static Document.Revision parseDelimitedFrom(InputStream input)
public static Document.Revision parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Document.Revision parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Document.Revision parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(CodedInputStream input)
public static Document.Revision parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(InputStream input)
public static Document.Revision parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Document.Revision parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Revision parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Document.Revision> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
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 |
---|
Type | Description |
ByteString | The bytes for agent.
|
getCreateTime()
public 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;
Returns |
---|
Type | Description |
Timestamp | The createTime.
|
getCreateTimeOrBuilder()
public 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;
getDefaultInstanceForType()
public Document.Revision getDefaultInstanceForType()
getHumanReview()
public Document.Revision.HumanReview getHumanReview()
Human Review information of this revision.
.google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
getHumanReviewOrBuilder()
public Document.Revision.HumanReviewOrBuilder getHumanReviewOrBuilder()
Human Review information of this revision.
.google.cloud.documentai.v1beta3.Document.Revision.HumanReview human_review = 6;
getId()
Id of the revision, internally generated by doc proto storage.
Unique within the context of the document.
string id = 1;
Returns |
---|
Type | Description |
String | The id.
|
getIdBytes()
public ByteString getIdBytes()
Id of the revision, internally generated by doc proto storage.
Unique within the context of the document.
string id = 1;
getParent(int index) (deprecated)
public int getParent(int index)
Deprecated. google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
google/cloud/documentai/v1beta3/document.proto;l=806
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 [deprecated = true];
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
int | The parent at the given index.
|
getParentCount() (deprecated)
public int getParentCount()
Deprecated. google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
google/cloud/documentai/v1beta3/document.proto;l=806
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 [deprecated = true];
Returns |
---|
Type | Description |
int | The count of parent.
|
getParentIds(int index)
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;
Parameter |
---|
Name | Description |
index | int
The index of the element to return.
|
Returns |
---|
Type | Description |
String | The parentIds at the given index.
|
getParentIdsBytes(int index)
public 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;
Parameter |
---|
Name | Description |
index | int
The index of the value to return.
|
Returns |
---|
Type | Description |
ByteString | The bytes of the parentIds at the given index.
|
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;
Returns |
---|
Type | Description |
int | The count of parentIds.
|
getParentIdsList()
public 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;
getParentList() (deprecated)
public List<Integer> getParentList()
Deprecated. google.cloud.documentai.v1beta3.Document.Revision.parent is deprecated. See
google/cloud/documentai/v1beta3/document.proto;l=806
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 [deprecated = true];
Returns |
---|
Type | Description |
List<Integer> | A list containing the parent.
|
getParserForType()
public Parser<Document.Revision> getParserForType()
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 |
---|
Type | Description |
ByteString | The bytes for processor.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getSourceCase()
public Document.Revision.SourceCase getSourceCase()
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, internally generated by
doc proto storage at the time of create.
.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 |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Document.Revision.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Revision.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Document.Revision.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides