Class EvaluationResult.ScenarioExpectationOutcome (0.3.0)

public static final class EvaluationResult.ScenarioExpectationOutcome extends GeneratedMessage implements EvaluationResult.ScenarioExpectationOutcomeOrBuilder

The outcome of a scenario expectation.

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > EvaluationResult.ScenarioExpectationOutcome

Static Fields

EXPECTATION_FIELD_NUMBER

public static final int EXPECTATION_FIELD_NUMBER
Field Value
Type Description
int

OBSERVED_AGENT_RESPONSE_FIELD_NUMBER

public static final int OBSERVED_AGENT_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

OBSERVED_TOOL_CALL_FIELD_NUMBER

public static final int OBSERVED_TOOL_CALL_FIELD_NUMBER
Field Value
Type Description
int

OUTCOME_FIELD_NUMBER

public static final int OUTCOME_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static EvaluationResult.ScenarioExpectationOutcome getDefaultInstance()
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome

getDescriptor()

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

newBuilder()

public static EvaluationResult.ScenarioExpectationOutcome.Builder newBuilder()
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

newBuilder(EvaluationResult.ScenarioExpectationOutcome prototype)

public static EvaluationResult.ScenarioExpectationOutcome.Builder newBuilder(EvaluationResult.ScenarioExpectationOutcome prototype)
Parameter
Name Description
prototype EvaluationResult.ScenarioExpectationOutcome
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder

parseDelimitedFrom(InputStream input)

public static EvaluationResult.ScenarioExpectationOutcome parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static EvaluationResult.ScenarioExpectationOutcome parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<EvaluationResult.ScenarioExpectationOutcome> parser()
Returns
Type Description
Parser<ScenarioExpectationOutcome>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

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

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.

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.

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.

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.

getParserForType()

public Parser<EvaluationResult.ScenarioExpectationOutcome> getParserForType()
Returns
Type Description
Parser<ScenarioExpectationOutcome>
Overrides

getResultCase()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

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

newBuilderForType(AbstractMessage.BuilderParent parent)

protected EvaluationResult.ScenarioExpectationOutcome.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
EvaluationResult.ScenarioExpectationOutcome.Builder
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException