Class DetectIntentResponse (0.19.0)

public final class DetectIntentResponse extends GeneratedMessageV3 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 Fields

DETECT_INTENT_RESPONSE_FIELD_NUMBER

public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER
Field Value
TypeDescription
int

RECOGNITION_RESULT_FIELD_NUMBER

public static final int RECOGNITION_RESULT_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static DetectIntentResponse getDefaultInstance()
Returns
TypeDescription
DetectIntentResponse

getDescriptor()

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

newBuilder()

public static DetectIntentResponse.Builder newBuilder()
Returns
TypeDescription
DetectIntentResponse.Builder

newBuilder(DetectIntentResponse )

public static DetectIntentResponse.Builder newBuilder(DetectIntentResponse )
Parameter
NameDescription
DetectIntentResponse
Returns
TypeDescription
DetectIntentResponse.Builder

parseDelimitedFrom(InputStream input)

public static DetectIntentResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static DetectIntentResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static DetectIntentResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static DetectIntentResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static DetectIntentResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static DetectIntentResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static DetectIntentResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DetectIntentResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<DetectIntentResponse> parser()
Returns
TypeDescription
Parser<DetectIntentResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public DetectIntentResponse getDefaultInstanceForType()
Returns
TypeDescription
DetectIntentResponse

getDetectIntentResponse()

public DetectIntentResponse getDetectIntentResponse()

The response from detect intent.

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

Returns
TypeDescription
DetectIntentResponse

The detectIntentResponse.

getDetectIntentResponseOrBuilder()

public DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()

The response from detect intent.

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

Returns
TypeDescription
DetectIntentResponseOrBuilder

getParserForType()

public Parser<DetectIntentResponse> getParserForType()
Returns
TypeDescription
Parser<DetectIntentResponse>
Overrides

getRecognitionResult()

public RecognitionResult getRecognitionResult()

The result of speech recognition.

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

Returns
TypeDescription
RecognitionResult

The recognitionResult.

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected DetectIntentResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
DetectIntentResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
OverridesExceptions
TypeDescription
IOException