Class Evaluation.Step (0.3.0)

public static final class Evaluation.Step extends GeneratedMessage implements Evaluation.StepOrBuilder

A step defines a singular action to happen during the evaluation.

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

Static Fields

AGENT_TRANSFER_FIELD_NUMBER

public static final int AGENT_TRANSFER_FIELD_NUMBER
Field Value
Type Description
int

EXPECTATION_FIELD_NUMBER

public static final int EXPECTATION_FIELD_NUMBER
Field Value
Type Description
int

USER_INPUT_FIELD_NUMBER

public static final int USER_INPUT_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Evaluation.Step getDefaultInstance()
Returns
Type Description
Evaluation.Step

getDescriptor()

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

newBuilder()

public static Evaluation.Step.Builder newBuilder()
Returns
Type Description
Evaluation.Step.Builder

newBuilder(Evaluation.Step prototype)

public static Evaluation.Step.Builder newBuilder(Evaluation.Step prototype)
Parameter
Name Description
prototype Evaluation.Step
Returns
Type Description
Evaluation.Step.Builder

parseDelimitedFrom(InputStream input)

public static Evaluation.Step parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Evaluation.Step
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Evaluation.Step parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Evaluation.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Evaluation.Step parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Evaluation.Step
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Evaluation.Step parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Evaluation.Step
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Evaluation.Step parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Evaluation.Step
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Evaluation.Step> parser()
Returns
Type Description
Parser<Step>

Methods

equals(Object obj)

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

getAgentTransfer()

public AgentTransfer getAgentTransfer()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentTransfer

The agentTransfer.

getAgentTransferOrBuilder()

public AgentTransferOrBuilder getAgentTransferOrBuilder()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
AgentTransferOrBuilder

getDefaultInstanceForType()

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

getExpectation()

public Evaluation.GoldenExpectation getExpectation()

Optional. Executes an expectation on the current turn.

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

Returns
Type Description
Evaluation.GoldenExpectation

The expectation.

getExpectationOrBuilder()

public Evaluation.GoldenExpectationOrBuilder getExpectationOrBuilder()

Optional. Executes an expectation on the current turn.

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

Returns
Type Description
Evaluation.GoldenExpectationOrBuilder

getParserForType()

public Parser<Evaluation.Step> getParserForType()
Returns
Type Description
Parser<Step>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getStepCase()

public Evaluation.Step.StepCase getStepCase()
Returns
Type Description
Evaluation.Step.StepCase

getUserInput()

public SessionInput getUserInput()

Optional. User input for the conversation.

.google.cloud.ces.v1beta.SessionInput user_input = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SessionInput

The userInput.

getUserInputOrBuilder()

public SessionInputOrBuilder getUserInputOrBuilder()

Optional. User input for the conversation.

.google.cloud.ces.v1beta.SessionInput user_input = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
SessionInputOrBuilder

hasAgentTransfer()

public boolean hasAgentTransfer()

Optional. Transfer the conversation to a different agent.

.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the agentTransfer field is set.

hasExpectation()

public boolean hasExpectation()

Optional. Executes an expectation on the current turn.

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

Returns
Type Description
boolean

Whether the expectation field is set.

hasUserInput()

public boolean hasUserInput()

Optional. User input for the conversation.

.google.cloud.ces.v1beta.SessionInput user_input = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the userInput 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 Evaluation.Step.Builder newBuilderForType()
Returns
Type Description
Evaluation.Step.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Evaluation.Step.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Evaluation.Step.Builder
Overrides

toBuilder()

public Evaluation.Step.Builder toBuilder()
Returns
Type Description
Evaluation.Step.Builder

writeTo(CodedOutputStream output)

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