Class 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 type google.cloud.dialogflow.v2beta1.QueryResult
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • clear

        public QueryResult.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • getDefaultInstanceForType

        public QueryResult getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public QueryResult build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public QueryResult buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public QueryResult.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • setField

        public QueryResult.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • clearField

        public QueryResult.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • clearOneof

        public QueryResult.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.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 interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • addRepeatedField

        public QueryResult.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                    Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • mergeFrom

        public QueryResult.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<QueryResult.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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 interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        Returns:
        The action.
      • getActionBytes

        public com.google.protobuf.ByteString getActionBytes()
         The action name from the matched intent.
         
        string action = 3;
        Specified by:
        getActionBytes in interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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.
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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;
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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;
      • 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 interface QueryResultOrBuilder
        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 interface QueryResultOrBuilder
        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;
      • setUnknownFields

        public final QueryResult.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>
      • mergeUnknownFields

        public final QueryResult.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<QueryResult.Builder>