public static final class StreamingDetectIntentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.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| Modifier and Type | Method and Description |
|---|---|
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.
|
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.
|
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.
|
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.
|
StreamingDetectIntentResponse.Builder |
addAlternativeQueryResults(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.
|
QueryResult.Builder |
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.
|
QueryResult.Builder |
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.
|
StreamingDetectIntentResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingDetectIntentResponse |
build() |
StreamingDetectIntentResponse |
buildPartial() |
StreamingDetectIntentResponse.Builder |
clear() |
StreamingDetectIntentResponse.Builder |
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.
|
StreamingDetectIntentResponse.Builder |
clearDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingDetectIntentResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingDetectIntentResponse.Builder |
clearOutputAudio()
The audio data bytes encoded as specified in the request.
|
StreamingDetectIntentResponse.Builder |
clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
|
StreamingDetectIntentResponse.Builder |
clearQueryResult()
The selected results of the conversational query or event processing.
|
StreamingDetectIntentResponse.Builder |
clearRecognitionResult()
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
clearResponseId()
The unique identifier of the response.
|
StreamingDetectIntentResponse.Builder |
clearWebhookStatus()
Specifies the status of the webhook request.
|
StreamingDetectIntentResponse.Builder |
clone() |
QueryResult |
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.
|
QueryResult.Builder |
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.
|
List<QueryResult.Builder> |
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.
|
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.
|
List<QueryResult> |
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.
|
QueryResultOrBuilder |
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> |
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.
|
CloudConversationDebuggingInfo |
getDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
CloudConversationDebuggingInfo.Builder |
getDebuggingInfoBuilder()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
CloudConversationDebuggingInfoOrBuilder |
getDebuggingInfoOrBuilder()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.ByteString |
getOutputAudio()
The audio data bytes encoded as specified in the request.
|
OutputAudioConfig |
getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
|
OutputAudioConfig.Builder |
getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.
|
OutputAudioConfigOrBuilder |
getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
|
QueryResult |
getQueryResult()
The selected results of the conversational query or event processing.
|
QueryResult.Builder |
getQueryResultBuilder()
The selected results of the conversational query or event processing.
|
QueryResultOrBuilder |
getQueryResultOrBuilder()
The selected results of the conversational query or event processing.
|
StreamingRecognitionResult |
getRecognitionResult()
The result of speech recognition.
|
StreamingRecognitionResult.Builder |
getRecognitionResultBuilder()
The result of speech recognition.
|
StreamingRecognitionResultOrBuilder |
getRecognitionResultOrBuilder()
The result of speech recognition.
|
String |
getResponseId()
The unique identifier of the response.
|
com.google.protobuf.ByteString |
getResponseIdBytes()
The unique identifier of the response.
|
com.google.rpc.Status |
getWebhookStatus()
Specifies the status of the webhook request.
|
com.google.rpc.Status.Builder |
getWebhookStatusBuilder()
Specifies the status of the webhook request.
|
com.google.rpc.StatusOrBuilder |
getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
|
boolean |
hasDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
boolean |
hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
|
boolean |
hasQueryResult()
The selected results of the conversational query or event processing.
|
boolean |
hasRecognitionResult()
The result of speech recognition.
|
boolean |
hasWebhookStatus()
Specifies the status of the webhook request.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingDetectIntentResponse.Builder |
mergeDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingDetectIntentResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingDetectIntentResponse.Builder |
mergeFrom(StreamingDetectIntentResponse other) |
StreamingDetectIntentResponse.Builder |
mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
|
StreamingDetectIntentResponse.Builder |
mergeQueryResult(QueryResult value)
The selected results of the conversational query or event processing.
|
StreamingDetectIntentResponse.Builder |
mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingDetectIntentResponse.Builder |
mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
|
StreamingDetectIntentResponse.Builder |
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.
|
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.
|
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.
|
StreamingDetectIntentResponse.Builder |
setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingDetectIntentResponse.Builder |
setOutputAudio(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request.
|
StreamingDetectIntentResponse.Builder |
setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.
|
StreamingDetectIntentResponse.Builder |
setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
|
StreamingDetectIntentResponse.Builder |
setQueryResult(QueryResult.Builder builderForValue)
The selected results of the conversational query or event processing.
|
StreamingDetectIntentResponse.Builder |
setQueryResult(QueryResult value)
The selected results of the conversational query or event processing.
|
StreamingDetectIntentResponse.Builder |
setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StreamingDetectIntentResponse.Builder |
setResponseId(String value)
The unique identifier of the response.
|
StreamingDetectIntentResponse.Builder |
setResponseIdBytes(com.google.protobuf.ByteString value)
The unique identifier of the response.
|
StreamingDetectIntentResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingDetectIntentResponse.Builder |
setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
|
StreamingDetectIntentResponse.Builder |
setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingDetectIntentResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingDetectIntentResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingDetectIntentResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>IOExceptionpublic String 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;getResponseId in interface StreamingDetectIntentResponseOrBuilderpublic 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;getResponseIdBytes in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setResponseId(String 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;value - The responseId to set.public StreamingDetectIntentResponse.Builder 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;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;value - The bytes for responseId to set.public boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
hasRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
getRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
public StreamingRecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult recognition_result = 2;
getRecognitionResultOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic 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;hasQueryResult in interface StreamingDetectIntentResponseOrBuilderpublic QueryResult 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;getQueryResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setQueryResult(QueryResult value)
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;public StreamingDetectIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
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;public StreamingDetectIntentResponse.Builder mergeQueryResult(QueryResult value)
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;public StreamingDetectIntentResponse.Builder 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;public QueryResult.Builder 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;public QueryResultOrBuilder 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;getQueryResultOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic List<QueryResult> 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;
getAlternativeQueryResultsList in interface StreamingDetectIntentResponseOrBuilderpublic 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;
getAlternativeQueryResultsCount in interface StreamingDetectIntentResponseOrBuilderpublic QueryResult 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. 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;
getAlternativeQueryResults in interface StreamingDetectIntentResponseOrBuilderpublic 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;
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;
public StreamingDetectIntentResponse.Builder addAlternativeQueryResults(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;
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;
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;
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;
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;
public StreamingDetectIntentResponse.Builder 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;
public StreamingDetectIntentResponse.Builder 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. 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;
public QueryResult.Builder 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. 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;
public QueryResultOrBuilder 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. 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 in interface StreamingDetectIntentResponseOrBuilderpublic List<? extends QueryResultOrBuilder> 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;
getAlternativeQueryResultsOrBuilderList in interface StreamingDetectIntentResponseOrBuilderpublic QueryResult.Builder 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;
public QueryResult.Builder 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. 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;
public List<QueryResult.Builder> 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;
public boolean hasWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;hasWebhookStatus in interface StreamingDetectIntentResponseOrBuilderpublic com.google.rpc.Status getWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;getWebhookStatus in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;public StreamingDetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;public StreamingDetectIntentResponse.Builder mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;public StreamingDetectIntentResponse.Builder clearWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;public com.google.rpc.Status.Builder getWebhookStatusBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;getWebhookStatusOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic 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;getOutputAudio in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setOutputAudio(com.google.protobuf.ByteString value)
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;value - The outputAudio to set.public StreamingDetectIntentResponse.Builder 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;public boolean hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;hasOutputAudioConfig in interface StreamingDetectIntentResponseOrBuilderpublic OutputAudioConfig getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;getOutputAudioConfig in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;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;public StreamingDetectIntentResponse.Builder mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;public StreamingDetectIntentResponse.Builder clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;public OutputAudioConfig.Builder getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2beta1.OutputAudioConfig output_audio_config = 6;getOutputAudioConfigOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic 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;
hasDebuggingInfo in interface StreamingDetectIntentResponseOrBuilderpublic CloudConversationDebuggingInfo getDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;
getDebuggingInfo in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder setDebuggingInfo(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;
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;
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;
public StreamingDetectIntentResponse.Builder clearDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;
public CloudConversationDebuggingInfo.Builder getDebuggingInfoBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;
public CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2beta1.CloudConversationDebuggingInfo debugging_info = 8;
getDebuggingInfoOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic final StreamingDetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public final StreamingDetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>Copyright © 2023 Google LLC. All rights reserved.