Class StreamingDetectIntentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
com.google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse.Builder
- All Implemented Interfaces:
StreamingDetectIntentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingDetectIntentResponse
public static final class StreamingDetectIntentResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
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` field was set, the `recognition_result` field is populated for one or more messages. See the [StreamingRecognitionResult][google.cloud.dialogflow.v2beta1.StreamingRecognitionResult] message for details about the result message sequence. 2. The next message contains `response_id`, `query_result`, `alternative_query_results` and optionally `webhook_status` if a WebHook was called. 3. If `output_audio_config` was specified in the request or agent-level speech synthesizer is configured, all subsequent messages contain `output_audio` and `output_audio_config`.Protobuf type
google.cloud.dialogflow.v2beta1.StreamingDetectIntentResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllAlternativeQueryResults(Iterable<? extends QueryResult> values) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.addAlternativeQueryResults(int index, QueryResult value) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.addAlternativeQueryResults(int index, QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.addAlternativeQueryResults(QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.addAlternativeQueryResultsBuilder(int index) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.build()clear()If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.The audio data bytes encoded as specified in the request.The config used by the speech synthesizer to generate the output audio.The selected results of the conversational query or event processing.The result of speech recognition.The unique identifier of the response.Specifies the status of the webhook request.getAlternativeQueryResults(int index) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.getAlternativeQueryResultsBuilder(int index) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.intIf Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.getAlternativeQueryResultsOrBuilder(int index) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.List<? extends QueryResultOrBuilder>If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.static final com.google.protobuf.Descriptors.Descriptorcom.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.The config used by the speech synthesizer to generate the output audio.The selected results of the conversational query or event processing.The selected results of the conversational query or event processing.The selected results of the conversational query or event processing.The result of speech recognition.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.Specifies the status of the webhook request.Specifies the status of the webhook request.Specifies the status of the webhook request.booleanDebugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.booleanThe config used by the speech synthesizer to generate the output audio.booleanThe selected results 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 booleanDebugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The config used by the speech synthesizer to generate the output audio.mergeQueryResult(QueryResult value) The selected results of the conversational query or event processing.The result of speech recognition.mergeWebhookStatus(Status value) Specifies the status of the webhook request.removeAlternativeQueryResults(int index) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.setAlternativeQueryResults(int index, QueryResult value) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.setAlternativeQueryResults(int index, QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue) Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.setOutputAudio(com.google.protobuf.ByteString value) The audio data bytes encoded as specified in the request.The config used by the speech synthesizer to generate the output audio.setOutputAudioConfig(OutputAudioConfig.Builder builderForValue) The config used by the speech synthesizer to generate the output audio.setQueryResult(QueryResult value) The selected results of the conversational query or event processing.setQueryResult(QueryResult.Builder builderForValue) The selected results of the conversational query or event processing.The result of speech recognition.setRecognitionResult(StreamingRecognitionResult.Builder builderForValue) The result of speech recognition.setResponseId(String value) The unique identifier of the response.setResponseIdBytes(com.google.protobuf.ByteString value) The unique identifier of the response.setWebhookStatus(Status value) Specifies the status of the webhook request.setWebhookStatus(Status.Builder builderForValue) Specifies the status of the webhook request.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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.Builder<StreamingDetectIntentResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>- Throws:
IOException
-
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.
-
setResponseId
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;- Parameters:
value- The responseId to set.- Returns:
- This builder for chaining.
-
clearResponseId
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;- Returns:
- This builder for chaining.
-
setResponseIdBytes
public StreamingDetectIntentResponse.Builder setResponseIdBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for responseId to set.- Returns:
- This builder for chaining.
-
hasRecognitionResult
public boolean hasRecognitionResult()The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;- Specified by:
hasRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the recognitionResult field is set.
-
getRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;- Specified by:
getRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The recognitionResult.
-
setRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2; -
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue) The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2; -
mergeRecognitionResult
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value) The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2; -
clearRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2; -
getRecognitionResultBuilder
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2; -
getRecognitionResultOrBuilder
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;- Specified by:
getRecognitionResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasQueryResult
public boolean hasQueryResult()The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;- Specified by:
hasQueryResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the queryResult field is set.
-
getQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;- Specified by:
getQueryResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The queryResult.
-
setQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3; -
setQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3; -
mergeQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3; -
clearQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3; -
getQueryResultBuilder
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3; -
getQueryResultOrBuilder
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2beta1.QueryResult query_result = 3;- Specified by:
getQueryResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
getAlternativeQueryResultsList
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;- Specified by:
getAlternativeQueryResultsListin interfaceStreamingDetectIntentResponseOrBuilder
-
getAlternativeQueryResultsCount
public int getAlternativeQueryResultsCount()If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;- Specified by:
getAlternativeQueryResultsCountin interfaceStreamingDetectIntentResponseOrBuilder
-
getAlternativeQueryResults
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;- Specified by:
getAlternativeQueryResultsin interfaceStreamingDetectIntentResponseOrBuilder
-
setAlternativeQueryResults
public StreamingDetectIntentResponse.Builder setAlternativeQueryResults(int index, QueryResult value) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
setAlternativeQueryResults
public StreamingDetectIntentResponse.Builder setAlternativeQueryResults(int index, QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAlternativeQueryResults
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAlternativeQueryResults
public StreamingDetectIntentResponse.Builder addAlternativeQueryResults(int index, QueryResult value) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAlternativeQueryResults
public StreamingDetectIntentResponse.Builder addAlternativeQueryResults(QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAlternativeQueryResults
public StreamingDetectIntentResponse.Builder addAlternativeQueryResults(int index, QueryResult.Builder builderForValue) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAllAlternativeQueryResults
public StreamingDetectIntentResponse.Builder addAllAlternativeQueryResults(Iterable<? extends QueryResult> values) If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
clearAlternativeQueryResults
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
removeAlternativeQueryResults
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
getAlternativeQueryResultsBuilder
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
getAlternativeQueryResultsOrBuilder
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;- Specified by:
getAlternativeQueryResultsOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
getAlternativeQueryResultsOrBuilderList
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7;- Specified by:
getAlternativeQueryResultsOrBuilderListin interfaceStreamingDetectIntentResponseOrBuilder
-
addAlternativeQueryResultsBuilder
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
addAlternativeQueryResultsBuilder
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
getAlternativeQueryResultsBuilderList
If Knowledge Connectors are enabled, there could be more than one result returned for a given query or event, and this field will contain all results except for the top one, which is captured in query_result. The alternative results are ordered by decreasing `QueryResult.intent_detection_confidence`. If Knowledge Connectors are disabled, this field will be empty until multiple responses for regular intents are supported, at which point those additional results will be surfaced here.
repeated .google.cloud.dialogflow.v2beta1.QueryResult alternative_query_results = 7; -
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.
-
setWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4; -
setWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4; -
mergeWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4; -
clearWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4; -
getWebhookStatusBuilder
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4; -
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.
-
setOutputAudio
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;- Parameters:
value- The outputAudio to set.- Returns:
- This builder for chaining.
-
clearOutputAudio
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;- Returns:
- This builder for chaining.
-
hasOutputAudioConfig
public boolean hasOutputAudioConfig()The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.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.v2beta1.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; -
setOutputAudioConfig
public StreamingDetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig.Builder builderForValue) The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; -
mergeOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; -
clearOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; -
getOutputAudioConfigBuilder
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6; -
getOutputAudioConfigOrBuilder
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasDebuggingInfo
public boolean hasDebuggingInfo()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.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` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;- Specified by:
getDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The debuggingInfo.
-
setDebuggingInfo
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8; -
setDebuggingInfo
public StreamingDetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue) Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8; -
mergeDebuggingInfo
public StreamingDetectIntentResponse.Builder mergeDebuggingInfo(CloudConversationDebuggingInfo value) Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8; -
clearDebuggingInfo
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8; -
getDebuggingInfoBuilder
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8; -
getDebuggingInfoOrBuilder
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;- Specified by:
getDebuggingInfoOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-