Class QuestionAnsweringQualitySpec.Builder (3.40.0)

public static final class QuestionAnsweringQualitySpec.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringQualitySpec.Builder> implements QuestionAnsweringQualitySpecOrBuilder

Spec for question answering quality score metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringQualitySpec build()
Returns
TypeDescription
QuestionAnsweringQualitySpec

buildPartial()

public QuestionAnsweringQualitySpec buildPartial()
Returns
TypeDescription
QuestionAnsweringQualitySpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUseReference()

public QuestionAnsweringQualitySpec.Builder clearUseReference()

Optional. Whether to use instance.reference to compute question answering quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

This builder for chaining.

clearVersion()

public QuestionAnsweringQualitySpec.Builder clearVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringQualitySpec getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringQualitySpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getUseReference()

public boolean getUseReference()

Optional. Whether to use instance.reference to compute question answering quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The useReference.

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(QuestionAnsweringQualitySpec other)

public QuestionAnsweringQualitySpec.Builder mergeFrom(QuestionAnsweringQualitySpec other)
Parameter
NameDescription
otherQuestionAnsweringQualitySpec
Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseReference(boolean value)

public QuestionAnsweringQualitySpec.Builder setUseReference(boolean value)

Optional. Whether to use instance.reference to compute question answering quality.

bool use_reference = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The useReference to set.

Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

This builder for chaining.

setVersion(int value)

public QuestionAnsweringQualitySpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

int32 version = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueint

The version to set.

Returns
TypeDescription
QuestionAnsweringQualitySpec.Builder

This builder for chaining.