Package com.google.cloud.dialogflow.v2
Class StreamingDetectIntentResponse
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.dialogflow.v2.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][] method. Multiple response messages can be returned in order: 1. If the [StreamingDetectIntentRequest.input_audio][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.input_audio] field was set, the `recognition_result` field is populated for one or more messages. See the [StreamingRecognitionResult][google.cloud.dialogflow.v2.StreamingRecognitionResult] message for details about the result message sequence. 2. The next message contains `response_id`, `query_result` and optionally `webhook_status` if a WebHook was called.Protobuf type
google.cloud.dialogflow.v2.StreamingDetectIntentResponse- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe top-level message returned from the [StreamingDetectIntent][] method.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 TypeMethodDescriptionbooleanDebugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.Debugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.ByteStringThe audio data bytes encoded as specified in the request.The config used by the speech synthesizer to generate the output audio.The config used by the speech synthesizer to generate the output audio.com.google.protobuf.Parser<StreamingDetectIntentResponse>The result of the conversational query or event processing.The result of the conversational query or event processing.The result of speech recognition.The result of speech recognition.The unique identifier of the response.com.google.protobuf.ByteStringThe unique identifier of the response.intSpecifies the status of the webhook request.Specifies the status of the webhook request.booleanDebugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.inthashCode()booleanThe config used by the speech synthesizer to generate the output audio.booleanThe result of the conversational query or event processing.booleanThe result of speech recognition.booleanSpecifies the status of the webhook request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleannewBuilder(StreamingDetectIntentResponse prototype) protected StreamingDetectIntentResponse.BuildernewBuilderForType(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<StreamingDetectIntentResponse>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
-
RESPONSE_ID_FIELD_NUMBER
public static final int RESPONSE_ID_FIELD_NUMBER- See Also:
-
RECOGNITION_RESULT_FIELD_NUMBER
public static final int RECOGNITION_RESULT_FIELD_NUMBER- See Also:
-
QUERY_RESULT_FIELD_NUMBER
public static final int QUERY_RESULT_FIELD_NUMBER- See Also:
-
WEBHOOK_STATUS_FIELD_NUMBER
public static final int WEBHOOK_STATUS_FIELD_NUMBER- See Also:
-
OUTPUT_AUDIO_FIELD_NUMBER
public static final int OUTPUT_AUDIO_FIELD_NUMBER- See Also:
-
OUTPUT_AUDIO_CONFIG_FIELD_NUMBER
public static final int OUTPUT_AUDIO_CONFIG_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getResponseId
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Specified by:
getResponseIdin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The responseId.
-
getResponseIdBytes
public com.google.protobuf.ByteString getResponseIdBytes()The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;- Specified by:
getResponseIdBytesin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The bytes for responseId.
-
hasRecognitionResult
public boolean hasRecognitionResult()The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;- Specified by:
hasRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the recognitionResult field is set.
-
getRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;- Specified by:
getRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The recognitionResult.
-
getRecognitionResultOrBuilder
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;- Specified by:
getRecognitionResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasQueryResult
public boolean hasQueryResult()The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;- Specified by:
hasQueryResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the queryResult field is set.
-
getQueryResult
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;- Specified by:
getQueryResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The queryResult.
-
getQueryResultOrBuilder
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;- Specified by:
getQueryResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasWebhookStatus
public boolean hasWebhookStatus()Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;- Specified by:
hasWebhookStatusin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the webhookStatus field is set.
-
getWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;- Specified by:
getWebhookStatusin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The webhookStatus.
-
getWebhookStatusOrBuilder
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;- Specified by:
getWebhookStatusOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
getOutputAudio
public com.google.protobuf.ByteString getOutputAudio()The audio data bytes encoded as specified in the request. Note: The output audio is generated based on the values of default platform text responses found in the `query_result.fulfillment_messages` field. If multiple default text responses exist, they will be concatenated when generating audio. If no default platform text responses exist, the generated audio content will be empty. In some scenarios, multiple output audio fields may be present in the response structure. In these cases, only the top-most-level audio output has content.
bytes output_audio = 5;- Specified by:
getOutputAudioin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The outputAudio.
-
hasOutputAudioConfig
public boolean hasOutputAudioConfig()The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;- Specified by:
hasOutputAudioConfigin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the outputAudioConfig field is set.
-
getOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The outputAudioConfig.
-
getOutputAudioConfigOrBuilder
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasDebuggingInfo
public boolean hasDebuggingInfo()Debugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;- Specified by:
hasDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the debuggingInfo field is set.
-
getDebuggingInfo
Debugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;- Specified by:
getDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The debuggingInfo.
-
getDebuggingInfoOrBuilder
Debugging info that would get populated when [StreamingDetectIntentRequest.enable_debugging_info][google.cloud.dialogflow.v2.StreamingDetectIntentRequest.enable_debugging_info] is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;- Specified by:
getDebuggingInfoOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
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 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
- 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
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
public static StreamingDetectIntentResponse.Builder newBuilder(StreamingDetectIntentResponse prototype) -
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected StreamingDetectIntentResponse.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
-