public final class Service
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
Constructor and Description |
---|
Service() |
Modifier and Type | Method and Description |
---|---|
Service |
clone() |
java.lang.Boolean |
getActive()
A boolean exposing the active status of the shipping service.
|
java.lang.String |
getCurrency()
The CLDR code of the currency to which this service applies.
|
java.lang.String |
getDeliveryCountry()
The CLDR territory code of the country to which the service applies.
|
DeliveryTime |
getDeliveryTime()
Time spent in various aspects from order to the delivery of the product.
|
java.lang.String |
getEligibility()
Eligibility for this service.
|
Price |
getMinimumOrderValue()
Minimum order value for this service.
|
java.lang.String |
getName()
Free-form name of the service.
|
PickupCarrierService |
getPickupService()
The carrier-service pair delivering items to collection points.
|
java.util.List<RateGroup> |
getRateGroups()
Shipping rate group definitions.
|
java.lang.String |
getShipmentType()
Type of locations this service ships orders to.
|
Service |
set(java.lang.String fieldName,
java.lang.Object value) |
Service |
setActive(java.lang.Boolean active)
A boolean exposing the active status of the shipping service.
|
Service |
setCurrency(java.lang.String currency)
The CLDR code of the currency to which this service applies.
|
Service |
setDeliveryCountry(java.lang.String deliveryCountry)
The CLDR territory code of the country to which the service applies.
|
Service |
setDeliveryTime(DeliveryTime deliveryTime)
Time spent in various aspects from order to the delivery of the product.
|
Service |
setEligibility(java.lang.String eligibility)
Eligibility for this service.
|
Service |
setMinimumOrderValue(Price minimumOrderValue)
Minimum order value for this service.
|
Service |
setName(java.lang.String name)
Free-form name of the service.
|
Service |
setPickupService(PickupCarrierService pickupService)
The carrier-service pair delivering items to collection points.
|
Service |
setRateGroups(java.util.List<RateGroup> rateGroups)
Shipping rate group definitions.
|
Service |
setShipmentType(java.lang.String shipmentType)
Type of locations this service ships orders to.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.Boolean getActive()
null
for nonepublic Service setActive(java.lang.Boolean active)
active
- active or null
for nonepublic java.lang.String getCurrency()
null
for nonepublic Service setCurrency(java.lang.String currency)
currency
- currency or null
for nonepublic java.lang.String getDeliveryCountry()
null
for nonepublic Service setDeliveryCountry(java.lang.String deliveryCountry)
deliveryCountry
- deliveryCountry or null
for nonepublic DeliveryTime getDeliveryTime()
null
for nonepublic Service setDeliveryTime(DeliveryTime deliveryTime)
deliveryTime
- deliveryTime or null
for nonepublic java.lang.String getEligibility()
null
for nonepublic Service setEligibility(java.lang.String eligibility)
eligibility
- eligibility or null
for nonepublic Price getMinimumOrderValue()
null
for nonepublic Service setMinimumOrderValue(Price minimumOrderValue)
minimumOrderValue
- minimumOrderValue or null
for nonepublic java.lang.String getName()
null
for nonepublic Service setName(java.lang.String name)
name
- name or null
for nonepublic PickupCarrierService getPickupService()
null
for nonepublic Service setPickupService(PickupCarrierService pickupService)
pickupService
- pickupService or null
for nonepublic java.util.List<RateGroup> getRateGroups()
null
for nonepublic Service setRateGroups(java.util.List<RateGroup> rateGroups)
rateGroups
- rateGroups or null
for nonepublic java.lang.String getShipmentType()
null
for nonepublic Service setShipmentType(java.lang.String shipmentType)
shipmentType
- shipmentType or null
for nonepublic Service set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Service clone()
clone
in class com.google.api.client.json.GenericJson