Class StreamingDetectIntentResponse.Builder (0.65.0)

public static final class StreamingDetectIntentResponse.Builder extends GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder> implements StreamingDetectIntentResponseOrBuilder

The top-level message returned from the 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 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 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.v3.StreamingDetectIntentResponse

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public StreamingDetectIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

build()

public StreamingDetectIntentResponse build()
Returns
Type Description
StreamingDetectIntentResponse

buildPartial()

public StreamingDetectIntentResponse buildPartial()
Returns
Type Description
StreamingDetectIntentResponse

clear()

public StreamingDetectIntentResponse.Builder clear()
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

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;

Returns
Type Description
StreamingDetectIntentResponse.Builder

clearDetectIntentResponse()

public StreamingDetectIntentResponse.Builder clearDetectIntentResponse()

The response from detect intent.

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

Returns
Type Description
StreamingDetectIntentResponse.Builder

clearField(Descriptors.FieldDescriptor field)

public StreamingDetectIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public StreamingDetectIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

clearRecognitionResult()

public StreamingDetectIntentResponse.Builder clearRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Returns
Type Description
StreamingDetectIntentResponse.Builder

clearResponse()

public StreamingDetectIntentResponse.Builder clearResponse()
Returns
Type Description
StreamingDetectIntentResponse.Builder

clone()

public StreamingDetectIntentResponse.Builder clone()
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

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;

Returns
Type Description
CloudConversationDebuggingInfo

The debuggingInfo.

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;

Returns
Type Description
CloudConversationDebuggingInfo.Builder

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;

Returns
Type Description
CloudConversationDebuggingInfoOrBuilder

getDefaultInstanceForType()

public StreamingDetectIntentResponse getDefaultInstanceForType()
Returns
Type Description
StreamingDetectIntentResponse

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDetectIntentResponse()

public DetectIntentResponse getDetectIntentResponse()

The response from detect intent.

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

Returns
Type Description
DetectIntentResponse

The detectIntentResponse.

getDetectIntentResponseBuilder()

public DetectIntentResponse.Builder getDetectIntentResponseBuilder()

The response from detect intent.

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

Returns
Type Description
DetectIntentResponse.Builder

getDetectIntentResponseOrBuilder()

public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()

The response from detect intent.

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

Returns
Type Description
DetectIntentResponseOrBuilder

getRecognitionResult()

public StreamingRecognitionResult getRecognitionResult()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Returns
Type Description
StreamingRecognitionResult

The recognitionResult.

getRecognitionResultBuilder()

public StreamingRecognitionResult.Builder getRecognitionResultBuilder()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Returns
Type Description
StreamingRecognitionResult.Builder

getRecognitionResultOrBuilder()

public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Returns
Type Description
StreamingRecognitionResultOrBuilder

getResponseCase()

public StreamingDetectIntentResponse.ResponseCase getResponseCase()
Returns
Type Description
StreamingDetectIntentResponse.ResponseCase

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;

Returns
Type Description
boolean

Whether the debuggingInfo field is set.

hasDetectIntentResponse()

public boolean hasDetectIntentResponse()

The response from detect intent.

.google.cloud.dialogflow.cx.v3.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.v3.StreamingRecognitionResult recognition_result = 1;

Returns
Type Description
boolean

Whether the recognitionResult field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDebuggingInfo(CloudConversationDebuggingInfo value)

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;

Parameter
Name Description
value CloudConversationDebuggingInfo
Returns
Type Description
StreamingDetectIntentResponse.Builder

mergeDetectIntentResponse(DetectIntentResponse value)

public StreamingDetectIntentResponse.Builder mergeDetectIntentResponse(DetectIntentResponse value)

The response from detect intent.

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

Parameter
Name Description
value DetectIntentResponse
Returns
Type Description
StreamingDetectIntentResponse.Builder

mergeFrom(StreamingDetectIntentResponse other)

public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
Parameter
Name Description
other StreamingDetectIntentResponse
Returns
Type Description
StreamingDetectIntentResponse.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public StreamingDetectIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public StreamingDetectIntentResponse.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

mergeRecognitionResult(StreamingRecognitionResult value)

public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Parameter
Name Description
value StreamingRecognitionResult
Returns
Type Description
StreamingDetectIntentResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final StreamingDetectIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

setDebuggingInfo(CloudConversationDebuggingInfo value)

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;

Parameter
Name Description
value CloudConversationDebuggingInfo
Returns
Type Description
StreamingDetectIntentResponse.Builder

setDebuggingInfo(CloudConversationDebuggingInfo.Builder builderForValue)

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;

Parameter
Name Description
builderForValue CloudConversationDebuggingInfo.Builder
Returns
Type Description
StreamingDetectIntentResponse.Builder

setDetectIntentResponse(DetectIntentResponse value)

public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse value)

The response from detect intent.

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

Parameter
Name Description
value DetectIntentResponse
Returns
Type Description
StreamingDetectIntentResponse.Builder

setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)

public StreamingDetectIntentResponse.Builder setDetectIntentResponse(DetectIntentResponse.Builder builderForValue)

The response from detect intent.

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

Parameter
Name Description
builderForValue DetectIntentResponse.Builder
Returns
Type Description
StreamingDetectIntentResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public StreamingDetectIntentResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

setRecognitionResult(StreamingRecognitionResult value)

public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Parameter
Name Description
value StreamingRecognitionResult
Returns
Type Description
StreamingDetectIntentResponse.Builder

setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)

public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)

The result of speech recognition.

.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;

Parameter
Name Description
builderForValue StreamingRecognitionResult.Builder
Returns
Type Description
StreamingDetectIntentResponse.Builder

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

public StreamingDetectIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final StreamingDetectIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
StreamingDetectIntentResponse.Builder
Overrides