| 12291 |
manish.sha |
1 |
/*
|
|
|
2 |
* Copyright 2010 Google Inc.
|
|
|
3 |
*
|
|
|
4 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
|
|
|
5 |
* in compliance with the License. You may obtain a copy of the License at
|
|
|
6 |
*
|
|
|
7 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
*
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software distributed under the License
|
|
|
10 |
* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
|
|
|
11 |
* or implied. See the License for the specific language governing permissions and limitations under
|
|
|
12 |
* the License.
|
|
|
13 |
*/
|
|
|
14 |
/*
|
|
|
15 |
* This code was generated by https://code.google.com/p/google-apis-client-generator/
|
|
|
16 |
* (build: 2014-07-09 17:08:39 UTC)
|
|
|
17 |
* on 2014-07-23 at 21:49:03 UTC
|
|
|
18 |
* Modify at your own risk.
|
|
|
19 |
*/
|
|
|
20 |
|
|
|
21 |
package com.google.api.services.content.model;
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* Model definition for AccountShipping.
|
|
|
25 |
*
|
|
|
26 |
* <p> This is the Java data model class that specifies how to parse/serialize into the JSON that is
|
|
|
27 |
* transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
|
|
|
28 |
* see:
|
|
|
29 |
* <a href="http://code.google.com/p/google-http-java-client/wiki/JSON">http://code.google.com/p/google-http-java-client/wiki/JSON</a>
|
|
|
30 |
* </p>
|
|
|
31 |
*
|
|
|
32 |
* @author Google, Inc.
|
|
|
33 |
*/
|
|
|
34 |
@SuppressWarnings("javadoc")
|
|
|
35 |
public final class AccountShipping extends com.google.api.client.json.GenericJson {
|
|
|
36 |
|
|
|
37 |
/**
|
|
|
38 |
* The ID of the account to which these account shipping settings belong.
|
|
|
39 |
* The value may be {@code null}.
|
|
|
40 |
*/
|
|
|
41 |
@com.google.api.client.util.Key @com.google.api.client.json.JsonString
|
|
|
42 |
private java.math.BigInteger accountId;
|
|
|
43 |
|
|
|
44 |
/**
|
|
|
45 |
* Carrier-based shipping calculations.
|
|
|
46 |
* The value may be {@code null}.
|
|
|
47 |
*/
|
|
|
48 |
@com.google.api.client.util.Key
|
|
|
49 |
private java.util.List<AccountShippingCarrierRate> carrierRates;
|
|
|
50 |
|
|
|
51 |
static {
|
|
|
52 |
// hack to force ProGuard to consider AccountShippingCarrierRate used, since otherwise it would be stripped out
|
|
|
53 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
54 |
com.google.api.client.util.Data.nullOf(AccountShippingCarrierRate.class);
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
/**
|
|
|
58 |
* Identifies what kind of resource this is. Value: the fixed string "content#accountShipping".
|
|
|
59 |
* The value may be {@code null}.
|
|
|
60 |
*/
|
|
|
61 |
@com.google.api.client.util.Key
|
|
|
62 |
private java.lang.String kind;
|
|
|
63 |
|
|
|
64 |
/**
|
|
|
65 |
* Location groups for shipping.
|
|
|
66 |
* The value may be {@code null}.
|
|
|
67 |
*/
|
|
|
68 |
@com.google.api.client.util.Key
|
|
|
69 |
private java.util.List<AccountShippingLocationGroup> locationGroups;
|
|
|
70 |
|
|
|
71 |
static {
|
|
|
72 |
// hack to force ProGuard to consider AccountShippingLocationGroup used, since otherwise it would be stripped out
|
|
|
73 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
74 |
com.google.api.client.util.Data.nullOf(AccountShippingLocationGroup.class);
|
|
|
75 |
}
|
|
|
76 |
|
|
|
77 |
/**
|
|
|
78 |
* Rate tables definitions.
|
|
|
79 |
* The value may be {@code null}.
|
|
|
80 |
*/
|
|
|
81 |
@com.google.api.client.util.Key
|
|
|
82 |
private java.util.List<AccountShippingRateTable> rateTables;
|
|
|
83 |
|
|
|
84 |
static {
|
|
|
85 |
// hack to force ProGuard to consider AccountShippingRateTable used, since otherwise it would be stripped out
|
|
|
86 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
87 |
com.google.api.client.util.Data.nullOf(AccountShippingRateTable.class);
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
/**
|
|
|
91 |
* Shipping services describing shipping fees calculation.
|
|
|
92 |
* The value may be {@code null}.
|
|
|
93 |
*/
|
|
|
94 |
@com.google.api.client.util.Key
|
|
|
95 |
private java.util.List<AccountShippingShippingService> services;
|
|
|
96 |
|
|
|
97 |
static {
|
|
|
98 |
// hack to force ProGuard to consider AccountShippingShippingService used, since otherwise it would be stripped out
|
|
|
99 |
// see http://code.google.com/p/google-api-java-client/issues/detail?id=528
|
|
|
100 |
com.google.api.client.util.Data.nullOf(AccountShippingShippingService.class);
|
|
|
101 |
}
|
|
|
102 |
|
|
|
103 |
/**
|
|
|
104 |
* The ID of the account to which these account shipping settings belong.
|
|
|
105 |
* @return value or {@code null} for none
|
|
|
106 |
*/
|
|
|
107 |
public java.math.BigInteger getAccountId() {
|
|
|
108 |
return accountId;
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
/**
|
|
|
112 |
* The ID of the account to which these account shipping settings belong.
|
|
|
113 |
* @param accountId accountId or {@code null} for none
|
|
|
114 |
*/
|
|
|
115 |
public AccountShipping setAccountId(java.math.BigInteger accountId) {
|
|
|
116 |
this.accountId = accountId;
|
|
|
117 |
return this;
|
|
|
118 |
}
|
|
|
119 |
|
|
|
120 |
/**
|
|
|
121 |
* Carrier-based shipping calculations.
|
|
|
122 |
* @return value or {@code null} for none
|
|
|
123 |
*/
|
|
|
124 |
public java.util.List<AccountShippingCarrierRate> getCarrierRates() {
|
|
|
125 |
return carrierRates;
|
|
|
126 |
}
|
|
|
127 |
|
|
|
128 |
/**
|
|
|
129 |
* Carrier-based shipping calculations.
|
|
|
130 |
* @param carrierRates carrierRates or {@code null} for none
|
|
|
131 |
*/
|
|
|
132 |
public AccountShipping setCarrierRates(java.util.List<AccountShippingCarrierRate> carrierRates) {
|
|
|
133 |
this.carrierRates = carrierRates;
|
|
|
134 |
return this;
|
|
|
135 |
}
|
|
|
136 |
|
|
|
137 |
/**
|
|
|
138 |
* Identifies what kind of resource this is. Value: the fixed string "content#accountShipping".
|
|
|
139 |
* @return value or {@code null} for none
|
|
|
140 |
*/
|
|
|
141 |
public java.lang.String getKind() {
|
|
|
142 |
return kind;
|
|
|
143 |
}
|
|
|
144 |
|
|
|
145 |
/**
|
|
|
146 |
* Identifies what kind of resource this is. Value: the fixed string "content#accountShipping".
|
|
|
147 |
* @param kind kind or {@code null} for none
|
|
|
148 |
*/
|
|
|
149 |
public AccountShipping setKind(java.lang.String kind) {
|
|
|
150 |
this.kind = kind;
|
|
|
151 |
return this;
|
|
|
152 |
}
|
|
|
153 |
|
|
|
154 |
/**
|
|
|
155 |
* Location groups for shipping.
|
|
|
156 |
* @return value or {@code null} for none
|
|
|
157 |
*/
|
|
|
158 |
public java.util.List<AccountShippingLocationGroup> getLocationGroups() {
|
|
|
159 |
return locationGroups;
|
|
|
160 |
}
|
|
|
161 |
|
|
|
162 |
/**
|
|
|
163 |
* Location groups for shipping.
|
|
|
164 |
* @param locationGroups locationGroups or {@code null} for none
|
|
|
165 |
*/
|
|
|
166 |
public AccountShipping setLocationGroups(java.util.List<AccountShippingLocationGroup> locationGroups) {
|
|
|
167 |
this.locationGroups = locationGroups;
|
|
|
168 |
return this;
|
|
|
169 |
}
|
|
|
170 |
|
|
|
171 |
/**
|
|
|
172 |
* Rate tables definitions.
|
|
|
173 |
* @return value or {@code null} for none
|
|
|
174 |
*/
|
|
|
175 |
public java.util.List<AccountShippingRateTable> getRateTables() {
|
|
|
176 |
return rateTables;
|
|
|
177 |
}
|
|
|
178 |
|
|
|
179 |
/**
|
|
|
180 |
* Rate tables definitions.
|
|
|
181 |
* @param rateTables rateTables or {@code null} for none
|
|
|
182 |
*/
|
|
|
183 |
public AccountShipping setRateTables(java.util.List<AccountShippingRateTable> rateTables) {
|
|
|
184 |
this.rateTables = rateTables;
|
|
|
185 |
return this;
|
|
|
186 |
}
|
|
|
187 |
|
|
|
188 |
/**
|
|
|
189 |
* Shipping services describing shipping fees calculation.
|
|
|
190 |
* @return value or {@code null} for none
|
|
|
191 |
*/
|
|
|
192 |
public java.util.List<AccountShippingShippingService> getServices() {
|
|
|
193 |
return services;
|
|
|
194 |
}
|
|
|
195 |
|
|
|
196 |
/**
|
|
|
197 |
* Shipping services describing shipping fees calculation.
|
|
|
198 |
* @param services services or {@code null} for none
|
|
|
199 |
*/
|
|
|
200 |
public AccountShipping setServices(java.util.List<AccountShippingShippingService> services) {
|
|
|
201 |
this.services = services;
|
|
|
202 |
return this;
|
|
|
203 |
}
|
|
|
204 |
|
|
|
205 |
@Override
|
|
|
206 |
public AccountShipping set(String fieldName, Object value) {
|
|
|
207 |
return (AccountShipping) super.set(fieldName, value);
|
|
|
208 |
}
|
|
|
209 |
|
|
|
210 |
@Override
|
|
|
211 |
public AccountShipping clone() {
|
|
|
212 |
return (AccountShipping) super.clone();
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
}
|