Class EvaluationResult.ScenarioRubricOutcome.Builder (0.3.0)

public static final class EvaluationResult.ScenarioRubricOutcome.Builder extends GeneratedMessage.Builder<EvaluationResult.ScenarioRubricOutcome.Builder> implements EvaluationResult.ScenarioRubricOutcomeOrBuilder

The outcome of the evaluation against the rubric.

Protobuf type google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome

Static Methods

getDescriptor()

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

Methods

build()

public EvaluationResult.ScenarioRubricOutcome build()
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome

buildPartial()

public EvaluationResult.ScenarioRubricOutcome buildPartial()
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome

clear()

public EvaluationResult.ScenarioRubricOutcome.Builder clear()
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder
Overrides

clearRubric()

public EvaluationResult.ScenarioRubricOutcome.Builder clearRubric()

Output only. The rubric that was used to evaluate the conversation.

string rubric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

clearScore()

public EvaluationResult.ScenarioRubricOutcome.Builder clearScore()

Output only. The score of the conversation against the rubric.

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

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

clearScoreExplanation()

public EvaluationResult.ScenarioRubricOutcome.Builder clearScoreExplanation()

Output only. The rater's response to the rubric.

string score_explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

getDefaultInstanceForType()

public EvaluationResult.ScenarioRubricOutcome getDefaultInstanceForType()
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome

getDescriptorForType()

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

getRubric()

public String getRubric()

Output only. The rubric that was used to evaluate the conversation.

string rubric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The rubric.

getRubricBytes()

public ByteString getRubricBytes()

Output only. The rubric that was used to evaluate the conversation.

string rubric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for rubric.

getScore()

public float getScore()

Output only. The score of the conversation against the rubric.

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

Returns
Type Description
float

The score.

getScoreExplanation()

public String getScoreExplanation()

Output only. The rater's response to the rubric.

string score_explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The scoreExplanation.

getScoreExplanationBytes()

public ByteString getScoreExplanationBytes()

Output only. The rater's response to the rubric.

string score_explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for scoreExplanation.

hasScore()

public boolean hasScore()

Output only. The score of the conversation against the rubric.

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

Returns
Type Description
boolean

Whether the score field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(EvaluationResult.ScenarioRubricOutcome other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setRubric(String value)

public EvaluationResult.ScenarioRubricOutcome.Builder setRubric(String value)

Output only. The rubric that was used to evaluate the conversation.

string rubric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The rubric to set.

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

setRubricBytes(ByteString value)

public EvaluationResult.ScenarioRubricOutcome.Builder setRubricBytes(ByteString value)

Output only. The rubric that was used to evaluate the conversation.

string rubric = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for rubric to set.

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

setScore(float value)

public EvaluationResult.ScenarioRubricOutcome.Builder setScore(float value)

Output only. The score of the conversation against the rubric.

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

Parameter
Name Description
value float

The score to set.

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

setScoreExplanation(String value)

public EvaluationResult.ScenarioRubricOutcome.Builder setScoreExplanation(String value)

Output only. The rater's response to the rubric.

string score_explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The scoreExplanation to set.

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.

setScoreExplanationBytes(ByteString value)

public EvaluationResult.ScenarioRubricOutcome.Builder setScoreExplanationBytes(ByteString value)

Output only. The rater's response to the rubric.

string score_explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for scoreExplanation to set.

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

This builder for chaining.