Class QuestionAnsweringHelpfulnessSpec.Builder (3.46.0)

public static final class QuestionAnsweringHelpfulnessSpec.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringHelpfulnessSpec.Builder> implements QuestionAnsweringHelpfulnessSpecOrBuilder

Spec for question answering helpfulness metric.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpec

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringHelpfulnessSpec build()
Returns
Type Description
QuestionAnsweringHelpfulnessSpec

buildPartial()

public QuestionAnsweringHelpfulnessSpec buildPartial()
Returns
Type Description
QuestionAnsweringHelpfulnessSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

public QuestionAnsweringHelpfulnessSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUseReference()

public QuestionAnsweringHelpfulnessSpec.Builder clearUseReference()

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

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

Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.

clearVersion()

public QuestionAnsweringHelpfulnessSpec.Builder clearVersion()

Optional. Which version to use for evaluation.

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

Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringHelpfulnessSpec getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringHelpfulnessSpec

getDescriptorForType()

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

getUseReference()

public boolean getUseReference()

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

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

Returns
Type Description
boolean

The useReference.

getVersion()

public int getVersion()

Optional. Which version to use for evaluation.

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

Returns
Type Description
int

The version.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuestionAnsweringHelpfulnessSpec other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public QuestionAnsweringHelpfulnessSpec.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUseReference(boolean value)

public QuestionAnsweringHelpfulnessSpec.Builder setUseReference(boolean value)

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

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

Parameter
Name Description
value boolean

The useReference to set.

Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.

setVersion(int value)

public QuestionAnsweringHelpfulnessSpec.Builder setVersion(int value)

Optional. Which version to use for evaluation.

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

Parameter
Name Description
value int

The version to set.

Returns
Type Description
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.