Class TranslationEvaluationMetrics.Builder (2.46.0)

public static final class TranslationEvaluationMetrics.Builder extends GeneratedMessageV3.Builder<TranslationEvaluationMetrics.Builder> implements TranslationEvaluationMetricsOrBuilder

Evaluation metrics for the dataset.

Protobuf type google.cloud.automl.v1beta1.TranslationEvaluationMetrics

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranslationEvaluationMetrics build()
Returns
Type Description
TranslationEvaluationMetrics

buildPartial()

public TranslationEvaluationMetrics buildPartial()
Returns
Type Description
TranslationEvaluationMetrics

clear()

public TranslationEvaluationMetrics.Builder clear()
Returns
Type Description
TranslationEvaluationMetrics.Builder
Overrides

clearBaseBleuScore()

public TranslationEvaluationMetrics.Builder clearBaseBleuScore()

Output only. BLEU score for base model.

double base_bleu_score = 2;

Returns
Type Description
TranslationEvaluationMetrics.Builder

This builder for chaining.

clearBleuScore()

public TranslationEvaluationMetrics.Builder clearBleuScore()

Output only. BLEU score.

double bleu_score = 1;

Returns
Type Description
TranslationEvaluationMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TranslationEvaluationMetrics.Builder clone()
Returns
Type Description
TranslationEvaluationMetrics.Builder
Overrides

getBaseBleuScore()

public double getBaseBleuScore()

Output only. BLEU score for base model.

double base_bleu_score = 2;

Returns
Type Description
double

The baseBleuScore.

getBleuScore()

public double getBleuScore()

Output only. BLEU score.

double bleu_score = 1;

Returns
Type Description
double

The bleuScore.

getDefaultInstanceForType()

public TranslationEvaluationMetrics getDefaultInstanceForType()
Returns
Type Description
TranslationEvaluationMetrics

getDescriptorForType()

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

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TranslationEvaluationMetrics other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setBaseBleuScore(double value)

public TranslationEvaluationMetrics.Builder setBaseBleuScore(double value)

Output only. BLEU score for base model.

double base_bleu_score = 2;

Parameter
Name Description
value double

The baseBleuScore to set.

Returns
Type Description
TranslationEvaluationMetrics.Builder

This builder for chaining.

setBleuScore(double value)

public TranslationEvaluationMetrics.Builder setBleuScore(double value)

Output only. BLEU score.

double bleu_score = 1;

Parameter
Name Description
value double

The bleuScore to set.

Returns
Type Description
TranslationEvaluationMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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