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()
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
|
List<String> |
getExcludedDestinations()
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
|
List<String> |
getIncludedDestinations()
The list of destinations to include 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.
|
DatafeedTarget |
set(String fieldName,
Object value) |
DatafeedTarget |
setCountry(String country)
The country where the items in the feed will be included in the search index, represented as a
CLDR territory code.
|
DatafeedTarget |
setExcludedDestinations(List<String> excludedDestinations)
The list of destinations to exclude for this target (corresponds to unchecked check boxes in
Merchant Center).
|
DatafeedTarget |
setIncludedDestinations(List<String> includedDestinations)
The list of destinations to include 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.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, 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 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 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–2019 Google. All rights reserved.