| 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 |
|
| 19247 |
kshitij.so |
31 |
public List<String> addItemsInBulk(List<BulkItems> bulkItemsList) throws org.apache.thrift.TException;
|
|
|
32 |
|
| 14384 |
kshitij.so |
33 |
}
|
|
|
34 |
|
|
|
35 |
public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
|
|
|
36 |
|
|
|
37 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLatestPricing_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
38 |
|
| 15167 |
kshitij.so |
39 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
40 |
|
| 19247 |
kshitij.so |
41 |
public void addItemsInBulk(List<BulkItems> bulkItemsList, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.addItemsInBulk_call> resultHandler) throws org.apache.thrift.TException;
|
|
|
42 |
|
| 14384 |
kshitij.so |
43 |
}
|
|
|
44 |
|
|
|
45 |
public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
|
|
|
46 |
public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
|
|
|
47 |
public Factory() {}
|
|
|
48 |
public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
|
|
|
49 |
return new Client(prot);
|
|
|
50 |
}
|
|
|
51 |
public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
52 |
return new Client(iprot, oprot);
|
|
|
53 |
}
|
|
|
54 |
}
|
|
|
55 |
|
|
|
56 |
public Client(org.apache.thrift.protocol.TProtocol prot)
|
|
|
57 |
{
|
|
|
58 |
super(prot, prot);
|
|
|
59 |
}
|
|
|
60 |
|
|
|
61 |
public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
|
|
|
62 |
super(iprot, oprot);
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
public List<LivePricing> getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
|
|
|
66 |
{
|
|
|
67 |
send_getLatestPricing(skuBundleId, source_id);
|
|
|
68 |
return recv_getLatestPricing();
|
|
|
69 |
}
|
|
|
70 |
|
|
|
71 |
public void send_getLatestPricing(long skuBundleId, long source_id) throws org.apache.thrift.TException
|
|
|
72 |
{
|
|
|
73 |
getLatestPricing_args args = new getLatestPricing_args();
|
|
|
74 |
args.setSkuBundleId(skuBundleId);
|
|
|
75 |
args.setSource_id(source_id);
|
|
|
76 |
sendBase("getLatestPricing", args);
|
|
|
77 |
}
|
|
|
78 |
|
|
|
79 |
public List<LivePricing> recv_getLatestPricing() throws org.apache.thrift.TException
|
|
|
80 |
{
|
|
|
81 |
getLatestPricing_result result = new getLatestPricing_result();
|
|
|
82 |
receiveBase(result, "getLatestPricing");
|
|
|
83 |
if (result.isSetSuccess()) {
|
|
|
84 |
return result.success;
|
|
|
85 |
}
|
|
|
86 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLatestPricing failed: unknown result");
|
|
|
87 |
}
|
|
|
88 |
|
| 15167 |
kshitij.so |
89 |
public void updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
|
|
90 |
{
|
|
|
91 |
send_updateLatestPriceForItem(id);
|
|
|
92 |
}
|
|
|
93 |
|
|
|
94 |
public void send_updateLatestPriceForItem(long id) throws org.apache.thrift.TException
|
|
|
95 |
{
|
|
|
96 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
|
|
97 |
args.setId(id);
|
|
|
98 |
sendBase("updateLatestPriceForItem", args);
|
|
|
99 |
}
|
|
|
100 |
|
| 19247 |
kshitij.so |
101 |
public List<String> addItemsInBulk(List<BulkItems> bulkItemsList) throws org.apache.thrift.TException
|
|
|
102 |
{
|
|
|
103 |
send_addItemsInBulk(bulkItemsList);
|
|
|
104 |
return recv_addItemsInBulk();
|
|
|
105 |
}
|
|
|
106 |
|
|
|
107 |
public void send_addItemsInBulk(List<BulkItems> bulkItemsList) throws org.apache.thrift.TException
|
|
|
108 |
{
|
|
|
109 |
addItemsInBulk_args args = new addItemsInBulk_args();
|
|
|
110 |
args.setBulkItemsList(bulkItemsList);
|
|
|
111 |
sendBase("addItemsInBulk", args);
|
|
|
112 |
}
|
|
|
113 |
|
|
|
114 |
public List<String> recv_addItemsInBulk() throws org.apache.thrift.TException
|
|
|
115 |
{
|
|
|
116 |
addItemsInBulk_result result = new addItemsInBulk_result();
|
|
|
117 |
receiveBase(result, "addItemsInBulk");
|
|
|
118 |
if (result.isSetSuccess()) {
|
|
|
119 |
return result.success;
|
|
|
120 |
}
|
|
|
121 |
throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "addItemsInBulk failed: unknown result");
|
|
|
122 |
}
|
|
|
123 |
|
| 14384 |
kshitij.so |
124 |
}
|
|
|
125 |
public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
|
|
|
126 |
public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
|
|
|
127 |
private org.apache.thrift.async.TAsyncClientManager clientManager;
|
|
|
128 |
private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
|
|
|
129 |
public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
|
|
|
130 |
this.clientManager = clientManager;
|
|
|
131 |
this.protocolFactory = protocolFactory;
|
|
|
132 |
}
|
|
|
133 |
public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
134 |
return new AsyncClient(protocolFactory, clientManager, transport);
|
|
|
135 |
}
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
|
|
|
139 |
super(protocolFactory, clientManager, transport);
|
|
|
140 |
}
|
|
|
141 |
|
|
|
142 |
public void getLatestPricing(long skuBundleId, long source_id, org.apache.thrift.async.AsyncMethodCallback<getLatestPricing_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
143 |
checkReady();
|
|
|
144 |
getLatestPricing_call method_call = new getLatestPricing_call(skuBundleId, source_id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
145 |
this.___currentMethod = method_call;
|
|
|
146 |
___manager.call(method_call);
|
|
|
147 |
}
|
|
|
148 |
|
|
|
149 |
public static class getLatestPricing_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
150 |
private long skuBundleId;
|
|
|
151 |
private long source_id;
|
|
|
152 |
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 {
|
|
|
153 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
154 |
this.skuBundleId = skuBundleId;
|
|
|
155 |
this.source_id = source_id;
|
|
|
156 |
}
|
|
|
157 |
|
|
|
158 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
159 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLatestPricing", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
160 |
getLatestPricing_args args = new getLatestPricing_args();
|
|
|
161 |
args.setSkuBundleId(skuBundleId);
|
|
|
162 |
args.setSource_id(source_id);
|
|
|
163 |
args.write(prot);
|
|
|
164 |
prot.writeMessageEnd();
|
|
|
165 |
}
|
|
|
166 |
|
|
|
167 |
public List<LivePricing> getResult() throws org.apache.thrift.TException {
|
|
|
168 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
169 |
throw new IllegalStateException("Method call not finished!");
|
|
|
170 |
}
|
|
|
171 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
172 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
173 |
return (new Client(prot)).recv_getLatestPricing();
|
|
|
174 |
}
|
|
|
175 |
}
|
|
|
176 |
|
| 15167 |
kshitij.so |
177 |
public void updateLatestPriceForItem(long id, org.apache.thrift.async.AsyncMethodCallback<updateLatestPriceForItem_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
178 |
checkReady();
|
|
|
179 |
updateLatestPriceForItem_call method_call = new updateLatestPriceForItem_call(id, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
180 |
this.___currentMethod = method_call;
|
|
|
181 |
___manager.call(method_call);
|
|
|
182 |
}
|
|
|
183 |
|
|
|
184 |
public static class updateLatestPriceForItem_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
185 |
private long id;
|
|
|
186 |
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 {
|
|
|
187 |
super(client, protocolFactory, transport, resultHandler, true);
|
|
|
188 |
this.id = id;
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
192 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("updateLatestPriceForItem", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
193 |
updateLatestPriceForItem_args args = new updateLatestPriceForItem_args();
|
|
|
194 |
args.setId(id);
|
|
|
195 |
args.write(prot);
|
|
|
196 |
prot.writeMessageEnd();
|
|
|
197 |
}
|
|
|
198 |
|
|
|
199 |
public void getResult() throws org.apache.thrift.TException {
|
|
|
200 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
201 |
throw new IllegalStateException("Method call not finished!");
|
|
|
202 |
}
|
|
|
203 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
204 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
205 |
}
|
|
|
206 |
}
|
|
|
207 |
|
| 19247 |
kshitij.so |
208 |
public void addItemsInBulk(List<BulkItems> bulkItemsList, org.apache.thrift.async.AsyncMethodCallback<addItemsInBulk_call> resultHandler) throws org.apache.thrift.TException {
|
|
|
209 |
checkReady();
|
|
|
210 |
addItemsInBulk_call method_call = new addItemsInBulk_call(bulkItemsList, resultHandler, this, ___protocolFactory, ___transport);
|
|
|
211 |
this.___currentMethod = method_call;
|
|
|
212 |
___manager.call(method_call);
|
|
|
213 |
}
|
|
|
214 |
|
|
|
215 |
public static class addItemsInBulk_call extends org.apache.thrift.async.TAsyncMethodCall {
|
|
|
216 |
private List<BulkItems> bulkItemsList;
|
|
|
217 |
public addItemsInBulk_call(List<BulkItems> bulkItemsList, org.apache.thrift.async.AsyncMethodCallback<addItemsInBulk_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 {
|
|
|
218 |
super(client, protocolFactory, transport, resultHandler, false);
|
|
|
219 |
this.bulkItemsList = bulkItemsList;
|
|
|
220 |
}
|
|
|
221 |
|
|
|
222 |
public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
|
|
|
223 |
prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("addItemsInBulk", org.apache.thrift.protocol.TMessageType.CALL, 0));
|
|
|
224 |
addItemsInBulk_args args = new addItemsInBulk_args();
|
|
|
225 |
args.setBulkItemsList(bulkItemsList);
|
|
|
226 |
args.write(prot);
|
|
|
227 |
prot.writeMessageEnd();
|
|
|
228 |
}
|
|
|
229 |
|
|
|
230 |
public List<String> getResult() throws org.apache.thrift.TException {
|
|
|
231 |
if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
|
|
|
232 |
throw new IllegalStateException("Method call not finished!");
|
|
|
233 |
}
|
|
|
234 |
org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
|
|
|
235 |
org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
|
|
|
236 |
return (new Client(prot)).recv_addItemsInBulk();
|
|
|
237 |
}
|
|
|
238 |
}
|
|
|
239 |
|
| 14384 |
kshitij.so |
240 |
}
|
|
|
241 |
|
|
|
242 |
public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
|
|
|
243 |
private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
|
|
|
244 |
public Processor(I iface) {
|
|
|
245 |
super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
|
|
|
246 |
}
|
|
|
247 |
|
|
|
248 |
protected Processor(I iface, Map<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>> processMap) {
|
|
|
249 |
super(iface, getProcessMap(processMap));
|
|
|
250 |
}
|
|
|
251 |
|
|
|
252 |
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) {
|
|
|
253 |
processMap.put("getLatestPricing", new getLatestPricing());
|
| 15167 |
kshitij.so |
254 |
processMap.put("updateLatestPriceForItem", new updateLatestPriceForItem());
|
| 19247 |
kshitij.so |
255 |
processMap.put("addItemsInBulk", new addItemsInBulk());
|
| 14384 |
kshitij.so |
256 |
return processMap;
|
|
|
257 |
}
|
|
|
258 |
|
|
|
259 |
private static class getLatestPricing<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLatestPricing_args> {
|
|
|
260 |
public getLatestPricing() {
|
|
|
261 |
super("getLatestPricing");
|
|
|
262 |
}
|
|
|
263 |
|
|
|
264 |
protected getLatestPricing_args getEmptyArgsInstance() {
|
|
|
265 |
return new getLatestPricing_args();
|
|
|
266 |
}
|
|
|
267 |
|
|
|
268 |
protected getLatestPricing_result getResult(I iface, getLatestPricing_args args) throws org.apache.thrift.TException {
|
|
|
269 |
getLatestPricing_result result = new getLatestPricing_result();
|
|
|
270 |
result.success = iface.getLatestPricing(args.skuBundleId, args.source_id);
|
|
|
271 |
return result;
|
|
|
272 |
}
|
|
|
273 |
}
|
|
|
274 |
|
| 15167 |
kshitij.so |
275 |
private static class updateLatestPriceForItem<I extends Iface> extends org.apache.thrift.ProcessFunction<I, updateLatestPriceForItem_args> {
|
|
|
276 |
public updateLatestPriceForItem() {
|
|
|
277 |
super("updateLatestPriceForItem");
|
|
|
278 |
}
|
|
|
279 |
|
|
|
280 |
protected updateLatestPriceForItem_args getEmptyArgsInstance() {
|
|
|
281 |
return new updateLatestPriceForItem_args();
|
|
|
282 |
}
|
|
|
283 |
|
|
|
284 |
protected org.apache.thrift.TBase getResult(I iface, updateLatestPriceForItem_args args) throws org.apache.thrift.TException {
|
|
|
285 |
iface.updateLatestPriceForItem(args.id);
|
|
|
286 |
return null;
|
|
|
287 |
}
|
|
|
288 |
}
|
|
|
289 |
|
| 19247 |
kshitij.so |
290 |
private static class addItemsInBulk<I extends Iface> extends org.apache.thrift.ProcessFunction<I, addItemsInBulk_args> {
|
|
|
291 |
public addItemsInBulk() {
|
|
|
292 |
super("addItemsInBulk");
|
|
|
293 |
}
|
|
|
294 |
|
|
|
295 |
protected addItemsInBulk_args getEmptyArgsInstance() {
|
|
|
296 |
return new addItemsInBulk_args();
|
|
|
297 |
}
|
|
|
298 |
|
|
|
299 |
protected addItemsInBulk_result getResult(I iface, addItemsInBulk_args args) throws org.apache.thrift.TException {
|
|
|
300 |
addItemsInBulk_result result = new addItemsInBulk_result();
|
|
|
301 |
result.success = iface.addItemsInBulk(args.bulkItemsList);
|
|
|
302 |
return result;
|
|
|
303 |
}
|
|
|
304 |
}
|
|
|
305 |
|
| 14384 |
kshitij.so |
306 |
}
|
|
|
307 |
|
|
|
308 |
public static class getLatestPricing_args implements org.apache.thrift.TBase<getLatestPricing_args, getLatestPricing_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
309 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_args");
|
|
|
310 |
|
|
|
311 |
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);
|
|
|
312 |
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);
|
|
|
313 |
|
|
|
314 |
private long skuBundleId; // required
|
|
|
315 |
private long source_id; // required
|
|
|
316 |
|
|
|
317 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
318 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
319 |
SKU_BUNDLE_ID((short)1, "skuBundleId"),
|
|
|
320 |
SOURCE_ID((short)2, "source_id");
|
|
|
321 |
|
|
|
322 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
323 |
|
|
|
324 |
static {
|
|
|
325 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
326 |
byName.put(field.getFieldName(), field);
|
|
|
327 |
}
|
|
|
328 |
}
|
|
|
329 |
|
|
|
330 |
/**
|
|
|
331 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
332 |
*/
|
|
|
333 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
334 |
switch(fieldId) {
|
|
|
335 |
case 1: // SKU_BUNDLE_ID
|
|
|
336 |
return SKU_BUNDLE_ID;
|
|
|
337 |
case 2: // SOURCE_ID
|
|
|
338 |
return SOURCE_ID;
|
|
|
339 |
default:
|
|
|
340 |
return null;
|
|
|
341 |
}
|
|
|
342 |
}
|
|
|
343 |
|
|
|
344 |
/**
|
|
|
345 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
346 |
* if it is not found.
|
|
|
347 |
*/
|
|
|
348 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
349 |
_Fields fields = findByThriftId(fieldId);
|
|
|
350 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
351 |
return fields;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
/**
|
|
|
355 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
356 |
*/
|
|
|
357 |
public static _Fields findByName(String name) {
|
|
|
358 |
return byName.get(name);
|
|
|
359 |
}
|
|
|
360 |
|
|
|
361 |
private final short _thriftId;
|
|
|
362 |
private final String _fieldName;
|
|
|
363 |
|
|
|
364 |
_Fields(short thriftId, String fieldName) {
|
|
|
365 |
_thriftId = thriftId;
|
|
|
366 |
_fieldName = fieldName;
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
public short getThriftFieldId() {
|
|
|
370 |
return _thriftId;
|
|
|
371 |
}
|
|
|
372 |
|
|
|
373 |
public String getFieldName() {
|
|
|
374 |
return _fieldName;
|
|
|
375 |
}
|
|
|
376 |
}
|
|
|
377 |
|
|
|
378 |
// isset id assignments
|
|
|
379 |
private static final int __SKUBUNDLEID_ISSET_ID = 0;
|
|
|
380 |
private static final int __SOURCE_ID_ISSET_ID = 1;
|
|
|
381 |
private BitSet __isset_bit_vector = new BitSet(2);
|
|
|
382 |
|
|
|
383 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
384 |
static {
|
|
|
385 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
386 |
tmpMap.put(_Fields.SKU_BUNDLE_ID, new org.apache.thrift.meta_data.FieldMetaData("skuBundleId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
387 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
388 |
tmpMap.put(_Fields.SOURCE_ID, new org.apache.thrift.meta_data.FieldMetaData("source_id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
389 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
390 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
391 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_args.class, metaDataMap);
|
|
|
392 |
}
|
|
|
393 |
|
|
|
394 |
public getLatestPricing_args() {
|
|
|
395 |
}
|
|
|
396 |
|
|
|
397 |
public getLatestPricing_args(
|
|
|
398 |
long skuBundleId,
|
|
|
399 |
long source_id)
|
|
|
400 |
{
|
|
|
401 |
this();
|
|
|
402 |
this.skuBundleId = skuBundleId;
|
|
|
403 |
setSkuBundleIdIsSet(true);
|
|
|
404 |
this.source_id = source_id;
|
|
|
405 |
setSource_idIsSet(true);
|
|
|
406 |
}
|
|
|
407 |
|
|
|
408 |
/**
|
|
|
409 |
* Performs a deep copy on <i>other</i>.
|
|
|
410 |
*/
|
|
|
411 |
public getLatestPricing_args(getLatestPricing_args other) {
|
|
|
412 |
__isset_bit_vector.clear();
|
|
|
413 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
414 |
this.skuBundleId = other.skuBundleId;
|
|
|
415 |
this.source_id = other.source_id;
|
|
|
416 |
}
|
|
|
417 |
|
|
|
418 |
public getLatestPricing_args deepCopy() {
|
|
|
419 |
return new getLatestPricing_args(this);
|
|
|
420 |
}
|
|
|
421 |
|
|
|
422 |
@Override
|
|
|
423 |
public void clear() {
|
|
|
424 |
setSkuBundleIdIsSet(false);
|
|
|
425 |
this.skuBundleId = 0;
|
|
|
426 |
setSource_idIsSet(false);
|
|
|
427 |
this.source_id = 0;
|
|
|
428 |
}
|
|
|
429 |
|
|
|
430 |
public long getSkuBundleId() {
|
|
|
431 |
return this.skuBundleId;
|
|
|
432 |
}
|
|
|
433 |
|
|
|
434 |
public void setSkuBundleId(long skuBundleId) {
|
|
|
435 |
this.skuBundleId = skuBundleId;
|
|
|
436 |
setSkuBundleIdIsSet(true);
|
|
|
437 |
}
|
|
|
438 |
|
|
|
439 |
public void unsetSkuBundleId() {
|
|
|
440 |
__isset_bit_vector.clear(__SKUBUNDLEID_ISSET_ID);
|
|
|
441 |
}
|
|
|
442 |
|
|
|
443 |
/** Returns true if field skuBundleId is set (has been assigned a value) and false otherwise */
|
|
|
444 |
public boolean isSetSkuBundleId() {
|
|
|
445 |
return __isset_bit_vector.get(__SKUBUNDLEID_ISSET_ID);
|
|
|
446 |
}
|
|
|
447 |
|
|
|
448 |
public void setSkuBundleIdIsSet(boolean value) {
|
|
|
449 |
__isset_bit_vector.set(__SKUBUNDLEID_ISSET_ID, value);
|
|
|
450 |
}
|
|
|
451 |
|
|
|
452 |
public long getSource_id() {
|
|
|
453 |
return this.source_id;
|
|
|
454 |
}
|
|
|
455 |
|
|
|
456 |
public void setSource_id(long source_id) {
|
|
|
457 |
this.source_id = source_id;
|
|
|
458 |
setSource_idIsSet(true);
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public void unsetSource_id() {
|
|
|
462 |
__isset_bit_vector.clear(__SOURCE_ID_ISSET_ID);
|
|
|
463 |
}
|
|
|
464 |
|
|
|
465 |
/** Returns true if field source_id is set (has been assigned a value) and false otherwise */
|
|
|
466 |
public boolean isSetSource_id() {
|
|
|
467 |
return __isset_bit_vector.get(__SOURCE_ID_ISSET_ID);
|
|
|
468 |
}
|
|
|
469 |
|
|
|
470 |
public void setSource_idIsSet(boolean value) {
|
|
|
471 |
__isset_bit_vector.set(__SOURCE_ID_ISSET_ID, value);
|
|
|
472 |
}
|
|
|
473 |
|
|
|
474 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
475 |
switch (field) {
|
|
|
476 |
case SKU_BUNDLE_ID:
|
|
|
477 |
if (value == null) {
|
|
|
478 |
unsetSkuBundleId();
|
|
|
479 |
} else {
|
|
|
480 |
setSkuBundleId((Long)value);
|
|
|
481 |
}
|
|
|
482 |
break;
|
|
|
483 |
|
|
|
484 |
case SOURCE_ID:
|
|
|
485 |
if (value == null) {
|
|
|
486 |
unsetSource_id();
|
|
|
487 |
} else {
|
|
|
488 |
setSource_id((Long)value);
|
|
|
489 |
}
|
|
|
490 |
break;
|
|
|
491 |
|
|
|
492 |
}
|
|
|
493 |
}
|
|
|
494 |
|
|
|
495 |
public Object getFieldValue(_Fields field) {
|
|
|
496 |
switch (field) {
|
|
|
497 |
case SKU_BUNDLE_ID:
|
|
|
498 |
return Long.valueOf(getSkuBundleId());
|
|
|
499 |
|
|
|
500 |
case SOURCE_ID:
|
|
|
501 |
return Long.valueOf(getSource_id());
|
|
|
502 |
|
|
|
503 |
}
|
|
|
504 |
throw new IllegalStateException();
|
|
|
505 |
}
|
|
|
506 |
|
|
|
507 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
508 |
public boolean isSet(_Fields field) {
|
|
|
509 |
if (field == null) {
|
|
|
510 |
throw new IllegalArgumentException();
|
|
|
511 |
}
|
|
|
512 |
|
|
|
513 |
switch (field) {
|
|
|
514 |
case SKU_BUNDLE_ID:
|
|
|
515 |
return isSetSkuBundleId();
|
|
|
516 |
case SOURCE_ID:
|
|
|
517 |
return isSetSource_id();
|
|
|
518 |
}
|
|
|
519 |
throw new IllegalStateException();
|
|
|
520 |
}
|
|
|
521 |
|
|
|
522 |
@Override
|
|
|
523 |
public boolean equals(Object that) {
|
|
|
524 |
if (that == null)
|
|
|
525 |
return false;
|
|
|
526 |
if (that instanceof getLatestPricing_args)
|
|
|
527 |
return this.equals((getLatestPricing_args)that);
|
|
|
528 |
return false;
|
|
|
529 |
}
|
|
|
530 |
|
|
|
531 |
public boolean equals(getLatestPricing_args that) {
|
|
|
532 |
if (that == null)
|
|
|
533 |
return false;
|
|
|
534 |
|
|
|
535 |
boolean this_present_skuBundleId = true;
|
|
|
536 |
boolean that_present_skuBundleId = true;
|
|
|
537 |
if (this_present_skuBundleId || that_present_skuBundleId) {
|
|
|
538 |
if (!(this_present_skuBundleId && that_present_skuBundleId))
|
|
|
539 |
return false;
|
|
|
540 |
if (this.skuBundleId != that.skuBundleId)
|
|
|
541 |
return false;
|
|
|
542 |
}
|
|
|
543 |
|
|
|
544 |
boolean this_present_source_id = true;
|
|
|
545 |
boolean that_present_source_id = true;
|
|
|
546 |
if (this_present_source_id || that_present_source_id) {
|
|
|
547 |
if (!(this_present_source_id && that_present_source_id))
|
|
|
548 |
return false;
|
|
|
549 |
if (this.source_id != that.source_id)
|
|
|
550 |
return false;
|
|
|
551 |
}
|
|
|
552 |
|
|
|
553 |
return true;
|
|
|
554 |
}
|
|
|
555 |
|
|
|
556 |
@Override
|
|
|
557 |
public int hashCode() {
|
|
|
558 |
return 0;
|
|
|
559 |
}
|
|
|
560 |
|
|
|
561 |
public int compareTo(getLatestPricing_args other) {
|
|
|
562 |
if (!getClass().equals(other.getClass())) {
|
|
|
563 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
564 |
}
|
|
|
565 |
|
|
|
566 |
int lastComparison = 0;
|
|
|
567 |
getLatestPricing_args typedOther = (getLatestPricing_args)other;
|
|
|
568 |
|
|
|
569 |
lastComparison = Boolean.valueOf(isSetSkuBundleId()).compareTo(typedOther.isSetSkuBundleId());
|
|
|
570 |
if (lastComparison != 0) {
|
|
|
571 |
return lastComparison;
|
|
|
572 |
}
|
|
|
573 |
if (isSetSkuBundleId()) {
|
|
|
574 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.skuBundleId, typedOther.skuBundleId);
|
|
|
575 |
if (lastComparison != 0) {
|
|
|
576 |
return lastComparison;
|
|
|
577 |
}
|
|
|
578 |
}
|
|
|
579 |
lastComparison = Boolean.valueOf(isSetSource_id()).compareTo(typedOther.isSetSource_id());
|
|
|
580 |
if (lastComparison != 0) {
|
|
|
581 |
return lastComparison;
|
|
|
582 |
}
|
|
|
583 |
if (isSetSource_id()) {
|
|
|
584 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.source_id, typedOther.source_id);
|
|
|
585 |
if (lastComparison != 0) {
|
|
|
586 |
return lastComparison;
|
|
|
587 |
}
|
|
|
588 |
}
|
|
|
589 |
return 0;
|
|
|
590 |
}
|
|
|
591 |
|
|
|
592 |
public _Fields fieldForId(int fieldId) {
|
|
|
593 |
return _Fields.findByThriftId(fieldId);
|
|
|
594 |
}
|
|
|
595 |
|
|
|
596 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
597 |
org.apache.thrift.protocol.TField field;
|
|
|
598 |
iprot.readStructBegin();
|
|
|
599 |
while (true)
|
|
|
600 |
{
|
|
|
601 |
field = iprot.readFieldBegin();
|
|
|
602 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
603 |
break;
|
|
|
604 |
}
|
|
|
605 |
switch (field.id) {
|
|
|
606 |
case 1: // SKU_BUNDLE_ID
|
|
|
607 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
608 |
this.skuBundleId = iprot.readI64();
|
|
|
609 |
setSkuBundleIdIsSet(true);
|
|
|
610 |
} else {
|
|
|
611 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
612 |
}
|
|
|
613 |
break;
|
|
|
614 |
case 2: // SOURCE_ID
|
|
|
615 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
616 |
this.source_id = iprot.readI64();
|
|
|
617 |
setSource_idIsSet(true);
|
|
|
618 |
} else {
|
|
|
619 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
620 |
}
|
|
|
621 |
break;
|
|
|
622 |
default:
|
|
|
623 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
624 |
}
|
|
|
625 |
iprot.readFieldEnd();
|
|
|
626 |
}
|
|
|
627 |
iprot.readStructEnd();
|
|
|
628 |
validate();
|
|
|
629 |
}
|
|
|
630 |
|
|
|
631 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
632 |
validate();
|
|
|
633 |
|
|
|
634 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
635 |
oprot.writeFieldBegin(SKU_BUNDLE_ID_FIELD_DESC);
|
|
|
636 |
oprot.writeI64(this.skuBundleId);
|
|
|
637 |
oprot.writeFieldEnd();
|
|
|
638 |
oprot.writeFieldBegin(SOURCE_ID_FIELD_DESC);
|
|
|
639 |
oprot.writeI64(this.source_id);
|
|
|
640 |
oprot.writeFieldEnd();
|
|
|
641 |
oprot.writeFieldStop();
|
|
|
642 |
oprot.writeStructEnd();
|
|
|
643 |
}
|
|
|
644 |
|
|
|
645 |
@Override
|
|
|
646 |
public String toString() {
|
|
|
647 |
StringBuilder sb = new StringBuilder("getLatestPricing_args(");
|
|
|
648 |
boolean first = true;
|
|
|
649 |
|
|
|
650 |
sb.append("skuBundleId:");
|
|
|
651 |
sb.append(this.skuBundleId);
|
|
|
652 |
first = false;
|
|
|
653 |
if (!first) sb.append(", ");
|
|
|
654 |
sb.append("source_id:");
|
|
|
655 |
sb.append(this.source_id);
|
|
|
656 |
first = false;
|
|
|
657 |
sb.append(")");
|
|
|
658 |
return sb.toString();
|
|
|
659 |
}
|
|
|
660 |
|
|
|
661 |
public void validate() throws org.apache.thrift.TException {
|
|
|
662 |
// check for required fields
|
|
|
663 |
}
|
|
|
664 |
|
|
|
665 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
666 |
try {
|
|
|
667 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
668 |
} catch (org.apache.thrift.TException te) {
|
|
|
669 |
throw new java.io.IOException(te);
|
|
|
670 |
}
|
|
|
671 |
}
|
|
|
672 |
|
|
|
673 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
674 |
try {
|
|
|
675 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
676 |
__isset_bit_vector = new BitSet(1);
|
|
|
677 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
678 |
} catch (org.apache.thrift.TException te) {
|
|
|
679 |
throw new java.io.IOException(te);
|
|
|
680 |
}
|
|
|
681 |
}
|
|
|
682 |
|
|
|
683 |
}
|
|
|
684 |
|
|
|
685 |
public static class getLatestPricing_result implements org.apache.thrift.TBase<getLatestPricing_result, getLatestPricing_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
686 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLatestPricing_result");
|
|
|
687 |
|
|
|
688 |
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);
|
|
|
689 |
|
|
|
690 |
private List<LivePricing> success; // required
|
|
|
691 |
|
|
|
692 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
693 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
694 |
SUCCESS((short)0, "success");
|
|
|
695 |
|
|
|
696 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
697 |
|
|
|
698 |
static {
|
|
|
699 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
700 |
byName.put(field.getFieldName(), field);
|
|
|
701 |
}
|
|
|
702 |
}
|
|
|
703 |
|
|
|
704 |
/**
|
|
|
705 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
706 |
*/
|
|
|
707 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
708 |
switch(fieldId) {
|
|
|
709 |
case 0: // SUCCESS
|
|
|
710 |
return SUCCESS;
|
|
|
711 |
default:
|
|
|
712 |
return null;
|
|
|
713 |
}
|
|
|
714 |
}
|
|
|
715 |
|
|
|
716 |
/**
|
|
|
717 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
718 |
* if it is not found.
|
|
|
719 |
*/
|
|
|
720 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
721 |
_Fields fields = findByThriftId(fieldId);
|
|
|
722 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
723 |
return fields;
|
|
|
724 |
}
|
|
|
725 |
|
|
|
726 |
/**
|
|
|
727 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
728 |
*/
|
|
|
729 |
public static _Fields findByName(String name) {
|
|
|
730 |
return byName.get(name);
|
|
|
731 |
}
|
|
|
732 |
|
|
|
733 |
private final short _thriftId;
|
|
|
734 |
private final String _fieldName;
|
|
|
735 |
|
|
|
736 |
_Fields(short thriftId, String fieldName) {
|
|
|
737 |
_thriftId = thriftId;
|
|
|
738 |
_fieldName = fieldName;
|
|
|
739 |
}
|
|
|
740 |
|
|
|
741 |
public short getThriftFieldId() {
|
|
|
742 |
return _thriftId;
|
|
|
743 |
}
|
|
|
744 |
|
|
|
745 |
public String getFieldName() {
|
|
|
746 |
return _fieldName;
|
|
|
747 |
}
|
|
|
748 |
}
|
|
|
749 |
|
|
|
750 |
// isset id assignments
|
|
|
751 |
|
|
|
752 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
753 |
static {
|
|
|
754 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
755 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
756 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
757 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LivePricing.class))));
|
|
|
758 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
759 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLatestPricing_result.class, metaDataMap);
|
|
|
760 |
}
|
|
|
761 |
|
|
|
762 |
public getLatestPricing_result() {
|
|
|
763 |
}
|
|
|
764 |
|
|
|
765 |
public getLatestPricing_result(
|
|
|
766 |
List<LivePricing> success)
|
|
|
767 |
{
|
|
|
768 |
this();
|
|
|
769 |
this.success = success;
|
|
|
770 |
}
|
|
|
771 |
|
|
|
772 |
/**
|
|
|
773 |
* Performs a deep copy on <i>other</i>.
|
|
|
774 |
*/
|
|
|
775 |
public getLatestPricing_result(getLatestPricing_result other) {
|
|
|
776 |
if (other.isSetSuccess()) {
|
|
|
777 |
List<LivePricing> __this__success = new ArrayList<LivePricing>();
|
|
|
778 |
for (LivePricing other_element : other.success) {
|
|
|
779 |
__this__success.add(new LivePricing(other_element));
|
|
|
780 |
}
|
|
|
781 |
this.success = __this__success;
|
|
|
782 |
}
|
|
|
783 |
}
|
|
|
784 |
|
|
|
785 |
public getLatestPricing_result deepCopy() {
|
|
|
786 |
return new getLatestPricing_result(this);
|
|
|
787 |
}
|
|
|
788 |
|
|
|
789 |
@Override
|
|
|
790 |
public void clear() {
|
|
|
791 |
this.success = null;
|
|
|
792 |
}
|
|
|
793 |
|
|
|
794 |
public int getSuccessSize() {
|
|
|
795 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
796 |
}
|
|
|
797 |
|
|
|
798 |
public java.util.Iterator<LivePricing> getSuccessIterator() {
|
|
|
799 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
800 |
}
|
|
|
801 |
|
|
|
802 |
public void addToSuccess(LivePricing elem) {
|
|
|
803 |
if (this.success == null) {
|
|
|
804 |
this.success = new ArrayList<LivePricing>();
|
|
|
805 |
}
|
|
|
806 |
this.success.add(elem);
|
|
|
807 |
}
|
|
|
808 |
|
|
|
809 |
public List<LivePricing> getSuccess() {
|
|
|
810 |
return this.success;
|
|
|
811 |
}
|
|
|
812 |
|
|
|
813 |
public void setSuccess(List<LivePricing> success) {
|
|
|
814 |
this.success = success;
|
|
|
815 |
}
|
|
|
816 |
|
|
|
817 |
public void unsetSuccess() {
|
|
|
818 |
this.success = null;
|
|
|
819 |
}
|
|
|
820 |
|
|
|
821 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
822 |
public boolean isSetSuccess() {
|
|
|
823 |
return this.success != null;
|
|
|
824 |
}
|
|
|
825 |
|
|
|
826 |
public void setSuccessIsSet(boolean value) {
|
|
|
827 |
if (!value) {
|
|
|
828 |
this.success = null;
|
|
|
829 |
}
|
|
|
830 |
}
|
|
|
831 |
|
|
|
832 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
833 |
switch (field) {
|
|
|
834 |
case SUCCESS:
|
|
|
835 |
if (value == null) {
|
|
|
836 |
unsetSuccess();
|
|
|
837 |
} else {
|
|
|
838 |
setSuccess((List<LivePricing>)value);
|
|
|
839 |
}
|
|
|
840 |
break;
|
|
|
841 |
|
|
|
842 |
}
|
|
|
843 |
}
|
|
|
844 |
|
|
|
845 |
public Object getFieldValue(_Fields field) {
|
|
|
846 |
switch (field) {
|
|
|
847 |
case SUCCESS:
|
|
|
848 |
return getSuccess();
|
|
|
849 |
|
|
|
850 |
}
|
|
|
851 |
throw new IllegalStateException();
|
|
|
852 |
}
|
|
|
853 |
|
|
|
854 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
855 |
public boolean isSet(_Fields field) {
|
|
|
856 |
if (field == null) {
|
|
|
857 |
throw new IllegalArgumentException();
|
|
|
858 |
}
|
|
|
859 |
|
|
|
860 |
switch (field) {
|
|
|
861 |
case SUCCESS:
|
|
|
862 |
return isSetSuccess();
|
|
|
863 |
}
|
|
|
864 |
throw new IllegalStateException();
|
|
|
865 |
}
|
|
|
866 |
|
|
|
867 |
@Override
|
|
|
868 |
public boolean equals(Object that) {
|
|
|
869 |
if (that == null)
|
|
|
870 |
return false;
|
|
|
871 |
if (that instanceof getLatestPricing_result)
|
|
|
872 |
return this.equals((getLatestPricing_result)that);
|
|
|
873 |
return false;
|
|
|
874 |
}
|
|
|
875 |
|
|
|
876 |
public boolean equals(getLatestPricing_result that) {
|
|
|
877 |
if (that == null)
|
|
|
878 |
return false;
|
|
|
879 |
|
|
|
880 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
881 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
882 |
if (this_present_success || that_present_success) {
|
|
|
883 |
if (!(this_present_success && that_present_success))
|
|
|
884 |
return false;
|
|
|
885 |
if (!this.success.equals(that.success))
|
|
|
886 |
return false;
|
|
|
887 |
}
|
|
|
888 |
|
|
|
889 |
return true;
|
|
|
890 |
}
|
|
|
891 |
|
|
|
892 |
@Override
|
|
|
893 |
public int hashCode() {
|
|
|
894 |
return 0;
|
|
|
895 |
}
|
|
|
896 |
|
|
|
897 |
public int compareTo(getLatestPricing_result other) {
|
|
|
898 |
if (!getClass().equals(other.getClass())) {
|
|
|
899 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
900 |
}
|
|
|
901 |
|
|
|
902 |
int lastComparison = 0;
|
|
|
903 |
getLatestPricing_result typedOther = (getLatestPricing_result)other;
|
|
|
904 |
|
|
|
905 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
906 |
if (lastComparison != 0) {
|
|
|
907 |
return lastComparison;
|
|
|
908 |
}
|
|
|
909 |
if (isSetSuccess()) {
|
|
|
910 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
911 |
if (lastComparison != 0) {
|
|
|
912 |
return lastComparison;
|
|
|
913 |
}
|
|
|
914 |
}
|
|
|
915 |
return 0;
|
|
|
916 |
}
|
|
|
917 |
|
|
|
918 |
public _Fields fieldForId(int fieldId) {
|
|
|
919 |
return _Fields.findByThriftId(fieldId);
|
|
|
920 |
}
|
|
|
921 |
|
|
|
922 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
923 |
org.apache.thrift.protocol.TField field;
|
|
|
924 |
iprot.readStructBegin();
|
|
|
925 |
while (true)
|
|
|
926 |
{
|
|
|
927 |
field = iprot.readFieldBegin();
|
|
|
928 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
929 |
break;
|
|
|
930 |
}
|
|
|
931 |
switch (field.id) {
|
|
|
932 |
case 0: // SUCCESS
|
|
|
933 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
934 |
{
|
|
|
935 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
|
|
936 |
this.success = new ArrayList<LivePricing>(_list0.size);
|
|
|
937 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
|
|
938 |
{
|
|
|
939 |
LivePricing _elem2; // required
|
|
|
940 |
_elem2 = new LivePricing();
|
|
|
941 |
_elem2.read(iprot);
|
|
|
942 |
this.success.add(_elem2);
|
|
|
943 |
}
|
|
|
944 |
iprot.readListEnd();
|
|
|
945 |
}
|
|
|
946 |
} else {
|
|
|
947 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
948 |
}
|
|
|
949 |
break;
|
|
|
950 |
default:
|
|
|
951 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
952 |
}
|
|
|
953 |
iprot.readFieldEnd();
|
|
|
954 |
}
|
|
|
955 |
iprot.readStructEnd();
|
|
|
956 |
validate();
|
|
|
957 |
}
|
|
|
958 |
|
|
|
959 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
960 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
961 |
|
|
|
962 |
if (this.isSetSuccess()) {
|
|
|
963 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
964 |
{
|
|
|
965 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
|
|
|
966 |
for (LivePricing _iter3 : this.success)
|
|
|
967 |
{
|
|
|
968 |
_iter3.write(oprot);
|
|
|
969 |
}
|
|
|
970 |
oprot.writeListEnd();
|
|
|
971 |
}
|
|
|
972 |
oprot.writeFieldEnd();
|
|
|
973 |
}
|
|
|
974 |
oprot.writeFieldStop();
|
|
|
975 |
oprot.writeStructEnd();
|
|
|
976 |
}
|
|
|
977 |
|
|
|
978 |
@Override
|
|
|
979 |
public String toString() {
|
|
|
980 |
StringBuilder sb = new StringBuilder("getLatestPricing_result(");
|
|
|
981 |
boolean first = true;
|
|
|
982 |
|
|
|
983 |
sb.append("success:");
|
|
|
984 |
if (this.success == null) {
|
|
|
985 |
sb.append("null");
|
|
|
986 |
} else {
|
|
|
987 |
sb.append(this.success);
|
|
|
988 |
}
|
|
|
989 |
first = false;
|
|
|
990 |
sb.append(")");
|
|
|
991 |
return sb.toString();
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
public void validate() throws org.apache.thrift.TException {
|
|
|
995 |
// check for required fields
|
|
|
996 |
}
|
|
|
997 |
|
|
|
998 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
999 |
try {
|
|
|
1000 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1001 |
} catch (org.apache.thrift.TException te) {
|
|
|
1002 |
throw new java.io.IOException(te);
|
|
|
1003 |
}
|
|
|
1004 |
}
|
|
|
1005 |
|
|
|
1006 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1007 |
try {
|
|
|
1008 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1009 |
} catch (org.apache.thrift.TException te) {
|
|
|
1010 |
throw new java.io.IOException(te);
|
|
|
1011 |
}
|
|
|
1012 |
}
|
|
|
1013 |
|
|
|
1014 |
}
|
|
|
1015 |
|
| 15167 |
kshitij.so |
1016 |
public static class updateLatestPriceForItem_args implements org.apache.thrift.TBase<updateLatestPriceForItem_args, updateLatestPriceForItem_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1017 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("updateLatestPriceForItem_args");
|
|
|
1018 |
|
|
|
1019 |
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);
|
|
|
1020 |
|
|
|
1021 |
private long id; // required
|
|
|
1022 |
|
|
|
1023 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1024 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1025 |
ID((short)1, "id");
|
|
|
1026 |
|
|
|
1027 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1028 |
|
|
|
1029 |
static {
|
|
|
1030 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1031 |
byName.put(field.getFieldName(), field);
|
|
|
1032 |
}
|
|
|
1033 |
}
|
|
|
1034 |
|
|
|
1035 |
/**
|
|
|
1036 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1037 |
*/
|
|
|
1038 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1039 |
switch(fieldId) {
|
|
|
1040 |
case 1: // ID
|
|
|
1041 |
return ID;
|
|
|
1042 |
default:
|
|
|
1043 |
return null;
|
|
|
1044 |
}
|
|
|
1045 |
}
|
|
|
1046 |
|
|
|
1047 |
/**
|
|
|
1048 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1049 |
* if it is not found.
|
|
|
1050 |
*/
|
|
|
1051 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1052 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1053 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1054 |
return fields;
|
|
|
1055 |
}
|
|
|
1056 |
|
|
|
1057 |
/**
|
|
|
1058 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1059 |
*/
|
|
|
1060 |
public static _Fields findByName(String name) {
|
|
|
1061 |
return byName.get(name);
|
|
|
1062 |
}
|
|
|
1063 |
|
|
|
1064 |
private final short _thriftId;
|
|
|
1065 |
private final String _fieldName;
|
|
|
1066 |
|
|
|
1067 |
_Fields(short thriftId, String fieldName) {
|
|
|
1068 |
_thriftId = thriftId;
|
|
|
1069 |
_fieldName = fieldName;
|
|
|
1070 |
}
|
|
|
1071 |
|
|
|
1072 |
public short getThriftFieldId() {
|
|
|
1073 |
return _thriftId;
|
|
|
1074 |
}
|
|
|
1075 |
|
|
|
1076 |
public String getFieldName() {
|
|
|
1077 |
return _fieldName;
|
|
|
1078 |
}
|
|
|
1079 |
}
|
|
|
1080 |
|
|
|
1081 |
// isset id assignments
|
|
|
1082 |
private static final int __ID_ISSET_ID = 0;
|
|
|
1083 |
private BitSet __isset_bit_vector = new BitSet(1);
|
|
|
1084 |
|
|
|
1085 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1086 |
static {
|
|
|
1087 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1088 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1089 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
1090 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1091 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(updateLatestPriceForItem_args.class, metaDataMap);
|
|
|
1092 |
}
|
|
|
1093 |
|
|
|
1094 |
public updateLatestPriceForItem_args() {
|
|
|
1095 |
}
|
|
|
1096 |
|
|
|
1097 |
public updateLatestPriceForItem_args(
|
|
|
1098 |
long id)
|
|
|
1099 |
{
|
|
|
1100 |
this();
|
|
|
1101 |
this.id = id;
|
|
|
1102 |
setIdIsSet(true);
|
|
|
1103 |
}
|
|
|
1104 |
|
|
|
1105 |
/**
|
|
|
1106 |
* Performs a deep copy on <i>other</i>.
|
|
|
1107 |
*/
|
|
|
1108 |
public updateLatestPriceForItem_args(updateLatestPriceForItem_args other) {
|
|
|
1109 |
__isset_bit_vector.clear();
|
|
|
1110 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
|
|
1111 |
this.id = other.id;
|
|
|
1112 |
}
|
|
|
1113 |
|
|
|
1114 |
public updateLatestPriceForItem_args deepCopy() {
|
|
|
1115 |
return new updateLatestPriceForItem_args(this);
|
|
|
1116 |
}
|
|
|
1117 |
|
|
|
1118 |
@Override
|
|
|
1119 |
public void clear() {
|
|
|
1120 |
setIdIsSet(false);
|
|
|
1121 |
this.id = 0;
|
|
|
1122 |
}
|
|
|
1123 |
|
|
|
1124 |
public long getId() {
|
|
|
1125 |
return this.id;
|
|
|
1126 |
}
|
|
|
1127 |
|
|
|
1128 |
public void setId(long id) {
|
|
|
1129 |
this.id = id;
|
|
|
1130 |
setIdIsSet(true);
|
|
|
1131 |
}
|
|
|
1132 |
|
|
|
1133 |
public void unsetId() {
|
|
|
1134 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
1135 |
}
|
|
|
1136 |
|
|
|
1137 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
|
|
1138 |
public boolean isSetId() {
|
|
|
1139 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
1140 |
}
|
|
|
1141 |
|
|
|
1142 |
public void setIdIsSet(boolean value) {
|
|
|
1143 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
1144 |
}
|
|
|
1145 |
|
|
|
1146 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1147 |
switch (field) {
|
|
|
1148 |
case ID:
|
|
|
1149 |
if (value == null) {
|
|
|
1150 |
unsetId();
|
|
|
1151 |
} else {
|
|
|
1152 |
setId((Long)value);
|
|
|
1153 |
}
|
|
|
1154 |
break;
|
|
|
1155 |
|
|
|
1156 |
}
|
|
|
1157 |
}
|
|
|
1158 |
|
|
|
1159 |
public Object getFieldValue(_Fields field) {
|
|
|
1160 |
switch (field) {
|
|
|
1161 |
case ID:
|
|
|
1162 |
return Long.valueOf(getId());
|
|
|
1163 |
|
|
|
1164 |
}
|
|
|
1165 |
throw new IllegalStateException();
|
|
|
1166 |
}
|
|
|
1167 |
|
|
|
1168 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1169 |
public boolean isSet(_Fields field) {
|
|
|
1170 |
if (field == null) {
|
|
|
1171 |
throw new IllegalArgumentException();
|
|
|
1172 |
}
|
|
|
1173 |
|
|
|
1174 |
switch (field) {
|
|
|
1175 |
case ID:
|
|
|
1176 |
return isSetId();
|
|
|
1177 |
}
|
|
|
1178 |
throw new IllegalStateException();
|
|
|
1179 |
}
|
|
|
1180 |
|
|
|
1181 |
@Override
|
|
|
1182 |
public boolean equals(Object that) {
|
|
|
1183 |
if (that == null)
|
|
|
1184 |
return false;
|
|
|
1185 |
if (that instanceof updateLatestPriceForItem_args)
|
|
|
1186 |
return this.equals((updateLatestPriceForItem_args)that);
|
|
|
1187 |
return false;
|
|
|
1188 |
}
|
|
|
1189 |
|
|
|
1190 |
public boolean equals(updateLatestPriceForItem_args that) {
|
|
|
1191 |
if (that == null)
|
|
|
1192 |
return false;
|
|
|
1193 |
|
|
|
1194 |
boolean this_present_id = true;
|
|
|
1195 |
boolean that_present_id = true;
|
|
|
1196 |
if (this_present_id || that_present_id) {
|
|
|
1197 |
if (!(this_present_id && that_present_id))
|
|
|
1198 |
return false;
|
|
|
1199 |
if (this.id != that.id)
|
|
|
1200 |
return false;
|
|
|
1201 |
}
|
|
|
1202 |
|
|
|
1203 |
return true;
|
|
|
1204 |
}
|
|
|
1205 |
|
|
|
1206 |
@Override
|
|
|
1207 |
public int hashCode() {
|
|
|
1208 |
return 0;
|
|
|
1209 |
}
|
|
|
1210 |
|
|
|
1211 |
public int compareTo(updateLatestPriceForItem_args other) {
|
|
|
1212 |
if (!getClass().equals(other.getClass())) {
|
|
|
1213 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1214 |
}
|
|
|
1215 |
|
|
|
1216 |
int lastComparison = 0;
|
|
|
1217 |
updateLatestPriceForItem_args typedOther = (updateLatestPriceForItem_args)other;
|
|
|
1218 |
|
|
|
1219 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
|
|
1220 |
if (lastComparison != 0) {
|
|
|
1221 |
return lastComparison;
|
|
|
1222 |
}
|
|
|
1223 |
if (isSetId()) {
|
|
|
1224 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1225 |
if (lastComparison != 0) {
|
|
|
1226 |
return lastComparison;
|
|
|
1227 |
}
|
|
|
1228 |
}
|
|
|
1229 |
return 0;
|
|
|
1230 |
}
|
|
|
1231 |
|
|
|
1232 |
public _Fields fieldForId(int fieldId) {
|
|
|
1233 |
return _Fields.findByThriftId(fieldId);
|
|
|
1234 |
}
|
|
|
1235 |
|
|
|
1236 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1237 |
org.apache.thrift.protocol.TField field;
|
|
|
1238 |
iprot.readStructBegin();
|
|
|
1239 |
while (true)
|
|
|
1240 |
{
|
|
|
1241 |
field = iprot.readFieldBegin();
|
|
|
1242 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1243 |
break;
|
|
|
1244 |
}
|
|
|
1245 |
switch (field.id) {
|
|
|
1246 |
case 1: // ID
|
|
|
1247 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1248 |
this.id = iprot.readI64();
|
|
|
1249 |
setIdIsSet(true);
|
|
|
1250 |
} else {
|
|
|
1251 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1252 |
}
|
|
|
1253 |
break;
|
|
|
1254 |
default:
|
|
|
1255 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1256 |
}
|
|
|
1257 |
iprot.readFieldEnd();
|
|
|
1258 |
}
|
|
|
1259 |
iprot.readStructEnd();
|
|
|
1260 |
validate();
|
|
|
1261 |
}
|
|
|
1262 |
|
|
|
1263 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1264 |
validate();
|
|
|
1265 |
|
|
|
1266 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1267 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1268 |
oprot.writeI64(this.id);
|
|
|
1269 |
oprot.writeFieldEnd();
|
|
|
1270 |
oprot.writeFieldStop();
|
|
|
1271 |
oprot.writeStructEnd();
|
|
|
1272 |
}
|
|
|
1273 |
|
|
|
1274 |
@Override
|
|
|
1275 |
public String toString() {
|
|
|
1276 |
StringBuilder sb = new StringBuilder("updateLatestPriceForItem_args(");
|
|
|
1277 |
boolean first = true;
|
|
|
1278 |
|
|
|
1279 |
sb.append("id:");
|
|
|
1280 |
sb.append(this.id);
|
|
|
1281 |
first = false;
|
|
|
1282 |
sb.append(")");
|
|
|
1283 |
return sb.toString();
|
|
|
1284 |
}
|
|
|
1285 |
|
|
|
1286 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1287 |
// check for required fields
|
|
|
1288 |
}
|
|
|
1289 |
|
|
|
1290 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1291 |
try {
|
|
|
1292 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1293 |
} catch (org.apache.thrift.TException te) {
|
|
|
1294 |
throw new java.io.IOException(te);
|
|
|
1295 |
}
|
|
|
1296 |
}
|
|
|
1297 |
|
|
|
1298 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1299 |
try {
|
|
|
1300 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1301 |
__isset_bit_vector = new BitSet(1);
|
|
|
1302 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1303 |
} catch (org.apache.thrift.TException te) {
|
|
|
1304 |
throw new java.io.IOException(te);
|
|
|
1305 |
}
|
|
|
1306 |
}
|
|
|
1307 |
|
|
|
1308 |
}
|
|
|
1309 |
|
| 19247 |
kshitij.so |
1310 |
public static class addItemsInBulk_args implements org.apache.thrift.TBase<addItemsInBulk_args, addItemsInBulk_args._Fields>, java.io.Serializable, Cloneable {
|
|
|
1311 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemsInBulk_args");
|
|
|
1312 |
|
|
|
1313 |
private static final org.apache.thrift.protocol.TField BULK_ITEMS_LIST_FIELD_DESC = new org.apache.thrift.protocol.TField("bulkItemsList", org.apache.thrift.protocol.TType.LIST, (short)1);
|
|
|
1314 |
|
|
|
1315 |
private List<BulkItems> bulkItemsList; // required
|
|
|
1316 |
|
|
|
1317 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1318 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1319 |
BULK_ITEMS_LIST((short)1, "bulkItemsList");
|
|
|
1320 |
|
|
|
1321 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1322 |
|
|
|
1323 |
static {
|
|
|
1324 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1325 |
byName.put(field.getFieldName(), field);
|
|
|
1326 |
}
|
|
|
1327 |
}
|
|
|
1328 |
|
|
|
1329 |
/**
|
|
|
1330 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1331 |
*/
|
|
|
1332 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1333 |
switch(fieldId) {
|
|
|
1334 |
case 1: // BULK_ITEMS_LIST
|
|
|
1335 |
return BULK_ITEMS_LIST;
|
|
|
1336 |
default:
|
|
|
1337 |
return null;
|
|
|
1338 |
}
|
|
|
1339 |
}
|
|
|
1340 |
|
|
|
1341 |
/**
|
|
|
1342 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1343 |
* if it is not found.
|
|
|
1344 |
*/
|
|
|
1345 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1346 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1347 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1348 |
return fields;
|
|
|
1349 |
}
|
|
|
1350 |
|
|
|
1351 |
/**
|
|
|
1352 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1353 |
*/
|
|
|
1354 |
public static _Fields findByName(String name) {
|
|
|
1355 |
return byName.get(name);
|
|
|
1356 |
}
|
|
|
1357 |
|
|
|
1358 |
private final short _thriftId;
|
|
|
1359 |
private final String _fieldName;
|
|
|
1360 |
|
|
|
1361 |
_Fields(short thriftId, String fieldName) {
|
|
|
1362 |
_thriftId = thriftId;
|
|
|
1363 |
_fieldName = fieldName;
|
|
|
1364 |
}
|
|
|
1365 |
|
|
|
1366 |
public short getThriftFieldId() {
|
|
|
1367 |
return _thriftId;
|
|
|
1368 |
}
|
|
|
1369 |
|
|
|
1370 |
public String getFieldName() {
|
|
|
1371 |
return _fieldName;
|
|
|
1372 |
}
|
|
|
1373 |
}
|
|
|
1374 |
|
|
|
1375 |
// isset id assignments
|
|
|
1376 |
|
|
|
1377 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1378 |
static {
|
|
|
1379 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1380 |
tmpMap.put(_Fields.BULK_ITEMS_LIST, new org.apache.thrift.meta_data.FieldMetaData("bulkItemsList", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1381 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
1382 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BulkItems.class))));
|
|
|
1383 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1384 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemsInBulk_args.class, metaDataMap);
|
|
|
1385 |
}
|
|
|
1386 |
|
|
|
1387 |
public addItemsInBulk_args() {
|
|
|
1388 |
}
|
|
|
1389 |
|
|
|
1390 |
public addItemsInBulk_args(
|
|
|
1391 |
List<BulkItems> bulkItemsList)
|
|
|
1392 |
{
|
|
|
1393 |
this();
|
|
|
1394 |
this.bulkItemsList = bulkItemsList;
|
|
|
1395 |
}
|
|
|
1396 |
|
|
|
1397 |
/**
|
|
|
1398 |
* Performs a deep copy on <i>other</i>.
|
|
|
1399 |
*/
|
|
|
1400 |
public addItemsInBulk_args(addItemsInBulk_args other) {
|
|
|
1401 |
if (other.isSetBulkItemsList()) {
|
|
|
1402 |
List<BulkItems> __this__bulkItemsList = new ArrayList<BulkItems>();
|
|
|
1403 |
for (BulkItems other_element : other.bulkItemsList) {
|
|
|
1404 |
__this__bulkItemsList.add(new BulkItems(other_element));
|
|
|
1405 |
}
|
|
|
1406 |
this.bulkItemsList = __this__bulkItemsList;
|
|
|
1407 |
}
|
|
|
1408 |
}
|
|
|
1409 |
|
|
|
1410 |
public addItemsInBulk_args deepCopy() {
|
|
|
1411 |
return new addItemsInBulk_args(this);
|
|
|
1412 |
}
|
|
|
1413 |
|
|
|
1414 |
@Override
|
|
|
1415 |
public void clear() {
|
|
|
1416 |
this.bulkItemsList = null;
|
|
|
1417 |
}
|
|
|
1418 |
|
|
|
1419 |
public int getBulkItemsListSize() {
|
|
|
1420 |
return (this.bulkItemsList == null) ? 0 : this.bulkItemsList.size();
|
|
|
1421 |
}
|
|
|
1422 |
|
|
|
1423 |
public java.util.Iterator<BulkItems> getBulkItemsListIterator() {
|
|
|
1424 |
return (this.bulkItemsList == null) ? null : this.bulkItemsList.iterator();
|
|
|
1425 |
}
|
|
|
1426 |
|
|
|
1427 |
public void addToBulkItemsList(BulkItems elem) {
|
|
|
1428 |
if (this.bulkItemsList == null) {
|
|
|
1429 |
this.bulkItemsList = new ArrayList<BulkItems>();
|
|
|
1430 |
}
|
|
|
1431 |
this.bulkItemsList.add(elem);
|
|
|
1432 |
}
|
|
|
1433 |
|
|
|
1434 |
public List<BulkItems> getBulkItemsList() {
|
|
|
1435 |
return this.bulkItemsList;
|
|
|
1436 |
}
|
|
|
1437 |
|
|
|
1438 |
public void setBulkItemsList(List<BulkItems> bulkItemsList) {
|
|
|
1439 |
this.bulkItemsList = bulkItemsList;
|
|
|
1440 |
}
|
|
|
1441 |
|
|
|
1442 |
public void unsetBulkItemsList() {
|
|
|
1443 |
this.bulkItemsList = null;
|
|
|
1444 |
}
|
|
|
1445 |
|
|
|
1446 |
/** Returns true if field bulkItemsList is set (has been assigned a value) and false otherwise */
|
|
|
1447 |
public boolean isSetBulkItemsList() {
|
|
|
1448 |
return this.bulkItemsList != null;
|
|
|
1449 |
}
|
|
|
1450 |
|
|
|
1451 |
public void setBulkItemsListIsSet(boolean value) {
|
|
|
1452 |
if (!value) {
|
|
|
1453 |
this.bulkItemsList = null;
|
|
|
1454 |
}
|
|
|
1455 |
}
|
|
|
1456 |
|
|
|
1457 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1458 |
switch (field) {
|
|
|
1459 |
case BULK_ITEMS_LIST:
|
|
|
1460 |
if (value == null) {
|
|
|
1461 |
unsetBulkItemsList();
|
|
|
1462 |
} else {
|
|
|
1463 |
setBulkItemsList((List<BulkItems>)value);
|
|
|
1464 |
}
|
|
|
1465 |
break;
|
|
|
1466 |
|
|
|
1467 |
}
|
|
|
1468 |
}
|
|
|
1469 |
|
|
|
1470 |
public Object getFieldValue(_Fields field) {
|
|
|
1471 |
switch (field) {
|
|
|
1472 |
case BULK_ITEMS_LIST:
|
|
|
1473 |
return getBulkItemsList();
|
|
|
1474 |
|
|
|
1475 |
}
|
|
|
1476 |
throw new IllegalStateException();
|
|
|
1477 |
}
|
|
|
1478 |
|
|
|
1479 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1480 |
public boolean isSet(_Fields field) {
|
|
|
1481 |
if (field == null) {
|
|
|
1482 |
throw new IllegalArgumentException();
|
|
|
1483 |
}
|
|
|
1484 |
|
|
|
1485 |
switch (field) {
|
|
|
1486 |
case BULK_ITEMS_LIST:
|
|
|
1487 |
return isSetBulkItemsList();
|
|
|
1488 |
}
|
|
|
1489 |
throw new IllegalStateException();
|
|
|
1490 |
}
|
|
|
1491 |
|
|
|
1492 |
@Override
|
|
|
1493 |
public boolean equals(Object that) {
|
|
|
1494 |
if (that == null)
|
|
|
1495 |
return false;
|
|
|
1496 |
if (that instanceof addItemsInBulk_args)
|
|
|
1497 |
return this.equals((addItemsInBulk_args)that);
|
|
|
1498 |
return false;
|
|
|
1499 |
}
|
|
|
1500 |
|
|
|
1501 |
public boolean equals(addItemsInBulk_args that) {
|
|
|
1502 |
if (that == null)
|
|
|
1503 |
return false;
|
|
|
1504 |
|
|
|
1505 |
boolean this_present_bulkItemsList = true && this.isSetBulkItemsList();
|
|
|
1506 |
boolean that_present_bulkItemsList = true && that.isSetBulkItemsList();
|
|
|
1507 |
if (this_present_bulkItemsList || that_present_bulkItemsList) {
|
|
|
1508 |
if (!(this_present_bulkItemsList && that_present_bulkItemsList))
|
|
|
1509 |
return false;
|
|
|
1510 |
if (!this.bulkItemsList.equals(that.bulkItemsList))
|
|
|
1511 |
return false;
|
|
|
1512 |
}
|
|
|
1513 |
|
|
|
1514 |
return true;
|
|
|
1515 |
}
|
|
|
1516 |
|
|
|
1517 |
@Override
|
|
|
1518 |
public int hashCode() {
|
|
|
1519 |
return 0;
|
|
|
1520 |
}
|
|
|
1521 |
|
|
|
1522 |
public int compareTo(addItemsInBulk_args other) {
|
|
|
1523 |
if (!getClass().equals(other.getClass())) {
|
|
|
1524 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1525 |
}
|
|
|
1526 |
|
|
|
1527 |
int lastComparison = 0;
|
|
|
1528 |
addItemsInBulk_args typedOther = (addItemsInBulk_args)other;
|
|
|
1529 |
|
|
|
1530 |
lastComparison = Boolean.valueOf(isSetBulkItemsList()).compareTo(typedOther.isSetBulkItemsList());
|
|
|
1531 |
if (lastComparison != 0) {
|
|
|
1532 |
return lastComparison;
|
|
|
1533 |
}
|
|
|
1534 |
if (isSetBulkItemsList()) {
|
|
|
1535 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.bulkItemsList, typedOther.bulkItemsList);
|
|
|
1536 |
if (lastComparison != 0) {
|
|
|
1537 |
return lastComparison;
|
|
|
1538 |
}
|
|
|
1539 |
}
|
|
|
1540 |
return 0;
|
|
|
1541 |
}
|
|
|
1542 |
|
|
|
1543 |
public _Fields fieldForId(int fieldId) {
|
|
|
1544 |
return _Fields.findByThriftId(fieldId);
|
|
|
1545 |
}
|
|
|
1546 |
|
|
|
1547 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1548 |
org.apache.thrift.protocol.TField field;
|
|
|
1549 |
iprot.readStructBegin();
|
|
|
1550 |
while (true)
|
|
|
1551 |
{
|
|
|
1552 |
field = iprot.readFieldBegin();
|
|
|
1553 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1554 |
break;
|
|
|
1555 |
}
|
|
|
1556 |
switch (field.id) {
|
|
|
1557 |
case 1: // BULK_ITEMS_LIST
|
|
|
1558 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1559 |
{
|
|
|
1560 |
org.apache.thrift.protocol.TList _list4 = iprot.readListBegin();
|
|
|
1561 |
this.bulkItemsList = new ArrayList<BulkItems>(_list4.size);
|
|
|
1562 |
for (int _i5 = 0; _i5 < _list4.size; ++_i5)
|
|
|
1563 |
{
|
|
|
1564 |
BulkItems _elem6; // required
|
|
|
1565 |
_elem6 = new BulkItems();
|
|
|
1566 |
_elem6.read(iprot);
|
|
|
1567 |
this.bulkItemsList.add(_elem6);
|
|
|
1568 |
}
|
|
|
1569 |
iprot.readListEnd();
|
|
|
1570 |
}
|
|
|
1571 |
} else {
|
|
|
1572 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1573 |
}
|
|
|
1574 |
break;
|
|
|
1575 |
default:
|
|
|
1576 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1577 |
}
|
|
|
1578 |
iprot.readFieldEnd();
|
|
|
1579 |
}
|
|
|
1580 |
iprot.readStructEnd();
|
|
|
1581 |
validate();
|
|
|
1582 |
}
|
|
|
1583 |
|
|
|
1584 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1585 |
validate();
|
|
|
1586 |
|
|
|
1587 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1588 |
if (this.bulkItemsList != null) {
|
|
|
1589 |
oprot.writeFieldBegin(BULK_ITEMS_LIST_FIELD_DESC);
|
|
|
1590 |
{
|
|
|
1591 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.bulkItemsList.size()));
|
|
|
1592 |
for (BulkItems _iter7 : this.bulkItemsList)
|
|
|
1593 |
{
|
|
|
1594 |
_iter7.write(oprot);
|
|
|
1595 |
}
|
|
|
1596 |
oprot.writeListEnd();
|
|
|
1597 |
}
|
|
|
1598 |
oprot.writeFieldEnd();
|
|
|
1599 |
}
|
|
|
1600 |
oprot.writeFieldStop();
|
|
|
1601 |
oprot.writeStructEnd();
|
|
|
1602 |
}
|
|
|
1603 |
|
|
|
1604 |
@Override
|
|
|
1605 |
public String toString() {
|
|
|
1606 |
StringBuilder sb = new StringBuilder("addItemsInBulk_args(");
|
|
|
1607 |
boolean first = true;
|
|
|
1608 |
|
|
|
1609 |
sb.append("bulkItemsList:");
|
|
|
1610 |
if (this.bulkItemsList == null) {
|
|
|
1611 |
sb.append("null");
|
|
|
1612 |
} else {
|
|
|
1613 |
sb.append(this.bulkItemsList);
|
|
|
1614 |
}
|
|
|
1615 |
first = false;
|
|
|
1616 |
sb.append(")");
|
|
|
1617 |
return sb.toString();
|
|
|
1618 |
}
|
|
|
1619 |
|
|
|
1620 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1621 |
// check for required fields
|
|
|
1622 |
}
|
|
|
1623 |
|
|
|
1624 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1625 |
try {
|
|
|
1626 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1627 |
} catch (org.apache.thrift.TException te) {
|
|
|
1628 |
throw new java.io.IOException(te);
|
|
|
1629 |
}
|
|
|
1630 |
}
|
|
|
1631 |
|
|
|
1632 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1633 |
try {
|
|
|
1634 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1635 |
} catch (org.apache.thrift.TException te) {
|
|
|
1636 |
throw new java.io.IOException(te);
|
|
|
1637 |
}
|
|
|
1638 |
}
|
|
|
1639 |
|
|
|
1640 |
}
|
|
|
1641 |
|
|
|
1642 |
public static class addItemsInBulk_result implements org.apache.thrift.TBase<addItemsInBulk_result, addItemsInBulk_result._Fields>, java.io.Serializable, Cloneable {
|
|
|
1643 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("addItemsInBulk_result");
|
|
|
1644 |
|
|
|
1645 |
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);
|
|
|
1646 |
|
|
|
1647 |
private List<String> success; // required
|
|
|
1648 |
|
|
|
1649 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
|
|
1650 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
|
|
1651 |
SUCCESS((short)0, "success");
|
|
|
1652 |
|
|
|
1653 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
1654 |
|
|
|
1655 |
static {
|
|
|
1656 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
1657 |
byName.put(field.getFieldName(), field);
|
|
|
1658 |
}
|
|
|
1659 |
}
|
|
|
1660 |
|
|
|
1661 |
/**
|
|
|
1662 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
1663 |
*/
|
|
|
1664 |
public static _Fields findByThriftId(int fieldId) {
|
|
|
1665 |
switch(fieldId) {
|
|
|
1666 |
case 0: // SUCCESS
|
|
|
1667 |
return SUCCESS;
|
|
|
1668 |
default:
|
|
|
1669 |
return null;
|
|
|
1670 |
}
|
|
|
1671 |
}
|
|
|
1672 |
|
|
|
1673 |
/**
|
|
|
1674 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
1675 |
* if it is not found.
|
|
|
1676 |
*/
|
|
|
1677 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
1678 |
_Fields fields = findByThriftId(fieldId);
|
|
|
1679 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
1680 |
return fields;
|
|
|
1681 |
}
|
|
|
1682 |
|
|
|
1683 |
/**
|
|
|
1684 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
1685 |
*/
|
|
|
1686 |
public static _Fields findByName(String name) {
|
|
|
1687 |
return byName.get(name);
|
|
|
1688 |
}
|
|
|
1689 |
|
|
|
1690 |
private final short _thriftId;
|
|
|
1691 |
private final String _fieldName;
|
|
|
1692 |
|
|
|
1693 |
_Fields(short thriftId, String fieldName) {
|
|
|
1694 |
_thriftId = thriftId;
|
|
|
1695 |
_fieldName = fieldName;
|
|
|
1696 |
}
|
|
|
1697 |
|
|
|
1698 |
public short getThriftFieldId() {
|
|
|
1699 |
return _thriftId;
|
|
|
1700 |
}
|
|
|
1701 |
|
|
|
1702 |
public String getFieldName() {
|
|
|
1703 |
return _fieldName;
|
|
|
1704 |
}
|
|
|
1705 |
}
|
|
|
1706 |
|
|
|
1707 |
// isset id assignments
|
|
|
1708 |
|
|
|
1709 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
|
|
1710 |
static {
|
|
|
1711 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
1712 |
tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
1713 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
|
|
1714 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING))));
|
|
|
1715 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
1716 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(addItemsInBulk_result.class, metaDataMap);
|
|
|
1717 |
}
|
|
|
1718 |
|
|
|
1719 |
public addItemsInBulk_result() {
|
|
|
1720 |
}
|
|
|
1721 |
|
|
|
1722 |
public addItemsInBulk_result(
|
|
|
1723 |
List<String> success)
|
|
|
1724 |
{
|
|
|
1725 |
this();
|
|
|
1726 |
this.success = success;
|
|
|
1727 |
}
|
|
|
1728 |
|
|
|
1729 |
/**
|
|
|
1730 |
* Performs a deep copy on <i>other</i>.
|
|
|
1731 |
*/
|
|
|
1732 |
public addItemsInBulk_result(addItemsInBulk_result other) {
|
|
|
1733 |
if (other.isSetSuccess()) {
|
|
|
1734 |
List<String> __this__success = new ArrayList<String>();
|
|
|
1735 |
for (String other_element : other.success) {
|
|
|
1736 |
__this__success.add(other_element);
|
|
|
1737 |
}
|
|
|
1738 |
this.success = __this__success;
|
|
|
1739 |
}
|
|
|
1740 |
}
|
|
|
1741 |
|
|
|
1742 |
public addItemsInBulk_result deepCopy() {
|
|
|
1743 |
return new addItemsInBulk_result(this);
|
|
|
1744 |
}
|
|
|
1745 |
|
|
|
1746 |
@Override
|
|
|
1747 |
public void clear() {
|
|
|
1748 |
this.success = null;
|
|
|
1749 |
}
|
|
|
1750 |
|
|
|
1751 |
public int getSuccessSize() {
|
|
|
1752 |
return (this.success == null) ? 0 : this.success.size();
|
|
|
1753 |
}
|
|
|
1754 |
|
|
|
1755 |
public java.util.Iterator<String> getSuccessIterator() {
|
|
|
1756 |
return (this.success == null) ? null : this.success.iterator();
|
|
|
1757 |
}
|
|
|
1758 |
|
|
|
1759 |
public void addToSuccess(String elem) {
|
|
|
1760 |
if (this.success == null) {
|
|
|
1761 |
this.success = new ArrayList<String>();
|
|
|
1762 |
}
|
|
|
1763 |
this.success.add(elem);
|
|
|
1764 |
}
|
|
|
1765 |
|
|
|
1766 |
public List<String> getSuccess() {
|
|
|
1767 |
return this.success;
|
|
|
1768 |
}
|
|
|
1769 |
|
|
|
1770 |
public void setSuccess(List<String> success) {
|
|
|
1771 |
this.success = success;
|
|
|
1772 |
}
|
|
|
1773 |
|
|
|
1774 |
public void unsetSuccess() {
|
|
|
1775 |
this.success = null;
|
|
|
1776 |
}
|
|
|
1777 |
|
|
|
1778 |
/** Returns true if field success is set (has been assigned a value) and false otherwise */
|
|
|
1779 |
public boolean isSetSuccess() {
|
|
|
1780 |
return this.success != null;
|
|
|
1781 |
}
|
|
|
1782 |
|
|
|
1783 |
public void setSuccessIsSet(boolean value) {
|
|
|
1784 |
if (!value) {
|
|
|
1785 |
this.success = null;
|
|
|
1786 |
}
|
|
|
1787 |
}
|
|
|
1788 |
|
|
|
1789 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
1790 |
switch (field) {
|
|
|
1791 |
case SUCCESS:
|
|
|
1792 |
if (value == null) {
|
|
|
1793 |
unsetSuccess();
|
|
|
1794 |
} else {
|
|
|
1795 |
setSuccess((List<String>)value);
|
|
|
1796 |
}
|
|
|
1797 |
break;
|
|
|
1798 |
|
|
|
1799 |
}
|
|
|
1800 |
}
|
|
|
1801 |
|
|
|
1802 |
public Object getFieldValue(_Fields field) {
|
|
|
1803 |
switch (field) {
|
|
|
1804 |
case SUCCESS:
|
|
|
1805 |
return getSuccess();
|
|
|
1806 |
|
|
|
1807 |
}
|
|
|
1808 |
throw new IllegalStateException();
|
|
|
1809 |
}
|
|
|
1810 |
|
|
|
1811 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
1812 |
public boolean isSet(_Fields field) {
|
|
|
1813 |
if (field == null) {
|
|
|
1814 |
throw new IllegalArgumentException();
|
|
|
1815 |
}
|
|
|
1816 |
|
|
|
1817 |
switch (field) {
|
|
|
1818 |
case SUCCESS:
|
|
|
1819 |
return isSetSuccess();
|
|
|
1820 |
}
|
|
|
1821 |
throw new IllegalStateException();
|
|
|
1822 |
}
|
|
|
1823 |
|
|
|
1824 |
@Override
|
|
|
1825 |
public boolean equals(Object that) {
|
|
|
1826 |
if (that == null)
|
|
|
1827 |
return false;
|
|
|
1828 |
if (that instanceof addItemsInBulk_result)
|
|
|
1829 |
return this.equals((addItemsInBulk_result)that);
|
|
|
1830 |
return false;
|
|
|
1831 |
}
|
|
|
1832 |
|
|
|
1833 |
public boolean equals(addItemsInBulk_result that) {
|
|
|
1834 |
if (that == null)
|
|
|
1835 |
return false;
|
|
|
1836 |
|
|
|
1837 |
boolean this_present_success = true && this.isSetSuccess();
|
|
|
1838 |
boolean that_present_success = true && that.isSetSuccess();
|
|
|
1839 |
if (this_present_success || that_present_success) {
|
|
|
1840 |
if (!(this_present_success && that_present_success))
|
|
|
1841 |
return false;
|
|
|
1842 |
if (!this.success.equals(that.success))
|
|
|
1843 |
return false;
|
|
|
1844 |
}
|
|
|
1845 |
|
|
|
1846 |
return true;
|
|
|
1847 |
}
|
|
|
1848 |
|
|
|
1849 |
@Override
|
|
|
1850 |
public int hashCode() {
|
|
|
1851 |
return 0;
|
|
|
1852 |
}
|
|
|
1853 |
|
|
|
1854 |
public int compareTo(addItemsInBulk_result other) {
|
|
|
1855 |
if (!getClass().equals(other.getClass())) {
|
|
|
1856 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1857 |
}
|
|
|
1858 |
|
|
|
1859 |
int lastComparison = 0;
|
|
|
1860 |
addItemsInBulk_result typedOther = (addItemsInBulk_result)other;
|
|
|
1861 |
|
|
|
1862 |
lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
|
|
|
1863 |
if (lastComparison != 0) {
|
|
|
1864 |
return lastComparison;
|
|
|
1865 |
}
|
|
|
1866 |
if (isSetSuccess()) {
|
|
|
1867 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
|
|
|
1868 |
if (lastComparison != 0) {
|
|
|
1869 |
return lastComparison;
|
|
|
1870 |
}
|
|
|
1871 |
}
|
|
|
1872 |
return 0;
|
|
|
1873 |
}
|
|
|
1874 |
|
|
|
1875 |
public _Fields fieldForId(int fieldId) {
|
|
|
1876 |
return _Fields.findByThriftId(fieldId);
|
|
|
1877 |
}
|
|
|
1878 |
|
|
|
1879 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1880 |
org.apache.thrift.protocol.TField field;
|
|
|
1881 |
iprot.readStructBegin();
|
|
|
1882 |
while (true)
|
|
|
1883 |
{
|
|
|
1884 |
field = iprot.readFieldBegin();
|
|
|
1885 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
|
|
1886 |
break;
|
|
|
1887 |
}
|
|
|
1888 |
switch (field.id) {
|
|
|
1889 |
case 0: // SUCCESS
|
|
|
1890 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
|
|
1891 |
{
|
|
|
1892 |
org.apache.thrift.protocol.TList _list8 = iprot.readListBegin();
|
|
|
1893 |
this.success = new ArrayList<String>(_list8.size);
|
|
|
1894 |
for (int _i9 = 0; _i9 < _list8.size; ++_i9)
|
|
|
1895 |
{
|
|
|
1896 |
String _elem10; // required
|
|
|
1897 |
_elem10 = iprot.readString();
|
|
|
1898 |
this.success.add(_elem10);
|
|
|
1899 |
}
|
|
|
1900 |
iprot.readListEnd();
|
|
|
1901 |
}
|
|
|
1902 |
} else {
|
|
|
1903 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1904 |
}
|
|
|
1905 |
break;
|
|
|
1906 |
default:
|
|
|
1907 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1908 |
}
|
|
|
1909 |
iprot.readFieldEnd();
|
|
|
1910 |
}
|
|
|
1911 |
iprot.readStructEnd();
|
|
|
1912 |
validate();
|
|
|
1913 |
}
|
|
|
1914 |
|
|
|
1915 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
|
|
1916 |
oprot.writeStructBegin(STRUCT_DESC);
|
|
|
1917 |
|
|
|
1918 |
if (this.isSetSuccess()) {
|
|
|
1919 |
oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
|
|
|
1920 |
{
|
|
|
1921 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRING, this.success.size()));
|
|
|
1922 |
for (String _iter11 : this.success)
|
|
|
1923 |
{
|
|
|
1924 |
oprot.writeString(_iter11);
|
|
|
1925 |
}
|
|
|
1926 |
oprot.writeListEnd();
|
|
|
1927 |
}
|
|
|
1928 |
oprot.writeFieldEnd();
|
|
|
1929 |
}
|
|
|
1930 |
oprot.writeFieldStop();
|
|
|
1931 |
oprot.writeStructEnd();
|
|
|
1932 |
}
|
|
|
1933 |
|
|
|
1934 |
@Override
|
|
|
1935 |
public String toString() {
|
|
|
1936 |
StringBuilder sb = new StringBuilder("addItemsInBulk_result(");
|
|
|
1937 |
boolean first = true;
|
|
|
1938 |
|
|
|
1939 |
sb.append("success:");
|
|
|
1940 |
if (this.success == null) {
|
|
|
1941 |
sb.append("null");
|
|
|
1942 |
} else {
|
|
|
1943 |
sb.append(this.success);
|
|
|
1944 |
}
|
|
|
1945 |
first = false;
|
|
|
1946 |
sb.append(")");
|
|
|
1947 |
return sb.toString();
|
|
|
1948 |
}
|
|
|
1949 |
|
|
|
1950 |
public void validate() throws org.apache.thrift.TException {
|
|
|
1951 |
// check for required fields
|
|
|
1952 |
}
|
|
|
1953 |
|
|
|
1954 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1955 |
try {
|
|
|
1956 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1957 |
} catch (org.apache.thrift.TException te) {
|
|
|
1958 |
throw new java.io.IOException(te);
|
|
|
1959 |
}
|
|
|
1960 |
}
|
|
|
1961 |
|
|
|
1962 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1963 |
try {
|
|
|
1964 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1965 |
} catch (org.apache.thrift.TException te) {
|
|
|
1966 |
throw new java.io.IOException(te);
|
|
|
1967 |
}
|
|
|
1968 |
}
|
|
|
1969 |
|
|
|
1970 |
}
|
|
|
1971 |
|
| 14384 |
kshitij.so |
1972 |
}
|