public static final class Document.Provenance.Parent.Builder extends GeneratedMessageV3.Builder<Document.Provenance.Parent.Builder> implements Document.Provenance.ParentOrBuilder
Structure for referencing parent provenances. When an element replaces
one of more other elements parent references identify the elements that
are replaced.
Protobuf type google.cloud.documentai.v1.Document.Provenance.Parent
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()
public Document.Provenance.Parent.Builder clearId()
The id of the parent provenance.
int32 id = 2 [deprecated = true];
Returns
clearIndex()
public Document.Provenance.Parent.Builder clearIndex()
The index of the parent revisions corresponding collection of items
(eg. list of entities, properties within entities, etc.)
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 [Document.revisions] identifying the parent revision.
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()
The id of the parent provenance.
int32 id = 2 [deprecated = true];
Returns
Type | Description |
int | The id.
|
getIndex()
The index of the parent revisions corresponding collection of items
(eg. list of entities, properties within entities, etc.)
int32 index = 3;
Returns
Type | Description |
int | The index.
|
getRevision()
The index of the [Document.revisions] identifying the parent revision.
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)
public Document.Provenance.Parent.Builder setId(int value)
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 revisions corresponding collection of items
(eg. list of entities, properties within entities, etc.)
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 [Document.revisions] identifying the parent revision.
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