public final class DetectIntentResponse extends com.google.protobuf.GeneratedMessageV3 implements DetectIntentResponseOrBuilder
The message returned from the DetectIntent method.Protobuf type
google.cloud.dialogflow.cx.v3.DetectIntentResponse| Modifier and Type | Class and Description |
|---|---|
static class |
DetectIntentResponse.Builder
The message returned from the DetectIntent method.
|
static class |
DetectIntentResponse.ResponseType
Represents different DetectIntentResponse types.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
ALLOW_CANCELLATION_FIELD_NUMBER |
static int |
OUTPUT_AUDIO_CONFIG_FIELD_NUMBER |
static int |
OUTPUT_AUDIO_FIELD_NUMBER |
static int |
QUERY_RESULT_FIELD_NUMBER |
static int |
RESPONSE_ID_FIELD_NUMBER |
static int |
RESPONSE_TYPE_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
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.
|
static DetectIntentResponse |
getDefaultInstance() |
DetectIntentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
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.
|
OutputAudioConfigOrBuilder |
getOutputAudioConfigOrBuilder()
The config used by the speech synthesizer to generate the output audio.
|
com.google.protobuf.Parser<DetectIntentResponse> |
getParserForType() |
QueryResult |
getQueryResult()
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.
|
int |
getSerializedSize() |
int |
hashCode() |
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() |
static DetectIntentResponse.Builder |
newBuilder() |
static DetectIntentResponse.Builder |
newBuilder(DetectIntentResponse prototype) |
DetectIntentResponse.Builder |
newBuilderForType() |
protected DetectIntentResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static DetectIntentResponse |
parseDelimitedFrom(InputStream input) |
static DetectIntentResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DetectIntentResponse |
parseFrom(byte[] data) |
static DetectIntentResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DetectIntentResponse |
parseFrom(ByteBuffer data) |
static DetectIntentResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data) |
static DetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static DetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static DetectIntentResponse |
parseFrom(InputStream input) |
static DetectIntentResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<DetectIntentResponse> |
parser() |
DetectIntentResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int RESPONSE_ID_FIELD_NUMBER
public static final int QUERY_RESULT_FIELD_NUMBER
public static final int OUTPUT_AUDIO_FIELD_NUMBER
public static final int OUTPUT_AUDIO_CONFIG_FIELD_NUMBER
public static final int RESPONSE_TYPE_FIELD_NUMBER
public static final int ALLOW_CANCELLATION_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public 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 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 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 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 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.ResponseType getResponseType()
Response type.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse.ResponseType response_type = 6;
getResponseType in interface DetectIntentResponseOrBuilderpublic 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 final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static DetectIntentResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static DetectIntentResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static DetectIntentResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DetectIntentResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static DetectIntentResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static DetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static DetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic DetectIntentResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static DetectIntentResponse.Builder newBuilder()
public static DetectIntentResponse.Builder newBuilder(DetectIntentResponse prototype)
public DetectIntentResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected DetectIntentResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static DetectIntentResponse getDefaultInstance()
public static com.google.protobuf.Parser<DetectIntentResponse> parser()
public com.google.protobuf.Parser<DetectIntentResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public DetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.