Class QuestionAnsweringQualityInput.Builder (3.46.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringQualityInput build()
Returns
Type Description
QuestionAnsweringQualityInput

buildPartial()

public QuestionAnsweringQualityInput buildPartial()
Returns
Type Description
QuestionAnsweringQualityInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

public QuestionAnsweringQualityInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
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
Type Description
QuestionAnsweringQualityInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringQualityInput getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringQualityInput

getDescriptorForType()

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

getInstance()

public QuestionAnsweringQualityInstance getInstance()

Required. Question answering quality instance.

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

Returns
Type Description
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
Type Description
QuestionAnsweringQualityInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringQualityInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering quality instance.

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
QuestionAnsweringQualitySpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering quality instance.

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringQualityInput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value QuestionAnsweringQualityInstance
Returns
Type Description
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
Name Description
value QuestionAnsweringQualitySpec
Returns
Type Description
QuestionAnsweringQualityInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public QuestionAnsweringQualityInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value QuestionAnsweringQualityInstance
Returns
Type Description
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
Name Description
builderForValue QuestionAnsweringQualityInstance.Builder
Returns
Type Description
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
Name Description
value QuestionAnsweringQualitySpec
Returns
Type Description
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
Name Description
builderForValue QuestionAnsweringQualitySpec.Builder
Returns
Type Description
QuestionAnsweringQualityInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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