public final class DatafeedTarget
extends com.google.api.client.json.GenericJson
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
com.google.api.client.util.GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
DatafeedTarget() |
Modifier and Type | Method and Description |
---|---|
DatafeedTarget |
clone() |
String |
getCountry()
Deprecated.
|
List<String> |
getExcludedDestinations()
The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center).
|
String |
getFeedLabel()
Feed label for the DatafeedTarget.
|
List<String> |
getIncludedDestinations()
The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this
target (corresponds to checked check boxes in Merchant Center).
|
String |
getLanguage()
The two-letter ISO 639-1 language of the items in the feed.
|
List<String> |
getTargetCountries()
The countries where the items may be displayed.
|
DatafeedTarget |
set(String fieldName,
Object value) |
DatafeedTarget |
setCountry(String country)
Deprecated.
|
DatafeedTarget |
setExcludedDestinations(List<String> excludedDestinations)
The list of [destinations to exclude](//support.google.com/merchants/answer/6324486) for this
target (corresponds to cleared check boxes in Merchant Center).
|
DatafeedTarget |
setFeedLabel(String feedLabel)
Feed label for the DatafeedTarget.
|
DatafeedTarget |
setIncludedDestinations(List<String> includedDestinations)
The list of [destinations to include](//support.google.com/merchants/answer/7501026) for this
target (corresponds to checked check boxes in Merchant Center).
|
DatafeedTarget |
setLanguage(String language)
The two-letter ISO 639-1 language of the items in the feed.
|
DatafeedTarget |
setTargetCountries(List<String> targetCountries)
The countries where the items may be displayed.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getCountry()
null
for nonepublic DatafeedTarget setCountry(String country)
country
- country or null
for nonepublic List<String> getExcludedDestinations()
null
for nonepublic DatafeedTarget setExcludedDestinations(List<String> excludedDestinations)
excludedDestinations
- excludedDestinations or null
for nonepublic String getFeedLabel()
null
for nonepublic DatafeedTarget setFeedLabel(String feedLabel)
feedLabel
- feedLabel or null
for nonepublic List<String> getIncludedDestinations()
null
for nonepublic DatafeedTarget setIncludedDestinations(List<String> includedDestinations)
includedDestinations
- includedDestinations or null
for nonepublic String getLanguage()
null
for nonepublic DatafeedTarget setLanguage(String language)
language
- language or null
for nonepublic List<String> getTargetCountries()
null
for nonepublic DatafeedTarget setTargetCountries(List<String> targetCountries)
targetCountries
- targetCountries or null
for nonepublic DatafeedTarget set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public DatafeedTarget clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.