Class ConversationTurn.VirtualAgentOutput
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput
- All Implemented Interfaces:
ConversationTurn.VirtualAgentOutputOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- ConversationTurn
public static final class ConversationTurn.VirtualAgentOutput
extends com.google.protobuf.GeneratedMessage
implements ConversationTurn.VirtualAgentOutputOrBuilder
The output from the virtual agent.Protobuf type
google.cloud.dialogflow.cx.v3beta1.ConversationTurn.VirtualAgentOutput- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe output from the virtual agent.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken.The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.StructRequired.com.google.protobuf.StructOrBuilderRequired.getDifferences(int index) Output only.intOutput only.Output only.getDifferencesOrBuilder(int index) Output only.List<? extends TestRunDifferenceOrBuilder>Output only.com.google.protobuf.Parser<ConversationTurn.VirtualAgentOutput>intcom.google.protobuf.StructThe session parameters available to the bot at this point.com.google.protobuf.StructOrBuilderThe session parameters available to the bot at this point.Response error from the agent in the test result.Response error from the agent in the test result.getTextResponses(int index) The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.intThe [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.getTextResponsesOrBuilder(int index) The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.List<? extends ResponseMessage.TextOrBuilder>The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response.The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response.booleanThe [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken.booleanRequired.inthashCode()booleanThe session parameters available to the bot at this point.booleanResponse error from the agent in the test result.booleanThe [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(ConversationTurn.VirtualAgentOutput prototype) newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) parseDelimitedFrom(InputStream input) parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(byte[] data) parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.ByteString data) parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(com.google.protobuf.CodedInputStream input) parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(InputStream input) parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) parseFrom(ByteBuffer data) parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ConversationTurn.VirtualAgentOutput>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SESSION_PARAMETERS_FIELD_NUMBER
public static final int SESSION_PARAMETERS_FIELD_NUMBER- See Also:
-
DIFFERENCES_FIELD_NUMBER
public static final int DIFFERENCES_FIELD_NUMBER- See Also:
-
DIAGNOSTIC_INFO_FIELD_NUMBER
public static final int DIAGNOSTIC_INFO_FIELD_NUMBER- See Also:
-
TRIGGERED_INTENT_FIELD_NUMBER
public static final int TRIGGERED_INTENT_FIELD_NUMBER- See Also:
-
CURRENT_PAGE_FIELD_NUMBER
public static final int CURRENT_PAGE_FIELD_NUMBER- See Also:
-
TEXT_RESPONSES_FIELD_NUMBER
public static final int TEXT_RESPONSES_FIELD_NUMBER- See Also:
-
STATUS_FIELD_NUMBER
public static final int STATUS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
hasSessionParameters
public boolean hasSessionParameters()The session parameters available to the bot at this point.
.google.protobuf.Struct session_parameters = 4;- Specified by:
hasSessionParametersin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- Whether the sessionParameters field is set.
-
getSessionParameters
public com.google.protobuf.Struct getSessionParameters()The session parameters available to the bot at this point.
.google.protobuf.Struct session_parameters = 4;- Specified by:
getSessionParametersin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- The sessionParameters.
-
getSessionParametersOrBuilder
public com.google.protobuf.StructOrBuilder getSessionParametersOrBuilder()The session parameters available to the bot at this point.
.google.protobuf.Struct session_parameters = 4;- Specified by:
getSessionParametersOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getDifferencesList
Output only. If this is part of a [result conversation turn][TestCaseResult.conversation_turns], the list of differences between the original run and the replay for this output, if any.
repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDifferencesListin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getDifferencesOrBuilderList
Output only. If this is part of a [result conversation turn][TestCaseResult.conversation_turns], the list of differences between the original run and the replay for this output, if any.
repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDifferencesOrBuilderListin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getDifferencesCount
public int getDifferencesCount()Output only. If this is part of a [result conversation turn][TestCaseResult.conversation_turns], the list of differences between the original run and the replay for this output, if any.
repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDifferencesCountin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getDifferences
Output only. If this is part of a [result conversation turn][TestCaseResult.conversation_turns], the list of differences between the original run and the replay for this output, if any.
repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDifferencesin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getDifferencesOrBuilder
Output only. If this is part of a [result conversation turn][TestCaseResult.conversation_turns], the list of differences between the original run and the replay for this output, if any.
repeated .google.cloud.dialogflow.cx.v3beta1.TestRunDifference differences = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDifferencesOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
hasDiagnosticInfo
public boolean hasDiagnosticInfo()Required. Input only. The diagnostic [info][Session.DetectIntentResponse.QueryResult.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];- Specified by:
hasDiagnosticInfoin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- Whether the diagnosticInfo field is set.
-
getDiagnosticInfo
public com.google.protobuf.Struct getDiagnosticInfo()Required. Input only. The diagnostic [info][Session.DetectIntentResponse.QueryResult.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];- Specified by:
getDiagnosticInfoin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- The diagnosticInfo.
-
getDiagnosticInfoOrBuilder
public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder()Required. Input only. The diagnostic [info][Session.DetectIntentResponse.QueryResult.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];- Specified by:
getDiagnosticInfoOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
hasTriggeredIntent
public boolean hasTriggeredIntent()The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;- Specified by:
hasTriggeredIntentin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- Whether the triggeredIntent field is set.
-
getTriggeredIntent
The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;- Specified by:
getTriggeredIntentin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- The triggeredIntent.
-
getTriggeredIntentOrBuilder
The [Intent][google.cloud.dialogflow.cx.v3beta1.Intent] that triggered the response. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Intent triggered_intent = 7;- Specified by:
getTriggeredIntentOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
hasCurrentPage
public boolean hasCurrentPage()The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;- Specified by:
hasCurrentPagein interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- Whether the currentPage field is set.
-
getCurrentPage
The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;- Specified by:
getCurrentPagein interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- The currentPage.
-
getCurrentPageOrBuilder
The [Page][google.cloud.dialogflow.cx.v3beta1.Page] on which the utterance was spoken. Only name and displayName will be set.
.google.cloud.dialogflow.cx.v3beta1.Page current_page = 8;- Specified by:
getCurrentPageOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getTextResponsesList
The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;- Specified by:
getTextResponsesListin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getTextResponsesOrBuilderList
The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;- Specified by:
getTextResponsesOrBuilderListin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getTextResponsesCount
public int getTextResponsesCount()The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;- Specified by:
getTextResponsesCountin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getTextResponses
The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;- Specified by:
getTextResponsesin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
getTextResponsesOrBuilder
The [text][google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text] responses from the agent for the turn.
repeated .google.cloud.dialogflow.cx.v3beta1.ResponseMessage.Text text_responses = 9;- Specified by:
getTextResponsesOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
hasStatus
public boolean hasStatus()Response error from the agent in the test result. If set, other output is empty.
.google.rpc.Status status = 10;- Specified by:
hasStatusin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- Whether the status field is set.
-
getStatus
Response error from the agent in the test result. If set, other output is empty.
.google.rpc.Status status = 10;- Specified by:
getStatusin interfaceConversationTurn.VirtualAgentOutputOrBuilder- Returns:
- The status.
-
getStatusOrBuilder
Response error from the agent in the test result. If set, other output is empty.
.google.rpc.Status status = 10;- Specified by:
getStatusOrBuilderin interfaceConversationTurn.VirtualAgentOutputOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input) throws IOException - Throws:
IOException
-
parseDelimitedFrom
public static ConversationTurn.VirtualAgentOutput parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ConversationTurn.VirtualAgentOutput parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static ConversationTurn.VirtualAgentOutput.Builder newBuilder(ConversationTurn.VirtualAgentOutput prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ConversationTurn.VirtualAgentOutput.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-