Class QuestionAnsweringCorrectnessInput.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringCorrectnessInput build()
Returns
TypeDescription
QuestionAnsweringCorrectnessInput

buildPartial()

public QuestionAnsweringCorrectnessInput buildPartial()
Returns
TypeDescription
QuestionAnsweringCorrectnessInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

public QuestionAnsweringCorrectnessInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QuestionAnsweringCorrectnessInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringCorrectnessInput getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringCorrectnessInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public QuestionAnsweringCorrectnessInstance getInstance()

Required. Question answering correctness instance.

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

Returns
TypeDescription
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
TypeDescription
QuestionAnsweringCorrectnessInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringCorrectnessInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering correctness instance.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
QuestionAnsweringCorrectnessSpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering correctness instance.

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

Returns
TypeDescription
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
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(QuestionAnsweringCorrectnessInput other)

public QuestionAnsweringCorrectnessInput.Builder mergeFrom(QuestionAnsweringCorrectnessInput other)
Parameter
NameDescription
otherQuestionAnsweringCorrectnessInput
Returns
TypeDescription
QuestionAnsweringCorrectnessInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringCorrectnessInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringCorrectnessInstance
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringCorrectnessSpec
Returns
TypeDescription
QuestionAnsweringCorrectnessInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public QuestionAnsweringCorrectnessInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringCorrectnessInstance
Returns
TypeDescription
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
NameDescription
builderForValueQuestionAnsweringCorrectnessInstance.Builder
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringCorrectnessSpec
Returns
TypeDescription
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
NameDescription
builderForValueQuestionAnsweringCorrectnessSpec.Builder
Returns
TypeDescription
QuestionAnsweringCorrectnessInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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