Class QuestionAnsweringHelpfulnessSpec.Builder (3.40.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringHelpfulnessSpec build()
Returns
TypeDescription
QuestionAnsweringHelpfulnessSpec

buildPartial()

public QuestionAnsweringHelpfulnessSpec buildPartial()
Returns
TypeDescription
QuestionAnsweringHelpfulnessSpec

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public QuestionAnsweringHelpfulnessSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public QuestionAnsweringHelpfulnessSpec getDefaultInstanceForType()
Returns
TypeDescription
QuestionAnsweringHelpfulnessSpec

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
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(QuestionAnsweringHelpfulnessSpec other)

public QuestionAnsweringHelpfulnessSpec.Builder mergeFrom(QuestionAnsweringHelpfulnessSpec other)
Parameter
NameDescription
otherQuestionAnsweringHelpfulnessSpec
Returns
TypeDescription
QuestionAnsweringHelpfulnessSpec.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final QuestionAnsweringHelpfulnessSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The useReference to set.

Returns
TypeDescription
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
NameDescription
valueint

The version to set.

Returns
TypeDescription
QuestionAnsweringHelpfulnessSpec.Builder

This builder for chaining.