Class Evaluation.ScenarioExpectation.Builder (0.7.0)
0.9.0 (latest)
0.7.0
0.4.0
0.3.0
0.1.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
Inherited Members
com.google.protobuf.GeneratedMessage.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessage.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessage.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessage.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
com.google.protobuf.GeneratedMessage.Builder.setUnknownFieldsProto3(com.google.protobuf.UnknownFieldSet)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
build()
public Evaluation . ScenarioExpectation build ()
buildPartial()
public Evaluation . ScenarioExpectation buildPartial ()
clear()
public Evaluation . ScenarioExpectation . Builder clear ()
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];
clearExpectation()
public Evaluation . ScenarioExpectation . Builder clearExpectation ()
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];
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];
getAgentResponseOrBuilder()
public MessageOrBuilder getAgentResponseOrBuilder ()
Optional. The agent response to be evaluated.
.google.cloud.ces.v1beta.Message agent_response = 2 [(.google.api.field_behavior) = OPTIONAL];
getDefaultInstanceForType()
public Evaluation . ScenarioExpectation getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getExpectationCase()
public Evaluation . ScenarioExpectation . ExpectationCase getExpectationCase ()
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];
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];
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];
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.
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 ()
Overrides
isInitialized()
public final boolean isInitialized ()
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
mergeFrom(Evaluation.ScenarioExpectation other)
public Evaluation . ScenarioExpectation . Builder mergeFrom ( Evaluation . ScenarioExpectation other )
public Evaluation . ScenarioExpectation . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public Evaluation . ScenarioExpectation . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
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];
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
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];
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];
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];
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-06-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-06-17 UTC."],[],[]]