Class Evaluation.ConfidenceLevelMetrics.Builder (2.59.0)

public static final class Evaluation.ConfidenceLevelMetrics.Builder extends GeneratedMessageV3.Builder<Evaluation.ConfidenceLevelMetrics.Builder> implements Evaluation.ConfidenceLevelMetricsOrBuilder

Evaluations metrics, at a specific confidence level.

Protobuf type google.cloud.documentai.v1.Evaluation.ConfidenceLevelMetrics

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.ConfidenceLevelMetrics.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

build()

public Evaluation.ConfidenceLevelMetrics build()
Returns
Type Description
Evaluation.ConfidenceLevelMetrics

buildPartial()

public Evaluation.ConfidenceLevelMetrics buildPartial()
Returns
Type Description
Evaluation.ConfidenceLevelMetrics

clear()

public Evaluation.ConfidenceLevelMetrics.Builder clear()
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

clearConfidenceLevel()

public Evaluation.ConfidenceLevelMetrics.Builder clearConfidenceLevel()

The confidence level.

float confidence_level = 1;

Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Evaluation.ConfidenceLevelMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

clearMetrics()

public Evaluation.ConfidenceLevelMetrics.Builder clearMetrics()

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public Evaluation.ConfidenceLevelMetrics.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

clone()

public Evaluation.ConfidenceLevelMetrics.Builder clone()
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

getConfidenceLevel()

public float getConfidenceLevel()

The confidence level.

float confidence_level = 1;

Returns
Type Description
float

The confidenceLevel.

getDefaultInstanceForType()

public Evaluation.ConfidenceLevelMetrics getDefaultInstanceForType()
Returns
Type Description
Evaluation.ConfidenceLevelMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getMetrics()

public Evaluation.Metrics getMetrics()

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Returns
Type Description
Evaluation.Metrics

The metrics.

getMetricsBuilder()

public Evaluation.Metrics.Builder getMetricsBuilder()

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Returns
Type Description
Evaluation.Metrics.Builder

getMetricsOrBuilder()

public Evaluation.MetricsOrBuilder getMetricsOrBuilder()

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Returns
Type Description
Evaluation.MetricsOrBuilder

hasMetrics()

public boolean hasMetrics()

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Returns
Type Description
boolean

Whether the metrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Evaluation.ConfidenceLevelMetrics other)

public Evaluation.ConfidenceLevelMetrics.Builder mergeFrom(Evaluation.ConfidenceLevelMetrics other)
Parameter
Name Description
other Evaluation.ConfidenceLevelMetrics
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Evaluation.ConfidenceLevelMetrics.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Evaluation.ConfidenceLevelMetrics.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

mergeMetrics(Evaluation.Metrics value)

public Evaluation.ConfidenceLevelMetrics.Builder mergeMetrics(Evaluation.Metrics value)

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Parameter
Name Description
value Evaluation.Metrics
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.ConfidenceLevelMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

setConfidenceLevel(float value)

public Evaluation.ConfidenceLevelMetrics.Builder setConfidenceLevel(float value)

The confidence level.

float confidence_level = 1;

Parameter
Name Description
value float

The confidenceLevel to set.

Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.ConfidenceLevelMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

setMetrics(Evaluation.Metrics value)

public Evaluation.ConfidenceLevelMetrics.Builder setMetrics(Evaluation.Metrics value)

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Parameter
Name Description
value Evaluation.Metrics
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

setMetrics(Evaluation.Metrics.Builder builderForValue)

public Evaluation.ConfidenceLevelMetrics.Builder setMetrics(Evaluation.Metrics.Builder builderForValue)

The metrics at the specific confidence level.

.google.cloud.documentai.v1.Evaluation.Metrics metrics = 2;

Parameter
Name Description
builderForValue Evaluation.Metrics.Builder
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder

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

public Evaluation.ConfidenceLevelMetrics.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Evaluation.ConfidenceLevelMetrics.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Evaluation.ConfidenceLevelMetrics.Builder
Overrides