Class EvaluationResult.ScenarioResult.Builder (0.3.0)

public static final class EvaluationResult.ScenarioResult.Builder extends GeneratedMessage.Builder<EvaluationResult.ScenarioResult.Builder> implements EvaluationResult.ScenarioResultOrBuilder

The outcome of a scenario evaluation.

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

Static Methods

getDescriptor()

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

Methods

addAllEvaluationExpectationResults(Iterable<? extends EvaluationResult.EvaluationExpectationResult> values)

public EvaluationResult.ScenarioResult.Builder addAllEvaluationExpectationResults(Iterable<? extends EvaluationResult.EvaluationExpectationResult> values)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllExpectationOutcomes(Iterable<? extends EvaluationResult.ScenarioExpectationOutcome> values)

public EvaluationResult.ScenarioResult.Builder addAllExpectationOutcomes(Iterable<? extends EvaluationResult.ScenarioExpectationOutcome> values)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllHallucinationResult(Iterable<? extends EvaluationResult.HallucinationResult> values)

public EvaluationResult.ScenarioResult.Builder addAllHallucinationResult(Iterable<? extends EvaluationResult.HallucinationResult> values)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.HallucinationResult>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllRubricOutcomes(Iterable<? extends EvaluationResult.ScenarioRubricOutcome> values)

public EvaluationResult.ScenarioResult.Builder addAllRubricOutcomes(Iterable<? extends EvaluationResult.ScenarioRubricOutcome> values)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllSpanLatencies(Iterable<? extends EvaluationResult.SpanLatency> values)

public EvaluationResult.ScenarioResult.Builder addAllSpanLatencies(Iterable<? extends EvaluationResult.SpanLatency> values)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.SpanLatency>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllToolCallLatencies(Iterable<? extends EvaluationResult.ToolCallLatency> values)

public EvaluationResult.ScenarioResult.Builder addAllToolCallLatencies(Iterable<? extends EvaluationResult.ToolCallLatency> values)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addAllUserFacts(Iterable<? extends Evaluation.Scenario.UserFact> values)

public EvaluationResult.ScenarioResult.Builder addAllUserFacts(Iterable<? extends Evaluation.Scenario.UserFact> values)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.ces.v1beta.Evaluation.Scenario.UserFact>
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addEvaluationExpectationResults(EvaluationResult.EvaluationExpectationResult value)

public EvaluationResult.ScenarioResult.Builder addEvaluationExpectationResults(EvaluationResult.EvaluationExpectationResult value)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.EvaluationExpectationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addEvaluationExpectationResults(EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addEvaluationExpectationResults(EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.EvaluationExpectationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult value)

public EvaluationResult.ScenarioResult.Builder addEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult value)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.EvaluationExpectationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.EvaluationExpectationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addEvaluationExpectationResultsBuilder()

public EvaluationResult.EvaluationExpectationResult.Builder addEvaluationExpectationResultsBuilder()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.EvaluationExpectationResult.Builder

addEvaluationExpectationResultsBuilder(int index)

public EvaluationResult.EvaluationExpectationResult.Builder addEvaluationExpectationResultsBuilder(int index)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.EvaluationExpectationResult.Builder

addExpectationOutcomes(EvaluationResult.ScenarioExpectationOutcome value)

public EvaluationResult.ScenarioResult.Builder addExpectationOutcomes(EvaluationResult.ScenarioExpectationOutcome value)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.ScenarioExpectationOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addExpectationOutcomes(EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addExpectationOutcomes(EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.ScenarioExpectationOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome value)

public EvaluationResult.ScenarioResult.Builder addExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome value)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ScenarioExpectationOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ScenarioExpectationOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addExpectationOutcomesBuilder()

public EvaluationResult.ScenarioExpectationOutcome.Builder addExpectationOutcomesBuilder()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

addExpectationOutcomesBuilder(int index)

public EvaluationResult.ScenarioExpectationOutcome.Builder addExpectationOutcomesBuilder(int index)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

addHallucinationResult(EvaluationResult.HallucinationResult value)

