public static final class DetectIntentResponse.Builder extends GeneratedMessageV3.Builder<DetectIntentResponse.Builder> implements DetectIntentResponseOrBuilder
The message returned from the DetectIntent method.Protobuf type
google.cloud.dialogflow.v2.DetectIntentResponse
Modifier and Type | Method and Description |
---|---|
DetectIntentResponse.Builder |
addRepeatedField(Descriptors.FieldDescriptor field,
Object value) |
DetectIntentResponse |
build() |
DetectIntentResponse |
buildPartial() |
DetectIntentResponse.Builder |
clear() |
DetectIntentResponse.Builder |
clearField(Descriptors.FieldDescriptor field) |
DetectIntentResponse.Builder |
clearOneof(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 Descriptors.Descriptor |
getDescriptor() |
Descriptors.Descriptor |
getDescriptorForType() |
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.
|
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 GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DetectIntentResponse.Builder |
mergeFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
DetectIntentResponse.Builder |
mergeFrom(DetectIntentResponse other) |
DetectIntentResponse.Builder |
mergeFrom(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(UnknownFieldSet unknownFields) |
DetectIntentResponse.Builder |
mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
|
DetectIntentResponse.Builder |
setField(Descriptors.FieldDescriptor field,
Object value) |
DetectIntentResponse.Builder |
setOutputAudio(ByteString value)
The audio data bytes encoded as specified in the request.
|
DetectIntentResponse.Builder |
setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.
|
DetectIntentResponse.Builder |
setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
|
DetectIntentResponse.Builder |
setQueryResult(QueryResult.Builder builderForValue)
The selected results of the conversational query or event processing.
|
DetectIntentResponse.Builder |
setQueryResult(QueryResult value)
The selected results of the conversational query or event processing.
|
DetectIntentResponse.Builder |
setRepeatedField(Descriptors.FieldDescriptor field,
int index,
Object value) |
DetectIntentResponse.Builder |
setResponseId(String value)
The unique identifier of the response.
|
DetectIntentResponse.Builder |
setResponseIdBytes(ByteString value)
The unique identifier of the response.
|
DetectIntentResponse.Builder |
setUnknownFields(UnknownFieldSet unknownFields) |
DetectIntentResponse.Builder |
setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
|
DetectIntentResponse.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, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeDelimitedFrom, mergeDelimitedFrom
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public DetectIntentResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public DetectIntentResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public DetectIntentResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public DetectIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<DetectIntentResponse.Builder>
IOException
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;
getResponseId
in interface DetectIntentResponseOrBuilder
public 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 DetectIntentResponseOrBuilder
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;
value
- The responseId to set.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;
public DetectIntentResponse.Builder setResponseIdBytes(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 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;
hasQueryResult
in interface DetectIntentResponseOrBuilder
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;
getQueryResult
in interface DetectIntentResponseOrBuilder
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;
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;
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;
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;
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;
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;
getQueryResultOrBuilder
in interface DetectIntentResponseOrBuilder
public boolean hasWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
hasWebhookStatus
in interface DetectIntentResponseOrBuilder
public com.google.rpc.Status getWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
getWebhookStatus
in interface DetectIntentResponseOrBuilder
public DetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
public DetectIntentResponse.Builder setWebhookStatus(com.google.rpc.Status.Builder builderForValue)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
public DetectIntentResponse.Builder mergeWebhookStatus(com.google.rpc.Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
public DetectIntentResponse.Builder clearWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
public com.google.rpc.Status.Builder getWebhookStatusBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
public com.google.rpc.StatusOrBuilder getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 3;
getWebhookStatusOrBuilder
in interface DetectIntentResponseOrBuilder
public 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;
getOutputAudio
in interface DetectIntentResponseOrBuilder
public DetectIntentResponse.Builder setOutputAudio(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;
value
- The outputAudio to set.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;
public boolean hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
hasOutputAudioConfig
in interface DetectIntentResponseOrBuilder
public OutputAudioConfig getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
getOutputAudioConfig
in interface DetectIntentResponseOrBuilder
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;
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;
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;
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;
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;
public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.v2.OutputAudioConfig output_audio_config = 6;
getOutputAudioConfigOrBuilder
in interface DetectIntentResponseOrBuilder
public final DetectIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
public final DetectIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<DetectIntentResponse.Builder>
Copyright © 2022 Google LLC. All rights reserved.