public final class StreamingDetectIntentResponse extends com.google.protobuf.GeneratedMessageV3 implements StreamingDetectIntentResponseOrBuilder
The top-level message returned from the
[StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
method.
Multiple response messages can be returned in order:
* If the `StreamingDetectIntentRequest.query_input.audio` field was
set, the first M messages contain `recognition_result`.
Each `recognition_result` represents a more complete transcript of what
the user said. The last `recognition_result` has `is_final` set to
`true`.
* If the `StreamingDetectIntentRequest.enable_partial_response` field was
true, the `detect_intent_response` field is populated for each
of the following N responses, where 0 <= N <= 5.
These responses set the
[DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
field to `PARTIAL`.
For the last response message, the `detect_intent_response` is fully
populated, and
[DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type]
is set to `FINAL`.
Protobuf type google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse| Modifier and Type | Class and Description |
|---|---|
static class |
StreamingDetectIntentResponse.Builder
The top-level message returned from the
[StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent]
method.
|
static class |
StreamingDetectIntentResponse.ResponseCase |
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 |
DEBUGGING_INFO_FIELD_NUMBER |
static int |
DETECT_INTENT_RESPONSE_FIELD_NUMBER |
static int |
RECOGNITION_RESULT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
CloudConversationDebuggingInfo |
getDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
CloudConversationDebuggingInfoOrBuilder |
getDebuggingInfoOrBuilder()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
static StreamingDetectIntentResponse |
getDefaultInstance() |
StreamingDetectIntentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DetectIntentResponse |
getDetectIntentResponse()
The response from detect intent.
|
DetectIntentResponseOrBuilder |
getDetectIntentResponseOrBuilder()
The response from detect intent.
|
com.google.protobuf.Parser<StreamingDetectIntentResponse> |
getParserForType() |
StreamingRecognitionResult |
getRecognitionResult()
The result of speech recognition.
|
StreamingRecognitionResultOrBuilder |
getRecognitionResultOrBuilder()
The result of speech recognition.
|
StreamingDetectIntentResponse.ResponseCase |
getResponseCase() |
int |
getSerializedSize() |
boolean |
hasDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
boolean |
hasDetectIntentResponse()
The response from detect intent.
|
int |
hashCode() |
boolean |
hasRecognitionResult()
The result of speech recognition.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamingDetectIntentResponse.Builder |
newBuilder() |
static StreamingDetectIntentResponse.Builder |
newBuilder(StreamingDetectIntentResponse prototype) |
StreamingDetectIntentResponse.Builder |
newBuilderForType() |
protected StreamingDetectIntentResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static StreamingDetectIntentResponse |
parseDelimitedFrom(InputStream input) |
static StreamingDetectIntentResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(byte[] data) |
static StreamingDetectIntentResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(ByteBuffer data) |
static StreamingDetectIntentResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(InputStream input) |
static StreamingDetectIntentResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamingDetectIntentResponse> |
parser() |
StreamingDetectIntentResponse.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 RECOGNITION_RESULT_FIELD_NUMBER
public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER
public static final int DEBUGGING_INFO_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 StreamingDetectIntentResponse.ResponseCase getResponseCase()
getResponseCase in interface StreamingDetectIntentResponseOrBuilderpublic boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;hasRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;getRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;getRecognitionResultOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic boolean hasDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;hasDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilderpublic DetectIntentResponse getDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;getDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilderpublic DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;getDetectIntentResponseOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic boolean hasDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;hasDebuggingInfo in interface StreamingDetectIntentResponseOrBuilderpublic CloudConversationDebuggingInfo getDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;getDebuggingInfo in interface StreamingDetectIntentResponseOrBuilderpublic CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;getDebuggingInfoOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic 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 StreamingDetectIntentResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StreamingDetectIntentResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingDetectIntentResponse.Builder newBuilder()
public static StreamingDetectIntentResponse.Builder newBuilder(StreamingDetectIntentResponse prototype)
public StreamingDetectIntentResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingDetectIntentResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingDetectIntentResponse getDefaultInstance()
public static com.google.protobuf.Parser<StreamingDetectIntentResponse> parser()
public com.google.protobuf.Parser<StreamingDetectIntentResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingDetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2025 Google LLC. All rights reserved.