public static final class Document.Provenance extends GeneratedMessageV3 implements Document.ProvenanceOrBuilder
Structure to identify provenance relationships between annotations in
different revisions.
Protobuf type google.cloud.documentai.v1.Document.Provenance
Static Fields
ID_FIELD_NUMBER
public static final int ID_FIELD_NUMBER
Field Value
PARENTS_FIELD_NUMBER
public static final int PARENTS_FIELD_NUMBER
Field Value
REVISION_FIELD_NUMBER
public static final int REVISION_FIELD_NUMBER
Field Value
TYPE_FIELD_NUMBER
public static final int TYPE_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static Document.Provenance getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static Document.Provenance.Builder newBuilder()
Returns
newBuilder(Document.Provenance prototype)
public static Document.Provenance.Builder newBuilder(Document.Provenance prototype)
Parameter
Returns
public static Document.Provenance parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Provenance parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static Document.Provenance parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Document.Provenance parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static Document.Provenance parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Document.Provenance parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Provenance parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static Document.Provenance parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Document.Provenance parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static Document.Provenance parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static Document.Provenance parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Document.Provenance parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<Document.Provenance> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public Document.Provenance getDefaultInstanceForType()
Returns
getId() (deprecated)
Deprecated. google.cloud.documentai.v1.Document.Provenance.id is deprecated. See
google/cloud/documentai/v1/document.proto;l=687
The Id of this operation. Needs to be unique within the scope of the
revision.
int32 id = 2 [deprecated = true];
Returns
Type | Description |
int | The id.
|
getParents(int index)
public Document.Provenance.Parent getParents(int index)
References to the original elements that are replaced.
repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Parameter
Returns
getParentsCount()
public int getParentsCount()
References to the original elements that are replaced.
repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Returns
getParentsList()
public List<Document.Provenance.Parent> getParentsList()
References to the original elements that are replaced.
repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Returns
getParentsOrBuilder(int index)
public Document.Provenance.ParentOrBuilder getParentsOrBuilder(int index)
References to the original elements that are replaced.
repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Parameter
Returns
getParentsOrBuilderList()
public List<? extends Document.Provenance.ParentOrBuilder> getParentsOrBuilderList()
References to the original elements that are replaced.
repeated .google.cloud.documentai.v1.Document.Provenance.Parent parents = 3;
Returns
Type | Description |
List<? extends com.google.cloud.documentai.v1.Document.Provenance.ParentOrBuilder> | |
getParserForType()
public Parser<Document.Provenance> getParserForType()
Returns
Overrides
getRevision()
The index of the revision that produced this element.
int32 revision = 1;
Returns
Type | Description |
int | The revision.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getType()
public Document.Provenance.OperationType getType()
The type of provenance operation.
.google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
Returns
getTypeValue()
public int getTypeValue()
The type of provenance operation.
.google.cloud.documentai.v1.Document.Provenance.OperationType type = 4;
Returns
Type | Description |
int | The enum numeric value on the wire for type.
|
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public Document.Provenance.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Document.Provenance.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public Document.Provenance.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions