public final class StreamingDetectIntentResponse extends com.google.protobuf.GeneratedMessageV3 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 type google.cloud.dialogflow.cx.v3.StreamingDetectIntentResponse| Modifier and Type | Class and Description |
|---|---|
static class |
StreamingDetectIntentResponse.Builder
The top-level message returned from the
[StreamingDetectIntent][google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent] method.
|
static class |
StreamingDetectIntentResponse.ResponseCase |
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter| Modifier and Type | Field and Description |
|---|---|
static int |
DETECT_INTENT_RESPONSE_FIELD_NUMBER |
static int |
RECOGNITION_RESULT_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static StreamingDetectIntentResponse |
getDefaultInstance() |
StreamingDetectIntentResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
DetectIntentResponse |
getDetectIntentResponse()
The response from detect intent.
|
DetectIntentResponseOrBuilder |
getDetectIntentResponseOrBuilder()
The response from detect intent.
|
com.google.protobuf.Parser<StreamingDetectIntentResponse> |
getParserForType() |
StreamingRecognitionResult |
getRecognitionResult()
The result of speech recognition.
|
StreamingRecognitionResultOrBuilder |
getRecognitionResultOrBuilder()
The result of speech recognition.
|
StreamingDetectIntentResponse.ResponseCase |
getResponseCase() |
int |
getSerializedSize() |
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
boolean |
hasDetectIntentResponse()
The response from detect intent.
|
int |
hashCode() |
boolean |
hasRecognitionResult()
The result of speech recognition.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static StreamingDetectIntentResponse.Builder |
newBuilder() |
static StreamingDetectIntentResponse.Builder |
newBuilder(StreamingDetectIntentResponse prototype) |
StreamingDetectIntentResponse.Builder |
newBuilderForType() |
protected StreamingDetectIntentResponse.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static StreamingDetectIntentResponse |
parseDelimitedFrom(InputStream input) |
static StreamingDetectIntentResponse |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(byte[] data) |
static StreamingDetectIntentResponse |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(ByteBuffer data) |
static StreamingDetectIntentResponse |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input) |
static StreamingDetectIntentResponse |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static StreamingDetectIntentResponse |
parseFrom(InputStream input) |
static StreamingDetectIntentResponse |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<StreamingDetectIntentResponse> |
parser() |
StreamingDetectIntentResponse.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int RECOGNITION_RESULT_FIELD_NUMBER
public static final int DETECT_INTENT_RESPONSE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public StreamingDetectIntentResponse.ResponseCase getResponseCase()
getResponseCase in interface StreamingDetectIntentResponseOrBuilderpublic boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;hasRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;getRecognitionResult in interface StreamingDetectIntentResponseOrBuilderpublic StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.cx.v3.StreamingRecognitionResult recognition_result = 1;getRecognitionResultOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic boolean hasDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;hasDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilderpublic DetectIntentResponse getDetectIntentResponse()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;getDetectIntentResponse in interface StreamingDetectIntentResponseOrBuilderpublic DetectIntentResponseOrBuilder getDetectIntentResponseOrBuilder()
The response from detect intent.
.google.cloud.dialogflow.cx.v3.DetectIntentResponse detect_intent_response = 2;getDetectIntentResponseOrBuilder in interface StreamingDetectIntentResponseOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static StreamingDetectIntentResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static StreamingDetectIntentResponse parseFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static StreamingDetectIntentResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic StreamingDetectIntentResponse.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static StreamingDetectIntentResponse.Builder newBuilder()
public static StreamingDetectIntentResponse.Builder newBuilder(StreamingDetectIntentResponse prototype)
public StreamingDetectIntentResponse.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected StreamingDetectIntentResponse.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static StreamingDetectIntentResponse getDefaultInstance()
public static com.google.protobuf.Parser<StreamingDetectIntentResponse> parser()
public com.google.protobuf.Parser<StreamingDetectIntentResponse> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public StreamingDetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2022 Google LLC. All rights reserved.