Class RougeInput.Builder (3.40.0)

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

Input for rouge metric.

Protobuf type google.cloud.aiplatform.v1beta1.RougeInput

Implements

RougeInputOrBuilder

Static Methods

getDescriptor()

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

Methods

addAllInstances(Iterable<? extends RougeInstance> values)

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

Required. Repeated rouge instances.

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

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

addInstances(RougeInstance value)

public RougeInput.Builder addInstances(RougeInstance value)

Required. Repeated rouge instances.

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

Parameter
NameDescription
valueRougeInstance
Returns
TypeDescription
RougeInput.Builder

addInstances(RougeInstance.Builder builderForValue)

public RougeInput.Builder addInstances(RougeInstance.Builder builderForValue)

Required. Repeated rouge instances.

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

Parameter
NameDescription
builderForValueRougeInstance.Builder
Returns
TypeDescription
RougeInput.Builder

addInstances(int index, RougeInstance value)

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

Required. Repeated rouge instances.

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

Parameters
NameDescription
indexint
valueRougeInstance
Returns
TypeDescription
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.v1beta1.RougeInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueRougeInstance.Builder
Returns
TypeDescription
RougeInput.Builder

addInstancesBuilder()

public RougeInstance.Builder addInstancesBuilder()

Required. Repeated rouge instances.

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

Returns
TypeDescription
RougeInstance.Builder

addInstancesBuilder(int index)

public RougeInstance.Builder addInstancesBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RougeInstance.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RougeInput build()
Returns
TypeDescription
RougeInput

buildPartial()

public RougeInput buildPartial()
Returns
TypeDescription
RougeInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstances()

public RougeInput.Builder clearInstances()

Required. Repeated rouge instances.

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

Returns
TypeDescription
RougeInput.Builder

clearMetricSpec()

public RougeInput.Builder clearMetricSpec()

Required. Spec for rouge score metric.

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

Returns
TypeDescription
RougeInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public RougeInput getDefaultInstanceForType()
Returns
TypeDescription
RougeInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstances(int index)

public RougeInstance getInstances(int index)

Required. Repeated rouge instances.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RougeInstance

getInstancesBuilder(int index)

public RougeInstance.Builder getInstancesBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RougeInstance.Builder

getInstancesBuilderList()

public List<RougeInstance.Builder> getInstancesBuilderList()

Required. Repeated rouge instances.

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

Returns
TypeDescription
List<Builder>

getInstancesCount()

public int getInstancesCount()

Required. Repeated rouge instances.

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

Returns
TypeDescription
int

getInstancesList()

public List<RougeInstance> getInstancesList()

Required. Repeated rouge instances.

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

Returns
TypeDescription
List<RougeInstance>

getInstancesOrBuilder(int index)

public RougeInstanceOrBuilder getInstancesOrBuilder(int index)

Required. Repeated rouge instances.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RougeInstanceOrBuilder

getInstancesOrBuilderList()

public List<? extends RougeInstanceOrBuilder> getInstancesOrBuilderList()

Required. Repeated rouge instances.

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

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

getMetricSpec()

public RougeSpec getMetricSpec()

Required. Spec for rouge score metric.

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

Returns
TypeDescription
RougeSpec

The metricSpec.

getMetricSpecBuilder()

public RougeSpec.Builder getMetricSpecBuilder()

Required. Spec for rouge score metric.

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

Returns
TypeDescription
RougeSpec.Builder

getMetricSpecOrBuilder()

public RougeSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for rouge score metric.

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

Returns
TypeDescription
RougeSpecOrBuilder

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for rouge score metric.

.google.cloud.aiplatform.v1beta1.RougeSpec 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(RougeInput other)

public RougeInput.Builder mergeFrom(RougeInput other)
Parameter
NameDescription
otherRougeInput
Returns
TypeDescription
RougeInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMetricSpec(RougeSpec value)

public RougeInput.Builder mergeMetricSpec(RougeSpec value)

Required. Spec for rouge score metric.

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

Parameter
NameDescription
valueRougeSpec
Returns
TypeDescription
RougeInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeInstances(int index)

public RougeInput.Builder removeInstances(int index)

Required. Repeated rouge instances.

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

Parameter
NameDescription
indexint
Returns
TypeDescription
RougeInput.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstances(int index, RougeInstance value)

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

Required. Repeated rouge instances.

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

Parameters
NameDescription
indexint
valueRougeInstance
Returns
TypeDescription
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.v1beta1.RougeInstance instances = 2 [(.google.api.field_behavior) = REQUIRED];

Parameters
NameDescription
indexint
builderForValueRougeInstance.Builder
Returns
TypeDescription
RougeInput.Builder

setMetricSpec(RougeSpec value)

public RougeInput.Builder setMetricSpec(RougeSpec value)

Required. Spec for rouge score metric.

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

Parameter
NameDescription
valueRougeSpec
Returns
TypeDescription
RougeInput.Builder

setMetricSpec(RougeSpec.Builder builderForValue)

public RougeInput.Builder setMetricSpec(RougeSpec.Builder builderForValue)

Required. Spec for rouge score metric.

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

Parameter
NameDescription
builderForValueRougeSpec.Builder
Returns
TypeDescription
RougeInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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