Package com.google.cloud.dialogflow.v2
Class QueryResult.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
- com.google.cloud.dialogflow.v2.QueryResult.Builder
-
- All Implemented Interfaces:
QueryResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- QueryResult
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 typegoogle.cloud.dialogflow.v2.QueryResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryResult.BuilderaddAllFulfillmentMessages(Iterable<? extends Intent.Message> values)The collection of rich messages to present to the user.QueryResult.BuilderaddAllOutputContexts(Iterable<? extends Context> values)The collection of output contexts.QueryResult.BuilderaddFulfillmentMessages(int index, Intent.Message value)The collection of rich messages to present to the user.QueryResult.BuilderaddFulfillmentMessages(int index, Intent.Message.Builder builderForValue)The collection of rich messages to present to the user.QueryResult.BuilderaddFulfillmentMessages(Intent.Message value)The collection of rich messages to present to the user.QueryResult.BuilderaddFulfillmentMessages(Intent.Message.Builder builderForValue)The collection of rich messages to present to the user.Intent.Message.BuilderaddFulfillmentMessagesBuilder()The collection of rich messages to present to the user.Intent.Message.BuilderaddFulfillmentMessagesBuilder(int index)The collection of rich messages to present to the user.QueryResult.BuilderaddOutputContexts(int index, Context value)The collection of output contexts.QueryResult.BuilderaddOutputContexts(int index, Context.Builder builderForValue)The collection of output contexts.QueryResult.BuilderaddOutputContexts(Context value)The collection of output contexts.QueryResult.BuilderaddOutputContexts(Context.Builder builderForValue)The collection of output contexts.Context.BuilderaddOutputContextsBuilder()The collection of output contexts.Context.BuilderaddOutputContextsBuilder(int index)The collection of output contexts.QueryResult.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryResultbuild()QueryResultbuildPartial()QueryResult.Builderclear()QueryResult.BuilderclearAction()The action name from the matched intent.QueryResult.BuilderclearAllRequiredParamsPresent()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.BuilderclearCancelsSlotFilling()Indicates whether the conversational query triggers a cancellation for slot filling.QueryResult.BuilderclearDiagnosticInfo()Free-form diagnostic information for the associated detect intent request.QueryResult.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)QueryResult.BuilderclearFulfillmentMessages()The collection of rich messages to present to the user.QueryResult.BuilderclearFulfillmentText()The text to be pronounced to the user or shown on the screen.QueryResult.BuilderclearIntent()The intent that matched the conversational query.QueryResult.BuilderclearIntentDetectionConfidence()The intent detection confidence.QueryResult.BuilderclearLanguageCode()The language that was triggered during intent detection.QueryResult.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)QueryResult.BuilderclearOutputContexts()The collection of output contexts.QueryResult.BuilderclearParameters()The collection of extracted parameters.QueryResult.BuilderclearQueryText()The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input.QueryResult.BuilderclearSentimentAnalysisResult()The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.QueryResult.BuilderclearSpeechRecognitionConfidence()The Speech recognition confidence between 0.0 and 1.0.QueryResult.BuilderclearWebhookPayload()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.BuilderclearWebhookSource()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.Builderclone()StringgetAction()The action name from the matched intent.com.google.protobuf.ByteStringgetActionBytes()The action name from the matched intent.booleangetAllRequiredParamsPresent()This field is set to: - `false` if the matched intent has required parameters and not all of the required parameter values have been collected.booleangetCancelsSlotFilling()Indicates whether the conversational query triggers a cancellation for slot filling.QueryResultgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.StructgetDiagnosticInfo()Free-form diagnostic information for the associated detect intent request.com.google.protobuf.Struct.BuildergetDiagnosticInfoBuilder()Free-form diagnostic information for the associated detect intent request.com.google.protobuf.StructOrBuildergetDiagnosticInfoOrBuilder()Free-form diagnostic information for the associated detect intent request.Intent.MessagegetFulfillmentMessages(int index)The collection of rich messages to present to the user.Intent.Message.BuildergetFulfillmentMessagesBuilder(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.intgetFulfillmentMessagesCount()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.MessageOrBuildergetFulfillmentMessagesOrBuilder(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.StringgetFulfillmentText()The text to be pronounced to the user or shown on the screen.com.google.protobuf.ByteStringgetFulfillmentTextBytes()The text to be pronounced to the user or shown on the screen.IntentgetIntent()The intent that matched the conversational query.Intent.BuildergetIntentBuilder()The intent that matched the conversational query.floatgetIntentDetectionConfidence()The intent detection confidence.IntentOrBuildergetIntentOrBuilder()The intent that matched the conversational query.StringgetLanguageCode()The language that was triggered during intent detection.com.google.protobuf.ByteStringgetLanguageCodeBytes()The language that was triggered during intent detection.ContextgetOutputContexts(int index)The collection of output contexts.Context.BuildergetOutputContextsBuilder(int index)The collection of output contexts.List<Context.Builder>getOutputContextsBuilderList()The collection of output contexts.intgetOutputContextsCount()The collection of output contexts.List<Context>getOutputContextsList()The collection of output contexts.ContextOrBuildergetOutputContextsOrBuilder(int index)The collection of output contexts.List<? extends ContextOrBuilder>getOutputContextsOrBuilderList()The collection of output contexts.com.google.protobuf.StructgetParameters()The collection of extracted parameters.com.google.protobuf.Struct.BuildergetParametersBuilder()The collection of extracted parameters.com.google.protobuf.StructOrBuildergetParametersOrBuilder()The collection of extracted parameters.StringgetQueryText()The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input.com.google.protobuf.ByteStringgetQueryTextBytes()The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input.SentimentAnalysisResultgetSentimentAnalysisResult()The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.SentimentAnalysisResult.BuildergetSentimentAnalysisResultBuilder()The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.SentimentAnalysisResultOrBuildergetSentimentAnalysisResultOrBuilder()The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.floatgetSpeechRecognitionConfidence()The Speech recognition confidence between 0.0 and 1.0.com.google.protobuf.StructgetWebhookPayload()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.BuildergetWebhookPayloadBuilder()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.StructOrBuildergetWebhookPayloadOrBuilder()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.StringgetWebhookSource()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.ByteStringgetWebhookSourceBytes()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.booleanhasDiagnosticInfo()Free-form diagnostic information for the associated detect intent request.booleanhasIntent()The intent that matched the conversational query.booleanhasParameters()The collection of extracted parameters.booleanhasSentimentAnalysisResult()The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.booleanhasWebhookPayload()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.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()QueryResult.BuildermergeDiagnosticInfo(com.google.protobuf.Struct value)Free-form diagnostic information for the associated detect intent request.QueryResult.BuildermergeFrom(QueryResult other)QueryResult.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)QueryResult.BuildermergeFrom(com.google.protobuf.Message other)QueryResult.BuildermergeIntent(Intent value)The intent that matched the conversational query.QueryResult.BuildermergeParameters(com.google.protobuf.Struct value)The collection of extracted parameters.QueryResult.BuildermergeSentimentAnalysisResult(SentimentAnalysisResult value)The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.QueryResult.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueryResult.BuildermergeWebhookPayload(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.BuilderremoveFulfillmentMessages(int index)The collection of rich messages to present to the user.QueryResult.BuilderremoveOutputContexts(int index)The collection of output contexts.QueryResult.BuildersetAction(String value)The action name from the matched intent.QueryResult.BuildersetActionBytes(com.google.protobuf.ByteString value)The action name from the matched intent.QueryResult.BuildersetAllRequiredParamsPresent(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.BuildersetCancelsSlotFilling(boolean value)Indicates whether the conversational query triggers a cancellation for slot filling.QueryResult.BuildersetDiagnosticInfo(com.google.protobuf.Struct value)Free-form diagnostic information for the associated detect intent request.QueryResult.BuildersetDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue)Free-form diagnostic information for the associated detect intent request.QueryResult.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)QueryResult.BuildersetFulfillmentMessages(int index, Intent.Message value)The collection of rich messages to present to the user.QueryResult.BuildersetFulfillmentMessages(int index, Intent.Message.Builder builderForValue)The collection of rich messages to present to the user.QueryResult.BuildersetFulfillmentText(String value)The text to be pronounced to the user or shown on the screen.QueryResult.BuildersetFulfillmentTextBytes(com.google.protobuf.ByteString value)The text to be pronounced to the user or shown on the screen.QueryResult.BuildersetIntent(Intent value)The intent that matched the conversational query.QueryResult.BuildersetIntent(Intent.Builder builderForValue)The intent that matched the conversational query.QueryResult.BuildersetIntentDetectionConfidence(float value)The intent detection confidence.QueryResult.BuildersetLanguageCode(String value)The language that was triggered during intent detection.QueryResult.BuildersetLanguageCodeBytes(com.google.protobuf.ByteString value)The language that was triggered during intent detection.QueryResult.BuildersetOutputContexts(int index, Context value)The collection of output contexts.QueryResult.BuildersetOutputContexts(int index, Context.Builder builderForValue)The collection of output contexts.QueryResult.BuildersetParameters(com.google.protobuf.Struct value)The collection of extracted parameters.QueryResult.BuildersetParameters(com.google.protobuf.Struct.Builder builderForValue)The collection of extracted parameters.QueryResult.BuildersetQueryText(String value)The original conversational query text: - If natural language text was provided as input, `query_text` contains a copy of the input.QueryResult.BuildersetQueryTextBytes(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.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)QueryResult.BuildersetSentimentAnalysisResult(SentimentAnalysisResult value)The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.QueryResult.BuildersetSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.QueryResult.BuildersetSpeechRecognitionConfidence(float value)The Speech recognition confidence between 0.0 and 1.0.QueryResult.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)QueryResult.BuildersetWebhookPayload(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.BuildersetWebhookPayload(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.BuildersetWebhookSource(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.BuildersetWebhookSourceBytes(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.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clear
public QueryResult.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
getDefaultInstanceForType
public QueryResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueryResult build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueryResult buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueryResult.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
setField
public QueryResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clearField
public QueryResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clearOneof
public QueryResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
setRepeatedField
public QueryResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
addRepeatedField
public QueryResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(QueryResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>- Throws:
IOException
-
getQueryText
public 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;- Specified by:
getQueryTextin interfaceQueryResultOrBuilder- Returns:
- The queryText.
-
getQueryTextBytes
public 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;- Specified by:
getQueryTextBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for queryText.
-
setQueryText
public 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;- Parameters:
value- The queryText to set.- Returns:
- This builder for chaining.
-
clearQueryText
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;- Returns:
- This builder for chaining.
-
setQueryTextBytes
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;- Parameters:
value- The bytes for queryText to set.- Returns:
- This builder for chaining.
-
getLanguageCode
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;- Specified by:
getLanguageCodein interfaceQueryResultOrBuilder- Returns:
- The languageCode.
-
getLanguageCodeBytes
public 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;- Specified by:
getLanguageCodeBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for languageCode.
-
setLanguageCode
public 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;- Parameters:
value- The languageCode to set.- Returns:
- This builder for chaining.
-
clearLanguageCode
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;- Returns:
- This builder for chaining.
-
setLanguageCodeBytes
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;- Parameters:
value- The bytes for languageCode to set.- Returns:
- This builder for chaining.
-
getSpeechRecognitionConfidence
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;- Specified by:
getSpeechRecognitionConfidencein interfaceQueryResultOrBuilder- Returns:
- The speechRecognitionConfidence.
-
setSpeechRecognitionConfidence
public 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;- Parameters:
value- The speechRecognitionConfidence to set.- Returns:
- This builder for chaining.
-
clearSpeechRecognitionConfidence
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;- Returns:
- This builder for chaining.
-
getAction
public String getAction()
The action name from the matched intent.
string action = 3;- Specified by:
getActionin interfaceQueryResultOrBuilder- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
The action name from the matched intent.
string action = 3;- Specified by:
getActionBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for action.
-
setAction
public QueryResult.Builder setAction(String value)
The action name from the matched intent.
string action = 3;- Parameters:
value- The action to set.- Returns:
- This builder for chaining.
-
clearAction
public QueryResult.Builder clearAction()
The action name from the matched intent.
string action = 3;- Returns:
- This builder for chaining.
-
setActionBytes
public QueryResult.Builder setActionBytes(com.google.protobuf.ByteString value)
The action name from the matched intent.
string action = 3;- Parameters:
value- The bytes for action to set.- Returns:
- This builder for chaining.
-
hasParameters
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;- Specified by:
hasParametersin interfaceQueryResultOrBuilder- Returns:
- Whether the parameters field is set.
-
getParameters
public 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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;- Specified by:
getParametersin interfaceQueryResultOrBuilder- Returns:
- The parameters.
-
setParameters
public 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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;
-
setParameters
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;
-
mergeParameters
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;
-
clearParameters
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;
-
getParametersBuilder
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;
-
getParametersOrBuilder
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 then use map, otherwise, depending on the parameter value type, it could be one of string, number, boolean, null, list or map. * MapValue value: If parameter's entity type is a composite entity then use map from composite entity property names to property values, otherwise, use parameter value.
.google.protobuf.Struct parameters = 4;- Specified by:
getParametersOrBuilderin interfaceQueryResultOrBuilder
-
getAllRequiredParamsPresent
public 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;- Specified by:
getAllRequiredParamsPresentin interfaceQueryResultOrBuilder- Returns:
- The allRequiredParamsPresent.
-
setAllRequiredParamsPresent
public 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;- Parameters:
value- The allRequiredParamsPresent to set.- Returns:
- This builder for chaining.
-
clearAllRequiredParamsPresent
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;- Returns:
- This builder for chaining.
-
getCancelsSlotFilling
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;- Specified by:
getCancelsSlotFillingin interfaceQueryResultOrBuilder- Returns:
- The cancelsSlotFilling.
-
setCancelsSlotFilling
public 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;- Parameters:
value- The cancelsSlotFilling to set.- Returns:
- This builder for chaining.
-
clearCancelsSlotFilling
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;- Returns:
- This builder for chaining.
-
getFulfillmentText
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;- Specified by:
getFulfillmentTextin interfaceQueryResultOrBuilder- Returns:
- The fulfillmentText.
-
getFulfillmentTextBytes
public 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;- Specified by:
getFulfillmentTextBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for fulfillmentText.
-
setFulfillmentText
public 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;- Parameters:
value- The fulfillmentText to set.- Returns:
- This builder for chaining.
-
clearFulfillmentText
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;- Returns:
- This builder for chaining.
-
setFulfillmentTextBytes
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;- Parameters:
value- The bytes for fulfillmentText to set.- Returns:
- This builder for chaining.
-
getFulfillmentMessagesList
public List<Intent.Message> getFulfillmentMessagesList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;- Specified by:
getFulfillmentMessagesListin interfaceQueryResultOrBuilder
-
getFulfillmentMessagesCount
public int getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;- Specified by:
getFulfillmentMessagesCountin interfaceQueryResultOrBuilder
-
getFulfillmentMessages
public Intent.Message getFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;- Specified by:
getFulfillmentMessagesin interfaceQueryResultOrBuilder
-
setFulfillmentMessages
public QueryResult.Builder setFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
setFulfillmentMessages
public QueryResult.Builder setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addFulfillmentMessages
public QueryResult.Builder addFulfillmentMessages(Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addFulfillmentMessages
public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message value)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addFulfillmentMessages
public QueryResult.Builder addFulfillmentMessages(Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addFulfillmentMessages
public QueryResult.Builder addFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addAllFulfillmentMessages
public QueryResult.Builder addAllFulfillmentMessages(Iterable<? extends Intent.Message> values)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
clearFulfillmentMessages
public QueryResult.Builder clearFulfillmentMessages()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
removeFulfillmentMessages
public QueryResult.Builder removeFulfillmentMessages(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
getFulfillmentMessagesBuilder
public Intent.Message.Builder getFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
getFulfillmentMessagesOrBuilder
public Intent.MessageOrBuilder getFulfillmentMessagesOrBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;- Specified by:
getFulfillmentMessagesOrBuilderin interfaceQueryResultOrBuilder
-
getFulfillmentMessagesOrBuilderList
public List<? extends Intent.MessageOrBuilder> getFulfillmentMessagesOrBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;- Specified by:
getFulfillmentMessagesOrBuilderListin interfaceQueryResultOrBuilder
-
addFulfillmentMessagesBuilder
public Intent.Message.Builder addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
addFulfillmentMessagesBuilder
public Intent.Message.Builder addFulfillmentMessagesBuilder(int index)
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
getFulfillmentMessagesBuilderList
public List<Intent.Message.Builder> getFulfillmentMessagesBuilderList()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2.Intent.Message fulfillment_messages = 7;
-
getWebhookSource
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;- Specified by:
getWebhookSourcein interfaceQueryResultOrBuilder- Returns:
- The webhookSource.
-
getWebhookSourceBytes
public 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;- Specified by:
getWebhookSourceBytesin interfaceQueryResultOrBuilder- Returns:
- The bytes for webhookSource.
-
setWebhookSource
public 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;- Parameters:
value- The webhookSource to set.- Returns:
- This builder for chaining.
-
clearWebhookSource
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;- Returns:
- This builder for chaining.
-
setWebhookSourceBytes
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;- Parameters:
value- The bytes for webhookSource to set.- Returns:
- This builder for chaining.
-
hasWebhookPayload
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;- Specified by:
hasWebhookPayloadin interfaceQueryResultOrBuilder- Returns:
- Whether the webhookPayload field is set.
-
getWebhookPayload
public 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;- Specified by:
getWebhookPayloadin interfaceQueryResultOrBuilder- Returns:
- The webhookPayload.
-
setWebhookPayload
public 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;
-
setWebhookPayload
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;
-
mergeWebhookPayload
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;
-
clearWebhookPayload
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;
-
getWebhookPayloadBuilder
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;
-
getWebhookPayloadOrBuilder
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;- Specified by:
getWebhookPayloadOrBuilderin interfaceQueryResultOrBuilder
-
getOutputContextsList
public 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.v2.Context output_contexts = 10;- Specified by:
getOutputContextsListin interfaceQueryResultOrBuilder
-
getOutputContextsCount
public 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.v2.Context output_contexts = 10;- Specified by:
getOutputContextsCountin interfaceQueryResultOrBuilder
-
getOutputContexts
public 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.v2.Context output_contexts = 10;- Specified by:
getOutputContextsin interfaceQueryResultOrBuilder
-
setOutputContexts
public 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.v2.Context output_contexts = 10;
-
setOutputContexts
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.v2.Context output_contexts = 10;
-
addOutputContexts
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.v2.Context output_contexts = 10;
-
addOutputContexts
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.v2.Context output_contexts = 10;
-
addOutputContexts
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.v2.Context output_contexts = 10;
-
addOutputContexts
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.v2.Context output_contexts = 10;
-
addAllOutputContexts
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.v2.Context output_contexts = 10;
-
clearOutputContexts
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.v2.Context output_contexts = 10;
-
removeOutputContexts
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.v2.Context output_contexts = 10;
-
getOutputContextsBuilder
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.v2.Context output_contexts = 10;
-
getOutputContextsOrBuilder
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.v2.Context output_contexts = 10;- Specified by:
getOutputContextsOrBuilderin interfaceQueryResultOrBuilder
-
getOutputContextsOrBuilderList
public 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.v2.Context output_contexts = 10;- Specified by:
getOutputContextsOrBuilderListin interfaceQueryResultOrBuilder
-
addOutputContextsBuilder
public 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.v2.Context output_contexts = 10;
-
addOutputContextsBuilder
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.v2.Context output_contexts = 10;
-
getOutputContextsBuilderList
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.v2.Context output_contexts = 10;
-
hasIntent
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.v2.Intent intent = 11;- Specified by:
hasIntentin interfaceQueryResultOrBuilder- Returns:
- Whether the intent field is set.
-
getIntent
public 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.v2.Intent intent = 11;- Specified by:
getIntentin interfaceQueryResultOrBuilder- Returns:
- The intent.
-
setIntent
public 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.v2.Intent intent = 11;
-
setIntent
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.v2.Intent intent = 11;
-
mergeIntent
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.v2.Intent intent = 11;
-
clearIntent
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.v2.Intent intent = 11;
-
getIntentBuilder
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.v2.Intent intent = 11;
-
getIntentOrBuilder
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.v2.Intent intent = 11;- Specified by:
getIntentOrBuilderin interfaceQueryResultOrBuilder
-
getIntentDetectionConfidence
public 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;- Specified by:
getIntentDetectionConfidencein interfaceQueryResultOrBuilder- Returns:
- The intentDetectionConfidence.
-
setIntentDetectionConfidence
public 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;- Parameters:
value- The intentDetectionConfidence to set.- Returns:
- This builder for chaining.
-
clearIntentDetectionConfidence
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;- Returns:
- This builder for chaining.
-
hasDiagnosticInfo
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;- Specified by:
hasDiagnosticInfoin interfaceQueryResultOrBuilder- Returns:
- Whether the diagnosticInfo field is set.
-
getDiagnosticInfo
public 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;- Specified by:
getDiagnosticInfoin interfaceQueryResultOrBuilder- Returns:
- The diagnosticInfo.
-
setDiagnosticInfo
public 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;
-
setDiagnosticInfo
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;
-
mergeDiagnosticInfo
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;
-
clearDiagnosticInfo
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;
-
getDiagnosticInfoBuilder
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;
-
getDiagnosticInfoOrBuilder
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;- Specified by:
getDiagnosticInfoOrBuilderin interfaceQueryResultOrBuilder
-
hasSentimentAnalysisResult
public boolean hasSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;- Specified by:
hasSentimentAnalysisResultin interfaceQueryResultOrBuilder- Returns:
- Whether the sentimentAnalysisResult field is set.
-
getSentimentAnalysisResult
public SentimentAnalysisResult getSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;- Specified by:
getSentimentAnalysisResultin interfaceQueryResultOrBuilder- Returns:
- The sentimentAnalysisResult.
-
setSentimentAnalysisResult
public QueryResult.Builder setSentimentAnalysisResult(SentimentAnalysisResult value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
-
setSentimentAnalysisResult
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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
-
mergeSentimentAnalysisResult
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.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
-
clearSentimentAnalysisResult
public QueryResult.Builder clearSentimentAnalysisResult()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
-
getSentimentAnalysisResultBuilder
public SentimentAnalysisResult.Builder getSentimentAnalysisResultBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;
-
getSentimentAnalysisResultOrBuilder
public SentimentAnalysisResultOrBuilder getSentimentAnalysisResultOrBuilder()
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.
.google.cloud.dialogflow.v2.SentimentAnalysisResult sentiment_analysis_result = 17;- Specified by:
getSentimentAnalysisResultOrBuilderin interfaceQueryResultOrBuilder
-
setUnknownFields
public final QueryResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
mergeUnknownFields
public final QueryResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
-