Class BleuSpec.Builder (3.45.0)

public static final class BleuSpec.Builder extends GeneratedMessageV3.Builder<BleuSpec.Builder> implements BleuSpecOrBuilder

Spec for bleu score metric - calculates the precision of n-grams in the prediction as compared to reference - returns a score ranging between 0 to 1.

Protobuf type google.cloud.aiplatform.v1beta1.BleuSpec

Implements

BleuSpecOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BleuSpec build()
Returns
Type Description
BleuSpec

buildPartial()

public BleuSpec buildPartial()
Returns
Type Description
BleuSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BleuSpec getDefaultInstanceForType()
Returns
Type Description
BleuSpec

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(BleuSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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