Class RougeInput.Builder (3.50.0)

public static final class RougeInput.Builder extends GeneratedMessageV3.Builder<RougeInput.Builder> implements RougeInputOrBuilder

Input for rouge metric.

Protobuf type google.cloud.aiplatform.v1.RougeInput

Implements

RougeInputOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends RougeInstance> values)

public RougeInput.Builder addAllInstances(Iterable<? extends RougeInstance> values)

Required. Repeated rouge instances.

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

Parameter
Name Description
values Iterable<? extends com.google.cloud.aiplatform.v1.RougeInstance>
Returns
Type Description
RougeInput.Builder

addInstances(RougeInstance value)

public RougeInput.Builder addInstances(RougeInstance value)

Required. Repeated rouge instances.

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

Parameter
Name Description
value RougeInstance
Returns
Type Description
RougeInput.Builder

addInstances(RougeInstance.Builder builderForValue)

public RougeInput.Builder addInstances(RougeInstance.Builder builderForValue)

Required. Repeated rouge instances.

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

Parameter
Name Description
builderForValue RougeInstance.Builder
Returns
Type Description
RougeInput.Builder

addInstances(int index, RougeInstance value)

public RougeInput.Builder addInstances(int index, RougeInstance value)

Required. Repeated rouge instances.

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

Parameters
Name Description
index int
value RougeInstance
Returns
Type Description
RougeInput.Builder

addInstances(int index, RougeInstance.Builder builderForValue)

public RougeInput.Builder addInstances(int index, RougeInstance.Builder builderForValue)

Required. Repeated rouge instances.

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

Parameters
Name Description
index int
builderForValue RougeInstance.Builder
Returns
Type Description
RougeInput.Builder

addInstancesBuilder()

public RougeInstance.Builder addInstancesBuilder()

Required. Repeated rouge instances.

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

Returns
Type Description
RougeInstance.Builder

addInstancesBuilder(int index)

public RougeInstance.Builder addInstancesBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
Name Description
index int
Returns
Type Description
RougeInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RougeInput build()
Returns
Type Description
RougeInput

buildPartial()

public RougeInput buildPartial()
Returns
Type Description
RougeInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public RougeInput.Builder clearInstances()

Required. Repeated rouge instances.

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

Returns
Type Description
RougeInput.Builder

clearMetricSpec()

public RougeInput.Builder clearMetricSpec()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RougeInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RougeInput getDefaultInstanceForType()
Returns
Type Description
RougeInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getInstances(int index)

public RougeInstance getInstances(int index)

Required. Repeated rouge instances.

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

Parameter
Name Description
index int
Returns
Type Description
RougeInstance

getInstancesBuilder(int index)

public RougeInstance.Builder getInstancesBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
Name Description
index int
Returns
Type Description
RougeInstance.Builder

getInstancesBuilderList()

public List<RougeInstance.Builder> getInstancesBuilderList()

Required. Repeated rouge instances.

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

Returns
Type Description
List<Builder>

getInstancesCount()

public int getInstancesCount()

Required. Repeated rouge instances.

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

Returns
Type Description
int

getInstancesList()

public List<RougeInstance> getInstancesList()

Required. Repeated rouge instances.

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

Returns
Type Description
List<RougeInstance>

getInstancesOrBuilder(int index)

public RougeInstanceOrBuilder getInstancesOrBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
Name Description
index int
Returns
Type Description
RougeInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends RougeInstanceOrBuilder> getInstancesOrBuilderList()

Required. Repeated rouge instances.

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

Returns
Type Description
List<? extends com.google.cloud.aiplatform.v1.RougeInstanceOrBuilder>

getMetricSpec()

public RougeSpec getMetricSpec()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RougeSpec

The metricSpec.

getMetricSpecBuilder()

public RougeSpec.Builder getMetricSpecBuilder()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RougeSpec.Builder

getMetricSpecOrBuilder()

public RougeSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RougeSpecOrBuilder

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the metricSpec field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RougeInput other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricSpec(RougeSpec value)

public RougeInput.Builder mergeMetricSpec(RougeSpec value)

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RougeSpec
Returns
Type Description
RougeInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public RougeInput.Builder removeInstances(int index)

Required. Repeated rouge instances.

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

Parameter
Name Description
index int
Returns
Type Description
RougeInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, RougeInstance value)

public RougeInput.Builder setInstances(int index, RougeInstance value)

Required. Repeated rouge instances.

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

Parameters
Name Description
index int
value RougeInstance
Returns
Type Description
RougeInput.Builder

setInstances(int index, RougeInstance.Builder builderForValue)

public RougeInput.Builder setInstances(int index, RougeInstance.Builder builderForValue)

Required. Repeated rouge instances.

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

Parameters
Name Description
index int
builderForValue RougeInstance.Builder
Returns
Type Description
RougeInput.Builder

setMetricSpec(RougeSpec value)

public RougeInput.Builder setMetricSpec(RougeSpec value)

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value RougeSpec
Returns
Type Description
RougeInput.Builder

setMetricSpec(RougeSpec.Builder builderForValue)

public RougeInput.Builder setMetricSpec(RougeSpec.Builder builderForValue)

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1.RougeSpec metric_spec = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue RougeSpec.Builder
Returns
Type Description
RougeInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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