Class Conversation.Interaction
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction
- All Implemented Interfaces:
Conversation.InteractionOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- Conversation
public static final class Conversation.Interaction
extends com.google.protobuf.GeneratedMessage
implements Conversation.InteractionOrBuilder
Represents an interaction between an end user and a Dialogflow CX agent using V3 (Streaming)DetectIntent API, or an interaction between an end user and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.Protobuf type
google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classRepresents an interaction between an end user and a Dialogflow CX agent using V3 (Streaming)DetectIntent API, or an interaction between an end user and a Dialogflow CX agent using V2 (Streaming)AnalyzeContent API.static final classInformation collected for DF CX agents in case NLU predicted an intent that was filtered out as being inactive which may indicate a missing transition and/or absent functionality.static interfacestatic final classMetrics of each processing step.static interfaceNested 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 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 TypeMethodDescriptionbooleanAnswer feedback for the final response.Answer feedback for the final response.com.google.protobuf.TimestampThe time that the interaction was created.com.google.protobuf.TimestampOrBuilderThe time that the interaction was created.static Conversation.Interactionstatic final com.google.protobuf.Descriptors.DescriptorMissing transition predicted for the interaction.Missing transition predicted for the interaction.com.google.protobuf.Parser<Conversation.Interaction>getPartialResponses(int index) The partial responses of the interaction.intThe partial responses of the interaction.The partial responses of the interaction.getPartialResponsesOrBuilder(int index) The partial responses of the interaction.List<? extends DetectIntentResponseOrBuilder>The partial responses of the interaction.The request of the interaction.The request of the interaction.The input text or the transcript of the input audio in the request.com.google.protobuf.ByteStringThe input text or the transcript of the input audio in the request.The final response of the interaction.The final response of the interaction.The output text or the transcript of the output audio in the responses.com.google.protobuf.ByteStringThe output text or the transcript of the output audio in the responses.intgetStepMetrics(int index) Metrics associated with different processing steps.intMetrics associated with different processing steps.Metrics associated with different processing steps.getStepMetricsOrBuilder(int index) Metrics associated with different processing steps.Metrics associated with different processing steps.booleanAnswer feedback for the final response.booleanThe time that the interaction was created.inthashCode()booleanMissing transition predicted for the interaction.booleanThe request of the interaction.booleanThe final response of the interaction.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(Conversation.Interaction prototype) protected Conversation.Interaction.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static Conversation.InteractionparseDelimitedFrom(InputStream input) static Conversation.InteractionparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Conversation.InteractionparseFrom(byte[] data) static Conversation.InteractionparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Conversation.InteractionparseFrom(com.google.protobuf.ByteString data) static Conversation.InteractionparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Conversation.InteractionparseFrom(com.google.protobuf.CodedInputStream input) static Conversation.InteractionparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Conversation.InteractionparseFrom(InputStream input) static Conversation.InteractionparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static Conversation.InteractionparseFrom(ByteBuffer data) static Conversation.InteractionparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<Conversation.Interaction>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
-
REQUEST_FIELD_NUMBER
public static final int REQUEST_FIELD_NUMBER- See Also:
-
RESPONSE_FIELD_NUMBER
public static final int RESPONSE_FIELD_NUMBER- See Also:
-
PARTIAL_RESPONSES_FIELD_NUMBER
public static final int PARTIAL_RESPONSES_FIELD_NUMBER- See Also:
-
REQUEST_UTTERANCES_FIELD_NUMBER
public static final int REQUEST_UTTERANCES_FIELD_NUMBER- See Also:
-
RESPONSE_UTTERANCES_FIELD_NUMBER
public static final int RESPONSE_UTTERANCES_FIELD_NUMBER- See Also:
-
CREATE_TIME_FIELD_NUMBER
public static final int CREATE_TIME_FIELD_NUMBER- See Also:
-
ANSWER_FEEDBACK_FIELD_NUMBER
public static final int ANSWER_FEEDBACK_FIELD_NUMBER- See Also:
-
MISSING_TRANSITION_FIELD_NUMBER
public static final int MISSING_TRANSITION_FIELD_NUMBER- See Also:
-
STEP_METRICS_FIELD_NUMBER
public static final int STEP_METRICS_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
-
hasRequest
public boolean hasRequest()The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;- Specified by:
hasRequestin interfaceConversation.InteractionOrBuilder- Returns:
- Whether the request field is set.
-
getRequest
The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;- Specified by:
getRequestin interfaceConversation.InteractionOrBuilder- Returns:
- The request.
-
getRequestOrBuilder
The request of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;- Specified by:
getRequestOrBuilderin interfaceConversation.InteractionOrBuilder
-
hasResponse
public boolean hasResponse()The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;- Specified by:
hasResponsein interfaceConversation.InteractionOrBuilder- Returns:
- Whether the response field is set.
-
getResponse
The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;- Specified by:
getResponsein interfaceConversation.InteractionOrBuilder- Returns:
- The response.
-
getResponseOrBuilder
The final response of the interaction.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;- Specified by:
getResponseOrBuilderin interfaceConversation.InteractionOrBuilder
-
getPartialResponsesList
The partial responses of the interaction. Empty if there is no partial response in the interaction. See the [partial response documentation][https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#queue].
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;- Specified by:
getPartialResponsesListin interfaceConversation.InteractionOrBuilder
-
getPartialResponsesOrBuilderList
The partial responses of the interaction. Empty if there is no partial response in the interaction. See the [partial response documentation][https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#queue].
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;- Specified by:
getPartialResponsesOrBuilderListin interfaceConversation.InteractionOrBuilder
-
getPartialResponsesCount
public int getPartialResponsesCount()The partial responses of the interaction. Empty if there is no partial response in the interaction. See the [partial response documentation][https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#queue].
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;- Specified by:
getPartialResponsesCountin interfaceConversation.InteractionOrBuilder
-
getPartialResponses
The partial responses of the interaction. Empty if there is no partial response in the interaction. See the [partial response documentation][https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#queue].
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;- Specified by:
getPartialResponsesin interfaceConversation.InteractionOrBuilder
-
getPartialResponsesOrBuilder
The partial responses of the interaction. Empty if there is no partial response in the interaction. See the [partial response documentation][https://cloud.google.com/dialogflow/cx/docs/concept/fulfillment#queue].
repeated .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse partial_responses = 3;- Specified by:
getPartialResponsesOrBuilderin interfaceConversation.InteractionOrBuilder
-
getRequestUtterances
The input text or the transcript of the input audio in the request.
string request_utterances = 4;- Specified by:
getRequestUtterancesin interfaceConversation.InteractionOrBuilder- Returns:
- The requestUtterances.
-
getRequestUtterancesBytes
public com.google.protobuf.ByteString getRequestUtterancesBytes()The input text or the transcript of the input audio in the request.
string request_utterances = 4;- Specified by:
getRequestUtterancesBytesin interfaceConversation.InteractionOrBuilder- Returns:
- The bytes for requestUtterances.
-
getResponseUtterances
The output text or the transcript of the output audio in the responses. If multiple output messages are returned, they will be concatenated into one.
string response_utterances = 5;- Specified by:
getResponseUtterancesin interfaceConversation.InteractionOrBuilder- Returns:
- The responseUtterances.
-
getResponseUtterancesBytes
public com.google.protobuf.ByteString getResponseUtterancesBytes()The output text or the transcript of the output audio in the responses. If multiple output messages are returned, they will be concatenated into one.
string response_utterances = 5;- Specified by:
getResponseUtterancesBytesin interfaceConversation.InteractionOrBuilder- Returns:
- The bytes for responseUtterances.
-
hasCreateTime
public boolean hasCreateTime()The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
hasCreateTimein interfaceConversation.InteractionOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
getCreateTimein interfaceConversation.InteractionOrBuilder- Returns:
- The createTime.
-
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()The time that the interaction was created.
.google.protobuf.Timestamp create_time = 6;- Specified by:
getCreateTimeOrBuilderin interfaceConversation.InteractionOrBuilder
-
hasAnswerFeedback
public boolean hasAnswerFeedback()Answer feedback for the final response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;- Specified by:
hasAnswerFeedbackin interfaceConversation.InteractionOrBuilder- Returns:
- Whether the answerFeedback field is set.
-
getAnswerFeedback
Answer feedback for the final response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;- Specified by:
getAnswerFeedbackin interfaceConversation.InteractionOrBuilder- Returns:
- The answerFeedback.
-
getAnswerFeedbackOrBuilder
Answer feedback for the final response.
.google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;- Specified by:
getAnswerFeedbackOrBuilderin interfaceConversation.InteractionOrBuilder
-
hasMissingTransition
public boolean hasMissingTransition()Missing transition predicted for the interaction. This field is set only if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;- Specified by:
hasMissingTransitionin interfaceConversation.InteractionOrBuilder- Returns:
- Whether the missingTransition field is set.
-
getMissingTransition
Missing transition predicted for the interaction. This field is set only if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;- Specified by:
getMissingTransitionin interfaceConversation.InteractionOrBuilder- Returns:
- The missingTransition.
-
getMissingTransitionOrBuilder
Missing transition predicted for the interaction. This field is set only if the interaction match type was no-match.
.google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.MissingTransition missing_transition = 8;- Specified by:
getMissingTransitionOrBuilderin interfaceConversation.InteractionOrBuilder
-
getStepMetricsList
Metrics associated with different processing steps. Names and number of steps depend on the request and can change without a notice.
repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.StepMetrics step_metrics = 9;- Specified by:
getStepMetricsListin interfaceConversation.InteractionOrBuilder
-
getStepMetricsOrBuilderList
Metrics associated with different processing steps. Names and number of steps depend on the request and can change without a notice.
repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.StepMetrics step_metrics = 9;- Specified by:
getStepMetricsOrBuilderListin interfaceConversation.InteractionOrBuilder
-
getStepMetricsCount
public int getStepMetricsCount()Metrics associated with different processing steps. Names and number of steps depend on the request and can change without a notice.
repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.StepMetrics step_metrics = 9;- Specified by:
getStepMetricsCountin interfaceConversation.InteractionOrBuilder
-
getStepMetrics
Metrics associated with different processing steps. Names and number of steps depend on the request and can change without a notice.
repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.StepMetrics step_metrics = 9;- Specified by:
getStepMetricsin interfaceConversation.InteractionOrBuilder
-
getStepMetricsOrBuilder
Metrics associated with different processing steps. Names and number of steps depend on the request and can change without a notice.
repeated .google.cloud.dialogflow.cx.v3beta1.Conversation.Interaction.StepMetrics step_metrics = 9;- Specified by:
getStepMetricsOrBuilderin interfaceConversation.InteractionOrBuilder
-
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 Conversation.Interaction parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Interaction parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Interaction parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Interaction parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Interaction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static Conversation.Interaction parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static Conversation.Interaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static Conversation.Interaction parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static Conversation.Interaction parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static Conversation.Interaction 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
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected Conversation.Interaction.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
-