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
Static Fields
CURRENT_PAGE_FIELD_NUMBER
public static final int CURRENT_PAGE_FIELD_NUMBER
Field Value
DIAGNOSTIC_INFO_FIELD_NUMBER
public static final int DIAGNOSTIC_INFO_FIELD_NUMBER
Field Value
DIFFERENCES_FIELD_NUMBER
public static final int DIFFERENCES_FIELD_NUMBER
Field Value
SESSION_PARAMETERS_FIELD_NUMBER
public static final int SESSION_PARAMETERS_FIELD_NUMBER
Field Value
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER
Field Value
TEXT_RESPONSES_FIELD_NUMBER
public static final int TEXT_RESPONSES_FIELD_NUMBER
Field Value
TRIGGERED_INTENT_FIELD_NUMBER
public static final int TRIGGERED_INTENT_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static ConversationTurn.VirtualAgentOutput getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static ConversationTurn.VirtualAgentOutput.Builder newBuilder()
Returns
newBuilder(ConversationTurn.VirtualAgentOutput prototype)
public static ConversationTurn.VirtualAgentOutput.Builder newBuilder(ConversationTurn.VirtualAgentOutput prototype)
Parameter
Returns
public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.VirtualAgentOutput parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.VirtualAgentOutput parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<ConversationTurn.VirtualAgentOutput> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
Type | Description |
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
getDefaultInstanceForType()
public ConversationTurn.VirtualAgentOutput getDefaultInstanceForType()
Returns
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
Type | Description |
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
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
Returns
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
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
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
Returns
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
Type | Description |
List<? extends com.google.cloud.dialogflow.cx.v3.TestRunDifferenceOrBuilder> | |
getParserForType()
public Parser<ConversationTurn.VirtualAgentOutput> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSessionParameters()
public Struct getSessionParameters()
The session parameters available to the bot at this point.
.google.protobuf.Struct session_parameters = 4;
Returns
Type | Description |
Struct | The sessionParameters.
|
getSessionParametersOrBuilder()
public StructOrBuilder getSessionParametersOrBuilder()
The session parameters available to the bot at this point.
.google.protobuf.Struct session_parameters = 4;
Returns
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
Type | Description |
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
Type | Description |
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
Returns
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
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
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
Returns
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
Type | Description |
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
Type | Description |
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
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
Type | Description |
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
Type | Description |
boolean | Whether the triggeredIntent field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public ConversationTurn.VirtualAgentOutput.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected ConversationTurn.VirtualAgentOutput.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public ConversationTurn.VirtualAgentOutput.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions