public final class ProductCluster
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 |
---|
ProductCluster() |
Modifier and Type | Method and Description |
---|---|
ProductCluster |
clone() |
String |
getBrand()
Brand of the product cluster.
|
String |
getBrandInventoryStatus()
Tells if there is at least one product of the brand currently `IN_STOCK` in your product feed
across multiple countries, all products are `OUT_OF_STOCK` in your product feed, or
`NOT_IN_INVENTORY`.
|
String |
getCategoryL1()
Product category (1st level) of the product cluster, represented in Google's product taxonomy.
|
String |
getCategoryL2()
Product category (2nd level) of the product cluster, represented in Google's product taxonomy.
|
String |
getCategoryL3()
Product category (3rd level) of the product cluster, represented in Google's product taxonomy.
|
String |
getCategoryL4()
Product category (4th level) of the product cluster, represented in Google's product taxonomy.
|
String |
getCategoryL5()
Product category (5th level) of the product cluster, represented in Google's product taxonomy.
|
String |
getInventoryStatus()
Tells whether the product cluster is `IN_STOCK` in your product feed across multiple countries,
`OUT_OF_STOCK` in your product feed, or `NOT_IN_INVENTORY` at all.
|
String |
getTitle()
Title of the product cluster.
|
List<String> |
getVariantGtins()
GTINs of example variants of the product cluster.
|
ProductCluster |
set(String fieldName,
Object value) |
ProductCluster |
setBrand(String brand)
Brand of the product cluster.
|
ProductCluster |
setBrandInventoryStatus(String brandInventoryStatus)
Tells if there is at least one product of the brand currently `IN_STOCK` in your product feed
across multiple countries, all products are `OUT_OF_STOCK` in your product feed, or
`NOT_IN_INVENTORY`.
|
ProductCluster |
setCategoryL1(String categoryL1)
Product category (1st level) of the product cluster, represented in Google's product taxonomy.
|
ProductCluster |
setCategoryL2(String categoryL2)
Product category (2nd level) of the product cluster, represented in Google's product taxonomy.
|
ProductCluster |
setCategoryL3(String categoryL3)
Product category (3rd level) of the product cluster, represented in Google's product taxonomy.
|
ProductCluster |
setCategoryL4(String categoryL4)
Product category (4th level) of the product cluster, represented in Google's product taxonomy.
|
ProductCluster |
setCategoryL5(String categoryL5)
Product category (5th level) of the product cluster, represented in Google's product taxonomy.
|
ProductCluster |
setInventoryStatus(String inventoryStatus)
Tells whether the product cluster is `IN_STOCK` in your product feed across multiple countries,
`OUT_OF_STOCK` in your product feed, or `NOT_IN_INVENTORY` at all.
|
ProductCluster |
setTitle(String title)
Title of the product cluster.
|
ProductCluster |
setVariantGtins(List<String> variantGtins)
GTINs of example variants of the product cluster.
|
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 getBrand()
null
for nonepublic ProductCluster setBrand(String brand)
brand
- brand or null
for nonepublic String getBrandInventoryStatus()
null
for nonepublic ProductCluster setBrandInventoryStatus(String brandInventoryStatus)
brandInventoryStatus
- brandInventoryStatus or null
for nonepublic String getCategoryL1()
null
for nonepublic ProductCluster setCategoryL1(String categoryL1)
categoryL1
- categoryL1 or null
for nonepublic String getCategoryL2()
null
for nonepublic ProductCluster setCategoryL2(String categoryL2)
categoryL2
- categoryL2 or null
for nonepublic String getCategoryL3()
null
for nonepublic ProductCluster setCategoryL3(String categoryL3)
categoryL3
- categoryL3 or null
for nonepublic String getCategoryL4()
null
for nonepublic ProductCluster setCategoryL4(String categoryL4)
categoryL4
- categoryL4 or null
for nonepublic String getCategoryL5()
null
for nonepublic ProductCluster setCategoryL5(String categoryL5)
categoryL5
- categoryL5 or null
for nonepublic String getInventoryStatus()
null
for nonepublic ProductCluster setInventoryStatus(String inventoryStatus)
inventoryStatus
- inventoryStatus or null
for nonepublic String getTitle()
null
for nonepublic ProductCluster setTitle(String title)
title
- title or null
for nonepublic List<String> getVariantGtins()
null
for nonepublic ProductCluster setVariantGtins(List<String> variantGtins)
variantGtins
- variantGtins or null
for nonepublic ProductCluster set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ProductCluster clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.