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 can be returned in order: 1. If the input was set to streaming audio, the first one or more messages contain `recognition_result`. Each `recognition_result` represents a more complete transcript of what the user said. The last `recognition_result` has `is_final` set to `true`. 2. The next message contains `response_id`, `query_result` and optionally `webhook_status` if a WebHook was called.Protobuf type
google.cloud.dialogflow.v2.StreamingDetectIntentResponse
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
mergeFrom
public static final Descriptors.Descriptor getDescriptor()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder clear()
clear
in interface Message.Builder
clear
in interface MessageLite.Builder
clear
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface Message.Builder
getDescriptorForType
in interface MessageOrBuilder
getDescriptorForType
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse getDefaultInstanceForType()
getDefaultInstanceForType
in interface MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder
public StreamingDetectIntentResponse build()
build
in interface Message.Builder
build
in interface MessageLite.Builder
public StreamingDetectIntentResponse buildPartial()
buildPartial
in interface Message.Builder
buildPartial
in interface MessageLite.Builder
public StreamingDetectIntentResponse.Builder clone()
clone
in interface Message.Builder
clone
in interface MessageLite.Builder
clone
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder setField(Descriptors.FieldDescriptor field, java.lang.Object value)
setField
in interface Message.Builder
setField
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder clearField(Descriptors.FieldDescriptor field)
clearField
in interface Message.Builder
clearField
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
clearOneof
in interface Message.Builder
clearOneof
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, java.lang.Object value)
setRepeatedField
in interface Message.Builder
setRepeatedField
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, java.lang.Object value)
addRepeatedField
in interface Message.Builder
addRepeatedField
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder mergeFrom(Message other)
mergeFrom
in interface Message.Builder
mergeFrom
in class AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder mergeFrom(StreamingDetectIntentResponse other)
public final boolean isInitialized()
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public StreamingDetectIntentResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
mergeFrom
in interface Message.Builder
mergeFrom
in interface MessageLite.Builder
mergeFrom
in class AbstractMessage.Builder<StreamingDetectIntentResponse.Builder>
java.io.IOException
public java.lang.String getResponseId()
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;
getResponseId
in interface StreamingDetectIntentResponseOrBuilder
public ByteString getResponseIdBytes()
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;
getResponseIdBytes
in interface StreamingDetectIntentResponseOrBuilder
public StreamingDetectIntentResponse.Builder setResponseId(java.lang.String value)
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;
public StreamingDetectIntentResponse.Builder clearResponseId()
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;
public StreamingDetectIntentResponse.Builder setResponseIdBytes(ByteString value)
The unique identifier of the response. It can be used to locate a response in the training example set or for reporting issues.
string response_id = 1;
public boolean hasRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
hasRecognitionResult
in interface StreamingDetectIntentResponseOrBuilder
public StreamingRecognitionResult getRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
getRecognitionResult
in interface StreamingDetectIntentResponseOrBuilder
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder setRecognitionResult(StreamingRecognitionResult.Builder builderForValue)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder mergeRecognitionResult(StreamingRecognitionResult value)
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
public StreamingDetectIntentResponse.Builder clearRecognitionResult()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
public StreamingRecognitionResult.Builder getRecognitionResultBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
public StreamingRecognitionResultOrBuilder getRecognitionResultOrBuilder()
The result of speech recognition.
.google.cloud.dialogflow.v2.StreamingRecognitionResult recognition_result = 2;
getRecognitionResultOrBuilder
in interface StreamingDetectIntentResponseOrBuilder
public boolean hasQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
hasQueryResult
in interface StreamingDetectIntentResponseOrBuilder
public QueryResult getQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
getQueryResult
in interface StreamingDetectIntentResponseOrBuilder
public StreamingDetectIntentResponse.Builder setQueryResult(QueryResult value)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
public StreamingDetectIntentResponse.Builder setQueryResult(QueryResult.Builder builderForValue)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
public StreamingDetectIntentResponse.Builder mergeQueryResult(QueryResult value)
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
public StreamingDetectIntentResponse.Builder clearQueryResult()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
public QueryResult.Builder getQueryResultBuilder()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
public QueryResultOrBuilder getQueryResultOrBuilder()
The result of the conversational query or event processing.
.google.cloud.dialogflow.v2.QueryResult query_result = 3;
getQueryResultOrBuilder
in interface StreamingDetectIntentResponseOrBuilder
public boolean hasWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
hasWebhookStatus
in interface StreamingDetectIntentResponseOrBuilder
public Status getWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
getWebhookStatus
in interface StreamingDetectIntentResponseOrBuilder
public StreamingDetectIntentResponse.Builder setWebhookStatus(Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
public StreamingDetectIntentResponse.Builder setWebhookStatus(Status.Builder builderForValue)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
public StreamingDetectIntentResponse.Builder mergeWebhookStatus(Status value)
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
public StreamingDetectIntentResponse.Builder clearWebhookStatus()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
public Status.Builder getWebhookStatusBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
public StatusOrBuilder getWebhookStatusOrBuilder()
Specifies the status of the webhook request.
.google.rpc.Status webhook_status = 4;
getWebhookStatusOrBuilder
in interface StreamingDetectIntentResponseOrBuilder
public final StreamingDetectIntentResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
setUnknownFields
in interface Message.Builder
setUnknownFields
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>
public final StreamingDetectIntentResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
mergeUnknownFields
in interface Message.Builder
mergeUnknownFields
in class GeneratedMessageV3.Builder<StreamingDetectIntentResponse.Builder>