| 14384 |
kshitij.so |
1 |
/**
|
|
|
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
|
|
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.dtr;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
|
|
18 |
import java.nio.ByteBuffer;
|
|
|
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
public class DtrService {
|
|
|
24 |
|
|
|
25 |
public interface Iface extends in.shop2020.generic.GenericService.Iface {
|
|
|
26 |
|
|
|
27 |
public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException;
|
|
|
28 |
|
| 15167 |
kshitij.so |
29 |
public void updateLatestPriceForItem(long id) throws org.apache.thrift.TException;
|
|
|
30 |
|
| 14384 |
kshitij.so |
31 |
}
|
|
|
32 |
|
|
|
33 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
34 |
|
|
|
35 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestPricing_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
36 |
|
| 15167 |
kshitij.so |
37 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
38 |
|
| 14384 |
kshitij.so |
39 |
}
|
|
|
40 |
|
|
|
41 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
|
|
42 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
43 |
public Factory() {}
|
|
|
44 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
45 |
return new Client(prot);
|
|
|
46 |
}
|
|
|
47 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
48 |
return new Client(iprot, oprot);
|
|
|
49 |
}
|
|
|
50 |
}
|
|
|
51 |
|
|
|
52 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
|
|
53 |
{
|
|
|
54 |
super(prot, prot);
|
|
|
55 |
}
|
|
|
56 |
|
|
|
57 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
58 |
super(iprot, oprot);
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
|
|
|
62 |
{
|
|
|
63 |
send_getLatestPricing(skuBundleId, source_id);
|
|
|
64 |
return recv_getLatestPricing();
|
|
|
65 |
}
|
|
|
66 |
|
|
|
67 |
public void send_getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
|
|
|
68 |
{
|
|
|
69 |
getLatestPricing_args args = new getLatestPricing_args();
|
|
|
70 |
args.setSkuBundleId(skuBundleId);
|
|
|
71 |
args.setSource_id(source_id);
|
|
|
72 |
sendBase("getLatestPricing", args);
|
|
|
73 |
}
|
|
|
74 |
|
|
|
75 |
public List<LivePricing> recv_getLatestPricing() throws org.apache.thrift.TException
|
|
|
76 |
{
|
|
|
77 |
getLatestPricing_result result = new getLatestPricing_result();
|
|
|
78 |
receiveBase(result, "getLatestPricing");
|
|
|
79 |
if (result.isSetSuccess()) {
|
|
|
80 |
return result.success;
|
|
|
81 |
}
|
|
|
82 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestPricing failed: unknown result");
|
|
|
83 |
}
|
|
|
84 |
|
| 15167 |
kshitij.so |
85 |
public void updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
|
|
86 |
{
|
|
|
87 |
send_updateLatestPriceForItem(id);
|
|
|
88 |
}
|
|
|
89 |
|
|
|
90 |
public void send_updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
|
|
91 |
{
|
|
|
92 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
|
|
93 |
args.setId(id);
|
|
|
94 |
sendBase("updateLatestPriceForItem", args);
|
|
|
95 |
}
|
|
|
96 |
|
| 14384 |
kshitij.so |
97 |
}
|
|
|
98 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
99 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
100 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
101 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
102 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
103 |
this.clientManager = clientManager;
|
|
|
104 |
this.protocolFactory = protocolFactory;
|
|
|
105 |
}
|
|
|
106 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
107 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
108 |
}
|
|
|
109 |
}
|
|
|
110 |
|
|
|
111 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
112 |
super(protocolFactory, clientManager, transport);
|
|
|
113 |
}
|
|
|
114 |
|
|
|
115 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<getLatestPricing_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
116 |
checkReady();
|
|
|
117 |
getLatestPricing_call method_call = new getLatestPricing_call(skuBundleId, source_id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
118 |
this.___currentMethod = method_call;
|
|
|
119 |
___manager.call(method_call);
|
|
|
120 |
}
|
|
|
121 |
|
|
|
122 |
public static class getLatestPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
123 |
private long skuBundleId;
|
|
|
124 |
private long source_id;
|
|
|
125 |
public getLatestPricing_call(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<getLatestPricing_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
126 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
127 |
this.skuBundleId = skuBundleId;
|
|
|
128 |
this.source_id = source_id;
|
|
|
129 |
}
|
|
|
130 |
|
|
|
131 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
132 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
133 |
getLatestPricing_args args = new getLatestPricing_args();
|
|
|
134 |
args.setSkuBundleId(skuBundleId);
|
|
|
135 |
args.setSource_id(source_id);
|
|
|
136 |
args.write(prot);
|
|
|
137 |
prot.writeMessageEnd();
|
|
|
138 |
}
|
|
|
139 |
|
|
|
140 |
public List<LivePricing> getResult() throws org.apache.thrift.TException {
|
|
|
141 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
142 |
throw new IllegalStateException("Method call not finished!");
|
|
|
143 |
}
|
|
|
144 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
145 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
146 |
return (new Client(prot)).recv_getLatestPricing();
|
|
|
147 |
}
|
|
|
148 |
}
|
|
|
149 |
|
| 15167 |
kshitij.so |
150 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
151 |
checkReady();
|
|
|
152 |
updateLatestPriceForItem_call method_call = new updateLatestPriceForItem_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
153 |
this.___currentMethod = method_call;
|
|
|
154 |
___manager.call(method_call);
|
|
|
155 |
}
|
|
|
156 |
|
|
|
157 |
public static class updateLatestPriceForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
158 |
private long id;
|
|
|
159 |
public updateLatestPriceForItem_call(long id, org.apache.thrift.async.AsyncMethodCallback<updateLatestPriceForItem_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
|
|
|
160 |
super(client, protocolFactory, transport, resultHandler, true);
|
|
|
161 |
this.id = id;
|
|
|
162 |
}
|
|
|
163 |
|
|
|
164 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
165 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLatestPriceForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
166 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
|
|
167 |
args.setId(id);
|
|
|
168 |
args.write(prot);
|
|
|
169 |
prot.writeMessageEnd();
|
|
|
170 |
}
|
|
|
171 |
|
|
|
172 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
173 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
174 |
throw new IllegalStateException("Method call not finished!");
|
|
|
175 |
}
|
|
|
176 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
177 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
178 |
}
|
|
|
179 |
}
|
|
|
180 |
|
| 14384 |
kshitij.so |
181 |
}
|
|
|
182 |
|
|
|
183 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
184 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
185 |
public Processor(I iface) {
|
|
|
186 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
187 |
}
|
|
|
188 |
|
|
|
189 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
190 |
super(iface, getProcessMap(processMap));
|
|
|
191 |
}
|
|
|
192 |
|
|
|
193 |
private static <I extends Iface> Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> getProcessMap(Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
194 |
processMap.put("getLatestPricing", new getLatestPricing());
|
| 15167 |
kshitij.so |
195 |
processMap.put("updateLatestPriceForItem", new updateLatestPriceForItem());
|
| 14384 |
kshitij.so |
196 |
return processMap;
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
private static class getLatestPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestPricing_args> {
|
|
|
200 |
public getLatestPricing() {
|
|
|
201 |
super("getLatestPricing");
|
|
|
202 |
}
|
|
|
203 |
|
|
|
204 |
protected getLatestPricing_args getEmptyArgsInstance() {
|
|
|
205 |
return new getLatestPricing_args();
|
|
|
206 |
}
|
|
|
207 |
|
|
|
208 |
protected getLatestPricing_result getResult(I iface, getLatestPricing_args args) throws org.apache.thrift.TException {
|
|
|
209 |
getLatestPricing_result result = new getLatestPricing_result();
|
|
|
210 |
result.success = iface.getLatestPricing(args.skuBundleId, args.source_id);
|
|
|
211 |
return result;
|
|
|
212 |
}
|
|
|
213 |
}
|
|
|
214 |
|
| 15167 |
kshitij.so |
215 |
private static class updateLatestPriceForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLatestPriceForItem_args> {
|
|
|
216 |
public updateLatestPriceForItem() {
|
|
|
217 |
super("updateLatestPriceForItem");
|
|
|
218 |
}
|
|
|
219 |
|
|
|
220 |
protected updateLatestPriceForItem_args getEmptyArgsInstance() {
|
|
|
221 |
return new updateLatestPriceForItem_args();
|
|
|
222 |
}
|
|
|
223 |
|
|
|
224 |
protected org.apache.thrift.TBase getResult(I iface, updateLatestPriceForItem_args args) throws org.apache.thrift.TException {
|
|
|
225 |
iface.updateLatestPriceForItem(args.id);
|
|
|
226 |
return null;
|
|
|
227 |
}
|
|
|
228 |
}
|
|
|
229 |
|
| 14384 |
kshitij.so |
230 |
}
|
|
|
231 |
|
|
|
232 |
public static class getLatestPricing_args implements org.apache.thrift.TBase<getLatestPricing_args, getLatestPricing_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
233 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_args");
|
|
|
234 |
|
|
|
235 |
private static final org.apache.thrift.protocol.TField SKU_BUNDLE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("skuBundleId", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
236 |
private static final org.apache.thrift.protocol.TField SOURCE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("source_id", org.apache.thrift.protocol.TType.I64, (short)2);
|
|
|
237 |
|
|
|
238 |
private long skuBundleId; // required
|
|
|
239 |
private long source_id; // required
|
|
|
240 |
|
|
|
241 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
242 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
243 |
SKU_BUNDLE_ID((short)1, "skuBundleId"),
|
|
|
244 |
SOURCE_ID((short)2, "source_id");
|
|
|
245 |
|
|
|
246 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
247 |
|
|
|
248 |
static {
|
|
|
249 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
250 |
byName.put(field.getFieldName(), field);
|
|
|
251 |
}
|
|
|
252 |
}
|
|
|
253 |
|
|
|
254 |
/**
|
|
|
255 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
256 |
*/
|
|
|
257 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
258 |
switch(fieldId) {
|
|
|
259 |
case 1: // SKU_BUNDLE_ID
|
|
|
260 |
return SKU_BUNDLE_ID;
|
|
|
261 |
case 2: // SOURCE_ID
|
|
|
262 |
return SOURCE_ID;
|
|
|
263 |
default:
|
|
|
264 |
return null;
|
|
|
265 |
}
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
/**
|
|
|
269 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
270 |
* if it is not found.
|
|
|
271 |
*/
|
|
|
272 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
273 |
_Fields fields = findByThriftId(fieldId);
|
|
|
274 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
275 |
return fields;
|
|
|
276 |
}
|
|
|
277 |
|
|
|
278 |
/**
|
|
|
279 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
280 |
*/
|
|
|
281 |
public static _Fields findByName(String name) {
|
|
|
282 |
return byName.get(name);
|
|
|
283 |
}
|
|
|
284 |
|
|
|
285 |
private final short _thriftId;
|
|
|
286 |
private final String _fieldName;
|
|
|
287 |
|
|
|
288 |
_Fields(short thriftId, String fieldName) {
|
|
|
289 |
_thriftId = thriftId;
|
|
|
290 |
_fieldName = fieldName;
|
|
|
291 |
}
|
|
|
292 |
|
|
|
293 |
public short getThriftFieldId() {
|
|
|
294 |
return _thriftId;
|
|
|
295 |
}
|
|
|
296 |
|
|
|
297 |
public String getFieldName() {
|
|
|
298 |
return _fieldName;
|
|
|
299 |
}
|
|
|
300 |
}
|
|
|
301 |
|
|
|
302 |
// isset id assignments
|
|
|
303 |
private static final int __SKUBUNDLEID_ISSET_ID = 0;
|
|
|
304 |
private static final int __SOURCE_ID_ISSET_ID = 1;
|
|
|
305 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
306 |
|
|
|
307 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
308 |
static {
|
|
|
309 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
310 |
tmpMap.put(_Fields.SKU_BUNDLE_ID, new org.apache.thrift.meta_data.FieldMetaData("skuBundleId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
311 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
312 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
313 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
314 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
315 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_args.class, metaDataMap);
|
|
|
316 |
}
|
|
|
317 |
|
|
|
318 |
public getLatestPricing_args() {
|
|
|
319 |
}
|
|
|
320 |
|
|
|
321 |
public getLatestPricing_args(
|
|
|
322 |
long skuBundleId,
|
|
|
323 |
long source_id)
|
|
|
324 |
{
|
|
|
325 |
this();
|
|
|
326 |
this.skuBundleId = skuBundleId;
|
|
|
327 |
setSkuBundleIdIsSet(true);
|
|
|
328 |
this.source_id = source_id;
|
|
|
329 |
setSource_idIsSet(true);
|
|
|
330 |
}
|
|
|
331 |
|
|
|
332 |
/**
|
|
|
333 |
* Performs a deep copy on <i>other</i>.
|
|
|
334 |
*/
|
|
|
335 |
public getLatestPricing_args(getLatestPricing_args other) {
|
|
|
336 |
__isset_bit_vector.clear();
|
|
|
337 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
338 |
this.skuBundleId = other.skuBundleId;
|
|
|
339 |
this.source_id = other.source_id;
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public getLatestPricing_args deepCopy() {
|
|
|
343 |
return new getLatestPricing_args(this);
|
|
|
344 |
}
|
|
|
345 |
|
|
|
346 |
@Override
|
|
|
347 |
public void clear() {
|
|
|
348 |
setSkuBundleIdIsSet(false);
|
|
|
349 |
this.skuBundleId = 0;
|
|
|
350 |
setSource_idIsSet(false);
|
|
|
351 |
this.source_id = 0;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public long getSkuBundleId() {
|
|
|
355 |
return this.skuBundleId;
|
|
|
356 |
}
|
|
|
357 |
|
|
|
358 |
public void setSkuBundleId(long skuBundleId) {
|
|
|
359 |
this.skuBundleId = skuBundleId;
|
|
|
360 |
setSkuBundleIdIsSet(true);
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public void unsetSkuBundleId() {
|
|
|
364 |
__isset_bit_vector.clear(__SKUBUNDLEID_ISSET_ID);
|
|
|
365 |
}
|
|
|
366 |
|
|
|
367 |
/** Returns true if field skuBundleId is set (has been assigned a value) and false otherwise */
|
|
|
368 |
public boolean isSetSkuBundleId() {
|
|
|
369 |
return __isset_bit_vector.get(__SKUBUNDLEID_ISSET_ID);
|
|
|
370 |
}
|
|
|
371 |
|
|
|
372 |
public void setSkuBundleIdIsSet(boolean value) {
|
|
|
373 |
__isset_bit_vector.set(__SKUBUNDLEID_ISSET_ID, value);
|
|
|
374 |
}
|
|
|
375 |
|
|
|
376 |
public long getSource_id() {
|
|
|
377 |
return this.source_id;
|
|
|
378 |
}
|
|
|
379 |
|
|
|
380 |
public void setSource_id(long source_id) {
|
|
|
381 |
this.source_id = source_id;
|
|
|
382 |
setSource_idIsSet(true);
|
|
|
383 |
}
|
|
|
384 |
|
|
|
385 |
public void unsetSource_id() {
|
|
|
386 |
__isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
|
|
|
387 |
}
|
|
|
388 |
|
|
|
389 |
/** Returns true if field source_id is set (has been assigned a value) and false otherwise */
|
|
|
390 |
public boolean isSetSource_id() {
|
|
|
391 |
return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public void setSource_idIsSet(boolean value) {
|
|
|
395 |
__isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
|
|
|
396 |
}
|
|
|
397 |
|
|
|
398 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
399 |
switch (field) {
|
|
|
400 |
case SKU_BUNDLE_ID:
|
|
|
401 |
if (value == null) {
|
|
|
402 |
unsetSkuBundleId();
|
|
|
403 |
} else {
|
|
|
404 |
setSkuBundleId((Long)value);
|
|
|
405 |
}
|
|
|
406 |
break;
|
|
|
407 |
|
|
|
408 |
case SOURCE_ID:
|
|
|
409 |
if (value == null) {
|
|
|
410 |
unsetSource_id();
|
|
|
411 |
} else {
|
|
|
412 |
setSource_id((Long)value);
|
|
|
413 |
}
|
|
|
414 |
break;
|
|
|
415 |
|
|
|
416 |
}
|
|
|
417 |
}
|
|
|
418 |
|
|
|
419 |
public Object getFieldValue(_Fields field) {
|
|
|
420 |
switch (field) {
|
|
|
421 |
case SKU_BUNDLE_ID:
|
|
|
422 |
return Long.valueOf(getSkuBundleId());
|
|
|
423 |
|
|
|
424 |
case SOURCE_ID:
|
|
|
425 |
return Long.valueOf(getSource_id());
|
|
|
426 |
|
|
|
427 |
}
|
|
|
428 |
throw new IllegalStateException();
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
432 |
public boolean isSet(_Fields field) {
|
|
|
433 |
if (field == null) {
|
|
|
434 |
throw new IllegalArgumentException();
|
|
|
435 |
}
|
|
|
436 |
|
|
|
437 |
switch (field) {
|
|
|
438 |
case SKU_BUNDLE_ID:
|
|
|
439 |
return isSetSkuBundleId();
|
|
|
440 |
case SOURCE_ID:
|
|
|
441 |
return isSetSource_id();
|
|
|
442 |
}
|
|
|
443 |
throw new IllegalStateException();
|
|
|
444 |
}
|
|
|
445 |
|
|
|
446 |
@Override
|
|
|
447 |
public boolean equals(Object that) {
|
|
|
448 |
if (that == null)
|
|
|
449 |
return false;
|
|
|
450 |
if (that instanceof getLatestPricing_args)
|
|
|
451 |
return this.equals((getLatestPricing_args)that);
|
|
|
452 |
return false;
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public boolean equals(getLatestPricing_args that) {
|
|
|
456 |
if (that == null)
|
|
|
457 |
return false;
|
|
|
458 |
|
|
|
459 |
boolean this_present_skuBundleId = true;
|
|
|
460 |
boolean that_present_skuBundleId = true;
|
|
|
461 |
if (this_present_skuBundleId || that_present_skuBundleId) {
|
|
|
462 |
if (!(this_present_skuBundleId && that_present_skuBundleId))
|
|
|
463 |
return false;
|
|
|
464 |
if (this.skuBundleId != that.skuBundleId)
|
|
|
465 |
return false;
|
|
|
466 |
}
|
|
|
467 |
|
|
|
468 |
boolean this_present_source_id = true;
|
|
|
469 |
boolean that_present_source_id = true;
|
|
|
470 |
if (this_present_source_id || that_present_source_id) {
|
|
|
471 |
if (!(this_present_source_id && that_present_source_id))
|
|
|
472 |
return false;
|
|
|
473 |
if (this.source_id != that.source_id)
|
|
|
474 |
return false;
|
|
|
475 |
}
|
|
|
476 |
|
|
|
477 |
return true;
|
|
|
478 |
}
|
|
|
479 |
|
|
|
480 |
@Override
|
|
|
481 |
public int hashCode() {
|
|
|
482 |
return 0;
|
|
|
483 |
}
|
|
|
484 |
|
|
|
485 |
public int compareTo(getLatestPricing_args other) {
|
|
|
486 |
if (!getClass().equals(other.getClass())) {
|
|
|
487 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
488 |
}
|
|
|
489 |
|
|
|
490 |
int lastComparison = 0;
|
|
|
491 |
getLatestPricing_args typedOther = (getLatestPricing_args)other;
|
|
|
492 |
|
|
|
493 |
lastComparison = Boolean.valueOf(isSetSkuBundleId()).compareTo(typedOther.isSetSkuBundleId());
|
|
|
494 |
if (lastComparison != 0) {
|
|
|
495 |
return lastComparison;
|
|
|
496 |
}
|
|
|
497 |
if (isSetSkuBundleId()) {
|
|
|
498 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuBundleId, typedOther.skuBundleId);
|
|
|
499 |
if (lastComparison != 0) {
|
|
|
500 |
return lastComparison;
|
|
|
501 |
}
|
|
|
502 |
}
|
|
|
503 |
lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
|
|
|
504 |
if (lastComparison != 0) {
|
|
|
505 |
return lastComparison;
|
|
|
506 |
}
|
|
|
507 |
if (isSetSource_id()) {
|
|
|
508 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
|
|
|
509 |
if (lastComparison != 0) {
|
|
|
510 |
return lastComparison;
|
|
|
511 |
}
|
|
|
512 |
}
|
|
|
513 |
return 0;
|
|
|
514 |
}
|
|
|
515 |
|
|
|
516 |
public _Fields fieldForId(int fieldId) {
|
|
|
517 |
return _Fields.findByThriftId(fieldId);
|
|
|
518 |
}
|
|
|
519 |
|
|
|
520 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
521 |
org.apache.thrift.protocol.TField field;
|
|
|
522 |
iprot.readStructBegin();
|
|
|
523 |
while (true)
|
|
|
524 |
{
|
|
|
525 |
field = iprot.readFieldBegin();
|
|
|
526 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
527 |
break;
|
|
|
528 |
}
|
|
|
529 |
switch (field.id) {
|
|
|
530 |
case 1: // SKU_BUNDLE_ID
|
|
|
531 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
532 |
this.skuBundleId = iprot.readI64();
|
|
|
533 |
setSkuBundleIdIsSet(true);
|
|
|
534 |
} else {
|
|
|
535 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
536 |
}
|
|
|
537 |
break;
|
|
|
538 |
case 2: // SOURCE_ID
|
|
|
539 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
540 |
this.source_id = iprot.readI64();
|
|
|
541 |
setSource_idIsSet(true);
|
|
|
542 |
} else {
|
|
|
543 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
544 |
}
|
|
|
545 |
break;
|
|
|
546 |
default:
|
|
|
547 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
548 |
}
|
|
|
549 |
iprot.readFieldEnd();
|
|
|
550 |
}
|
|
|
551 |
iprot.readStructEnd();
|
|
|
552 |
validate();
|
|
|
553 |
}
|
|
|
554 |
|
|
|
555 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
556 |
validate();
|
|
|
557 |
|
|
|
558 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
559 |
oprot.writeFieldBegin(SKU_BUNDLE_ID_FIELD_DESC);
|
|
|
560 |
oprot.writeI64(this.skuBundleId);
|
|
|
561 |
oprot.writeFieldEnd();
|
|
|
562 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
|
|
563 |
oprot.writeI64(this.source_id);
|
|
|
564 |
oprot.writeFieldEnd();
|
|
|
565 |
oprot.writeFieldStop();
|
|
|
566 |
oprot.writeStructEnd();
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
@Override
|
|
|
570 |
public String toString() {
|
|
|
571 |
StringBuilder sb = new StringBuilder("getLatestPricing_args(");
|
|
|
572 |
boolean first = true;
|
|
|
573 |
|
|
|
574 |
sb.append("skuBundleId:");
|
|
|
575 |
sb.append(this.skuBundleId);
|
|
|
576 |
first = false;
|
|
|
577 |
if (!first) sb.append(", ");
|
|
|
578 |
sb.append("source_id:");
|
|
|
579 |
sb.append(this.source_id);
|
|
|
580 |
first = false;
|
|
|
581 |
sb.append(")");
|
|
|
582 |
return sb.toString();
|
|
|
583 |
}
|
|
|
584 |
|
|
|
585 |
public void validate() throws org.apache.thrift.TException {
|
|
|
586 |
// check for required fields
|
|
|
587 |
}
|
|
|
588 |
|
|
|
589 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
590 |
try {
|
|
|
591 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
592 |
} catch (org.apache.thrift.TException te) {
|
|
|
593 |
throw new java.io.IOException(te);
|
|
|
594 |
}
|
|
|
595 |
}
|
|
|
596 |
|
|
|
597 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
598 |
try {
|
|
|
599 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
600 |
__isset_bit_vector = new BitSet(1);
|
|
|
601 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
602 |
} catch (org.apache.thrift.TException te) {
|
|
|
603 |
throw new java.io.IOException(te);
|
|
|
604 |
}
|
|
|
605 |
}
|
|
|
606 |
|
|
|
607 |
}
|
|
|
608 |
|
|
|
609 |
public static class getLatestPricing_result implements org.apache.thrift.TBase<getLatestPricing_result, getLatestPricing_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
610 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_result");
|
|
|
611 |
|
|
|
612 |
private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.LIST, (short)0);
|
|
|
613 |
|
|
|
614 |
private List<LivePricing> success; // required
|
|
|
615 |
|
|
|
616 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
617 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
618 |
SUCCESS((short)0, "success");
|
|
|
619 |
|
|
|
620 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
621 |
|
|
|
622 |
static {
|
|
|
623 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
624 |
byName.put(field.getFieldName(), field);
|
|
|
625 |
}
|
|
|
626 |
}
|
|
|
627 |
|
|
|
628 |
/**
|
|
|
629 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
630 |
*/
|
|
|
631 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
632 |
switch(fieldId) {
|
|
|
633 |
case 0: // SUCCESS
|
|
|
634 |
return SUCCESS;
|
|
|
635 |
default:
|
|
|
636 |
return null;
|
|
|
637 |
}
|
|
|
638 |
}
|
|
|
639 |
|
|
|
640 |
/**
|
|
|
641 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
642 |
* if it is not found.
|
|
|
643 |
*/
|
|
|
644 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
645 |
_Fields fields = findByThriftId(fieldId);
|
|
|
646 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
647 |
return fields;
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
/**
|
|
|
651 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
652 |
*/
|
|
|
653 |
public static _Fields findByName(String name) {
|
|
|
654 |
return byName.get(name);
|
|
|
655 |
}
|
|
|
656 |
|
|
|
657 |
private final short _thriftId;
|
|
|
658 |
private final String _fieldName;
|
|
|
659 |
|
|
|
660 |
_Fields(short thriftId, String fieldName) {
|
|
|
661 |
_thriftId = thriftId;
|
|
|
662 |
_fieldName = fieldName;
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
public short getThriftFieldId() {
|
|
|
666 |
return _thriftId;
|
|
|
667 |
}
|
|
|
668 |
|
|
|
669 |
public String getFieldName() {
|
|
|
670 |
return _fieldName;
|
|
|
671 |
}
|
|
|
672 |
}
|
|
|
673 |
|
|
|
674 |
// isset id assignments
|
|
|
675 |
|
|
|
676 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
677 |
static {
|
|
|
678 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
679 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
680 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
681 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LivePricing.class))));
|
|
|
682 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
683 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_result.class, metaDataMap);
|
|
|
684 |
}
|
|
|
685 |
|
|
|
686 |
public getLatestPricing_result() {
|
|
|
687 |
}
|
|
|
688 |
|
|
|
689 |
public getLatestPricing_result(
|
|
|
690 |
List<LivePricing> success)
|
|
|
691 |
{
|
|
|
692 |
this();
|
|
|
693 |
this.success = success;
|
|
|
694 |
}
|
|
|
695 |
|
|
|
696 |
/**
|
|
|
697 |
* Performs a deep copy on <i>other</i>.
|
|
|
698 |
*/
|
|
|
699 |
public getLatestPricing_result(getLatestPricing_result other) {
|
|
|
700 |
if (other.isSetSuccess()) {
|
|
|
701 |
List<LivePricing> __this__success = new ArrayList<LivePricing>();
|
|
|
702 |
for (LivePricing other_element : other.success) {
|
|
|
703 |
__this__success.add(new LivePricing(other_element));
|
|
|
704 |
}
|
|
|
705 |
this.success = __this__success;
|
|
|
706 |
}
|
|
|
707 |
}
|
|
|
708 |
|
|
|
709 |
public getLatestPricing_result deepCopy() {
|
|
|
710 |
return new getLatestPricing_result(this);
|
|
|
711 |
}
|
|
|
712 |
|
|
|
713 |
@Override
|
|
|
714 |
public void clear() {
|
|
|
715 |
this.success = null;
|
|
|
716 |
}
|
|
|
717 |
|
|
|
718 |
public int getSuccessSize() {
|
|
|
719 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
720 |
}
|
|
|
721 |
|
|
|
722 |
public java.util.Iterator<LivePricing> getSuccessIterator() {
|
|
|
723 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
724 |
}
|
|
|
725 |
|
|
|
726 |
public void addToSuccess(LivePricing elem) {
|
|
|
727 |
if (this.success == null) {
|
|
|
728 |
this.success = new ArrayList<LivePricing>();
|
|
|
729 |
}
|
|
|
730 |
this.success.add(elem);
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
public List<LivePricing> getSuccess() {
|
|
|
734 |
return this.success;
|
|
|
735 |
}
|
|
|
736 |
|
|
|
737 |
public void setSuccess(List<LivePricing> success) {
|
|
|
738 |
this.success = success;
|
|
|
739 |
}
|
|
|
740 |
|
|
|
741 |
public void unsetSuccess() {
|
|
|
742 |
this.success = null;
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
746 |
public boolean isSetSuccess() {
|
|
|
747 |
return this.success != null;
|
|
|
748 |
}
|
|
|
749 |
|
|
|
750 |
public void setSuccessIsSet(boolean value) {
|
|
|
751 |
if (!value) {
|
|
|
752 |
this.success = null;
|
|
|
753 |
}
|
|
|
754 |
}
|
|
|
755 |
|
|
|
756 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
757 |
switch (field) {
|
|
|
758 |
case SUCCESS:
|
|
|
759 |
if (value == null) {
|
|
|
760 |
unsetSuccess();
|
|
|
761 |
} else {
|
|
|
762 |
setSuccess((List<LivePricing>)value);
|
|
|
763 |
}
|
|
|
764 |
break;
|
|
|
765 |
|
|
|
766 |
}
|
|
|
767 |
}
|
|
|
768 |
|
|
|
769 |
public Object getFieldValue(_Fields field) {
|
|
|
770 |
switch (field) {
|
|
|
771 |
case SUCCESS:
|
|
|
772 |
return getSuccess();
|
|
|
773 |
|
|
|
774 |
}
|
|
|
775 |
throw new IllegalStateException();
|
|
|
776 |
}
|
|
|
777 |
|
|
|
778 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
779 |
public boolean isSet(_Fields field) {
|
|
|
780 |
if (field == null) {
|
|
|
781 |
throw new IllegalArgumentException();
|
|
|
782 |
}
|
|
|
783 |
|
|
|
784 |
switch (field) {
|
|
|
785 |
case SUCCESS:
|
|
|
786 |
return isSetSuccess();
|
|
|
787 |
}
|
|
|
788 |
throw new IllegalStateException();
|
|
|
789 |
}
|
|
|
790 |
|
|
|
791 |
@Override
|
|
|
792 |
public boolean equals(Object that) {
|
|
|
793 |
if (that == null)
|
|
|
794 |
return false;
|
|
|
795 |
if (that instanceof getLatestPricing_result)
|
|
|
796 |
return this.equals((getLatestPricing_result)that);
|
|
|
797 |
return false;
|
|
|
798 |
}
|
|
|
799 |
|
|
|
800 |
public boolean equals(getLatestPricing_result that) {
|
|
|
801 |
if (that == null)
|
|
|
802 |
return false;
|
|
|
803 |
|
|
|
804 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
805 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
806 |
if (this_present_success || that_present_success) {
|
|
|
807 |
if (!(this_present_success && that_present_success))
|
|
|
808 |
return false;
|
|
|
809 |
if (!this.success.equals(that.success))
|
|
|
810 |
return false;
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
return true;
|
|
|
814 |
}
|
|
|
815 |
|
|
|
816 |
@Override
|
|
|
817 |
public int hashCode() {
|
|
|
818 |
return 0;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
public int compareTo(getLatestPricing_result other) {
|
|
|
822 |
if (!getClass().equals(other.getClass())) {
|
|
|
823 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
824 |
}
|
|
|
825 |
|
|
|
826 |
int lastComparison = 0;
|
|
|
827 |
getLatestPricing_result typedOther = (getLatestPricing_result)other;
|
|
|
828 |
|
|
|
829 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
830 |
if (lastComparison != 0) {
|
|
|
831 |
return lastComparison;
|
|
|
832 |
}
|
|
|
833 |
if (isSetSuccess()) {
|
|
|
834 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
835 |
if (lastComparison != 0) {
|
|
|
836 |
return lastComparison;
|
|
|
837 |
}
|
|
|
838 |
}
|
|
|
839 |
return 0;
|
|
|
840 |
}
|
|
|
841 |
|
|
|
842 |
public _Fields fieldForId(int fieldId) {
|
|
|
843 |
return _Fields.findByThriftId(fieldId);
|
|
|
844 |
}
|
|
|
845 |
|
|
|
846 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
847 |
org.apache.thrift.protocol.TField field;
|
|
|
848 |
iprot.readStructBegin();
|
|
|
849 |
while (true)
|
|
|
850 |
{
|
|
|
851 |
field = iprot.readFieldBegin();
|
|
|
852 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
853 |
break;
|
|
|
854 |
}
|
|
|
855 |
switch (field.id) {
|
|
|
856 |
case 0: // SUCCESS
|
|
|
857 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
858 |
{
|
|
|
859 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
860 |
this.success = new ArrayList<LivePricing>(_list0.size);
|
|
|
861 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
|
|
862 |
{
|
|
|
863 |
LivePricing _elem2; // required
|
|
|
864 |
_elem2 = new LivePricing();
|
|
|
865 |
_elem2.read(iprot);
|
|
|
866 |
this.success.add(_elem2);
|
|
|
867 |
}
|
|
|
868 |
iprot.readListEnd();
|
|
|
869 |
}
|
|
|
870 |
} else {
|
|
|
871 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
872 |
}
|
|
|
873 |
break;
|
|
|
874 |
default:
|
|
|
875 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
876 |
}
|
|
|
877 |
iprot.readFieldEnd();
|
|
|
878 |
}
|
|
|
879 |
iprot.readStructEnd();
|
|
|
880 |
validate();
|
|
|
881 |
}
|
|
|
882 |
|
|
|
883 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
884 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
885 |
|
|
|
886 |
if (this.isSetSuccess()) {
|
|
|
887 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
888 |
{
|
|
|
889 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
890 |
for (LivePricing _iter3 : this.success)
|
|
|
891 |
{
|
|
|
892 |
_iter3.write(oprot);
|
|
|
893 |
}
|
|
|
894 |
oprot.writeListEnd();
|
|
|
895 |
}
|
|
|
896 |
oprot.writeFieldEnd();
|
|
|
897 |
}
|
|
|
898 |
oprot.writeFieldStop();
|
|
|
899 |
oprot.writeStructEnd();
|
|
|
900 |
}
|
|
|
901 |
|
|
|
902 |
@Override
|
|
|
903 |
public String toString() {
|
|
|
904 |
StringBuilder sb = new StringBuilder("getLatestPricing_result(");
|
|
|
905 |
boolean first = true;
|
|
|
906 |
|
|
|
907 |
sb.append("success:");
|
|
|
908 |
if (this.success == null) {
|
|
|
909 |
sb.append("null");
|
|
|
910 |
} else {
|
|
|
911 |
sb.append(this.success);
|
|
|
912 |
}
|
|
|
913 |
first = false;
|
|
|
914 |
sb.append(")");
|
|
|
915 |
return sb.toString();
|
|
|
916 |
}
|
|
|
917 |
|
|
|
918 |
public void validate() throws org.apache.thrift.TException {
|
|
|
919 |
// check for required fields
|
|
|
920 |
}
|
|
|
921 |
|
|
|
922 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
923 |
try {
|
|
|
924 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
925 |
} catch (org.apache.thrift.TException te) {
|
|
|
926 |
throw new java.io.IOException(te);
|
|
|
927 |
}
|
|
|
928 |
}
|
|
|
929 |
|
|
|
930 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
931 |
try {
|
|
|
932 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
933 |
} catch (org.apache.thrift.TException te) {
|
|
|
934 |
throw new java.io.IOException(te);
|
|
|
935 |
}
|
|
|
936 |
}
|
|
|
937 |
|
|
|
938 |
}
|
|
|
939 |
|
| 15167 |
kshitij.so |
940 |
public static class updateLatestPriceForItem_args implements org.apache.thrift.TBase<updateLatestPriceForItem_args, updateLatestPriceForItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
941 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLatestPriceForItem_args");
|
|
|
942 |
|
|
|
943 |
private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
|
|
|
944 |
|
|
|
945 |
private long id; // required
|
|
|
946 |
|
|
|
947 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
948 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
949 |
ID((short)1, "id");
|
|
|
950 |
|
|
|
951 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
952 |
|
|
|
953 |
static {
|
|
|
954 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
955 |
byName.put(field.getFieldName(), field);
|
|
|
956 |
}
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
/**
|
|
|
960 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
961 |
*/
|
|
|
962 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
963 |
switch(fieldId) {
|
|
|
964 |
case 1: // ID
|
|
|
965 |
return ID;
|
|
|
966 |
default:
|
|
|
967 |
return null;
|
|
|
968 |
}
|
|
|
969 |
}
|
|
|
970 |
|
|
|
971 |
/**
|
|
|
972 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
973 |
* if it is not found.
|
|
|
974 |
*/
|
|
|
975 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
976 |
_Fields fields = findByThriftId(fieldId);
|
|
|
977 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
978 |
return fields;
|
|
|
979 |
}
|
|
|
980 |
|
|
|
981 |
/**
|
|
|
982 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
983 |
*/
|
|
|
984 |
public static _Fields findByName(String name) {
|
|
|
985 |
return byName.get(name);
|
|
|
986 |
}
|
|
|
987 |
|
|
|
988 |
private final short _thriftId;
|
|
|
989 |
private final String _fieldName;
|
|
|
990 |
|
|
|
991 |
_Fields(short thriftId, String fieldName) {
|
|
|
992 |
_thriftId = thriftId;
|
|
|
993 |
_fieldName = fieldName;
|
|
|
994 |
}
|
|
|
995 |
|
|
|
996 |
public short getThriftFieldId() {
|
|
|
997 |
return _thriftId;
|
|
|
998 |
}
|
|
|
999 |
|
|
|
1000 |
public String getFieldName() {
|
|
|
1001 |
return _fieldName;
|
|
|
1002 |
}
|
|
|
1003 |
}
|
|
|
1004 |
|
|
|
1005 |
// isset id assignments
|
|
|
1006 |
private static final int __ID_ISSET_ID = 0;
|
|
|
1007 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
1008 |
|
|
|
1009 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1010 |
static {
|
|
|
1011 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1012 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1013 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1014 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1015 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLatestPriceForItem_args.class, metaDataMap);
|
|
|
1016 |
}
|
|
|
1017 |
|
|
|
1018 |
public updateLatestPriceForItem_args() {
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
public updateLatestPriceForItem_args(
|
|
|
1022 |
long id)
|
|
|
1023 |
{
|
|
|
1024 |
this();
|
|
|
1025 |
this.id = id;
|
|
|
1026 |
setIdIsSet(true);
|
|
|
1027 |
}
|
|
|
1028 |
|
|
|
1029 |
/**
|
|
|
1030 |
* Performs a deep copy on <i>other</i>.
|
|
|
1031 |
*/
|
|
|
1032 |
public updateLatestPriceForItem_args(updateLatestPriceForItem_args other) {
|
|
|
1033 |
__isset_bit_vector.clear();
|
|
|
1034 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1035 |
this.id = other.id;
|
|
|
1036 |
}
|
|
|
1037 |
|
|
|
1038 |
public updateLatestPriceForItem_args deepCopy() {
|
|
|
1039 |
return new updateLatestPriceForItem_args(this);
|
|
|
1040 |
}
|
|
|
1041 |
|
|
|
1042 |
@Override
|
|
|
1043 |
public void clear() {
|
|
|
1044 |
setIdIsSet(false);
|
|
|
1045 |
this.id = 0;
|
|
|
1046 |
}
|
|
|
1047 |
|
|
|
1048 |
public long getId() {
|
|
|
1049 |
return this.id;
|
|
|
1050 |
}
|
|
|
1051 |
|
|
|
1052 |
public void setId(long id) {
|
|
|
1053 |
this.id = id;
|
|
|
1054 |
setIdIsSet(true);
|
|
|
1055 |
}
|
|
|
1056 |
|
|
|
1057 |
public void unsetId() {
|
|
|
1058 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
1059 |
}
|
|
|
1060 |
|
|
|
1061 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
1062 |
public boolean isSetId() {
|
|
|
1063 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
1064 |
}
|
|
|
1065 |
|
|
|
1066 |
public void setIdIsSet(boolean value) {
|
|
|
1067 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
1068 |
}
|
|
|
1069 |
|
|
|
1070 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1071 |
switch (field) {
|
|
|
1072 |
case ID:
|
|
|
1073 |
if (value == null) {
|
|
|
1074 |
unsetId();
|
|
|
1075 |
} else {
|
|
|
1076 |
setId((Long)value);
|
|
|
1077 |
}
|
|
|
1078 |
break;
|
|
|
1079 |
|
|
|
1080 |
}
|
|
|
1081 |
}
|
|
|
1082 |
|
|
|
1083 |
public Object getFieldValue(_Fields field) {
|
|
|
1084 |
switch (field) {
|
|
|
1085 |
case ID:
|
|
|
1086 |
return Long.valueOf(getId());
|
|
|
1087 |
|
|
|
1088 |
}
|
|
|
1089 |
throw new IllegalStateException();
|
|
|
1090 |
}
|
|
|
1091 |
|
|
|
1092 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1093 |
public boolean isSet(_Fields field) {
|
|
|
1094 |
if (field == null) {
|
|
|
1095 |
throw new IllegalArgumentException();
|
|
|
1096 |
}
|
|
|
1097 |
|
|
|
1098 |
switch (field) {
|
|
|
1099 |
case ID:
|
|
|
1100 |
return isSetId();
|
|
|
1101 |
}
|
|
|
1102 |
throw new IllegalStateException();
|
|
|
1103 |
}
|
|
|
1104 |
|
|
|
1105 |
@Override
|
|
|
1106 |
public boolean equals(Object that) {
|
|
|
1107 |
if (that == null)
|
|
|
1108 |
return false;
|
|
|
1109 |
if (that instanceof updateLatestPriceForItem_args)
|
|
|
1110 |
return this.equals((updateLatestPriceForItem_args)that);
|
|
|
1111 |
return false;
|
|
|
1112 |
}
|
|
|
1113 |
|
|
|
1114 |
public boolean equals(updateLatestPriceForItem_args that) {
|
|
|
1115 |
if (that == null)
|
|
|
1116 |
return false;
|
|
|
1117 |
|
|
|
1118 |
boolean this_present_id = true;
|
|
|
1119 |
boolean that_present_id = true;
|
|
|
1120 |
if (this_present_id || that_present_id) {
|
|
|
1121 |
if (!(this_present_id && that_present_id))
|
|
|
1122 |
return false;
|
|
|
1123 |
if (this.id != that.id)
|
|
|
1124 |
return false;
|
|
|
1125 |
}
|
|
|
1126 |
|
|
|
1127 |
return true;
|
|
|
1128 |
}
|
|
|
1129 |
|
|
|
1130 |
@Override
|
|
|
1131 |
public int hashCode() {
|
|
|
1132 |
return 0;
|
|
|
1133 |
}
|
|
|
1134 |
|
|
|
1135 |
public int compareTo(updateLatestPriceForItem_args other) {
|
|
|
1136 |
if (!getClass().equals(other.getClass())) {
|
|
|
1137 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1138 |
}
|
|
|
1139 |
|
|
|
1140 |
int lastComparison = 0;
|
|
|
1141 |
updateLatestPriceForItem_args typedOther = (updateLatestPriceForItem_args)other;
|
|
|
1142 |
|
|
|
1143 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
1144 |
if (lastComparison != 0) {
|
|
|
1145 |
return lastComparison;
|
|
|
1146 |
}
|
|
|
1147 |
if (isSetId()) {
|
|
|
1148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1149 |
if (lastComparison != 0) {
|
|
|
1150 |
return lastComparison;
|
|
|
1151 |
}
|
|
|
1152 |
}
|
|
|
1153 |
return 0;
|
|
|
1154 |
}
|
|
|
1155 |
|
|
|
1156 |
public _Fields fieldForId(int fieldId) {
|
|
|
1157 |
return _Fields.findByThriftId(fieldId);
|
|
|
1158 |
}
|
|
|
1159 |
|
|
|
1160 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1161 |
org.apache.thrift.protocol.TField field;
|
|
|
1162 |
iprot.readStructBegin();
|
|
|
1163 |
while (true)
|
|
|
1164 |
{
|
|
|
1165 |
field = iprot.readFieldBegin();
|
|
|
1166 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1167 |
break;
|
|
|
1168 |
}
|
|
|
1169 |
switch (field.id) {
|
|
|
1170 |
case 1: // ID
|
|
|
1171 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1172 |
this.id = iprot.readI64();
|
|
|
1173 |
setIdIsSet(true);
|
|
|
1174 |
} else {
|
|
|
1175 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1176 |
}
|
|
|
1177 |
break;
|
|
|
1178 |
default:
|
|
|
1179 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1180 |
}
|
|
|
1181 |
iprot.readFieldEnd();
|
|
|
1182 |
}
|
|
|
1183 |
iprot.readStructEnd();
|
|
|
1184 |
validate();
|
|
|
1185 |
}
|
|
|
1186 |
|
|
|
1187 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1188 |
validate();
|
|
|
1189 |
|
|
|
1190 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1191 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1192 |
oprot.writeI64(this.id);
|
|
|
1193 |
oprot.writeFieldEnd();
|
|
|
1194 |
oprot.writeFieldStop();
|
|
|
1195 |
oprot.writeStructEnd();
|
|
|
1196 |
}
|
|
|
1197 |
|
|
|
1198 |
@Override
|
|
|
1199 |
public String toString() {
|
|
|
1200 |
StringBuilder sb = new StringBuilder("updateLatestPriceForItem_args(");
|
|
|
1201 |
boolean first = true;
|
|
|
1202 |
|
|
|
1203 |
sb.append("id:");
|
|
|
1204 |
sb.append(this.id);
|
|
|
1205 |
first = false;
|
|
|
1206 |
sb.append(")");
|
|
|
1207 |
return sb.toString();
|
|
|
1208 |
}
|
|
|
1209 |
|
|
|
1210 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1211 |
// check for required fields
|
|
|
1212 |
}
|
|
|
1213 |
|
|
|
1214 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1215 |
try {
|
|
|
1216 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1217 |
} catch (org.apache.thrift.TException te) {
|
|
|
1218 |
throw new java.io.IOException(te);
|
|
|
1219 |
}
|
|
|
1220 |
}
|
|
|
1221 |
|
|
|
1222 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1223 |
try {
|
|
|
1224 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1225 |
__isset_bit_vector = new BitSet(1);
|
|
|
1226 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1227 |
} catch (org.apache.thrift.TException te) {
|
|
|
1228 |
throw new java.io.IOException(te);
|
|
|
1229 |
}
|
|
|
1230 |
}
|
|
|
1231 |
|
|
|
1232 |
}
|
|
|
1233 |
|
| 14384 |
kshitij.so |
1234 |
}
|