Class FieldExtractionMetadata.Builder (2.33.0)

public static final class FieldExtractionMetadata.Builder extends GeneratedMessageV3.Builder<FieldExtractionMetadata.Builder> implements FieldExtractionMetadataOrBuilder

Metadata for how this field value is extracted.

Protobuf type google.cloud.documentai.v1beta3.FieldExtractionMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public FieldExtractionMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

build()

public FieldExtractionMetadata build()
Returns
TypeDescription
FieldExtractionMetadata

buildPartial()

public FieldExtractionMetadata buildPartial()
Returns
TypeDescription
FieldExtractionMetadata

clear()

public FieldExtractionMetadata.Builder clear()
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public FieldExtractionMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public FieldExtractionMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

clearSummaryOptions()

public FieldExtractionMetadata.Builder clearSummaryOptions()

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Returns
TypeDescription
FieldExtractionMetadata.Builder

clone()

public FieldExtractionMetadata.Builder clone()
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

getDefaultInstanceForType()

public FieldExtractionMetadata getDefaultInstanceForType()
Returns
TypeDescription
FieldExtractionMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSummaryOptions()

public SummaryOptions getSummaryOptions()

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Returns
TypeDescription
SummaryOptions

The summaryOptions.

getSummaryOptionsBuilder()

public SummaryOptions.Builder getSummaryOptionsBuilder()

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Returns
TypeDescription
SummaryOptions.Builder

getSummaryOptionsOrBuilder()

public SummaryOptionsOrBuilder getSummaryOptionsOrBuilder()

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Returns
TypeDescription
SummaryOptionsOrBuilder

hasSummaryOptions()

public boolean hasSummaryOptions()

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Returns
TypeDescription
boolean

Whether the summaryOptions field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(FieldExtractionMetadata other)

public FieldExtractionMetadata.Builder mergeFrom(FieldExtractionMetadata other)
Parameter
NameDescription
otherFieldExtractionMetadata
Returns
TypeDescription
FieldExtractionMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public FieldExtractionMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public FieldExtractionMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

mergeSummaryOptions(SummaryOptions value)

public FieldExtractionMetadata.Builder mergeSummaryOptions(SummaryOptions value)

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Parameter
NameDescription
valueSummaryOptions
Returns
TypeDescription
FieldExtractionMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final FieldExtractionMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public FieldExtractionMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public FieldExtractionMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides

setSummaryOptions(SummaryOptions value)

public FieldExtractionMetadata.Builder setSummaryOptions(SummaryOptions value)

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Parameter
NameDescription
valueSummaryOptions
Returns
TypeDescription
FieldExtractionMetadata.Builder

setSummaryOptions(SummaryOptions.Builder builderForValue)

public FieldExtractionMetadata.Builder setSummaryOptions(SummaryOptions.Builder builderForValue)

Summary options config.

.google.cloud.documentai.v1beta3.SummaryOptions summary_options = 2;

Parameter
NameDescription
builderForValueSummaryOptions.Builder
Returns
TypeDescription
FieldExtractionMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final FieldExtractionMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
FieldExtractionMetadata.Builder
Overrides