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.v2beta1.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.v2beta1.QueryResult
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(int index, 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(Intent.Message value)
The collection of rich messages to present to the user.QueryResult.Builder
addFulfillmentMessages(Intent.Message.Builder builderForValue)
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(int index, Context value)
The collection of output contexts.QueryResult.Builder
addOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts.QueryResult.Builder
addOutputContexts(Context value)
The collection of output contexts.QueryResult.Builder
addOutputContexts(Context.Builder builderForValue)
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(QueryResult other)
QueryResult.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
QueryResult.Builder
mergeFrom(com.google.protobuf.Message 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 value)
Free-form diagnostic information for the associated detect intent request.QueryResult.Builder
setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForValue)
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 value)
The collection of rich messages to present to the user.QueryResult.Builder
setFulfillmentMessages(int index, Intent.Message.Builder builderForValue)
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 value)
The intent that matched the conversational query.QueryResult.Builder
setIntent(Intent.Builder builderForValue)
The intent that matched the conversational query.QueryResult.Builder
setIntentDetectionConfidence(float value)
The intent detection confidence.QueryResult.Builder
setKnowledgeAnswers(KnowledgeAnswers value)
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.QueryResult.Builder
setKnowledgeAnswers(KnowledgeAnswers.Builder builderForValue)
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 value)
The collection of output contexts.QueryResult.Builder
setOutputContexts(int index, Context.Builder builderForValue)
The collection of output contexts.QueryResult.Builder
setParameters(com.google.protobuf.Struct value)
The collection of extracted parameters.QueryResult.Builder
setParameters(com.google.protobuf.Struct.Builder builderForValue)
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 value)
The sentiment analysis result, which depends on the `sentiment_analysis_request_config` specified in the request.QueryResult.Builder
setSentimentAnalysisResult(SentimentAnalysisResult.Builder builderForValue)
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 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
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
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clear
public QueryResult.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
getDefaultInstanceForType
public QueryResult getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public QueryResult build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public QueryResult buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public QueryResult.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
setField
public QueryResult.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clearField
public QueryResult.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
clearOneof
public QueryResult.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
setRepeatedField
public QueryResult.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
addRepeatedField
public QueryResult.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
-
mergeFrom
public QueryResult.Builder mergeFrom(QueryResult other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getQueryText
in 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:
getQueryTextBytes
in 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:
getLanguageCode
in 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:
getLanguageCodeBytes
in 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:
getSpeechRecognitionConfidence
in 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:
getAction
in interfaceQueryResultOrBuilder
- Returns:
- The action.
-
getActionBytes
public com.google.protobuf.ByteString getActionBytes()
The action name from the matched intent.
string action = 3;
- Specified by:
getActionBytes
in 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:
hasParameters
in 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:
getParameters
in 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:
getParametersOrBuilder
in 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:
getAllRequiredParamsPresent
in 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:
getCancelsSlotFilling
in 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:
getFulfillmentText
in 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:
getFulfillmentTextBytes
in 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.v2beta1.Intent.Message fulfillment_messages = 7;
- Specified by:
getFulfillmentMessagesList
in interfaceQueryResultOrBuilder
-
getFulfillmentMessagesCount
public int getFulfillmentMessagesCount()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.Intent.Message fulfillment_messages = 7;
- Specified by:
getFulfillmentMessagesCount
in interfaceQueryResultOrBuilder
-
getFulfillmentMessages
public 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;
- Specified by:
getFulfillmentMessages
in 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.Intent.Message fulfillment_messages = 7;
-
clearFulfillmentMessages
public QueryResult.Builder clearFulfillmentMessages()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.Intent.Message fulfillment_messages = 7;
- Specified by:
getFulfillmentMessagesOrBuilder
in interfaceQueryResultOrBuilder
-
getFulfillmentMessagesOrBuilderList
public 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;
- Specified by:
getFulfillmentMessagesOrBuilderList
in interfaceQueryResultOrBuilder
-
addFulfillmentMessagesBuilder
public Intent.Message.Builder addFulfillmentMessagesBuilder()
The collection of rich messages to present to the user.
repeated .google.cloud.dialogflow.v2beta1.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.v2beta1.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.v2beta1.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:
getWebhookSource
in 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:
getWebhookSourceBytes
in 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:
hasWebhookPayload
in 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:
getWebhookPayload
in 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:
getWebhookPayloadOrBuilder
in 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.v2beta1.Context output_contexts = 10;
- Specified by:
getOutputContextsList
in 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.v2beta1.Context output_contexts = 10;
- Specified by:
getOutputContextsCount
in 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.v2beta1.Context output_contexts = 10;
- Specified by:
getOutputContexts
in 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.Context output_contexts = 10;
- Specified by:
getOutputContextsOrBuilder
in 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.v2beta1.Context output_contexts = 10;
- Specified by:
getOutputContextsOrBuilderList
in 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.Intent intent = 11;
- Specified by:
hasIntent
in 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.v2beta1.Intent intent = 11;
- Specified by:
getIntent
in 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.Intent intent = 11;
- Specified by:
getIntentOrBuilder
in 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:
getIntentDetectionConfidence
in 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:
hasDiagnosticInfo
in 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:
getDiagnosticInfo
in 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:
getDiagnosticInfoOrBuilder
in interfaceQueryResultOrBuilder
-
hasSentimentAnalysisResult
public 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;
- Specified by:
hasSentimentAnalysisResult
in 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.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
- Specified by:
getSentimentAnalysisResult
in 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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.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.v2beta1.SentimentAnalysisResult sentiment_analysis_result = 17;
- Specified by:
getSentimentAnalysisResultOrBuilder
in interfaceQueryResultOrBuilder
-
hasKnowledgeAnswers
public boolean hasKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
- Specified by:
hasKnowledgeAnswers
in interfaceQueryResultOrBuilder
- Returns:
- Whether the knowledgeAnswers field is set.
-
getKnowledgeAnswers
public KnowledgeAnswers getKnowledgeAnswers()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
- Specified by:
getKnowledgeAnswers
in interfaceQueryResultOrBuilder
- Returns:
- The knowledgeAnswers.
-
setKnowledgeAnswers
public 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;
-
setKnowledgeAnswers
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;
-
mergeKnowledgeAnswers
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;
-
clearKnowledgeAnswers
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;
-
getKnowledgeAnswersBuilder
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;
-
getKnowledgeAnswersOrBuilder
public KnowledgeAnswersOrBuilder getKnowledgeAnswersOrBuilder()
The result from Knowledge Connector (if any), ordered by decreasing `KnowledgeAnswers.match_confidence`.
.google.cloud.dialogflow.v2beta1.KnowledgeAnswers knowledge_answers = 18;
- Specified by:
getKnowledgeAnswersOrBuilder
in interfaceQueryResultOrBuilder
-
setUnknownFields
public final QueryResult.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
mergeUnknownFields
public final QueryResult.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
-
-