Class Evaluation.ConfidenceLevelMetrics.Builder (2.19.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Evaluation.ConfidenceLevelMetrics build()
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics

buildPartial()

public Evaluation.ConfidenceLevelMetrics buildPartial()
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics

clear()

public Evaluation.ConfidenceLevelMetrics.Builder clear()
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

clearConfidenceLevel()

public Evaluation.ConfidenceLevelMetrics.Builder clearConfidenceLevel()

The confidence level.

float confidence_level = 1;

Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Evaluation.ConfidenceLevelMetrics.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public Evaluation.ConfidenceLevelMetrics.Builder clone()
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder
Overrides

getConfidenceLevel()

public float getConfidenceLevel()

The confidence level.

float confidence_level = 1;

Returns
TypeDescription
float

The confidenceLevel.

getDefaultInstanceForType()

public Evaluation.ConfidenceLevelMetrics getDefaultInstanceForType()
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getMetrics()

public Evaluation.Metrics getMetrics()

The metrics at the specific confidence level.

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

Returns
TypeDescription
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
TypeDescription
Evaluation.Metrics.Builder

getMetricsOrBuilder()

public Evaluation.MetricsOrBuilder getMetricsOrBuilder()

The metrics at the specific confidence level.

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

Returns
TypeDescription
Evaluation.MetricsOrBuilder

hasMetrics()

public boolean hasMetrics()

The metrics at the specific confidence level.

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

Returns
TypeDescription
boolean

Whether the metrics field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Evaluation.ConfidenceLevelMetrics other)

public Evaluation.ConfidenceLevelMetrics.Builder mergeFrom(Evaluation.ConfidenceLevelMetrics other)
Parameter
NameDescription
otherEvaluation.ConfidenceLevelMetrics
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public Evaluation.ConfidenceLevelMetrics.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueEvaluation.Metrics
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidenceLevel(float value)

public Evaluation.ConfidenceLevelMetrics.Builder setConfidenceLevel(float value)

The confidence level.

float confidence_level = 1;

Parameter
NameDescription
valuefloat

The confidenceLevel to set.

Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Evaluation.ConfidenceLevelMetrics.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueEvaluation.Metrics
Returns
TypeDescription
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
NameDescription
builderForValueEvaluation.Metrics.Builder
Returns
TypeDescription
Evaluation.ConfidenceLevelMetrics.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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