Class QuestionAnsweringCorrectnessInput.Builder (3.55.0)

See more code actions.
public static final class QuestionAnsweringCorrectnessInput.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringCorrectnessInput.Builder> implements QuestionAnsweringCorrectnessInputOrBuilder

Input for question answering correctness metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInput

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringCorrectnessInput build()
Returns
Type Description
QuestionAnsweringCorrectnessInput

buildPartial()

public QuestionAnsweringCorrectnessInput buildPartial()
Returns
Type Description
QuestionAnsweringCorrectnessInput

clear()

public QuestionAnsweringCorrectnessInput.Builder clear()
Overrides

clearField(Descriptors.FieldDescriptor field)

public QuestionAnsweringCorrectnessInput.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Overrides

clearInstance()

public QuestionAnsweringCorrectnessInput.Builder clearInstance()

Required. Question answering correctness instance.

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

clearMetricSpec()

public QuestionAnsweringCorrectnessInput.Builder clearMetricSpec()

Required. Spec for question answering correctness score metric.

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QuestionAnsweringCorrectnessInput.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Overrides

clone()

public QuestionAnsweringCorrectnessInput.Builder clone()
Overrides

getDefaultInstanceForType()

public QuestionAnsweringCorrectnessInput getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringCorrectnessInput

getDescriptorForType()

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

getInstance()

public QuestionAnsweringCorrectnessInstance getInstance()

Required. Question answering correctness instance.

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

Returns
Type Description
QuestionAnsweringCorrectnessInstance

The instance.

getInstanceBuilder()

public QuestionAnsweringCorrectnessInstance.Builder getInstanceBuilder()

Required. Question answering correctness instance.

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

getInstanceOrBuilder()

public QuestionAnsweringCorrectnessInstanceOrBuilder getInstanceOrBuilder()

Required. Question answering correctness instance.

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

getMetricSpec()

public QuestionAnsweringCorrectnessSpec getMetricSpec()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessSpec

The metricSpec.

getMetricSpecBuilder()

public QuestionAnsweringCorrectnessSpec.Builder getMetricSpecBuilder()

Required. Spec for question answering correctness score metric.

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

Returns
Type Description
QuestionAnsweringCorrectnessSpec.Builder

getMetricSpecOrBuilder()

public QuestionAnsweringCorrectnessSpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for question answering correctness score metric.

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

hasInstance()

public boolean hasInstance()

Required. Question answering correctness instance.

.google.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstance 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 correctness score metric.

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

public QuestionAnsweringCorrectnessInput.Builder mergeFrom(QuestionAnsweringCorrectnessInput other)
Parameter
Name Description
other QuestionAnsweringCorrectnessInput

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringCorrectnessInput.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Overrides

mergeInstance(QuestionAnsweringCorrectnessInstance value)

public QuestionAnsweringCorrectnessInput.Builder mergeInstance(QuestionAnsweringCorrectnessInstance value)

Required. Question answering correctness instance.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessInstance

mergeMetricSpec(QuestionAnsweringCorrectnessSpec value)

public QuestionAnsweringCorrectnessInput.Builder mergeMetricSpec(QuestionAnsweringCorrectnessSpec value)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessSpec

mergeUnknownFields(UnknownFieldSet unknownFields)

public final QuestionAnsweringCorrectnessInput.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(QuestionAnsweringCorrectnessInstance value)

public QuestionAnsweringCorrectnessInput.Builder setInstance(QuestionAnsweringCorrectnessInstance value)

Required. Question answering correctness instance.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessInstance

setInstance(QuestionAnsweringCorrectnessInstance.Builder builderForValue)

public QuestionAnsweringCorrectnessInput.Builder setInstance(QuestionAnsweringCorrectnessInstance.Builder builderForValue)

Required. Question answering correctness instance.

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

Parameter
Name Description
builderForValue QuestionAnsweringCorrectnessInstance.Builder

setMetricSpec(QuestionAnsweringCorrectnessSpec value)

public QuestionAnsweringCorrectnessInput.Builder setMetricSpec(QuestionAnsweringCorrectnessSpec value)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
value QuestionAnsweringCorrectnessSpec

setMetricSpec(QuestionAnsweringCorrectnessSpec.Builder builderForValue)

public QuestionAnsweringCorrectnessInput.Builder setMetricSpec(QuestionAnsweringCorrectnessSpec.Builder builderForValue)

Required. Spec for question answering correctness score metric.

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

Parameter
Name Description
builderForValue QuestionAnsweringCorrectnessSpec.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final QuestionAnsweringCorrectnessInput.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Overrides