public final class Datafeed
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 |
---|
Datafeed() |
Modifier and Type | Method and Description |
---|---|
Datafeed |
clone() |
String |
getAttributeLanguage()
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
|
String |
getContentType()
The type of data feed.
|
DatafeedFetchSchedule |
getFetchSchedule()
Fetch schedule for the feed file.
|
String |
getFileName()
The filename of the feed.
|
DatafeedFormat |
getFormat()
Format of the feed file.
|
Long |
getId()
The ID of the data feed.
|
String |
getKind()
Identifies what kind of resource this is.
|
String |
getName()
A descriptive name of the data feed.
|
List<DatafeedTarget> |
getTargets()
The targets this feed should apply to (country, language, destinations).
|
Datafeed |
set(String fieldName,
Object value) |
Datafeed |
setAttributeLanguage(String attributeLanguage)
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
|
Datafeed |
setContentType(String contentType)
The type of data feed.
|
Datafeed |
setFetchSchedule(DatafeedFetchSchedule fetchSchedule)
Fetch schedule for the feed file.
|
Datafeed |
setFileName(String fileName)
The filename of the feed.
|
Datafeed |
setFormat(DatafeedFormat format)
Format of the feed file.
|
Datafeed |
setId(Long id)
The ID of the data feed.
|
Datafeed |
setKind(String kind)
Identifies what kind of resource this is.
|
Datafeed |
setName(String name)
A descriptive name of the data feed.
|
Datafeed |
setTargets(List<DatafeedTarget> targets)
The targets this feed should apply to (country, language, destinations).
|
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 getAttributeLanguage()
null
for nonepublic Datafeed setAttributeLanguage(String attributeLanguage)
attributeLanguage
- attributeLanguage or null
for nonepublic String getContentType()
null
for nonepublic Datafeed setContentType(String contentType)
contentType
- contentType or null
for nonepublic DatafeedFetchSchedule getFetchSchedule()
null
for nonepublic Datafeed setFetchSchedule(DatafeedFetchSchedule fetchSchedule)
fetchSchedule
- fetchSchedule or null
for nonepublic String getFileName()
null
for nonepublic Datafeed setFileName(String fileName)
fileName
- fileName or null
for nonepublic DatafeedFormat getFormat()
null
for nonepublic Datafeed setFormat(DatafeedFormat format)
format
- format or null
for nonepublic Long getId()
null
for nonepublic String getKind()
null
for nonepublic Datafeed setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic Datafeed setName(String name)
name
- name or null
for nonepublic List<DatafeedTarget> getTargets()
null
for nonepublic Datafeed setTargets(List<DatafeedTarget> targets)
targets
- targets or null
for nonepublic Datafeed set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Datafeed clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.