Package com.google.cloud.dialogflow.v2
Class DetectIntentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<DetectIntentResponse.Builder>
com.google.cloud.dialogflow.v2.DetectIntentResponse.Builder
- All Implemented Interfaces:
DetectIntentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- DetectIntentResponse
public static final class DetectIntentResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<DetectIntentResponse.Builder>
implements DetectIntentResponseOrBuilder
The message returned from the [DetectIntent][] method.Protobuf type
google.cloud.dialogflow.v2.DetectIntentResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()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 unique identifier of the response.Specifies the status of the webhook request.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 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.booleanThe config used by the speech synthesizer to generate the output audio.booleanThe selected results of the conversational query or event processing.booleanSpecifies the status of the webhook request.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(DetectIntentResponse other) 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.mergeWebhookStatus(Status value) Specifies the status of the webhook request.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.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<DetectIntentResponse.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<DetectIntentResponse.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<DetectIntentResponse.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<DetectIntentResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.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<DetectIntentResponse.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 interfaceDetectIntentResponseOrBuilder- 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 interfaceDetectIntentResponseOrBuilder- 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
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.
-
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.v2.QueryResult query_result = 2;- Specified by:
hasQueryResultin interfaceDetectIntentResponseOrBuilder- 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.v2.QueryResult query_result = 2;- Specified by:
getQueryResultin interfaceDetectIntentResponseOrBuilder- 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.v2.QueryResult query_result = 2; -
setQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2.QueryResult query_result = 2; -
mergeQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2.QueryResult query_result = 2; -
clearQueryResult
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2.QueryResult query_result = 2; -
getQueryResultBuilder
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2.QueryResult query_result = 2; -
getQueryResultOrBuilder
The selected results of the conversational query or event processing. See `alternative_query_results` for additional potential results.
.google.cloud.dialogflow.v2.QueryResult query_result = 2;- Specified by:
getQueryResultOrBuilderin interfaceDetectIntentResponseOrBuilder
-
hasWebhookStatus
public boolean hasWebhookStatus()Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;- Specified by:
hasWebhookStatusin interfaceDetectIntentResponseOrBuilder- Returns:
- Whether the webhookStatus field is set.
-
getWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;- Specified by:
getWebhookStatusin interfaceDetectIntentResponseOrBuilder- Returns:
- The webhookStatus.
-
setWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3; -
setWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3; -
mergeWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3; -
clearWebhookStatus
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3; -
getWebhookStatusBuilder
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3; -
getWebhookStatusOrBuilder
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;- Specified by:
getWebhookStatusOrBuilderin interfaceDetectIntentResponseOrBuilder
-
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 = 4;- Specified by:
getOutputAudioin interfaceDetectIntentResponseOrBuilder- 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 = 4;- 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 = 4;- 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:
hasOutputAudioConfigin interfaceDetectIntentResponseOrBuilder- Returns:
- Whether the outputAudioConfig field is set.
-
getOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigin interfaceDetectIntentResponseOrBuilder- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; -
setOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; -
mergeOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; -
clearOutputAudioConfig
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; -
getOutputAudioConfigBuilder
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6; -
getOutputAudioConfigOrBuilder
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;- Specified by:
getOutputAudioConfigOrBuilderin interfaceDetectIntentResponseOrBuilder
-