Class SearchKnowledgeRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.Builder>
com.google.cloud.dialogflow.v2.SearchKnowledgeRequest.Builder
All Implemented Interfaces:
SearchKnowledgeRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
SearchKnowledgeRequest

public static final class SearchKnowledgeRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.Builder> implements SearchKnowledgeRequestOrBuilder
 The request message for
 [Conversations.SearchKnowledge][google.cloud.dialogflow.v2.Conversations.SearchKnowledge].
 
Protobuf type google.cloud.dialogflow.v2.SearchKnowledgeRequest
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.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.GeneratedMessage.Builder<SearchKnowledgeRequest.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.GeneratedMessage.Builder<SearchKnowledgeRequest.Builder>
    • getDefaultInstanceForType

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

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

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

      public SearchKnowledgeRequest.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<SearchKnowledgeRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<SearchKnowledgeRequest.Builder>
    • mergeFrom

      public SearchKnowledgeRequest.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<SearchKnowledgeRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. The parent resource contains the conversation profile
       Format: 'projects/<Project ID>' or `projects/<Project
       ID>/locations/<Location ID>`.
       
      string parent = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParent in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The parent resource contains the conversation profile
       Format: 'projects/<Project ID>' or `projects/<Project
       ID>/locations/<Location ID>`.
       
      string parent = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getParentBytes in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public SearchKnowledgeRequest.Builder setParent(String value)
       Required. The parent resource contains the conversation profile
       Format: 'projects/<Project ID>' or `projects/<Project
       ID>/locations/<Location ID>`.
       
      string parent = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public SearchKnowledgeRequest.Builder clearParent()
       Required. The parent resource contains the conversation profile
       Format: 'projects/<Project ID>' or `projects/<Project
       ID>/locations/<Location ID>`.
       
      string parent = 6 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setParentBytes

      public SearchKnowledgeRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The parent resource contains the conversation profile
       Format: 'projects/<Project ID>' or `projects/<Project
       ID>/locations/<Location ID>`.
       
      string parent = 6 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • hasQuery

      public boolean hasQuery()
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasQuery in interface SearchKnowledgeRequestOrBuilder
      Returns:
      Whether the query field is set.
    • getQuery

      public TextInput getQuery()
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQuery in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The query.
    • setQuery

      public SearchKnowledgeRequest.Builder setQuery(TextInput value)
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
    • setQuery

      public SearchKnowledgeRequest.Builder setQuery(TextInput.Builder builderForValue)
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeQuery

      public SearchKnowledgeRequest.Builder mergeQuery(TextInput value)
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearQuery

      public SearchKnowledgeRequest.Builder clearQuery()
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getQueryBuilder

      public TextInput.Builder getQueryBuilder()
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
    • getQueryOrBuilder

      public TextInputOrBuilder getQueryOrBuilder()
       Required. The natural language text query for knowledge search.
       
      .google.cloud.dialogflow.v2.TextInput query = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getQueryOrBuilder in interface SearchKnowledgeRequestOrBuilder
    • getConversationProfile

      public String getConversationProfile()
       Required. The conversation profile used to configure the search.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationProfile in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The conversationProfile.
    • getConversationProfileBytes

      public com.google.protobuf.ByteString getConversationProfileBytes()
       Required. The conversation profile used to configure the search.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationProfileBytes in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The bytes for conversationProfile.
    • setConversationProfile

      public SearchKnowledgeRequest.Builder setConversationProfile(String value)
       Required. The conversation profile used to configure the search.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversationProfile to set.
      Returns:
      This builder for chaining.
    • clearConversationProfile

      public SearchKnowledgeRequest.Builder clearConversationProfile()
       Required. The conversation profile used to configure the search.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversationProfileBytes

      public SearchKnowledgeRequest.Builder setConversationProfileBytes(com.google.protobuf.ByteString value)
       Required. The conversation profile used to configure the search.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversationProfiles/<Conversation Profile ID>`.
       
      string conversation_profile = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversationProfile to set.
      Returns:
      This builder for chaining.
    • getSessionId

      public String getSessionId()
       Required. The ID of the search session.
       The session_id can be combined with Dialogflow V3 Agent ID retrieved from
       conversation profile or on its own to identify a search session. The search
       history of the same session will impact the search result. It's up to the
       API caller to choose an appropriate `Session ID`. It can be a random number
       or some type of session identifiers (preferably hashed). The length must
       not exceed 36 characters.
       
      string session_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSessionId in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The sessionId.
    • getSessionIdBytes

      public com.google.protobuf.ByteString getSessionIdBytes()
       Required. The ID of the search session.
       The session_id can be combined with Dialogflow V3 Agent ID retrieved from
       conversation profile or on its own to identify a search session. The search
       history of the same session will impact the search result. It's up to the
       API caller to choose an appropriate `Session ID`. It can be a random number
       or some type of session identifiers (preferably hashed). The length must
       not exceed 36 characters.
       
      string session_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getSessionIdBytes in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The bytes for sessionId.
    • setSessionId

      public SearchKnowledgeRequest.Builder setSessionId(String value)
       Required. The ID of the search session.
       The session_id can be combined with Dialogflow V3 Agent ID retrieved from
       conversation profile or on its own to identify a search session. The search
       history of the same session will impact the search result. It's up to the
       API caller to choose an appropriate `Session ID`. It can be a random number
       or some type of session identifiers (preferably hashed). The length must
       not exceed 36 characters.
       
      string session_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The sessionId to set.
      Returns:
      This builder for chaining.
    • clearSessionId

      public SearchKnowledgeRequest.Builder clearSessionId()
       Required. The ID of the search session.
       The session_id can be combined with Dialogflow V3 Agent ID retrieved from
       conversation profile or on its own to identify a search session. The search
       history of the same session will impact the search result. It's up to the
       API caller to choose an appropriate `Session ID`. It can be a random number
       or some type of session identifiers (preferably hashed). The length must
       not exceed 36 characters.
       
      string session_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • setSessionIdBytes

      public SearchKnowledgeRequest.Builder setSessionIdBytes(com.google.protobuf.ByteString value)
       Required. The ID of the search session.
       The session_id can be combined with Dialogflow V3 Agent ID retrieved from
       conversation profile or on its own to identify a search session. The search
       history of the same session will impact the search result. It's up to the
       API caller to choose an appropriate `Session ID`. It can be a random number
       or some type of session identifiers (preferably hashed). The length must
       not exceed 36 characters.
       
      string session_id = 3 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The bytes for sessionId to set.
      Returns:
      This builder for chaining.
    • getConversation

      public String getConversation()
       Optional. The conversation (between human agent and end user) where the
       search request is triggered. Format: `projects/<Project
       ID>/locations/<Location ID>/conversations/<Conversation ID>`.
       
      string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversation in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The conversation.
    • getConversationBytes

      public com.google.protobuf.ByteString getConversationBytes()
       Optional. The conversation (between human agent and end user) where the
       search request is triggered. Format: `projects/<Project
       ID>/locations/<Location ID>/conversations/<Conversation ID>`.
       
      string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getConversationBytes in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The bytes for conversation.
    • setConversation

      public SearchKnowledgeRequest.Builder setConversation(String value)
       Optional. The conversation (between human agent and end user) where the
       search request is triggered. Format: `projects/<Project
       ID>/locations/<Location ID>/conversations/<Conversation ID>`.
       
      string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The conversation to set.
      Returns:
      This builder for chaining.
    • clearConversation

      public SearchKnowledgeRequest.Builder clearConversation()
       Optional. The conversation (between human agent and end user) where the
       search request is triggered. Format: `projects/<Project
       ID>/locations/<Location ID>/conversations/<Conversation ID>`.
       
      string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setConversationBytes

      public SearchKnowledgeRequest.Builder setConversationBytes(com.google.protobuf.ByteString value)
       Optional. The conversation (between human agent and end user) where the
       search request is triggered. Format: `projects/<Project
       ID>/locations/<Location ID>/conversations/<Conversation ID>`.
       
      string conversation = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for conversation to set.
      Returns:
      This builder for chaining.
    • getLatestMessage

      public String getLatestMessage()
       Optional. The name of the latest conversation message when the request is
       triggered.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessage in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The latestMessage.
    • getLatestMessageBytes

      public com.google.protobuf.ByteString getLatestMessageBytes()
       Optional. The name of the latest conversation message when the request is
       triggered.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getLatestMessageBytes in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The bytes for latestMessage.
    • setLatestMessage

      public SearchKnowledgeRequest.Builder setLatestMessage(String value)
       Optional. The name of the latest conversation message when the request is
       triggered.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The latestMessage to set.
      Returns:
      This builder for chaining.
    • clearLatestMessage

      public SearchKnowledgeRequest.Builder clearLatestMessage()
       Optional. The name of the latest conversation message when the request is
       triggered.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setLatestMessageBytes

      public SearchKnowledgeRequest.Builder setLatestMessageBytes(com.google.protobuf.ByteString value)
       Optional. The name of the latest conversation message when the request is
       triggered.
       Format: `projects/<Project ID>/locations/<Location
       ID>/conversations/<Conversation ID>/messages/<Message ID>`.
       
      string latest_message = 5 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for latestMessage to set.
      Returns:
      This builder for chaining.
    • getQuerySourceValue

      public int getQuerySourceValue()
       Optional. The source of the query in the request.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuerySourceValue in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The enum numeric value on the wire for querySource.
    • setQuerySourceValue

      public SearchKnowledgeRequest.Builder setQuerySourceValue(int value)
       Optional. The source of the query in the request.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enum numeric value on the wire for querySource to set.
      Returns:
      This builder for chaining.
    • getQuerySource

      public SearchKnowledgeRequest.QuerySource getQuerySource()
       Optional. The source of the query in the request.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getQuerySource in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The querySource.
    • setQuerySource

       Optional. The source of the query in the request.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The querySource to set.
      Returns:
      This builder for chaining.
    • clearQuerySource

      public SearchKnowledgeRequest.Builder clearQuerySource()
       Optional. The source of the query in the request.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.QuerySource query_source = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • hasEndUserMetadata

      public boolean hasEndUserMetadata()
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasEndUserMetadata in interface SearchKnowledgeRequestOrBuilder
      Returns:
      Whether the endUserMetadata field is set.
    • getEndUserMetadata

      public com.google.protobuf.Struct getEndUserMetadata()
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndUserMetadata in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The endUserMetadata.
    • setEndUserMetadata

      public SearchKnowledgeRequest.Builder setEndUserMetadata(com.google.protobuf.Struct value)
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
    • setEndUserMetadata

      public SearchKnowledgeRequest.Builder setEndUserMetadata(com.google.protobuf.Struct.Builder builderForValue)
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
    • mergeEndUserMetadata

      public SearchKnowledgeRequest.Builder mergeEndUserMetadata(com.google.protobuf.Struct value)
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
    • clearEndUserMetadata

      public SearchKnowledgeRequest.Builder clearEndUserMetadata()
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getEndUserMetadataBuilder

      public com.google.protobuf.Struct.Builder getEndUserMetadataBuilder()
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
    • getEndUserMetadataOrBuilder

      public com.google.protobuf.StructOrBuilder getEndUserMetadataOrBuilder()
       Optional. Information about the end-user to improve the relevance and
       accuracy of generative answers.
      
       This will be interpreted and used by a language model, so, for good
       results, the data should be self-descriptive, and in a simple structure.
      
       Example:
      
       ```json
       {
       "subscription plan": "Business Premium Plus",
       "devices owned": [
       {"model": "Google Pixel 7"},
       {"model": "Google Pixel Tablet"}
       ]
       }
       ```
       
      .google.protobuf.Struct end_user_metadata = 9 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEndUserMetadataOrBuilder in interface SearchKnowledgeRequestOrBuilder
    • hasSearchConfig

      public boolean hasSearchConfig()
       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasSearchConfig in interface SearchKnowledgeRequestOrBuilder
      Returns:
      Whether the searchConfig field is set.
    • getSearchConfig

      public SearchKnowledgeRequest.SearchConfig getSearchConfig()
       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchConfig in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The searchConfig.
    • setSearchConfig

       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • setSearchConfig

       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • mergeSearchConfig

       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • clearSearchConfig

      public SearchKnowledgeRequest.Builder clearSearchConfig()
       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getSearchConfigBuilder

      public SearchKnowledgeRequest.SearchConfig.Builder getSearchConfigBuilder()
       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
    • getSearchConfigOrBuilder

      public SearchKnowledgeRequest.SearchConfigOrBuilder getSearchConfigOrBuilder()
       Optional. Configuration specific to search queries with data stores.
       
      .google.cloud.dialogflow.v2.SearchKnowledgeRequest.SearchConfig search_config = 11 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSearchConfigOrBuilder in interface SearchKnowledgeRequestOrBuilder
    • getExactSearch

      public boolean getExactSearch()
       Optional. Whether to search the query exactly without query rewrite.
       
      bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExactSearch in interface SearchKnowledgeRequestOrBuilder
      Returns:
      The exactSearch.
    • setExactSearch

      public SearchKnowledgeRequest.Builder setExactSearch(boolean value)
       Optional. Whether to search the query exactly without query rewrite.
       
      bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The exactSearch to set.
      Returns:
      This builder for chaining.
    • clearExactSearch

      public SearchKnowledgeRequest.Builder clearExactSearch()
       Optional. Whether to search the query exactly without query rewrite.
       
      bool exact_search = 14 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.