public EvaluationResult.ScenarioResult.Builder addHallucinationResult(EvaluationResult.HallucinationResult value)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.HallucinationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addHallucinationResult(EvaluationResult.HallucinationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addHallucinationResult(EvaluationResult.HallucinationResult.Builder builderForValue)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.HallucinationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addHallucinationResult(int index, EvaluationResult.HallucinationResult value)

public EvaluationResult.ScenarioResult.Builder addHallucinationResult(int index, EvaluationResult.HallucinationResult value)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.HallucinationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addHallucinationResult(int index, EvaluationResult.HallucinationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addHallucinationResult(int index, EvaluationResult.HallucinationResult.Builder builderForValue)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.HallucinationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addHallucinationResultBuilder()

public EvaluationResult.HallucinationResult.Builder addHallucinationResultBuilder()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.HallucinationResult.Builder

addHallucinationResultBuilder(int index)

public EvaluationResult.HallucinationResult.Builder addHallucinationResultBuilder(int index)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.HallucinationResult.Builder

addRubricOutcomes(EvaluationResult.ScenarioRubricOutcome value)

public EvaluationResult.ScenarioResult.Builder addRubricOutcomes(EvaluationResult.ScenarioRubricOutcome value)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.ScenarioRubricOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addRubricOutcomes(EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addRubricOutcomes(EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.ScenarioRubricOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome value)

public EvaluationResult.ScenarioResult.Builder addRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome value)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ScenarioRubricOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ScenarioRubricOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addRubricOutcomesBuilder()

public EvaluationResult.ScenarioRubricOutcome.Builder addRubricOutcomesBuilder()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

addRubricOutcomesBuilder(int index)

public EvaluationResult.ScenarioRubricOutcome.Builder addRubricOutcomesBuilder(int index)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

addSpanLatencies(EvaluationResult.SpanLatency value)

public EvaluationResult.ScenarioResult.Builder addSpanLatencies(EvaluationResult.SpanLatency value)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.SpanLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addSpanLatencies(EvaluationResult.SpanLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addSpanLatencies(EvaluationResult.SpanLatency.Builder builderForValue)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.SpanLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addSpanLatencies(int index, EvaluationResult.SpanLatency value)

public EvaluationResult.ScenarioResult.Builder addSpanLatencies(int index, EvaluationResult.SpanLatency value)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.SpanLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addSpanLatencies(int index, EvaluationResult.SpanLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addSpanLatencies(int index, EvaluationResult.SpanLatency.Builder builderForValue)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.SpanLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addSpanLatenciesBuilder()

public EvaluationResult.SpanLatency.Builder addSpanLatenciesBuilder()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SpanLatency.Builder

addSpanLatenciesBuilder(int index)

public EvaluationResult.SpanLatency.Builder addSpanLatenciesBuilder(int index)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.SpanLatency.Builder

addToolCallLatencies(EvaluationResult.ToolCallLatency value)

public EvaluationResult.ScenarioResult.Builder addToolCallLatencies(EvaluationResult.ToolCallLatency value)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.ToolCallLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addToolCallLatencies(EvaluationResult.ToolCallLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addToolCallLatencies(EvaluationResult.ToolCallLatency.Builder builderForValue)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.ToolCallLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addToolCallLatencies(int index, EvaluationResult.ToolCallLatency value)

public EvaluationResult.ScenarioResult.Builder addToolCallLatencies(int index, EvaluationResult.ToolCallLatency value)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ToolCallLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addToolCallLatencies(int index, EvaluationResult.ToolCallLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addToolCallLatencies(int index, EvaluationResult.ToolCallLatency.Builder builderForValue)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ToolCallLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addToolCallLatenciesBuilder()

public EvaluationResult.ToolCallLatency.Builder addToolCallLatenciesBuilder()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

addToolCallLatenciesBuilder(int index)

public EvaluationResult.ToolCallLatency.Builder addToolCallLatenciesBuilder(int index)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

addUserFacts(Evaluation.Scenario.UserFact value)

public EvaluationResult.ScenarioResult.Builder addUserFacts(Evaluation.Scenario.UserFact value)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Evaluation.Scenario.UserFact
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addUserFacts(Evaluation.Scenario.UserFact.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addUserFacts(Evaluation.Scenario.UserFact.Builder builderForValue)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Evaluation.Scenario.UserFact.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addUserFacts(int index, Evaluation.Scenario.UserFact value)

public EvaluationResult.ScenarioResult.Builder addUserFacts(int index, Evaluation.Scenario.UserFact value)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Evaluation.Scenario.UserFact
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addUserFacts(int index, Evaluation.Scenario.UserFact.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder addUserFacts(int index, Evaluation.Scenario.UserFact.Builder builderForValue)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Evaluation.Scenario.UserFact.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

addUserFactsBuilder()

public Evaluation.Scenario.UserFact.Builder addUserFactsBuilder()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.Scenario.UserFact.Builder

addUserFactsBuilder(int index)

public Evaluation.Scenario.UserFact.Builder addUserFactsBuilder(int index)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Evaluation.Scenario.UserFact.Builder

build()

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

buildPartial()

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

clear()

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

clearAllExpectationsSatisfied()

public EvaluationResult.ScenarioResult.Builder clearAllExpectationsSatisfied()

Output only. Whether all expectations were satisfied for this turn.

optional bool all_expectations_satisfied = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

clearConversation()

public EvaluationResult.ScenarioResult.Builder clearConversation()

Output only. The conversation that was generated in the scenario.

string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

clearEvaluationExpectationResults()

public EvaluationResult.ScenarioResult.Builder clearEvaluationExpectationResults()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearExpectationOutcomes()

public EvaluationResult.ScenarioResult.Builder clearExpectationOutcomes()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearHallucinationResult()

public EvaluationResult.ScenarioResult.Builder clearHallucinationResult()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearRubricOutcomes()

public EvaluationResult.ScenarioResult.Builder clearRubricOutcomes()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearSpanLatencies()

public EvaluationResult.ScenarioResult.Builder clearSpanLatencies()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearTask()

public EvaluationResult.ScenarioResult.Builder clearTask()

Output only. The task that was used when running the scenario for this result.

string task = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

clearTaskCompleted()

public EvaluationResult.ScenarioResult.Builder clearTaskCompleted()

Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.

optional bool task_completed = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

clearTaskCompletionResult() (deprecated)

public EvaluationResult.ScenarioResult.Builder clearTaskCompletionResult()

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearToolCallLatencies()

public EvaluationResult.ScenarioResult.Builder clearToolCallLatencies()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearUserFacts()

public EvaluationResult.ScenarioResult.Builder clearUserFacts()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

clearUserGoalSatisfactionResult()

public EvaluationResult.ScenarioResult.Builder clearUserGoalSatisfactionResult()

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

getAllExpectationsSatisfied()

public boolean getAllExpectationsSatisfied()

Output only. Whether all expectations were satisfied for this turn.

optional bool all_expectations_satisfied = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The allExpectationsSatisfied.

getConversation()

public String getConversation()

Output only. The conversation that was generated in the scenario.

string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The conversation.

getConversationBytes()

public ByteString getConversationBytes()

Output only. The conversation that was generated in the scenario.

string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for conversation.

getDefaultInstanceForType()

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

getDescriptorForType()

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

getEvaluationExpectationResults(int index)

public EvaluationResult.EvaluationExpectationResult getEvaluationExpectationResults(int index)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.EvaluationExpectationResult

getEvaluationExpectationResultsBuilder(int index)

public EvaluationResult.EvaluationExpectationResult.Builder getEvaluationExpectationResultsBuilder(int index)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.EvaluationExpectationResult.Builder

getEvaluationExpectationResultsBuilderList()

public List<EvaluationResult.EvaluationExpectationResult.Builder> getEvaluationExpectationResultsBuilderList()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getEvaluationExpectationResultsCount()

public int getEvaluationExpectationResultsCount()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getEvaluationExpectationResultsList()

public List<EvaluationResult.EvaluationExpectationResult> getEvaluationExpectationResultsList()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<EvaluationExpectationResult>

getEvaluationExpectationResultsOrBuilder(int index)

public EvaluationResult.EvaluationExpectationResultOrBuilder getEvaluationExpectationResultsOrBuilder(int index)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.EvaluationExpectationResultOrBuilder

getEvaluationExpectationResultsOrBuilderList()

public List<? extends EvaluationResult.EvaluationExpectationResultOrBuilder> getEvaluationExpectationResultsOrBuilderList()

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResultOrBuilder>

getExpectationOutcomes(int index)

public EvaluationResult.ScenarioExpectationOutcome getExpectationOutcomes(int index)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome

getExpectationOutcomesBuilder(int index)

public EvaluationResult.ScenarioExpectationOutcome.Builder getExpectationOutcomesBuilder(int index)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

getExpectationOutcomesBuilderList()

public List<EvaluationResult.ScenarioExpectationOutcome.Builder> getExpectationOutcomesBuilderList()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getExpectationOutcomesCount()

public int getExpectationOutcomesCount()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getExpectationOutcomesList()

public List<EvaluationResult.ScenarioExpectationOutcome> getExpectationOutcomesList()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ScenarioExpectationOutcome>

getExpectationOutcomesOrBuilder(int index)

public EvaluationResult.ScenarioExpectationOutcomeOrBuilder getExpectationOutcomesOrBuilder(int index)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcomeOrBuilder

getExpectationOutcomesOrBuilderList()

public List<? extends EvaluationResult.ScenarioExpectationOutcomeOrBuilder> getExpectationOutcomesOrBuilderList()

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcomeOrBuilder>

getHallucinationResult(int index)

public EvaluationResult.HallucinationResult getHallucinationResult(int index)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.HallucinationResult

getHallucinationResultBuilder(int index)

public EvaluationResult.HallucinationResult.Builder getHallucinationResultBuilder(int index)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.HallucinationResult.Builder

getHallucinationResultBuilderList()

public List<EvaluationResult.HallucinationResult.Builder> getHallucinationResultBuilderList()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getHallucinationResultCount()

public int getHallucinationResultCount()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getHallucinationResultList()

public List<EvaluationResult.HallucinationResult> getHallucinationResultList()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<HallucinationResult>

getHallucinationResultOrBuilder(int index)

public EvaluationResult.HallucinationResultOrBuilder getHallucinationResultOrBuilder(int index)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.HallucinationResultOrBuilder

getHallucinationResultOrBuilderList()

public List<? extends EvaluationResult.HallucinationResultOrBuilder> getHallucinationResultOrBuilderList()

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.HallucinationResultOrBuilder>

getRubricOutcomes(int index)

public EvaluationResult.ScenarioRubricOutcome getRubricOutcomes(int index)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome

getRubricOutcomesBuilder(int index)

public EvaluationResult.ScenarioRubricOutcome.Builder getRubricOutcomesBuilder(int index)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioRubricOutcome.Builder

getRubricOutcomesBuilderList()

public List<EvaluationResult.ScenarioRubricOutcome.Builder> getRubricOutcomesBuilderList()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getRubricOutcomesCount()

public int getRubricOutcomesCount()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getRubricOutcomesList()

public List<EvaluationResult.ScenarioRubricOutcome> getRubricOutcomesList()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ScenarioRubricOutcome>

getRubricOutcomesOrBuilder(int index)

public EvaluationResult.ScenarioRubricOutcomeOrBuilder getRubricOutcomesOrBuilder(int index)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioRubricOutcomeOrBuilder

getRubricOutcomesOrBuilderList()

public List<? extends EvaluationResult.ScenarioRubricOutcomeOrBuilder> getRubricOutcomesOrBuilderList()

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcomeOrBuilder>

getSpanLatencies(int index)

public EvaluationResult.SpanLatency getSpanLatencies(int index)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.SpanLatency

getSpanLatenciesBuilder(int index)

public EvaluationResult.SpanLatency.Builder getSpanLatenciesBuilder(int index)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.SpanLatency.Builder

getSpanLatenciesBuilderList()

public List<EvaluationResult.SpanLatency.Builder> getSpanLatenciesBuilderList()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getSpanLatenciesCount()

public int getSpanLatenciesCount()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getSpanLatenciesList()

public List<EvaluationResult.SpanLatency> getSpanLatenciesList()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<SpanLatency>

getSpanLatenciesOrBuilder(int index)

public EvaluationResult.SpanLatencyOrBuilder getSpanLatenciesOrBuilder(int index)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.SpanLatencyOrBuilder

getSpanLatenciesOrBuilderList()

public List<? extends EvaluationResult.SpanLatencyOrBuilder> getSpanLatenciesOrBuilderList()

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyOrBuilder>

getTask()

public String getTask()

Output only. The task that was used when running the scenario for this result.

string task = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The task.

getTaskBytes()

public ByteString getTaskBytes()

Output only. The task that was used when running the scenario for this result.

string task = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for task.

getTaskCompleted()

public boolean getTaskCompleted()

Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.

optional bool task_completed = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The taskCompleted.

getTaskCompletionResult() (deprecated)

public EvaluationResult.TaskCompletionResult getTaskCompletionResult()

Deprecated. google.cloud.ces.v1beta.EvaluationResult.ScenarioResult.task_completion_result is deprecated. See google/cloud/ces/v1beta/evaluation.proto;l=713

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.TaskCompletionResult

The taskCompletionResult.

getTaskCompletionResultBuilder() (deprecated)

public EvaluationResult.TaskCompletionResult.Builder getTaskCompletionResultBuilder()

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.TaskCompletionResult.Builder

getTaskCompletionResultOrBuilder() (deprecated)

public EvaluationResult.TaskCompletionResultOrBuilder getTaskCompletionResultOrBuilder()

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.TaskCompletionResultOrBuilder

getToolCallLatencies(int index)

public EvaluationResult.ToolCallLatency getToolCallLatencies(int index)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ToolCallLatency

getToolCallLatenciesBuilder(int index)

public EvaluationResult.ToolCallLatency.Builder getToolCallLatenciesBuilder(int index)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ToolCallLatency.Builder

getToolCallLatenciesBuilderList()

public List<EvaluationResult.ToolCallLatency.Builder> getToolCallLatenciesBuilderList()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getToolCallLatenciesCount()

public int getToolCallLatenciesCount()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getToolCallLatenciesList()

public List<EvaluationResult.ToolCallLatency> getToolCallLatenciesList()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<ToolCallLatency>

getToolCallLatenciesOrBuilder(int index)

public EvaluationResult.ToolCallLatencyOrBuilder getToolCallLatenciesOrBuilder(int index)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ToolCallLatencyOrBuilder

getToolCallLatenciesOrBuilderList()

public List<? extends EvaluationResult.ToolCallLatencyOrBuilder> getToolCallLatenciesOrBuilderList()

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyOrBuilder>

getUserFacts(int index)

public Evaluation.Scenario.UserFact getUserFacts(int index)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Evaluation.Scenario.UserFact

getUserFactsBuilder(int index)

public Evaluation.Scenario.UserFact.Builder getUserFactsBuilder(int index)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Evaluation.Scenario.UserFact.Builder

getUserFactsBuilderList()

public List<Evaluation.Scenario.UserFact.Builder> getUserFactsBuilderList()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<Builder>

getUserFactsCount()

public int getUserFactsCount()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getUserFactsList()

public List<Evaluation.Scenario.UserFact> getUserFactsList()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<UserFact>

getUserFactsOrBuilder(int index)

public Evaluation.Scenario.UserFactOrBuilder getUserFactsOrBuilder(int index)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Evaluation.Scenario.UserFactOrBuilder

getUserFactsOrBuilderList()

public List<? extends Evaluation.Scenario.UserFactOrBuilder> getUserFactsOrBuilderList()

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactOrBuilder>

getUserGoalSatisfactionResult()

public EvaluationResult.UserGoalSatisfactionResult getUserGoalSatisfactionResult()

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.UserGoalSatisfactionResult

The userGoalSatisfactionResult.

getUserGoalSatisfactionResultBuilder()

public EvaluationResult.UserGoalSatisfactionResult.Builder getUserGoalSatisfactionResultBuilder()

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.UserGoalSatisfactionResult.Builder

getUserGoalSatisfactionResultOrBuilder()

public EvaluationResult.UserGoalSatisfactionResultOrBuilder getUserGoalSatisfactionResultOrBuilder()

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.UserGoalSatisfactionResultOrBuilder

hasAllExpectationsSatisfied()

public boolean hasAllExpectationsSatisfied()

Output only. Whether all expectations were satisfied for this turn.

optional bool all_expectations_satisfied = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the allExpectationsSatisfied field is set.

hasTaskCompleted()

public boolean hasTaskCompleted()

Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.

optional bool task_completed = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the taskCompleted field is set.

hasTaskCompletionResult() (deprecated)

public boolean hasTaskCompletionResult()

Deprecated. google.cloud.ces.v1beta.EvaluationResult.ScenarioResult.task_completion_result is deprecated. See google/cloud/ces/v1beta/evaluation.proto;l=713

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the taskCompletionResult field is set.

hasUserGoalSatisfactionResult()

public boolean hasUserGoalSatisfactionResult()

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the userGoalSatisfactionResult 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.ScenarioResult other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeTaskCompletionResult(EvaluationResult.TaskCompletionResult value) (deprecated)

public EvaluationResult.ScenarioResult.Builder mergeTaskCompletionResult(EvaluationResult.TaskCompletionResult value)

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.TaskCompletionResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

mergeUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult value)

public EvaluationResult.ScenarioResult.Builder mergeUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult value)

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.UserGoalSatisfactionResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeEvaluationExpectationResults(int index)

public EvaluationResult.ScenarioResult.Builder removeEvaluationExpectationResults(int index)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeExpectationOutcomes(int index)

public EvaluationResult.ScenarioResult.Builder removeExpectationOutcomes(int index)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeHallucinationResult(int index)

public EvaluationResult.ScenarioResult.Builder removeHallucinationResult(int index)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeRubricOutcomes(int index)

public EvaluationResult.ScenarioResult.Builder removeRubricOutcomes(int index)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeSpanLatencies(int index)

public EvaluationResult.ScenarioResult.Builder removeSpanLatencies(int index)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeToolCallLatencies(int index)

public EvaluationResult.ScenarioResult.Builder removeToolCallLatencies(int index)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

removeUserFacts(int index)

public EvaluationResult.ScenarioResult.Builder removeUserFacts(int index)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setAllExpectationsSatisfied(boolean value)

public EvaluationResult.ScenarioResult.Builder setAllExpectationsSatisfied(boolean value)

Output only. Whether all expectations were satisfied for this turn.

optional bool all_expectations_satisfied = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The allExpectationsSatisfied to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setConversation(String value)

public EvaluationResult.ScenarioResult.Builder setConversation(String value)

Output only. The conversation that was generated in the scenario.

string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The conversation to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setConversationBytes(ByteString value)

public EvaluationResult.ScenarioResult.Builder setConversationBytes(ByteString value)

Output only. The conversation that was generated in the scenario.

string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for conversation to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult value)

public EvaluationResult.ScenarioResult.Builder setEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult value)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.EvaluationExpectationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setEvaluationExpectationResults(int index, EvaluationResult.EvaluationExpectationResult.Builder builderForValue)

Output only. The results of the evaluation expectations.

repeated .google.cloud.ces.v1beta.EvaluationResult.EvaluationExpectationResult evaluation_expectation_results = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.EvaluationExpectationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome value)

public EvaluationResult.ScenarioResult.Builder setExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome value)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ScenarioExpectationOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setExpectationOutcomes(int index, EvaluationResult.ScenarioExpectationOutcome.Builder builderForValue)

Output only. The outcome of each expectation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcome expectation_outcomes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ScenarioExpectationOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setHallucinationResult(int index, EvaluationResult.HallucinationResult value)

public EvaluationResult.ScenarioResult.Builder setHallucinationResult(int index, EvaluationResult.HallucinationResult value)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.HallucinationResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setHallucinationResult(int index, EvaluationResult.HallucinationResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setHallucinationResult(int index, EvaluationResult.HallucinationResult.Builder builderForValue)

Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.HallucinationResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome value)

public EvaluationResult.ScenarioResult.Builder setRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome value)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ScenarioRubricOutcome
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setRubricOutcomes(int index, EvaluationResult.ScenarioRubricOutcome.Builder builderForValue)

Output only. The outcome of the rubric.

repeated .google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcome rubric_outcomes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ScenarioRubricOutcome.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setSpanLatencies(int index, EvaluationResult.SpanLatency value)

public EvaluationResult.ScenarioResult.Builder setSpanLatencies(int index, EvaluationResult.SpanLatency value)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.SpanLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setSpanLatencies(int index, EvaluationResult.SpanLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setSpanLatencies(int index, EvaluationResult.SpanLatency.Builder builderForValue)

Output only. The latency of spans in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.SpanLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setTask(String value)

public EvaluationResult.ScenarioResult.Builder setTask(String value)

Output only. The task that was used when running the scenario for this result.

string task = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The task to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setTaskBytes(ByteString value)

public EvaluationResult.ScenarioResult.Builder setTaskBytes(ByteString value)

Output only. The task that was used when running the scenario for this result.

string task = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for task to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setTaskCompleted(boolean value)

public EvaluationResult.ScenarioResult.Builder setTaskCompleted(boolean value)

Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.

optional bool task_completed = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The taskCompleted to set.

Returns
Type Description
EvaluationResult.ScenarioResult.Builder

This builder for chaining.

setTaskCompletionResult(EvaluationResult.TaskCompletionResult value) (deprecated)

public EvaluationResult.ScenarioResult.Builder setTaskCompletionResult(EvaluationResult.TaskCompletionResult value)

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.TaskCompletionResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setTaskCompletionResult(EvaluationResult.TaskCompletionResult.Builder builderForValue) (deprecated)

public EvaluationResult.ScenarioResult.Builder setTaskCompletionResult(EvaluationResult.TaskCompletionResult.Builder builderForValue)

Output only. The result of the task completion check.

.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResult task_completion_result = 5 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.TaskCompletionResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setToolCallLatencies(int index, EvaluationResult.ToolCallLatency value)

public EvaluationResult.ScenarioResult.Builder setToolCallLatencies(int index, EvaluationResult.ToolCallLatency value)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value EvaluationResult.ToolCallLatency
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setToolCallLatencies(int index, EvaluationResult.ToolCallLatency.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setToolCallLatencies(int index, EvaluationResult.ToolCallLatency.Builder builderForValue)

Output only. The latency of each tool call execution in the conversation.

repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue EvaluationResult.ToolCallLatency.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setUserFacts(int index, Evaluation.Scenario.UserFact value)

public EvaluationResult.ScenarioResult.Builder setUserFacts(int index, Evaluation.Scenario.UserFact value)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value Evaluation.Scenario.UserFact
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setUserFacts(int index, Evaluation.Scenario.UserFact.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setUserFacts(int index, Evaluation.Scenario.UserFact.Builder builderForValue)

Output only. The user facts that were used by the scenario for this result.

repeated .google.cloud.ces.v1beta.Evaluation.Scenario.UserFact user_facts = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue Evaluation.Scenario.UserFact.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult value)

public EvaluationResult.ScenarioResult.Builder setUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult value)

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.UserGoalSatisfactionResult
Returns
Type Description
EvaluationResult.ScenarioResult.Builder

setUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult.Builder builderForValue)

public EvaluationResult.ScenarioResult.Builder setUserGoalSatisfactionResult(EvaluationResult.UserGoalSatisfactionResult.Builder builderForValue)

Output only. The result of the user goal satisfaction check.

.google.cloud.ces.v1beta.EvaluationResult.UserGoalSatisfactionResult user_goal_satisfaction_result = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue EvaluationResult.UserGoalSatisfactionResult.Builder
Returns
Type Description
EvaluationResult.ScenarioResult.Builder