public static final class Rule.PinAction extends GeneratedMessageV3 implements Rule.PinActionOrBuilder
   
   Pins one or more specified products to a specific position in the
 results.
- Rule Condition:
Must specify non-empty
Condition.query_terms
(for search only) or
Condition.page_categories
(for browse only), but can't specify both. 
- Action Input: mapping of - [pin_position, product_id]pairs (pin position
uses 1-based indexing).
 
- Action Result: Will pin products with matching ids to the position
specified in the final result order. - Example: Suppose the query is - shoes, the
Condition.query_terms is- shoesand the pin_map has- {1, "pid1"}, then product with- pid1will be
pinned to the top position in the final results.
 - If multiple PinActions are matched to a single request the actions will
be processed from most to least recently updated. - Pins to positions larger than the max allowed page size of 120 are not
allowed. 
 Protobuf type google.cloud.retail.v2.Rule.PinAction
    Inherited Members
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
    
    
      com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
   
  Static Fields
  
  PIN_MAP_FIELD_NUMBER
  
    public static final int PIN_MAP_FIELD_NUMBER
   
  
    
      
        | Field Value | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Static Methods
  
  
  getDefaultInstance()
  
    public static Rule.PinAction getDefaultInstance()
   
  
  
  getDescriptor()
  
    public static final Descriptors.Descriptor getDescriptor()
   
  
  
  newBuilder()
  
    public static Rule.PinAction.Builder newBuilder()
   
  
  
  newBuilder(Rule.PinAction prototype)
  
    public static Rule.PinAction.Builder newBuilder(Rule.PinAction prototype)
   
  
  
  
  
  
    public static Rule.PinAction parseDelimitedFrom(InputStream input)
   
  
  
  
  
  
  
    public static Rule.PinAction parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(byte[] data)
  
    public static Rule.PinAction parseFrom(byte[] data)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | data | byte[]
 | 
    
  
  
  
  
  parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
  
    public static Rule.PinAction parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteString data)
  
    public static Rule.PinAction parseFrom(ByteString data)
   
  
  
  
  
  parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
  
    public static Rule.PinAction parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static Rule.PinAction parseFrom(CodedInputStream input)
   
  
  
  
  
  
  
    public static Rule.PinAction parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  
  
    public static Rule.PinAction parseFrom(InputStream input)
   
  
  
  
  
  
  
    public static Rule.PinAction parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parseFrom(ByteBuffer data)
  
    public static Rule.PinAction parseFrom(ByteBuffer data)
   
  
  
  
  
  parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
  
    public static Rule.PinAction parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
   
  
  
  
  
  parser()
  
    public static Parser<Rule.PinAction> parser()
   
  
  Methods
  
  
  containsPinMap(long key)
  
    public boolean containsPinMap(long key)
   
   Required. A map of positions to product_ids.
 Partial matches per action are allowed, if a certain position in the map
 is already filled that [position, product_id] pair will be ignored
 but the rest may still be applied. This case will only occur if multiple
 pin actions are matched to a single request, as the map guarantees that
 pin positions are unique within the same action.
 Duplicate product_ids are not permitted within a single pin map.
 The max size of this map is 120, equivalent to the max request page
 size.
 map<int64, string> pin_map = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | key | long
 | 
    
  
  
  
  equals(Object obj)
  
    public boolean equals(Object obj)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | obj | Object
 | 
    
  
  
  Overrides
  
  
  getDefaultInstanceForType()
  
    public Rule.PinAction getDefaultInstanceForType()
   
  
  
  getParserForType()
  
    public Parser<Rule.PinAction> getParserForType()
   
  
  Overrides
  
  
  getPinMap() (deprecated)
  
    public Map<Long,String> getPinMap()
   
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Map<java.lang.Long,String> |  | 
    
  
  
  getPinMapCount()
  
    public int getPinMapCount()
   
   Required. A map of positions to product_ids.
 Partial matches per action are allowed, if a certain position in the map
 is already filled that [position, product_id] pair will be ignored
 but the rest may still be applied. This case will only occur if multiple
 pin actions are matched to a single request, as the map guarantees that
 pin positions are unique within the same action.
 Duplicate product_ids are not permitted within a single pin map.
 The max size of this map is 120, equivalent to the max request page
 size.
 map<int64, string> pin_map = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  
  getPinMapMap()
  
    public Map<Long,String> getPinMapMap()
   
   Required. A map of positions to product_ids.
 Partial matches per action are allowed, if a certain position in the map
 is already filled that [position, product_id] pair will be ignored
 but the rest may still be applied. This case will only occur if multiple
 pin actions are matched to a single request, as the map guarantees that
 pin positions are unique within the same action.
 Duplicate product_ids are not permitted within a single pin map.
 The max size of this map is 120, equivalent to the max request page
 size.
 map<int64, string> pin_map = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Map<java.lang.Long,String> |  | 
    
  
  
  getPinMapOrDefault(long key, String defaultValue)
  
    public String getPinMapOrDefault(long key, String defaultValue)
   
   Required. A map of positions to product_ids.
 Partial matches per action are allowed, if a certain position in the map
 is already filled that [position, product_id] pair will be ignored
 but the rest may still be applied. This case will only occur if multiple
 pin actions are matched to a single request, as the map guarantees that
 pin positions are unique within the same action.
 Duplicate product_ids are not permitted within a single pin map.
 The max size of this map is 120, equivalent to the max request page
 size.
 map<int64, string> pin_map = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        | Parameters | 
      
        | Name | Description | 
      
        | key | long
 | 
      
        | defaultValue | String
 | 
    
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String |  | 
    
  
  
  getPinMapOrThrow(long key)
  
    public String getPinMapOrThrow(long key)
   
   Required. A map of positions to product_ids.
 Partial matches per action are allowed, if a certain position in the map
 is already filled that [position, product_id] pair will be ignored
 but the rest may still be applied. This case will only occur if multiple
 pin actions are matched to a single request, as the map guarantees that
 pin positions are unique within the same action.
 Duplicate product_ids are not permitted within a single pin map.
 The max size of this map is 120, equivalent to the max request page
 size.
 map<int64, string> pin_map = 1 [(.google.api.field_behavior) = REQUIRED];
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | key | long
 | 
    
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | String |  | 
    
  
  
  getSerializedSize()
  
    public int getSerializedSize()
   
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  hashCode()
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | int |  | 
    
  
  Overrides
  
  
  internalGetFieldAccessorTable()
  
    protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
   
  
  Overrides
  
  
  internalGetMapFieldReflection(int number)
  
    protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
   
  
    
      
        | Parameter | 
      
        | Name | Description | 
      
        | number | int
 | 
    
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | com.google.protobuf.MapFieldReflectionAccessor |  | 
    
  
  Overrides
  com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
  
  isInitialized()
  
    public final boolean isInitialized()
   
  
  Overrides
  
  
  newBuilderForType()
  
    public Rule.PinAction.Builder newBuilderForType()
   
  
  
  newBuilderForType(GeneratedMessageV3.BuilderParent parent)
  
    protected Rule.PinAction.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
   
  
  
  Overrides
  
  
  newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
  
    protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
   
  
  
    
      
        | Returns | 
      
        | Type | Description | 
      
        | Object |  | 
    
  
  Overrides
  
  
  toBuilder()
  
    public Rule.PinAction.Builder toBuilder()
   
  
  
  writeTo(CodedOutputStream output)
  
    public void writeTo(CodedOutputStream output)
   
  
  Overrides