Class SearchRequest.TileNavigationSpec.Builder

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

public static final class SearchRequest.TileNavigationSpec.Builder extends com.google.protobuf.GeneratedMessage.Builder<SearchRequest.TileNavigationSpec.Builder> implements SearchRequest.TileNavigationSpecOrBuilder
 This field specifies tile navigation related parameters.
 
Protobuf type google.cloud.retail.v2alpha.SearchRequest.TileNavigationSpec
  • 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<SearchRequest.TileNavigationSpec.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<SearchRequest.TileNavigationSpec.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<SearchRequest.TileNavigationSpec.Builder>
    • getDefaultInstanceForType

      public SearchRequest.TileNavigationSpec 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

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

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

      public SearchRequest.TileNavigationSpec.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<SearchRequest.TileNavigationSpec.Builder>
      Throws:
      IOException
    • getTileNavigationRequested

      public boolean getTileNavigationRequested()
       This field specifies whether the customer would like to request tile
       navigation.
       
      bool tile_navigation_requested = 1;
      Specified by:
      getTileNavigationRequested in interface SearchRequest.TileNavigationSpecOrBuilder
      Returns:
      The tileNavigationRequested.
    • setTileNavigationRequested

      public SearchRequest.TileNavigationSpec.Builder setTileNavigationRequested(boolean value)
       This field specifies whether the customer would like to request tile
       navigation.
       
      bool tile_navigation_requested = 1;
      Parameters:
      value - The tileNavigationRequested to set.
      Returns:
      This builder for chaining.
    • clearTileNavigationRequested

      public SearchRequest.TileNavigationSpec.Builder clearTileNavigationRequested()
       This field specifies whether the customer would like to request tile
       navigation.
       
      bool tile_navigation_requested = 1;
      Returns:
      This builder for chaining.
    • getAppliedTilesList

      public List<Tile> getAppliedTilesList()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
      Specified by:
      getAppliedTilesList in interface SearchRequest.TileNavigationSpecOrBuilder
    • getAppliedTilesCount

      public int getAppliedTilesCount()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
      Specified by:
      getAppliedTilesCount in interface SearchRequest.TileNavigationSpecOrBuilder
    • getAppliedTiles

      public Tile getAppliedTiles(int index)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
      Specified by:
      getAppliedTiles in interface SearchRequest.TileNavigationSpecOrBuilder
    • setAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder setAppliedTiles(int index, Tile value)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • setAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder setAppliedTiles(int index, Tile.Builder builderForValue)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder addAppliedTiles(Tile value)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder addAppliedTiles(int index, Tile value)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder addAppliedTiles(Tile.Builder builderForValue)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder addAppliedTiles(int index, Tile.Builder builderForValue)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAllAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder addAllAppliedTiles(Iterable<? extends Tile> values)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • clearAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder clearAppliedTiles()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • removeAppliedTiles

      public SearchRequest.TileNavigationSpec.Builder removeAppliedTiles(int index)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • getAppliedTilesBuilder

      public Tile.Builder getAppliedTilesBuilder(int index)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • getAppliedTilesOrBuilder

      public TileOrBuilder getAppliedTilesOrBuilder(int index)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
      Specified by:
      getAppliedTilesOrBuilder in interface SearchRequest.TileNavigationSpecOrBuilder
    • getAppliedTilesOrBuilderList

      public List<? extends TileOrBuilder> getAppliedTilesOrBuilderList()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
      Specified by:
      getAppliedTilesOrBuilderList in interface SearchRequest.TileNavigationSpecOrBuilder
    • addAppliedTilesBuilder

      public Tile.Builder addAppliedTilesBuilder()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • addAppliedTilesBuilder

      public Tile.Builder addAppliedTilesBuilder(int index)
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;
    • getAppliedTilesBuilderList

      public List<Tile.Builder> getAppliedTilesBuilderList()
       This optional field specifies the tiles which are already clicked in
       client side. While the feature works without this field set, particularly
       for an initial query, it is highly recommended to set this field because
       it can improve the quality of the search response and removes possible
       duplicate tiles.
      
       NOTE: This field is not being used for filtering search
       products. Client side should also put all the applied tiles in
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter].
       
      repeated .google.cloud.retail.v2alpha.Tile applied_tiles = 2;