Class TranslationEvaluationMetrics (2.10.0)

public final class TranslationEvaluationMetrics extends GeneratedMessageV3 implements TranslationEvaluationMetricsOrBuilder

Evaluation metrics for the dataset.

Protobuf type google.cloud.automl.v1.TranslationEvaluationMetrics

Static Fields

BASE_BLEU_SCORE_FIELD_NUMBER

public static final int BASE_BLEU_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

BLEU_SCORE_FIELD_NUMBER

public static final int BLEU_SCORE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static TranslationEvaluationMetrics getDefaultInstance()
Returns
TypeDescription
TranslationEvaluationMetrics

getDescriptor()

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

newBuilder()

public static TranslationEvaluationMetrics.Builder newBuilder()
Returns
TypeDescription
TranslationEvaluationMetrics.Builder

newBuilder(TranslationEvaluationMetrics prototype)

public static TranslationEvaluationMetrics.Builder newBuilder(TranslationEvaluationMetrics prototype)
Parameter
NameDescription
prototypeTranslationEvaluationMetrics
Returns
TypeDescription
TranslationEvaluationMetrics.Builder

parseDelimitedFrom(InputStream input)

public static TranslationEvaluationMetrics parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static TranslationEvaluationMetrics parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static TranslationEvaluationMetrics parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static TranslationEvaluationMetrics parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static TranslationEvaluationMetrics parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static TranslationEvaluationMetrics parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static TranslationEvaluationMetrics parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
TranslationEvaluationMetrics
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<TranslationEvaluationMetrics> parser()
Returns
TypeDescription
Parser<TranslationEvaluationMetrics>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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

getParserForType()

public Parser<TranslationEvaluationMetrics> getParserForType()
Returns
TypeDescription
Parser<TranslationEvaluationMetrics>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public TranslationEvaluationMetrics.Builder newBuilderForType()
Returns
TypeDescription
TranslationEvaluationMetrics.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected TranslationEvaluationMetrics.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
TranslationEvaluationMetrics.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public TranslationEvaluationMetrics.Builder toBuilder()
Returns
TypeDescription
TranslationEvaluationMetrics.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException