Class TranslationEvaluationMetrics.Builder (2.9.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranslationEvaluationMetrics build()
Returns
TypeDescription
TranslationEvaluationMetrics

buildPartial()

public TranslationEvaluationMetrics buildPartial()
Returns
TypeDescription
TranslationEvaluationMetrics

clear()

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

clearBaseBleuScore()

public TranslationEvaluationMetrics.Builder clearBaseBleuScore()

Output only. BLEU score for base model.

double base_bleu_score = 2;

Returns
TypeDescription
TranslationEvaluationMetrics.Builder

This builder for chaining.

clearBleuScore()

public TranslationEvaluationMetrics.Builder clearBleuScore()

Output only. BLEU score.

double bleu_score = 1;

Returns
TypeDescription
TranslationEvaluationMetrics.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getBaseBleuScore()

public double getBaseBleuScore()

Output only. BLEU score for base model.

double base_bleu_score = 2;

Returns
TypeDescription
double

The baseBleuScore.

getBleuScore()

public double getBleuScore()

Output only. BLEU score.

double bleu_score = 1;

Returns
TypeDescription
double

The bleuScore.

getDefaultInstanceForType()

public TranslationEvaluationMetrics getDefaultInstanceForType()
Returns
TypeDescription
TranslationEvaluationMetrics

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TranslationEvaluationMetrics other)

public TranslationEvaluationMetrics.Builder mergeFrom(TranslationEvaluationMetrics other)
Parameter
NameDescription
otherTranslationEvaluationMetrics
Returns
TypeDescription
TranslationEvaluationMetrics.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TranslationEvaluationMetrics.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuedouble

The baseBleuScore to set.

Returns
TypeDescription
TranslationEvaluationMetrics.Builder

This builder for chaining.

setBleuScore(double value)

public TranslationEvaluationMetrics.Builder setBleuScore(double value)

Output only. BLEU score.

double bleu_score = 1;

Parameter
NameDescription
valuedouble

The bleuScore to set.

Returns
TypeDescription
TranslationEvaluationMetrics.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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