Class EvaluationResult.GoldenExpectationOutcome (0.3.0)

public static final class EvaluationResult.GoldenExpectationOutcome extends GeneratedMessage implements EvaluationResult.GoldenExpectationOutcomeOrBuilder

Specifies the expectation and the result of that expectation.

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

Inheritance

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

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_AGENT_TRANSFER_FIELD_NUMBER

public static final int OBSERVED_AGENT_TRANSFER_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

OBSERVED_TOOL_RESPONSE_FIELD_NUMBER

public static final int OBSERVED_TOOL_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

OUTCOME_FIELD_NUMBER

public static final int OUTCOME_FIELD_NUMBER
Field Value
Type Description
int

SEMANTIC_SIMILARITY_RESULT_FIELD_NUMBER

public static final int SEMANTIC_SIMILARITY_RESULT_FIELD_NUMBER
Field Value
Type Description
int

TOOL_INVOCATION_RESULT_FIELD_NUMBER

public static final int TOOL_INVOCATION_RESULT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

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

getDescriptor()

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

newBuilder()

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

newBuilder(EvaluationResult.GoldenExpectationOutcome prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

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

getExpectation()

public Evaluation.GoldenExpectation getExpectation()

Output only. The expectation that was evaluated.

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

Returns
Type Description
Evaluation.GoldenExpectation

The expectation.

getExpectationOrBuilder()

public Evaluation.GoldenExpectationOrBuilder getExpectationOrBuilder()

Output only. The expectation that was evaluated.

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

Returns
Type Description
Evaluation.GoldenExpectationOrBuilder

getObservedAgentResponse()

public Message getObservedAgentResponse()

Output only. The result of the agent response expectation.

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

Returns
Type Description
Message

The observedAgentResponse.

getObservedAgentResponseOrBuilder()

public MessageOrBuilder getObservedAgentResponseOrBuilder()

Output only. The result of the agent response expectation.

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

Returns
Type Description
MessageOrBuilder

getObservedAgentTransfer()

public AgentTransfer getObservedAgentTransfer()

Output only. The result of the agent transfer expectation.

.google.cloud.ces.v1beta.AgentTransfer observed_agent_transfer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentTransfer

The observedAgentTransfer.

getObservedAgentTransferOrBuilder()

public AgentTransferOrBuilder getObservedAgentTransferOrBuilder()

Output only. The result of the agent transfer expectation.

.google.cloud.ces.v1beta.AgentTransfer observed_agent_transfer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
AgentTransferOrBuilder

getObservedToolCall()

public ToolCall getObservedToolCall()

Output only. The result of the tool call expectation.

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

Returns
Type Description
ToolCall

The observedToolCall.

getObservedToolCallOrBuilder()

public ToolCallOrBuilder getObservedToolCallOrBuilder()

Output only. The result of the tool call expectation.

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

Returns
Type Description
ToolCallOrBuilder

getObservedToolResponse()

public ToolResponse getObservedToolResponse()

Output only. The result of the tool response expectation.

.google.cloud.ces.v1beta.ToolResponse observed_tool_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolResponse

The observedToolResponse.

getObservedToolResponseOrBuilder()

public ToolResponseOrBuilder getObservedToolResponseOrBuilder()

Output only. The result of the tool response expectation.

.google.cloud.ces.v1beta.ToolResponse observed_tool_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ToolResponseOrBuilder

getOutcome()

public EvaluationResult.Outcome getOutcome()

Output only. The outcome of the expectation.

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

Returns
Type Description
EvaluationResult.Outcome

The outcome.

getOutcomeValue()

public int getOutcomeValue()

Output only. The outcome of the expectation.

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

Returns
Type Description
int

The enum numeric value on the wire for outcome.

getParserForType()

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

getResultCase()

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

getSemanticSimilarityResult() (deprecated)

public EvaluationResult.SemanticSimilarityResult getSemanticSimilarityResult()

Deprecated. google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.semantic_similarity_result is deprecated. See google/cloud/ces/v1beta/evaluation.proto;l=542

Output only. The result of the semantic similarity check.

.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SemanticSimilarityResult

The semanticSimilarityResult.

getSemanticSimilarityResultOrBuilder() (deprecated)

public EvaluationResult.SemanticSimilarityResultOrBuilder getSemanticSimilarityResultOrBuilder()

Output only. The result of the semantic similarity check.

.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.SemanticSimilarityResultOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getToolInvocationResult()

public EvaluationResult.GoldenExpectationOutcome.ToolInvocationResult getToolInvocationResult()

Output only. The result of the tool invocation check.

.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.ToolInvocationResult tool_invocation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.GoldenExpectationOutcome.ToolInvocationResult

The toolInvocationResult.

getToolInvocationResultOrBuilder()

public EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultOrBuilder getToolInvocationResultOrBuilder()

Output only. The result of the tool invocation check.

.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.ToolInvocationResult tool_invocation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultOrBuilder

hasExpectation()

public boolean hasExpectation()

Output only. The expectation that was evaluated.

.google.cloud.ces.v1beta.Evaluation.GoldenExpectation 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 result of the agent response expectation.

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

Returns
Type Description
boolean

Whether the observedAgentResponse field is set.

hasObservedAgentTransfer()

public boolean hasObservedAgentTransfer()

Output only. The result of the agent transfer expectation.

.google.cloud.ces.v1beta.AgentTransfer observed_agent_transfer = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the observedAgentTransfer field is set.

hasObservedToolCall()

public boolean hasObservedToolCall()

Output only. The result of the tool call expectation.

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

Returns
Type Description
boolean

Whether the observedToolCall field is set.

hasObservedToolResponse()

public boolean hasObservedToolResponse()

Output only. The result of the tool response expectation.

.google.cloud.ces.v1beta.ToolResponse observed_tool_response = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the observedToolResponse field is set.

hasSemanticSimilarityResult() (deprecated)

public boolean hasSemanticSimilarityResult()

Deprecated. google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.semantic_similarity_result is deprecated. See google/cloud/ces/v1beta/evaluation.proto;l=542

Output only. The result of the semantic similarity check.

.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 7 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the semanticSimilarityResult field is set.

hasToolInvocationResult()

public boolean hasToolInvocationResult()

Output only. The result of the tool invocation check.

.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome.ToolInvocationResult tool_invocation_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the toolInvocationResult 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.GoldenExpectationOutcome.Builder newBuilderForType()
Returns
Type Description
EvaluationResult.GoldenExpectationOutcome.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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