Class StreamingDetectIntentResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
com.google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse.Builder
- All Implemented Interfaces:
StreamingDetectIntentResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- StreamingDetectIntentResponse
public static final class StreamingDetectIntentResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
implements StreamingDetectIntentResponseOrBuilder
The top-level message returned from the [StreamingDetectIntent][google.cloud.dialogflow.cx.v3beta1.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.v3beta1.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.v3beta1.DetectIntentResponse.response_type] is set to `FINAL`.Protobuf type
google.cloud.dialogflow.cx.v3beta1.StreamingDetectIntentResponse-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.The response from detect intent.The result of speech recognition.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe response from detect intent.The response from detect intent.The response from detect intent.The result of speech recognition.The result of speech recognition.The result of speech recognition.booleanDebugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.booleanThe response from detect intent.booleanThe result of speech recognition.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanDebugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.The response from detect intent.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) The result of speech recognition.Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue) Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.The response from detect intent.setDetectIntentResponse(DetectIntentResponse.Builder builderForValue) The response from detect intent.The result of speech recognition.setRecognitionResult(StreamingRecognitionResult.Builder builderForValue) The result of speech recognition.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>- Throws:
IOException
-
getResponseCase
- Specified by:
getResponseCasein interfaceStreamingDetectIntentResponseOrBuilder
-
clearResponse
-
hasRecognitionResult
public boolean hasRecognitionResult()The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;- Specified by:
hasRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the recognitionResult field is set.
-
getRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;- Specified by:
getRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The recognitionResult.
-
setRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1; -
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue) The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1; -
mergeRecognitionResult
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value) The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1; -
clearRecognitionResult
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1; -
getRecognitionResultBuilder
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1; -
getRecognitionResultOrBuilder
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult recognition_result = 1;- Specified by:
getRecognitionResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasDetectIntentResponse
public boolean hasDetectIntentResponse()The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;- Specified by:
hasDetectIntentResponsein interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the detectIntentResponse field is set.
-
getDetectIntentResponse
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;- Specified by:
getDetectIntentResponsein interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The detectIntentResponse.
-
setDetectIntentResponse
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2; -
setDetectIntentResponse
public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue) The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2; -
mergeDetectIntentResponse
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2; -
clearDetectIntentResponse
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2; -
getDetectIntentResponseBuilder
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2; -
getDetectIntentResponseOrBuilder
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;- Specified by:
getDetectIntentResponseOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasDebuggingInfo
public boolean hasDebuggingInfo()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;- Specified by:
hasDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the debuggingInfo field is set.
-
getDebuggingInfo
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;- Specified by:
getDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The debuggingInfo.
-
setDebuggingInfo
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4; -
setDebuggingInfo
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.v3beta1.CloudConversationDebuggingInfo debugging_info = 4; -
mergeDebuggingInfo
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.v3beta1.CloudConversationDebuggingInfo debugging_info = 4; -
clearDebuggingInfo
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4; -
getDebuggingInfoBuilder
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4; -
getDebuggingInfoOrBuilder
Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;- Specified by:
getDebuggingInfoOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-