public static final class Document.Provenance.Parent.Builder extends GeneratedMessageV3.Builder<Document.Provenance.Parent.Builder> implements Document.Provenance.ParentOrBuilder
The parent element the current element is based on. Used for
referencing/aligning, removal and replacement operations.
Protobuf type google.cloud.documentai.v1beta3.Document.Provenance.Parent
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Document.Provenance.Parent.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public Document.Provenance.Parent build()
Returns
buildPartial()
public Document.Provenance.Parent buildPartial()
Returns
clear()
public Document.Provenance.Parent.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public Document.Provenance.Parent.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearId() (deprecated)
public Document.Provenance.Parent.Builder clearId()
Deprecated. google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
See google/cloud/documentai/v1beta3/document.proto;l=726
The id of the parent provenance.
int32 id = 2 [deprecated = true];
Returns
clearIndex()
public Document.Provenance.Parent.Builder clearIndex()
The index of the parent item in the corresponding item list (eg. list
of entities, properties within entities, etc.) in the parent revision.
int32 index = 3;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public Document.Provenance.Parent.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearRevision()
public Document.Provenance.Parent.Builder clearRevision()
The index of the index into current revision's parent_ids list.
int32 revision = 1;
Returns
clone()
public Document.Provenance.Parent.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public Document.Provenance.Parent getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getId() (deprecated)
Deprecated. google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
See google/cloud/documentai/v1beta3/document.proto;l=726
The id of the parent provenance.
int32 id = 2 [deprecated = true];
Returns
Type | Description |
int | The id.
|
getIndex()
The index of the parent item in the corresponding item list (eg. list
of entities, properties within entities, etc.) in the parent revision.
int32 index = 3;
Returns
Type | Description |
int | The index.
|
getRevision()
The index of the index into current revision's parent_ids list.
int32 revision = 1;
Returns
Type | Description |
int | The revision.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(Document.Provenance.Parent other)
public Document.Provenance.Parent.Builder mergeFrom(Document.Provenance.Parent other)
Parameter
Returns
public Document.Provenance.Parent.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public Document.Provenance.Parent.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Document.Provenance.Parent.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public Document.Provenance.Parent.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setId(int value) (deprecated)
public Document.Provenance.Parent.Builder setId(int value)
Deprecated. google.cloud.documentai.v1beta3.Document.Provenance.Parent.id is deprecated.
See google/cloud/documentai/v1beta3/document.proto;l=726
The id of the parent provenance.
int32 id = 2 [deprecated = true];
Parameter
Name | Description |
value | int
The id to set.
|
Returns
setIndex(int value)
public Document.Provenance.Parent.Builder setIndex(int value)
The index of the parent item in the corresponding item list (eg. list
of entities, properties within entities, etc.) in the parent revision.
int32 index = 3;
Parameter
Name | Description |
value | int
The index to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Document.Provenance.Parent.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setRevision(int value)
public Document.Provenance.Parent.Builder setRevision(int value)
The index of the index into current revision's parent_ids list.
int32 revision = 1;
Parameter
Name | Description |
value | int
The revision to set.
|
Returns
setUnknownFields(UnknownFieldSet unknownFields)
public final Document.Provenance.Parent.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides