target.apidocs.com.google.api.services.content.model.Value.html Maven / Gradle / Ivy
Value (Content API for Shopping v2.1-rev20240609-2.0.0)
com.google.api.services.content.model
Class Value
- 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.Value
-
public final class Value
extends com.google.api.client.json.GenericJson
The single value of a rate group or the value of a rate group table's cell. Exactly one of
`noShipping`, `flatRate`, `pricePercentage`, `carrierRateName`, `subtableName` must be set.
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
Value()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Value
clone()
String
getCarrierRateName()
The name of a carrier rate referring to a carrier rate defined in the same rate group.
Price
getFlatRate()
A flat rate.
Boolean
getNoShipping()
If true, then the product can't ship.
String
getPricePercentage()
A percentage of the price represented as a number in decimal notation (for example, `"5.4"`).
String
getSubtableName()
The name of a subtable.
Value
set(String fieldName,
Object value)
Value
setCarrierRateName(String carrierRateName)
The name of a carrier rate referring to a carrier rate defined in the same rate group.
Value
setFlatRate(Price flatRate)
A flat rate.
Value
setNoShipping(Boolean noShipping)
If true, then the product can't ship.
Value
setPricePercentage(String pricePercentage)
A percentage of the price represented as a number in decimal notation (for example, `"5.4"`).
Value
setSubtableName(String subtableName)
The name of a subtable.
-
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
-
getCarrierRateName
public String getCarrierRateName()
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only
be set if all other fields are not set.
- Returns:
- value or
null
for none
-
setCarrierRateName
public Value setCarrierRateName(String carrierRateName)
The name of a carrier rate referring to a carrier rate defined in the same rate group. Can only
be set if all other fields are not set.
- Parameters:
carrierRateName
- carrierRateName or null
for none
-
getFlatRate
public Price getFlatRate()
A flat rate. Can only be set if all other fields are not set.
- Returns:
- value or
null
for none
-
setFlatRate
public Value setFlatRate(Price flatRate)
A flat rate. Can only be set if all other fields are not set.
- Parameters:
flatRate
- flatRate or null
for none
-
getNoShipping
public Boolean getNoShipping()
If true, then the product can't ship. Must be true when set, can only be set if all other
fields are not set.
- Returns:
- value or
null
for none
-
setNoShipping
public Value setNoShipping(Boolean noShipping)
If true, then the product can't ship. Must be true when set, can only be set if all other
fields are not set.
- Parameters:
noShipping
- noShipping or null
for none
-
getPricePercentage
public String getPricePercentage()
A percentage of the price represented as a number in decimal notation (for example, `"5.4"`).
Can only be set if all other fields are not set.
- Returns:
- value or
null
for none
-
setPricePercentage
public Value setPricePercentage(String pricePercentage)
A percentage of the price represented as a number in decimal notation (for example, `"5.4"`).
Can only be set if all other fields are not set.
- Parameters:
pricePercentage
- pricePercentage or null
for none
-
getSubtableName
public String getSubtableName()
The name of a subtable. Can only be set in table cells (not for single values), and only if all
other fields are not set.
- Returns:
- value or
null
for none
-
setSubtableName
public Value setSubtableName(String subtableName)
The name of a subtable. Can only be set in table cells (not for single values), and only if all
other fields are not set.
- Parameters:
subtableName
- subtableName or null
for none
-
set
public Value set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Value clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy