Class QuestionAnsweringRelevanceInput.Builder (3.47.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
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringRelevanceInput build()
Returns
Type Description
QuestionAnsweringRelevanceInput

buildPartial()

public QuestionAnsweringRelevanceInput buildPartial()
Returns
Type Description
QuestionAnsweringRelevanceInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringRelevanceInput getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringRelevanceInput

getDescriptorForType()

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

getInstance()

public QuestionAnsweringRelevanceInstance getInstance()

Required. Question answering relevance instance.

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

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

getInstanceOrBuilder()

public QuestionAnsweringRelevanceInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering relevance instance.

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

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

hasInstance()

public boolean hasInstance()

Required. Question answering relevance instance.

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringRelevanceInput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
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
Name Description
value QuestionAnsweringRelevanceInstance
Returns
Type Description
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
Name Description
value QuestionAnsweringRelevanceSpec
Returns
Type Description
QuestionAnsweringRelevanceInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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