Class ConversationalSearchRequest.SearchParams.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder>
com.google.cloud.retail.v2alpha.ConversationalSearchRequest.SearchParams.Builder
All Implemented Interfaces:
ConversationalSearchRequest.SearchParamsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConversationalSearchRequest.SearchParams

public static final class ConversationalSearchRequest.SearchParams.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchRequest.SearchParams.Builder> implements ConversationalSearchRequest.SearchParamsOrBuilder
 Search parameters.
 
Protobuf type google.cloud.retail.v2alpha.ConversationalSearchRequest.SearchParams
  • 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<ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

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

      public ConversationalSearchRequest.SearchParams.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<ConversationalSearchRequest.SearchParams.Builder>
      Throws:
      IOException
    • getFilter

      public String getFilter()
       Optional. The filter string to restrict search results.
      
       The syntax of the filter string is the same as
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilter in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The filter.
    • getFilterBytes

      public com.google.protobuf.ByteString getFilterBytes()
       Optional. The filter string to restrict search results.
      
       The syntax of the filter string is the same as
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getFilterBytes in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The bytes for filter.
    • setFilter

       Optional. The filter string to restrict search results.
      
       The syntax of the filter string is the same as
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The filter to set.
      Returns:
      This builder for chaining.
    • clearFilter

       Optional. The filter string to restrict search results.
      
       The syntax of the filter string is the same as
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setFilterBytes

      public ConversationalSearchRequest.SearchParams.Builder setFilterBytes(com.google.protobuf.ByteString value)
       Optional. The filter string to restrict search results.
      
       The syntax of the filter string is the same as
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      string filter = 1 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for filter to set.
      Returns:
      This builder for chaining.
    • getCanonicalFilter

      public String getCanonicalFilter()
       Optional. The canonical filter string to restrict search results.
      
       The syntax of the canonical filter string is the same as
       [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
       
      string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanonicalFilter in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The canonicalFilter.
    • getCanonicalFilterBytes

      public com.google.protobuf.ByteString getCanonicalFilterBytes()
       Optional. The canonical filter string to restrict search results.
      
       The syntax of the canonical filter string is the same as
       [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
       
      string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getCanonicalFilterBytes in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The bytes for canonicalFilter.
    • setCanonicalFilter

      public ConversationalSearchRequest.SearchParams.Builder setCanonicalFilter(String value)
       Optional. The canonical filter string to restrict search results.
      
       The syntax of the canonical filter string is the same as
       [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
       
      string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The canonicalFilter to set.
      Returns:
      This builder for chaining.
    • clearCanonicalFilter

      public ConversationalSearchRequest.SearchParams.Builder clearCanonicalFilter()
       Optional. The canonical filter string to restrict search results.
      
       The syntax of the canonical filter string is the same as
       [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
       
      string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setCanonicalFilterBytes

      public ConversationalSearchRequest.SearchParams.Builder setCanonicalFilterBytes(com.google.protobuf.ByteString value)
       Optional. The canonical filter string to restrict search results.
      
       The syntax of the canonical filter string is the same as
       [SearchRequest.canonical_filter][google.cloud.retail.v2alpha.SearchRequest.canonical_filter].
       
      string canonical_filter = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for canonicalFilter to set.
      Returns:
      This builder for chaining.
    • getSortBy

      public String getSortBy()
       Optional. The sort string to specify the sorting of search results.
      
       The syntax of the sort string is the same as
       [SearchRequest.sort][].
       
      string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSortBy in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The sortBy.
    • getSortByBytes

      public com.google.protobuf.ByteString getSortByBytes()
       Optional. The sort string to specify the sorting of search results.
      
       The syntax of the sort string is the same as
       [SearchRequest.sort][].
       
      string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getSortByBytes in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The bytes for sortBy.
    • setSortBy

       Optional. The sort string to specify the sorting of search results.
      
       The syntax of the sort string is the same as
       [SearchRequest.sort][].
       
      string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The sortBy to set.
      Returns:
      This builder for chaining.
    • clearSortBy

       Optional. The sort string to specify the sorting of search results.
      
       The syntax of the sort string is the same as
       [SearchRequest.sort][].
       
      string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setSortByBytes

      public ConversationalSearchRequest.SearchParams.Builder setSortByBytes(com.google.protobuf.ByteString value)
       Optional. The sort string to specify the sorting of search results.
      
       The syntax of the sort string is the same as
       [SearchRequest.sort][].
       
      string sort_by = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for sortBy to set.
      Returns:
      This builder for chaining.
    • hasBoostSpec

      public boolean hasBoostSpec()
       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasBoostSpec in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      Whether the boostSpec field is set.
    • getBoostSpec

      public SearchRequest.BoostSpec getBoostSpec()
       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpec in interface ConversationalSearchRequest.SearchParamsOrBuilder
      Returns:
      The boostSpec.
    • setBoostSpec

       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • setBoostSpec

       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • mergeBoostSpec

       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • clearBoostSpec

       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getBoostSpecBuilder

      public SearchRequest.BoostSpec.Builder getBoostSpecBuilder()
       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
    • getBoostSpecOrBuilder

      public SearchRequest.BoostSpecOrBuilder getBoostSpecOrBuilder()
       Optional. The boost spec to specify the boosting of search results.
      
       The syntax of the boost spec is the same as
       [SearchRequest.boost_spec][google.cloud.retail.v2alpha.SearchRequest.boost_spec].
       
      .google.cloud.retail.v2alpha.SearchRequest.BoostSpec boost_spec = 4 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getBoostSpecOrBuilder in interface ConversationalSearchRequest.SearchParamsOrBuilder