Class QuestionAnsweringHelpfulnessInput.Builder (3.56.0)

public static final class QuestionAnsweringHelpfulnessInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringHelpfulnessInput.Builder> implements QuestionAnsweringHelpfulnessInputOrBuilder

Input for question answering helpfulness metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringHelpfulnessInput build()
Returns
Type Description
QuestionAnsweringHelpfulnessInput

buildPartial()

public QuestionAnsweringHelpfulnessInput buildPartial()
Returns
Type Description
QuestionAnsweringHelpfulnessInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public QuestionAnsweringHelpfulnessInput.Builder clearInstance()

Required. Question answering helpfulness instance.

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

Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

clearMetricSpec()

public QuestionAnsweringHelpfulnessInput.Builder clearMetricSpec()

Required. Spec for question answering helpfulness score metric.

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

Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringHelpfulnessInput getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringHelpfulnessInput

getDescriptorForType()

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

getInstance()

public QuestionAnsweringHelpfulnessInstance getInstance()

Required. Question answering helpfulness instance.

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

Returns
Type Description
QuestionAnsweringHelpfulnessInstance

The instance.

getInstanceBuilder()

public QuestionAnsweringHelpfulnessInstance.Builder getInstanceBuilder()

Required. Question answering helpfulness instance.

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

Returns
Type Description
QuestionAnsweringHelpfulnessInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringHelpfulnessInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering helpfulness instance.

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

Returns
Type Description
QuestionAnsweringHelpfulnessInstanceOrBuilder

getMetricSpec()

public QuestionAnsweringHelpfulnessSpec getMetricSpec()

Required. Spec for question answering helpfulness score metric.

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

Returns
Type Description
QuestionAnsweringHelpfulnessSpec

The metricSpec.

getMetricSpecBuilder()

public QuestionAnsweringHelpfulnessSpec.Builder getMetricSpecBuilder()

Required. Spec for question answering helpfulness score metric.

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

Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder

getMetricSpecOrBuilder()

public QuestionAnsweringHelpfulnessSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for question answering helpfulness score metric.

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

Returns
Type Description
QuestionAnsweringHelpfulnessSpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering helpfulness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstance 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 helpfulness score metric.

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(QuestionAnsweringHelpfulnessInstance value)

public QuestionAnsweringHelpfulnessInput.Builder mergeInstance(QuestionAnsweringHelpfulnessInstance value)

Required. Question answering helpfulness instance.

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

Parameter
Name Description
value QuestionAnsweringHelpfulnessInstance
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

mergeMetricSpec(QuestionAnsweringHelpfulnessSpec value)

public QuestionAnsweringHelpfulnessInput.Builder mergeMetricSpec(QuestionAnsweringHelpfulnessSpec value)

Required. Spec for question answering helpfulness score metric.

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

Parameter
Name Description
value QuestionAnsweringHelpfulnessSpec
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(QuestionAnsweringHelpfulnessInstance value)

public QuestionAnsweringHelpfulnessInput.Builder setInstance(QuestionAnsweringHelpfulnessInstance value)

Required. Question answering helpfulness instance.

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

Parameter
Name Description
value QuestionAnsweringHelpfulnessInstance
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

setInstance(QuestionAnsweringHelpfulnessInstance.Builder builderForValue)

public QuestionAnsweringHelpfulnessInput.Builder setInstance(QuestionAnsweringHelpfulnessInstance.Builder builderForValue)

Required. Question answering helpfulness instance.

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

Parameter
Name Description
builderForValue QuestionAnsweringHelpfulnessInstance.Builder
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

setMetricSpec(QuestionAnsweringHelpfulnessSpec value)

public QuestionAnsweringHelpfulnessInput.Builder setMetricSpec(QuestionAnsweringHelpfulnessSpec value)

Required. Spec for question answering helpfulness score metric.

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

Parameter
Name Description
value QuestionAnsweringHelpfulnessSpec
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

setMetricSpec(QuestionAnsweringHelpfulnessSpec.Builder builderForValue)

public QuestionAnsweringHelpfulnessInput.Builder setMetricSpec(QuestionAnsweringHelpfulnessSpec.Builder builderForValue)

Required. Spec for question answering helpfulness score metric.

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

Parameter
Name Description
builderForValue QuestionAnsweringHelpfulnessSpec.Builder
Returns
Type Description
QuestionAnsweringHelpfulnessInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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