target.apidocs.com.google.api.services.content.model.RateGroup.html Maven / Gradle / Ivy
RateGroup (Content API for Shopping v2-rev20190308-1.26.0)
com.google.api.services.content.model
Class RateGroup
- 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.RateGroup
-
public final class RateGroup
extends com.google.api.client.json.GenericJson
Model definition for RateGroup.
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
RateGroup()
-
Method Summary
All Methods Instance Methods Concrete Methods
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 (e.g.
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 (e.g.
RateGroup
setSubtables(List<Table> subtables)
A list of subtables referred to by mainTable.
-
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, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, 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
-
getApplicableShippingLabels
public List<String> getApplicableShippingLabels()
A list of shipping labels defining the products to which this rate group applies to. This is a
disjunction: only one of the labels has to match for the rate group to apply. May only be empty
for the last rate group of a service. Required.
- Returns:
- value or
null
for none
-
setApplicableShippingLabels
public RateGroup setApplicableShippingLabels(List<String> applicableShippingLabels)
A list of shipping labels defining the products to which this rate group applies to. This is a
disjunction: only one of the labels has to match for the rate group to apply. May only be empty
for the last rate group of a service. Required.
- Parameters:
applicableShippingLabels
- applicableShippingLabels or null
for none
-
getCarrierRates
public List<CarrierRate> getCarrierRates()
A list of carrier rates that can be referred to by mainTable or singleValue.
- Returns:
- value or
null
for none
-
setCarrierRates
public RateGroup setCarrierRates(List<CarrierRate> carrierRates)
A list of carrier rates that can be referred to by mainTable or singleValue.
- Parameters:
carrierRates
- carrierRates or null
for none
-
getMainTable
public Table getMainTable()
A table defining the rate group, when singleValue is not expressive enough. Can only be set if
singleValue is not set.
- Returns:
- value or
null
for none
-
setMainTable
public RateGroup setMainTable(Table mainTable)
A table defining the rate group, when singleValue is not expressive enough. Can only be set if
singleValue is not set.
- Parameters:
mainTable
- mainTable or null
for none
-
getName
public String getName()
Name of the rate group. Optional. If set has to be unique within shipping service.
- Returns:
- value or
null
for none
-
setName
public RateGroup setName(String name)
Name of the rate group. Optional. If set has to be unique within shipping service.
- Parameters:
name
- name or null
for none
-
getSingleValue
public Value getSingleValue()
The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables
are not set.
- Returns:
- value or
null
for none
-
setSingleValue
public RateGroup setSingleValue(Value singleValue)
The value of the rate group (e.g. flat rate $10). Can only be set if mainTable and subtables
are not set.
- Parameters:
singleValue
- singleValue or null
for none
-
getSubtables
public List<Table> getSubtables()
A list of subtables referred to by mainTable. Can only be set if mainTable is set.
- Returns:
- value or
null
for none
-
setSubtables
public RateGroup setSubtables(List<Table> subtables)
A list of subtables referred to by mainTable. Can only be set if mainTable is set.
- Parameters:
subtables
- subtables or null
for none
-
set
public RateGroup set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public RateGroup clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy