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:
  • 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:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • hasRequest

      public boolean hasRequest()
       The request of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
      Specified by:
      hasRequest in interface Conversation.InteractionOrBuilder
      Returns:
      Whether the request field is set.
    • getRequest

      public DetectIntentRequest getRequest()
       The request of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
      Specified by:
      getRequest in interface Conversation.InteractionOrBuilder
      Returns:
      The request.
    • getRequestOrBuilder

      public DetectIntentRequestOrBuilder getRequestOrBuilder()
       The request of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentRequest request = 1;
      Specified by:
      getRequestOrBuilder in interface Conversation.InteractionOrBuilder
    • hasResponse

      public boolean hasResponse()
       The final response of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
      Specified by:
      hasResponse in interface Conversation.InteractionOrBuilder
      Returns:
      Whether the response field is set.
    • getResponse

      public DetectIntentResponse getResponse()
       The final response of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
      Specified by:
      getResponse in interface Conversation.InteractionOrBuilder
      Returns:
      The response.
    • getResponseOrBuilder

      public DetectIntentResponseOrBuilder getResponseOrBuilder()
       The final response of the interaction.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse response = 2;
      Specified by:
      getResponseOrBuilder in interface Conversation.InteractionOrBuilder
    • getPartialResponsesList

      public List<DetectIntentResponse> 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:
      getPartialResponsesList in interface Conversation.InteractionOrBuilder
    • getPartialResponsesOrBuilderList

      public List<? extends DetectIntentResponseOrBuilder> 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:
      getPartialResponsesOrBuilderList in interface Conversation.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:
      getPartialResponsesCount in interface Conversation.InteractionOrBuilder
    • getPartialResponses

      public DetectIntentResponse getPartialResponses(int index)
       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:
      getPartialResponses in interface Conversation.InteractionOrBuilder
    • getPartialResponsesOrBuilder

      public DetectIntentResponseOrBuilder getPartialResponsesOrBuilder(int index)
       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:
      getPartialResponsesOrBuilder in interface Conversation.InteractionOrBuilder
    • getRequestUtterances

      public String getRequestUtterances()
       The input text or the transcript of the input audio in the request.
       
      string request_utterances = 4;
      Specified by:
      getRequestUtterances in interface Conversation.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:
      getRequestUtterancesBytes in interface Conversation.InteractionOrBuilder
      Returns:
      The bytes for requestUtterances.
    • getResponseUtterances

      public String 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:
      getResponseUtterances in interface Conversation.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:
      getResponseUtterancesBytes in interface Conversation.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:
      hasCreateTime in interface Conversation.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:
      getCreateTime in interface Conversation.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:
      getCreateTimeOrBuilder in interface Conversation.InteractionOrBuilder
    • hasAnswerFeedback

      public boolean hasAnswerFeedback()
       Answer feedback for the final response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;
      Specified by:
      hasAnswerFeedback in interface Conversation.InteractionOrBuilder
      Returns:
      Whether the answerFeedback field is set.
    • getAnswerFeedback

      public AnswerFeedback getAnswerFeedback()
       Answer feedback for the final response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;
      Specified by:
      getAnswerFeedback in interface Conversation.InteractionOrBuilder
      Returns:
      The answerFeedback.
    • getAnswerFeedbackOrBuilder

      public AnswerFeedbackOrBuilder getAnswerFeedbackOrBuilder()
       Answer feedback for the final response.
       
      .google.cloud.dialogflow.cx.v3beta1.AnswerFeedback answer_feedback = 7;
      Specified by:
      getAnswerFeedbackOrBuilder in interface Conversation.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:
      hasMissingTransition in interface Conversation.InteractionOrBuilder
      Returns:
      Whether the missingTransition field is set.
    • getMissingTransition

      public Conversation.Interaction.MissingTransition 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:
      getMissingTransition in interface Conversation.InteractionOrBuilder
      Returns:
      The missingTransition.
    • getMissingTransitionOrBuilder

      public Conversation.Interaction.MissingTransitionOrBuilder 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:
      getMissingTransitionOrBuilder in interface Conversation.InteractionOrBuilder
    • getStepMetricsList

      public List<Conversation.Interaction.StepMetrics> 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:
      getStepMetricsList in interface Conversation.InteractionOrBuilder
    • getStepMetricsOrBuilderList

      public List<? extends Conversation.Interaction.StepMetricsOrBuilder> 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:
      getStepMetricsOrBuilderList in interface Conversation.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:
      getStepMetricsCount in interface Conversation.InteractionOrBuilder
    • getStepMetrics

      public Conversation.Interaction.StepMetrics getStepMetrics(int index)
       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:
      getStepMetrics in interface Conversation.InteractionOrBuilder
    • getStepMetricsOrBuilder

      public Conversation.Interaction.StepMetricsOrBuilder getStepMetricsOrBuilder(int index)
       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:
      getStepMetricsOrBuilder in interface Conversation.InteractionOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static Conversation.Interaction parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Conversation.Interaction parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Conversation.Interaction parseDelimitedFrom(InputStream input) throws IOException
      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

      public Conversation.Interaction.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static Conversation.Interaction.Builder newBuilder()
    • newBuilder

      public static Conversation.Interaction.Builder newBuilder(Conversation.Interaction prototype)
    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected Conversation.Interaction.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Conversation.Interaction getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Conversation.Interaction> parser()
    • getParserForType

      public com.google.protobuf.Parser<Conversation.Interaction> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public Conversation.Interaction getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder