public static final class DetectIntentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder> implements DetectIntentResponseOrBuilder
The message returned from the DetectIntent method.Protobuf type
google.cloud.dialogflow.cx.v3.DetectIntentResponse| Modifier and Type | Method and Description |
|---|---|
DetectIntentResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
DetectIntentResponse |
build() |
DetectIntentResponse |
buildPartial() |
DetectIntentResponse.Builder |
clear() |
DetectIntentResponse.Builder |
clearAllowCancellation()
Indicates whether the partial response can be cancelled when a later
response arrives.
|
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 result of the conversational query.
|
DetectIntentResponse.Builder |
clearResponseId()
Output only.
|
DetectIntentResponse.Builder |
clearResponseType()
Response type.
|
DetectIntentResponse.Builder |
clone() |
boolean |
getAllowCancellation()
Indicates whether the partial response can be cancelled when a later
response arrives.
|
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 result of the conversational query.
|
QueryResult.Builder |
getQueryResultBuilder()
The result of the conversational query.
|
QueryResultOrBuilder |
getQueryResultOrBuilder()
The result of the conversational query.
|
String |
getResponseId()
Output only.
|
com.google.protobuf.ByteString |
getResponseIdBytes()
Output only.
|
DetectIntentResponse.ResponseType |
getResponseType()
Response type.
|
int |
getResponseTypeValue()
Response type.
|
boolean |
hasOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
|
boolean |
hasQueryResult()
The result of the conversational query.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
DetectIntentResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
DetectIntentResponse.Builder |
mergeFrom(DetectIntentResponse other) |
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 result of the conversational query.
|
DetectIntentResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
DetectIntentResponse.Builder |
setAllowCancellation(boolean value)
Indicates whether the partial response can be cancelled when a later
response arrives.
|
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.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 result of the conversational query.
|
DetectIntentResponse.Builder |
setQueryResult(QueryResult value)
The result of the conversational query.
|
DetectIntentResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
DetectIntentResponse.Builder |
setResponseId(String value)
Output only.
|
DetectIntentResponse.Builder |
setResponseIdBytes(com.google.protobuf.ByteString value)
Output only.
|
DetectIntentResponse.Builder |
setResponseType(DetectIntentResponse.ResponseType value)
Response type.
|
DetectIntentResponse.Builder |
setResponseTypeValue(int value)
Response type.
|
DetectIntentResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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<DetectIntentResponse.Builder>public DetectIntentResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.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<DetectIntentResponse.Builder>public DetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic DetectIntentResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic DetectIntentResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic DetectIntentResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>public DetectIntentResponse.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<DetectIntentResponse.Builder>public DetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>public DetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>public DetectIntentResponse.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<DetectIntentResponse.Builder>public DetectIntentResponse.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<DetectIntentResponse.Builder>public DetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<DetectIntentResponse.Builder>public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>public DetectIntentResponse.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<DetectIntentResponse.Builder>IOExceptionpublic String getResponseId()
Output only. 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 DetectIntentResponseOrBuilderpublic com.google.protobuf.ByteString getResponseIdBytes()
Output only. 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 DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setResponseId(String value)
Output only. 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()
Output only. 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(com.google.protobuf.ByteString value)
Output only. 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 result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;hasQueryResult in interface DetectIntentResponseOrBuilderpublic QueryResult getQueryResult()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;getQueryResult in interface DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;public DetectIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;public DetectIntentResponse.Builder mergeQueryResult(QueryResult value)
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;public DetectIntentResponse.Builder clearQueryResult()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;public QueryResult.Builder getQueryResultBuilder()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;public QueryResultOrBuilder getQueryResultOrBuilder()
The result of the conversational query.
.google.cloud.dialogflow.cx.v3.QueryResult query_result = 2;getQueryResultOrBuilder in interface DetectIntentResponseOrBuilderpublic 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.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_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 DetectIntentResponseOrBuilderpublic 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.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_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.response_messages`][google.cloud.dialogflow.cx.v3.QueryResult.response_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.cx.v3.OutputAudioConfig output_audio_config = 5;hasOutputAudioConfig in interface DetectIntentResponseOrBuilderpublic OutputAudioConfig getOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;getOutputAudioConfig in interface DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;public DetectIntentResponse.Builder setOutputAudioConfig(OutputAudioConfig.Builder builderForValue)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;public DetectIntentResponse.Builder mergeOutputAudioConfig(OutputAudioConfig value)
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;public DetectIntentResponse.Builder clearOutputAudioConfig()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;public OutputAudioConfig.Builder getOutputAudioConfigBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;public OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
.google.cloud.dialogflow.cx.v3.OutputAudioConfig output_audio_config = 5;getOutputAudioConfigOrBuilder in interface DetectIntentResponseOrBuilderpublic int getResponseTypeValue()
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
getResponseTypeValue in interface DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setResponseTypeValue(int value)
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
value - The enum numeric value on the wire for responseType to set.public DetectIntentResponse.ResponseType getResponseType()
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
getResponseType in interface DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setResponseType(DetectIntentResponse.ResponseType value)
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
value - The responseType to set.public DetectIntentResponse.Builder clearResponseType()
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
public boolean getAllowCancellation()
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;getAllowCancellation in interface DetectIntentResponseOrBuilderpublic DetectIntentResponse.Builder setAllowCancellation(boolean value)
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;value - The allowCancellation to set.public DetectIntentResponse.Builder clearAllowCancellation()
Indicates whether the partial response can be cancelled when a later response arrives. e.g. if the agent specified some music as partial response, it can be cancelled.
bool allow_cancellation = 7;public final DetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>public final DetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DetectIntentResponse.Builder>Copyright © 2022 Google LLC. All rights reserved.