public static final class QueryResult.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder> implements QueryResultOrBuilder
Represents the result of conversational query or event processing.Protobuf type
google.cloud.dialogflow.v2beta1.QueryResult| Modifier and Type | Method and Description |
|---|---|
QueryResult.Builder |
addAllFulfillmentMessages(Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addAllOutputContexts(Iterable<? extends Context> values)
The collection of output contexts.
|
QueryResult.Builder |
addFulfillmentMessages(Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(Intent.Message value)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(int index,
Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addFulfillmentMessages(int index,
Intent.Message value)
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
addFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
addOutputContexts(Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(Context value)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(int index,
Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
addOutputContexts(int index,
Context value)
The collection of output contexts.
|
Context.Builder |
addOutputContextsBuilder()
The collection of output contexts.
|
Context.Builder |
addOutputContextsBuilder(int index)
The collection of output contexts.
|
QueryResult.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QueryResult |
build() |
QueryResult |
buildPartial() |
QueryResult.Builder |
clear() |
QueryResult.Builder |
clearAction()
The action name from the matched intent.
|
QueryResult.Builder |
clearAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
QueryResult.Builder |
clearCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult.Builder |
clearDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
QueryResult.Builder |
clearFulfillmentMessages()
The collection of rich messages to present to the user.
|
QueryResult.Builder |
clearFulfillmentText()
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
clearIntent()
The intent that matched the conversational query.
|
QueryResult.Builder |
clearIntentDetectionConfidence()
The intent detection confidence.
|
QueryResult.Builder |
clearKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
clearLanguageCode()
The language that was triggered during intent detection.
|
QueryResult.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
QueryResult.Builder |
clearOutputContexts()
The collection of output contexts.
|
QueryResult.Builder |
clearParameters()
The collection of extracted parameters.
|
QueryResult.Builder |
clearQueryText()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
clearSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
QueryResult.Builder |
clearSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0.
|
QueryResult.Builder |
clearWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
clearWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
QueryResult.Builder |
clone() |
String |
getAction()
The action name from the matched intent.
|
com.google.protobuf.ByteString |
getActionBytes()
The action name from the matched intent.
|
boolean |
getAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
boolean |
getCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
com.google.protobuf.Struct |
getDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request.
|
com.google.protobuf.Struct.Builder |
getDiagnosticInfoBuilder()
Free-form diagnostic information for the associated detect intent request.
|
com.google.protobuf.StructOrBuilder |
getDiagnosticInfoOrBuilder()
Free-form diagnostic information for the associated detect intent request.
|
Intent.Message |
getFulfillmentMessages(int index)
The collection of rich messages to present to the user.
|
Intent.Message.Builder |
getFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
|
List<Intent.Message.Builder> |
getFulfillmentMessagesBuilderList()
The collection of rich messages to present to the user.
|
int |
getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
|
List<Intent.Message> |
getFulfillmentMessagesList()
The collection of rich messages to present to the user.
|
Intent.MessageOrBuilder |
getFulfillmentMessagesOrBuilder(int index)
The collection of rich messages to present to the user.
|
List<? extends Intent.MessageOrBuilder> |
getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
|
String |
getFulfillmentText()
The text to be pronounced to the user or shown on the screen.
|
com.google.protobuf.ByteString |
getFulfillmentTextBytes()
The text to be pronounced to the user or shown on the screen.
|
Intent |
getIntent()
The intent that matched the conversational query.
|
Intent.Builder |
getIntentBuilder()
The intent that matched the conversational query.
|
float |
getIntentDetectionConfidence()
The intent detection confidence.
|
IntentOrBuilder |
getIntentOrBuilder()
The intent that matched the conversational query.
|
KnowledgeAnswers |
getKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
KnowledgeAnswers.Builder |
getKnowledgeAnswersBuilder()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
KnowledgeAnswersOrBuilder |
getKnowledgeAnswersOrBuilder()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
String |
getLanguageCode()
The language that was triggered during intent detection.
|
com.google.protobuf.ByteString |
getLanguageCodeBytes()
The language that was triggered during intent detection.
|
Context |
getOutputContexts(int index)
The collection of output contexts.
|
Context.Builder |
getOutputContextsBuilder(int index)
The collection of output contexts.
|
List<Context.Builder> |
getOutputContextsBuilderList()
The collection of output contexts.
|
int |
getOutputContextsCount()
The collection of output contexts.
|
List<Context> |
getOutputContextsList()
The collection of output contexts.
|
ContextOrBuilder |
getOutputContextsOrBuilder(int index)
The collection of output contexts.
|
List<? extends ContextOrBuilder> |
getOutputContextsOrBuilderList()
The collection of output contexts.
|
com.google.protobuf.Struct |
getParameters()
The collection of extracted parameters.
|
com.google.protobuf.Struct.Builder |
getParametersBuilder()
The collection of extracted parameters.
|
com.google.protobuf.StructOrBuilder |
getParametersOrBuilder()
The collection of extracted parameters.
|
String |
getQueryText()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
com.google.protobuf.ByteString |
getQueryTextBytes()
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
SentimentAnalysisResult |
getSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
SentimentAnalysisResult.Builder |
getSentimentAnalysisResultBuilder()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
SentimentAnalysisResultOrBuilder |
getSentimentAnalysisResultOrBuilder()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
float |
getSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0.
|
com.google.protobuf.Struct |
getWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
com.google.protobuf.Struct.Builder |
getWebhookPayloadBuilder()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
com.google.protobuf.StructOrBuilder |
getWebhookPayloadOrBuilder()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
String |
getWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
com.google.protobuf.ByteString |
getWebhookSourceBytes()
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
boolean |
hasDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request.
|
boolean |
hasIntent()
The intent that matched the conversational query.
|
boolean |
hasKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
boolean |
hasParameters()
The collection of extracted parameters.
|
boolean |
hasSentimentAnalysisResult()
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
boolean |
hasWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
QueryResult.Builder |
mergeDiagnosticInfo(com.google.protobuf.Struct value)
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
QueryResult.Builder |
mergeFrom(com.google.protobuf.Message other) |
QueryResult.Builder |
mergeFrom(QueryResult other) |
QueryResult.Builder |
mergeIntent(Intent value)
The intent that matched the conversational query.
|
QueryResult.Builder |
mergeKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
mergeParameters(com.google.protobuf.Struct value)
The collection of extracted parameters.
|
QueryResult.Builder |
mergeSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
QueryResult.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QueryResult.Builder |
mergeWebhookPayload(com.google.protobuf.Struct value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
removeFulfillmentMessages(int index)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
removeOutputContexts(int index)
The collection of output contexts.
|
QueryResult.Builder |
setAction(String value)
The action name from the matched intent.
|
QueryResult.Builder |
setActionBytes(com.google.protobuf.ByteString value)
The action name from the matched intent.
|
QueryResult.Builder |
setAllRequiredParamsPresent(boolean value)
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
|
QueryResult.Builder |
setCancelsSlotFilling(boolean value)
Indicates whether the conversational query triggers a cancellation for slot
filling.
|
QueryResult.Builder |
setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue)
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
setDiagnosticInfo(com.google.protobuf.Struct value)
Free-form diagnostic information for the associated detect intent request.
|
QueryResult.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
QueryResult.Builder |
setFulfillmentMessages(int index,
Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
setFulfillmentMessages(int index,
Intent.Message value)
The collection of rich messages to present to the user.
|
QueryResult.Builder |
setFulfillmentText(String value)
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
setFulfillmentTextBytes(com.google.protobuf.ByteString value)
The text to be pronounced to the user or shown on the screen.
|
QueryResult.Builder |
setIntent(Intent.Builder builderForValue)
The intent that matched the conversational query.
|
QueryResult.Builder |
setIntent(Intent value)
The intent that matched the conversational query.
|
QueryResult.Builder |
setIntentDetectionConfidence(float value)
The intent detection confidence.
|
QueryResult.Builder |
setKnowledgeAnswers(KnowledgeAnswers.Builder builderForValue)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
setKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing
`KnowledgeAnswers.match_confidence`.
|
QueryResult.Builder |
setLanguageCode(String value)
The language that was triggered during intent detection.
|
QueryResult.Builder |
setLanguageCodeBytes(com.google.protobuf.ByteString value)
The language that was triggered during intent detection.
|
QueryResult.Builder |
setOutputContexts(int index,
Context.Builder builderForValue)
The collection of output contexts.
|
QueryResult.Builder |
setOutputContexts(int index,
Context value)
The collection of output contexts.
|
QueryResult.Builder |
setParameters(com.google.protobuf.Struct.Builder builderForValue)
The collection of extracted parameters.
|
QueryResult.Builder |
setParameters(com.google.protobuf.Struct value)
The collection of extracted parameters.
|
QueryResult.Builder |
setQueryText(String value)
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
setQueryTextBytes(com.google.protobuf.ByteString value)
The original conversational query text:
- If natural language text was provided as input, `query_text` contains
a copy of the input.
|
QueryResult.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
QueryResult.Builder |
setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
QueryResult.Builder |
setSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the
`sentiment_analysis_request_config` specified in the request.
|
QueryResult.Builder |
setSpeechRecognitionConfidence(float value)
The Speech recognition confidence between 0.0 and 1.0.
|
QueryResult.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
QueryResult.Builder |
setWebhookPayload(com.google.protobuf.Struct.Builder builderForValue)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookPayload(com.google.protobuf.Struct value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `payload` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookSource(String value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
QueryResult.Builder |
setWebhookSourceBytes(com.google.protobuf.ByteString value)
If the query was fulfilled by a webhook call, this field is set to the
value of the `source` field returned in the webhook response.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic QueryResult build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic QueryResult buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic QueryResult.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(QueryResult other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public QueryResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>IOExceptionpublic String getQueryText()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;getQueryText in interface QueryResultOrBuilderpublic com.google.protobuf.ByteString getQueryTextBytes()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;getQueryTextBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setQueryText(String value)
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;value - The queryText to set.public QueryResult.Builder clearQueryText()
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;public QueryResult.Builder setQueryTextBytes(com.google.protobuf.ByteString value)
The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input. - If natural language speech audio was provided as input, `query_text` contains the speech recognition result. If speech recognizer produced multiple alternatives, a particular one is picked. - If automatic spell correction is enabled, `query_text` will contain the corrected user input.
string query_text = 1;value - The bytes for queryText to set.public String getLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;getLanguageCode in interface QueryResultOrBuilderpublic com.google.protobuf.ByteString getLanguageCodeBytes()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;getLanguageCodeBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setLanguageCode(String value)
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;value - The languageCode to set.public QueryResult.Builder clearLanguageCode()
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;public QueryResult.Builder setLanguageCodeBytes(com.google.protobuf.ByteString value)
The language that was triggered during intent detection. See [Language Support](https://cloud.google.com/dialogflow/docs/reference/language) for a list of the currently supported language codes.
string language_code = 15;value - The bytes for languageCode to set.public float getSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be accurate or set. In particular this field isn't set for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;getSpeechRecognitionConfidence in interface QueryResultOrBuilderpublic QueryResult.Builder setSpeechRecognitionConfidence(float value)
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be accurate or set. In particular this field isn't set for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;value - The speechRecognitionConfidence to set.public QueryResult.Builder clearSpeechRecognitionConfidence()
The Speech recognition confidence between 0.0 and 1.0. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is not guaranteed to be accurate or set. In particular this field isn't set for StreamingDetectIntent since the streaming endpoint has separate confidence estimates per portion of the audio in StreamingRecognitionResult.
float speech_recognition_confidence = 2;public String getAction()
The action name from the matched intent.
string action = 3;getAction in interface QueryResultOrBuilderpublic com.google.protobuf.ByteString getActionBytes()
The action name from the matched intent.
string action = 3;getActionBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setAction(String value)
The action name from the matched intent.
string action = 3;value - The action to set.public QueryResult.Builder clearAction()
The action name from the matched intent.
string action = 3;public QueryResult.Builder setActionBytes(com.google.protobuf.ByteString value)
The action name from the matched intent.
string action = 3;value - The bytes for action to set.public boolean hasParameters()
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;hasParameters in interface QueryResultOrBuilderpublic com.google.protobuf.Struct getParameters()
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;getParameters in interface QueryResultOrBuilderpublic QueryResult.Builder setParameters(com.google.protobuf.Struct value)
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;public QueryResult.Builder setParameters(com.google.protobuf.Struct.Builder builderForValue)
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;public QueryResult.Builder mergeParameters(com.google.protobuf.Struct value)
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;public QueryResult.Builder clearParameters()
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;public com.google.protobuf.Struct.Builder getParametersBuilder()
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;public com.google.protobuf.StructOrBuilder getParametersOrBuilder()
The collection of extracted parameters.
Depending on your protocol or client library language, this is a
map, associative array, symbol table, dictionary, or JSON object
composed of a collection of (MapKey, MapValue) pairs:
- MapKey type: string
- MapKey value: parameter name
- MapValue type:
- If parameter's entity type is a composite entity: map
- Else: depending on parameter value type, could be one of string,
number, boolean, null, list or map
- MapValue value:
- If parameter's entity type is a composite entity:
map from composite entity property names to property values
- Else: parameter value
.google.protobuf.Struct parameters = 4;getParametersOrBuilder in interface QueryResultOrBuilderpublic boolean getAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;getAllRequiredParamsPresent in interface QueryResultOrBuilderpublic QueryResult.Builder setAllRequiredParamsPresent(boolean value)
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;value - The allRequiredParamsPresent to set.public QueryResult.Builder clearAllRequiredParamsPresent()
This field is set to:
- `false` if the matched intent has required parameters and not all of
the required parameter values have been collected.
- `true` if all required parameter values have been collected, or if the
matched intent doesn't contain any required parameters.
bool all_required_params_present = 5;public boolean getCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;getCancelsSlotFilling in interface QueryResultOrBuilderpublic QueryResult.Builder setCancelsSlotFilling(boolean value)
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;value - The cancelsSlotFilling to set.public QueryResult.Builder clearCancelsSlotFilling()
Indicates whether the conversational query triggers a cancellation for slot filling. For more information, see the [cancel slot filling documentation](https://cloud.google.com/dialogflow/es/docs/intents-actions-parameters#cancel).
bool cancels_slot_filling = 21;public String getFulfillmentText()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;getFulfillmentText in interface QueryResultOrBuilderpublic com.google.protobuf.ByteString getFulfillmentTextBytes()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;getFulfillmentTextBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setFulfillmentText(String value)
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;value - The fulfillmentText to set.public QueryResult.Builder clearFulfillmentText()
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;public QueryResult.Builder setFulfillmentTextBytes(com.google.protobuf.ByteString value)
The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, `fulfillment_messages` should be preferred.
string fulfillment_text = 6;value - The bytes for fulfillmentText to set.public List<Intent.Message> getFulfillmentMessagesList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
getFulfillmentMessagesList in interface QueryResultOrBuilderpublic int getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
getFulfillmentMessagesCount in interface QueryResultOrBuilderpublic Intent.Message getFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
getFulfillmentMessages in interface QueryResultOrBuilderpublic QueryResult.Builder setFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder addFulfillmentMessages(Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder addFulfillmentMessages(Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder addAllFulfillmentMessages(Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder clearFulfillmentMessages()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public QueryResult.Builder removeFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
getFulfillmentMessagesOrBuilder in interface QueryResultOrBuilderpublic List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
getFulfillmentMessagesOrBuilderList in interface QueryResultOrBuilderpublic Intent.Message.Builder addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public List<Intent.Message.Builder> getFulfillmentMessagesBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
public String getWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;getWebhookSource in interface QueryResultOrBuilderpublic com.google.protobuf.ByteString getWebhookSourceBytes()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;getWebhookSourceBytes in interface QueryResultOrBuilderpublic QueryResult.Builder setWebhookSource(String value)
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;value - The webhookSource to set.public QueryResult.Builder clearWebhookSource()
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;public QueryResult.Builder setWebhookSourceBytes(com.google.protobuf.ByteString value)
If the query was fulfilled by a webhook call, this field is set to the value of the `source` field returned in the webhook response.
string webhook_source = 8;value - The bytes for webhookSource to set.public boolean hasWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;hasWebhookPayload in interface QueryResultOrBuilderpublic com.google.protobuf.Struct getWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;getWebhookPayload in interface QueryResultOrBuilderpublic QueryResult.Builder setWebhookPayload(com.google.protobuf.Struct value)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder setWebhookPayload(com.google.protobuf.Struct.Builder builderForValue)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder mergeWebhookPayload(com.google.protobuf.Struct value)
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public QueryResult.Builder clearWebhookPayload()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public com.google.protobuf.Struct.Builder getWebhookPayloadBuilder()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;public com.google.protobuf.StructOrBuilder getWebhookPayloadOrBuilder()
If the query was fulfilled by a webhook call, this field is set to the value of the `payload` field returned in the webhook response.
.google.protobuf.Struct webhook_payload = 9;getWebhookPayloadOrBuilder in interface QueryResultOrBuilderpublic List<Context> getOutputContextsList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsList in interface QueryResultOrBuilderpublic int getOutputContextsCount()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsCount in interface QueryResultOrBuilderpublic Context getOutputContexts(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContexts in interface QueryResultOrBuilderpublic QueryResult.Builder setOutputContexts(int index, Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder setOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(int index, Context value)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder addAllOutputContexts(Iterable<? extends Context> values)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder clearOutputContexts()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public QueryResult.Builder removeOutputContexts(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public Context.Builder getOutputContextsBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public ContextOrBuilder getOutputContextsOrBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsOrBuilder in interface QueryResultOrBuilderpublic List<? extends ContextOrBuilder> getOutputContextsOrBuilderList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;getOutputContextsOrBuilderList in interface QueryResultOrBuilderpublic Context.Builder addOutputContextsBuilder()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public Context.Builder addOutputContextsBuilder(int index)
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public List<Context.Builder> getOutputContextsBuilderList()
The collection of output contexts. If applicable, `output_contexts.parameters` contains entries with name `<parameter name>.original` containing the original parameter values before the query.
repeated .google.cloud.dialogflow.v2beta1.Context output_contexts = 10;public boolean hasIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;hasIntent in interface QueryResultOrBuilderpublic Intent getIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;getIntent in interface QueryResultOrBuilderpublic QueryResult.Builder setIntent(Intent value)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder setIntent(Intent.Builder builderForValue)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder mergeIntent(Intent value)
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public QueryResult.Builder clearIntent()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public Intent.Builder getIntentBuilder()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;public IntentOrBuilder getIntentOrBuilder()
The intent that matched the conversational query. Some, not all fields are filled in this message, including but not limited to: `name`, `display_name`, `end_interaction` and `is_fallback`.
.google.cloud.dialogflow.v2beta1.Intent intent = 11;getIntentOrBuilder in interface QueryResultOrBuilderpublic float getIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;getIntentDetectionConfidence in interface QueryResultOrBuilderpublic QueryResult.Builder setIntentDetectionConfidence(float value)
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;value - The intentDetectionConfidence to set.public QueryResult.Builder clearIntentDetectionConfidence()
The intent detection confidence. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). This value is for informational purpose only and is only used to help match the best intent within the classification threshold. This value may change for the same end-user expression at any time due to a model retraining or change in implementation. If there are `multiple knowledge_answers` messages, this value is set to the greatest `knowledgeAnswers.match_confidence` value in the list.
float intent_detection_confidence = 12;public boolean hasDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;hasDiagnosticInfo in interface QueryResultOrBuilderpublic com.google.protobuf.Struct getDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;getDiagnosticInfo in interface QueryResultOrBuilderpublic QueryResult.Builder setDiagnosticInfo(com.google.protobuf.Struct value)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder mergeDiagnosticInfo(com.google.protobuf.Struct value)
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;public QueryResult.Builder clearDiagnosticInfo()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder()
Free-form diagnostic information for the associated detect intent request. The fields of this data can change without notice, so you should not write code that depends on its structure. The data may contain: - webhook call latency - webhook errors
.google.protobuf.Struct diagnostic_info = 14;getDiagnosticInfoOrBuilder in interface QueryResultOrBuilderpublic boolean hasSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
hasSentimentAnalysisResult in interface QueryResultOrBuilderpublic SentimentAnalysisResult getSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
getSentimentAnalysisResult in interface QueryResultOrBuilderpublic QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder mergeSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public QueryResult.Builder clearSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
public SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
getSentimentAnalysisResultOrBuilder in interface QueryResultOrBuilderpublic boolean hasKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;hasKnowledgeAnswers in interface QueryResultOrBuilderpublic KnowledgeAnswers getKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;getKnowledgeAnswers in interface QueryResultOrBuilderpublic QueryResult.Builder setKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;public QueryResult.Builder setKnowledgeAnswers(KnowledgeAnswers.Builder builderForValue)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;public QueryResult.Builder mergeKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;public QueryResult.Builder clearKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;public KnowledgeAnswers.Builder getKnowledgeAnswersBuilder()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;public KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;getKnowledgeAnswersOrBuilder in interface QueryResultOrBuilderpublic final QueryResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>public final QueryResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>Copyright © 2023 Google LLC. All rights reserved.