Class StreamingDetectIntentResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse
All Implemented Interfaces:
StreamingDetectIntentResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class StreamingDetectIntentResponse extends com.google.protobuf.GeneratedMessage implements StreamingDetectIntentResponseOrBuilder
 The top-level message returned from the
 [StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.Sessions.StreamingDetectIntent]
 method.

 Multiple response messages can be returned in order:

 *   If the `StreamingDetectIntentRequest.query_input.audio` field was
 set, the first M messages contain `recognition_result`.
 Each `recognition_result` represents a more complete transcript of what
 the user said. The last `recognition_result` has `is_final` set to
 `true`.

 *   If the `StreamingDetectIntentRequest.enable_partial_response` field was
 true, the `detect_intent_response` field is populated for each
 of the following N responses, where 0 <= N <= 5.
 These responses set the
 [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type]
 field to `PARTIAL`.

 For the last response message, the `detect_intent_response` is fully
 populated, and
 [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse.response_type]
 is set to `FINAL`.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse
See Also:
  • Field Details

    • RECOGNITION_RESULT_FIELD_NUMBER

      public static final int RECOGNITION_RESULT_FIELD_NUMBER
      See Also:
    • DETECT_INTENT_RESPONSE_FIELD_NUMBER

      public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER
      See Also:
    • DEBUGGING_INFO_FIELD_NUMBER

      public static final int DEBUGGING_INFO_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
    • getResponseCase

      Specified by:
      getResponseCase in interface StreamingDetectIntentResponseOrBuilder
    • hasRecognitionResult

      public boolean hasRecognitionResult()
       The result of speech recognition.
       
      .google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;
      Specified by:
      hasRecognitionResult in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      Whether the recognitionResult field is set.
    • getRecognitionResult

      public StreamingRecognitionResult getRecognitionResult()
       The result of speech recognition.
       
      .google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;
      Specified by:
      getRecognitionResult in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      The recognitionResult.
    • getRecognitionResultOrBuilder

      public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
       The result of speech recognition.
       
      .google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;
      Specified by:
      getRecognitionResultOrBuilder in interface StreamingDetectIntentResponseOrBuilder
    • hasDetectIntentResponse

      public boolean hasDetectIntentResponse()
       The response from detect intent.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
      Specified by:
      hasDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      Whether the detectIntentResponse field is set.
    • getDetectIntentResponse

      public DetectIntentResponse getDetectIntentResponse()
       The response from detect intent.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
      Specified by:
      getDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      The detectIntentResponse.
    • getDetectIntentResponseOrBuilder

      public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
       The response from detect intent.
       
      .google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
      Specified by:
      getDetectIntentResponseOrBuilder in interface StreamingDetectIntentResponseOrBuilder
    • hasDebuggingInfo

      public boolean hasDebuggingInfo()
       Debugging info that would get populated when
       `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
       
      .google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
      Specified by:
      hasDebuggingInfo in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      Whether the debuggingInfo field is set.
    • getDebuggingInfo

      public CloudConversationDebuggingInfo getDebuggingInfo()
       Debugging info that would get populated when
       `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
       
      .google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
      Specified by:
      getDebuggingInfo in interface StreamingDetectIntentResponseOrBuilder
      Returns:
      The debuggingInfo.
    • getDebuggingInfoOrBuilder

      public CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
       Debugging info that would get populated when
       `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
       
      .google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
      Specified by:
      getDebuggingInfoOrBuilder in interface StreamingDetectIntentResponseOrBuilder
    • 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 StreamingDetectIntentResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

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

      public static StreamingDetectIntentResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

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

      public static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static StreamingDetectIntentResponse.Builder newBuilder()
    • newBuilder

    • toBuilder

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

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

      public static StreamingDetectIntentResponse getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<StreamingDetectIntentResponse> 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 StreamingDetectIntentResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder