public final class RateGroup
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 |
---|
RateGroup() |
Modifier and Type | Method and Description |
---|---|
RateGroup |
clone() |
List<String> |
getApplicableShippingLabels()
A list of shipping labels defining the products to which this rate group applies to.
|
List<CarrierRate> |
getCarrierRates()
A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
|
Table |
getMainTable()
A table defining the rate group, when `singleValue` is not expressive enough.
|
String |
getName()
Name of the rate group.
|
Value |
getSingleValue()
The value of the rate group (for example, flat rate $10).
|
List<Table> |
getSubtables()
A list of subtables referred to by `mainTable`.
|
RateGroup |
set(String fieldName,
Object value) |
RateGroup |
setApplicableShippingLabels(List<String> applicableShippingLabels)
A list of shipping labels defining the products to which this rate group applies to.
|
RateGroup |
setCarrierRates(List<CarrierRate> carrierRates)
A list of carrier rates that can be referred to by `mainTable` or `singleValue`.
|
RateGroup |
setMainTable(Table mainTable)
A table defining the rate group, when `singleValue` is not expressive enough.
|
RateGroup |
setName(String name)
Name of the rate group.
|
RateGroup |
setSingleValue(Value singleValue)
The value of the rate group (for example, flat rate $10).
|
RateGroup |
setSubtables(List<Table> subtables)
A list of subtables referred to by `mainTable`.
|
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 List<String> getApplicableShippingLabels()
null
for nonepublic RateGroup setApplicableShippingLabels(List<String> applicableShippingLabels)
applicableShippingLabels
- applicableShippingLabels or null
for nonepublic List<CarrierRate> getCarrierRates()
null
for nonepublic RateGroup setCarrierRates(List<CarrierRate> carrierRates)
carrierRates
- carrierRates or null
for nonepublic Table getMainTable()
null
for nonepublic RateGroup setMainTable(Table mainTable)
mainTable
- mainTable or null
for nonepublic String getName()
null
for nonepublic RateGroup setName(String name)
name
- name or null
for nonepublic Value getSingleValue()
null
for nonepublic RateGroup setSingleValue(Value singleValue)
singleValue
- singleValue or null
for nonepublic List<Table> getSubtables()
null
for nonepublic RateGroup setSubtables(List<Table> subtables)
subtables
- subtables or null
for nonepublic RateGroup set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public RateGroup clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.