Class QuestionAnsweringRelevanceResult.Builder (3.45.0)

public static final class QuestionAnsweringRelevanceResult.Builder extends GeneratedMessageV3.Builder<QuestionAnsweringRelevanceResult.Builder> implements QuestionAnsweringRelevanceResultOrBuilder

Spec for question answering relevance result.

Protobuf type google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResult

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public QuestionAnsweringRelevanceResult build()
Returns
Type Description
QuestionAnsweringRelevanceResult

buildPartial()

public QuestionAnsweringRelevanceResult buildPartial()
Returns
Type Description
QuestionAnsweringRelevanceResult

clear()

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

clearConfidence()

public QuestionAnsweringRelevanceResult.Builder clearConfidence()

Output only. Confidence for question answering relevance score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

clearExplanation()

public QuestionAnsweringRelevanceResult.Builder clearExplanation()

Output only. Explanation for question answering relevance score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearScore()

public QuestionAnsweringRelevanceResult.Builder clearScore()

Output only. Question Answering Relevance score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

clone()

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

getConfidence()

public float getConfidence()

Output only. Confidence for question answering relevance score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The confidence.

getDefaultInstanceForType()

public QuestionAnsweringRelevanceResult getDefaultInstanceForType()
Returns
Type Description
QuestionAnsweringRelevanceResult

getDescriptorForType()

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

getExplanation()

public String getExplanation()

Output only. Explanation for question answering relevance score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public ByteString getExplanationBytes()

Output only. Explanation for question answering relevance score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for explanation.

getScore()

public float getScore()

Output only. Question Answering Relevance score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The score.

hasConfidence()

public boolean hasConfidence()

Output only. Confidence for question answering relevance score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the confidence field is set.

hasScore()

public boolean hasScore()

Output only. Question Answering Relevance score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the score field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(QuestionAnsweringRelevanceResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setConfidence(float value)

public QuestionAnsweringRelevanceResult.Builder setConfidence(float value)

Output only. Confidence for question answering relevance score.

optional float confidence = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value float

The confidence to set.

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

setExplanation(String value)

public QuestionAnsweringRelevanceResult.Builder setExplanation(String value)

Output only. Explanation for question answering relevance score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The explanation to set.

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

setExplanationBytes(ByteString value)

public QuestionAnsweringRelevanceResult.Builder setExplanationBytes(ByteString value)

Output only. Explanation for question answering relevance score.

string explanation = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for explanation to set.

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setScore(float value)

public QuestionAnsweringRelevanceResult.Builder setScore(float value)

Output only. Question Answering Relevance score.

optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value float

The score to set.

Returns
Type Description
QuestionAnsweringRelevanceResult.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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