Class ConversationTurn.VirtualAgentOutput (0.14.1)

public static final class ConversationTurn.VirtualAgentOutput extends GeneratedMessageV3 implements ConversationTurn.VirtualAgentOutputOrBuilder

The output from the virtual agent.

Protobuf type google.cloud.dialogflow.cx.v3.ConversationTurn.VirtualAgentOutput

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > ConversationTurn.VirtualAgentOutput

Static Fields

CURRENT_PAGE_FIELD_NUMBER

public static final int CURRENT_PAGE_FIELD_NUMBER
Field Value
TypeDescription
int

DIAGNOSTIC_INFO_FIELD_NUMBER

public static final int DIAGNOSTIC_INFO_FIELD_NUMBER
Field Value
TypeDescription
int

DIFFERENCES_FIELD_NUMBER

public static final int DIFFERENCES_FIELD_NUMBER
Field Value
TypeDescription
int

SESSION_PARAMETERS_FIELD_NUMBER

public static final int SESSION_PARAMETERS_FIELD_NUMBER
Field Value
TypeDescription
int

STATUS_FIELD_NUMBER

public static final int STATUS_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_RESPONSES_FIELD_NUMBER

public static final int TEXT_RESPONSES_FIELD_NUMBER
Field Value
TypeDescription
int

TRIGGERED_INTENT_FIELD_NUMBER

public static final int TRIGGERED_INTENT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ConversationTurn.VirtualAgentOutput getDefaultInstance()
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static ConversationTurn.VirtualAgentOutput.Builder newBuilder()
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder

newBuilder(ConversationTurn.VirtualAgentOutput prototype)

public static ConversationTurn.VirtualAgentOutput.Builder newBuilder(ConversationTurn.VirtualAgentOutput prototype)
Parameter
NameDescription
prototypeConversationTurn.VirtualAgentOutput
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder

parseDelimitedFrom(InputStream input)

public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static ConversationTurn.VirtualAgentOutput parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static ConversationTurn.VirtualAgentOutput parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<ConversationTurn.VirtualAgentOutput> parser()
Returns
TypeDescription
Parser<VirtualAgentOutput>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getCurrentPage()

public Page getCurrentPage()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
TypeDescription
Page

The currentPage.

getCurrentPageOrBuilder()

public PageOrBuilder getCurrentPageOrBuilder()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
TypeDescription
PageOrBuilder

getDefaultInstanceForType()

public ConversationTurn.VirtualAgentOutput getDefaultInstanceForType()
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput

getDiagnosticInfo()

public Struct getDiagnosticInfo()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
Struct

The diagnosticInfo.

getDiagnosticInfoOrBuilder()

public StructOrBuilder getDiagnosticInfoOrBuilder()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
StructOrBuilder

getDifferences(int index)

public TestRunDifference getDifferences(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
TestRunDifference

getDifferencesCount()

public int getDifferencesCount()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getDifferencesList()

public List<TestRunDifference> getDifferencesList()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<TestRunDifference>

getDifferencesOrBuilder(int index)

public TestRunDifferenceOrBuilder getDifferencesOrBuilder(int index)

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
TestRunDifferenceOrBuilder

getDifferencesOrBuilderList()

public List<? extends TestRunDifferenceOrBuilder> getDifferencesOrBuilderList()

Output only. If this is part of a result conversation turn, the list of differences between the original run and the replay for this output, if any.

repeated .google.cloud.dialogflow.cx.v3.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder>

getParserForType()

public Parser<ConversationTurn.VirtualAgentOutput> getParserForType()
Returns
TypeDescription
Parser<VirtualAgentOutput>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSessionParameters()

public Struct getSessionParameters()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
TypeDescription
Struct

The sessionParameters.

getSessionParametersOrBuilder()

public StructOrBuilder getSessionParametersOrBuilder()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
TypeDescription
StructOrBuilder

getStatus()

public Status getStatus()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
TypeDescription
com.google.rpc.Status

The status.

getStatusOrBuilder()

public StatusOrBuilder getStatusOrBuilder()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
TypeDescription
com.google.rpc.StatusOrBuilder

getTextResponses(int index)

public ResponseMessage.Text getTextResponses(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.Text

getTextResponsesCount()

public int getTextResponsesCount()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
TypeDescription
int

getTextResponsesList()

public List<ResponseMessage.Text> getTextResponsesList()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
TypeDescription
List<Text>

getTextResponsesOrBuilder(int index)

public ResponseMessage.TextOrBuilder getTextResponsesOrBuilder(int index)

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Parameter
NameDescription
indexint
Returns
TypeDescription
ResponseMessage.TextOrBuilder

getTextResponsesOrBuilderList()

public List<? extends ResponseMessage.TextOrBuilder> getTextResponsesOrBuilderList()

The text responses from the agent for the turn.

repeated .google.cloud.dialogflow.cx.v3.ResponseMessage.Text text_responses = 9;

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3.ResponseMessage.TextOrBuilder>

getTriggeredIntent()

public Intent getTriggeredIntent()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
TypeDescription
Intent

The triggeredIntent.

getTriggeredIntentOrBuilder()

public IntentOrBuilder getTriggeredIntentOrBuilder()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
TypeDescription
IntentOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasCurrentPage()

public boolean hasCurrentPage()

The Page on which the utterance was spoken. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Page current_page = 8;

Returns
TypeDescription
boolean

Whether the currentPage field is set.

hasDiagnosticInfo()

public boolean hasDiagnosticInfo()

Required. Input only. The diagnostic info output for the turn. Required to calculate the testing coverage.

.google.protobuf.Struct diagnostic_info = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the diagnosticInfo field is set.

hasSessionParameters()

public boolean hasSessionParameters()

The session parameters available to the bot at this point.

.google.protobuf.Struct session_parameters = 4;

Returns
TypeDescription
boolean

Whether the sessionParameters field is set.

hasStatus()

public boolean hasStatus()

Response error from the agent in the test result. If set, other output is empty.

.google.rpc.Status status = 10;

Returns
TypeDescription
boolean

Whether the status field is set.

hasTriggeredIntent()

public boolean hasTriggeredIntent()

The Intent that triggered the response. Only name and displayName will be set.

.google.cloud.dialogflow.cx.v3.Intent triggered_intent = 7;

Returns
TypeDescription
boolean

Whether the triggeredIntent field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public ConversationTurn.VirtualAgentOutput.Builder newBuilderForType()
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected ConversationTurn.VirtualAgentOutput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public ConversationTurn.VirtualAgentOutput.Builder toBuilder()
Returns
TypeDescription
ConversationTurn.VirtualAgentOutput.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException