Class BleuSpec.Builder (3.41.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BleuSpec build()
Returns
TypeDescription
BleuSpec

buildPartial()

public BleuSpec buildPartial()
Returns
TypeDescription
BleuSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BleuSpec getDefaultInstanceForType()
Returns
TypeDescription
BleuSpec

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

public BleuSpec.Builder mergeFrom(BleuSpec other)
Parameter
NameDescription
otherBleuSpec
Returns
TypeDescription
BleuSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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