Class StreamingDetectIntentResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
- com.google.cloud.dialogflow.cx.v3.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.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 (N) can be returned in order. The first (N-1) responses set either the `recognition_result` or `detect_intent_response` field, depending on the request: * If the `StreamingDetectIntentRequest.query_input.audio` field was set, and the `StreamingDetectIntentRequest.enable_partial_response` field was false, the `recognition_result` field is populated for each of the (N-1) responses. See the [StreamingRecognitionResult][google.cloud.dialogflow.cx.v3.StreamingRecognitionResult] message for details about the result message sequence. * If the `StreamingDetectIntentRequest.enable_partial_response` field was true, the `detect_intent_response` field is populated for each of the (N-1) responses, where 1 <= N <= 4. These responses set the [DetectIntentResponse.response_type][google.cloud.dialogflow.cx.v3.DetectIntentResponse.response_type] field to `PARTIAL`. For the final Nth 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 typegoogle.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamingDetectIntentResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StreamingDetectIntentResponsebuild()StreamingDetectIntentResponsebuildPartial()StreamingDetectIntentResponse.Builderclear()StreamingDetectIntentResponse.BuilderclearDebuggingInfo()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponse.BuilderclearDetectIntentResponse()The response from detect intent.StreamingDetectIntentResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)StreamingDetectIntentResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)StreamingDetectIntentResponse.BuilderclearRecognitionResult()The result of speech recognition.StreamingDetectIntentResponse.BuilderclearResponse()StreamingDetectIntentResponse.Builderclone()CloudConversationDebuggingInfogetDebuggingInfo()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.CloudConversationDebuggingInfo.BuildergetDebuggingInfoBuilder()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.CloudConversationDebuggingInfoOrBuildergetDebuggingInfoOrBuilder()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()DetectIntentResponsegetDetectIntentResponse()The response from detect intent.DetectIntentResponse.BuildergetDetectIntentResponseBuilder()The response from detect intent.DetectIntentResponseOrBuildergetDetectIntentResponseOrBuilder()The response from detect intent.StreamingRecognitionResultgetRecognitionResult()The result of speech recognition.StreamingRecognitionResult.BuildergetRecognitionResultBuilder()The result of speech recognition.StreamingRecognitionResultOrBuildergetRecognitionResultOrBuilder()The result of speech recognition.StreamingDetectIntentResponse.ResponseCasegetResponseCase()booleanhasDebuggingInfo()Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.booleanhasDetectIntentResponse()The response from detect intent.booleanhasRecognitionResult()The result of speech recognition.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()StreamingDetectIntentResponse.BuildermergeDebuggingInfo(CloudConversationDebuggingInfo value)Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponse.BuildermergeDetectIntentResponse(DetectIntentResponse value)The response from detect intent.StreamingDetectIntentResponse.BuildermergeFrom(StreamingDetectIntentResponse other)StreamingDetectIntentResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)StreamingDetectIntentResponse.BuildermergeFrom(com.google.protobuf.Message other)StreamingDetectIntentResponse.BuildermergeRecognitionResult(StreamingRecognitionResult value)The result of speech recognition.StreamingDetectIntentResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)StreamingDetectIntentResponse.BuildersetDebuggingInfo(CloudConversationDebuggingInfo value)Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponse.BuildersetDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)Debugging info that would get populated when `StreamingDetectIntentRequest.enable_debugging_info` is set to true.StreamingDetectIntentResponse.BuildersetDetectIntentResponse(DetectIntentResponse value)The response from detect intent.StreamingDetectIntentResponse.BuildersetDetectIntentResponse(DetectIntentResponse.Builder builderForValue)The response from detect intent.StreamingDetectIntentResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)StreamingDetectIntentResponse.BuildersetRecognitionResult(StreamingRecognitionResult value)The result of speech recognition.StreamingDetectIntentResponse.BuildersetRecognitionResult(StreamingRecognitionResult.Builder builderForValue)The result of speech recognition.StreamingDetectIntentResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)StreamingDetectIntentResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clear
public StreamingDetectIntentResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
getDefaultInstanceForType
public StreamingDetectIntentResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public StreamingDetectIntentResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public StreamingDetectIntentResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public StreamingDetectIntentResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
setField
public StreamingDetectIntentResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clearField
public StreamingDetectIntentResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
clearOneof
public StreamingDetectIntentResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
setRepeatedField
public StreamingDetectIntentResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
addRepeatedField
public StreamingDetectIntentResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
-
mergeFrom
public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public StreamingDetectIntentResponse.ResponseCase getResponseCase()
- Specified by:
getResponseCasein interfaceStreamingDetectIntentResponseOrBuilder
-
clearResponse
public StreamingDetectIntentResponse.Builder clearResponse()
-
hasRecognitionResult
public boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;- Specified by:
hasRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the recognitionResult field is set.
-
getRecognitionResult
public StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;- Specified by:
getRecognitionResultin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The recognitionResult.
-
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
-
setRecognitionResult
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
-
mergeRecognitionResult
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
-
clearRecognitionResult
public StreamingDetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
-
getRecognitionResultBuilder
public StreamingRecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;
-
getRecognitionResultOrBuilder
public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;- Specified by:
getRecognitionResultOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
hasDetectIntentResponse
public boolean hasDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;- Specified by:
hasDetectIntentResponsein interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the detectIntentResponse field is set.
-
getDetectIntentResponse
public DetectIntentResponse getDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;- Specified by:
getDetectIntentResponsein interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The detectIntentResponse.
-
setDetectIntentResponse
public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;
-
setDetectIntentResponse
public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;
-
mergeDetectIntentResponse
public StreamingDetectIntentResponse.Builder mergeDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;
-
clearDetectIntentResponse
public StreamingDetectIntentResponse.Builder clearDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;
-
getDetectIntentResponseBuilder
public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;
-
getDetectIntentResponseOrBuilder
public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.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.v3.CloudConversationDebuggingInfo debugging_info = 4;- Specified by:
hasDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- Whether the debuggingInfo field is set.
-
getDebuggingInfo
public 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;- Specified by:
getDebuggingInfoin interfaceStreamingDetectIntentResponseOrBuilder- Returns:
- The debuggingInfo.
-
setDebuggingInfo
public 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;
-
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.v3.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.v3.CloudConversationDebuggingInfo debugging_info = 4;
-
clearDebuggingInfo
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;
-
getDebuggingInfoBuilder
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;
-
getDebuggingInfoOrBuilder
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;- Specified by:
getDebuggingInfoOrBuilderin interfaceStreamingDetectIntentResponseOrBuilder
-
setUnknownFields
public final StreamingDetectIntentResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
mergeUnknownFields
public final StreamingDetectIntentResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
-
-