Class SearchConfig.Builder

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

public static final class SearchConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchConfig.Builder> implements SearchConfigOrBuilder
 Search configuration for UCS search queries.
 
Protobuf type google.cloud.dialogflow.cx.v3beta1.SearchConfig
  • 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<SearchConfig.Builder>
    • clear

      public SearchConfig.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<SearchConfig.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<SearchConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public SearchConfig.Builder mergeFrom(SearchConfig other)
    • isInitialized

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

      public SearchConfig.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<SearchConfig.Builder>
      Throws:
      IOException
    • getBoostSpecsList

      public List<BoostSpecs> getBoostSpecsList()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecsList in interface SearchConfigOrBuilder
    • getBoostSpecsCount

      public int getBoostSpecsCount()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecsCount in interface SearchConfigOrBuilder
    • getBoostSpecs

      public BoostSpecs getBoostSpecs(int index)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecs in interface SearchConfigOrBuilder
    • setBoostSpecs

      public SearchConfig.Builder setBoostSpecs(int index, BoostSpecs value)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setBoostSpecs

      public SearchConfig.Builder setBoostSpecs(int index, BoostSpecs.Builder builderForValue)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addBoostSpecs

      public SearchConfig.Builder addBoostSpecs(BoostSpecs value)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addBoostSpecs

      public SearchConfig.Builder addBoostSpecs(int index, BoostSpecs value)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addBoostSpecs

      public SearchConfig.Builder addBoostSpecs(BoostSpecs.Builder builderForValue)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addBoostSpecs

      public SearchConfig.Builder addBoostSpecs(int index, BoostSpecs.Builder builderForValue)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllBoostSpecs

      public SearchConfig.Builder addAllBoostSpecs(Iterable<? extends BoostSpecs> values)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearBoostSpecs

      public SearchConfig.Builder clearBoostSpecs()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeBoostSpecs

      public SearchConfig.Builder removeBoostSpecs(int index)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getBoostSpecsBuilder

      public BoostSpecs.Builder getBoostSpecsBuilder(int index)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getBoostSpecsOrBuilder

      public BoostSpecsOrBuilder getBoostSpecsOrBuilder(int index)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecsOrBuilder in interface SearchConfigOrBuilder
    • getBoostSpecsOrBuilderList

      public List<? extends BoostSpecsOrBuilder> getBoostSpecsOrBuilderList()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecsOrBuilderList in interface SearchConfigOrBuilder
    • addBoostSpecsBuilder

      public BoostSpecs.Builder addBoostSpecsBuilder()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addBoostSpecsBuilder

      public BoostSpecs.Builder addBoostSpecsBuilder(int index)
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getBoostSpecsBuilderList

      public List<BoostSpecs.Builder> getBoostSpecsBuilderList()
       Optional. Boosting configuration for the datastores.
      
       Maps from datastore name to their boost configuration. Do not specify more
       than one BoostSpecs for each datastore name. If multiple BoostSpecs are
       provided for the same datastore name, the behavior is undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpecs boost_specs = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getFilterSpecsList

      public List<FilterSpecs> getFilterSpecsList()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterSpecsList in interface SearchConfigOrBuilder
    • getFilterSpecsCount

      public int getFilterSpecsCount()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterSpecsCount in interface SearchConfigOrBuilder
    • getFilterSpecs

      public FilterSpecs getFilterSpecs(int index)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterSpecs in interface SearchConfigOrBuilder
    • setFilterSpecs

      public SearchConfig.Builder setFilterSpecs(int index, FilterSpecs value)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • setFilterSpecs

      public SearchConfig.Builder setFilterSpecs(int index, FilterSpecs.Builder builderForValue)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFilterSpecs

      public SearchConfig.Builder addFilterSpecs(FilterSpecs value)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFilterSpecs

      public SearchConfig.Builder addFilterSpecs(int index, FilterSpecs value)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFilterSpecs

      public SearchConfig.Builder addFilterSpecs(FilterSpecs.Builder builderForValue)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFilterSpecs

      public SearchConfig.Builder addFilterSpecs(int index, FilterSpecs.Builder builderForValue)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addAllFilterSpecs

      public SearchConfig.Builder addAllFilterSpecs(Iterable<? extends FilterSpecs> values)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • clearFilterSpecs

      public SearchConfig.Builder clearFilterSpecs()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • removeFilterSpecs

      public SearchConfig.Builder removeFilterSpecs(int index)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFilterSpecsBuilder

      public FilterSpecs.Builder getFilterSpecsBuilder(int index)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFilterSpecsOrBuilder

      public FilterSpecsOrBuilder getFilterSpecsOrBuilder(int index)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterSpecsOrBuilder in interface SearchConfigOrBuilder
    • getFilterSpecsOrBuilderList

      public List<? extends FilterSpecsOrBuilder> getFilterSpecsOrBuilderList()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterSpecsOrBuilderList in interface SearchConfigOrBuilder
    • addFilterSpecsBuilder

      public FilterSpecs.Builder addFilterSpecsBuilder()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • addFilterSpecsBuilder

      public FilterSpecs.Builder addFilterSpecsBuilder(int index)
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];
    • getFilterSpecsBuilderList

      public List<FilterSpecs.Builder> getFilterSpecsBuilderList()
       Optional. Filter configuration for the datastores.
      
       Maps from datastore name to the filter expression for that datastore. Do
       not specify more than one FilterSpecs for each datastore name. If multiple
       FilterSpecs are provided for the same datastore name, the behavior is
       undefined.
       
      repeated .google.cloud.dialogflow.cx.v3beta1.FilterSpecs filter_specs = 2 [(.google.api.field_behavior) = OPTIONAL];