target.apidocs.com.google.api.services.content.model.RepricingRuleEligibleOfferMatcher.html Maven / Gradle / Ivy
RepricingRuleEligibleOfferMatcher (Content API for Shopping v2.1-rev20210325-1.31.0)
com.google.api.services.content.model
Class RepricingRuleEligibleOfferMatcher
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.RepricingRuleEligibleOfferMatcher
-
public final class RepricingRuleEligibleOfferMatcher
extends GenericJson
Matcher that specifies eligible offers. When the USE_FEED_ATTRIBUTE option is selected, only the
repricing_rule_id attribute on the product feed is used to specify offer-rule mapping. When the
CUSTOM_FILTER option is selected, only the *_matcher fields are used to filter the offers for
offer-rule mapping. If the CUSTOM_FILTER option is selected, an offer needs to satisfy each
custom filter matcher to be eligible for a rule. Size limit: the sum of the number of entries in
all the matchers should not exceed 20. For example, there can be 15 product ids and 5 brands, but
not 10 product ids and 11 brands.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
RepricingRuleEligibleOfferMatcher()
-
Method Summary
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBrandMatcher
public RepricingRuleEligibleOfferMatcherStringMatcher getBrandMatcher()
Filter by the brand.
- Returns:
- value or
null
for none
-
setBrandMatcher
public RepricingRuleEligibleOfferMatcher setBrandMatcher(RepricingRuleEligibleOfferMatcherStringMatcher brandMatcher)
Filter by the brand.
- Parameters:
brandMatcher
- brandMatcher or null
for none
-
getItemGroupIdMatcher
public RepricingRuleEligibleOfferMatcherStringMatcher getItemGroupIdMatcher()
Filter by the item group id.
- Returns:
- value or
null
for none
-
setItemGroupIdMatcher
public RepricingRuleEligibleOfferMatcher setItemGroupIdMatcher(RepricingRuleEligibleOfferMatcherStringMatcher itemGroupIdMatcher)
Filter by the item group id.
- Parameters:
itemGroupIdMatcher
- itemGroupIdMatcher or null
for none
-
getMatcherOption
public String getMatcherOption()
Determines whether to use the custom matchers or the product feed attribute "repricing_rule_id"
to specify offer-rule mapping.
- Returns:
- value or
null
for none
-
setMatcherOption
public RepricingRuleEligibleOfferMatcher setMatcherOption(String matcherOption)
Determines whether to use the custom matchers or the product feed attribute "repricing_rule_id"
to specify offer-rule mapping.
- Parameters:
matcherOption
- matcherOption or null
for none
-
getOfferIdMatcher
public RepricingRuleEligibleOfferMatcherStringMatcher getOfferIdMatcher()
Filter by the offer id.
- Returns:
- value or
null
for none
-
setOfferIdMatcher
public RepricingRuleEligibleOfferMatcher setOfferIdMatcher(RepricingRuleEligibleOfferMatcherStringMatcher offerIdMatcher)
Filter by the offer id.
- Parameters:
offerIdMatcher
- offerIdMatcher or null
for none
-
getSkipWhenOnPromotion
public Boolean getSkipWhenOnPromotion()
When true, the rule won't be applied to offers with active promotions.
- Returns:
- value or
null
for none
-
setSkipWhenOnPromotion
public RepricingRuleEligibleOfferMatcher setSkipWhenOnPromotion(Boolean skipWhenOnPromotion)
When true, the rule won't be applied to offers with active promotions.
- Parameters:
skipWhenOnPromotion
- skipWhenOnPromotion or null
for none
-
set
public RepricingRuleEligibleOfferMatcher set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public RepricingRuleEligibleOfferMatcher clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy