target.apidocs.com.google.api.services.content.model.Datafeed.html Maven / Gradle / Ivy
Datafeed (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class Datafeed
- 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.Datafeed
-
public final class Datafeed
extends com.google.api.client.json.GenericJson
Datafeed configuration data.
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
com.google.api.client.util.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
Datafeed()
-
Method Summary
All Methods Instance Methods Concrete Methods
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()
Required.
DatafeedFetchSchedule
getFetchSchedule()
Fetch schedule for the feed file.
String
getFileName()
Required.
DatafeedFormat
getFormat()
Format of the feed file.
Long
getId()
Required for update.
String
getKind()
Identifies what kind of resource this is.
String
getName()
Required for insert.
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)
Required.
Datafeed
setFetchSchedule(DatafeedFetchSchedule fetchSchedule)
Fetch schedule for the feed file.
Datafeed
setFileName(String fileName)
Required.
Datafeed
setFormat(DatafeedFormat format)
Format of the feed file.
Datafeed
setId(Long id)
Required for update.
Datafeed
setKind(String kind)
Identifies what kind of resource this is.
Datafeed
setName(String name)
Required for insert.
Datafeed
setTargets(List<DatafeedTarget> targets)
The targets this feed should apply to (country, language, destinations).
-
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
-
getAttributeLanguage
public String getAttributeLanguage()
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
- Returns:
- value or
null
for none
-
setAttributeLanguage
public Datafeed setAttributeLanguage(String attributeLanguage)
The two-letter ISO 639-1 language in which the attributes are defined in the data feed.
- Parameters:
attributeLanguage
- attributeLanguage or null
for none
-
getContentType
public String getContentType()
Required. The type of data feed. For product inventory feeds, only feeds for local stores, not
online stores, are supported. Acceptable values are: - "`local products`" - "`product
inventory`" - "`products`"
- Returns:
- value or
null
for none
-
setContentType
public Datafeed setContentType(String contentType)
Required. The type of data feed. For product inventory feeds, only feeds for local stores, not
online stores, are supported. Acceptable values are: - "`local products`" - "`product
inventory`" - "`products`"
- Parameters:
contentType
- contentType or null
for none
-
getFetchSchedule
public DatafeedFetchSchedule getFetchSchedule()
Fetch schedule for the feed file.
- Returns:
- value or
null
for none
-
setFetchSchedule
public Datafeed setFetchSchedule(DatafeedFetchSchedule fetchSchedule)
Fetch schedule for the feed file.
- Parameters:
fetchSchedule
- fetchSchedule or null
for none
-
getFileName
public String getFileName()
Required. The filename of the feed. All feeds must have a unique file name.
- Returns:
- value or
null
for none
-
setFileName
public Datafeed setFileName(String fileName)
Required. The filename of the feed. All feeds must have a unique file name.
- Parameters:
fileName
- fileName or null
for none
-
getFormat
public DatafeedFormat getFormat()
Format of the feed file.
- Returns:
- value or
null
for none
-
setFormat
public Datafeed setFormat(DatafeedFormat format)
Format of the feed file.
- Parameters:
format
- format or null
for none
-
getId
public Long getId()
Required for update. The ID of the data feed.
- Returns:
- value or
null
for none
-
setId
public Datafeed setId(Long id)
Required for update. The ID of the data feed.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
- Returns:
- value or
null
for none
-
setKind
public Datafeed setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "`content#datafeed`"
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
Required for insert. A descriptive name of the data feed.
- Returns:
- value or
null
for none
-
setName
public Datafeed setName(String name)
Required for insert. A descriptive name of the data feed.
- Parameters:
name
- name or null
for none
-
getTargets
public List<DatafeedTarget> getTargets()
The targets this feed should apply to (country, language, destinations).
- Returns:
- value or
null
for none
-
setTargets
public Datafeed setTargets(List<DatafeedTarget> targets)
The targets this feed should apply to (country, language, destinations).
- Parameters:
targets
- targets or null
for none
-
set
public Datafeed set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Datafeed clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.