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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringHelpfulnessInput build()
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput

buildPartial()

public QuestionAnsweringHelpfulnessInput buildPartial()
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringHelpfulnessInput getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public QuestionAnsweringHelpfulnessInstance getInstance()

Required. Question answering helpfulness instance.

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

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

getInstanceOrBuilder()

public QuestionAnsweringHelpfulnessInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering helpfulness instance.

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

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

hasInstance()

public boolean hasInstance()

Required. Question answering helpfulness instance.

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

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

public QuestionAnsweringHelpfulnessInput.Builder mergeFrom(QuestionAnsweringHelpfulnessInput other)
Parameter
NameDescription
otherQuestionAnsweringHelpfulnessInput
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringHelpfulnessInput.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringHelpfulnessInstance
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringHelpfulnessSpec
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public QuestionAnsweringHelpfulnessInput.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringHelpfulnessInstance
Returns
TypeDescription
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
NameDescription
builderForValueQuestionAnsweringHelpfulnessInstance.Builder
Returns
TypeDescription
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
NameDescription
valueQuestionAnsweringHelpfulnessSpec
Returns
TypeDescription
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
NameDescription
builderForValueQuestionAnsweringHelpfulnessSpec.Builder
Returns
TypeDescription
QuestionAnsweringHelpfulnessInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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