Class DetectIntentResponse.Builder (0.52.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DetectIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

build()

public DetectIntentResponse build()
Returns
TypeDescription
DetectIntentResponse

buildPartial()

public DetectIntentResponse buildPartial()
Returns
TypeDescription
DetectIntentResponse

clear()

public DetectIntentResponse.Builder clear()
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

clearDebuggingInfo()

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;

Returns
TypeDescription
DetectIntentResponse.Builder

clearDetectIntentResponse()

public DetectIntentResponse.Builder clearDetectIntentResponse()

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Returns
TypeDescription
DetectIntentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public DetectIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public DetectIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

clearRecognitionResult()

public DetectIntentResponse.Builder clearRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Returns
TypeDescription
DetectIntentResponse.Builder

clearResponse()

public DetectIntentResponse.Builder clearResponse()
Returns
TypeDescription
DetectIntentResponse.Builder

clone()

public DetectIntentResponse.Builder clone()
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

getDebuggingInfo()

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;

Returns
TypeDescription
CloudConversationDebuggingInfo

The debuggingInfo.

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;

Returns
TypeDescription
CloudConversationDebuggingInfo.Builder

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;

Returns
TypeDescription
CloudConversationDebuggingInfoOrBuilder

getDefaultInstanceForType()

public DetectIntentResponse getDefaultInstanceForType()
Returns
TypeDescription
DetectIntentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetectIntentResponse()

public DetectIntentResponse getDetectIntentResponse()

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Returns
TypeDescription
DetectIntentResponse

The detectIntentResponse.

getDetectIntentResponseBuilder()

public DetectIntentResponse.Builder getDetectIntentResponseBuilder()

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Returns
TypeDescription
DetectIntentResponse.Builder

getDetectIntentResponseOrBuilder()

public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Returns
TypeDescription
DetectIntentResponseOrBuilder

getRecognitionResult()

public RecognitionResult getRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Returns
TypeDescription
RecognitionResult

The recognitionResult.

getRecognitionResultBuilder()

public RecognitionResult.Builder getRecognitionResultBuilder()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Returns
TypeDescription
RecognitionResult.Builder

getRecognitionResultOrBuilder()

public RecognitionResultOrBuilder getRecognitionResultOrBuilder()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Returns
TypeDescription
RecognitionResultOrBuilder

getResponseCase()

public DetectIntentResponse.ResponseCase getResponseCase()
Returns
TypeDescription
DetectIntentResponse.ResponseCase

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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the recognitionResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeDebuggingInfo(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;

Parameter
NameDescription
valueCloudConversationDebuggingInfo
Returns
TypeDescription
DetectIntentResponse.Builder

mergeDetectIntentResponse(DetectIntentResponse value)

public DetectIntentResponse.Builder mergeDetectIntentResponse(DetectIntentResponse value)

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Parameter
NameDescription
valueDetectIntentResponse
Returns
TypeDescription
DetectIntentResponse.Builder

mergeFrom(DetectIntentResponse other)

public DetectIntentResponse.Builder mergeFrom(DetectIntentResponse other)
Parameter
NameDescription
otherDetectIntentResponse
Returns
TypeDescription
DetectIntentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DetectIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DetectIntentResponse.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

mergeRecognitionResult(RecognitionResult value)

public DetectIntentResponse.Builder mergeRecognitionResult(RecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Parameter
NameDescription
valueRecognitionResult
Returns
TypeDescription
DetectIntentResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DetectIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

setDebuggingInfo(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;

Parameter
NameDescription
valueCloudConversationDebuggingInfo
Returns
TypeDescription
DetectIntentResponse.Builder

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;

Parameter
NameDescription
builderForValueCloudConversationDebuggingInfo.Builder
Returns
TypeDescription
DetectIntentResponse.Builder

setDetectIntentResponse(DetectIntentResponse value)

public DetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse value)

The response from detect intent.

.google.cloud.dialogflow.cx.v3beta1.DetectIntentResponse detect_intent_response = 2;

Parameter
NameDescription
valueDetectIntentResponse
Returns
TypeDescription
DetectIntentResponse.Builder

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;

Parameter
NameDescription
builderForValueDetectIntentResponse.Builder
Returns
TypeDescription
DetectIntentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public DetectIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

setRecognitionResult(RecognitionResult value)

public DetectIntentResponse.Builder setRecognitionResult(RecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.cx.v3beta1.RecognitionResult recognition_result = 1;

Parameter
NameDescription
valueRecognitionResult
Returns
TypeDescription
DetectIntentResponse.Builder

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;

Parameter
NameDescription
builderForValueRecognitionResult.Builder
Returns
TypeDescription
DetectIntentResponse.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DetectIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final DetectIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides