Class BleuInput.Builder (3.40.0)

public static final class BleuInput.Builder extends GeneratedMessageV3.Builder<BleuInput.Builder> implements BleuInputOrBuilder

Input for bleu metric.

Protobuf type google.cloud.aiplatform.v1beta1.BleuInput

Implements

BleuInputOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends BleuInstance> values)

public BleuInput.Builder addAllInstances(Iterable<? extends BleuInstance> values)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.aiplatform.v1beta1.BleuInstance>
Returns
TypeDescription
BleuInput.Builder

addInstances(BleuInstance value)

public BleuInput.Builder addInstances(BleuInstance value)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBleuInstance
Returns
TypeDescription
BleuInput.Builder

addInstances(BleuInstance.Builder builderForValue)

public BleuInput.Builder addInstances(BleuInstance.Builder builderForValue)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBleuInstance.Builder
Returns
TypeDescription
BleuInput.Builder

addInstances(int index, BleuInstance value)

public BleuInput.Builder addInstances(int index, BleuInstance value)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueBleuInstance
Returns
TypeDescription
BleuInput.Builder

addInstances(int index, BleuInstance.Builder builderForValue)

public BleuInput.Builder addInstances(int index, BleuInstance.Builder builderForValue)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueBleuInstance.Builder
Returns
TypeDescription
BleuInput.Builder

addInstancesBuilder()

public BleuInstance.Builder addInstancesBuilder()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuInstance.Builder

addInstancesBuilder(int index)

public BleuInstance.Builder addInstancesBuilder(int index)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BleuInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BleuInput build()
Returns
TypeDescription
BleuInput

buildPartial()

public BleuInput buildPartial()
Returns
TypeDescription
BleuInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public BleuInput.Builder clearInstances()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuInput.Builder

clearMetricSpec()

public BleuInput.Builder clearMetricSpec()

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public BleuInput getDefaultInstanceForType()
Returns
TypeDescription
BleuInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstances(int index)

public BleuInstance getInstances(int index)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BleuInstance

getInstancesBuilder(int index)

public BleuInstance.Builder getInstancesBuilder(int index)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BleuInstance.Builder

getInstancesBuilderList()

public List<BleuInstance.Builder> getInstancesBuilderList()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Builder>

getInstancesCount()

public int getInstancesCount()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getInstancesList()

public List<BleuInstance> getInstancesList()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<BleuInstance>

getInstancesOrBuilder(int index)

public BleuInstanceOrBuilder getInstancesOrBuilder(int index)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BleuInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends BleuInstanceOrBuilder> getInstancesOrBuilderList()

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.aiplatform.v1beta1.BleuInstanceOrBuilder>

getMetricSpec()

public BleuSpec getMetricSpec()

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuSpec

The metricSpec.

getMetricSpecBuilder()

public BleuSpec.Builder getMetricSpecBuilder()

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuSpec.Builder

getMetricSpecOrBuilder()

public BleuSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
BleuSpecOrBuilder

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BleuInput other)

public BleuInput.Builder mergeFrom(BleuInput other)
Parameter
NameDescription
otherBleuInput
Returns
TypeDescription
BleuInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricSpec(BleuSpec value)

public BleuInput.Builder mergeMetricSpec(BleuSpec value)

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBleuSpec
Returns
TypeDescription
BleuInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public BleuInput.Builder removeInstances(int index)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
BleuInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, BleuInstance value)

public BleuInput.Builder setInstances(int index, BleuInstance value)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
valueBleuInstance
Returns
TypeDescription
BleuInput.Builder

setInstances(int index, BleuInstance.Builder builderForValue)

public BleuInput.Builder setInstances(int index, BleuInstance.Builder builderForValue)

Required. Repeated bleu instances.

repeated .google.cloud.aiplatform.v1beta1.BleuInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueBleuInstance.Builder
Returns
TypeDescription
BleuInput.Builder

setMetricSpec(BleuSpec value)

public BleuInput.Builder setMetricSpec(BleuSpec value)

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueBleuSpec
Returns
TypeDescription
BleuInput.Builder

setMetricSpec(BleuSpec.Builder builderForValue)

public BleuInput.Builder setMetricSpec(BleuSpec.Builder builderForValue)

Required. Spec for bleu score metric.

.google.cloud.aiplatform.v1beta1.BleuSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
builderForValueBleuSpec.Builder
Returns
TypeDescription
BleuInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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