Class EvaluationResult.ScenarioExpectationOutcome.Builder (0.3.0)

public static final class EvaluationResult.ScenarioExpectationOutcome.Builder extends GeneratedMessage.Builder<EvaluationResult.ScenarioExpectationOutcome.Builder> implements EvaluationResult.ScenarioExpectationOutcomeOrBuilder

The outcome of a scenario expectation.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

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

clearExpectation()

public EvaluationResult.ScenarioExpectationOutcome.Builder clearExpectation()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

clearObservedAgentResponse()

public EvaluationResult.ScenarioExpectationOutcome.Builder clearObservedAgentResponse()

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

clearObservedToolCall()

public EvaluationResult.ScenarioExpectationOutcome.Builder clearObservedToolCall()

Output only. The observed tool call.

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

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

clearOutcome()

public EvaluationResult.ScenarioExpectationOutcome.Builder clearOutcome()

Output only. The outcome of the ScenarioExpectation.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

This builder for chaining.

clearResult()

public EvaluationResult.ScenarioExpectationOutcome.Builder clearResult()
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

getDefaultInstanceForType()

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

getDescriptorForType()

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

getExpectation()

public Evaluation.ScenarioExpectation getExpectation()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.ScenarioExpectation

The expectation.

getExpectationBuilder()

public Evaluation.ScenarioExpectation.Builder getExpectationBuilder()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.ScenarioExpectation.Builder

getExpectationOrBuilder()

public Evaluation.ScenarioExpectationOrBuilder getExpectationOrBuilder()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Evaluation.ScenarioExpectationOrBuilder

getObservedAgentResponse()

public Message getObservedAgentResponse()

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Message

The observedAgentResponse.

getObservedAgentResponseBuilder()

public Message.Builder getObservedAgentResponseBuilder()

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Message.Builder

getObservedAgentResponseOrBuilder()

public MessageOrBuilder getObservedAgentResponseOrBuilder()

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MessageOrBuilder

getObservedToolCall()

public EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall getObservedToolCall()

Output only. The observed tool call.

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

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall

The observedToolCall.

getObservedToolCallBuilder()

public EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall.Builder getObservedToolCallBuilder()

Output only. The observed tool call.

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

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall.Builder

getObservedToolCallOrBuilder()

public EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallOrBuilder getObservedToolCallOrBuilder()

Output only. The observed tool call.

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

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallOrBuilder

getOutcome()

public EvaluationResult.Outcome getOutcome()

Output only. The outcome of the ScenarioExpectation.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.Outcome

The outcome.

getOutcomeValue()

public int getOutcomeValue()

Output only. The outcome of the ScenarioExpectation.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for outcome.

getResultCase()

public EvaluationResult.ScenarioExpectationOutcome.ResultCase getResultCase()
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.ResultCase

hasExpectation()

public boolean hasExpectation()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the expectation field is set.

hasObservedAgentResponse()

public boolean hasObservedAgentResponse()

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the observedAgentResponse field is set.

hasObservedToolCall()

public boolean hasObservedToolCall()

Output only. The observed tool call.

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

Returns
Type Description
boolean

Whether the observedToolCall field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpectation(Evaluation.ScenarioExpectation value)

public EvaluationResult.ScenarioExpectationOutcome.Builder mergeExpectation(Evaluation.ScenarioExpectation value)

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Evaluation.ScenarioExpectation
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

mergeFrom(EvaluationResult.ScenarioExpectationOutcome other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeObservedAgentResponse(Message value)

public EvaluationResult.ScenarioExpectationOutcome.Builder mergeObservedAgentResponse(Message value)

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

mergeObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall value)

public EvaluationResult.ScenarioExpectationOutcome.Builder mergeObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall value)

Output only. The observed tool call.

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

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

setExpectation(Evaluation.ScenarioExpectation value)

public EvaluationResult.ScenarioExpectationOutcome.Builder setExpectation(Evaluation.ScenarioExpectation value)

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Evaluation.ScenarioExpectation
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

setExpectation(Evaluation.ScenarioExpectation.Builder builderForValue)

public EvaluationResult.ScenarioExpectationOutcome.Builder setExpectation(Evaluation.ScenarioExpectation.Builder builderForValue)

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation expectation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Evaluation.ScenarioExpectation.Builder
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

setObservedAgentResponse(Message value)

public EvaluationResult.ScenarioExpectationOutcome.Builder setObservedAgentResponse(Message value)

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setObservedAgentResponse(Message.Builder builderForValue)

public EvaluationResult.ScenarioExpectationOutcome.Builder setObservedAgentResponse(Message.Builder builderForValue)

Output only. The observed agent response.

.google.cloud.ces.v1beta.Message observed_agent_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall value)

public EvaluationResult.ScenarioExpectationOutcome.Builder setObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall value)

Output only. The observed tool call.

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

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

setObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall.Builder builderForValue)

public EvaluationResult.ScenarioExpectationOutcome.Builder setObservedToolCall(EvaluationResult.ScenarioExpectationOutcome.ObservedToolCall.Builder builderForValue)

Output only. The observed tool call.

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

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

setOutcome(EvaluationResult.Outcome value)

public EvaluationResult.ScenarioExpectationOutcome.Builder setOutcome(EvaluationResult.Outcome value)

Output only. The outcome of the ScenarioExpectation.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value EvaluationResult.Outcome

The outcome to set.

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

This builder for chaining.

setOutcomeValue(int value)

public EvaluationResult.ScenarioExpectationOutcome.Builder setOutcomeValue(int value)

Output only. The outcome of the ScenarioExpectation.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value int

The enum numeric value on the wire for outcome to set.

Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

This builder for chaining.