public static final class StreamingDetectIntentResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder> 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 | Method and Description |
|---|---|
StreamingDetectIntentResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingDetectIntentResponse |
build() |
StreamingDetectIntentResponse |
buildPartial() |
StreamingDetectIntentResponse.Builder |
clear() |
StreamingDetectIntentResponse.Builder |
clearDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
clearDetectIntentResponse()
The response from detect intent.
|
StreamingDetectIntentResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
StreamingDetectIntentResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
StreamingDetectIntentResponse.Builder |
clearRecognitionResult()
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
clearResponse() |
StreamingDetectIntentResponse.Builder |
clone() |
CloudConversationDebuggingInfo |
getDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
CloudConversationDebuggingInfo.Builder |
getDebuggingInfoBuilder()
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.
|
StreamingDetectIntentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
DetectIntentResponse |
getDetectIntentResponse()
The response from detect intent.
|
DetectIntentResponse.Builder |
getDetectIntentResponseBuilder()
The response from detect intent.
|
DetectIntentResponseOrBuilder |
getDetectIntentResponseOrBuilder()
The response from detect intent.
|
StreamingRecognitionResult |
getRecognitionResult()
The result of speech recognition.
|
StreamingRecognitionResult.Builder |
getRecognitionResultBuilder()
The result of speech recognition.
|
StreamingRecognitionResultOrBuilder |
getRecognitionResultOrBuilder()
The result of speech recognition.
|
StreamingDetectIntentResponse.ResponseCase |
getResponseCase() |
boolean |
hasDebuggingInfo()
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
boolean |
hasDetectIntentResponse()
The response from detect intent.
|
boolean |
hasRecognitionResult()
The result of speech recognition.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
StreamingDetectIntentResponse.Builder |
mergeDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
mergeDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
|
StreamingDetectIntentResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
StreamingDetectIntentResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
StreamingDetectIntentResponse.Builder |
mergeFrom(StreamingDetectIntentResponse other) |
StreamingDetectIntentResponse.Builder |
mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
StreamingDetectIntentResponse.Builder |
setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when
`StreamingDetectIntentRequest.enable_debugging_info` is set to true.
|
StreamingDetectIntentResponse.Builder |
setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
The response from detect intent.
|
StreamingDetectIntentResponse.Builder |
setDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
|
StreamingDetectIntentResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
StreamingDetectIntentResponse.Builder |
setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
|
StreamingDetectIntentResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
StreamingDetectIntentResponse.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, 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, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.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<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic StreamingDetectIntentResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic StreamingDetectIntentResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic StreamingDetectIntentResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.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<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.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<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.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<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public StreamingDetectIntentResponse.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<StreamingDetectIntentResponse.Builder>IOExceptionpublic StreamingDetectIntentResponse.ResponseCase getResponseCase()
getResponseCase in interface StreamingDetectIntentResponseOrBuilderpublic StreamingDetectIntentResponse.Builder clearResponse()
public 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 StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
public StreamingDetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
public StreamingRecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
public 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 StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;public StreamingDetectIntentResponse.Builder mergeDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;public StreamingDetectIntentResponse.Builder clearDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;public 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 StreamingDetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;
public StreamingDetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;
public StreamingDetectIntentResponse.Builder mergeDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;
public StreamingDetectIntentResponse.Builder clearDebuggingInfo()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;
public CloudConversationDebuggingInfo.Builder getDebuggingInfoBuilder()
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3.CloudConversationDebuggingInfo debugging_info = 4;
public 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 StreamingDetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>public final StreamingDetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>Copyright © 2025 Google LLC. All rights reserved.