public static final class DetectIntentResponse.Builder extends GeneratedMessageV3.Builder<DetectIntentResponse.Builder> implements DetectIntentResponseOrBuilder
The top-level message returned from the DetectIntent 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 DetectIntentRequest.query_input.audio
field was set, and the DetectIntentRequest.enable_partial_response
field was false, the recognition_result
field is populated for each of the (N-1) responses. See the RecognitionResult message for details about the result message sequence.
If the DetectIntentRequest.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 field to PARTIAL
.
For the final Nth response message, the detect_intent_response
is fully populated, and DetectIntentResponse.response_type is set to FINAL
.
Protobuf type google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overridesbuild()
public DetectIntentResponse build()
buildPartial()
public DetectIntentResponse buildPartial()
clear()
public DetectIntentResponse.Builder clear()
OverridesclearDebuggingInfo()
public DetectIntentResponse.Builder clearDebuggingInfo()
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
clearDetectIntentResponse()
public DetectIntentResponse.Builder clearDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
clearField(Descriptors.FieldDescriptor field)
public DetectIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
OverridesclearOneof(Descriptors.OneofDescriptor oneof)
public DetectIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
OverridesclearRecognitionResult()
public DetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
clearResponse()
public DetectIntentResponse.Builder clearResponse()
clone()
public DetectIntentResponse.Builder clone()
OverridesgetDebuggingInfo()
public CloudConversationDebuggingInfo getDebuggingInfo()
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
getDebuggingInfoBuilder()
public CloudConversationDebuggingInfo.Builder getDebuggingInfoBuilder()
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
getDebuggingInfoOrBuilder()
public CloudConversationDebuggingInfoOrBuilder getDebuggingInfoOrBuilder()
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
getDefaultInstanceForType()
public DetectIntentResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
OverridesgetDetectIntentResponse()
public DetectIntentResponse getDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
getDetectIntentResponseBuilder()
public DetectIntentResponse.Builder getDetectIntentResponseBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
getDetectIntentResponseOrBuilder()
public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
getRecognitionResult()
public RecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
getRecognitionResultBuilder()
public RecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
getRecognitionResultOrBuilder()
public RecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
getResponseCase()
public DetectIntentResponse.ResponseCase getResponseCase()
hasDebuggingInfo()
public boolean hasDebuggingInfo()
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
Returns |
---|
Type | Description |
boolean | Whether the debuggingInfo field is set. |
hasDetectIntentResponse()
public boolean hasDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
Returns |
---|
Type | Description |
boolean | Whether the detectIntentResponse field is set. |
hasRecognitionResult()
public boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
Returns |
---|
Type | Description |
boolean | Whether the recognitionResult field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
OverridesisInitialized()
public final boolean isInitialized()
OverridesmergeDebuggingInfo(CloudConversationDebuggingInfo value)
public DetectIntentResponse.Builder mergeDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
mergeDetectIntentResponse(DetectIntentResponse value)
public DetectIntentResponse.Builder mergeDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
mergeFrom(DetectIntentResponse other)
public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
public DetectIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
OverridesmergeFrom(Message other)
public DetectIntentResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
OverridesmergeRecognitionResult(RecognitionResult value)
public DetectIntentResponse.Builder mergeRecognitionResult(RecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
OverridessetDebuggingInfo(CloudConversationDebuggingInfo value)
public DetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo value)
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
public DetectIntentResponse.Builder setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)
Debugging info that would get populated when DetectIntentRequest.enable_debugging_info
is set to true.
.google.cloud.dialogflow.cx.v3beta1.CloudConversationDebuggingInfo debugging_info = 4;
setDetectIntentResponse(DetectIntentResponse value)
public DetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse value)
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
public DetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)
The response from detect intent.
.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public DetectIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
OverridessetRecognitionResult(RecognitionResult value)
public DetectIntentResponse.Builder setRecognitionResult(RecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
setRecognitionResult(RecognitionResult.Builder builderForValue)
public DetectIntentResponse.Builder setRecognitionResult(RecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
OverridessetUnknownFields(UnknownFieldSet unknownFields)
public final DetectIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides