Class QuestionAnsweringQualityInput.Builder (3.41.0)

public static final class QuestionAnsweringQualityInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringQualityInput.Builder> implements QuestionAnsweringQualityInputOrBuilder

Input for question answering quality metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringQualityInput build()
Returns
TypeDescription
QuestionAnsweringQualityInput

buildPartial()

public QuestionAnsweringQualityInput buildPartial()
Returns
TypeDescription
QuestionAnsweringQualityInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public QuestionAnsweringQualityInput.Builder clearInstance()

Required. Question answering quality instance.

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

Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

clearMetricSpec()

public QuestionAnsweringQualityInput.Builder clearMetricSpec()

Required. Spec for question answering quality score metric.

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

Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringQualityInput getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringQualityInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public QuestionAnsweringQualityInstance getInstance()

Required. Question answering quality instance.

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

Returns
TypeDescription
QuestionAnsweringQualityInstance

The instance.

getInstanceBuilder()

public QuestionAnsweringQualityInstance.Builder getInstanceBuilder()

Required. Question answering quality instance.

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

Returns
TypeDescription
QuestionAnsweringQualityInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringQualityInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering quality instance.

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

Returns
TypeDescription
QuestionAnsweringQualityInstanceOrBuilder

getMetricSpec()

public QuestionAnsweringQualitySpec getMetricSpec()

Required. Spec for question answering quality score metric.

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

Returns
TypeDescription
QuestionAnsweringQualitySpec

The metricSpec.

getMetricSpecBuilder()

public QuestionAnsweringQualitySpec.Builder getMetricSpecBuilder()

Required. Spec for question answering quality score metric.

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

Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

getMetricSpecOrBuilder()

public QuestionAnsweringQualitySpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for question answering quality score metric.

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

Returns
TypeDescription
QuestionAnsweringQualitySpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering quality instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstance 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 quality score metric.

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

public QuestionAnsweringQualityInput.Builder mergeFrom(QuestionAnsweringQualityInput other)
Parameter
NameDescription
otherQuestionAnsweringQualityInput
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(QuestionAnsweringQualityInstance value)

public QuestionAnsweringQualityInput.Builder mergeInstance(QuestionAnsweringQualityInstance value)

Required. Question answering quality instance.

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

Parameter
NameDescription
valueQuestionAnsweringQualityInstance
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

mergeMetricSpec(QuestionAnsweringQualitySpec value)

public QuestionAnsweringQualityInput.Builder mergeMetricSpec(QuestionAnsweringQualitySpec value)

Required. Spec for question answering quality score metric.

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

Parameter
NameDescription
valueQuestionAnsweringQualitySpec
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(QuestionAnsweringQualityInstance value)

public QuestionAnsweringQualityInput.Builder setInstance(QuestionAnsweringQualityInstance value)

Required. Question answering quality instance.

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

Parameter
NameDescription
valueQuestionAnsweringQualityInstance
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

setInstance(QuestionAnsweringQualityInstance.Builder builderForValue)

public QuestionAnsweringQualityInput.Builder setInstance(QuestionAnsweringQualityInstance.Builder builderForValue)

Required. Question answering quality instance.

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

Parameter
NameDescription
builderForValueQuestionAnsweringQualityInstance.Builder
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

setMetricSpec(QuestionAnsweringQualitySpec value)

public QuestionAnsweringQualityInput.Builder setMetricSpec(QuestionAnsweringQualitySpec value)

Required. Spec for question answering quality score metric.

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

Parameter
NameDescription
valueQuestionAnsweringQualitySpec
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

setMetricSpec(QuestionAnsweringQualitySpec.Builder builderForValue)

public QuestionAnsweringQualityInput.Builder setMetricSpec(QuestionAnsweringQualitySpec.Builder builderForValue)

Required. Spec for question answering quality score metric.

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

Parameter
NameDescription
builderForValueQuestionAnsweringQualitySpec.Builder
Returns
TypeDescription
QuestionAnsweringQualityInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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