Class QuestionAnsweringCorrectnessInput.Builder (3.42.0)

public static final class QuestionAnsweringCorrectnessInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInput.Builder> implements QuestionAnsweringCorrectnessInputOrBuilder

Input for question answering correctness metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringCorrectnessInput build()
Returns
Type Description
QuestionAnsweringCorrectnessInput

buildPartial()

public QuestionAnsweringCorrectnessInput buildPartial()
Returns
Type Description
QuestionAnsweringCorrectnessInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public QuestionAnsweringCorrectnessInput.Builder clearInstance()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

clearMetricSpec()

public QuestionAnsweringCorrectnessInput.Builder clearMetricSpec()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringCorrectnessInput getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringCorrectnessInput

getDescriptorForType()

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

getInstance()

public QuestionAnsweringCorrectnessInstance getInstance()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuestionAnsweringCorrectnessInstance

The instance.

getInstanceBuilder()

public QuestionAnsweringCorrectnessInstance.Builder getInstanceBuilder()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuestionAnsweringCorrectnessInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringCorrectnessInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
QuestionAnsweringCorrectnessInstanceOrBuilder

getMetricSpec()

public QuestionAnsweringCorrectnessSpec getMetricSpec()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessSpec

The metricSpec.

getMetricSpecBuilder()

public QuestionAnsweringCorrectnessSpec.Builder getMetricSpecBuilder()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessSpec.Builder

getMetricSpecOrBuilder()

public QuestionAnsweringCorrectnessSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessSpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the instance field is set.

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for question answering correctness score metric.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(QuestionAnsweringCorrectnessInstance value)

public QuestionAnsweringCorrectnessInput.Builder mergeInstance(QuestionAnsweringCorrectnessInstance value)

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QuestionAnsweringCorrectnessInstance
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

mergeMetricSpec(QuestionAnsweringCorrectnessSpec value)

public QuestionAnsweringCorrectnessInput.Builder mergeMetricSpec(QuestionAnsweringCorrectnessSpec value)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessSpec
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(QuestionAnsweringCorrectnessInstance value)

public QuestionAnsweringCorrectnessInput.Builder setInstance(QuestionAnsweringCorrectnessInstance value)

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value QuestionAnsweringCorrectnessInstance
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

setInstance(QuestionAnsweringCorrectnessInstance.Builder builderForValue)

public QuestionAnsweringCorrectnessInput.Builder setInstance(QuestionAnsweringCorrectnessInstance.Builder builderForValue)

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance instance = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue QuestionAnsweringCorrectnessInstance.Builder
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

setMetricSpec(QuestionAnsweringCorrectnessSpec value)

public QuestionAnsweringCorrectnessInput.Builder setMetricSpec(QuestionAnsweringCorrectnessSpec value)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessSpec
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

setMetricSpec(QuestionAnsweringCorrectnessSpec.Builder builderForValue)

public QuestionAnsweringCorrectnessInput.Builder setMetricSpec(QuestionAnsweringCorrectnessSpec.Builder builderForValue)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
builderForValue QuestionAnsweringCorrectnessSpec.Builder
Returns
Type Description
QuestionAnsweringCorrectnessInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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