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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DetectIntentResponse.Builder> implements DetectIntentResponseOrBuilder
The message returned from the DetectIntent method.
Protobuf typegoogle.cloud.dialogflow.v2.DetectIntentResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DetectIntentResponse.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DetectIntentResponse
build()
DetectIntentResponse
buildPartial()
DetectIntentResponse.Builder
clear()
DetectIntentResponse.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DetectIntentResponse.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DetectIntentResponse.Builder
clearOutputAudio()
The audio data bytes encoded as specified in the request.DetectIntentResponse.Builder
clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.Builder
clearQueryResult()
The selected results of the conversational query or event processing.DetectIntentResponse.Builder
clearResponseId()
The unique identifier of the response.DetectIntentResponse.Builder
clearWebhookStatus()
Specifies the status of the webhook request.DetectIntentResponse.Builder
clone()
DetectIntentResponse
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.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
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
hasWebhookStatus()
Specifies the status of the webhook request.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DetectIntentResponse.Builder
mergeFrom(DetectIntentResponse other)
DetectIntentResponse.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DetectIntentResponse.Builder
mergeFrom(com.google.protobuf.Message other)
DetectIntentResponse.Builder
mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.Builder
mergeQueryResult(QueryResult value)
The selected results of the conversational query or event processing.DetectIntentResponse.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DetectIntentResponse.Builder
mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.DetectIntentResponse.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DetectIntentResponse.Builder
setOutputAudio(com.google.protobuf.ByteString value)
The audio data bytes encoded as specified in the request.DetectIntentResponse.Builder
setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.Builder
setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.DetectIntentResponse.Builder
setQueryResult(QueryResult value)
The selected results of the conversational query or event processing.DetectIntentResponse.Builder
setQueryResult(QueryResult.Builder builderForValue)
The selected results of the conversational query or event processing.DetectIntentResponse.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DetectIntentResponse.Builder
setResponseId(String value)
The unique identifier of the response.DetectIntentResponse.Builder
setResponseIdBytes(com.google.protobuf.ByteString value)
The unique identifier of the response.DetectIntentResponse.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DetectIntentResponse.Builder
setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.DetectIntentResponse.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<DetectIntentResponse.Builder>
-
clear
public DetectIntentResponse.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<DetectIntentResponse.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<DetectIntentResponse.Builder>
-
getDefaultInstanceForType
public DetectIntentResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DetectIntentResponse build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DetectIntentResponse buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
setField
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
clearField
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
clearOneof
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
setRepeatedField
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
addRepeatedField
public DetectIntentResponse.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<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
mergeFrom
public DetectIntentResponse.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<DetectIntentResponse.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 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:
getResponseIdBytes
in interfaceDetectIntentResponseOrBuilder
- Returns:
- The bytes for responseId.
-
setResponseId
public DetectIntentResponse.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 DetectIntentResponse.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 DetectIntentResponse.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.
-
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:
hasQueryResult
in interfaceDetectIntentResponseOrBuilder
- Returns:
- Whether the queryResult field is set.
-
getQueryResult
public QueryResult 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:
getQueryResult
in interfaceDetectIntentResponseOrBuilder
- Returns:
- The queryResult.
-
setQueryResult
public DetectIntentResponse.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.v2.QueryResult query_result = 2;
-
setQueryResult
public DetectIntentResponse.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.v2.QueryResult query_result = 2;
-
mergeQueryResult
public DetectIntentResponse.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.v2.QueryResult query_result = 2;
-
clearQueryResult
public DetectIntentResponse.Builder 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
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.v2.QueryResult query_result = 2;
-
getQueryResultOrBuilder
public QueryResultOrBuilder 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:
getQueryResultOrBuilder
in interfaceDetectIntentResponseOrBuilder
-
hasWebhookStatus
public boolean hasWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
- Specified by:
hasWebhookStatus
in interfaceDetectIntentResponseOrBuilder
- 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 = 3;
- Specified by:
getWebhookStatus
in interfaceDetectIntentResponseOrBuilder
- Returns:
- The webhookStatus.
-
setWebhookStatus
public DetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
-
setWebhookStatus
public DetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
-
mergeWebhookStatus
public DetectIntentResponse.Builder mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
-
clearWebhookStatus
public DetectIntentResponse.Builder clearWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
-
getWebhookStatusBuilder
public com.google.rpc.Status.Builder getWebhookStatusBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
-
getWebhookStatusOrBuilder
public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
- Specified by:
getWebhookStatusOrBuilder
in 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:
getOutputAudio
in interfaceDetectIntentResponseOrBuilder
- Returns:
- The outputAudio.
-
setOutputAudio
public DetectIntentResponse.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 = 4;
- Parameters:
value
- The outputAudio to set.- Returns:
- This builder for chaining.
-
clearOutputAudio
public DetectIntentResponse.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 = 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:
hasOutputAudioConfig
in interfaceDetectIntentResponseOrBuilder
- 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 interfaceDetectIntentResponseOrBuilder
- Returns:
- The outputAudioConfig.
-
setOutputAudioConfig
public DetectIntentResponse.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 DetectIntentResponse.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 DetectIntentResponse.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 DetectIntentResponse.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 interfaceDetectIntentResponseOrBuilder
-
setUnknownFields
public final DetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
mergeUnknownFields
public final DetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
-
-