Class Evaluation.ScenarioExpectation.Builder (0.3.0)

public static final class Evaluation.ScenarioExpectation.Builder extends GeneratedMessage.Builder<Evaluation.ScenarioExpectation.Builder> implements Evaluation.ScenarioExpectationOrBuilder

The expectation to evaluate the conversation produced by the simulation.

Protobuf type google.cloud.ces.v1beta.Evaluation.ScenarioExpectation

Static Methods

getDescriptor()

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

Methods

build()

public Evaluation.ScenarioExpectation build()
Returns
Type Description
Evaluation.ScenarioExpectation

buildPartial()

public Evaluation.ScenarioExpectation buildPartial()
Returns
Type Description
Evaluation.ScenarioExpectation

clear()

public Evaluation.ScenarioExpectation.Builder clear()
Returns
Type Description
Evaluation.ScenarioExpectation.Builder
Overrides

clearAgentResponse()

public Evaluation.ScenarioExpectation.Builder clearAgentResponse()

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.ScenarioExpectation.Builder

clearExpectation()

public Evaluation.ScenarioExpectation.Builder clearExpectation()
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

clearToolExpectation()

public Evaluation.ScenarioExpectation.Builder clearToolExpectation()

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.ScenarioExpectation.Builder

getAgentResponse()

public Message getAgentResponse()

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Message

The agentResponse.

getAgentResponseBuilder()

public Message.Builder getAgentResponseBuilder()

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Message.Builder

getAgentResponseOrBuilder()

public MessageOrBuilder getAgentResponseOrBuilder()

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
MessageOrBuilder

getDefaultInstanceForType()

public Evaluation.ScenarioExpectation getDefaultInstanceForType()
Returns
Type Description
Evaluation.ScenarioExpectation

getDescriptorForType()

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

getExpectationCase()

public Evaluation.ScenarioExpectation.ExpectationCase getExpectationCase()
Returns
Type Description
Evaluation.ScenarioExpectation.ExpectationCase

getToolExpectation()

public Evaluation.ScenarioExpectation.ToolExpectation getToolExpectation()

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation

The toolExpectation.

getToolExpectationBuilder()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder getToolExpectationBuilder()

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

getToolExpectationOrBuilder()

public Evaluation.ScenarioExpectation.ToolExpectationOrBuilder getToolExpectationOrBuilder()

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectationOrBuilder

hasAgentResponse()

public boolean hasAgentResponse()

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the agentResponse field is set.

hasToolExpectation()

public boolean hasToolExpectation()

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the toolExpectation field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAgentResponse(Message value)

public Evaluation.ScenarioExpectation.Builder mergeAgentResponse(Message value)

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Message
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

mergeFrom(Evaluation.ScenarioExpectation other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation value)

public Evaluation.ScenarioExpectation.Builder mergeToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation value)

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Evaluation.ScenarioExpectation.ToolExpectation
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

setAgentResponse(Message value)

public Evaluation.ScenarioExpectation.Builder setAgentResponse(Message value)

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Message
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

setAgentResponse(Message.Builder builderForValue)

public Evaluation.ScenarioExpectation.Builder setAgentResponse(Message.Builder builderForValue)

Optional. The agent response to be evaluated.

.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Message.Builder
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

setToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation value)

public Evaluation.ScenarioExpectation.Builder setToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation value)

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value Evaluation.ScenarioExpectation.ToolExpectation
Returns
Type Description
Evaluation.ScenarioExpectation.Builder

setToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation.Builder builderForValue)

public Evaluation.ScenarioExpectation.Builder setToolExpectation(Evaluation.ScenarioExpectation.ToolExpectation.Builder builderForValue)

Optional. The tool call and response pair to be evaluated.

.google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation tool_expectation = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Evaluation.ScenarioExpectation.ToolExpectation.Builder
Returns
Type Description
Evaluation.ScenarioExpectation.Builder