Class QuestionAnsweringRelevanceInput.Builder (3.40.0)

public static final class QuestionAnsweringRelevanceInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringRelevanceInput.Builder> implements QuestionAnsweringRelevanceInputOrBuilder

Input for question answering relevance metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringRelevanceInput build()
Returns
TypeDescription
QuestionAnsweringRelevanceInput

buildPartial()

public QuestionAnsweringRelevanceInput buildPartial()
Returns
TypeDescription
QuestionAnsweringRelevanceInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public QuestionAnsweringRelevanceInput.Builder clearInstance()

Required. Question answering relevance instance.

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

Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

clearMetricSpec()

public QuestionAnsweringRelevanceInput.Builder clearMetricSpec()

Required. Spec for question answering relevance score metric.

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

Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringRelevanceInput getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringRelevanceInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public QuestionAnsweringRelevanceInstance getInstance()

Required. Question answering relevance instance.

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

Returns
TypeDescription
QuestionAnsweringRelevanceInstance

The instance.

getInstanceBuilder()

public QuestionAnsweringRelevanceInstance.Builder getInstanceBuilder()

Required. Question answering relevance instance.

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

Returns
TypeDescription
QuestionAnsweringRelevanceInstance.Builder

getInstanceOrBuilder()

public QuestionAnsweringRelevanceInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering relevance instance.

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

Returns
TypeDescription
QuestionAnsweringRelevanceInstanceOrBuilder

getMetricSpec()

public QuestionAnsweringRelevanceSpec getMetricSpec()

Required. Spec for question answering relevance score metric.

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

Returns
TypeDescription
QuestionAnsweringRelevanceSpec

The metricSpec.

getMetricSpecBuilder()

public QuestionAnsweringRelevanceSpec.Builder getMetricSpecBuilder()

Required. Spec for question answering relevance score metric.

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

Returns
TypeDescription
QuestionAnsweringRelevanceSpec.Builder

getMetricSpecOrBuilder()

public QuestionAnsweringRelevanceSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for question answering relevance score metric.

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

Returns
TypeDescription
QuestionAnsweringRelevanceSpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Question answering relevance instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstance 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 relevance score metric.

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

public QuestionAnsweringRelevanceInput.Builder mergeFrom(QuestionAnsweringRelevanceInput other)
Parameter
NameDescription
otherQuestionAnsweringRelevanceInput
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(QuestionAnsweringRelevanceInstance value)

public QuestionAnsweringRelevanceInput.Builder mergeInstance(QuestionAnsweringRelevanceInstance value)

Required. Question answering relevance instance.

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

Parameter
NameDescription
valueQuestionAnsweringRelevanceInstance
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

mergeMetricSpec(QuestionAnsweringRelevanceSpec value)

public QuestionAnsweringRelevanceInput.Builder mergeMetricSpec(QuestionAnsweringRelevanceSpec value)

Required. Spec for question answering relevance score metric.

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

Parameter
NameDescription
valueQuestionAnsweringRelevanceSpec
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(QuestionAnsweringRelevanceInstance value)

public QuestionAnsweringRelevanceInput.Builder setInstance(QuestionAnsweringRelevanceInstance value)

Required. Question answering relevance instance.

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

Parameter
NameDescription
valueQuestionAnsweringRelevanceInstance
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

setInstance(QuestionAnsweringRelevanceInstance.Builder builderForValue)

public QuestionAnsweringRelevanceInput.Builder setInstance(QuestionAnsweringRelevanceInstance.Builder builderForValue)

Required. Question answering relevance instance.

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

Parameter
NameDescription
builderForValueQuestionAnsweringRelevanceInstance.Builder
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

setMetricSpec(QuestionAnsweringRelevanceSpec value)

public QuestionAnsweringRelevanceInput.Builder setMetricSpec(QuestionAnsweringRelevanceSpec value)

Required. Spec for question answering relevance score metric.

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

Parameter
NameDescription
valueQuestionAnsweringRelevanceSpec
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

setMetricSpec(QuestionAnsweringRelevanceSpec.Builder builderForValue)

public QuestionAnsweringRelevanceInput.Builder setMetricSpec(QuestionAnsweringRelevanceSpec.Builder builderForValue)

Required. Spec for question answering relevance score metric.

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

Parameter
NameDescription
builderForValueQuestionAnsweringRelevanceSpec.Builder
Returns
TypeDescription
QuestionAnsweringRelevanceInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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