Package com.google.cloud.dialogflow.v2
Class StreamingDetectIntentResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
- com.google.cloud.dialogflow.v2.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.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.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 typegoogle.cloud.dialogflow.v2.StreamingDetectIntentResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingDetectIntentResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
StreamingDetectIntentResponse
build()
StreamingDetectIntentResponse
buildPartial()
StreamingDetectIntentResponse.Builder
clear()
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 result 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()
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 result of the conversational query or event processing.QueryResult.Builder
getQueryResultBuilder()
The result of the conversational query or event processing.QueryResultOrBuilder
getQueryResultOrBuilder()
The result 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 result 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(StreamingDetectIntentResponse other)
StreamingDetectIntentResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
StreamingDetectIntentResponse.Builder
mergeFrom(com.google.protobuf.Message other)
StreamingDetectIntentResponse.Builder
mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.StreamingDetectIntentResponse.Builder
mergeQueryResult(QueryResult value)
The result 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
setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponse.Builder
setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
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 value)
The config used by the speech synthesizer to generate the output audio.StreamingDetectIntentResponse.Builder
setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.StreamingDetectIntentResponse.Builder
setQueryResult(QueryResult value)
The result of the conversational query or event processing.StreamingDetectIntentResponse.Builder
setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query or event processing.StreamingDetectIntentResponse.Builder
setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.StreamingDetectIntentResponse.Builder
setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
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 value)
Specifies the status of the webhook request.StreamingDetectIntentResponse.Builder
setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clear
public StreamingDetectIntentResponse.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
getDefaultInstanceForType
public StreamingDetectIntentResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public StreamingDetectIntentResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StreamingDetectIntentResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StreamingDetectIntentResponse.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
setField
public StreamingDetectIntentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clearField
public StreamingDetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clearOneof
public StreamingDetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
setRepeatedField
public StreamingDetectIntentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
addRepeatedField
public StreamingDetectIntentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
- Throws:
IOException
-
getResponseId
public 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;
- Specified by:
getResponseId
in 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:
getResponseIdBytes
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The bytes for responseId.
-
setResponseId
public 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;
- Parameters:
value
- The responseId to set.- Returns:
- This builder for chaining.
-
clearResponseId
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;
- 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.v2.StreamingRecognitionResult recognition_result = 2;
- Specified by:
hasRecognitionResult
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- Whether the recognitionResult field is set.
-
getRecognitionResult
public StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
- Specified by:
getRecognitionResult
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The recognitionResult.
-
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
-
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
-
mergeRecognitionResult
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
-
clearRecognitionResult
public StreamingDetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
-
getRecognitionResultBuilder
public StreamingRecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
-
getRecognitionResultOrBuilder
public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
- Specified by:
getRecognitionResultOrBuilder
in interfaceStreamingDetectIntentResponseOrBuilder
-
hasQueryResult
public boolean hasQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
- Specified by:
hasQueryResult
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- Whether the queryResult field is set.
-
getQueryResult
public QueryResult getQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
- Specified by:
getQueryResult
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The queryResult.
-
setQueryResult
public StreamingDetectIntentResponse.Builder setQueryResult(QueryResult value)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
-
setQueryResult
public StreamingDetectIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
-
mergeQueryResult
public StreamingDetectIntentResponse.Builder mergeQueryResult(QueryResult value)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
-
clearQueryResult
public StreamingDetectIntentResponse.Builder clearQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
-
getQueryResultBuilder
public QueryResult.Builder getQueryResultBuilder()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
-
getQueryResultOrBuilder
public QueryResultOrBuilder getQueryResultOrBuilder()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
- Specified by:
getQueryResultOrBuilder
in interfaceStreamingDetectIntentResponseOrBuilder
-
hasWebhookStatus
public boolean hasWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
- Specified by:
hasWebhookStatus
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- Whether the webhookStatus field is set.
-
getWebhookStatus
public com.google.rpc.Status getWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
- Specified by:
getWebhookStatus
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The webhookStatus.
-
setWebhookStatus
public StreamingDetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
-
setWebhookStatus
public StreamingDetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
-
mergeWebhookStatus
public StreamingDetectIntentResponse.Builder mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
-
clearWebhookStatus
public StreamingDetectIntentResponse.Builder clearWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
-
getWebhookStatusBuilder
public com.google.rpc.Status.Builder getWebhookStatusBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
-
getWebhookStatusOrBuilder
public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
- Specified by:
getWebhookStatusOrBuilder
in 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:
getOutputAudio
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The outputAudio.
-
setOutputAudio
public 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;
- Parameters:
value
- The outputAudio to set.- Returns:
- This builder for chaining.
-
clearOutputAudio
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;
- Returns:
- This builder for chaining.
-
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:
hasOutputAudioConfig
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- Whether the outputAudioConfig field is set.
-
getOutputAudioConfig
public OutputAudioConfig getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
- Specified by:
getOutputAudioConfig
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
public StreamingDetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.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.v2.OutputAudioConfig output_audio_config = 6;
-
mergeOutputAudioConfig
public StreamingDetectIntentResponse.Builder mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
-
clearOutputAudioConfig
public StreamingDetectIntentResponse.Builder clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
-
getOutputAudioConfigBuilder
public OutputAudioConfig.Builder getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
-
getOutputAudioConfigOrBuilder
public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
- Specified by:
getOutputAudioConfigOrBuilder
in interfaceStreamingDetectIntentResponseOrBuilder
-
hasDebuggingInfo
public boolean hasDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;
- Specified by:
hasDebuggingInfo
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- Whether the debuggingInfo field is set.
-
getDebuggingInfo
public CloudConversationDebuggingInfo getDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;
- Specified by:
getDebuggingInfo
in interfaceStreamingDetectIntentResponseOrBuilder
- Returns:
- The debuggingInfo.
-
setDebuggingInfo
public StreamingDetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.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.v2.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.v2.CloudConversationDebuggingInfo debugging_info = 8;
-
clearDebuggingInfo
public StreamingDetectIntentResponse.Builder clearDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;
-
getDebuggingInfoBuilder
public CloudConversationDebuggingInfo.Builder getDebuggingInfoBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;
-
getDebuggingInfoOrBuilder
public CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.v2.CloudConversationDebuggingInfo debugging_info = 8;
- Specified by:
getDebuggingInfoOrBuilder
in interfaceStreamingDetectIntentResponseOrBuilder
-
setUnknownFields
public final StreamingDetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
mergeUnknownFields
public final StreamingDetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
-