Class PairwiseQuestionAnsweringQualityInput.Builder (3.41.0)

public static final class PairwiseQuestionAnsweringQualityInput.Builder extends GeneratedMessageV3.Builder<PairwiseQuestionAnsweringQualityInput.Builder> implements PairwiseQuestionAnsweringQualityInputOrBuilder

Input for pairwise question answering quality metric.

Protobuf type google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInput

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PairwiseQuestionAnsweringQualityInput build()
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput

buildPartial()

public PairwiseQuestionAnsweringQualityInput buildPartial()
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearInstance()

public PairwiseQuestionAnsweringQualityInput.Builder clearInstance()

Required. Pairwise question answering quality instance.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

clearMetricSpec()

public PairwiseQuestionAnsweringQualityInput.Builder clearMetricSpec()

Required. Spec for pairwise question answering quality score metric.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public PairwiseQuestionAnsweringQualityInput getDefaultInstanceForType()
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInstance()

public PairwiseQuestionAnsweringQualityInstance getInstance()

Required. Pairwise question answering quality instance.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualityInstance

The instance.

getInstanceBuilder()

public PairwiseQuestionAnsweringQualityInstance.Builder getInstanceBuilder()

Required. Pairwise question answering quality instance.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualityInstance.Builder

getInstanceOrBuilder()

public PairwiseQuestionAnsweringQualityInstanceOrBuilder getInstanceOrBuilder()

Required. Pairwise question answering quality instance.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualityInstanceOrBuilder

getMetricSpec()

public PairwiseQuestionAnsweringQualitySpec getMetricSpec()

Required. Spec for pairwise question answering quality score metric.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualitySpec

The metricSpec.

getMetricSpecBuilder()

public PairwiseQuestionAnsweringQualitySpec.Builder getMetricSpecBuilder()

Required. Spec for pairwise question answering quality score metric.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualitySpec.Builder

getMetricSpecOrBuilder()

public PairwiseQuestionAnsweringQualitySpecOrBuilder getMetricSpecOrBuilder()

Required. Spec for pairwise question answering quality score metric.

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

Returns
TypeDescription
PairwiseQuestionAnsweringQualitySpecOrBuilder

hasInstance()

public boolean hasInstance()

Required. Pairwise question answering quality instance.

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

Returns
TypeDescription
boolean

Whether the instance field is set.

hasMetricSpec()

public boolean hasMetricSpec()

Required. Spec for pairwise question answering quality score metric.

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

public PairwiseQuestionAnsweringQualityInput.Builder mergeFrom(PairwiseQuestionAnsweringQualityInput other)
Parameter
NameDescription
otherPairwiseQuestionAnsweringQualityInput
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInstance(PairwiseQuestionAnsweringQualityInstance value)

public PairwiseQuestionAnsweringQualityInput.Builder mergeInstance(PairwiseQuestionAnsweringQualityInstance value)

Required. Pairwise question answering quality instance.

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

Parameter
NameDescription
valuePairwiseQuestionAnsweringQualityInstance
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

mergeMetricSpec(PairwiseQuestionAnsweringQualitySpec value)

public PairwiseQuestionAnsweringQualityInput.Builder mergeMetricSpec(PairwiseQuestionAnsweringQualitySpec value)

Required. Spec for pairwise question answering quality score metric.

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

Parameter
NameDescription
valuePairwiseQuestionAnsweringQualitySpec
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstance(PairwiseQuestionAnsweringQualityInstance value)

public PairwiseQuestionAnsweringQualityInput.Builder setInstance(PairwiseQuestionAnsweringQualityInstance value)

Required. Pairwise question answering quality instance.

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

Parameter
NameDescription
valuePairwiseQuestionAnsweringQualityInstance
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

setInstance(PairwiseQuestionAnsweringQualityInstance.Builder builderForValue)

public PairwiseQuestionAnsweringQualityInput.Builder setInstance(PairwiseQuestionAnsweringQualityInstance.Builder builderForValue)

Required. Pairwise question answering quality instance.

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

Parameter
NameDescription
builderForValuePairwiseQuestionAnsweringQualityInstance.Builder
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

setMetricSpec(PairwiseQuestionAnsweringQualitySpec value)

public PairwiseQuestionAnsweringQualityInput.Builder setMetricSpec(PairwiseQuestionAnsweringQualitySpec value)

Required. Spec for pairwise question answering quality score metric.

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

Parameter
NameDescription
valuePairwiseQuestionAnsweringQualitySpec
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

setMetricSpec(PairwiseQuestionAnsweringQualitySpec.Builder builderForValue)

public PairwiseQuestionAnsweringQualityInput.Builder setMetricSpec(PairwiseQuestionAnsweringQualitySpec.Builder builderForValue)

Required. Spec for pairwise question answering quality score metric.

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

Parameter
NameDescription
builderForValuePairwiseQuestionAnsweringQualitySpec.Builder
Returns
TypeDescription
PairwiseQuestionAnsweringQualityInput.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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