Subversion Repositories SmartDukaan

Rev

Rev 3374 | Rev 4386 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3374 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.logistics;
6
package in.shop2020.logistics;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class LogisticsService {
23
public class LogisticsService {
27
 
24
 
28
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
25
  public interface Iface extends in.shop2020.generic.GenericService.Iface {
29
 
26
 
30
    /**
27
    /**
31
     * Returns a provider for a given provider ID. Throws an exception if none found.
28
     * Returns a provider for a given provider ID. Throws an exception if none found.
32
     * 
29
     * 
33
     * @param providerId
30
     * @param providerId
34
     */
31
     */
35
    public Provider getProvider(long providerId) throws LogisticsServiceException, TException;
32
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
36
 
33
 
37
    /**
34
    /**
38
     * Returns a list containing all the providers.
35
     * Returns a list containing all the providers.
39
     */
36
     */
40
    public List<Provider> getAllProviders() throws LogisticsServiceException, TException;
37
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException;
41
 
38
 
42
    /**
39
    /**
43
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
40
     * Returns a LogisticsInfo structure w/o an airway bill number. Use this method during the estimation phase.
44
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
41
     * Raises an exception if this pincode is not allocated to any warehouse zone or provider. Also, if the pincode
45
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
42
     * is allocated to a warehouse zone but there are no actual warehouses in that zone, an exception is raised.
46
     * 
43
     * 
47
     * @param itemId
44
     * @param itemId
48
     * @param destination_pin
45
     * @param destination_pin
49
     */
46
     */
50
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, TException;
47
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException;
51
 
48
 
52
    /**
49
    /**
53
     * Same as above excpet that an airway bill number is also allocated and returned.
50
     * Same as above excpet that an airway bill number is also allocated and returned.
54
     * 
51
     * 
55
     * @param destination_pincode
52
     * @param destination_pincode
56
     * @param item_id
53
     * @param item_id
57
     * @param type
54
     * @param type
58
     */
55
     */
59
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, TException;
56
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
60
 
57
 
61
    /**
58
    /**
62
     * Returns an unused AWB number for the given provider.
59
     * Returns an unused AWB number for the given provider.
63
     * 
60
     * 
64
     * @param providerId
61
     * @param providerId
65
     */
62
     */
66
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, TException;
63
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
67
 
64
 
68
    /**
65
    /**
69
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
66
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
70
     * 
67
     * 
71
     * @param awb
68
     * @param awb
72
     * @param providerId
69
     * @param providerId
73
     */
70
     */
74
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, TException;
71
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
75
 
72
 
76
    /**
73
    /**
77
     * Returns the short three letter code of a pincode for the given provider.
74
     * Returns the short three letter code of a pincode for the given provider.
78
     *    Raises an exception if the pin code is not serviced by the given provider.
75
     *    Raises an exception if the pin code is not serviced by the given provider.
79
     * 
76
     * 
80
     * @param providerId
77
     * @param providerId
81
     * @param pinCode
78
     * @param pinCode
82
     */
79
     */
83
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, TException;
80
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException;
84
 
81
 
85
    /**
82
    /**
86
     * Returns the number of unused AWB numbers for the given provider of the given type
83
     * Returns the number of unused AWB numbers for the given provider of the given type
87
     * 
84
     * 
88
     * @param providerId
85
     * @param providerId
89
     * @param type
86
     * @param type
90
     */
87
     */
91
    public long getFreeAwbCount(long providerId, String type) throws TException;
88
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException;
92
 
89
 
93
    /**
90
    /**
94
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
91
     * Returns list of Holiday dates between fromDate and toDate (both inclusive)
95
     * fromDate should be passed as milliseconds corresponding to the start of the day.
92
     * fromDate should be passed as milliseconds corresponding to the start of the day.
96
     * If fromDate is passed as -1, fromDate is not considered for filtering
93
     * If fromDate is passed as -1, fromDate is not considered for filtering
97
     * If toDate is passed as -1, toDate is not considered for filtering
94
     * If toDate is passed as -1, toDate is not considered for filtering
98
     * 
95
     * 
99
     * @param fromDate
96
     * @param fromDate
100
     * @param toDate
97
     * @param toDate
101
     */
98
     */
102
    public List<Long> getHolidays(long fromDate, long toDate) throws TException;
99
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException;
103
 
100
 
104
    /**
101
    /**
105
     * Returns true if COD is allowed for this destination pincode
102
     * Returns true if COD is allowed for this destination pincode
106
     * 
103
     * 
107
     * @param destination_pincode
104
     * @param destination_pincode
108
     */
105
     */
109
    public boolean isCodAllowed(String destination_pincode) throws TException;
106
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException;
-
 
107
 
-
 
108
  }
-
 
109
 
-
 
110
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
-
 
111
 
-
 
112
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
-
 
113
 
-
 
114
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAllProviders_call> resultHandler) throws org.apache.thrift.TException;
-
 
115
 
-
 
116
    public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
-
 
117
 
-
 
118
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
119
 
-
 
120
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
-
 
121
 
-
 
122
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
-
 
123
 
-
 
124
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
-
 
125
 
-
 
126
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException;
-
 
127
 
-
 
128
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getHolidays_call> resultHandler) throws org.apache.thrift.TException;
-
 
129
 
-
 
130
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.isCodAllowed_call> resultHandler) throws org.apache.thrift.TException;
110
 
131
 
111
  }
132
  }
112
 
133
 
113
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
134
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
-
 
135
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
114
    public Client(TProtocol prot)
136
      public Factory() {}
-
 
137
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
-
 
138
        return new Client(prot);
115
    {
139
      }
-
 
140
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
116
      this(prot, prot);
141
        return new Client(iprot, oprot);
-
 
142
      }
117
    }
143
    }
118
 
144
 
119
    public Client(TProtocol iprot, TProtocol oprot)
145
    public Client(org.apache.thrift.protocol.TProtocol prot)
120
    {
146
    {
-
 
147
      super(prot, prot);
-
 
148
    }
-
 
149
 
-
 
150
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
121
      super(iprot, oprot);
151
      super(iprot, oprot);
122
    }
152
    }
123
 
153
 
124
    public Provider getProvider(long providerId) throws LogisticsServiceException, TException
154
    public Provider getProvider(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
125
    {
155
    {
126
      send_getProvider(providerId);
156
      send_getProvider(providerId);
127
      return recv_getProvider();
157
      return recv_getProvider();
128
    }
158
    }
129
 
159
 
130
    public void send_getProvider(long providerId) throws TException
160
    public void send_getProvider(long providerId) throws org.apache.thrift.TException
131
    {
161
    {
132
      oprot_.writeMessageBegin(new TMessage("getProvider", TMessageType.CALL, seqid_));
-
 
133
      getProvider_args args = new getProvider_args();
162
      getProvider_args args = new getProvider_args();
134
      args.providerId = providerId;
163
      args.setProviderId(providerId);
135
      args.write(oprot_);
-
 
136
      oprot_.writeMessageEnd();
-
 
137
      oprot_.getTransport().flush();
164
      sendBase("getProvider", args);
138
    }
165
    }
139
 
166
 
140
    public Provider recv_getProvider() throws LogisticsServiceException, TException
167
    public Provider recv_getProvider() throws LogisticsServiceException, org.apache.thrift.TException
141
    {
168
    {
142
      TMessage msg = iprot_.readMessageBegin();
-
 
143
      if (msg.type == TMessageType.EXCEPTION) {
-
 
144
        TApplicationException x = TApplicationException.read(iprot_);
-
 
145
        iprot_.readMessageEnd();
-
 
146
        throw x;
-
 
147
      }
-
 
148
      getProvider_result result = new getProvider_result();
169
      getProvider_result result = new getProvider_result();
149
      result.read(iprot_);
-
 
150
      iprot_.readMessageEnd();
170
      receiveBase(result, "getProvider");
151
      if (result.isSetSuccess()) {
171
      if (result.isSetSuccess()) {
152
        return result.success;
172
        return result.success;
153
      }
173
      }
154
      if (result.lse != null) {
174
      if (result.lse != null) {
155
        throw result.lse;
175
        throw result.lse;
156
      }
176
      }
157
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
177
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getProvider failed: unknown result");
158
    }
178
    }
159
 
179
 
160
    public List<Provider> getAllProviders() throws LogisticsServiceException, TException
180
    public List<Provider> getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
161
    {
181
    {
162
      send_getAllProviders();
182
      send_getAllProviders();
163
      return recv_getAllProviders();
183
      return recv_getAllProviders();
164
    }
184
    }
165
 
185
 
166
    public void send_getAllProviders() throws TException
186
    public void send_getAllProviders() throws org.apache.thrift.TException
167
    {
187
    {
168
      oprot_.writeMessageBegin(new TMessage("getAllProviders", TMessageType.CALL, seqid_));
-
 
169
      getAllProviders_args args = new getAllProviders_args();
188
      getAllProviders_args args = new getAllProviders_args();
170
      args.write(oprot_);
-
 
171
      oprot_.writeMessageEnd();
-
 
172
      oprot_.getTransport().flush();
189
      sendBase("getAllProviders", args);
173
    }
190
    }
174
 
191
 
175
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, TException
192
    public List<Provider> recv_getAllProviders() throws LogisticsServiceException, org.apache.thrift.TException
176
    {
193
    {
177
      TMessage msg = iprot_.readMessageBegin();
-
 
178
      if (msg.type == TMessageType.EXCEPTION) {
-
 
179
        TApplicationException x = TApplicationException.read(iprot_);
-
 
180
        iprot_.readMessageEnd();
-
 
181
        throw x;
-
 
182
      }
-
 
183
      getAllProviders_result result = new getAllProviders_result();
194
      getAllProviders_result result = new getAllProviders_result();
184
      result.read(iprot_);
195
      receiveBase(result, "getAllProviders");
185
      iprot_.readMessageEnd();
-
 
186
      if (result.isSetSuccess()) {
196
      if (result.isSetSuccess()) {
187
        return result.success;
197
        return result.success;
188
      }
198
      }
189
      if (result.lse != null) {
199
      if (result.lse != null) {
190
        throw result.lse;
200
        throw result.lse;
191
      }
201
      }
192
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
202
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAllProviders failed: unknown result");
193
    }
203
    }
194
 
204
 
195
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, TException
205
    public LogisticsInfo getLogisticsEstimation(long itemId, String destination_pin) throws LogisticsServiceException, org.apache.thrift.TException
196
    {
206
    {
197
      send_getLogisticsEstimation(itemId, destination_pin);
207
      send_getLogisticsEstimation(itemId, destination_pin);
198
      return recv_getLogisticsEstimation();
208
      return recv_getLogisticsEstimation();
199
    }
209
    }
200
 
210
 
201
    public void send_getLogisticsEstimation(long itemId, String destination_pin) throws TException
211
    public void send_getLogisticsEstimation(long itemId, String destination_pin) throws org.apache.thrift.TException
202
    {
212
    {
203
      oprot_.writeMessageBegin(new TMessage("getLogisticsEstimation", TMessageType.CALL, seqid_));
-
 
204
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
213
      getLogisticsEstimation_args args = new getLogisticsEstimation_args();
205
      args.itemId = itemId;
214
      args.setItemId(itemId);
206
      args.destination_pin = destination_pin;
215
      args.setDestination_pin(destination_pin);
207
      args.write(oprot_);
-
 
208
      oprot_.writeMessageEnd();
-
 
209
      oprot_.getTransport().flush();
216
      sendBase("getLogisticsEstimation", args);
210
    }
217
    }
211
 
218
 
212
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, TException
219
    public LogisticsInfo recv_getLogisticsEstimation() throws LogisticsServiceException, org.apache.thrift.TException
213
    {
220
    {
214
      TMessage msg = iprot_.readMessageBegin();
-
 
215
      if (msg.type == TMessageType.EXCEPTION) {
-
 
216
        TApplicationException x = TApplicationException.read(iprot_);
-
 
217
        iprot_.readMessageEnd();
-
 
218
        throw x;
-
 
219
      }
-
 
220
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
221
      getLogisticsEstimation_result result = new getLogisticsEstimation_result();
221
      result.read(iprot_);
222
      receiveBase(result, "getLogisticsEstimation");
222
      iprot_.readMessageEnd();
-
 
223
      if (result.isSetSuccess()) {
223
      if (result.isSetSuccess()) {
224
        return result.success;
224
        return result.success;
225
      }
225
      }
226
      if (result.se != null) {
226
      if (result.se != null) {
227
        throw result.se;
227
        throw result.se;
228
      }
228
      }
229
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
229
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsEstimation failed: unknown result");
230
    }
230
    }
231
 
231
 
232
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, TException
232
    public LogisticsInfo getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
233
    {
233
    {
234
      send_getLogisticsInfo(destination_pincode, item_id, type);
234
      send_getLogisticsInfo(destination_pincode, item_id, type);
235
      return recv_getLogisticsInfo();
235
      return recv_getLogisticsInfo();
236
    }
236
    }
237
 
237
 
238
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws TException
238
    public void send_getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type) throws org.apache.thrift.TException
239
    {
239
    {
240
      oprot_.writeMessageBegin(new TMessage("getLogisticsInfo", TMessageType.CALL, seqid_));
-
 
241
      getLogisticsInfo_args args = new getLogisticsInfo_args();
240
      getLogisticsInfo_args args = new getLogisticsInfo_args();
242
      args.destination_pincode = destination_pincode;
241
      args.setDestination_pincode(destination_pincode);
243
      args.item_id = item_id;
242
      args.setItem_id(item_id);
244
      args.type = type;
243
      args.setType(type);
245
      args.write(oprot_);
-
 
246
      oprot_.writeMessageEnd();
-
 
247
      oprot_.getTransport().flush();
244
      sendBase("getLogisticsInfo", args);
248
    }
245
    }
249
 
246
 
250
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, TException
247
    public LogisticsInfo recv_getLogisticsInfo() throws LogisticsServiceException, org.apache.thrift.TException
251
    {
248
    {
252
      TMessage msg = iprot_.readMessageBegin();
-
 
253
      if (msg.type == TMessageType.EXCEPTION) {
-
 
254
        TApplicationException x = TApplicationException.read(iprot_);
-
 
255
        iprot_.readMessageEnd();
-
 
256
        throw x;
-
 
257
      }
-
 
258
      getLogisticsInfo_result result = new getLogisticsInfo_result();
249
      getLogisticsInfo_result result = new getLogisticsInfo_result();
259
      result.read(iprot_);
250
      receiveBase(result, "getLogisticsInfo");
260
      iprot_.readMessageEnd();
-
 
261
      if (result.isSetSuccess()) {
251
      if (result.isSetSuccess()) {
262
        return result.success;
252
        return result.success;
263
      }
253
      }
264
      if (result.se != null) {
254
      if (result.se != null) {
265
        throw result.se;
255
        throw result.se;
266
      }
256
      }
267
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
257
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
268
    }
258
    }
269
 
259
 
270
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, TException
260
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
271
    {
261
    {
272
      send_getEmptyAWB(providerId);
262
      send_getEmptyAWB(providerId);
273
      return recv_getEmptyAWB();
263
      return recv_getEmptyAWB();
274
    }
264
    }
275
 
265
 
276
    public void send_getEmptyAWB(long providerId) throws TException
266
    public void send_getEmptyAWB(long providerId) throws org.apache.thrift.TException
277
    {
267
    {
278
      oprot_.writeMessageBegin(new TMessage("getEmptyAWB", TMessageType.CALL, seqid_));
-
 
279
      getEmptyAWB_args args = new getEmptyAWB_args();
268
      getEmptyAWB_args args = new getEmptyAWB_args();
280
      args.providerId = providerId;
269
      args.setProviderId(providerId);
281
      args.write(oprot_);
-
 
282
      oprot_.writeMessageEnd();
-
 
283
      oprot_.getTransport().flush();
270
      sendBase("getEmptyAWB", args);
284
    }
271
    }
285
 
272
 
286
    public String recv_getEmptyAWB() throws LogisticsServiceException, TException
273
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
287
    {
274
    {
288
      TMessage msg = iprot_.readMessageBegin();
-
 
289
      if (msg.type == TMessageType.EXCEPTION) {
-
 
290
        TApplicationException x = TApplicationException.read(iprot_);
-
 
291
        iprot_.readMessageEnd();
-
 
292
        throw x;
-
 
293
      }
-
 
294
      getEmptyAWB_result result = new getEmptyAWB_result();
275
      getEmptyAWB_result result = new getEmptyAWB_result();
295
      result.read(iprot_);
-
 
296
      iprot_.readMessageEnd();
276
      receiveBase(result, "getEmptyAWB");
297
      if (result.isSetSuccess()) {
277
      if (result.isSetSuccess()) {
298
        return result.success;
278
        return result.success;
299
      }
279
      }
300
      if (result.se != null) {
280
      if (result.se != null) {
301
        throw result.se;
281
        throw result.se;
302
      }
282
      }
303
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
283
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getEmptyAWB failed: unknown result");
304
    }
284
    }
305
 
285
 
306
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, TException
286
    public List<AwbUpdate> getShipmentInfo(String awb, long providerId) throws LogisticsServiceException, org.apache.thrift.TException
307
    {
287
    {
308
      send_getShipmentInfo(awb, providerId);
288
      send_getShipmentInfo(awb, providerId);
309
      return recv_getShipmentInfo();
289
      return recv_getShipmentInfo();
310
    }
290
    }
311
 
291
 
312
    public void send_getShipmentInfo(String awb, long providerId) throws TException
292
    public void send_getShipmentInfo(String awb, long providerId) throws org.apache.thrift.TException
313
    {
293
    {
314
      oprot_.writeMessageBegin(new TMessage("getShipmentInfo", TMessageType.CALL, seqid_));
-
 
315
      getShipmentInfo_args args = new getShipmentInfo_args();
294
      getShipmentInfo_args args = new getShipmentInfo_args();
316
      args.awb = awb;
295
      args.setAwb(awb);
317
      args.providerId = providerId;
296
      args.setProviderId(providerId);
318
      args.write(oprot_);
-
 
319
      oprot_.writeMessageEnd();
-
 
320
      oprot_.getTransport().flush();
297
      sendBase("getShipmentInfo", args);
321
    }
298
    }
322
 
299
 
323
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, TException
300
    public List<AwbUpdate> recv_getShipmentInfo() throws LogisticsServiceException, org.apache.thrift.TException
324
    {
301
    {
325
      TMessage msg = iprot_.readMessageBegin();
-
 
326
      if (msg.type == TMessageType.EXCEPTION) {
-
 
327
        TApplicationException x = TApplicationException.read(iprot_);
-
 
328
        iprot_.readMessageEnd();
-
 
329
        throw x;
-
 
330
      }
-
 
331
      getShipmentInfo_result result = new getShipmentInfo_result();
302
      getShipmentInfo_result result = new getShipmentInfo_result();
332
      result.read(iprot_);
303
      receiveBase(result, "getShipmentInfo");
333
      iprot_.readMessageEnd();
-
 
334
      if (result.isSetSuccess()) {
304
      if (result.isSetSuccess()) {
335
        return result.success;
305
        return result.success;
336
      }
306
      }
337
      if (result.se != null) {
307
      if (result.se != null) {
338
        throw result.se;
308
        throw result.se;
339
      }
309
      }
340
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
310
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getShipmentInfo failed: unknown result");
341
    }
311
    }
342
 
312
 
343
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, TException
313
    public String getDestinationCode(long providerId, String pinCode) throws LogisticsServiceException, org.apache.thrift.TException
344
    {
314
    {
345
      send_getDestinationCode(providerId, pinCode);
315
      send_getDestinationCode(providerId, pinCode);
346
      return recv_getDestinationCode();
316
      return recv_getDestinationCode();
347
    }
317
    }
348
 
318
 
349
    public void send_getDestinationCode(long providerId, String pinCode) throws TException
319
    public void send_getDestinationCode(long providerId, String pinCode) throws org.apache.thrift.TException
350
    {
320
    {
351
      oprot_.writeMessageBegin(new TMessage("getDestinationCode", TMessageType.CALL, seqid_));
-
 
352
      getDestinationCode_args args = new getDestinationCode_args();
321
      getDestinationCode_args args = new getDestinationCode_args();
353
      args.providerId = providerId;
322
      args.setProviderId(providerId);
354
      args.pinCode = pinCode;
323
      args.setPinCode(pinCode);
355
      args.write(oprot_);
-
 
356
      oprot_.writeMessageEnd();
-
 
357
      oprot_.getTransport().flush();
324
      sendBase("getDestinationCode", args);
358
    }
325
    }
359
 
326
 
360
    public String recv_getDestinationCode() throws LogisticsServiceException, TException
327
    public String recv_getDestinationCode() throws LogisticsServiceException, org.apache.thrift.TException
361
    {
328
    {
362
      TMessage msg = iprot_.readMessageBegin();
-
 
363
      if (msg.type == TMessageType.EXCEPTION) {
-
 
364
        TApplicationException x = TApplicationException.read(iprot_);
-
 
365
        iprot_.readMessageEnd();
-
 
366
        throw x;
-
 
367
      }
-
 
368
      getDestinationCode_result result = new getDestinationCode_result();
329
      getDestinationCode_result result = new getDestinationCode_result();
369
      result.read(iprot_);
-
 
370
      iprot_.readMessageEnd();
330
      receiveBase(result, "getDestinationCode");
371
      if (result.isSetSuccess()) {
331
      if (result.isSetSuccess()) {
372
        return result.success;
332
        return result.success;
373
      }
333
      }
374
      if (result.se != null) {
334
      if (result.se != null) {
375
        throw result.se;
335
        throw result.se;
376
      }
336
      }
377
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
337
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getDestinationCode failed: unknown result");
378
    }
338
    }
379
 
339
 
380
    public long getFreeAwbCount(long providerId, String type) throws TException
340
    public long getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
381
    {
341
    {
382
      send_getFreeAwbCount(providerId, type);
342
      send_getFreeAwbCount(providerId, type);
383
      return recv_getFreeAwbCount();
343
      return recv_getFreeAwbCount();
384
    }
344
    }
385
 
345
 
386
    public void send_getFreeAwbCount(long providerId, String type) throws TException
346
    public void send_getFreeAwbCount(long providerId, String type) throws org.apache.thrift.TException
387
    {
347
    {
388
      oprot_.writeMessageBegin(new TMessage("getFreeAwbCount", TMessageType.CALL, seqid_));
-
 
389
      getFreeAwbCount_args args = new getFreeAwbCount_args();
348
      getFreeAwbCount_args args = new getFreeAwbCount_args();
390
      args.providerId = providerId;
349
      args.setProviderId(providerId);
391
      args.type = type;
350
      args.setType(type);
392
      args.write(oprot_);
-
 
393
      oprot_.writeMessageEnd();
-
 
394
      oprot_.getTransport().flush();
351
      sendBase("getFreeAwbCount", args);
395
    }
352
    }
396
 
353
 
397
    public long recv_getFreeAwbCount() throws TException
354
    public long recv_getFreeAwbCount() throws org.apache.thrift.TException
398
    {
355
    {
399
      TMessage msg = iprot_.readMessageBegin();
-
 
400
      if (msg.type == TMessageType.EXCEPTION) {
-
 
401
        TApplicationException x = TApplicationException.read(iprot_);
-
 
402
        iprot_.readMessageEnd();
-
 
403
        throw x;
-
 
404
      }
-
 
405
      getFreeAwbCount_result result = new getFreeAwbCount_result();
356
      getFreeAwbCount_result result = new getFreeAwbCount_result();
406
      result.read(iprot_);
357
      receiveBase(result, "getFreeAwbCount");
407
      iprot_.readMessageEnd();
-
 
408
      if (result.isSetSuccess()) {
358
      if (result.isSetSuccess()) {
409
        return result.success;
359
        return result.success;
410
      }
360
      }
411
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
361
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getFreeAwbCount failed: unknown result");
412
    }
362
    }
413
 
363
 
414
    public List<Long> getHolidays(long fromDate, long toDate) throws TException
364
    public List<Long> getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
415
    {
365
    {
416
      send_getHolidays(fromDate, toDate);
366
      send_getHolidays(fromDate, toDate);
417
      return recv_getHolidays();
367
      return recv_getHolidays();
418
    }
368
    }
419
 
369
 
420
    public void send_getHolidays(long fromDate, long toDate) throws TException
370
    public void send_getHolidays(long fromDate, long toDate) throws org.apache.thrift.TException
421
    {
371
    {
422
      oprot_.writeMessageBegin(new TMessage("getHolidays", TMessageType.CALL, seqid_));
-
 
423
      getHolidays_args args = new getHolidays_args();
372
      getHolidays_args args = new getHolidays_args();
424
      args.fromDate = fromDate;
373
      args.setFromDate(fromDate);
425
      args.toDate = toDate;
374
      args.setToDate(toDate);
426
      args.write(oprot_);
-
 
427
      oprot_.writeMessageEnd();
-
 
428
      oprot_.getTransport().flush();
375
      sendBase("getHolidays", args);
429
    }
376
    }
430
 
377
 
431
    public List<Long> recv_getHolidays() throws TException
378
    public List<Long> recv_getHolidays() throws org.apache.thrift.TException
432
    {
379
    {
433
      TMessage msg = iprot_.readMessageBegin();
-
 
434
      if (msg.type == TMessageType.EXCEPTION) {
-
 
435
        TApplicationException x = TApplicationException.read(iprot_);
-
 
436
        iprot_.readMessageEnd();
-
 
437
        throw x;
-
 
438
      }
-
 
439
      getHolidays_result result = new getHolidays_result();
380
      getHolidays_result result = new getHolidays_result();
440
      result.read(iprot_);
381
      receiveBase(result, "getHolidays");
441
      iprot_.readMessageEnd();
-
 
442
      if (result.isSetSuccess()) {
382
      if (result.isSetSuccess()) {
443
        return result.success;
383
        return result.success;
444
      }
384
      }
445
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
385
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getHolidays failed: unknown result");
446
    }
386
    }
447
 
387
 
448
    public boolean isCodAllowed(String destination_pincode) throws TException
388
    public boolean isCodAllowed(String destination_pincode) throws org.apache.thrift.TException
449
    {
389
    {
450
      send_isCodAllowed(destination_pincode);
390
      send_isCodAllowed(destination_pincode);
451
      return recv_isCodAllowed();
391
      return recv_isCodAllowed();
452
    }
392
    }
453
 
393
 
454
    public void send_isCodAllowed(String destination_pincode) throws TException
394
    public void send_isCodAllowed(String destination_pincode) throws org.apache.thrift.TException
455
    {
395
    {
456
      oprot_.writeMessageBegin(new TMessage("isCodAllowed", TMessageType.CALL, seqid_));
-
 
457
      isCodAllowed_args args = new isCodAllowed_args();
396
      isCodAllowed_args args = new isCodAllowed_args();
458
      args.destination_pincode = destination_pincode;
397
      args.setDestination_pincode(destination_pincode);
459
      args.write(oprot_);
-
 
460
      oprot_.writeMessageEnd();
398
      sendBase("isCodAllowed", args);
461
      oprot_.getTransport().flush();
-
 
462
    }
399
    }
463
 
400
 
464
    public boolean recv_isCodAllowed() throws TException
401
    public boolean recv_isCodAllowed() throws org.apache.thrift.TException
465
    {
402
    {
466
      TMessage msg = iprot_.readMessageBegin();
-
 
467
      if (msg.type == TMessageType.EXCEPTION) {
-
 
468
        TApplicationException x = TApplicationException.read(iprot_);
-
 
469
        iprot_.readMessageEnd();
-
 
470
        throw x;
-
 
471
      }
-
 
472
      isCodAllowed_result result = new isCodAllowed_result();
403
      isCodAllowed_result result = new isCodAllowed_result();
473
      result.read(iprot_);
404
      receiveBase(result, "isCodAllowed");
474
      iprot_.readMessageEnd();
-
 
475
      if (result.isSetSuccess()) {
405
      if (result.isSetSuccess()) {
476
        return result.success;
406
        return result.success;
477
      }
407
      }
478
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
408
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "isCodAllowed failed: unknown result");
479
    }
409
    }
480
 
410
 
481
  }
411
  }
482
  public static class Processor extends in.shop2020.generic.GenericService.Processor implements TProcessor {
412
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
483
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
413
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
484
    public Processor(Iface iface)
-
 
485
    {
-
 
486
      super(iface);
-
 
487
      iface_ = iface;
-
 
488
      processMap_.put("getProvider", new getProvider());
414
      private org.apache.thrift.async.TAsyncClientManager clientManager;
489
      processMap_.put("getAllProviders", new getAllProviders());
415
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
490
      processMap_.put("getLogisticsEstimation", new getLogisticsEstimation());
416
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
491
      processMap_.put("getLogisticsInfo", new getLogisticsInfo());
-
 
492
      processMap_.put("getEmptyAWB", new getEmptyAWB());
-
 
493
      processMap_.put("getShipmentInfo", new getShipmentInfo());
417
        this.clientManager = clientManager;
494
      processMap_.put("getDestinationCode", new getDestinationCode());
-
 
495
      processMap_.put("getFreeAwbCount", new getFreeAwbCount());
-
 
496
      processMap_.put("getHolidays", new getHolidays());
418
        this.protocolFactory = protocolFactory;
497
      processMap_.put("isCodAllowed", new isCodAllowed());
-
 
498
    }
419
      }
499
 
-
 
500
    private Iface iface_;
-
 
501
 
-
 
502
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
420
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
503
    {
-
 
504
      TMessage msg = iprot.readMessageBegin();
-
 
505
      ProcessFunction fn = processMap_.get(msg.name);
-
 
506
      if (fn == null) {
-
 
507
        TProtocolUtil.skip(iprot, TType.STRUCT);
-
 
508
        iprot.readMessageEnd();
-
 
509
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
510
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
421
        return new AsyncClient(protocolFactory, clientManager, transport);
511
        x.write(oprot);
-
 
512
        oprot.writeMessageEnd();
-
 
513
        oprot.getTransport().flush();
-
 
514
        return true;
-
 
515
      }
422
      }
516
      fn.process(msg.seqid, iprot, oprot);
-
 
517
      return true;
-
 
518
    }
423
    }
519
 
424
 
-
 
425
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-
 
426
      super(protocolFactory, clientManager, transport);
-
 
427
    }
-
 
428
 
-
 
429
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_call> resultHandler) throws org.apache.thrift.TException {
-
 
430
      checkReady();
-
 
431
      getProvider_call method_call = new getProvider_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
432
      this.___currentMethod = method_call;
-
 
433
      ___manager.call(method_call);
-
 
434
    }
-
 
435
 
520
    private class getProvider implements ProcessFunction {
436
    public static class getProvider_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
437
      private long providerId;
521
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
438
      public getProvider_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getProvider_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 {
-
 
439
        super(client, protocolFactory, transport, resultHandler, false);
-
 
440
        this.providerId = providerId;
522
      {
441
      }
-
 
442
 
-
 
443
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
444
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getProvider", org.apache.thrift.protocol.TMessageType.CALL, 0));
523
        getProvider_args args = new getProvider_args();
445
        getProvider_args args = new getProvider_args();
-
 
446
        args.setProviderId(providerId);
-
 
447
        args.write(prot);
-
 
448
        prot.writeMessageEnd();
-
 
449
      }
-
 
450
 
-
 
451
      public Provider getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
452
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
453
          throw new IllegalStateException("Method call not finished!");
-
 
454
        }
-
 
455
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
456
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
457
        return (new Client(prot)).recv_getProvider();
-
 
458
      }
-
 
459
    }
-
 
460
 
-
 
461
    public void getAllProviders(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_call> resultHandler) throws org.apache.thrift.TException {
-
 
462
      checkReady();
-
 
463
      getAllProviders_call method_call = new getAllProviders_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
464
      this.___currentMethod = method_call;
-
 
465
      ___manager.call(method_call);
-
 
466
    }
-
 
467
 
-
 
468
    public static class getAllProviders_call extends org.apache.thrift.async.TAsyncMethodCall {
524
        args.read(iprot);
469
      public getAllProviders_call(org.apache.thrift.async.AsyncMethodCallback<getAllProviders_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 {
-
 
470
        super(client, protocolFactory, transport, resultHandler, false);
-
 
471
      }
-
 
472
 
-
 
473
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
474
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAllProviders", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
475
        getAllProviders_args args = new getAllProviders_args();
-
 
476
        args.write(prot);
-
 
477
        prot.writeMessageEnd();
-
 
478
      }
-
 
479
 
-
 
480
      public List<Provider> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
481
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
482
          throw new IllegalStateException("Method call not finished!");
-
 
483
        }
-
 
484
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
485
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
486
        return (new Client(prot)).recv_getAllProviders();
-
 
487
      }
-
 
488
    }
-
 
489
 
-
 
490
    public void getLogisticsEstimation(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException {
-
 
491
      checkReady();
-
 
492
      getLogisticsEstimation_call method_call = new getLogisticsEstimation_call(itemId, destination_pin, resultHandler, this, ___protocolFactory, ___transport);
-
 
493
      this.___currentMethod = method_call;
-
 
494
      ___manager.call(method_call);
-
 
495
    }
-
 
496
 
-
 
497
    public static class getLogisticsEstimation_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
498
      private long itemId;
-
 
499
      private String destination_pin;
-
 
500
      public getLogisticsEstimation_call(long itemId, String destination_pin, org.apache.thrift.async.AsyncMethodCallback<getLogisticsEstimation_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 {
-
 
501
        super(client, protocolFactory, transport, resultHandler, false);
-
 
502
        this.itemId = itemId;
-
 
503
        this.destination_pin = destination_pin;
-
 
504
      }
-
 
505
 
-
 
506
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
507
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsEstimation", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
508
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
-
 
509
        args.setItemId(itemId);
-
 
510
        args.setDestination_pin(destination_pin);
-
 
511
        args.write(prot);
-
 
512
        prot.writeMessageEnd();
-
 
513
      }
-
 
514
 
-
 
515
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
516
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
517
          throw new IllegalStateException("Method call not finished!");
-
 
518
        }
-
 
519
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
520
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
521
        return (new Client(prot)).recv_getLogisticsEstimation();
-
 
522
      }
-
 
523
    }
-
 
524
 
-
 
525
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
526
      checkReady();
-
 
527
      getLogisticsInfo_call method_call = new getLogisticsInfo_call(destination_pincode, item_id, type, resultHandler, this, ___protocolFactory, ___transport);
-
 
528
      this.___currentMethod = method_call;
-
 
529
      ___manager.call(method_call);
-
 
530
    }
-
 
531
 
-
 
532
    public static class getLogisticsInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
533
      private String destination_pincode;
-
 
534
      private long item_id;
-
 
535
      private DeliveryType type;
-
 
536
      public getLogisticsInfo_call(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getLogisticsInfo_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 {
-
 
537
        super(client, protocolFactory, transport, resultHandler, false);
-
 
538
        this.destination_pincode = destination_pincode;
-
 
539
        this.item_id = item_id;
-
 
540
        this.type = type;
-
 
541
      }
-
 
542
 
-
 
543
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
544
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getLogisticsInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
545
        getLogisticsInfo_args args = new getLogisticsInfo_args();
-
 
546
        args.setDestination_pincode(destination_pincode);
-
 
547
        args.setItem_id(item_id);
-
 
548
        args.setType(type);
-
 
549
        args.write(prot);
-
 
550
        prot.writeMessageEnd();
-
 
551
      }
-
 
552
 
-
 
553
      public LogisticsInfo getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
554
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
555
          throw new IllegalStateException("Method call not finished!");
-
 
556
        }
-
 
557
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
558
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
559
        return (new Client(prot)).recv_getLogisticsInfo();
-
 
560
      }
-
 
561
    }
-
 
562
 
-
 
563
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
-
 
564
      checkReady();
-
 
565
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
566
      this.___currentMethod = method_call;
-
 
567
      ___manager.call(method_call);
-
 
568
    }
-
 
569
 
-
 
570
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
571
      private long providerId;
-
 
572
      public getEmptyAWB_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_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 {
-
 
573
        super(client, protocolFactory, transport, resultHandler, false);
-
 
574
        this.providerId = providerId;
-
 
575
      }
-
 
576
 
-
 
577
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
578
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
579
        getEmptyAWB_args args = new getEmptyAWB_args();
-
 
580
        args.setProviderId(providerId);
-
 
581
        args.write(prot);
-
 
582
        prot.writeMessageEnd();
-
 
583
      }
-
 
584
 
-
 
585
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
586
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
587
          throw new IllegalStateException("Method call not finished!");
-
 
588
        }
-
 
589
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
590
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
591
        return (new Client(prot)).recv_getEmptyAWB();
-
 
592
      }
-
 
593
    }
-
 
594
 
-
 
595
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException {
-
 
596
      checkReady();
-
 
597
      getShipmentInfo_call method_call = new getShipmentInfo_call(awb, providerId, resultHandler, this, ___protocolFactory, ___transport);
-
 
598
      this.___currentMethod = method_call;
-
 
599
      ___manager.call(method_call);
-
 
600
    }
-
 
601
 
-
 
602
    public static class getShipmentInfo_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
603
      private String awb;
-
 
604
      private long providerId;
-
 
605
      public getShipmentInfo_call(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<getShipmentInfo_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 {
-
 
606
        super(client, protocolFactory, transport, resultHandler, false);
-
 
607
        this.awb = awb;
-
 
608
        this.providerId = providerId;
-
 
609
      }
-
 
610
 
-
 
611
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
612
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getShipmentInfo", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
613
        getShipmentInfo_args args = new getShipmentInfo_args();
-
 
614
        args.setAwb(awb);
-
 
615
        args.setProviderId(providerId);
-
 
616
        args.write(prot);
-
 
617
        prot.writeMessageEnd();
-
 
618
      }
-
 
619
 
-
 
620
      public List<AwbUpdate> getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
621
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
622
          throw new IllegalStateException("Method call not finished!");
-
 
623
        }
-
 
624
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
625
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
626
        return (new Client(prot)).recv_getShipmentInfo();
-
 
627
      }
-
 
628
    }
-
 
629
 
-
 
630
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_call> resultHandler) throws org.apache.thrift.TException {
-
 
631
      checkReady();
-
 
632
      getDestinationCode_call method_call = new getDestinationCode_call(providerId, pinCode, resultHandler, this, ___protocolFactory, ___transport);
-
 
633
      this.___currentMethod = method_call;
-
 
634
      ___manager.call(method_call);
-
 
635
    }
-
 
636
 
-
 
637
    public static class getDestinationCode_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
638
      private long providerId;
-
 
639
      private String pinCode;
-
 
640
      public getDestinationCode_call(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<getDestinationCode_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 {
-
 
641
        super(client, protocolFactory, transport, resultHandler, false);
-
 
642
        this.providerId = providerId;
-
 
643
        this.pinCode = pinCode;
-
 
644
      }
-
 
645
 
-
 
646
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
647
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getDestinationCode", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
648
        getDestinationCode_args args = new getDestinationCode_args();
-
 
649
        args.setProviderId(providerId);
-
 
650
        args.setPinCode(pinCode);
-
 
651
        args.write(prot);
-
 
652
        prot.writeMessageEnd();
-
 
653
      }
-
 
654
 
-
 
655
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
656
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
657
          throw new IllegalStateException("Method call not finished!");
-
 
658
        }
-
 
659
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
660
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
661
        return (new Client(prot)).recv_getDestinationCode();
-
 
662
      }
-
 
663
    }
-
 
664
 
-
 
665
    public void getFreeAwbCount(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_call> resultHandler) throws org.apache.thrift.TException {
-
 
666
      checkReady();
-
 
667
      getFreeAwbCount_call method_call = new getFreeAwbCount_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
-
 
668
      this.___currentMethod = method_call;
-
 
669
      ___manager.call(method_call);
-
 
670
    }
-
 
671
 
-
 
672
    public static class getFreeAwbCount_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
673
      private long providerId;
-
 
674
      private String type;
-
 
675
      public getFreeAwbCount_call(long providerId, String type, org.apache.thrift.async.AsyncMethodCallback<getFreeAwbCount_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 {
-
 
676
        super(client, protocolFactory, transport, resultHandler, false);
-
 
677
        this.providerId = providerId;
-
 
678
        this.type = type;
-
 
679
      }
-
 
680
 
-
 
681
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
682
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getFreeAwbCount", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
683
        getFreeAwbCount_args args = new getFreeAwbCount_args();
-
 
684
        args.setProviderId(providerId);
-
 
685
        args.setType(type);
-
 
686
        args.write(prot);
-
 
687
        prot.writeMessageEnd();
-
 
688
      }
-
 
689
 
-
 
690
      public long getResult() throws org.apache.thrift.TException {
-
 
691
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
692
          throw new IllegalStateException("Method call not finished!");
-
 
693
        }
-
 
694
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
695
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
696
        return (new Client(prot)).recv_getFreeAwbCount();
-
 
697
      }
-
 
698
    }
-
 
699
 
-
 
700
    public void getHolidays(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_call> resultHandler) throws org.apache.thrift.TException {
-
 
701
      checkReady();
-
 
702
      getHolidays_call method_call = new getHolidays_call(fromDate, toDate, resultHandler, this, ___protocolFactory, ___transport);
-
 
703
      this.___currentMethod = method_call;
-
 
704
      ___manager.call(method_call);
-
 
705
    }
-
 
706
 
-
 
707
    public static class getHolidays_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
708
      private long fromDate;
-
 
709
      private long toDate;
-
 
710
      public getHolidays_call(long fromDate, long toDate, org.apache.thrift.async.AsyncMethodCallback<getHolidays_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 {
-
 
711
        super(client, protocolFactory, transport, resultHandler, false);
-
 
712
        this.fromDate = fromDate;
-
 
713
        this.toDate = toDate;
-
 
714
      }
-
 
715
 
-
 
716
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
717
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getHolidays", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
718
        getHolidays_args args = new getHolidays_args();
-
 
719
        args.setFromDate(fromDate);
-
 
720
        args.setToDate(toDate);
-
 
721
        args.write(prot);
-
 
722
        prot.writeMessageEnd();
-
 
723
      }
-
 
724
 
-
 
725
      public List<Long> getResult() throws org.apache.thrift.TException {
-
 
726
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
727
          throw new IllegalStateException("Method call not finished!");
-
 
728
        }
-
 
729
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
730
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
731
        return (new Client(prot)).recv_getHolidays();
-
 
732
      }
-
 
733
    }
-
 
734
 
-
 
735
    public void isCodAllowed(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<isCodAllowed_call> resultHandler) throws org.apache.thrift.TException {
-
 
736
      checkReady();
-
 
737
      isCodAllowed_call method_call = new isCodAllowed_call(destination_pincode, resultHandler, this, ___protocolFactory, ___transport);
-
 
738
      this.___currentMethod = method_call;
-
 
739
      ___manager.call(method_call);
-
 
740
    }
-
 
741
 
-
 
742
    public static class isCodAllowed_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
743
      private String destination_pincode;
525
        iprot.readMessageEnd();
744
      public isCodAllowed_call(String destination_pincode, org.apache.thrift.async.AsyncMethodCallback<isCodAllowed_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 {
-
 
745
        super(client, protocolFactory, transport, resultHandler, false);
-
 
746
        this.destination_pincode = destination_pincode;
-
 
747
      }
-
 
748
 
-
 
749
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
750
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("isCodAllowed", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
751
        isCodAllowed_args args = new isCodAllowed_args();
-
 
752
        args.setDestination_pincode(destination_pincode);
-
 
753
        args.write(prot);
-
 
754
        prot.writeMessageEnd();
-
 
755
      }
-
 
756
 
-
 
757
      public boolean getResult() throws org.apache.thrift.TException {
-
 
758
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
759
          throw new IllegalStateException("Method call not finished!");
-
 
760
        }
-
 
761
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
762
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
763
        return (new Client(prot)).recv_isCodAllowed();
-
 
764
      }
-
 
765
    }
-
 
766
 
-
 
767
  }
-
 
768
 
-
 
769
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
-
 
770
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
771
    public Processor(I iface) {
-
 
772
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
773
    }
-
 
774
 
-
 
775
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
776
      super(iface, getProcessMap(processMap));
-
 
777
    }
-
 
778
 
-
 
779
    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) {
-
 
780
      processMap.put("getProvider", new getProvider());
-
 
781
      processMap.put("getAllProviders", new getAllProviders());
-
 
782
      processMap.put("getLogisticsEstimation", new getLogisticsEstimation());
-
 
783
      processMap.put("getLogisticsInfo", new getLogisticsInfo());
-
 
784
      processMap.put("getEmptyAWB", new getEmptyAWB());
-
 
785
      processMap.put("getShipmentInfo", new getShipmentInfo());
-
 
786
      processMap.put("getDestinationCode", new getDestinationCode());
-
 
787
      processMap.put("getFreeAwbCount", new getFreeAwbCount());
-
 
788
      processMap.put("getHolidays", new getHolidays());
-
 
789
      processMap.put("isCodAllowed", new isCodAllowed());
-
 
790
      return processMap;
-
 
791
    }
-
 
792
 
-
 
793
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
-
 
794
      public getProvider() {
-
 
795
        super("getProvider");
-
 
796
      }
-
 
797
 
-
 
798
      protected getProvider_args getEmptyArgsInstance() {
-
 
799
        return new getProvider_args();
-
 
800
      }
-
 
801
 
-
 
802
      protected getProvider_result getResult(I iface, getProvider_args args) throws org.apache.thrift.TException {
526
        getProvider_result result = new getProvider_result();
803
        getProvider_result result = new getProvider_result();
527
        try {
804
        try {
528
          result.success = iface_.getProvider(args.providerId);
805
          result.success = iface.getProvider(args.providerId);
529
        } catch (LogisticsServiceException lse) {
806
        } catch (LogisticsServiceException lse) {
530
          result.lse = lse;
807
          result.lse = lse;
531
        } catch (Throwable th) {
-
 
532
          LOGGER.error("Internal error processing getProvider", th);
-
 
533
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getProvider");
-
 
534
          oprot.writeMessageBegin(new TMessage("getProvider", TMessageType.EXCEPTION, seqid));
-
 
535
          x.write(oprot);
-
 
536
          oprot.writeMessageEnd();
-
 
537
          oprot.getTransport().flush();
-
 
538
          return;
-
 
539
        }
808
        }
540
        oprot.writeMessageBegin(new TMessage("getProvider", TMessageType.REPLY, seqid));
-
 
541
        result.write(oprot);
809
        return result;
542
        oprot.writeMessageEnd();
-
 
543
        oprot.getTransport().flush();
-
 
544
      }
810
      }
545
 
-
 
546
    }
811
    }
547
 
812
 
548
    private class getAllProviders implements ProcessFunction {
813
    private static class getAllProviders<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAllProviders_args> {
549
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
814
      public getAllProviders() {
-
 
815
        super("getAllProviders");
550
      {
816
      }
-
 
817
 
551
        getAllProviders_args args = new getAllProviders_args();
818
      protected getAllProviders_args getEmptyArgsInstance() {
552
        args.read(iprot);
819
        return new getAllProviders_args();
553
        iprot.readMessageEnd();
820
      }
-
 
821
 
-
 
822
      protected getAllProviders_result getResult(I iface, getAllProviders_args args) throws org.apache.thrift.TException {
554
        getAllProviders_result result = new getAllProviders_result();
823
        getAllProviders_result result = new getAllProviders_result();
555
        try {
824
        try {
556
          result.success = iface_.getAllProviders();
825
          result.success = iface.getAllProviders();
557
        } catch (LogisticsServiceException lse) {
826
        } catch (LogisticsServiceException lse) {
558
          result.lse = lse;
827
          result.lse = lse;
559
        } catch (Throwable th) {
-
 
560
          LOGGER.error("Internal error processing getAllProviders", th);
-
 
561
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllProviders");
-
 
562
          oprot.writeMessageBegin(new TMessage("getAllProviders", TMessageType.EXCEPTION, seqid));
-
 
563
          x.write(oprot);
-
 
564
          oprot.writeMessageEnd();
-
 
565
          oprot.getTransport().flush();
-
 
566
          return;
-
 
567
        }
828
        }
568
        oprot.writeMessageBegin(new TMessage("getAllProviders", TMessageType.REPLY, seqid));
-
 
569
        result.write(oprot);
829
        return result;
570
        oprot.writeMessageEnd();
-
 
571
        oprot.getTransport().flush();
-
 
572
      }
830
      }
573
 
-
 
574
    }
831
    }
575
 
832
 
576
    private class getLogisticsEstimation implements ProcessFunction {
833
    private static class getLogisticsEstimation<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsEstimation_args> {
577
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
834
      public getLogisticsEstimation() {
-
 
835
        super("getLogisticsEstimation");
578
      {
836
      }
-
 
837
 
579
        getLogisticsEstimation_args args = new getLogisticsEstimation_args();
838
      protected getLogisticsEstimation_args getEmptyArgsInstance() {
580
        args.read(iprot);
839
        return new getLogisticsEstimation_args();
581
        iprot.readMessageEnd();
840
      }
-
 
841
 
-
 
842
      protected getLogisticsEstimation_result getResult(I iface, getLogisticsEstimation_args args) throws org.apache.thrift.TException {
582
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
843
        getLogisticsEstimation_result result = new getLogisticsEstimation_result();
583
        try {
844
        try {
584
          result.success = iface_.getLogisticsEstimation(args.itemId, args.destination_pin);
845
          result.success = iface.getLogisticsEstimation(args.itemId, args.destination_pin);
585
        } catch (LogisticsServiceException se) {
846
        } catch (LogisticsServiceException se) {
586
          result.se = se;
847
          result.se = se;
587
        } catch (Throwable th) {
-
 
588
          LOGGER.error("Internal error processing getLogisticsEstimation", th);
-
 
589
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getLogisticsEstimation");
-
 
590
          oprot.writeMessageBegin(new TMessage("getLogisticsEstimation", TMessageType.EXCEPTION, seqid));
-
 
591
          x.write(oprot);
-
 
592
          oprot.writeMessageEnd();
-
 
593
          oprot.getTransport().flush();
-
 
594
          return;
-
 
595
        }
848
        }
596
        oprot.writeMessageBegin(new TMessage("getLogisticsEstimation", TMessageType.REPLY, seqid));
-
 
597
        result.write(oprot);
849
        return result;
598
        oprot.writeMessageEnd();
-
 
599
        oprot.getTransport().flush();
-
 
600
      }
850
      }
601
 
-
 
602
    }
851
    }
603
 
852
 
604
    private class getLogisticsInfo implements ProcessFunction {
853
    private static class getLogisticsInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getLogisticsInfo_args> {
605
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
854
      public getLogisticsInfo() {
-
 
855
        super("getLogisticsInfo");
606
      {
856
      }
-
 
857
 
607
        getLogisticsInfo_args args = new getLogisticsInfo_args();
858
      protected getLogisticsInfo_args getEmptyArgsInstance() {
608
        args.read(iprot);
859
        return new getLogisticsInfo_args();
609
        iprot.readMessageEnd();
860
      }
-
 
861
 
-
 
862
      protected getLogisticsInfo_result getResult(I iface, getLogisticsInfo_args args) throws org.apache.thrift.TException {
610
        getLogisticsInfo_result result = new getLogisticsInfo_result();
863
        getLogisticsInfo_result result = new getLogisticsInfo_result();
611
        try {
864
        try {
612
          result.success = iface_.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
865
          result.success = iface.getLogisticsInfo(args.destination_pincode, args.item_id, args.type);
613
        } catch (LogisticsServiceException se) {
866
        } catch (LogisticsServiceException se) {
614
          result.se = se;
867
          result.se = se;
615
        } catch (Throwable th) {
-
 
616
          LOGGER.error("Internal error processing getLogisticsInfo", th);
-
 
617
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getLogisticsInfo");
-
 
618
          oprot.writeMessageBegin(new TMessage("getLogisticsInfo", TMessageType.EXCEPTION, seqid));
-
 
619
          x.write(oprot);
-
 
620
          oprot.writeMessageEnd();
-
 
621
          oprot.getTransport().flush();
-
 
622
          return;
-
 
623
        }
868
        }
624
        oprot.writeMessageBegin(new TMessage("getLogisticsInfo", TMessageType.REPLY, seqid));
-
 
625
        result.write(oprot);
869
        return result;
626
        oprot.writeMessageEnd();
-
 
627
        oprot.getTransport().flush();
-
 
628
      }
870
      }
629
 
-
 
630
    }
871
    }
631
 
872
 
632
    private class getEmptyAWB implements ProcessFunction {
873
    private static class getEmptyAWB<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getEmptyAWB_args> {
633
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
874
      public getEmptyAWB() {
-
 
875
        super("getEmptyAWB");
634
      {
876
      }
-
 
877
 
635
        getEmptyAWB_args args = new getEmptyAWB_args();
878
      protected getEmptyAWB_args getEmptyArgsInstance() {
636
        args.read(iprot);
879
        return new getEmptyAWB_args();
637
        iprot.readMessageEnd();
880
      }
-
 
881
 
-
 
882
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
638
        getEmptyAWB_result result = new getEmptyAWB_result();
883
        getEmptyAWB_result result = new getEmptyAWB_result();
639
        try {
884
        try {
640
          result.success = iface_.getEmptyAWB(args.providerId);
885
          result.success = iface.getEmptyAWB(args.providerId);
641
        } catch (LogisticsServiceException se) {
886
        } catch (LogisticsServiceException se) {
642
          result.se = se;
887
          result.se = se;
643
        } catch (Throwable th) {
-
 
644
          LOGGER.error("Internal error processing getEmptyAWB", th);
-
 
645
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getEmptyAWB");
-
 
646
          oprot.writeMessageBegin(new TMessage("getEmptyAWB", TMessageType.EXCEPTION, seqid));
-
 
647
          x.write(oprot);
-
 
648
          oprot.writeMessageEnd();
-
 
649
          oprot.getTransport().flush();
-
 
650
          return;
-
 
651
        }
888
        }
652
        oprot.writeMessageBegin(new TMessage("getEmptyAWB", TMessageType.REPLY, seqid));
-
 
653
        result.write(oprot);
889
        return result;
654
        oprot.writeMessageEnd();
-
 
655
        oprot.getTransport().flush();
-
 
656
      }
890
      }
657
 
-
 
658
    }
891
    }
659
 
892
 
660
    private class getShipmentInfo implements ProcessFunction {
893
    private static class getShipmentInfo<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getShipmentInfo_args> {
661
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
894
      public getShipmentInfo() {
-
 
895
        super("getShipmentInfo");
662
      {
896
      }
-
 
897
 
663
        getShipmentInfo_args args = new getShipmentInfo_args();
898
      protected getShipmentInfo_args getEmptyArgsInstance() {
664
        args.read(iprot);
899
        return new getShipmentInfo_args();
665
        iprot.readMessageEnd();
900
      }
-
 
901
 
-
 
902
      protected getShipmentInfo_result getResult(I iface, getShipmentInfo_args args) throws org.apache.thrift.TException {
666
        getShipmentInfo_result result = new getShipmentInfo_result();
903
        getShipmentInfo_result result = new getShipmentInfo_result();
667
        try {
904
        try {
668
          result.success = iface_.getShipmentInfo(args.awb, args.providerId);
905
          result.success = iface.getShipmentInfo(args.awb, args.providerId);
669
        } catch (LogisticsServiceException se) {
906
        } catch (LogisticsServiceException se) {
670
          result.se = se;
907
          result.se = se;
671
        } catch (Throwable th) {
-
 
672
          LOGGER.error("Internal error processing getShipmentInfo", th);
-
 
673
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getShipmentInfo");
-
 
674
          oprot.writeMessageBegin(new TMessage("getShipmentInfo", TMessageType.EXCEPTION, seqid));
-
 
675
          x.write(oprot);
-
 
676
          oprot.writeMessageEnd();
-
 
677
          oprot.getTransport().flush();
-
 
678
          return;
-
 
679
        }
908
        }
680
        oprot.writeMessageBegin(new TMessage("getShipmentInfo", TMessageType.REPLY, seqid));
-
 
681
        result.write(oprot);
909
        return result;
682
        oprot.writeMessageEnd();
-
 
683
        oprot.getTransport().flush();
-
 
684
      }
910
      }
685
 
-
 
686
    }
911
    }
687
 
912
 
688
    private class getDestinationCode implements ProcessFunction {
913
    private static class getDestinationCode<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getDestinationCode_args> {
689
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
914
      public getDestinationCode() {
-
 
915
        super("getDestinationCode");
690
      {
916
      }
-
 
917
 
691
        getDestinationCode_args args = new getDestinationCode_args();
918
      protected getDestinationCode_args getEmptyArgsInstance() {
692
        args.read(iprot);
919
        return new getDestinationCode_args();
693
        iprot.readMessageEnd();
920
      }
-
 
921
 
-
 
922
      protected getDestinationCode_result getResult(I iface, getDestinationCode_args args) throws org.apache.thrift.TException {
694
        getDestinationCode_result result = new getDestinationCode_result();
923
        getDestinationCode_result result = new getDestinationCode_result();
695
        try {
924
        try {
696
          result.success = iface_.getDestinationCode(args.providerId, args.pinCode);
925
          result.success = iface.getDestinationCode(args.providerId, args.pinCode);
697
        } catch (LogisticsServiceException se) {
926
        } catch (LogisticsServiceException se) {
698
          result.se = se;
927
          result.se = se;
699
        } catch (Throwable th) {
-
 
700
          LOGGER.error("Internal error processing getDestinationCode", th);
-
 
701
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getDestinationCode");
-
 
702
          oprot.writeMessageBegin(new TMessage("getDestinationCode", TMessageType.EXCEPTION, seqid));
-
 
703
          x.write(oprot);
-
 
704
          oprot.writeMessageEnd();
-
 
705
          oprot.getTransport().flush();
-
 
706
          return;
-
 
707
        }
928
        }
708
        oprot.writeMessageBegin(new TMessage("getDestinationCode", TMessageType.REPLY, seqid));
-
 
709
        result.write(oprot);
929
        return result;
710
        oprot.writeMessageEnd();
-
 
711
        oprot.getTransport().flush();
-
 
712
      }
930
      }
713
 
-
 
714
    }
931
    }
715
 
932
 
716
    private class getFreeAwbCount implements ProcessFunction {
933
    private static class getFreeAwbCount<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getFreeAwbCount_args> {
717
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
934
      public getFreeAwbCount() {
-
 
935
        super("getFreeAwbCount");
718
      {
936
      }
-
 
937
 
719
        getFreeAwbCount_args args = new getFreeAwbCount_args();
938
      protected getFreeAwbCount_args getEmptyArgsInstance() {
720
        args.read(iprot);
939
        return new getFreeAwbCount_args();
721
        iprot.readMessageEnd();
940
      }
-
 
941
 
-
 
942
      protected getFreeAwbCount_result getResult(I iface, getFreeAwbCount_args args) throws org.apache.thrift.TException {
722
        getFreeAwbCount_result result = new getFreeAwbCount_result();
943
        getFreeAwbCount_result result = new getFreeAwbCount_result();
723
        result.success = iface_.getFreeAwbCount(args.providerId, args.type);
944
        result.success = iface.getFreeAwbCount(args.providerId, args.type);
724
        result.setSuccessIsSet(true);
945
        result.setSuccessIsSet(true);
725
        oprot.writeMessageBegin(new TMessage("getFreeAwbCount", TMessageType.REPLY, seqid));
-
 
726
        result.write(oprot);
946
        return result;
727
        oprot.writeMessageEnd();
-
 
728
        oprot.getTransport().flush();
-
 
729
      }
947
      }
730
 
-
 
731
    }
948
    }
732
 
949
 
733
    private class getHolidays implements ProcessFunction {
950
    private static class getHolidays<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getHolidays_args> {
734
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
735
      {
-
 
736
        getHolidays_args args = new getHolidays_args();
-
 
737
        args.read(iprot);
951
      public getHolidays() {
738
        iprot.readMessageEnd();
-
 
739
        getHolidays_result result = new getHolidays_result();
-
 
740
        result.success = iface_.getHolidays(args.fromDate, args.toDate);
-
 
741
        oprot.writeMessageBegin(new TMessage("getHolidays", TMessageType.REPLY, seqid));
-
 
742
        result.write(oprot);
952
        super("getHolidays");
743
        oprot.writeMessageEnd();
-
 
744
        oprot.getTransport().flush();
-
 
745
      }
953
      }
746
 
954
 
-
 
955
      protected getHolidays_args getEmptyArgsInstance() {
-
 
956
        return new getHolidays_args();
-
 
957
      }
-
 
958
 
-
 
959
      protected getHolidays_result getResult(I iface, getHolidays_args args) throws org.apache.thrift.TException {
-
 
960
        getHolidays_result result = new getHolidays_result();
-
 
961
        result.success = iface.getHolidays(args.fromDate, args.toDate);
-
 
962
        return result;
-
 
963
      }
747
    }
964
    }
748
 
965
 
749
    private class isCodAllowed implements ProcessFunction {
966
    private static class isCodAllowed<I extends Iface> extends org.apache.thrift.ProcessFunction<I, isCodAllowed_args> {
750
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
967
      public isCodAllowed() {
-
 
968
        super("isCodAllowed");
751
      {
969
      }
-
 
970
 
752
        isCodAllowed_args args = new isCodAllowed_args();
971
      protected isCodAllowed_args getEmptyArgsInstance() {
753
        args.read(iprot);
972
        return new isCodAllowed_args();
754
        iprot.readMessageEnd();
973
      }
-
 
974
 
-
 
975
      protected isCodAllowed_result getResult(I iface, isCodAllowed_args args) throws org.apache.thrift.TException {
755
        isCodAllowed_result result = new isCodAllowed_result();
976
        isCodAllowed_result result = new isCodAllowed_result();
756
        result.success = iface_.isCodAllowed(args.destination_pincode);
977
        result.success = iface.isCodAllowed(args.destination_pincode);
757
        result.setSuccessIsSet(true);
978
        result.setSuccessIsSet(true);
758
        oprot.writeMessageBegin(new TMessage("isCodAllowed", TMessageType.REPLY, seqid));
-
 
759
        result.write(oprot);
979
        return result;
760
        oprot.writeMessageEnd();
-
 
761
        oprot.getTransport().flush();
-
 
762
      }
980
      }
763
 
-
 
764
    }
981
    }
765
 
982
 
766
  }
983
  }
767
 
984
 
768
  public static class getProvider_args implements TBase<getProvider_args._Fields>, java.io.Serializable, Cloneable, Comparable<getProvider_args>   {
985
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
769
    private static final TStruct STRUCT_DESC = new TStruct("getProvider_args");
986
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
770
 
987
 
771
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
988
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
772
 
989
 
773
    private long providerId;
990
    private long providerId; // required
774
 
991
 
775
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
992
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
776
    public enum _Fields implements TFieldIdEnum {
993
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
777
      PROVIDER_ID((short)1, "providerId");
994
      PROVIDER_ID((short)1, "providerId");
778
 
995
 
779
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
780
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
996
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
781
 
997
 
782
      static {
998
      static {
783
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
999
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
784
          byId.put((int)field._thriftId, field);
-
 
785
          byName.put(field.getFieldName(), field);
1000
          byName.put(field.getFieldName(), field);
786
        }
1001
        }
787
      }
1002
      }
788
 
1003
 
789
      /**
1004
      /**
790
       * Find the _Fields constant that matches fieldId, or null if its not found.
1005
       * Find the _Fields constant that matches fieldId, or null if its not found.
791
       */
1006
       */
792
      public static _Fields findByThriftId(int fieldId) {
1007
      public static _Fields findByThriftId(int fieldId) {
793
        return byId.get(fieldId);
1008
        switch(fieldId) {
-
 
1009
          case 1: // PROVIDER_ID
-
 
1010
            return PROVIDER_ID;
-
 
1011
          default:
-
 
1012
            return null;
-
 
1013
        }
794
      }
1014
      }
795
 
1015
 
796
      /**
1016
      /**
797
       * Find the _Fields constant that matches fieldId, throwing an exception
1017
       * Find the _Fields constant that matches fieldId, throwing an exception
798
       * if it is not found.
1018
       * if it is not found.
Line 829... Line 1049...
829
 
1049
 
830
    // isset id assignments
1050
    // isset id assignments
831
    private static final int __PROVIDERID_ISSET_ID = 0;
1051
    private static final int __PROVIDERID_ISSET_ID = 0;
832
    private BitSet __isset_bit_vector = new BitSet(1);
1052
    private BitSet __isset_bit_vector = new BitSet(1);
833
 
1053
 
834
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1054
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
835
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
836
          new FieldValueMetaData(TType.I64)));
-
 
837
    }});
-
 
838
 
-
 
839
    static {
1055
    static {
-
 
1056
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1057
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1058
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1059
      metaDataMap = Collections.unmodifiableMap(tmpMap);
840
      FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
1060
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_args.class, metaDataMap);
841
    }
1061
    }
842
 
1062
 
843
    public getProvider_args() {
1063
    public getProvider_args() {
844
    }
1064
    }
845
 
1065
 
Line 862... Line 1082...
862
 
1082
 
863
    public getProvider_args deepCopy() {
1083
    public getProvider_args deepCopy() {
864
      return new getProvider_args(this);
1084
      return new getProvider_args(this);
865
    }
1085
    }
866
 
1086
 
867
    @Deprecated
1087
    @Override
868
    public getProvider_args clone() {
1088
    public void clear() {
869
      return new getProvider_args(this);
1089
      setProviderIdIsSet(false);
-
 
1090
      this.providerId = 0;
870
    }
1091
    }
871
 
1092
 
872
    public long getProviderId() {
1093
    public long getProviderId() {
873
      return this.providerId;
1094
      return this.providerId;
874
    }
1095
    }
875
 
1096
 
876
    public getProvider_args setProviderId(long providerId) {
1097
    public void setProviderId(long providerId) {
877
      this.providerId = providerId;
1098
      this.providerId = providerId;
878
      setProviderIdIsSet(true);
1099
      setProviderIdIsSet(true);
879
      return this;
-
 
880
    }
1100
    }
881
 
1101
 
882
    public void unsetProviderId() {
1102
    public void unsetProviderId() {
883
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
1103
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
884
    }
1104
    }
885
 
1105
 
886
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
1106
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
887
    public boolean isSetProviderId() {
1107
    public boolean isSetProviderId() {
888
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
1108
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
889
    }
1109
    }
890
 
1110
 
891
    public void setProviderIdIsSet(boolean value) {
1111
    public void setProviderIdIsSet(boolean value) {
Line 903... Line 1123...
903
        break;
1123
        break;
904
 
1124
 
905
      }
1125
      }
906
    }
1126
    }
907
 
1127
 
908
    public void setFieldValue(int fieldID, Object value) {
-
 
909
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
910
    }
-
 
911
 
-
 
912
    public Object getFieldValue(_Fields field) {
1128
    public Object getFieldValue(_Fields field) {
913
      switch (field) {
1129
      switch (field) {
914
      case PROVIDER_ID:
1130
      case PROVIDER_ID:
915
        return new Long(getProviderId());
1131
        return Long.valueOf(getProviderId());
916
 
1132
 
917
      }
1133
      }
918
      throw new IllegalStateException();
1134
      throw new IllegalStateException();
919
    }
1135
    }
920
 
1136
 
921
    public Object getFieldValue(int fieldId) {
-
 
922
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
923
    }
-
 
924
 
-
 
925
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1137
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
926
    public boolean isSet(_Fields field) {
1138
    public boolean isSet(_Fields field) {
-
 
1139
      if (field == null) {
-
 
1140
        throw new IllegalArgumentException();
-
 
1141
      }
-
 
1142
 
927
      switch (field) {
1143
      switch (field) {
928
      case PROVIDER_ID:
1144
      case PROVIDER_ID:
929
        return isSetProviderId();
1145
        return isSetProviderId();
930
      }
1146
      }
931
      throw new IllegalStateException();
1147
      throw new IllegalStateException();
932
    }
1148
    }
933
 
1149
 
934
    public boolean isSet(int fieldID) {
-
 
935
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
936
    }
-
 
937
 
-
 
938
    @Override
1150
    @Override
939
    public boolean equals(Object that) {
1151
    public boolean equals(Object that) {
940
      if (that == null)
1152
      if (that == null)
941
        return false;
1153
        return false;
942
      if (that instanceof getProvider_args)
1154
      if (that instanceof getProvider_args)
Line 971... Line 1183...
971
      }
1183
      }
972
 
1184
 
973
      int lastComparison = 0;
1185
      int lastComparison = 0;
974
      getProvider_args typedOther = (getProvider_args)other;
1186
      getProvider_args typedOther = (getProvider_args)other;
975
 
1187
 
976
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
1188
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
977
      if (lastComparison != 0) {
1189
      if (lastComparison != 0) {
978
        return lastComparison;
1190
        return lastComparison;
979
      }
1191
      }
-
 
1192
      if (isSetProviderId()) {
980
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
1193
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
981
      if (lastComparison != 0) {
1194
        if (lastComparison != 0) {
982
        return lastComparison;
1195
          return lastComparison;
-
 
1196
        }
983
      }
1197
      }
984
      return 0;
1198
      return 0;
985
    }
1199
    }
986
 
1200
 
-
 
1201
    public _Fields fieldForId(int fieldId) {
-
 
1202
      return _Fields.findByThriftId(fieldId);
-
 
1203
    }
-
 
1204
 
987
    public void read(TProtocol iprot) throws TException {
1205
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
988
      TField field;
1206
      org.apache.thrift.protocol.TField field;
989
      iprot.readStructBegin();
1207
      iprot.readStructBegin();
990
      while (true)
1208
      while (true)
991
      {
1209
      {
992
        field = iprot.readFieldBegin();
1210
        field = iprot.readFieldBegin();
993
        if (field.type == TType.STOP) { 
1211
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
994
          break;
1212
          break;
995
        }
1213
        }
996
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
997
        if (fieldId == null) {
-
 
998
          TProtocolUtil.skip(iprot, field.type);
-
 
999
        } else {
-
 
1000
          switch (fieldId) {
1214
        switch (field.id) {
1001
            case PROVIDER_ID:
1215
          case 1: // PROVIDER_ID
1002
              if (field.type == TType.I64) {
1216
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1003
                this.providerId = iprot.readI64();
1217
              this.providerId = iprot.readI64();
1004
                setProviderIdIsSet(true);
1218
              setProviderIdIsSet(true);
1005
              } else { 
1219
            } else { 
1006
                TProtocolUtil.skip(iprot, field.type);
1220
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1007
              }
1221
            }
1008
              break;
1222
            break;
1009
          }
1223
          default:
1010
          iprot.readFieldEnd();
1224
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1011
        }
1225
        }
-
 
1226
        iprot.readFieldEnd();
1012
      }
1227
      }
1013
      iprot.readStructEnd();
1228
      iprot.readStructEnd();
1014
      validate();
1229
      validate();
1015
    }
1230
    }
1016
 
1231
 
1017
    public void write(TProtocol oprot) throws TException {
1232
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1018
      validate();
1233
      validate();
1019
 
1234
 
1020
      oprot.writeStructBegin(STRUCT_DESC);
1235
      oprot.writeStructBegin(STRUCT_DESC);
1021
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1236
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
1022
      oprot.writeI64(this.providerId);
1237
      oprot.writeI64(this.providerId);
Line 1035... Line 1250...
1035
      first = false;
1250
      first = false;
1036
      sb.append(")");
1251
      sb.append(")");
1037
      return sb.toString();
1252
      return sb.toString();
1038
    }
1253
    }
1039
 
1254
 
1040
    public void validate() throws TException {
1255
    public void validate() throws org.apache.thrift.TException {
1041
      // check for required fields
1256
      // check for required fields
1042
    }
1257
    }
1043
 
1258
 
-
 
1259
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1260
      try {
-
 
1261
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1262
      } catch (org.apache.thrift.TException te) {
-
 
1263
        throw new java.io.IOException(te);
-
 
1264
      }
-
 
1265
    }
-
 
1266
 
-
 
1267
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1268
      try {
-
 
1269
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1270
      } catch (org.apache.thrift.TException te) {
-
 
1271
        throw new java.io.IOException(te);
-
 
1272
      }
-
 
1273
    }
-
 
1274
 
1044
  }
1275
  }
1045
 
1276
 
1046
  public static class getProvider_result implements TBase<getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1277
  public static class getProvider_result implements org.apache.thrift.TBase<getProvider_result, getProvider_result._Fields>, java.io.Serializable, Cloneable   {
1047
    private static final TStruct STRUCT_DESC = new TStruct("getProvider_result");
1278
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_result");
1048
 
1279
 
1049
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
1280
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
1050
    private static final TField LSE_FIELD_DESC = new TField("lse", TType.STRUCT, (short)1);
1281
    private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1051
 
1282
 
1052
    private Provider success;
1283
    private Provider success; // required
1053
    private LogisticsServiceException lse;
1284
    private LogisticsServiceException lse; // required
1054
 
1285
 
1055
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1286
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1056
    public enum _Fields implements TFieldIdEnum {
1287
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1057
      SUCCESS((short)0, "success"),
1288
      SUCCESS((short)0, "success"),
1058
      LSE((short)1, "lse");
1289
      LSE((short)1, "lse");
1059
 
1290
 
1060
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1062
 
1292
 
1063
      static {
1293
      static {
1064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1065
          byId.put((int)field._thriftId, field);
-
 
1066
          byName.put(field.getFieldName(), field);
1295
          byName.put(field.getFieldName(), field);
1067
        }
1296
        }
1068
      }
1297
      }
1069
 
1298
 
1070
      /**
1299
      /**
1071
       * Find the _Fields constant that matches fieldId, or null if its not found.
1300
       * Find the _Fields constant that matches fieldId, or null if its not found.
1072
       */
1301
       */
1073
      public static _Fields findByThriftId(int fieldId) {
1302
      public static _Fields findByThriftId(int fieldId) {
1074
        return byId.get(fieldId);
1303
        switch(fieldId) {
-
 
1304
          case 0: // SUCCESS
-
 
1305
            return SUCCESS;
-
 
1306
          case 1: // LSE
-
 
1307
            return LSE;
-
 
1308
          default:
-
 
1309
            return null;
-
 
1310
        }
1075
      }
1311
      }
1076
 
1312
 
1077
      /**
1313
      /**
1078
       * Find the _Fields constant that matches fieldId, throwing an exception
1314
       * Find the _Fields constant that matches fieldId, throwing an exception
1079
       * if it is not found.
1315
       * if it is not found.
Line 1108... Line 1344...
1108
      }
1344
      }
1109
    }
1345
    }
1110
 
1346
 
1111
    // isset id assignments
1347
    // isset id assignments
1112
 
1348
 
1113
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1349
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1114
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1115
          new StructMetaData(TType.STRUCT, Provider.class)));
-
 
1116
      put(_Fields.LSE, new FieldMetaData("lse", TFieldRequirementType.DEFAULT, 
-
 
1117
          new FieldValueMetaData(TType.STRUCT)));
-
 
1118
    }});
-
 
1119
 
-
 
1120
    static {
1350
    static {
-
 
1351
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1352
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1353
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class)));
-
 
1354
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1355
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
1356
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1121
      FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
1357
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getProvider_result.class, metaDataMap);
1122
    }
1358
    }
1123
 
1359
 
1124
    public getProvider_result() {
1360
    public getProvider_result() {
1125
    }
1361
    }
1126
 
1362
 
Line 1147... Line 1383...
1147
 
1383
 
1148
    public getProvider_result deepCopy() {
1384
    public getProvider_result deepCopy() {
1149
      return new getProvider_result(this);
1385
      return new getProvider_result(this);
1150
    }
1386
    }
1151
 
1387
 
1152
    @Deprecated
1388
    @Override
1153
    public getProvider_result clone() {
1389
    public void clear() {
1154
      return new getProvider_result(this);
1390
      this.success = null;
-
 
1391
      this.lse = null;
1155
    }
1392
    }
1156
 
1393
 
1157
    public Provider getSuccess() {
1394
    public Provider getSuccess() {
1158
      return this.success;
1395
      return this.success;
1159
    }
1396
    }
1160
 
1397
 
1161
    public getProvider_result setSuccess(Provider success) {
1398
    public void setSuccess(Provider success) {
1162
      this.success = success;
1399
      this.success = success;
1163
      return this;
-
 
1164
    }
1400
    }
1165
 
1401
 
1166
    public void unsetSuccess() {
1402
    public void unsetSuccess() {
1167
      this.success = null;
1403
      this.success = null;
1168
    }
1404
    }
1169
 
1405
 
1170
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
1406
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1171
    public boolean isSetSuccess() {
1407
    public boolean isSetSuccess() {
1172
      return this.success != null;
1408
      return this.success != null;
1173
    }
1409
    }
1174
 
1410
 
1175
    public void setSuccessIsSet(boolean value) {
1411
    public void setSuccessIsSet(boolean value) {
Line 1180... Line 1416...
1180
 
1416
 
1181
    public LogisticsServiceException getLse() {
1417
    public LogisticsServiceException getLse() {
1182
      return this.lse;
1418
      return this.lse;
1183
    }
1419
    }
1184
 
1420
 
1185
    public getProvider_result setLse(LogisticsServiceException lse) {
1421
    public void setLse(LogisticsServiceException lse) {
1186
      this.lse = lse;
1422
      this.lse = lse;
1187
      return this;
-
 
1188
    }
1423
    }
1189
 
1424
 
1190
    public void unsetLse() {
1425
    public void unsetLse() {
1191
      this.lse = null;
1426
      this.lse = null;
1192
    }
1427
    }
1193
 
1428
 
1194
    /** Returns true if field lse is set (has been asigned a value) and false otherwise */
1429
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
1195
    public boolean isSetLse() {
1430
    public boolean isSetLse() {
1196
      return this.lse != null;
1431
      return this.lse != null;
1197
    }
1432
    }
1198
 
1433
 
1199
    public void setLseIsSet(boolean value) {
1434
    public void setLseIsSet(boolean value) {
Line 1221... Line 1456...
1221
        break;
1456
        break;
1222
 
1457
 
1223
      }
1458
      }
1224
    }
1459
    }
1225
 
1460
 
1226
    public void setFieldValue(int fieldID, Object value) {
-
 
1227
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1228
    }
-
 
1229
 
-
 
1230
    public Object getFieldValue(_Fields field) {
1461
    public Object getFieldValue(_Fields field) {
1231
      switch (field) {
1462
      switch (field) {
1232
      case SUCCESS:
1463
      case SUCCESS:
1233
        return getSuccess();
1464
        return getSuccess();
1234
 
1465
 
Line 1237... Line 1468...
1237
 
1468
 
1238
      }
1469
      }
1239
      throw new IllegalStateException();
1470
      throw new IllegalStateException();
1240
    }
1471
    }
1241
 
1472
 
1242
    public Object getFieldValue(int fieldId) {
-
 
1243
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1244
    }
-
 
1245
 
-
 
1246
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1473
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1247
    public boolean isSet(_Fields field) {
1474
    public boolean isSet(_Fields field) {
-
 
1475
      if (field == null) {
-
 
1476
        throw new IllegalArgumentException();
-
 
1477
      }
-
 
1478
 
1248
      switch (field) {
1479
      switch (field) {
1249
      case SUCCESS:
1480
      case SUCCESS:
1250
        return isSetSuccess();
1481
        return isSetSuccess();
1251
      case LSE:
1482
      case LSE:
1252
        return isSetLse();
1483
        return isSetLse();
1253
      }
1484
      }
1254
      throw new IllegalStateException();
1485
      throw new IllegalStateException();
1255
    }
1486
    }
1256
 
1487
 
1257
    public boolean isSet(int fieldID) {
-
 
1258
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1259
    }
-
 
1260
 
-
 
1261
    @Override
1488
    @Override
1262
    public boolean equals(Object that) {
1489
    public boolean equals(Object that) {
1263
      if (that == null)
1490
      if (that == null)
1264
        return false;
1491
        return false;
1265
      if (that instanceof getProvider_result)
1492
      if (that instanceof getProvider_result)
Line 1295... Line 1522...
1295
    @Override
1522
    @Override
1296
    public int hashCode() {
1523
    public int hashCode() {
1297
      return 0;
1524
      return 0;
1298
    }
1525
    }
1299
 
1526
 
1300
    public void read(TProtocol iprot) throws TException {
1527
    public int compareTo(getProvider_result other) {
-
 
1528
      if (!getClass().equals(other.getClass())) {
-
 
1529
        return getClass().getName().compareTo(other.getClass().getName());
-
 
1530
      }
-
 
1531
 
-
 
1532
      int lastComparison = 0;
-
 
1533
      getProvider_result typedOther = (getProvider_result)other;
-
 
1534
 
-
 
1535
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
1536
      if (lastComparison != 0) {
-
 
1537
        return lastComparison;
-
 
1538
      }
-
 
1539
      if (isSetSuccess()) {
-
 
1540
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
1541
        if (lastComparison != 0) {
-
 
1542
          return lastComparison;
-
 
1543
        }
-
 
1544
      }
-
 
1545
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
-
 
1546
      if (lastComparison != 0) {
-
 
1547
        return lastComparison;
-
 
1548
      }
-
 
1549
      if (isSetLse()) {
-
 
1550
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
-
 
1551
        if (lastComparison != 0) {
-
 
1552
          return lastComparison;
-
 
1553
        }
-
 
1554
      }
1301
      TField field;
1555
      return 0;
-
 
1556
    }
-
 
1557
 
-
 
1558
    public _Fields fieldForId(int fieldId) {
-
 
1559
      return _Fields.findByThriftId(fieldId);
-
 
1560
    }
-
 
1561
 
-
 
1562
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
1563
      org.apache.thrift.protocol.TField field;
1302
      iprot.readStructBegin();
1564
      iprot.readStructBegin();
1303
      while (true)
1565
      while (true)
1304
      {
1566
      {
1305
        field = iprot.readFieldBegin();
1567
        field = iprot.readFieldBegin();
1306
        if (field.type == TType.STOP) { 
1568
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1307
          break;
1569
          break;
1308
        }
1570
        }
1309
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1310
        if (fieldId == null) {
-
 
1311
          TProtocolUtil.skip(iprot, field.type);
-
 
1312
        } else {
-
 
1313
          switch (fieldId) {
1571
        switch (field.id) {
1314
            case SUCCESS:
1572
          case 0: // SUCCESS
1315
              if (field.type == TType.STRUCT) {
1573
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1316
                this.success = new Provider();
1574
              this.success = new Provider();
1317
                this.success.read(iprot);
1575
              this.success.read(iprot);
1318
              } else { 
1576
            } else { 
1319
                TProtocolUtil.skip(iprot, field.type);
1577
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1320
              }
1578
            }
1321
              break;
1579
            break;
1322
            case LSE:
1580
          case 1: // LSE
1323
              if (field.type == TType.STRUCT) {
1581
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
1324
                this.lse = new LogisticsServiceException();
1582
              this.lse = new LogisticsServiceException();
1325
                this.lse.read(iprot);
1583
              this.lse.read(iprot);
1326
              } else { 
1584
            } else { 
1327
                TProtocolUtil.skip(iprot, field.type);
1585
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1328
              }
1586
            }
1329
              break;
1587
            break;
1330
          }
1588
          default:
1331
          iprot.readFieldEnd();
1589
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1332
        }
1590
        }
-
 
1591
        iprot.readFieldEnd();
1333
      }
1592
      }
1334
      iprot.readStructEnd();
1593
      iprot.readStructEnd();
1335
      validate();
1594
      validate();
1336
    }
1595
    }
1337
 
1596
 
1338
    public void write(TProtocol oprot) throws TException {
1597
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1339
      oprot.writeStructBegin(STRUCT_DESC);
1598
      oprot.writeStructBegin(STRUCT_DESC);
1340
 
1599
 
1341
      if (this.isSetSuccess()) {
1600
      if (this.isSetSuccess()) {
1342
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1601
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1343
        this.success.write(oprot);
1602
        this.success.write(oprot);
Line 1373... Line 1632...
1373
      first = false;
1632
      first = false;
1374
      sb.append(")");
1633
      sb.append(")");
1375
      return sb.toString();
1634
      return sb.toString();
1376
    }
1635
    }
1377
 
1636
 
1378
    public void validate() throws TException {
1637
    public void validate() throws org.apache.thrift.TException {
1379
      // check for required fields
1638
      // check for required fields
1380
    }
1639
    }
1381
 
1640
 
-
 
1641
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1642
      try {
-
 
1643
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1644
      } catch (org.apache.thrift.TException te) {
-
 
1645
        throw new java.io.IOException(te);
-
 
1646
      }
-
 
1647
    }
-
 
1648
 
-
 
1649
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1650
      try {
-
 
1651
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1652
      } catch (org.apache.thrift.TException te) {
-
 
1653
        throw new java.io.IOException(te);
-
 
1654
      }
-
 
1655
    }
-
 
1656
 
1382
  }
1657
  }
1383
 
1658
 
1384
  public static class getAllProviders_args implements TBase<getAllProviders_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllProviders_args>   {
1659
  public static class getAllProviders_args implements org.apache.thrift.TBase<getAllProviders_args, getAllProviders_args._Fields>, java.io.Serializable, Cloneable   {
1385
    private static final TStruct STRUCT_DESC = new TStruct("getAllProviders_args");
1660
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_args");
1386
 
1661
 
1387
 
1662
 
1388
 
1663
 
1389
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1664
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1390
    public enum _Fields implements TFieldIdEnum {
1665
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1391
;
1666
;
1392
 
1667
 
1393
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1394
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1668
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1395
 
1669
 
1396
      static {
1670
      static {
1397
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1671
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1398
          byId.put((int)field._thriftId, field);
-
 
1399
          byName.put(field.getFieldName(), field);
1672
          byName.put(field.getFieldName(), field);
1400
        }
1673
        }
1401
      }
1674
      }
1402
 
1675
 
1403
      /**
1676
      /**
1404
       * Find the _Fields constant that matches fieldId, or null if its not found.
1677
       * Find the _Fields constant that matches fieldId, or null if its not found.
1405
       */
1678
       */
1406
      public static _Fields findByThriftId(int fieldId) {
1679
      public static _Fields findByThriftId(int fieldId) {
1407
        return byId.get(fieldId);
1680
        switch(fieldId) {
-
 
1681
          default:
-
 
1682
            return null;
-
 
1683
        }
1408
      }
1684
      }
1409
 
1685
 
1410
      /**
1686
      /**
1411
       * Find the _Fields constant that matches fieldId, throwing an exception
1687
       * Find the _Fields constant that matches fieldId, throwing an exception
1412
       * if it is not found.
1688
       * if it is not found.
Line 1438... Line 1714...
1438
 
1714
 
1439
      public String getFieldName() {
1715
      public String getFieldName() {
1440
        return _fieldName;
1716
        return _fieldName;
1441
      }
1717
      }
1442
    }
1718
    }
1443
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1719
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1444
    }});
-
 
1445
 
-
 
1446
    static {
1720
    static {
-
 
1721
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1722
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1447
      FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
1723
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_args.class, metaDataMap);
1448
    }
1724
    }
1449
 
1725
 
1450
    public getAllProviders_args() {
1726
    public getAllProviders_args() {
1451
    }
1727
    }
1452
 
1728
 
Line 1458... Line 1734...
1458
 
1734
 
1459
    public getAllProviders_args deepCopy() {
1735
    public getAllProviders_args deepCopy() {
1460
      return new getAllProviders_args(this);
1736
      return new getAllProviders_args(this);
1461
    }
1737
    }
1462
 
1738
 
1463
    @Deprecated
1739
    @Override
1464
    public getAllProviders_args clone() {
1740
    public void clear() {
1465
      return new getAllProviders_args(this);
-
 
1466
    }
1741
    }
1467
 
1742
 
1468
    public void setFieldValue(_Fields field, Object value) {
1743
    public void setFieldValue(_Fields field, Object value) {
1469
      switch (field) {
1744
      switch (field) {
1470
      }
1745
      }
1471
    }
1746
    }
1472
 
1747
 
1473
    public void setFieldValue(int fieldID, Object value) {
-
 
1474
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1475
    }
-
 
1476
 
-
 
1477
    public Object getFieldValue(_Fields field) {
1748
    public Object getFieldValue(_Fields field) {
1478
      switch (field) {
1749
      switch (field) {
1479
      }
1750
      }
1480
      throw new IllegalStateException();
1751
      throw new IllegalStateException();
1481
    }
1752
    }
1482
 
1753
 
1483
    public Object getFieldValue(int fieldId) {
-
 
1484
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1485
    }
-
 
1486
 
-
 
1487
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1754
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1488
    public boolean isSet(_Fields field) {
1755
    public boolean isSet(_Fields field) {
-
 
1756
      if (field == null) {
-
 
1757
        throw new IllegalArgumentException();
-
 
1758
      }
-
 
1759
 
1489
      switch (field) {
1760
      switch (field) {
1490
      }
1761
      }
1491
      throw new IllegalStateException();
1762
      throw new IllegalStateException();
1492
    }
1763
    }
1493
 
1764
 
1494
    public boolean isSet(int fieldID) {
-
 
1495
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1496
    }
-
 
1497
 
-
 
1498
    @Override
1765
    @Override
1499
    public boolean equals(Object that) {
1766
    public boolean equals(Object that) {
1500
      if (that == null)
1767
      if (that == null)
1501
        return false;
1768
        return false;
1502
      if (that instanceof getAllProviders_args)
1769
      if (that instanceof getAllProviders_args)
Line 1525... Line 1792...
1525
      getAllProviders_args typedOther = (getAllProviders_args)other;
1792
      getAllProviders_args typedOther = (getAllProviders_args)other;
1526
 
1793
 
1527
      return 0;
1794
      return 0;
1528
    }
1795
    }
1529
 
1796
 
-
 
1797
    public _Fields fieldForId(int fieldId) {
-
 
1798
      return _Fields.findByThriftId(fieldId);
-
 
1799
    }
-
 
1800
 
1530
    public void read(TProtocol iprot) throws TException {
1801
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1531
      TField field;
1802
      org.apache.thrift.protocol.TField field;
1532
      iprot.readStructBegin();
1803
      iprot.readStructBegin();
1533
      while (true)
1804
      while (true)
1534
      {
1805
      {
1535
        field = iprot.readFieldBegin();
1806
        field = iprot.readFieldBegin();
1536
        if (field.type == TType.STOP) { 
1807
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1537
          break;
1808
          break;
1538
        }
1809
        }
1539
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1540
        if (fieldId == null) {
-
 
1541
          TProtocolUtil.skip(iprot, field.type);
-
 
1542
        } else {
-
 
1543
          switch (fieldId) {
1810
        switch (field.id) {
1544
          }
1811
          default:
1545
          iprot.readFieldEnd();
1812
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1546
        }
1813
        }
-
 
1814
        iprot.readFieldEnd();
1547
      }
1815
      }
1548
      iprot.readStructEnd();
1816
      iprot.readStructEnd();
1549
      validate();
1817
      validate();
1550
    }
1818
    }
1551
 
1819
 
1552
    public void write(TProtocol oprot) throws TException {
1820
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1553
      validate();
1821
      validate();
1554
 
1822
 
1555
      oprot.writeStructBegin(STRUCT_DESC);
1823
      oprot.writeStructBegin(STRUCT_DESC);
1556
      oprot.writeFieldStop();
1824
      oprot.writeFieldStop();
1557
      oprot.writeStructEnd();
1825
      oprot.writeStructEnd();
Line 1564... Line 1832...
1564
 
1832
 
1565
      sb.append(")");
1833
      sb.append(")");
1566
      return sb.toString();
1834
      return sb.toString();
1567
    }
1835
    }
1568
 
1836
 
1569
    public void validate() throws TException {
1837
    public void validate() throws org.apache.thrift.TException {
1570
      // check for required fields
1838
      // check for required fields
1571
    }
1839
    }
1572
 
1840
 
-
 
1841
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1842
      try {
-
 
1843
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1844
      } catch (org.apache.thrift.TException te) {
-
 
1845
        throw new java.io.IOException(te);
-
 
1846
      }
-
 
1847
    }
-
 
1848
 
-
 
1849
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1850
      try {
-
 
1851
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1852
      } catch (org.apache.thrift.TException te) {
-
 
1853
        throw new java.io.IOException(te);
-
 
1854
      }
-
 
1855
    }
-
 
1856
 
1573
  }
1857
  }
1574
 
1858
 
1575
  public static class getAllProviders_result implements TBase<getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
1859
  public static class getAllProviders_result implements org.apache.thrift.TBase<getAllProviders_result, getAllProviders_result._Fields>, java.io.Serializable, Cloneable   {
1576
    private static final TStruct STRUCT_DESC = new TStruct("getAllProviders_result");
1860
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAllProviders_result");
1577
 
1861
 
1578
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
1862
    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);
1579
    private static final TField LSE_FIELD_DESC = new TField("lse", TType.STRUCT, (short)1);
1863
    private static final org.apache.thrift.protocol.TField LSE_FIELD_DESC = new org.apache.thrift.protocol.TField("lse", org.apache.thrift.protocol.TType.STRUCT, (short)1);
1580
 
1864
 
1581
    private List<Provider> success;
1865
    private List<Provider> success; // required
1582
    private LogisticsServiceException lse;
1866
    private LogisticsServiceException lse; // required
1583
 
1867
 
1584
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1868
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1585
    public enum _Fields implements TFieldIdEnum {
1869
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1586
      SUCCESS((short)0, "success"),
1870
      SUCCESS((short)0, "success"),
1587
      LSE((short)1, "lse");
1871
      LSE((short)1, "lse");
1588
 
1872
 
1589
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1590
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1873
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1591
 
1874
 
1592
      static {
1875
      static {
1593
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1876
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1594
          byId.put((int)field._thriftId, field);
-
 
1595
          byName.put(field.getFieldName(), field);
1877
          byName.put(field.getFieldName(), field);
1596
        }
1878
        }
1597
      }
1879
      }
1598
 
1880
 
1599
      /**
1881
      /**
1600
       * Find the _Fields constant that matches fieldId, or null if its not found.
1882
       * Find the _Fields constant that matches fieldId, or null if its not found.
1601
       */
1883
       */
1602
      public static _Fields findByThriftId(int fieldId) {
1884
      public static _Fields findByThriftId(int fieldId) {
1603
        return byId.get(fieldId);
1885
        switch(fieldId) {
-
 
1886
          case 0: // SUCCESS
-
 
1887
            return SUCCESS;
-
 
1888
          case 1: // LSE
-
 
1889
            return LSE;
-
 
1890
          default:
-
 
1891
            return null;
-
 
1892
        }
1604
      }
1893
      }
1605
 
1894
 
1606
      /**
1895
      /**
1607
       * Find the _Fields constant that matches fieldId, throwing an exception
1896
       * Find the _Fields constant that matches fieldId, throwing an exception
1608
       * if it is not found.
1897
       * if it is not found.
Line 1637... Line 1926...
1637
      }
1926
      }
1638
    }
1927
    }
1639
 
1928
 
1640
    // isset id assignments
1929
    // isset id assignments
1641
 
1930
 
1642
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1931
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1643
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1644
          new ListMetaData(TType.LIST, 
-
 
1645
              new StructMetaData(TType.STRUCT, Provider.class))));
-
 
1646
      put(_Fields.LSE, new FieldMetaData("lse", TFieldRequirementType.DEFAULT, 
-
 
1647
          new FieldValueMetaData(TType.STRUCT)));
-
 
1648
    }});
-
 
1649
 
-
 
1650
    static {
1932
    static {
-
 
1933
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1934
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1935
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
1936
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Provider.class))));
-
 
1937
      tmpMap.put(_Fields.LSE, new org.apache.thrift.meta_data.FieldMetaData("lse", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1938
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
1939
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1651
      FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
1940
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAllProviders_result.class, metaDataMap);
1652
    }
1941
    }
1653
 
1942
 
1654
    public getAllProviders_result() {
1943
    public getAllProviders_result() {
1655
    }
1944
    }
1656
 
1945
 
Line 1681... Line 1970...
1681
 
1970
 
1682
    public getAllProviders_result deepCopy() {
1971
    public getAllProviders_result deepCopy() {
1683
      return new getAllProviders_result(this);
1972
      return new getAllProviders_result(this);
1684
    }
1973
    }
1685
 
1974
 
1686
    @Deprecated
1975
    @Override
1687
    public getAllProviders_result clone() {
1976
    public void clear() {
1688
      return new getAllProviders_result(this);
1977
      this.success = null;
-
 
1978
      this.lse = null;
1689
    }
1979
    }
1690
 
1980
 
1691
    public int getSuccessSize() {
1981
    public int getSuccessSize() {
1692
      return (this.success == null) ? 0 : this.success.size();
1982
      return (this.success == null) ? 0 : this.success.size();
1693
    }
1983
    }
Line 1705... Line 1995...
1705
 
1995
 
1706
    public List<Provider> getSuccess() {
1996
    public List<Provider> getSuccess() {
1707
      return this.success;
1997
      return this.success;
1708
    }
1998
    }
1709
 
1999
 
1710
    public getAllProviders_result setSuccess(List<Provider> success) {
2000
    public void setSuccess(List<Provider> success) {
1711
      this.success = success;
2001
      this.success = success;
1712
      return this;
-
 
1713
    }
2002
    }
1714
 
2003
 
1715
    public void unsetSuccess() {
2004
    public void unsetSuccess() {
1716
      this.success = null;
2005
      this.success = null;
1717
    }
2006
    }
1718
 
2007
 
1719
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2008
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1720
    public boolean isSetSuccess() {
2009
    public boolean isSetSuccess() {
1721
      return this.success != null;
2010
      return this.success != null;
1722
    }
2011
    }
1723
 
2012
 
1724
    public void setSuccessIsSet(boolean value) {
2013
    public void setSuccessIsSet(boolean value) {
Line 1729... Line 2018...
1729
 
2018
 
1730
    public LogisticsServiceException getLse() {
2019
    public LogisticsServiceException getLse() {
1731
      return this.lse;
2020
      return this.lse;
1732
    }
2021
    }
1733
 
2022
 
1734
    public getAllProviders_result setLse(LogisticsServiceException lse) {
2023
    public void setLse(LogisticsServiceException lse) {
1735
      this.lse = lse;
2024
      this.lse = lse;
1736
      return this;
-
 
1737
    }
2025
    }
1738
 
2026
 
1739
    public void unsetLse() {
2027
    public void unsetLse() {
1740
      this.lse = null;
2028
      this.lse = null;
1741
    }
2029
    }
1742
 
2030
 
1743
    /** Returns true if field lse is set (has been asigned a value) and false otherwise */
2031
    /** Returns true if field lse is set (has been assigned a value) and false otherwise */
1744
    public boolean isSetLse() {
2032
    public boolean isSetLse() {
1745
      return this.lse != null;
2033
      return this.lse != null;
1746
    }
2034
    }
1747
 
2035
 
1748
    public void setLseIsSet(boolean value) {
2036
    public void setLseIsSet(boolean value) {
Line 1770... Line 2058...
1770
        break;
2058
        break;
1771
 
2059
 
1772
      }
2060
      }
1773
    }
2061
    }
1774
 
2062
 
1775
    public void setFieldValue(int fieldID, Object value) {
-
 
1776
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1777
    }
-
 
1778
 
-
 
1779
    public Object getFieldValue(_Fields field) {
2063
    public Object getFieldValue(_Fields field) {
1780
      switch (field) {
2064
      switch (field) {
1781
      case SUCCESS:
2065
      case SUCCESS:
1782
        return getSuccess();
2066
        return getSuccess();
1783
 
2067
 
Line 1786... Line 2070...
1786
 
2070
 
1787
      }
2071
      }
1788
      throw new IllegalStateException();
2072
      throw new IllegalStateException();
1789
    }
2073
    }
1790
 
2074
 
1791
    public Object getFieldValue(int fieldId) {
-
 
1792
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1793
    }
-
 
1794
 
-
 
1795
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2075
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1796
    public boolean isSet(_Fields field) {
2076
    public boolean isSet(_Fields field) {
-
 
2077
      if (field == null) {
-
 
2078
        throw new IllegalArgumentException();
-
 
2079
      }
-
 
2080
 
1797
      switch (field) {
2081
      switch (field) {
1798
      case SUCCESS:
2082
      case SUCCESS:
1799
        return isSetSuccess();
2083
        return isSetSuccess();
1800
      case LSE:
2084
      case LSE:
1801
        return isSetLse();
2085
        return isSetLse();
1802
      }
2086
      }
1803
      throw new IllegalStateException();
2087
      throw new IllegalStateException();
1804
    }
2088
    }
1805
 
2089
 
1806
    public boolean isSet(int fieldID) {
-
 
1807
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1808
    }
-
 
1809
 
-
 
1810
    @Override
2090
    @Override
1811
    public boolean equals(Object that) {
2091
    public boolean equals(Object that) {
1812
      if (that == null)
2092
      if (that == null)
1813
        return false;
2093
        return false;
1814
      if (that instanceof getAllProviders_result)
2094
      if (that instanceof getAllProviders_result)
Line 1844... Line 2124...
1844
    @Override
2124
    @Override
1845
    public int hashCode() {
2125
    public int hashCode() {
1846
      return 0;
2126
      return 0;
1847
    }
2127
    }
1848
 
2128
 
1849
    public void read(TProtocol iprot) throws TException {
2129
    public int compareTo(getAllProviders_result other) {
-
 
2130
      if (!getClass().equals(other.getClass())) {
-
 
2131
        return getClass().getName().compareTo(other.getClass().getName());
-
 
2132
      }
-
 
2133
 
-
 
2134
      int lastComparison = 0;
-
 
2135
      getAllProviders_result typedOther = (getAllProviders_result)other;
-
 
2136
 
-
 
2137
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
2138
      if (lastComparison != 0) {
-
 
2139
        return lastComparison;
-
 
2140
      }
-
 
2141
      if (isSetSuccess()) {
-
 
2142
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
2143
        if (lastComparison != 0) {
-
 
2144
          return lastComparison;
-
 
2145
        }
-
 
2146
      }
-
 
2147
      lastComparison = Boolean.valueOf(isSetLse()).compareTo(typedOther.isSetLse());
-
 
2148
      if (lastComparison != 0) {
-
 
2149
        return lastComparison;
-
 
2150
      }
-
 
2151
      if (isSetLse()) {
-
 
2152
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.lse, typedOther.lse);
-
 
2153
        if (lastComparison != 0) {
-
 
2154
          return lastComparison;
-
 
2155
        }
-
 
2156
      }
1850
      TField field;
2157
      return 0;
-
 
2158
    }
-
 
2159
 
-
 
2160
    public _Fields fieldForId(int fieldId) {
-
 
2161
      return _Fields.findByThriftId(fieldId);
-
 
2162
    }
-
 
2163
 
-
 
2164
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
2165
      org.apache.thrift.protocol.TField field;
1851
      iprot.readStructBegin();
2166
      iprot.readStructBegin();
1852
      while (true)
2167
      while (true)
1853
      {
2168
      {
1854
        field = iprot.readFieldBegin();
2169
        field = iprot.readFieldBegin();
1855
        if (field.type == TType.STOP) { 
2170
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1856
          break;
2171
          break;
1857
        }
2172
        }
1858
        _Fields fieldId = _Fields.findByThriftId(field.id);
2173
        switch (field.id) {
1859
        if (fieldId == null) {
2174
          case 0: // SUCCESS
1860
          TProtocolUtil.skip(iprot, field.type);
2175
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
1861
        } else {
2176
              {
1862
          switch (fieldId) {
2177
                org.apache.thrift.protocol.TList _list5 = iprot.readListBegin();
1863
            case SUCCESS:
2178
                this.success = new ArrayList<Provider>(_list5.size);
1864
              if (field.type == TType.LIST) {
2179
                for (int _i6 = 0; _i6 < _list5.size; ++_i6)
1865
                {
2180
                {
1866
                  TList _list5 = iprot.readListBegin();
-
 
1867
                  this.success = new ArrayList<Provider>(_list5.size);
-
 
1868
                  for (int _i6 = 0; _i6 < _list5.size; ++_i6)
-
 
1869
                  {
-
 
1870
                    Provider _elem7;
2181
                  Provider _elem7; // required
1871
                    _elem7 = new Provider();
2182
                  _elem7 = new Provider();
1872
                    _elem7.read(iprot);
2183
                  _elem7.read(iprot);
1873
                    this.success.add(_elem7);
2184
                  this.success.add(_elem7);
1874
                  }
-
 
1875
                  iprot.readListEnd();
-
 
1876
                }
2185
                }
1877
              } else { 
-
 
1878
                TProtocolUtil.skip(iprot, field.type);
-
 
1879
              }
-
 
1880
              break;
-
 
1881
            case LSE:
-
 
1882
              if (field.type == TType.STRUCT) {
-
 
1883
                this.lse = new LogisticsServiceException();
-
 
1884
                this.lse.read(iprot);
2186
                iprot.readListEnd();
1885
              } else { 
-
 
1886
                TProtocolUtil.skip(iprot, field.type);
-
 
1887
              }
2187
              }
-
 
2188
            } else { 
-
 
2189
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
2190
            }
1888
              break;
2191
            break;
-
 
2192
          case 1: // LSE
-
 
2193
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
2194
              this.lse = new LogisticsServiceException();
-
 
2195
              this.lse.read(iprot);
-
 
2196
            } else { 
-
 
2197
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1889
          }
2198
            }
1890
          iprot.readFieldEnd();
2199
            break;
-
 
2200
          default:
-
 
2201
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1891
        }
2202
        }
-
 
2203
        iprot.readFieldEnd();
1892
      }
2204
      }
1893
      iprot.readStructEnd();
2205
      iprot.readStructEnd();
1894
      validate();
2206
      validate();
1895
    }
2207
    }
1896
 
2208
 
1897
    public void write(TProtocol oprot) throws TException {
2209
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1898
      oprot.writeStructBegin(STRUCT_DESC);
2210
      oprot.writeStructBegin(STRUCT_DESC);
1899
 
2211
 
1900
      if (this.isSetSuccess()) {
2212
      if (this.isSetSuccess()) {
1901
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2213
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1902
        {
2214
        {
1903
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
2215
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
1904
          for (Provider _iter8 : this.success)
2216
          for (Provider _iter8 : this.success)
1905
          {
2217
          {
1906
            _iter8.write(oprot);
2218
            _iter8.write(oprot);
1907
          }
2219
          }
1908
          oprot.writeListEnd();
2220
          oprot.writeListEnd();
Line 1939... Line 2251...
1939
      first = false;
2251
      first = false;
1940
      sb.append(")");
2252
      sb.append(")");
1941
      return sb.toString();
2253
      return sb.toString();
1942
    }
2254
    }
1943
 
2255
 
1944
    public void validate() throws TException {
2256
    public void validate() throws org.apache.thrift.TException {
1945
      // check for required fields
2257
      // check for required fields
1946
    }
2258
    }
1947
 
2259
 
-
 
2260
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2261
      try {
-
 
2262
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2263
      } catch (org.apache.thrift.TException te) {
-
 
2264
        throw new java.io.IOException(te);
-
 
2265
      }
-
 
2266
    }
-
 
2267
 
-
 
2268
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2269
      try {
-
 
2270
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2271
      } catch (org.apache.thrift.TException te) {
-
 
2272
        throw new java.io.IOException(te);
-
 
2273
      }
-
 
2274
    }
-
 
2275
 
1948
  }
2276
  }
1949
 
2277
 
1950
  public static class getLogisticsEstimation_args implements TBase<getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLogisticsEstimation_args>   {
2278
  public static class getLogisticsEstimation_args implements org.apache.thrift.TBase<getLogisticsEstimation_args, getLogisticsEstimation_args._Fields>, java.io.Serializable, Cloneable   {
1951
    private static final TStruct STRUCT_DESC = new TStruct("getLogisticsEstimation_args");
2279
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_args");
1952
 
2280
 
1953
    private static final TField ITEM_ID_FIELD_DESC = new TField("itemId", TType.I64, (short)1);
2281
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("itemId", org.apache.thrift.protocol.TType.I64, (short)1);
1954
    private static final TField DESTINATION_PIN_FIELD_DESC = new TField("destination_pin", TType.STRING, (short)2);
2282
    private static final org.apache.thrift.protocol.TField DESTINATION_PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pin", org.apache.thrift.protocol.TType.STRING, (short)2);
1955
 
2283
 
1956
    private long itemId;
2284
    private long itemId; // required
1957
    private String destination_pin;
2285
    private String destination_pin; // required
1958
 
2286
 
1959
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2287
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1960
    public enum _Fields implements TFieldIdEnum {
2288
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1961
      ITEM_ID((short)1, "itemId"),
2289
      ITEM_ID((short)1, "itemId"),
1962
      DESTINATION_PIN((short)2, "destination_pin");
2290
      DESTINATION_PIN((short)2, "destination_pin");
1963
 
2291
 
1964
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1965
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2292
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1966
 
2293
 
1967
      static {
2294
      static {
1968
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2295
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1969
          byId.put((int)field._thriftId, field);
-
 
1970
          byName.put(field.getFieldName(), field);
2296
          byName.put(field.getFieldName(), field);
1971
        }
2297
        }
1972
      }
2298
      }
1973
 
2299
 
1974
      /**
2300
      /**
1975
       * Find the _Fields constant that matches fieldId, or null if its not found.
2301
       * Find the _Fields constant that matches fieldId, or null if its not found.
1976
       */
2302
       */
1977
      public static _Fields findByThriftId(int fieldId) {
2303
      public static _Fields findByThriftId(int fieldId) {
1978
        return byId.get(fieldId);
2304
        switch(fieldId) {
-
 
2305
          case 1: // ITEM_ID
-
 
2306
            return ITEM_ID;
-
 
2307
          case 2: // DESTINATION_PIN
-
 
2308
            return DESTINATION_PIN;
-
 
2309
          default:
-
 
2310
            return null;
-
 
2311
        }
1979
      }
2312
      }
1980
 
2313
 
1981
      /**
2314
      /**
1982
       * Find the _Fields constant that matches fieldId, throwing an exception
2315
       * Find the _Fields constant that matches fieldId, throwing an exception
1983
       * if it is not found.
2316
       * if it is not found.
Line 2014... Line 2347...
2014
 
2347
 
2015
    // isset id assignments
2348
    // isset id assignments
2016
    private static final int __ITEMID_ISSET_ID = 0;
2349
    private static final int __ITEMID_ISSET_ID = 0;
2017
    private BitSet __isset_bit_vector = new BitSet(1);
2350
    private BitSet __isset_bit_vector = new BitSet(1);
2018
 
2351
 
2019
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2352
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2020
      put(_Fields.ITEM_ID, new FieldMetaData("itemId", TFieldRequirementType.DEFAULT, 
-
 
2021
          new FieldValueMetaData(TType.I64)));
-
 
2022
      put(_Fields.DESTINATION_PIN, new FieldMetaData("destination_pin", TFieldRequirementType.DEFAULT, 
-
 
2023
          new FieldValueMetaData(TType.STRING)));
-
 
2024
    }});
-
 
2025
 
-
 
2026
    static {
2353
    static {
-
 
2354
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2355
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("itemId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2356
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
2357
      tmpMap.put(_Fields.DESTINATION_PIN, new org.apache.thrift.meta_data.FieldMetaData("destination_pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2358
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
2359
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2027
      FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
2360
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_args.class, metaDataMap);
2028
    }
2361
    }
2029
 
2362
 
2030
    public getLogisticsEstimation_args() {
2363
    public getLogisticsEstimation_args() {
2031
    }
2364
    }
2032
 
2365
 
Line 2054... Line 2387...
2054
 
2387
 
2055
    public getLogisticsEstimation_args deepCopy() {
2388
    public getLogisticsEstimation_args deepCopy() {
2056
      return new getLogisticsEstimation_args(this);
2389
      return new getLogisticsEstimation_args(this);
2057
    }
2390
    }
2058
 
2391
 
2059
    @Deprecated
2392
    @Override
2060
    public getLogisticsEstimation_args clone() {
2393
    public void clear() {
-
 
2394
      setItemIdIsSet(false);
-
 
2395
      this.itemId = 0;
2061
      return new getLogisticsEstimation_args(this);
2396
      this.destination_pin = null;
2062
    }
2397
    }
2063
 
2398
 
2064
    public long getItemId() {
2399
    public long getItemId() {
2065
      return this.itemId;
2400
      return this.itemId;
2066
    }
2401
    }
2067
 
2402
 
2068
    public getLogisticsEstimation_args setItemId(long itemId) {
2403
    public void setItemId(long itemId) {
2069
      this.itemId = itemId;
2404
      this.itemId = itemId;
2070
      setItemIdIsSet(true);
2405
      setItemIdIsSet(true);
2071
      return this;
-
 
2072
    }
2406
    }
2073
 
2407
 
2074
    public void unsetItemId() {
2408
    public void unsetItemId() {
2075
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2409
      __isset_bit_vector.clear(__ITEMID_ISSET_ID);
2076
    }
2410
    }
2077
 
2411
 
2078
    /** Returns true if field itemId is set (has been asigned a value) and false otherwise */
2412
    /** Returns true if field itemId is set (has been assigned a value) and false otherwise */
2079
    public boolean isSetItemId() {
2413
    public boolean isSetItemId() {
2080
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2414
      return __isset_bit_vector.get(__ITEMID_ISSET_ID);
2081
    }
2415
    }
2082
 
2416
 
2083
    public void setItemIdIsSet(boolean value) {
2417
    public void setItemIdIsSet(boolean value) {
Line 2086... Line 2420...
2086
 
2420
 
2087
    public String getDestination_pin() {
2421
    public String getDestination_pin() {
2088
      return this.destination_pin;
2422
      return this.destination_pin;
2089
    }
2423
    }
2090
 
2424
 
2091
    public getLogisticsEstimation_args setDestination_pin(String destination_pin) {
2425
    public void setDestination_pin(String destination_pin) {
2092
      this.destination_pin = destination_pin;
2426
      this.destination_pin = destination_pin;
2093
      return this;
-
 
2094
    }
2427
    }
2095
 
2428
 
2096
    public void unsetDestination_pin() {
2429
    public void unsetDestination_pin() {
2097
      this.destination_pin = null;
2430
      this.destination_pin = null;
2098
    }
2431
    }
2099
 
2432
 
2100
    /** Returns true if field destination_pin is set (has been asigned a value) and false otherwise */
2433
    /** Returns true if field destination_pin is set (has been assigned a value) and false otherwise */
2101
    public boolean isSetDestination_pin() {
2434
    public boolean isSetDestination_pin() {
2102
      return this.destination_pin != null;
2435
      return this.destination_pin != null;
2103
    }
2436
    }
2104
 
2437
 
2105
    public void setDestination_pinIsSet(boolean value) {
2438
    public void setDestination_pinIsSet(boolean value) {
Line 2127... Line 2460...
2127
        break;
2460
        break;
2128
 
2461
 
2129
      }
2462
      }
2130
    }
2463
    }
2131
 
2464
 
2132
    public void setFieldValue(int fieldID, Object value) {
-
 
2133
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2134
    }
-
 
2135
 
-
 
2136
    public Object getFieldValue(_Fields field) {
2465
    public Object getFieldValue(_Fields field) {
2137
      switch (field) {
2466
      switch (field) {
2138
      case ITEM_ID:
2467
      case ITEM_ID:
2139
        return new Long(getItemId());
2468
        return Long.valueOf(getItemId());
2140
 
2469
 
2141
      case DESTINATION_PIN:
2470
      case DESTINATION_PIN:
2142
        return getDestination_pin();
2471
        return getDestination_pin();
2143
 
2472
 
2144
      }
2473
      }
2145
      throw new IllegalStateException();
2474
      throw new IllegalStateException();
2146
    }
2475
    }
2147
 
2476
 
2148
    public Object getFieldValue(int fieldId) {
-
 
2149
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2150
    }
-
 
2151
 
-
 
2152
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2477
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2153
    public boolean isSet(_Fields field) {
2478
    public boolean isSet(_Fields field) {
-
 
2479
      if (field == null) {
-
 
2480
        throw new IllegalArgumentException();
-
 
2481
      }
-
 
2482
 
2154
      switch (field) {
2483
      switch (field) {
2155
      case ITEM_ID:
2484
      case ITEM_ID:
2156
        return isSetItemId();
2485
        return isSetItemId();
2157
      case DESTINATION_PIN:
2486
      case DESTINATION_PIN:
2158
        return isSetDestination_pin();
2487
        return isSetDestination_pin();
2159
      }
2488
      }
2160
      throw new IllegalStateException();
2489
      throw new IllegalStateException();
2161
    }
2490
    }
2162
 
2491
 
2163
    public boolean isSet(int fieldID) {
-
 
2164
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2165
    }
-
 
2166
 
-
 
2167
    @Override
2492
    @Override
2168
    public boolean equals(Object that) {
2493
    public boolean equals(Object that) {
2169
      if (that == null)
2494
      if (that == null)
2170
        return false;
2495
        return false;
2171
      if (that instanceof getLogisticsEstimation_args)
2496
      if (that instanceof getLogisticsEstimation_args)
Line 2209... Line 2534...
2209
      }
2534
      }
2210
 
2535
 
2211
      int lastComparison = 0;
2536
      int lastComparison = 0;
2212
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
2537
      getLogisticsEstimation_args typedOther = (getLogisticsEstimation_args)other;
2213
 
2538
 
2214
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(isSetItemId());
2539
      lastComparison = Boolean.valueOf(isSetItemId()).compareTo(typedOther.isSetItemId());
2215
      if (lastComparison != 0) {
2540
      if (lastComparison != 0) {
2216
        return lastComparison;
2541
        return lastComparison;
2217
      }
2542
      }
-
 
2543
      if (isSetItemId()) {
2218
      lastComparison = TBaseHelper.compareTo(itemId, typedOther.itemId);
2544
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.itemId, typedOther.itemId);
2219
      if (lastComparison != 0) {
2545
        if (lastComparison != 0) {
2220
        return lastComparison;
2546
          return lastComparison;
-
 
2547
        }
2221
      }
2548
      }
2222
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(isSetDestination_pin());
2549
      lastComparison = Boolean.valueOf(isSetDestination_pin()).compareTo(typedOther.isSetDestination_pin());
2223
      if (lastComparison != 0) {
2550
      if (lastComparison != 0) {
2224
        return lastComparison;
2551
        return lastComparison;
2225
      }
2552
      }
-
 
2553
      if (isSetDestination_pin()) {
2226
      lastComparison = TBaseHelper.compareTo(destination_pin, typedOther.destination_pin);
2554
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pin, typedOther.destination_pin);
2227
      if (lastComparison != 0) {
2555
        if (lastComparison != 0) {
2228
        return lastComparison;
2556
          return lastComparison;
-
 
2557
        }
2229
      }
2558
      }
2230
      return 0;
2559
      return 0;
2231
    }
2560
    }
2232
 
2561
 
-
 
2562
    public _Fields fieldForId(int fieldId) {
-
 
2563
      return _Fields.findByThriftId(fieldId);
-
 
2564
    }
-
 
2565
 
2233
    public void read(TProtocol iprot) throws TException {
2566
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2234
      TField field;
2567
      org.apache.thrift.protocol.TField field;
2235
      iprot.readStructBegin();
2568
      iprot.readStructBegin();
2236
      while (true)
2569
      while (true)
2237
      {
2570
      {
2238
        field = iprot.readFieldBegin();
2571
        field = iprot.readFieldBegin();
2239
        if (field.type == TType.STOP) { 
2572
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2240
          break;
2573
          break;
2241
        }
2574
        }
2242
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2243
        if (fieldId == null) {
-
 
2244
          TProtocolUtil.skip(iprot, field.type);
-
 
2245
        } else {
-
 
2246
          switch (fieldId) {
2575
        switch (field.id) {
2247
            case ITEM_ID:
2576
          case 1: // ITEM_ID
2248
              if (field.type == TType.I64) {
2577
            if (field.type == org.apache.thrift.protocol.TType.I64) {
2249
                this.itemId = iprot.readI64();
2578
              this.itemId = iprot.readI64();
2250
                setItemIdIsSet(true);
2579
              setItemIdIsSet(true);
2251
              } else { 
2580
            } else { 
2252
                TProtocolUtil.skip(iprot, field.type);
2581
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2253
              }
2582
            }
2254
              break;
2583
            break;
2255
            case DESTINATION_PIN:
2584
          case 2: // DESTINATION_PIN
2256
              if (field.type == TType.STRING) {
2585
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2257
                this.destination_pin = iprot.readString();
2586
              this.destination_pin = iprot.readString();
2258
              } else { 
2587
            } else { 
2259
                TProtocolUtil.skip(iprot, field.type);
2588
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2260
              }
2589
            }
2261
              break;
2590
            break;
2262
          }
2591
          default:
2263
          iprot.readFieldEnd();
2592
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2264
        }
2593
        }
-
 
2594
        iprot.readFieldEnd();
2265
      }
2595
      }
2266
      iprot.readStructEnd();
2596
      iprot.readStructEnd();
2267
      validate();
2597
      validate();
2268
    }
2598
    }
2269
 
2599
 
2270
    public void write(TProtocol oprot) throws TException {
2600
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2271
      validate();
2601
      validate();
2272
 
2602
 
2273
      oprot.writeStructBegin(STRUCT_DESC);
2603
      oprot.writeStructBegin(STRUCT_DESC);
2274
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2604
      oprot.writeFieldBegin(ITEM_ID_FIELD_DESC);
2275
      oprot.writeI64(this.itemId);
2605
      oprot.writeI64(this.itemId);
Line 2301... Line 2631...
2301
      first = false;
2631
      first = false;
2302
      sb.append(")");
2632
      sb.append(")");
2303
      return sb.toString();
2633
      return sb.toString();
2304
    }
2634
    }
2305
 
2635
 
2306
    public void validate() throws TException {
2636
    public void validate() throws org.apache.thrift.TException {
2307
      // check for required fields
2637
      // check for required fields
2308
    }
2638
    }
2309
 
2639
 
-
 
2640
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2641
      try {
-
 
2642
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2643
      } catch (org.apache.thrift.TException te) {
-
 
2644
        throw new java.io.IOException(te);
-
 
2645
      }
-
 
2646
    }
-
 
2647
 
-
 
2648
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2649
      try {
-
 
2650
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2651
      } catch (org.apache.thrift.TException te) {
-
 
2652
        throw new java.io.IOException(te);
-
 
2653
      }
-
 
2654
    }
-
 
2655
 
2310
  }
2656
  }
2311
 
2657
 
2312
  public static class getLogisticsEstimation_result implements TBase<getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLogisticsEstimation_result>   {
2658
  public static class getLogisticsEstimation_result implements org.apache.thrift.TBase<getLogisticsEstimation_result, getLogisticsEstimation_result._Fields>, java.io.Serializable, Cloneable   {
2313
    private static final TStruct STRUCT_DESC = new TStruct("getLogisticsEstimation_result");
2659
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsEstimation_result");
2314
 
2660
 
2315
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
2661
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
2316
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
2662
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
2317
 
2663
 
2318
    private LogisticsInfo success;
2664
    private LogisticsInfo success; // required
2319
    private LogisticsServiceException se;
2665
    private LogisticsServiceException se; // required
2320
 
2666
 
2321
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2667
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2322
    public enum _Fields implements TFieldIdEnum {
2668
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2323
      SUCCESS((short)0, "success"),
2669
      SUCCESS((short)0, "success"),
2324
      SE((short)1, "se");
2670
      SE((short)1, "se");
2325
 
2671
 
2326
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2327
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2672
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2328
 
2673
 
2329
      static {
2674
      static {
2330
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2675
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2331
          byId.put((int)field._thriftId, field);
-
 
2332
          byName.put(field.getFieldName(), field);
2676
          byName.put(field.getFieldName(), field);
2333
        }
2677
        }
2334
      }
2678
      }
2335
 
2679
 
2336
      /**
2680
      /**
2337
       * Find the _Fields constant that matches fieldId, or null if its not found.
2681
       * Find the _Fields constant that matches fieldId, or null if its not found.
2338
       */
2682
       */
2339
      public static _Fields findByThriftId(int fieldId) {
2683
      public static _Fields findByThriftId(int fieldId) {
2340
        return byId.get(fieldId);
2684
        switch(fieldId) {
-
 
2685
          case 0: // SUCCESS
-
 
2686
            return SUCCESS;
-
 
2687
          case 1: // SE
-
 
2688
            return SE;
-
 
2689
          default:
-
 
2690
            return null;
-
 
2691
        }
2341
      }
2692
      }
2342
 
2693
 
2343
      /**
2694
      /**
2344
       * Find the _Fields constant that matches fieldId, throwing an exception
2695
       * Find the _Fields constant that matches fieldId, throwing an exception
2345
       * if it is not found.
2696
       * if it is not found.
Line 2374... Line 2725...
2374
      }
2725
      }
2375
    }
2726
    }
2376
 
2727
 
2377
    // isset id assignments
2728
    // isset id assignments
2378
 
2729
 
2379
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2730
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2380
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2381
          new StructMetaData(TType.STRUCT, LogisticsInfo.class)));
-
 
2382
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
2383
          new FieldValueMetaData(TType.STRUCT)));
-
 
2384
    }});
-
 
2385
 
-
 
2386
    static {
2731
    static {
-
 
2732
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2733
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2734
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
-
 
2735
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2736
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
2737
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2387
      FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
2738
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsEstimation_result.class, metaDataMap);
2388
    }
2739
    }
2389
 
2740
 
2390
    public getLogisticsEstimation_result() {
2741
    public getLogisticsEstimation_result() {
2391
    }
2742
    }
2392
 
2743
 
Line 2413... Line 2764...
2413
 
2764
 
2414
    public getLogisticsEstimation_result deepCopy() {
2765
    public getLogisticsEstimation_result deepCopy() {
2415
      return new getLogisticsEstimation_result(this);
2766
      return new getLogisticsEstimation_result(this);
2416
    }
2767
    }
2417
 
2768
 
2418
    @Deprecated
2769
    @Override
2419
    public getLogisticsEstimation_result clone() {
2770
    public void clear() {
2420
      return new getLogisticsEstimation_result(this);
2771
      this.success = null;
-
 
2772
      this.se = null;
2421
    }
2773
    }
2422
 
2774
 
2423
    public LogisticsInfo getSuccess() {
2775
    public LogisticsInfo getSuccess() {
2424
      return this.success;
2776
      return this.success;
2425
    }
2777
    }
2426
 
2778
 
2427
    public getLogisticsEstimation_result setSuccess(LogisticsInfo success) {
2779
    public void setSuccess(LogisticsInfo success) {
2428
      this.success = success;
2780
      this.success = success;
2429
      return this;
-
 
2430
    }
2781
    }
2431
 
2782
 
2432
    public void unsetSuccess() {
2783
    public void unsetSuccess() {
2433
      this.success = null;
2784
      this.success = null;
2434
    }
2785
    }
2435
 
2786
 
2436
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2787
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2437
    public boolean isSetSuccess() {
2788
    public boolean isSetSuccess() {
2438
      return this.success != null;
2789
      return this.success != null;
2439
    }
2790
    }
2440
 
2791
 
2441
    public void setSuccessIsSet(boolean value) {
2792
    public void setSuccessIsSet(boolean value) {
Line 2446... Line 2797...
2446
 
2797
 
2447
    public LogisticsServiceException getSe() {
2798
    public LogisticsServiceException getSe() {
2448
      return this.se;
2799
      return this.se;
2449
    }
2800
    }
2450
 
2801
 
2451
    public getLogisticsEstimation_result setSe(LogisticsServiceException se) {
2802
    public void setSe(LogisticsServiceException se) {
2452
      this.se = se;
2803
      this.se = se;
2453
      return this;
-
 
2454
    }
2804
    }
2455
 
2805
 
2456
    public void unsetSe() {
2806
    public void unsetSe() {
2457
      this.se = null;
2807
      this.se = null;
2458
    }
2808
    }
2459
 
2809
 
2460
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
2810
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
2461
    public boolean isSetSe() {
2811
    public boolean isSetSe() {
2462
      return this.se != null;
2812
      return this.se != null;
2463
    }
2813
    }
2464
 
2814
 
2465
    public void setSeIsSet(boolean value) {
2815
    public void setSeIsSet(boolean value) {
Line 2487... Line 2837...
2487
        break;
2837
        break;
2488
 
2838
 
2489
      }
2839
      }
2490
    }
2840
    }
2491
 
2841
 
2492
    public void setFieldValue(int fieldID, Object value) {
-
 
2493
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2494
    }
-
 
2495
 
-
 
2496
    public Object getFieldValue(_Fields field) {
2842
    public Object getFieldValue(_Fields field) {
2497
      switch (field) {
2843
      switch (field) {
2498
      case SUCCESS:
2844
      case SUCCESS:
2499
        return getSuccess();
2845
        return getSuccess();
2500
 
2846
 
Line 2503... Line 2849...
2503
 
2849
 
2504
      }
2850
      }
2505
      throw new IllegalStateException();
2851
      throw new IllegalStateException();
2506
    }
2852
    }
2507
 
2853
 
2508
    public Object getFieldValue(int fieldId) {
-
 
2509
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2510
    }
-
 
2511
 
-
 
2512
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2854
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2513
    public boolean isSet(_Fields field) {
2855
    public boolean isSet(_Fields field) {
-
 
2856
      if (field == null) {
-
 
2857
        throw new IllegalArgumentException();
-
 
2858
      }
-
 
2859
 
2514
      switch (field) {
2860
      switch (field) {
2515
      case SUCCESS:
2861
      case SUCCESS:
2516
        return isSetSuccess();
2862
        return isSetSuccess();
2517
      case SE:
2863
      case SE:
2518
        return isSetSe();
2864
        return isSetSe();
2519
      }
2865
      }
2520
      throw new IllegalStateException();
2866
      throw new IllegalStateException();
2521
    }
2867
    }
2522
 
2868
 
2523
    public boolean isSet(int fieldID) {
-
 
2524
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2525
    }
-
 
2526
 
-
 
2527
    @Override
2869
    @Override
2528
    public boolean equals(Object that) {
2870
    public boolean equals(Object that) {
2529
      if (that == null)
2871
      if (that == null)
2530
        return false;
2872
        return false;
2531
      if (that instanceof getLogisticsEstimation_result)
2873
      if (that instanceof getLogisticsEstimation_result)
Line 2569... Line 2911...
2569
      }
2911
      }
2570
 
2912
 
2571
      int lastComparison = 0;
2913
      int lastComparison = 0;
2572
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
2914
      getLogisticsEstimation_result typedOther = (getLogisticsEstimation_result)other;
2573
 
2915
 
2574
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2916
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2575
      if (lastComparison != 0) {
2917
      if (lastComparison != 0) {
2576
        return lastComparison;
2918
        return lastComparison;
2577
      }
2919
      }
-
 
2920
      if (isSetSuccess()) {
2578
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2921
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2579
      if (lastComparison != 0) {
2922
        if (lastComparison != 0) {
2580
        return lastComparison;
2923
          return lastComparison;
-
 
2924
        }
2581
      }
2925
      }
2582
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
2926
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
2583
      if (lastComparison != 0) {
2927
      if (lastComparison != 0) {
2584
        return lastComparison;
2928
        return lastComparison;
2585
      }
2929
      }
-
 
2930
      if (isSetSe()) {
2586
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
2931
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
2587
      if (lastComparison != 0) {
2932
        if (lastComparison != 0) {
2588
        return lastComparison;
2933
          return lastComparison;
-
 
2934
        }
2589
      }
2935
      }
2590
      return 0;
2936
      return 0;
2591
    }
2937
    }
2592
 
2938
 
-
 
2939
    public _Fields fieldForId(int fieldId) {
-
 
2940
      return _Fields.findByThriftId(fieldId);
-
 
2941
    }
-
 
2942
 
2593
    public void read(TProtocol iprot) throws TException {
2943
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2594
      TField field;
2944
      org.apache.thrift.protocol.TField field;
2595
      iprot.readStructBegin();
2945
      iprot.readStructBegin();
2596
      while (true)
2946
      while (true)
2597
      {
2947
      {
2598
        field = iprot.readFieldBegin();
2948
        field = iprot.readFieldBegin();
2599
        if (field.type == TType.STOP) { 
2949
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2600
          break;
2950
          break;
2601
        }
2951
        }
2602
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2603
        if (fieldId == null) {
-
 
2604
          TProtocolUtil.skip(iprot, field.type);
-
 
2605
        } else {
-
 
2606
          switch (fieldId) {
2952
        switch (field.id) {
2607
            case SUCCESS:
2953
          case 0: // SUCCESS
2608
              if (field.type == TType.STRUCT) {
2954
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2609
                this.success = new LogisticsInfo();
2955
              this.success = new LogisticsInfo();
2610
                this.success.read(iprot);
2956
              this.success.read(iprot);
2611
              } else { 
2957
            } else { 
2612
                TProtocolUtil.skip(iprot, field.type);
2958
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2613
              }
2959
            }
2614
              break;
2960
            break;
2615
            case SE:
2961
          case 1: // SE
2616
              if (field.type == TType.STRUCT) {
2962
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2617
                this.se = new LogisticsServiceException();
2963
              this.se = new LogisticsServiceException();
2618
                this.se.read(iprot);
2964
              this.se.read(iprot);
2619
              } else { 
2965
            } else { 
2620
                TProtocolUtil.skip(iprot, field.type);
2966
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2621
              }
2967
            }
2622
              break;
2968
            break;
2623
          }
2969
          default:
2624
          iprot.readFieldEnd();
2970
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2625
        }
2971
        }
-
 
2972
        iprot.readFieldEnd();
2626
      }
2973
      }
2627
      iprot.readStructEnd();
2974
      iprot.readStructEnd();
2628
      validate();
2975
      validate();
2629
    }
2976
    }
2630
 
2977
 
2631
    public void write(TProtocol oprot) throws TException {
2978
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2632
      oprot.writeStructBegin(STRUCT_DESC);
2979
      oprot.writeStructBegin(STRUCT_DESC);
2633
 
2980
 
2634
      if (this.isSetSuccess()) {
2981
      if (this.isSetSuccess()) {
2635
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2982
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2636
        this.success.write(oprot);
2983
        this.success.write(oprot);
Line 2666... Line 3013...
2666
      first = false;
3013
      first = false;
2667
      sb.append(")");
3014
      sb.append(")");
2668
      return sb.toString();
3015
      return sb.toString();
2669
    }
3016
    }
2670
 
3017
 
2671
    public void validate() throws TException {
3018
    public void validate() throws org.apache.thrift.TException {
2672
      // check for required fields
3019
      // check for required fields
2673
    }
3020
    }
2674
 
3021
 
-
 
3022
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3023
      try {
-
 
3024
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3025
      } catch (org.apache.thrift.TException te) {
-
 
3026
        throw new java.io.IOException(te);
-
 
3027
      }
-
 
3028
    }
-
 
3029
 
-
 
3030
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3031
      try {
-
 
3032
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3033
      } catch (org.apache.thrift.TException te) {
-
 
3034
        throw new java.io.IOException(te);
-
 
3035
      }
-
 
3036
    }
-
 
3037
 
2675
  }
3038
  }
2676
 
3039
 
2677
  public static class getLogisticsInfo_args implements TBase<getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getLogisticsInfo_args>   {
3040
  public static class getLogisticsInfo_args implements org.apache.thrift.TBase<getLogisticsInfo_args, getLogisticsInfo_args._Fields>, java.io.Serializable, Cloneable   {
2678
    private static final TStruct STRUCT_DESC = new TStruct("getLogisticsInfo_args");
3041
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_args");
2679
 
3042
 
2680
    private static final TField DESTINATION_PINCODE_FIELD_DESC = new TField("destination_pincode", TType.STRING, (short)1);
3043
    private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
2681
    private static final TField ITEM_ID_FIELD_DESC = new TField("item_id", TType.I64, (short)2);
3044
    private static final org.apache.thrift.protocol.TField ITEM_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("item_id", org.apache.thrift.protocol.TType.I64, (short)2);
2682
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)3);
3045
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)3);
2683
 
3046
 
2684
    private String destination_pincode;
3047
    private String destination_pincode; // required
2685
    private long item_id;
3048
    private long item_id; // required
2686
    private DeliveryType type;
3049
    private DeliveryType type; // required
2687
 
3050
 
2688
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3051
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2689
    public enum _Fields implements TFieldIdEnum {
3052
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2690
      DESTINATION_PINCODE((short)1, "destination_pincode"),
3053
      DESTINATION_PINCODE((short)1, "destination_pincode"),
2691
      ITEM_ID((short)2, "item_id"),
3054
      ITEM_ID((short)2, "item_id"),
2692
      /**
3055
      /**
2693
       * 
3056
       * 
2694
       * @see DeliveryType
3057
       * @see DeliveryType
2695
       */
3058
       */
2696
      TYPE((short)3, "type");
3059
      TYPE((short)3, "type");
2697
 
3060
 
2698
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2699
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3061
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2700
 
3062
 
2701
      static {
3063
      static {
2702
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3064
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2703
          byId.put((int)field._thriftId, field);
-
 
2704
          byName.put(field.getFieldName(), field);
3065
          byName.put(field.getFieldName(), field);
2705
        }
3066
        }
2706
      }
3067
      }
2707
 
3068
 
2708
      /**
3069
      /**
2709
       * Find the _Fields constant that matches fieldId, or null if its not found.
3070
       * Find the _Fields constant that matches fieldId, or null if its not found.
2710
       */
3071
       */
2711
      public static _Fields findByThriftId(int fieldId) {
3072
      public static _Fields findByThriftId(int fieldId) {
2712
        return byId.get(fieldId);
3073
        switch(fieldId) {
-
 
3074
          case 1: // DESTINATION_PINCODE
-
 
3075
            return DESTINATION_PINCODE;
-
 
3076
          case 2: // ITEM_ID
-
 
3077
            return ITEM_ID;
-
 
3078
          case 3: // TYPE
-
 
3079
            return TYPE;
-
 
3080
          default:
-
 
3081
            return null;
-
 
3082
        }
2713
      }
3083
      }
2714
 
3084
 
2715
      /**
3085
      /**
2716
       * Find the _Fields constant that matches fieldId, throwing an exception
3086
       * Find the _Fields constant that matches fieldId, throwing an exception
2717
       * if it is not found.
3087
       * if it is not found.
Line 2748... Line 3118...
2748
 
3118
 
2749
    // isset id assignments
3119
    // isset id assignments
2750
    private static final int __ITEM_ID_ISSET_ID = 0;
3120
    private static final int __ITEM_ID_ISSET_ID = 0;
2751
    private BitSet __isset_bit_vector = new BitSet(1);
3121
    private BitSet __isset_bit_vector = new BitSet(1);
2752
 
3122
 
2753
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3123
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2754
      put(_Fields.DESTINATION_PINCODE, new FieldMetaData("destination_pincode", TFieldRequirementType.DEFAULT, 
-
 
2755
          new FieldValueMetaData(TType.STRING)));
-
 
2756
      put(_Fields.ITEM_ID, new FieldMetaData("item_id", TFieldRequirementType.DEFAULT, 
-
 
2757
          new FieldValueMetaData(TType.I64)));
-
 
2758
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
2759
          new EnumMetaData(TType.ENUM, DeliveryType.class)));
-
 
2760
    }});
-
 
2761
 
-
 
2762
    static {
3124
    static {
-
 
3125
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3126
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3127
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
3128
      tmpMap.put(_Fields.ITEM_ID, new org.apache.thrift.meta_data.FieldMetaData("item_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3129
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3130
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3131
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
-
 
3132
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2763
      FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
3133
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_args.class, metaDataMap);
2764
    }
3134
    }
2765
 
3135
 
2766
    public getLogisticsInfo_args() {
3136
    public getLogisticsInfo_args() {
2767
    }
3137
    }
2768
 
3138
 
Line 2795... Line 3165...
2795
 
3165
 
2796
    public getLogisticsInfo_args deepCopy() {
3166
    public getLogisticsInfo_args deepCopy() {
2797
      return new getLogisticsInfo_args(this);
3167
      return new getLogisticsInfo_args(this);
2798
    }
3168
    }
2799
 
3169
 
2800
    @Deprecated
3170
    @Override
2801
    public getLogisticsInfo_args clone() {
3171
    public void clear() {
2802
      return new getLogisticsInfo_args(this);
3172
      this.destination_pincode = null;
-
 
3173
      setItem_idIsSet(false);
-
 
3174
      this.item_id = 0;
-
 
3175
      this.type = null;
2803
    }
3176
    }
2804
 
3177
 
2805
    public String getDestination_pincode() {
3178
    public String getDestination_pincode() {
2806
      return this.destination_pincode;
3179
      return this.destination_pincode;
2807
    }
3180
    }
2808
 
3181
 
2809
    public getLogisticsInfo_args setDestination_pincode(String destination_pincode) {
3182
    public void setDestination_pincode(String destination_pincode) {
2810
      this.destination_pincode = destination_pincode;
3183
      this.destination_pincode = destination_pincode;
2811
      return this;
-
 
2812
    }
3184
    }
2813
 
3185
 
2814
    public void unsetDestination_pincode() {
3186
    public void unsetDestination_pincode() {
2815
      this.destination_pincode = null;
3187
      this.destination_pincode = null;
2816
    }
3188
    }
2817
 
3189
 
2818
    /** Returns true if field destination_pincode is set (has been asigned a value) and false otherwise */
3190
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
2819
    public boolean isSetDestination_pincode() {
3191
    public boolean isSetDestination_pincode() {
2820
      return this.destination_pincode != null;
3192
      return this.destination_pincode != null;
2821
    }
3193
    }
2822
 
3194
 
2823
    public void setDestination_pincodeIsSet(boolean value) {
3195
    public void setDestination_pincodeIsSet(boolean value) {
Line 2828... Line 3200...
2828
 
3200
 
2829
    public long getItem_id() {
3201
    public long getItem_id() {
2830
      return this.item_id;
3202
      return this.item_id;
2831
    }
3203
    }
2832
 
3204
 
2833
    public getLogisticsInfo_args setItem_id(long item_id) {
3205
    public void setItem_id(long item_id) {
2834
      this.item_id = item_id;
3206
      this.item_id = item_id;
2835
      setItem_idIsSet(true);
3207
      setItem_idIsSet(true);
2836
      return this;
-
 
2837
    }
3208
    }
2838
 
3209
 
2839
    public void unsetItem_id() {
3210
    public void unsetItem_id() {
2840
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
3211
      __isset_bit_vector.clear(__ITEM_ID_ISSET_ID);
2841
    }
3212
    }
2842
 
3213
 
2843
    /** Returns true if field item_id is set (has been asigned a value) and false otherwise */
3214
    /** Returns true if field item_id is set (has been assigned a value) and false otherwise */
2844
    public boolean isSetItem_id() {
3215
    public boolean isSetItem_id() {
2845
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
3216
      return __isset_bit_vector.get(__ITEM_ID_ISSET_ID);
2846
    }
3217
    }
2847
 
3218
 
2848
    public void setItem_idIsSet(boolean value) {
3219
    public void setItem_idIsSet(boolean value) {
Line 2859... Line 3230...
2859
 
3230
 
2860
    /**
3231
    /**
2861
     * 
3232
     * 
2862
     * @see DeliveryType
3233
     * @see DeliveryType
2863
     */
3234
     */
2864
    public getLogisticsInfo_args setType(DeliveryType type) {
3235
    public void setType(DeliveryType type) {
2865
      this.type = type;
3236
      this.type = type;
2866
      return this;
-
 
2867
    }
3237
    }
2868
 
3238
 
2869
    public void unsetType() {
3239
    public void unsetType() {
2870
      this.type = null;
3240
      this.type = null;
2871
    }
3241
    }
2872
 
3242
 
2873
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
3243
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
2874
    public boolean isSetType() {
3244
    public boolean isSetType() {
2875
      return this.type != null;
3245
      return this.type != null;
2876
    }
3246
    }
2877
 
3247
 
2878
    public void setTypeIsSet(boolean value) {
3248
    public void setTypeIsSet(boolean value) {
Line 2908... Line 3278...
2908
        break;
3278
        break;
2909
 
3279
 
2910
      }
3280
      }
2911
    }
3281
    }
2912
 
3282
 
2913
    public void setFieldValue(int fieldID, Object value) {
-
 
2914
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2915
    }
-
 
2916
 
-
 
2917
    public Object getFieldValue(_Fields field) {
3283
    public Object getFieldValue(_Fields field) {
2918
      switch (field) {
3284
      switch (field) {
2919
      case DESTINATION_PINCODE:
3285
      case DESTINATION_PINCODE:
2920
        return getDestination_pincode();
3286
        return getDestination_pincode();
2921
 
3287
 
2922
      case ITEM_ID:
3288
      case ITEM_ID:
2923
        return new Long(getItem_id());
3289
        return Long.valueOf(getItem_id());
2924
 
3290
 
2925
      case TYPE:
3291
      case TYPE:
2926
        return getType();
3292
        return getType();
2927
 
3293
 
2928
      }
3294
      }
2929
      throw new IllegalStateException();
3295
      throw new IllegalStateException();
2930
    }
3296
    }
2931
 
3297
 
2932
    public Object getFieldValue(int fieldId) {
-
 
2933
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2934
    }
-
 
2935
 
-
 
2936
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3298
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2937
    public boolean isSet(_Fields field) {
3299
    public boolean isSet(_Fields field) {
-
 
3300
      if (field == null) {
-
 
3301
        throw new IllegalArgumentException();
-
 
3302
      }
-
 
3303
 
2938
      switch (field) {
3304
      switch (field) {
2939
      case DESTINATION_PINCODE:
3305
      case DESTINATION_PINCODE:
2940
        return isSetDestination_pincode();
3306
        return isSetDestination_pincode();
2941
      case ITEM_ID:
3307
      case ITEM_ID:
2942
        return isSetItem_id();
3308
        return isSetItem_id();
Line 2944... Line 3310...
2944
        return isSetType();
3310
        return isSetType();
2945
      }
3311
      }
2946
      throw new IllegalStateException();
3312
      throw new IllegalStateException();
2947
    }
3313
    }
2948
 
3314
 
2949
    public boolean isSet(int fieldID) {
-
 
2950
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2951
    }
-
 
2952
 
-
 
2953
    @Override
3315
    @Override
2954
    public boolean equals(Object that) {
3316
    public boolean equals(Object that) {
2955
      if (that == null)
3317
      if (that == null)
2956
        return false;
3318
        return false;
2957
      if (that instanceof getLogisticsInfo_args)
3319
      if (that instanceof getLogisticsInfo_args)
Line 3004... Line 3366...
3004
      }
3366
      }
3005
 
3367
 
3006
      int lastComparison = 0;
3368
      int lastComparison = 0;
3007
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
3369
      getLogisticsInfo_args typedOther = (getLogisticsInfo_args)other;
3008
 
3370
 
3009
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(isSetDestination_pincode());
3371
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
3010
      if (lastComparison != 0) {
3372
      if (lastComparison != 0) {
3011
        return lastComparison;
3373
        return lastComparison;
3012
      }
3374
      }
-
 
3375
      if (isSetDestination_pincode()) {
3013
      lastComparison = TBaseHelper.compareTo(destination_pincode, typedOther.destination_pincode);
3376
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
3014
      if (lastComparison != 0) {
3377
        if (lastComparison != 0) {
3015
        return lastComparison;
3378
          return lastComparison;
-
 
3379
        }
3016
      }
3380
      }
3017
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(isSetItem_id());
3381
      lastComparison = Boolean.valueOf(isSetItem_id()).compareTo(typedOther.isSetItem_id());
3018
      if (lastComparison != 0) {
3382
      if (lastComparison != 0) {
3019
        return lastComparison;
3383
        return lastComparison;
3020
      }
3384
      }
-
 
3385
      if (isSetItem_id()) {
3021
      lastComparison = TBaseHelper.compareTo(item_id, typedOther.item_id);
3386
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.item_id, typedOther.item_id);
3022
      if (lastComparison != 0) {
3387
        if (lastComparison != 0) {
3023
        return lastComparison;
3388
          return lastComparison;
-
 
3389
        }
3024
      }
3390
      }
3025
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
3391
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
3026
      if (lastComparison != 0) {
3392
      if (lastComparison != 0) {
3027
        return lastComparison;
3393
        return lastComparison;
3028
      }
3394
      }
-
 
3395
      if (isSetType()) {
3029
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
3396
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
3030
      if (lastComparison != 0) {
3397
        if (lastComparison != 0) {
3031
        return lastComparison;
3398
          return lastComparison;
-
 
3399
        }
3032
      }
3400
      }
3033
      return 0;
3401
      return 0;
3034
    }
3402
    }
3035
 
3403
 
-
 
3404
    public _Fields fieldForId(int fieldId) {
-
 
3405
      return _Fields.findByThriftId(fieldId);
-
 
3406
    }
-
 
3407
 
3036
    public void read(TProtocol iprot) throws TException {
3408
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3037
      TField field;
3409
      org.apache.thrift.protocol.TField field;
3038
      iprot.readStructBegin();
3410
      iprot.readStructBegin();
3039
      while (true)
3411
      while (true)
3040
      {
3412
      {
3041
        field = iprot.readFieldBegin();
3413
        field = iprot.readFieldBegin();
3042
        if (field.type == TType.STOP) { 
3414
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3043
          break;
3415
          break;
3044
        }
3416
        }
3045
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3046
        if (fieldId == null) {
-
 
3047
          TProtocolUtil.skip(iprot, field.type);
-
 
3048
        } else {
-
 
3049
          switch (fieldId) {
3417
        switch (field.id) {
3050
            case DESTINATION_PINCODE:
3418
          case 1: // DESTINATION_PINCODE
3051
              if (field.type == TType.STRING) {
3419
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
3052
                this.destination_pincode = iprot.readString();
3420
              this.destination_pincode = iprot.readString();
3053
              } else { 
3421
            } else { 
3054
                TProtocolUtil.skip(iprot, field.type);
3422
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3055
              }
3423
            }
3056
              break;
3424
            break;
3057
            case ITEM_ID:
3425
          case 2: // ITEM_ID
3058
              if (field.type == TType.I64) {
3426
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3059
                this.item_id = iprot.readI64();
3427
              this.item_id = iprot.readI64();
3060
                setItem_idIsSet(true);
3428
              setItem_idIsSet(true);
3061
              } else { 
3429
            } else { 
3062
                TProtocolUtil.skip(iprot, field.type);
3430
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3063
              }
3431
            }
3064
              break;
3432
            break;
3065
            case TYPE:
3433
          case 3: // TYPE
3066
              if (field.type == TType.I32) {
3434
            if (field.type == org.apache.thrift.protocol.TType.I32) {
3067
                this.type = DeliveryType.findByValue(iprot.readI32());
3435
              this.type = DeliveryType.findByValue(iprot.readI32());
3068
              } else { 
3436
            } else { 
3069
                TProtocolUtil.skip(iprot, field.type);
3437
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3070
              }
3438
            }
3071
              break;
3439
            break;
3072
          }
3440
          default:
3073
          iprot.readFieldEnd();
3441
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3074
        }
3442
        }
-
 
3443
        iprot.readFieldEnd();
3075
      }
3444
      }
3076
      iprot.readStructEnd();
3445
      iprot.readStructEnd();
3077
      validate();
3446
      validate();
3078
    }
3447
    }
3079
 
3448
 
3080
    public void write(TProtocol oprot) throws TException {
3449
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3081
      validate();
3450
      validate();
3082
 
3451
 
3083
      oprot.writeStructBegin(STRUCT_DESC);
3452
      oprot.writeStructBegin(STRUCT_DESC);
3084
      if (this.destination_pincode != null) {
3453
      if (this.destination_pincode != null) {
3085
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
3454
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
Line 3117... Line 3486...
3117
      if (!first) sb.append(", ");
3486
      if (!first) sb.append(", ");
3118
      sb.append("type:");
3487
      sb.append("type:");
3119
      if (this.type == null) {
3488
      if (this.type == null) {
3120
        sb.append("null");
3489
        sb.append("null");
3121
      } else {
3490
      } else {
3122
        String type_name = type.name();
-
 
3123
        if (type_name != null) {
-
 
3124
          sb.append(type_name);
-
 
3125
          sb.append(" (");
-
 
3126
        }
-
 
3127
        sb.append(this.type);
3491
        sb.append(this.type);
3128
        if (type_name != null) {
-
 
3129
          sb.append(")");
-
 
3130
        }
-
 
3131
      }
3492
      }
3132
      first = false;
3493
      first = false;
3133
      sb.append(")");
3494
      sb.append(")");
3134
      return sb.toString();
3495
      return sb.toString();
3135
    }
3496
    }
3136
 
3497
 
3137
    public void validate() throws TException {
3498
    public void validate() throws org.apache.thrift.TException {
3138
      // check for required fields
3499
      // check for required fields
3139
    }
3500
    }
3140
 
3501
 
-
 
3502
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3503
      try {
-
 
3504
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3505
      } catch (org.apache.thrift.TException te) {
-
 
3506
        throw new java.io.IOException(te);
-
 
3507
      }
-
 
3508
    }
-
 
3509
 
-
 
3510
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3511
      try {
-
 
3512
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3513
      } catch (org.apache.thrift.TException te) {
-
 
3514
        throw new java.io.IOException(te);
-
 
3515
      }
-
 
3516
    }
-
 
3517
 
3141
  }
3518
  }
3142
 
3519
 
3143
  public static class getLogisticsInfo_result implements TBase<getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<getLogisticsInfo_result>   {
3520
  public static class getLogisticsInfo_result implements org.apache.thrift.TBase<getLogisticsInfo_result, getLogisticsInfo_result._Fields>, java.io.Serializable, Cloneable   {
3144
    private static final TStruct STRUCT_DESC = new TStruct("getLogisticsInfo_result");
3521
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getLogisticsInfo_result");
3145
 
3522
 
3146
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
3523
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
3147
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
3524
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3148
 
3525
 
3149
    private LogisticsInfo success;
3526
    private LogisticsInfo success; // required
3150
    private LogisticsServiceException se;
3527
    private LogisticsServiceException se; // required
3151
 
3528
 
3152
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3529
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3153
    public enum _Fields implements TFieldIdEnum {
3530
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3154
      SUCCESS((short)0, "success"),
3531
      SUCCESS((short)0, "success"),
3155
      SE((short)1, "se");
3532
      SE((short)1, "se");
3156
 
3533
 
3157
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3158
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3534
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3159
 
3535
 
3160
      static {
3536
      static {
3161
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3537
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3162
          byId.put((int)field._thriftId, field);
-
 
3163
          byName.put(field.getFieldName(), field);
3538
          byName.put(field.getFieldName(), field);
3164
        }
3539
        }
3165
      }
3540
      }
3166
 
3541
 
3167
      /**
3542
      /**
3168
       * Find the _Fields constant that matches fieldId, or null if its not found.
3543
       * Find the _Fields constant that matches fieldId, or null if its not found.
3169
       */
3544
       */
3170
      public static _Fields findByThriftId(int fieldId) {
3545
      public static _Fields findByThriftId(int fieldId) {
3171
        return byId.get(fieldId);
3546
        switch(fieldId) {
-
 
3547
          case 0: // SUCCESS
-
 
3548
            return SUCCESS;
-
 
3549
          case 1: // SE
-
 
3550
            return SE;
-
 
3551
          default:
-
 
3552
            return null;
-
 
3553
        }
3172
      }
3554
      }
3173
 
3555
 
3174
      /**
3556
      /**
3175
       * Find the _Fields constant that matches fieldId, throwing an exception
3557
       * Find the _Fields constant that matches fieldId, throwing an exception
3176
       * if it is not found.
3558
       * if it is not found.
Line 3205... Line 3587...
3205
      }
3587
      }
3206
    }
3588
    }
3207
 
3589
 
3208
    // isset id assignments
3590
    // isset id assignments
3209
 
3591
 
3210
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3211
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3212
          new StructMetaData(TType.STRUCT, LogisticsInfo.class)));
-
 
3213
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
3214
          new FieldValueMetaData(TType.STRUCT)));
-
 
3215
    }});
-
 
3216
 
-
 
3217
    static {
3593
    static {
-
 
3594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3595
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3596
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, LogisticsInfo.class)));
-
 
3597
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3598
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
3599
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3218
      FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
3600
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getLogisticsInfo_result.class, metaDataMap);
3219
    }
3601
    }
3220
 
3602
 
3221
    public getLogisticsInfo_result() {
3603
    public getLogisticsInfo_result() {
3222
    }
3604
    }
3223
 
3605
 
Line 3244... Line 3626...
3244
 
3626
 
3245
    public getLogisticsInfo_result deepCopy() {
3627
    public getLogisticsInfo_result deepCopy() {
3246
      return new getLogisticsInfo_result(this);
3628
      return new getLogisticsInfo_result(this);
3247
    }
3629
    }
3248
 
3630
 
3249
    @Deprecated
3631
    @Override
3250
    public getLogisticsInfo_result clone() {
3632
    public void clear() {
3251
      return new getLogisticsInfo_result(this);
3633
      this.success = null;
-
 
3634
      this.se = null;
3252
    }
3635
    }
3253
 
3636
 
3254
    public LogisticsInfo getSuccess() {
3637
    public LogisticsInfo getSuccess() {
3255
      return this.success;
3638
      return this.success;
3256
    }
3639
    }
3257
 
3640
 
3258
    public getLogisticsInfo_result setSuccess(LogisticsInfo success) {
3641
    public void setSuccess(LogisticsInfo success) {
3259
      this.success = success;
3642
      this.success = success;
3260
      return this;
-
 
3261
    }
3643
    }
3262
 
3644
 
3263
    public void unsetSuccess() {
3645
    public void unsetSuccess() {
3264
      this.success = null;
3646
      this.success = null;
3265
    }
3647
    }
3266
 
3648
 
3267
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
3649
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3268
    public boolean isSetSuccess() {
3650
    public boolean isSetSuccess() {
3269
      return this.success != null;
3651
      return this.success != null;
3270
    }
3652
    }
3271
 
3653
 
3272
    public void setSuccessIsSet(boolean value) {
3654
    public void setSuccessIsSet(boolean value) {
Line 3277... Line 3659...
3277
 
3659
 
3278
    public LogisticsServiceException getSe() {
3660
    public LogisticsServiceException getSe() {
3279
      return this.se;
3661
      return this.se;
3280
    }
3662
    }
3281
 
3663
 
3282
    public getLogisticsInfo_result setSe(LogisticsServiceException se) {
3664
    public void setSe(LogisticsServiceException se) {
3283
      this.se = se;
3665
      this.se = se;
3284
      return this;
-
 
3285
    }
3666
    }
3286
 
3667
 
3287
    public void unsetSe() {
3668
    public void unsetSe() {
3288
      this.se = null;
3669
      this.se = null;
3289
    }
3670
    }
3290
 
3671
 
3291
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
3672
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
3292
    public boolean isSetSe() {
3673
    public boolean isSetSe() {
3293
      return this.se != null;
3674
      return this.se != null;
3294
    }
3675
    }
3295
 
3676
 
3296
    public void setSeIsSet(boolean value) {
3677
    public void setSeIsSet(boolean value) {
Line 3318... Line 3699...
3318
        break;
3699
        break;
3319
 
3700
 
3320
      }
3701
      }
3321
    }
3702
    }
3322
 
3703
 
3323
    public void setFieldValue(int fieldID, Object value) {
-
 
3324
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3325
    }
-
 
3326
 
-
 
3327
    public Object getFieldValue(_Fields field) {
3704
    public Object getFieldValue(_Fields field) {
3328
      switch (field) {
3705
      switch (field) {
3329
      case SUCCESS:
3706
      case SUCCESS:
3330
        return getSuccess();
3707
        return getSuccess();
3331
 
3708
 
Line 3334... Line 3711...
3334
 
3711
 
3335
      }
3712
      }
3336
      throw new IllegalStateException();
3713
      throw new IllegalStateException();
3337
    }
3714
    }
3338
 
3715
 
3339
    public Object getFieldValue(int fieldId) {
-
 
3340
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3341
    }
-
 
3342
 
-
 
3343
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3716
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3344
    public boolean isSet(_Fields field) {
3717
    public boolean isSet(_Fields field) {
-
 
3718
      if (field == null) {
-
 
3719
        throw new IllegalArgumentException();
-
 
3720
      }
-
 
3721
 
3345
      switch (field) {
3722
      switch (field) {
3346
      case SUCCESS:
3723
      case SUCCESS:
3347
        return isSetSuccess();
3724
        return isSetSuccess();
3348
      case SE:
3725
      case SE:
3349
        return isSetSe();
3726
        return isSetSe();
3350
      }
3727
      }
3351
      throw new IllegalStateException();
3728
      throw new IllegalStateException();
3352
    }
3729
    }
3353
 
3730
 
3354
    public boolean isSet(int fieldID) {
-
 
3355
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3356
    }
-
 
3357
 
-
 
3358
    @Override
3731
    @Override
3359
    public boolean equals(Object that) {
3732
    public boolean equals(Object that) {
3360
      if (that == null)
3733
      if (that == null)
3361
        return false;
3734
        return false;
3362
      if (that instanceof getLogisticsInfo_result)
3735
      if (that instanceof getLogisticsInfo_result)
Line 3400... Line 3773...
3400
      }
3773
      }
3401
 
3774
 
3402
      int lastComparison = 0;
3775
      int lastComparison = 0;
3403
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
3776
      getLogisticsInfo_result typedOther = (getLogisticsInfo_result)other;
3404
 
3777
 
3405
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
3778
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
3406
      if (lastComparison != 0) {
3779
      if (lastComparison != 0) {
3407
        return lastComparison;
3780
        return lastComparison;
3408
      }
3781
      }
-
 
3782
      if (isSetSuccess()) {
3409
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
3783
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
3410
      if (lastComparison != 0) {
3784
        if (lastComparison != 0) {
3411
        return lastComparison;
3785
          return lastComparison;
-
 
3786
        }
3412
      }
3787
      }
3413
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
3788
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
3414
      if (lastComparison != 0) {
3789
      if (lastComparison != 0) {
3415
        return lastComparison;
3790
        return lastComparison;
3416
      }
3791
      }
-
 
3792
      if (isSetSe()) {
3417
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
3793
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
3418
      if (lastComparison != 0) {
3794
        if (lastComparison != 0) {
3419
        return lastComparison;
3795
          return lastComparison;
-
 
3796
        }
3420
      }
3797
      }
3421
      return 0;
3798
      return 0;
3422
    }
3799
    }
3423
 
3800
 
-
 
3801
    public _Fields fieldForId(int fieldId) {
-
 
3802
      return _Fields.findByThriftId(fieldId);
-
 
3803
    }
-
 
3804
 
3424
    public void read(TProtocol iprot) throws TException {
3805
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3425
      TField field;
3806
      org.apache.thrift.protocol.TField field;
3426
      iprot.readStructBegin();
3807
      iprot.readStructBegin();
3427
      while (true)
3808
      while (true)
3428
      {
3809
      {
3429
        field = iprot.readFieldBegin();
3810
        field = iprot.readFieldBegin();
3430
        if (field.type == TType.STOP) { 
3811
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3431
          break;
3812
          break;
3432
        }
3813
        }
3433
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3434
        if (fieldId == null) {
-
 
3435
          TProtocolUtil.skip(iprot, field.type);
-
 
3436
        } else {
-
 
3437
          switch (fieldId) {
3814
        switch (field.id) {
3438
            case SUCCESS:
3815
          case 0: // SUCCESS
3439
              if (field.type == TType.STRUCT) {
3816
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3440
                this.success = new LogisticsInfo();
3817
              this.success = new LogisticsInfo();
3441
                this.success.read(iprot);
3818
              this.success.read(iprot);
3442
              } else { 
3819
            } else { 
3443
                TProtocolUtil.skip(iprot, field.type);
3820
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3444
              }
3821
            }
3445
              break;
3822
            break;
3446
            case SE:
3823
          case 1: // SE
3447
              if (field.type == TType.STRUCT) {
3824
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
3448
                this.se = new LogisticsServiceException();
3825
              this.se = new LogisticsServiceException();
3449
                this.se.read(iprot);
3826
              this.se.read(iprot);
3450
              } else { 
3827
            } else { 
3451
                TProtocolUtil.skip(iprot, field.type);
3828
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3452
              }
3829
            }
3453
              break;
3830
            break;
3454
          }
3831
          default:
3455
          iprot.readFieldEnd();
3832
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3456
        }
3833
        }
-
 
3834
        iprot.readFieldEnd();
3457
      }
3835
      }
3458
      iprot.readStructEnd();
3836
      iprot.readStructEnd();
3459
      validate();
3837
      validate();
3460
    }
3838
    }
3461
 
3839
 
3462
    public void write(TProtocol oprot) throws TException {
3840
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3463
      oprot.writeStructBegin(STRUCT_DESC);
3841
      oprot.writeStructBegin(STRUCT_DESC);
3464
 
3842
 
3465
      if (this.isSetSuccess()) {
3843
      if (this.isSetSuccess()) {
3466
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3844
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
3467
        this.success.write(oprot);
3845
        this.success.write(oprot);
Line 3497... Line 3875...
3497
      first = false;
3875
      first = false;
3498
      sb.append(")");
3876
      sb.append(")");
3499
      return sb.toString();
3877
      return sb.toString();
3500
    }
3878
    }
3501
 
3879
 
3502
    public void validate() throws TException {
3880
    public void validate() throws org.apache.thrift.TException {
3503
      // check for required fields
3881
      // check for required fields
3504
    }
3882
    }
3505
 
3883
 
-
 
3884
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3885
      try {
-
 
3886
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3887
      } catch (org.apache.thrift.TException te) {
-
 
3888
        throw new java.io.IOException(te);
-
 
3889
      }
-
 
3890
    }
-
 
3891
 
-
 
3892
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3893
      try {
-
 
3894
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3895
      } catch (org.apache.thrift.TException te) {
-
 
3896
        throw new java.io.IOException(te);
-
 
3897
      }
-
 
3898
    }
-
 
3899
 
3506
  }
3900
  }
3507
 
3901
 
3508
  public static class getEmptyAWB_args implements TBase<getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable, Comparable<getEmptyAWB_args>   {
3902
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
3509
    private static final TStruct STRUCT_DESC = new TStruct("getEmptyAWB_args");
3903
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
3510
 
3904
 
3511
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
3905
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
3512
 
3906
 
3513
    private long providerId;
3907
    private long providerId; // required
3514
 
3908
 
3515
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3909
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3516
    public enum _Fields implements TFieldIdEnum {
3910
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3517
      PROVIDER_ID((short)1, "providerId");
3911
      PROVIDER_ID((short)1, "providerId");
3518
 
3912
 
3519
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3520
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3913
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3521
 
3914
 
3522
      static {
3915
      static {
3523
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3916
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3524
          byId.put((int)field._thriftId, field);
-
 
3525
          byName.put(field.getFieldName(), field);
3917
          byName.put(field.getFieldName(), field);
3526
        }
3918
        }
3527
      }
3919
      }
3528
 
3920
 
3529
      /**
3921
      /**
3530
       * Find the _Fields constant that matches fieldId, or null if its not found.
3922
       * Find the _Fields constant that matches fieldId, or null if its not found.
3531
       */
3923
       */
3532
      public static _Fields findByThriftId(int fieldId) {
3924
      public static _Fields findByThriftId(int fieldId) {
3533
        return byId.get(fieldId);
3925
        switch(fieldId) {
-
 
3926
          case 1: // PROVIDER_ID
-
 
3927
            return PROVIDER_ID;
-
 
3928
          default:
-
 
3929
            return null;
-
 
3930
        }
3534
      }
3931
      }
3535
 
3932
 
3536
      /**
3933
      /**
3537
       * Find the _Fields constant that matches fieldId, throwing an exception
3934
       * Find the _Fields constant that matches fieldId, throwing an exception
3538
       * if it is not found.
3935
       * if it is not found.
Line 3569... Line 3966...
3569
 
3966
 
3570
    // isset id assignments
3967
    // isset id assignments
3571
    private static final int __PROVIDERID_ISSET_ID = 0;
3968
    private static final int __PROVIDERID_ISSET_ID = 0;
3572
    private BitSet __isset_bit_vector = new BitSet(1);
3969
    private BitSet __isset_bit_vector = new BitSet(1);
3573
 
3970
 
3574
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3971
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3575
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
3576
          new FieldValueMetaData(TType.I64)));
-
 
3577
    }});
-
 
3578
 
-
 
3579
    static {
3972
    static {
-
 
3973
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3974
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
3975
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
3976
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3580
      FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
3977
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
3581
    }
3978
    }
3582
 
3979
 
3583
    public getEmptyAWB_args() {
3980
    public getEmptyAWB_args() {
3584
    }
3981
    }
3585
 
3982
 
Line 3602... Line 3999...
3602
 
3999
 
3603
    public getEmptyAWB_args deepCopy() {
4000
    public getEmptyAWB_args deepCopy() {
3604
      return new getEmptyAWB_args(this);
4001
      return new getEmptyAWB_args(this);
3605
    }
4002
    }
3606
 
4003
 
3607
    @Deprecated
4004
    @Override
3608
    public getEmptyAWB_args clone() {
4005
    public void clear() {
3609
      return new getEmptyAWB_args(this);
4006
      setProviderIdIsSet(false);
-
 
4007
      this.providerId = 0;
3610
    }
4008
    }
3611
 
4009
 
3612
    public long getProviderId() {
4010
    public long getProviderId() {
3613
      return this.providerId;
4011
      return this.providerId;
3614
    }
4012
    }
3615
 
4013
 
3616
    public getEmptyAWB_args setProviderId(long providerId) {
4014
    public void setProviderId(long providerId) {
3617
      this.providerId = providerId;
4015
      this.providerId = providerId;
3618
      setProviderIdIsSet(true);
4016
      setProviderIdIsSet(true);
3619
      return this;
-
 
3620
    }
4017
    }
3621
 
4018
 
3622
    public void unsetProviderId() {
4019
    public void unsetProviderId() {
3623
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
4020
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
3624
    }
4021
    }
3625
 
4022
 
3626
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
4023
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
3627
    public boolean isSetProviderId() {
4024
    public boolean isSetProviderId() {
3628
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
4025
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
3629
    }
4026
    }
3630
 
4027
 
3631
    public void setProviderIdIsSet(boolean value) {
4028
    public void setProviderIdIsSet(boolean value) {
Line 3643... Line 4040...
3643
        break;
4040
        break;
3644
 
4041
 
3645
      }
4042
      }
3646
    }
4043
    }
3647
 
4044
 
3648
    public void setFieldValue(int fieldID, Object value) {
-
 
3649
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3650
    }
-
 
3651
 
-
 
3652
    public Object getFieldValue(_Fields field) {
4045
    public Object getFieldValue(_Fields field) {
3653
      switch (field) {
4046
      switch (field) {
3654
      case PROVIDER_ID:
4047
      case PROVIDER_ID:
3655
        return new Long(getProviderId());
4048
        return Long.valueOf(getProviderId());
3656
 
4049
 
3657
      }
4050
      }
3658
      throw new IllegalStateException();
4051
      throw new IllegalStateException();
3659
    }
4052
    }
3660
 
4053
 
3661
    public Object getFieldValue(int fieldId) {
-
 
3662
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3663
    }
-
 
3664
 
-
 
3665
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4054
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3666
    public boolean isSet(_Fields field) {
4055
    public boolean isSet(_Fields field) {
-
 
4056
      if (field == null) {
-
 
4057
        throw new IllegalArgumentException();
-
 
4058
      }
-
 
4059
 
3667
      switch (field) {
4060
      switch (field) {
3668
      case PROVIDER_ID:
4061
      case PROVIDER_ID:
3669
        return isSetProviderId();
4062
        return isSetProviderId();
3670
      }
4063
      }
3671
      throw new IllegalStateException();
4064
      throw new IllegalStateException();
3672
    }
4065
    }
3673
 
4066
 
3674
    public boolean isSet(int fieldID) {
-
 
3675
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3676
    }
-
 
3677
 
-
 
3678
    @Override
4067
    @Override
3679
    public boolean equals(Object that) {
4068
    public boolean equals(Object that) {
3680
      if (that == null)
4069
      if (that == null)
3681
        return false;
4070
        return false;
3682
      if (that instanceof getEmptyAWB_args)
4071
      if (that instanceof getEmptyAWB_args)
Line 3711... Line 4100...
3711
      }
4100
      }
3712
 
4101
 
3713
      int lastComparison = 0;
4102
      int lastComparison = 0;
3714
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
4103
      getEmptyAWB_args typedOther = (getEmptyAWB_args)other;
3715
 
4104
 
3716
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
4105
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
3717
      if (lastComparison != 0) {
4106
      if (lastComparison != 0) {
3718
        return lastComparison;
4107
        return lastComparison;
3719
      }
4108
      }
-
 
4109
      if (isSetProviderId()) {
3720
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
4110
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
3721
      if (lastComparison != 0) {
4111
        if (lastComparison != 0) {
3722
        return lastComparison;
4112
          return lastComparison;
-
 
4113
        }
3723
      }
4114
      }
3724
      return 0;
4115
      return 0;
3725
    }
4116
    }
3726
 
4117
 
-
 
4118
    public _Fields fieldForId(int fieldId) {
-
 
4119
      return _Fields.findByThriftId(fieldId);
-
 
4120
    }
-
 
4121
 
3727
    public void read(TProtocol iprot) throws TException {
4122
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3728
      TField field;
4123
      org.apache.thrift.protocol.TField field;
3729
      iprot.readStructBegin();
4124
      iprot.readStructBegin();
3730
      while (true)
4125
      while (true)
3731
      {
4126
      {
3732
        field = iprot.readFieldBegin();
4127
        field = iprot.readFieldBegin();
3733
        if (field.type == TType.STOP) { 
4128
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3734
          break;
4129
          break;
3735
        }
4130
        }
3736
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3737
        if (fieldId == null) {
-
 
3738
          TProtocolUtil.skip(iprot, field.type);
-
 
3739
        } else {
-
 
3740
          switch (fieldId) {
4131
        switch (field.id) {
3741
            case PROVIDER_ID:
4132
          case 1: // PROVIDER_ID
3742
              if (field.type == TType.I64) {
4133
            if (field.type == org.apache.thrift.protocol.TType.I64) {
3743
                this.providerId = iprot.readI64();
4134
              this.providerId = iprot.readI64();
3744
                setProviderIdIsSet(true);
4135
              setProviderIdIsSet(true);
3745
              } else { 
4136
            } else { 
3746
                TProtocolUtil.skip(iprot, field.type);
4137
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3747
              }
4138
            }
3748
              break;
4139
            break;
3749
          }
4140
          default:
3750
          iprot.readFieldEnd();
4141
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3751
        }
4142
        }
-
 
4143
        iprot.readFieldEnd();
3752
      }
4144
      }
3753
      iprot.readStructEnd();
4145
      iprot.readStructEnd();
3754
      validate();
4146
      validate();
3755
    }
4147
    }
3756
 
4148
 
3757
    public void write(TProtocol oprot) throws TException {
4149
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3758
      validate();
4150
      validate();
3759
 
4151
 
3760
      oprot.writeStructBegin(STRUCT_DESC);
4152
      oprot.writeStructBegin(STRUCT_DESC);
3761
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
4153
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
3762
      oprot.writeI64(this.providerId);
4154
      oprot.writeI64(this.providerId);
Line 3775... Line 4167...
3775
      first = false;
4167
      first = false;
3776
      sb.append(")");
4168
      sb.append(")");
3777
      return sb.toString();
4169
      return sb.toString();
3778
    }
4170
    }
3779
 
4171
 
3780
    public void validate() throws TException {
4172
    public void validate() throws org.apache.thrift.TException {
3781
      // check for required fields
4173
      // check for required fields
3782
    }
4174
    }
3783
 
4175
 
-
 
4176
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4177
      try {
-
 
4178
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4179
      } catch (org.apache.thrift.TException te) {
-
 
4180
        throw new java.io.IOException(te);
-
 
4181
      }
-
 
4182
    }
-
 
4183
 
-
 
4184
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4185
      try {
-
 
4186
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
4187
        __isset_bit_vector = new BitSet(1);
-
 
4188
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4189
      } catch (org.apache.thrift.TException te) {
-
 
4190
        throw new java.io.IOException(te);
-
 
4191
      }
-
 
4192
    }
-
 
4193
 
3784
  }
4194
  }
3785
 
4195
 
3786
  public static class getEmptyAWB_result implements TBase<getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable, Comparable<getEmptyAWB_result>   {
4196
  public static class getEmptyAWB_result implements org.apache.thrift.TBase<getEmptyAWB_result, getEmptyAWB_result._Fields>, java.io.Serializable, Cloneable   {
3787
    private static final TStruct STRUCT_DESC = new TStruct("getEmptyAWB_result");
4197
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_result");
3788
 
4198
 
3789
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
4199
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
3790
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
4200
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
3791
 
4201
 
3792
    private String success;
4202
    private String success; // required
3793
    private LogisticsServiceException se;
4203
    private LogisticsServiceException se; // required
3794
 
4204
 
3795
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4205
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3796
    public enum _Fields implements TFieldIdEnum {
4206
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3797
      SUCCESS((short)0, "success"),
4207
      SUCCESS((short)0, "success"),
3798
      SE((short)1, "se");
4208
      SE((short)1, "se");
3799
 
4209
 
3800
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3801
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4210
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3802
 
4211
 
3803
      static {
4212
      static {
3804
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4213
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3805
          byId.put((int)field._thriftId, field);
-
 
3806
          byName.put(field.getFieldName(), field);
4214
          byName.put(field.getFieldName(), field);
3807
        }
4215
        }
3808
      }
4216
      }
3809
 
4217
 
3810
      /**
4218
      /**
3811
       * Find the _Fields constant that matches fieldId, or null if its not found.
4219
       * Find the _Fields constant that matches fieldId, or null if its not found.
3812
       */
4220
       */
3813
      public static _Fields findByThriftId(int fieldId) {
4221
      public static _Fields findByThriftId(int fieldId) {
3814
        return byId.get(fieldId);
4222
        switch(fieldId) {
-
 
4223
          case 0: // SUCCESS
-
 
4224
            return SUCCESS;
-
 
4225
          case 1: // SE
-
 
4226
            return SE;
-
 
4227
          default:
-
 
4228
            return null;
-
 
4229
        }
3815
      }
4230
      }
3816
 
4231
 
3817
      /**
4232
      /**
3818
       * Find the _Fields constant that matches fieldId, throwing an exception
4233
       * Find the _Fields constant that matches fieldId, throwing an exception
3819
       * if it is not found.
4234
       * if it is not found.
Line 3848... Line 4263...
3848
      }
4263
      }
3849
    }
4264
    }
3850
 
4265
 
3851
    // isset id assignments
4266
    // isset id assignments
3852
 
4267
 
3853
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4268
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3854
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
3855
          new FieldValueMetaData(TType.STRING)));
-
 
3856
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
3857
          new FieldValueMetaData(TType.STRUCT)));
-
 
3858
    }});
-
 
3859
 
-
 
3860
    static {
4269
    static {
-
 
4270
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4271
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4272
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
4273
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4274
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
4275
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3861
      FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
4276
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_result.class, metaDataMap);
3862
    }
4277
    }
3863
 
4278
 
3864
    public getEmptyAWB_result() {
4279
    public getEmptyAWB_result() {
3865
    }
4280
    }
3866
 
4281
 
Line 3887... Line 4302...
3887
 
4302
 
3888
    public getEmptyAWB_result deepCopy() {
4303
    public getEmptyAWB_result deepCopy() {
3889
      return new getEmptyAWB_result(this);
4304
      return new getEmptyAWB_result(this);
3890
    }
4305
    }
3891
 
4306
 
3892
    @Deprecated
4307
    @Override
3893
    public getEmptyAWB_result clone() {
4308
    public void clear() {
3894
      return new getEmptyAWB_result(this);
4309
      this.success = null;
-
 
4310
      this.se = null;
3895
    }
4311
    }
3896
 
4312
 
3897
    public String getSuccess() {
4313
    public String getSuccess() {
3898
      return this.success;
4314
      return this.success;
3899
    }
4315
    }
3900
 
4316
 
3901
    public getEmptyAWB_result setSuccess(String success) {
4317
    public void setSuccess(String success) {
3902
      this.success = success;
4318
      this.success = success;
3903
      return this;
-
 
3904
    }
4319
    }
3905
 
4320
 
3906
    public void unsetSuccess() {
4321
    public void unsetSuccess() {
3907
      this.success = null;
4322
      this.success = null;
3908
    }
4323
    }
3909
 
4324
 
3910
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
4325
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
3911
    public boolean isSetSuccess() {
4326
    public boolean isSetSuccess() {
3912
      return this.success != null;
4327
      return this.success != null;
3913
    }
4328
    }
3914
 
4329
 
3915
    public void setSuccessIsSet(boolean value) {
4330
    public void setSuccessIsSet(boolean value) {
Line 3920... Line 4335...
3920
 
4335
 
3921
    public LogisticsServiceException getSe() {
4336
    public LogisticsServiceException getSe() {
3922
      return this.se;
4337
      return this.se;
3923
    }
4338
    }
3924
 
4339
 
3925
    public getEmptyAWB_result setSe(LogisticsServiceException se) {
4340
    public void setSe(LogisticsServiceException se) {
3926
      this.se = se;
4341
      this.se = se;
3927
      return this;
-
 
3928
    }
4342
    }
3929
 
4343
 
3930
    public void unsetSe() {
4344
    public void unsetSe() {
3931
      this.se = null;
4345
      this.se = null;
3932
    }
4346
    }
3933
 
4347
 
3934
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
4348
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
3935
    public boolean isSetSe() {
4349
    public boolean isSetSe() {
3936
      return this.se != null;
4350
      return this.se != null;
3937
    }
4351
    }
3938
 
4352
 
3939
    public void setSeIsSet(boolean value) {
4353
    public void setSeIsSet(boolean value) {
Line 3961... Line 4375...
3961
        break;
4375
        break;
3962
 
4376
 
3963
      }
4377
      }
3964
    }
4378
    }
3965
 
4379
 
3966
    public void setFieldValue(int fieldID, Object value) {
-
 
3967
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3968
    }
-
 
3969
 
-
 
3970
    public Object getFieldValue(_Fields field) {
4380
    public Object getFieldValue(_Fields field) {
3971
      switch (field) {
4381
      switch (field) {
3972
      case SUCCESS:
4382
      case SUCCESS:
3973
        return getSuccess();
4383
        return getSuccess();
3974
 
4384
 
Line 3977... Line 4387...
3977
 
4387
 
3978
      }
4388
      }
3979
      throw new IllegalStateException();
4389
      throw new IllegalStateException();
3980
    }
4390
    }
3981
 
4391
 
3982
    public Object getFieldValue(int fieldId) {
-
 
3983
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3984
    }
-
 
3985
 
-
 
3986
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4392
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3987
    public boolean isSet(_Fields field) {
4393
    public boolean isSet(_Fields field) {
-
 
4394
      if (field == null) {
-
 
4395
        throw new IllegalArgumentException();
-
 
4396
      }
-
 
4397
 
3988
      switch (field) {
4398
      switch (field) {
3989
      case SUCCESS:
4399
      case SUCCESS:
3990
        return isSetSuccess();
4400
        return isSetSuccess();
3991
      case SE:
4401
      case SE:
3992
        return isSetSe();
4402
        return isSetSe();
3993
      }
4403
      }
3994
      throw new IllegalStateException();
4404
      throw new IllegalStateException();
3995
    }
4405
    }
3996
 
4406
 
3997
    public boolean isSet(int fieldID) {
-
 
3998
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3999
    }
-
 
4000
 
-
 
4001
    @Override
4407
    @Override
4002
    public boolean equals(Object that) {
4408
    public boolean equals(Object that) {
4003
      if (that == null)
4409
      if (that == null)
4004
        return false;
4410
        return false;
4005
      if (that instanceof getEmptyAWB_result)
4411
      if (that instanceof getEmptyAWB_result)
Line 4043... Line 4449...
4043
      }
4449
      }
4044
 
4450
 
4045
      int lastComparison = 0;
4451
      int lastComparison = 0;
4046
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
4452
      getEmptyAWB_result typedOther = (getEmptyAWB_result)other;
4047
 
4453
 
4048
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
4454
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4049
      if (lastComparison != 0) {
4455
      if (lastComparison != 0) {
4050
        return lastComparison;
4456
        return lastComparison;
4051
      }
4457
      }
-
 
4458
      if (isSetSuccess()) {
4052
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
4459
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4053
      if (lastComparison != 0) {
4460
        if (lastComparison != 0) {
4054
        return lastComparison;
4461
          return lastComparison;
-
 
4462
        }
4055
      }
4463
      }
4056
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
4464
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4057
      if (lastComparison != 0) {
4465
      if (lastComparison != 0) {
4058
        return lastComparison;
4466
        return lastComparison;
4059
      }
4467
      }
-
 
4468
      if (isSetSe()) {
4060
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
4469
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4061
      if (lastComparison != 0) {
4470
        if (lastComparison != 0) {
4062
        return lastComparison;
4471
          return lastComparison;
-
 
4472
        }
4063
      }
4473
      }
4064
      return 0;
4474
      return 0;
4065
    }
4475
    }
4066
 
4476
 
-
 
4477
    public _Fields fieldForId(int fieldId) {
-
 
4478
      return _Fields.findByThriftId(fieldId);
-
 
4479
    }
-
 
4480
 
4067
    public void read(TProtocol iprot) throws TException {
4481
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4068
      TField field;
4482
      org.apache.thrift.protocol.TField field;
4069
      iprot.readStructBegin();
4483
      iprot.readStructBegin();
4070
      while (true)
4484
      while (true)
4071
      {
4485
      {
4072
        field = iprot.readFieldBegin();
4486
        field = iprot.readFieldBegin();
4073
        if (field.type == TType.STOP) { 
4487
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4074
          break;
4488
          break;
4075
        }
4489
        }
4076
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4077
        if (fieldId == null) {
-
 
4078
          TProtocolUtil.skip(iprot, field.type);
-
 
4079
        } else {
-
 
4080
          switch (fieldId) {
4490
        switch (field.id) {
4081
            case SUCCESS:
4491
          case 0: // SUCCESS
4082
              if (field.type == TType.STRING) {
4492
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4083
                this.success = iprot.readString();
4493
              this.success = iprot.readString();
4084
              } else { 
4494
            } else { 
4085
                TProtocolUtil.skip(iprot, field.type);
4495
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4086
              }
4496
            }
4087
              break;
4497
            break;
4088
            case SE:
4498
          case 1: // SE
4089
              if (field.type == TType.STRUCT) {
4499
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
4090
                this.se = new LogisticsServiceException();
4500
              this.se = new LogisticsServiceException();
4091
                this.se.read(iprot);
4501
              this.se.read(iprot);
4092
              } else { 
4502
            } else { 
4093
                TProtocolUtil.skip(iprot, field.type);
4503
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4094
              }
4504
            }
4095
              break;
4505
            break;
4096
          }
4506
          default:
4097
          iprot.readFieldEnd();
4507
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4098
        }
4508
        }
-
 
4509
        iprot.readFieldEnd();
4099
      }
4510
      }
4100
      iprot.readStructEnd();
4511
      iprot.readStructEnd();
4101
      validate();
4512
      validate();
4102
    }
4513
    }
4103
 
4514
 
4104
    public void write(TProtocol oprot) throws TException {
4515
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4105
      oprot.writeStructBegin(STRUCT_DESC);
4516
      oprot.writeStructBegin(STRUCT_DESC);
4106
 
4517
 
4107
      if (this.isSetSuccess()) {
4518
      if (this.isSetSuccess()) {
4108
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4519
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4109
        oprot.writeString(this.success);
4520
        oprot.writeString(this.success);
Line 4139... Line 4550...
4139
      first = false;
4550
      first = false;
4140
      sb.append(")");
4551
      sb.append(")");
4141
      return sb.toString();
4552
      return sb.toString();
4142
    }
4553
    }
4143
 
4554
 
4144
    public void validate() throws TException {
4555
    public void validate() throws org.apache.thrift.TException {
4145
      // check for required fields
4556
      // check for required fields
4146
    }
4557
    }
4147
 
4558
 
-
 
4559
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4560
      try {
-
 
4561
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4562
      } catch (org.apache.thrift.TException te) {
-
 
4563
        throw new java.io.IOException(te);
-
 
4564
      }
-
 
4565
    }
-
 
4566
 
-
 
4567
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4568
      try {
-
 
4569
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4570
      } catch (org.apache.thrift.TException te) {
-
 
4571
        throw new java.io.IOException(te);
-
 
4572
      }
-
 
4573
    }
-
 
4574
 
4148
  }
4575
  }
4149
 
4576
 
4150
  public static class getShipmentInfo_args implements TBase<getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable, Comparable<getShipmentInfo_args>   {
4577
  public static class getShipmentInfo_args implements org.apache.thrift.TBase<getShipmentInfo_args, getShipmentInfo_args._Fields>, java.io.Serializable, Cloneable   {
4151
    private static final TStruct STRUCT_DESC = new TStruct("getShipmentInfo_args");
4578
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_args");
4152
 
4579
 
4153
    private static final TField AWB_FIELD_DESC = new TField("awb", TType.STRING, (short)1);
4580
    private static final org.apache.thrift.protocol.TField AWB_FIELD_DESC = new org.apache.thrift.protocol.TField("awb", org.apache.thrift.protocol.TType.STRING, (short)1);
4154
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)2);
4581
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)2);
4155
 
4582
 
4156
    private String awb;
4583
    private String awb; // required
4157
    private long providerId;
4584
    private long providerId; // required
4158
 
4585
 
4159
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4586
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4160
    public enum _Fields implements TFieldIdEnum {
4587
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4161
      AWB((short)1, "awb"),
4588
      AWB((short)1, "awb"),
4162
      PROVIDER_ID((short)2, "providerId");
4589
      PROVIDER_ID((short)2, "providerId");
4163
 
4590
 
4164
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4165
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4591
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4166
 
4592
 
4167
      static {
4593
      static {
4168
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4594
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4169
          byId.put((int)field._thriftId, field);
-
 
4170
          byName.put(field.getFieldName(), field);
4595
          byName.put(field.getFieldName(), field);
4171
        }
4596
        }
4172
      }
4597
      }
4173
 
4598
 
4174
      /**
4599
      /**
4175
       * Find the _Fields constant that matches fieldId, or null if its not found.
4600
       * Find the _Fields constant that matches fieldId, or null if its not found.
4176
       */
4601
       */
4177
      public static _Fields findByThriftId(int fieldId) {
4602
      public static _Fields findByThriftId(int fieldId) {
4178
        return byId.get(fieldId);
4603
        switch(fieldId) {
-
 
4604
          case 1: // AWB
-
 
4605
            return AWB;
-
 
4606
          case 2: // PROVIDER_ID
-
 
4607
            return PROVIDER_ID;
-
 
4608
          default:
-
 
4609
            return null;
-
 
4610
        }
4179
      }
4611
      }
4180
 
4612
 
4181
      /**
4613
      /**
4182
       * Find the _Fields constant that matches fieldId, throwing an exception
4614
       * Find the _Fields constant that matches fieldId, throwing an exception
4183
       * if it is not found.
4615
       * if it is not found.
Line 4214... Line 4646...
4214
 
4646
 
4215
    // isset id assignments
4647
    // isset id assignments
4216
    private static final int __PROVIDERID_ISSET_ID = 0;
4648
    private static final int __PROVIDERID_ISSET_ID = 0;
4217
    private BitSet __isset_bit_vector = new BitSet(1);
4649
    private BitSet __isset_bit_vector = new BitSet(1);
4218
 
4650
 
4219
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
4651
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4220
      put(_Fields.AWB, new FieldMetaData("awb", TFieldRequirementType.DEFAULT, 
-
 
4221
          new FieldValueMetaData(TType.STRING)));
-
 
4222
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
4223
          new FieldValueMetaData(TType.I64)));
-
 
4224
    }});
-
 
4225
 
-
 
4226
    static {
4652
    static {
-
 
4653
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
4654
      tmpMap.put(_Fields.AWB, new org.apache.thrift.meta_data.FieldMetaData("awb", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4655
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
4656
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4657
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4658
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4227
      FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
4659
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_args.class, metaDataMap);
4228
    }
4660
    }
4229
 
4661
 
4230
    public getShipmentInfo_args() {
4662
    public getShipmentInfo_args() {
4231
    }
4663
    }
4232
 
4664
 
Line 4254... Line 4686...
4254
 
4686
 
4255
    public getShipmentInfo_args deepCopy() {
4687
    public getShipmentInfo_args deepCopy() {
4256
      return new getShipmentInfo_args(this);
4688
      return new getShipmentInfo_args(this);
4257
    }
4689
    }
4258
 
4690
 
4259
    @Deprecated
4691
    @Override
4260
    public getShipmentInfo_args clone() {
4692
    public void clear() {
-
 
4693
      this.awb = null;
4261
      return new getShipmentInfo_args(this);
4694
      setProviderIdIsSet(false);
-
 
4695
      this.providerId = 0;
4262
    }
4696
    }
4263
 
4697
 
4264
    public String getAwb() {
4698
    public String getAwb() {
4265
      return this.awb;
4699
      return this.awb;
4266
    }
4700
    }
4267
 
4701
 
4268
    public getShipmentInfo_args setAwb(String awb) {
4702
    public void setAwb(String awb) {
4269
      this.awb = awb;
4703
      this.awb = awb;
4270
      return this;
-
 
4271
    }
4704
    }
4272
 
4705
 
4273
    public void unsetAwb() {
4706
    public void unsetAwb() {
4274
      this.awb = null;
4707
      this.awb = null;
4275
    }
4708
    }
4276
 
4709
 
4277
    /** Returns true if field awb is set (has been asigned a value) and false otherwise */
4710
    /** Returns true if field awb is set (has been assigned a value) and false otherwise */
4278
    public boolean isSetAwb() {
4711
    public boolean isSetAwb() {
4279
      return this.awb != null;
4712
      return this.awb != null;
4280
    }
4713
    }
4281
 
4714
 
4282
    public void setAwbIsSet(boolean value) {
4715
    public void setAwbIsSet(boolean value) {
Line 4287... Line 4720...
4287
 
4720
 
4288
    public long getProviderId() {
4721
    public long getProviderId() {
4289
      return this.providerId;
4722
      return this.providerId;
4290
    }
4723
    }
4291
 
4724
 
4292
    public getShipmentInfo_args setProviderId(long providerId) {
4725
    public void setProviderId(long providerId) {
4293
      this.providerId = providerId;
4726
      this.providerId = providerId;
4294
      setProviderIdIsSet(true);
4727
      setProviderIdIsSet(true);
4295
      return this;
-
 
4296
    }
4728
    }
4297
 
4729
 
4298
    public void unsetProviderId() {
4730
    public void unsetProviderId() {
4299
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
4731
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
4300
    }
4732
    }
4301
 
4733
 
4302
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
4734
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
4303
    public boolean isSetProviderId() {
4735
    public boolean isSetProviderId() {
4304
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
4736
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
4305
    }
4737
    }
4306
 
4738
 
4307
    public void setProviderIdIsSet(boolean value) {
4739
    public void setProviderIdIsSet(boolean value) {
Line 4327... Line 4759...
4327
        break;
4759
        break;
4328
 
4760
 
4329
      }
4761
      }
4330
    }
4762
    }
4331
 
4763
 
4332
    public void setFieldValue(int fieldID, Object value) {
-
 
4333
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4334
    }
-
 
4335
 
-
 
4336
    public Object getFieldValue(_Fields field) {
4764
    public Object getFieldValue(_Fields field) {
4337
      switch (field) {
4765
      switch (field) {
4338
      case AWB:
4766
      case AWB:
4339
        return getAwb();
4767
        return getAwb();
4340
 
4768
 
4341
      case PROVIDER_ID:
4769
      case PROVIDER_ID:
4342
        return new Long(getProviderId());
4770
        return Long.valueOf(getProviderId());
4343
 
4771
 
4344
      }
4772
      }
4345
      throw new IllegalStateException();
4773
      throw new IllegalStateException();
4346
    }
4774
    }
4347
 
4775
 
4348
    public Object getFieldValue(int fieldId) {
-
 
4349
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4350
    }
-
 
4351
 
-
 
4352
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
4776
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4353
    public boolean isSet(_Fields field) {
4777
    public boolean isSet(_Fields field) {
-
 
4778
      if (field == null) {
-
 
4779
        throw new IllegalArgumentException();
-
 
4780
      }
-
 
4781
 
4354
      switch (field) {
4782
      switch (field) {
4355
      case AWB:
4783
      case AWB:
4356
        return isSetAwb();
4784
        return isSetAwb();
4357
      case PROVIDER_ID:
4785
      case PROVIDER_ID:
4358
        return isSetProviderId();
4786
        return isSetProviderId();
4359
      }
4787
      }
4360
      throw new IllegalStateException();
4788
      throw new IllegalStateException();
4361
    }
4789
    }
4362
 
4790
 
4363
    public boolean isSet(int fieldID) {
-
 
4364
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4365
    }
-
 
4366
 
-
 
4367
    @Override
4791
    @Override
4368
    public boolean equals(Object that) {
4792
    public boolean equals(Object that) {
4369
      if (that == null)
4793
      if (that == null)
4370
        return false;
4794
        return false;
4371
      if (that instanceof getShipmentInfo_args)
4795
      if (that instanceof getShipmentInfo_args)
Line 4409... Line 4833...
4409
      }
4833
      }
4410
 
4834
 
4411
      int lastComparison = 0;
4835
      int lastComparison = 0;
4412
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
4836
      getShipmentInfo_args typedOther = (getShipmentInfo_args)other;
4413
 
4837
 
4414
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(isSetAwb());
4838
      lastComparison = Boolean.valueOf(isSetAwb()).compareTo(typedOther.isSetAwb());
4415
      if (lastComparison != 0) {
4839
      if (lastComparison != 0) {
4416
        return lastComparison;
4840
        return lastComparison;
4417
      }
4841
      }
-
 
4842
      if (isSetAwb()) {
4418
      lastComparison = TBaseHelper.compareTo(awb, typedOther.awb);
4843
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.awb, typedOther.awb);
4419
      if (lastComparison != 0) {
4844
        if (lastComparison != 0) {
4420
        return lastComparison;
4845
          return lastComparison;
-
 
4846
        }
4421
      }
4847
      }
4422
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
4848
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
4423
      if (lastComparison != 0) {
4849
      if (lastComparison != 0) {
4424
        return lastComparison;
4850
        return lastComparison;
4425
      }
4851
      }
-
 
4852
      if (isSetProviderId()) {
4426
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
4853
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4427
      if (lastComparison != 0) {
4854
        if (lastComparison != 0) {
4428
        return lastComparison;
4855
          return lastComparison;
-
 
4856
        }
4429
      }
4857
      }
4430
      return 0;
4858
      return 0;
4431
    }
4859
    }
4432
 
4860
 
-
 
4861
    public _Fields fieldForId(int fieldId) {
-
 
4862
      return _Fields.findByThriftId(fieldId);
-
 
4863
    }
-
 
4864
 
4433
    public void read(TProtocol iprot) throws TException {
4865
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4434
      TField field;
4866
      org.apache.thrift.protocol.TField field;
4435
      iprot.readStructBegin();
4867
      iprot.readStructBegin();
4436
      while (true)
4868
      while (true)
4437
      {
4869
      {
4438
        field = iprot.readFieldBegin();
4870
        field = iprot.readFieldBegin();
4439
        if (field.type == TType.STOP) { 
4871
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4440
          break;
4872
          break;
4441
        }
4873
        }
4442
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
4443
        if (fieldId == null) {
-
 
4444
          TProtocolUtil.skip(iprot, field.type);
-
 
4445
        } else {
-
 
4446
          switch (fieldId) {
4874
        switch (field.id) {
4447
            case AWB:
4875
          case 1: // AWB
4448
              if (field.type == TType.STRING) {
4876
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
4449
                this.awb = iprot.readString();
4877
              this.awb = iprot.readString();
4450
              } else { 
4878
            } else { 
4451
                TProtocolUtil.skip(iprot, field.type);
4879
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4452
              }
4880
            }
4453
              break;
4881
            break;
4454
            case PROVIDER_ID:
4882
          case 2: // PROVIDER_ID
4455
              if (field.type == TType.I64) {
4883
            if (field.type == org.apache.thrift.protocol.TType.I64) {
4456
                this.providerId = iprot.readI64();
4884
              this.providerId = iprot.readI64();
4457
                setProviderIdIsSet(true);
4885
              setProviderIdIsSet(true);
4458
              } else { 
4886
            } else { 
4459
                TProtocolUtil.skip(iprot, field.type);
4887
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4460
              }
4888
            }
4461
              break;
4889
            break;
4462
          }
4890
          default:
4463
          iprot.readFieldEnd();
4891
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4464
        }
4892
        }
-
 
4893
        iprot.readFieldEnd();
4465
      }
4894
      }
4466
      iprot.readStructEnd();
4895
      iprot.readStructEnd();
4467
      validate();
4896
      validate();
4468
    }
4897
    }
4469
 
4898
 
4470
    public void write(TProtocol oprot) throws TException {
4899
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4471
      validate();
4900
      validate();
4472
 
4901
 
4473
      oprot.writeStructBegin(STRUCT_DESC);
4902
      oprot.writeStructBegin(STRUCT_DESC);
4474
      if (this.awb != null) {
4903
      if (this.awb != null) {
4475
        oprot.writeFieldBegin(AWB_FIELD_DESC);
4904
        oprot.writeFieldBegin(AWB_FIELD_DESC);
Line 4501... Line 4930...
4501
      first = false;
4930
      first = false;
4502
      sb.append(")");
4931
      sb.append(")");
4503
      return sb.toString();
4932
      return sb.toString();
4504
    }
4933
    }
4505
 
4934
 
4506
    public void validate() throws TException {
4935
    public void validate() throws org.apache.thrift.TException {
4507
      // check for required fields
4936
      // check for required fields
4508
    }
4937
    }
4509
 
4938
 
-
 
4939
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
4940
      try {
-
 
4941
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
4942
      } catch (org.apache.thrift.TException te) {
-
 
4943
        throw new java.io.IOException(te);
-
 
4944
      }
-
 
4945
    }
-
 
4946
 
-
 
4947
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
4948
      try {
-
 
4949
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
4950
      } catch (org.apache.thrift.TException te) {
-
 
4951
        throw new java.io.IOException(te);
-
 
4952
      }
-
 
4953
    }
-
 
4954
 
4510
  }
4955
  }
4511
 
4956
 
4512
  public static class getShipmentInfo_result implements TBase<getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable, Comparable<getShipmentInfo_result>   {
4957
  public static class getShipmentInfo_result implements org.apache.thrift.TBase<getShipmentInfo_result, getShipmentInfo_result._Fields>, java.io.Serializable, Cloneable   {
4513
    private static final TStruct STRUCT_DESC = new TStruct("getShipmentInfo_result");
4958
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getShipmentInfo_result");
4514
 
4959
 
4515
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
4960
    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);
4516
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
4961
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
4517
 
4962
 
4518
    private List<AwbUpdate> success;
4963
    private List<AwbUpdate> success; // required
4519
    private LogisticsServiceException se;
4964
    private LogisticsServiceException se; // required
4520
 
4965
 
4521
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4966
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4522
    public enum _Fields implements TFieldIdEnum {
4967
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4523
      SUCCESS((short)0, "success"),
4968
      SUCCESS((short)0, "success"),
4524
      SE((short)1, "se");
4969
      SE((short)1, "se");
4525
 
4970
 
4526
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4971
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4528
 
4972
 
4529
      static {
4973
      static {
4530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4974
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4531
          byId.put((int)field._thriftId, field);
-
 
4532
          byName.put(field.getFieldName(), field);
4975
          byName.put(field.getFieldName(), field);
4533
        }
4976
        }
4534
      }
4977
      }
4535
 
4978
 
4536
      /**
4979
      /**
4537
       * Find the _Fields constant that matches fieldId, or null if its not found.
4980
       * Find the _Fields constant that matches fieldId, or null if its not found.
4538
       */
4981
       */
4539
      public static _Fields findByThriftId(int fieldId) {
4982
      public static _Fields findByThriftId(int fieldId) {
4540
        return byId.get(fieldId);
4983
        switch(fieldId) {
-
 
4984
          case 0: // SUCCESS
-
 
4985
            return SUCCESS;
-
 
4986
          case 1: // SE
-
 
4987
            return SE;
-
 
4988
          default:
-
 
4989
            return null;
-
 
4990
        }
4541
      }
4991
      }
4542
 
4992
 
4543
      /**
4993
      /**
4544
       * Find the _Fields constant that matches fieldId, throwing an exception
4994
       * Find the _Fields constant that matches fieldId, throwing an exception
4545
       * if it is not found.
4995
       * if it is not found.
Line 4574... Line 5024...
4574
      }
5024
      }
4575
    }
5025
    }
4576
 
5026
 
4577
    // isset id assignments
5027
    // isset id assignments
4578
 
5028
 
4579
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5029
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4580
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
4581
          new ListMetaData(TType.LIST, 
-
 
4582
              new StructMetaData(TType.STRUCT, AwbUpdate.class))));
-
 
4583
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
4584
          new FieldValueMetaData(TType.STRUCT)));
-
 
4585
    }});
-
 
4586
 
-
 
4587
    static {
5030
    static {
-
 
5031
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5032
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5033
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
5034
              new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, AwbUpdate.class))));
-
 
5035
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5036
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
5037
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4588
      FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
5038
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getShipmentInfo_result.class, metaDataMap);
4589
    }
5039
    }
4590
 
5040
 
4591
    public getShipmentInfo_result() {
5041
    public getShipmentInfo_result() {
4592
    }
5042
    }
4593
 
5043
 
Line 4618... Line 5068...
4618
 
5068
 
4619
    public getShipmentInfo_result deepCopy() {
5069
    public getShipmentInfo_result deepCopy() {
4620
      return new getShipmentInfo_result(this);
5070
      return new getShipmentInfo_result(this);
4621
    }
5071
    }
4622
 
5072
 
4623
    @Deprecated
5073
    @Override
4624
    public getShipmentInfo_result clone() {
5074
    public void clear() {
4625
      return new getShipmentInfo_result(this);
5075
      this.success = null;
-
 
5076
      this.se = null;
4626
    }
5077
    }
4627
 
5078
 
4628
    public int getSuccessSize() {
5079
    public int getSuccessSize() {
4629
      return (this.success == null) ? 0 : this.success.size();
5080
      return (this.success == null) ? 0 : this.success.size();
4630
    }
5081
    }
Line 4642... Line 5093...
4642
 
5093
 
4643
    public List<AwbUpdate> getSuccess() {
5094
    public List<AwbUpdate> getSuccess() {
4644
      return this.success;
5095
      return this.success;
4645
    }
5096
    }
4646
 
5097
 
4647
    public getShipmentInfo_result setSuccess(List<AwbUpdate> success) {
5098
    public void setSuccess(List<AwbUpdate> success) {
4648
      this.success = success;
5099
      this.success = success;
4649
      return this;
-
 
4650
    }
5100
    }
4651
 
5101
 
4652
    public void unsetSuccess() {
5102
    public void unsetSuccess() {
4653
      this.success = null;
5103
      this.success = null;
4654
    }
5104
    }
4655
 
5105
 
4656
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
5106
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
4657
    public boolean isSetSuccess() {
5107
    public boolean isSetSuccess() {
4658
      return this.success != null;
5108
      return this.success != null;
4659
    }
5109
    }
4660
 
5110
 
4661
    public void setSuccessIsSet(boolean value) {
5111
    public void setSuccessIsSet(boolean value) {
Line 4666... Line 5116...
4666
 
5116
 
4667
    public LogisticsServiceException getSe() {
5117
    public LogisticsServiceException getSe() {
4668
      return this.se;
5118
      return this.se;
4669
    }
5119
    }
4670
 
5120
 
4671
    public getShipmentInfo_result setSe(LogisticsServiceException se) {
5121
    public void setSe(LogisticsServiceException se) {
4672
      this.se = se;
5122
      this.se = se;
4673
      return this;
-
 
4674
    }
5123
    }
4675
 
5124
 
4676
    public void unsetSe() {
5125
    public void unsetSe() {
4677
      this.se = null;
5126
      this.se = null;
4678
    }
5127
    }
4679
 
5128
 
4680
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
5129
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
4681
    public boolean isSetSe() {
5130
    public boolean isSetSe() {
4682
      return this.se != null;
5131
      return this.se != null;
4683
    }
5132
    }
4684
 
5133
 
4685
    public void setSeIsSet(boolean value) {
5134
    public void setSeIsSet(boolean value) {
Line 4707... Line 5156...
4707
        break;
5156
        break;
4708
 
5157
 
4709
      }
5158
      }
4710
    }
5159
    }
4711
 
5160
 
4712
    public void setFieldValue(int fieldID, Object value) {
-
 
4713
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
4714
    }
-
 
4715
 
-
 
4716
    public Object getFieldValue(_Fields field) {
5161
    public Object getFieldValue(_Fields field) {
4717
      switch (field) {
5162
      switch (field) {
4718
      case SUCCESS:
5163
      case SUCCESS:
4719
        return getSuccess();
5164
        return getSuccess();
4720
 
5165
 
Line 4723... Line 5168...
4723
 
5168
 
4724
      }
5169
      }
4725
      throw new IllegalStateException();
5170
      throw new IllegalStateException();
4726
    }
5171
    }
4727
 
5172
 
4728
    public Object getFieldValue(int fieldId) {
-
 
4729
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
4730
    }
-
 
4731
 
-
 
4732
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5173
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4733
    public boolean isSet(_Fields field) {
5174
    public boolean isSet(_Fields field) {
-
 
5175
      if (field == null) {
-
 
5176
        throw new IllegalArgumentException();
-
 
5177
      }
-
 
5178
 
4734
      switch (field) {
5179
      switch (field) {
4735
      case SUCCESS:
5180
      case SUCCESS:
4736
        return isSetSuccess();
5181
        return isSetSuccess();
4737
      case SE:
5182
      case SE:
4738
        return isSetSe();
5183
        return isSetSe();
4739
      }
5184
      }
4740
      throw new IllegalStateException();
5185
      throw new IllegalStateException();
4741
    }
5186
    }
4742
 
5187
 
4743
    public boolean isSet(int fieldID) {
-
 
4744
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
4745
    }
-
 
4746
 
-
 
4747
    @Override
5188
    @Override
4748
    public boolean equals(Object that) {
5189
    public boolean equals(Object that) {
4749
      if (that == null)
5190
      if (that == null)
4750
        return false;
5191
        return false;
4751
      if (that instanceof getShipmentInfo_result)
5192
      if (that instanceof getShipmentInfo_result)
Line 4789... Line 5230...
4789
      }
5230
      }
4790
 
5231
 
4791
      int lastComparison = 0;
5232
      int lastComparison = 0;
4792
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
5233
      getShipmentInfo_result typedOther = (getShipmentInfo_result)other;
4793
 
5234
 
4794
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
5235
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
4795
      if (lastComparison != 0) {
5236
      if (lastComparison != 0) {
4796
        return lastComparison;
5237
        return lastComparison;
4797
      }
5238
      }
-
 
5239
      if (isSetSuccess()) {
4798
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
5240
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
4799
      if (lastComparison != 0) {
5241
        if (lastComparison != 0) {
4800
        return lastComparison;
5242
          return lastComparison;
-
 
5243
        }
4801
      }
5244
      }
4802
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
5245
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
4803
      if (lastComparison != 0) {
5246
      if (lastComparison != 0) {
4804
        return lastComparison;
5247
        return lastComparison;
4805
      }
5248
      }
-
 
5249
      if (isSetSe()) {
4806
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
5250
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
4807
      if (lastComparison != 0) {
5251
        if (lastComparison != 0) {
4808
        return lastComparison;
5252
          return lastComparison;
-
 
5253
        }
4809
      }
5254
      }
4810
      return 0;
5255
      return 0;
4811
    }
5256
    }
4812
 
5257
 
-
 
5258
    public _Fields fieldForId(int fieldId) {
-
 
5259
      return _Fields.findByThriftId(fieldId);
-
 
5260
    }
-
 
5261
 
4813
    public void read(TProtocol iprot) throws TException {
5262
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
4814
      TField field;
5263
      org.apache.thrift.protocol.TField field;
4815
      iprot.readStructBegin();
5264
      iprot.readStructBegin();
4816
      while (true)
5265
      while (true)
4817
      {
5266
      {
4818
        field = iprot.readFieldBegin();
5267
        field = iprot.readFieldBegin();
4819
        if (field.type == TType.STOP) { 
5268
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
4820
          break;
5269
          break;
4821
        }
5270
        }
4822
        _Fields fieldId = _Fields.findByThriftId(field.id);
5271
        switch (field.id) {
4823
        if (fieldId == null) {
5272
          case 0: // SUCCESS
4824
          TProtocolUtil.skip(iprot, field.type);
5273
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
4825
        } else {
5274
              {
4826
          switch (fieldId) {
5275
                org.apache.thrift.protocol.TList _list9 = iprot.readListBegin();
4827
            case SUCCESS:
5276
                this.success = new ArrayList<AwbUpdate>(_list9.size);
4828
              if (field.type == TType.LIST) {
5277
                for (int _i10 = 0; _i10 < _list9.size; ++_i10)
4829
                {
5278
                {
4830
                  TList _list9 = iprot.readListBegin();
-
 
4831
                  this.success = new ArrayList<AwbUpdate>(_list9.size);
-
 
4832
                  for (int _i10 = 0; _i10 < _list9.size; ++_i10)
-
 
4833
                  {
-
 
4834
                    AwbUpdate _elem11;
5279
                  AwbUpdate _elem11; // required
4835
                    _elem11 = new AwbUpdate();
5280
                  _elem11 = new AwbUpdate();
4836
                    _elem11.read(iprot);
5281
                  _elem11.read(iprot);
4837
                    this.success.add(_elem11);
5282
                  this.success.add(_elem11);
4838
                  }
-
 
4839
                  iprot.readListEnd();
-
 
4840
                }
5283
                }
4841
              } else { 
-
 
4842
                TProtocolUtil.skip(iprot, field.type);
-
 
4843
              }
-
 
4844
              break;
-
 
4845
            case SE:
-
 
4846
              if (field.type == TType.STRUCT) {
-
 
4847
                this.se = new LogisticsServiceException();
-
 
4848
                this.se.read(iprot);
5284
                iprot.readListEnd();
4849
              } else { 
-
 
4850
                TProtocolUtil.skip(iprot, field.type);
-
 
4851
              }
5285
              }
-
 
5286
            } else { 
-
 
5287
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
5288
            }
4852
              break;
5289
            break;
-
 
5290
          case 1: // SE
-
 
5291
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
5292
              this.se = new LogisticsServiceException();
-
 
5293
              this.se.read(iprot);
-
 
5294
            } else { 
-
 
5295
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4853
          }
5296
            }
4854
          iprot.readFieldEnd();
5297
            break;
-
 
5298
          default:
-
 
5299
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4855
        }
5300
        }
-
 
5301
        iprot.readFieldEnd();
4856
      }
5302
      }
4857
      iprot.readStructEnd();
5303
      iprot.readStructEnd();
4858
      validate();
5304
      validate();
4859
    }
5305
    }
4860
 
5306
 
4861
    public void write(TProtocol oprot) throws TException {
5307
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4862
      oprot.writeStructBegin(STRUCT_DESC);
5308
      oprot.writeStructBegin(STRUCT_DESC);
4863
 
5309
 
4864
      if (this.isSetSuccess()) {
5310
      if (this.isSetSuccess()) {
4865
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5311
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
4866
        {
5312
        {
4867
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
5313
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.success.size()));
4868
          for (AwbUpdate _iter12 : this.success)
5314
          for (AwbUpdate _iter12 : this.success)
4869
          {
5315
          {
4870
            _iter12.write(oprot);
5316
            _iter12.write(oprot);
4871
          }
5317
          }
4872
          oprot.writeListEnd();
5318
          oprot.writeListEnd();
Line 4903... Line 5349...
4903
      first = false;
5349
      first = false;
4904
      sb.append(")");
5350
      sb.append(")");
4905
      return sb.toString();
5351
      return sb.toString();
4906
    }
5352
    }
4907
 
5353
 
4908
    public void validate() throws TException {
5354
    public void validate() throws org.apache.thrift.TException {
4909
      // check for required fields
5355
      // check for required fields
4910
    }
5356
    }
4911
 
5357
 
-
 
5358
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5359
      try {
-
 
5360
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5361
      } catch (org.apache.thrift.TException te) {
-
 
5362
        throw new java.io.IOException(te);
-
 
5363
      }
-
 
5364
    }
-
 
5365
 
-
 
5366
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5367
      try {
-
 
5368
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5369
      } catch (org.apache.thrift.TException te) {
-
 
5370
        throw new java.io.IOException(te);
-
 
5371
      }
-
 
5372
    }
-
 
5373
 
4912
  }
5374
  }
4913
 
5375
 
4914
  public static class getDestinationCode_args implements TBase<getDestinationCode_args._Fields>, java.io.Serializable, Cloneable, Comparable<getDestinationCode_args>   {
5376
  public static class getDestinationCode_args implements org.apache.thrift.TBase<getDestinationCode_args, getDestinationCode_args._Fields>, java.io.Serializable, Cloneable   {
4915
    private static final TStruct STRUCT_DESC = new TStruct("getDestinationCode_args");
5377
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_args");
4916
 
5378
 
4917
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
5379
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
4918
    private static final TField PIN_CODE_FIELD_DESC = new TField("pinCode", TType.STRING, (short)2);
5380
    private static final org.apache.thrift.protocol.TField PIN_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("pinCode", org.apache.thrift.protocol.TType.STRING, (short)2);
4919
 
5381
 
4920
    private long providerId;
5382
    private long providerId; // required
4921
    private String pinCode;
5383
    private String pinCode; // required
4922
 
5384
 
4923
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5385
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4924
    public enum _Fields implements TFieldIdEnum {
5386
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4925
      PROVIDER_ID((short)1, "providerId"),
5387
      PROVIDER_ID((short)1, "providerId"),
4926
      PIN_CODE((short)2, "pinCode");
5388
      PIN_CODE((short)2, "pinCode");
4927
 
5389
 
4928
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
4929
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5390
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4930
 
5391
 
4931
      static {
5392
      static {
4932
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5393
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4933
          byId.put((int)field._thriftId, field);
-
 
4934
          byName.put(field.getFieldName(), field);
5394
          byName.put(field.getFieldName(), field);
4935
        }
5395
        }
4936
      }
5396
      }
4937
 
5397
 
4938
      /**
5398
      /**
4939
       * Find the _Fields constant that matches fieldId, or null if its not found.
5399
       * Find the _Fields constant that matches fieldId, or null if its not found.
4940
       */
5400
       */
4941
      public static _Fields findByThriftId(int fieldId) {
5401
      public static _Fields findByThriftId(int fieldId) {
4942
        return byId.get(fieldId);
5402
        switch(fieldId) {
-
 
5403
          case 1: // PROVIDER_ID
-
 
5404
            return PROVIDER_ID;
-
 
5405
          case 2: // PIN_CODE
-
 
5406
            return PIN_CODE;
-
 
5407
          default:
-
 
5408
            return null;
-
 
5409
        }
4943
      }
5410
      }
4944
 
5411
 
4945
      /**
5412
      /**
4946
       * Find the _Fields constant that matches fieldId, throwing an exception
5413
       * Find the _Fields constant that matches fieldId, throwing an exception
4947
       * if it is not found.
5414
       * if it is not found.
Line 4978... Line 5445...
4978
 
5445
 
4979
    // isset id assignments
5446
    // isset id assignments
4980
    private static final int __PROVIDERID_ISSET_ID = 0;
5447
    private static final int __PROVIDERID_ISSET_ID = 0;
4981
    private BitSet __isset_bit_vector = new BitSet(1);
5448
    private BitSet __isset_bit_vector = new BitSet(1);
4982
 
5449
 
4983
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5450
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4984
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
4985
          new FieldValueMetaData(TType.I64)));
-
 
4986
      put(_Fields.PIN_CODE, new FieldMetaData("pinCode", TFieldRequirementType.DEFAULT, 
-
 
4987
          new FieldValueMetaData(TType.STRING)));
-
 
4988
    }});
-
 
4989
 
-
 
4990
    static {
5451
    static {
-
 
5452
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5453
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5454
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
5455
      tmpMap.put(_Fields.PIN_CODE, new org.apache.thrift.meta_data.FieldMetaData("pinCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5456
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
5457
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4991
      FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
5458
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_args.class, metaDataMap);
4992
    }
5459
    }
4993
 
5460
 
4994
    public getDestinationCode_args() {
5461
    public getDestinationCode_args() {
4995
    }
5462
    }
4996
 
5463
 
Line 5018... Line 5485...
5018
 
5485
 
5019
    public getDestinationCode_args deepCopy() {
5486
    public getDestinationCode_args deepCopy() {
5020
      return new getDestinationCode_args(this);
5487
      return new getDestinationCode_args(this);
5021
    }
5488
    }
5022
 
5489
 
5023
    @Deprecated
5490
    @Override
5024
    public getDestinationCode_args clone() {
5491
    public void clear() {
5025
      return new getDestinationCode_args(this);
5492
      setProviderIdIsSet(false);
-
 
5493
      this.providerId = 0;
-
 
5494
      this.pinCode = null;
5026
    }
5495
    }
5027
 
5496
 
5028
    public long getProviderId() {
5497
    public long getProviderId() {
5029
      return this.providerId;
5498
      return this.providerId;
5030
    }
5499
    }
5031
 
5500
 
5032
    public getDestinationCode_args setProviderId(long providerId) {
5501
    public void setProviderId(long providerId) {
5033
      this.providerId = providerId;
5502
      this.providerId = providerId;
5034
      setProviderIdIsSet(true);
5503
      setProviderIdIsSet(true);
5035
      return this;
-
 
5036
    }
5504
    }
5037
 
5505
 
5038
    public void unsetProviderId() {
5506
    public void unsetProviderId() {
5039
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
5507
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
5040
    }
5508
    }
5041
 
5509
 
5042
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
5510
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
5043
    public boolean isSetProviderId() {
5511
    public boolean isSetProviderId() {
5044
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
5512
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
5045
    }
5513
    }
5046
 
5514
 
5047
    public void setProviderIdIsSet(boolean value) {
5515
    public void setProviderIdIsSet(boolean value) {
Line 5050... Line 5518...
5050
 
5518
 
5051
    public String getPinCode() {
5519
    public String getPinCode() {
5052
      return this.pinCode;
5520
      return this.pinCode;
5053
    }
5521
    }
5054
 
5522
 
5055
    public getDestinationCode_args setPinCode(String pinCode) {
5523
    public void setPinCode(String pinCode) {
5056
      this.pinCode = pinCode;
5524
      this.pinCode = pinCode;
5057
      return this;
-
 
5058
    }
5525
    }
5059
 
5526
 
5060
    public void unsetPinCode() {
5527
    public void unsetPinCode() {
5061
      this.pinCode = null;
5528
      this.pinCode = null;
5062
    }
5529
    }
5063
 
5530
 
5064
    /** Returns true if field pinCode is set (has been asigned a value) and false otherwise */
5531
    /** Returns true if field pinCode is set (has been assigned a value) and false otherwise */
5065
    public boolean isSetPinCode() {
5532
    public boolean isSetPinCode() {
5066
      return this.pinCode != null;
5533
      return this.pinCode != null;
5067
    }
5534
    }
5068
 
5535
 
5069
    public void setPinCodeIsSet(boolean value) {
5536
    public void setPinCodeIsSet(boolean value) {
Line 5091... Line 5558...
5091
        break;
5558
        break;
5092
 
5559
 
5093
      }
5560
      }
5094
    }
5561
    }
5095
 
5562
 
5096
    public void setFieldValue(int fieldID, Object value) {
-
 
5097
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5098
    }
-
 
5099
 
-
 
5100
    public Object getFieldValue(_Fields field) {
5563
    public Object getFieldValue(_Fields field) {
5101
      switch (field) {
5564
      switch (field) {
5102
      case PROVIDER_ID:
5565
      case PROVIDER_ID:
5103
        return new Long(getProviderId());
5566
        return Long.valueOf(getProviderId());
5104
 
5567
 
5105
      case PIN_CODE:
5568
      case PIN_CODE:
5106
        return getPinCode();
5569
        return getPinCode();
5107
 
5570
 
5108
      }
5571
      }
5109
      throw new IllegalStateException();
5572
      throw new IllegalStateException();
5110
    }
5573
    }
5111
 
5574
 
5112
    public Object getFieldValue(int fieldId) {
-
 
5113
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5114
    }
-
 
5115
 
-
 
5116
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5575
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5117
    public boolean isSet(_Fields field) {
5576
    public boolean isSet(_Fields field) {
-
 
5577
      if (field == null) {
-
 
5578
        throw new IllegalArgumentException();
-
 
5579
      }
-
 
5580
 
5118
      switch (field) {
5581
      switch (field) {
5119
      case PROVIDER_ID:
5582
      case PROVIDER_ID:
5120
        return isSetProviderId();
5583
        return isSetProviderId();
5121
      case PIN_CODE:
5584
      case PIN_CODE:
5122
        return isSetPinCode();
5585
        return isSetPinCode();
5123
      }
5586
      }
5124
      throw new IllegalStateException();
5587
      throw new IllegalStateException();
5125
    }
5588
    }
5126
 
5589
 
5127
    public boolean isSet(int fieldID) {
-
 
5128
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5129
    }
-
 
5130
 
-
 
5131
    @Override
5590
    @Override
5132
    public boolean equals(Object that) {
5591
    public boolean equals(Object that) {
5133
      if (that == null)
5592
      if (that == null)
5134
        return false;
5593
        return false;
5135
      if (that instanceof getDestinationCode_args)
5594
      if (that instanceof getDestinationCode_args)
Line 5173... Line 5632...
5173
      }
5632
      }
5174
 
5633
 
5175
      int lastComparison = 0;
5634
      int lastComparison = 0;
5176
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
5635
      getDestinationCode_args typedOther = (getDestinationCode_args)other;
5177
 
5636
 
5178
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
5637
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
5179
      if (lastComparison != 0) {
5638
      if (lastComparison != 0) {
5180
        return lastComparison;
5639
        return lastComparison;
5181
      }
5640
      }
-
 
5641
      if (isSetProviderId()) {
5182
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
5642
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5183
      if (lastComparison != 0) {
5643
        if (lastComparison != 0) {
5184
        return lastComparison;
5644
          return lastComparison;
-
 
5645
        }
5185
      }
5646
      }
5186
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(isSetPinCode());
5647
      lastComparison = Boolean.valueOf(isSetPinCode()).compareTo(typedOther.isSetPinCode());
5187
      if (lastComparison != 0) {
5648
      if (lastComparison != 0) {
5188
        return lastComparison;
5649
        return lastComparison;
5189
      }
5650
      }
-
 
5651
      if (isSetPinCode()) {
5190
      lastComparison = TBaseHelper.compareTo(pinCode, typedOther.pinCode);
5652
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pinCode, typedOther.pinCode);
5191
      if (lastComparison != 0) {
5653
        if (lastComparison != 0) {
5192
        return lastComparison;
5654
          return lastComparison;
-
 
5655
        }
5193
      }
5656
      }
5194
      return 0;
5657
      return 0;
5195
    }
5658
    }
5196
 
5659
 
-
 
5660
    public _Fields fieldForId(int fieldId) {
-
 
5661
      return _Fields.findByThriftId(fieldId);
-
 
5662
    }
-
 
5663
 
5197
    public void read(TProtocol iprot) throws TException {
5664
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5198
      TField field;
5665
      org.apache.thrift.protocol.TField field;
5199
      iprot.readStructBegin();
5666
      iprot.readStructBegin();
5200
      while (true)
5667
      while (true)
5201
      {
5668
      {
5202
        field = iprot.readFieldBegin();
5669
        field = iprot.readFieldBegin();
5203
        if (field.type == TType.STOP) { 
5670
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5204
          break;
5671
          break;
5205
        }
5672
        }
5206
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5207
        if (fieldId == null) {
-
 
5208
          TProtocolUtil.skip(iprot, field.type);
-
 
5209
        } else {
-
 
5210
          switch (fieldId) {
5673
        switch (field.id) {
5211
            case PROVIDER_ID:
5674
          case 1: // PROVIDER_ID
5212
              if (field.type == TType.I64) {
5675
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5213
                this.providerId = iprot.readI64();
5676
              this.providerId = iprot.readI64();
5214
                setProviderIdIsSet(true);
5677
              setProviderIdIsSet(true);
5215
              } else { 
5678
            } else { 
5216
                TProtocolUtil.skip(iprot, field.type);
5679
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5217
              }
5680
            }
5218
              break;
5681
            break;
5219
            case PIN_CODE:
5682
          case 2: // PIN_CODE
5220
              if (field.type == TType.STRING) {
5683
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5221
                this.pinCode = iprot.readString();
5684
              this.pinCode = iprot.readString();
5222
              } else { 
5685
            } else { 
5223
                TProtocolUtil.skip(iprot, field.type);
5686
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5224
              }
5687
            }
5225
              break;
5688
            break;
5226
          }
5689
          default:
5227
          iprot.readFieldEnd();
5690
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5228
        }
5691
        }
-
 
5692
        iprot.readFieldEnd();
5229
      }
5693
      }
5230
      iprot.readStructEnd();
5694
      iprot.readStructEnd();
5231
      validate();
5695
      validate();
5232
    }
5696
    }
5233
 
5697
 
5234
    public void write(TProtocol oprot) throws TException {
5698
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5235
      validate();
5699
      validate();
5236
 
5700
 
5237
      oprot.writeStructBegin(STRUCT_DESC);
5701
      oprot.writeStructBegin(STRUCT_DESC);
5238
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5702
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5239
      oprot.writeI64(this.providerId);
5703
      oprot.writeI64(this.providerId);
Line 5265... Line 5729...
5265
      first = false;
5729
      first = false;
5266
      sb.append(")");
5730
      sb.append(")");
5267
      return sb.toString();
5731
      return sb.toString();
5268
    }
5732
    }
5269
 
5733
 
5270
    public void validate() throws TException {
5734
    public void validate() throws org.apache.thrift.TException {
5271
      // check for required fields
5735
      // check for required fields
5272
    }
5736
    }
5273
 
5737
 
-
 
5738
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
5739
      try {
-
 
5740
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
5741
      } catch (org.apache.thrift.TException te) {
-
 
5742
        throw new java.io.IOException(te);
-
 
5743
      }
-
 
5744
    }
-
 
5745
 
-
 
5746
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
5747
      try {
-
 
5748
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
5749
      } catch (org.apache.thrift.TException te) {
-
 
5750
        throw new java.io.IOException(te);
-
 
5751
      }
-
 
5752
    }
-
 
5753
 
5274
  }
5754
  }
5275
 
5755
 
5276
  public static class getDestinationCode_result implements TBase<getDestinationCode_result._Fields>, java.io.Serializable, Cloneable, Comparable<getDestinationCode_result>   {
5756
  public static class getDestinationCode_result implements org.apache.thrift.TBase<getDestinationCode_result, getDestinationCode_result._Fields>, java.io.Serializable, Cloneable   {
5277
    private static final TStruct STRUCT_DESC = new TStruct("getDestinationCode_result");
5757
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getDestinationCode_result");
5278
 
5758
 
5279
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
5759
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
5280
    private static final TField SE_FIELD_DESC = new TField("se", TType.STRUCT, (short)1);
5760
    private static final org.apache.thrift.protocol.TField SE_FIELD_DESC = new org.apache.thrift.protocol.TField("se", org.apache.thrift.protocol.TType.STRUCT, (short)1);
5281
 
5761
 
5282
    private String success;
5762
    private String success; // required
5283
    private LogisticsServiceException se;
5763
    private LogisticsServiceException se; // required
5284
 
5764
 
5285
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5765
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5286
    public enum _Fields implements TFieldIdEnum {
5766
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5287
      SUCCESS((short)0, "success"),
5767
      SUCCESS((short)0, "success"),
5288
      SE((short)1, "se");
5768
      SE((short)1, "se");
5289
 
5769
 
5290
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5291
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5770
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5292
 
5771
 
5293
      static {
5772
      static {
5294
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5773
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5295
          byId.put((int)field._thriftId, field);
-
 
5296
          byName.put(field.getFieldName(), field);
5774
          byName.put(field.getFieldName(), field);
5297
        }
5775
        }
5298
      }
5776
      }
5299
 
5777
 
5300
      /**
5778
      /**
5301
       * Find the _Fields constant that matches fieldId, or null if its not found.
5779
       * Find the _Fields constant that matches fieldId, or null if its not found.
5302
       */
5780
       */
5303
      public static _Fields findByThriftId(int fieldId) {
5781
      public static _Fields findByThriftId(int fieldId) {
5304
        return byId.get(fieldId);
5782
        switch(fieldId) {
-
 
5783
          case 0: // SUCCESS
-
 
5784
            return SUCCESS;
-
 
5785
          case 1: // SE
-
 
5786
            return SE;
-
 
5787
          default:
-
 
5788
            return null;
-
 
5789
        }
5305
      }
5790
      }
5306
 
5791
 
5307
      /**
5792
      /**
5308
       * Find the _Fields constant that matches fieldId, throwing an exception
5793
       * Find the _Fields constant that matches fieldId, throwing an exception
5309
       * if it is not found.
5794
       * if it is not found.
Line 5338... Line 5823...
5338
      }
5823
      }
5339
    }
5824
    }
5340
 
5825
 
5341
    // isset id assignments
5826
    // isset id assignments
5342
 
5827
 
5343
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
5828
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5344
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
5345
          new FieldValueMetaData(TType.STRING)));
-
 
5346
      put(_Fields.SE, new FieldMetaData("se", TFieldRequirementType.DEFAULT, 
-
 
5347
          new FieldValueMetaData(TType.STRUCT)));
-
 
5348
    }});
-
 
5349
 
-
 
5350
    static {
5829
    static {
-
 
5830
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
5831
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5832
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
5833
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
5834
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
5835
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5351
      FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
5836
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getDestinationCode_result.class, metaDataMap);
5352
    }
5837
    }
5353
 
5838
 
5354
    public getDestinationCode_result() {
5839
    public getDestinationCode_result() {
5355
    }
5840
    }
5356
 
5841
 
Line 5377... Line 5862...
5377
 
5862
 
5378
    public getDestinationCode_result deepCopy() {
5863
    public getDestinationCode_result deepCopy() {
5379
      return new getDestinationCode_result(this);
5864
      return new getDestinationCode_result(this);
5380
    }
5865
    }
5381
 
5866
 
5382
    @Deprecated
5867
    @Override
5383
    public getDestinationCode_result clone() {
5868
    public void clear() {
5384
      return new getDestinationCode_result(this);
5869
      this.success = null;
-
 
5870
      this.se = null;
5385
    }
5871
    }
5386
 
5872
 
5387
    public String getSuccess() {
5873
    public String getSuccess() {
5388
      return this.success;
5874
      return this.success;
5389
    }
5875
    }
5390
 
5876
 
5391
    public getDestinationCode_result setSuccess(String success) {
5877
    public void setSuccess(String success) {
5392
      this.success = success;
5878
      this.success = success;
5393
      return this;
-
 
5394
    }
5879
    }
5395
 
5880
 
5396
    public void unsetSuccess() {
5881
    public void unsetSuccess() {
5397
      this.success = null;
5882
      this.success = null;
5398
    }
5883
    }
5399
 
5884
 
5400
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
5885
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
5401
    public boolean isSetSuccess() {
5886
    public boolean isSetSuccess() {
5402
      return this.success != null;
5887
      return this.success != null;
5403
    }
5888
    }
5404
 
5889
 
5405
    public void setSuccessIsSet(boolean value) {
5890
    public void setSuccessIsSet(boolean value) {
Line 5410... Line 5895...
5410
 
5895
 
5411
    public LogisticsServiceException getSe() {
5896
    public LogisticsServiceException getSe() {
5412
      return this.se;
5897
      return this.se;
5413
    }
5898
    }
5414
 
5899
 
5415
    public getDestinationCode_result setSe(LogisticsServiceException se) {
5900
    public void setSe(LogisticsServiceException se) {
5416
      this.se = se;
5901
      this.se = se;
5417
      return this;
-
 
5418
    }
5902
    }
5419
 
5903
 
5420
    public void unsetSe() {
5904
    public void unsetSe() {
5421
      this.se = null;
5905
      this.se = null;
5422
    }
5906
    }
5423
 
5907
 
5424
    /** Returns true if field se is set (has been asigned a value) and false otherwise */
5908
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
5425
    public boolean isSetSe() {
5909
    public boolean isSetSe() {
5426
      return this.se != null;
5910
      return this.se != null;
5427
    }
5911
    }
5428
 
5912
 
5429
    public void setSeIsSet(boolean value) {
5913
    public void setSeIsSet(boolean value) {
Line 5451... Line 5935...
5451
        break;
5935
        break;
5452
 
5936
 
5453
      }
5937
      }
5454
    }
5938
    }
5455
 
5939
 
5456
    public void setFieldValue(int fieldID, Object value) {
-
 
5457
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5458
    }
-
 
5459
 
-
 
5460
    public Object getFieldValue(_Fields field) {
5940
    public Object getFieldValue(_Fields field) {
5461
      switch (field) {
5941
      switch (field) {
5462
      case SUCCESS:
5942
      case SUCCESS:
5463
        return getSuccess();
5943
        return getSuccess();
5464
 
5944
 
Line 5467... Line 5947...
5467
 
5947
 
5468
      }
5948
      }
5469
      throw new IllegalStateException();
5949
      throw new IllegalStateException();
5470
    }
5950
    }
5471
 
5951
 
5472
    public Object getFieldValue(int fieldId) {
-
 
5473
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5474
    }
-
 
5475
 
-
 
5476
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
5952
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5477
    public boolean isSet(_Fields field) {
5953
    public boolean isSet(_Fields field) {
-
 
5954
      if (field == null) {
-
 
5955
        throw new IllegalArgumentException();
-
 
5956
      }
-
 
5957
 
5478
      switch (field) {
5958
      switch (field) {
5479
      case SUCCESS:
5959
      case SUCCESS:
5480
        return isSetSuccess();
5960
        return isSetSuccess();
5481
      case SE:
5961
      case SE:
5482
        return isSetSe();
5962
        return isSetSe();
5483
      }
5963
      }
5484
      throw new IllegalStateException();
5964
      throw new IllegalStateException();
5485
    }
5965
    }
5486
 
5966
 
5487
    public boolean isSet(int fieldID) {
-
 
5488
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5489
    }
-
 
5490
 
-
 
5491
    @Override
5967
    @Override
5492
    public boolean equals(Object that) {
5968
    public boolean equals(Object that) {
5493
      if (that == null)
5969
      if (that == null)
5494
        return false;
5970
        return false;
5495
      if (that instanceof getDestinationCode_result)
5971
      if (that instanceof getDestinationCode_result)
Line 5533... Line 6009...
5533
      }
6009
      }
5534
 
6010
 
5535
      int lastComparison = 0;
6011
      int lastComparison = 0;
5536
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
6012
      getDestinationCode_result typedOther = (getDestinationCode_result)other;
5537
 
6013
 
5538
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
6014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
5539
      if (lastComparison != 0) {
6015
      if (lastComparison != 0) {
5540
        return lastComparison;
6016
        return lastComparison;
5541
      }
6017
      }
-
 
6018
      if (isSetSuccess()) {
5542
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
6019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
5543
      if (lastComparison != 0) {
6020
        if (lastComparison != 0) {
5544
        return lastComparison;
6021
          return lastComparison;
-
 
6022
        }
5545
      }
6023
      }
5546
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(isSetSe());
6024
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
5547
      if (lastComparison != 0) {
6025
      if (lastComparison != 0) {
5548
        return lastComparison;
6026
        return lastComparison;
5549
      }
6027
      }
-
 
6028
      if (isSetSe()) {
5550
      lastComparison = TBaseHelper.compareTo(se, typedOther.se);
6029
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
5551
      if (lastComparison != 0) {
6030
        if (lastComparison != 0) {
5552
        return lastComparison;
6031
          return lastComparison;
-
 
6032
        }
5553
      }
6033
      }
5554
      return 0;
6034
      return 0;
5555
    }
6035
    }
5556
 
6036
 
-
 
6037
    public _Fields fieldForId(int fieldId) {
-
 
6038
      return _Fields.findByThriftId(fieldId);
-
 
6039
    }
-
 
6040
 
5557
    public void read(TProtocol iprot) throws TException {
6041
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5558
      TField field;
6042
      org.apache.thrift.protocol.TField field;
5559
      iprot.readStructBegin();
6043
      iprot.readStructBegin();
5560
      while (true)
6044
      while (true)
5561
      {
6045
      {
5562
        field = iprot.readFieldBegin();
6046
        field = iprot.readFieldBegin();
5563
        if (field.type == TType.STOP) { 
6047
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5564
          break;
6048
          break;
5565
        }
6049
        }
5566
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5567
        if (fieldId == null) {
-
 
5568
          TProtocolUtil.skip(iprot, field.type);
-
 
5569
        } else {
-
 
5570
          switch (fieldId) {
6050
        switch (field.id) {
5571
            case SUCCESS:
6051
          case 0: // SUCCESS
5572
              if (field.type == TType.STRING) {
6052
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5573
                this.success = iprot.readString();
6053
              this.success = iprot.readString();
5574
              } else { 
6054
            } else { 
5575
                TProtocolUtil.skip(iprot, field.type);
6055
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5576
              }
6056
            }
5577
              break;
6057
            break;
5578
            case SE:
6058
          case 1: // SE
5579
              if (field.type == TType.STRUCT) {
6059
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
5580
                this.se = new LogisticsServiceException();
6060
              this.se = new LogisticsServiceException();
5581
                this.se.read(iprot);
6061
              this.se.read(iprot);
5582
              } else { 
6062
            } else { 
5583
                TProtocolUtil.skip(iprot, field.type);
6063
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5584
              }
6064
            }
5585
              break;
6065
            break;
5586
          }
6066
          default:
5587
          iprot.readFieldEnd();
6067
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5588
        }
6068
        }
-
 
6069
        iprot.readFieldEnd();
5589
      }
6070
      }
5590
      iprot.readStructEnd();
6071
      iprot.readStructEnd();
5591
      validate();
6072
      validate();
5592
    }
6073
    }
5593
 
6074
 
5594
    public void write(TProtocol oprot) throws TException {
6075
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5595
      oprot.writeStructBegin(STRUCT_DESC);
6076
      oprot.writeStructBegin(STRUCT_DESC);
5596
 
6077
 
5597
      if (this.isSetSuccess()) {
6078
      if (this.isSetSuccess()) {
5598
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6079
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
5599
        oprot.writeString(this.success);
6080
        oprot.writeString(this.success);
Line 5629... Line 6110...
5629
      first = false;
6110
      first = false;
5630
      sb.append(")");
6111
      sb.append(")");
5631
      return sb.toString();
6112
      return sb.toString();
5632
    }
6113
    }
5633
 
6114
 
5634
    public void validate() throws TException {
6115
    public void validate() throws org.apache.thrift.TException {
5635
      // check for required fields
6116
      // check for required fields
5636
    }
6117
    }
5637
 
6118
 
-
 
6119
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6120
      try {
-
 
6121
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6122
      } catch (org.apache.thrift.TException te) {
-
 
6123
        throw new java.io.IOException(te);
-
 
6124
      }
-
 
6125
    }
-
 
6126
 
-
 
6127
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6128
      try {
-
 
6129
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6130
      } catch (org.apache.thrift.TException te) {
-
 
6131
        throw new java.io.IOException(te);
-
 
6132
      }
-
 
6133
    }
-
 
6134
 
5638
  }
6135
  }
5639
 
6136
 
5640
  public static class getFreeAwbCount_args implements TBase<getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable, Comparable<getFreeAwbCount_args>   {
6137
  public static class getFreeAwbCount_args implements org.apache.thrift.TBase<getFreeAwbCount_args, getFreeAwbCount_args._Fields>, java.io.Serializable, Cloneable   {
5641
    private static final TStruct STRUCT_DESC = new TStruct("getFreeAwbCount_args");
6138
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_args");
5642
 
6139
 
5643
    private static final TField PROVIDER_ID_FIELD_DESC = new TField("providerId", TType.I64, (short)1);
6140
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
5644
    private static final TField TYPE_FIELD_DESC = new TField("type", TType.STRING, (short)2);
6141
    private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.STRING, (short)2);
5645
 
6142
 
5646
    private long providerId;
6143
    private long providerId; // required
5647
    private String type;
6144
    private String type; // required
5648
 
6145
 
5649
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6146
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
5650
    public enum _Fields implements TFieldIdEnum {
6147
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
5651
      PROVIDER_ID((short)1, "providerId"),
6148
      PROVIDER_ID((short)1, "providerId"),
5652
      TYPE((short)2, "type");
6149
      TYPE((short)2, "type");
5653
 
6150
 
5654
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
5655
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6151
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
5656
 
6152
 
5657
      static {
6153
      static {
5658
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6154
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
5659
          byId.put((int)field._thriftId, field);
-
 
5660
          byName.put(field.getFieldName(), field);
6155
          byName.put(field.getFieldName(), field);
5661
        }
6156
        }
5662
      }
6157
      }
5663
 
6158
 
5664
      /**
6159
      /**
5665
       * Find the _Fields constant that matches fieldId, or null if its not found.
6160
       * Find the _Fields constant that matches fieldId, or null if its not found.
5666
       */
6161
       */
5667
      public static _Fields findByThriftId(int fieldId) {
6162
      public static _Fields findByThriftId(int fieldId) {
5668
        return byId.get(fieldId);
6163
        switch(fieldId) {
-
 
6164
          case 1: // PROVIDER_ID
-
 
6165
            return PROVIDER_ID;
-
 
6166
          case 2: // TYPE
-
 
6167
            return TYPE;
-
 
6168
          default:
-
 
6169
            return null;
-
 
6170
        }
5669
      }
6171
      }
5670
 
6172
 
5671
      /**
6173
      /**
5672
       * Find the _Fields constant that matches fieldId, throwing an exception
6174
       * Find the _Fields constant that matches fieldId, throwing an exception
5673
       * if it is not found.
6175
       * if it is not found.
Line 5704... Line 6206...
5704
 
6206
 
5705
    // isset id assignments
6207
    // isset id assignments
5706
    private static final int __PROVIDERID_ISSET_ID = 0;
6208
    private static final int __PROVIDERID_ISSET_ID = 0;
5707
    private BitSet __isset_bit_vector = new BitSet(1);
6209
    private BitSet __isset_bit_vector = new BitSet(1);
5708
 
6210
 
5709
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6211
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
5710
      put(_Fields.PROVIDER_ID, new FieldMetaData("providerId", TFieldRequirementType.DEFAULT, 
-
 
5711
          new FieldValueMetaData(TType.I64)));
-
 
5712
      put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
5713
          new FieldValueMetaData(TType.STRING)));
-
 
5714
    }});
-
 
5715
 
-
 
5716
    static {
6212
    static {
-
 
6213
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6214
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6215
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6216
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6217
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
6218
      metaDataMap = Collections.unmodifiableMap(tmpMap);
5717
      FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
6219
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_args.class, metaDataMap);
5718
    }
6220
    }
5719
 
6221
 
5720
    public getFreeAwbCount_args() {
6222
    public getFreeAwbCount_args() {
5721
    }
6223
    }
5722
 
6224
 
Line 5744... Line 6246...
5744
 
6246
 
5745
    public getFreeAwbCount_args deepCopy() {
6247
    public getFreeAwbCount_args deepCopy() {
5746
      return new getFreeAwbCount_args(this);
6248
      return new getFreeAwbCount_args(this);
5747
    }
6249
    }
5748
 
6250
 
5749
    @Deprecated
6251
    @Override
5750
    public getFreeAwbCount_args clone() {
6252
    public void clear() {
5751
      return new getFreeAwbCount_args(this);
6253
      setProviderIdIsSet(false);
-
 
6254
      this.providerId = 0;
-
 
6255
      this.type = null;
5752
    }
6256
    }
5753
 
6257
 
5754
    public long getProviderId() {
6258
    public long getProviderId() {
5755
      return this.providerId;
6259
      return this.providerId;
5756
    }
6260
    }
5757
 
6261
 
5758
    public getFreeAwbCount_args setProviderId(long providerId) {
6262
    public void setProviderId(long providerId) {
5759
      this.providerId = providerId;
6263
      this.providerId = providerId;
5760
      setProviderIdIsSet(true);
6264
      setProviderIdIsSet(true);
5761
      return this;
-
 
5762
    }
6265
    }
5763
 
6266
 
5764
    public void unsetProviderId() {
6267
    public void unsetProviderId() {
5765
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
6268
      __isset_bit_vector.clear(__PROVIDERID_ISSET_ID);
5766
    }
6269
    }
5767
 
6270
 
5768
    /** Returns true if field providerId is set (has been asigned a value) and false otherwise */
6271
    /** Returns true if field providerId is set (has been assigned a value) and false otherwise */
5769
    public boolean isSetProviderId() {
6272
    public boolean isSetProviderId() {
5770
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
6273
      return __isset_bit_vector.get(__PROVIDERID_ISSET_ID);
5771
    }
6274
    }
5772
 
6275
 
5773
    public void setProviderIdIsSet(boolean value) {
6276
    public void setProviderIdIsSet(boolean value) {
Line 5776... Line 6279...
5776
 
6279
 
5777
    public String getType() {
6280
    public String getType() {
5778
      return this.type;
6281
      return this.type;
5779
    }
6282
    }
5780
 
6283
 
5781
    public getFreeAwbCount_args setType(String type) {
6284
    public void setType(String type) {
5782
      this.type = type;
6285
      this.type = type;
5783
      return this;
-
 
5784
    }
6286
    }
5785
 
6287
 
5786
    public void unsetType() {
6288
    public void unsetType() {
5787
      this.type = null;
6289
      this.type = null;
5788
    }
6290
    }
5789
 
6291
 
5790
    /** Returns true if field type is set (has been asigned a value) and false otherwise */
6292
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
5791
    public boolean isSetType() {
6293
    public boolean isSetType() {
5792
      return this.type != null;
6294
      return this.type != null;
5793
    }
6295
    }
5794
 
6296
 
5795
    public void setTypeIsSet(boolean value) {
6297
    public void setTypeIsSet(boolean value) {
Line 5817... Line 6319...
5817
        break;
6319
        break;
5818
 
6320
 
5819
      }
6321
      }
5820
    }
6322
    }
5821
 
6323
 
5822
    public void setFieldValue(int fieldID, Object value) {
-
 
5823
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
5824
    }
-
 
5825
 
-
 
5826
    public Object getFieldValue(_Fields field) {
6324
    public Object getFieldValue(_Fields field) {
5827
      switch (field) {
6325
      switch (field) {
5828
      case PROVIDER_ID:
6326
      case PROVIDER_ID:
5829
        return new Long(getProviderId());
6327
        return Long.valueOf(getProviderId());
5830
 
6328
 
5831
      case TYPE:
6329
      case TYPE:
5832
        return getType();
6330
        return getType();
5833
 
6331
 
5834
      }
6332
      }
5835
      throw new IllegalStateException();
6333
      throw new IllegalStateException();
5836
    }
6334
    }
5837
 
6335
 
5838
    public Object getFieldValue(int fieldId) {
-
 
5839
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
5840
    }
-
 
5841
 
-
 
5842
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6336
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
5843
    public boolean isSet(_Fields field) {
6337
    public boolean isSet(_Fields field) {
-
 
6338
      if (field == null) {
-
 
6339
        throw new IllegalArgumentException();
-
 
6340
      }
-
 
6341
 
5844
      switch (field) {
6342
      switch (field) {
5845
      case PROVIDER_ID:
6343
      case PROVIDER_ID:
5846
        return isSetProviderId();
6344
        return isSetProviderId();
5847
      case TYPE:
6345
      case TYPE:
5848
        return isSetType();
6346
        return isSetType();
5849
      }
6347
      }
5850
      throw new IllegalStateException();
6348
      throw new IllegalStateException();
5851
    }
6349
    }
5852
 
6350
 
5853
    public boolean isSet(int fieldID) {
-
 
5854
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
5855
    }
-
 
5856
 
-
 
5857
    @Override
6351
    @Override
5858
    public boolean equals(Object that) {
6352
    public boolean equals(Object that) {
5859
      if (that == null)
6353
      if (that == null)
5860
        return false;
6354
        return false;
5861
      if (that instanceof getFreeAwbCount_args)
6355
      if (that instanceof getFreeAwbCount_args)
Line 5899... Line 6393...
5899
      }
6393
      }
5900
 
6394
 
5901
      int lastComparison = 0;
6395
      int lastComparison = 0;
5902
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
6396
      getFreeAwbCount_args typedOther = (getFreeAwbCount_args)other;
5903
 
6397
 
5904
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(isSetProviderId());
6398
      lastComparison = Boolean.valueOf(isSetProviderId()).compareTo(typedOther.isSetProviderId());
5905
      if (lastComparison != 0) {
6399
      if (lastComparison != 0) {
5906
        return lastComparison;
6400
        return lastComparison;
5907
      }
6401
      }
-
 
6402
      if (isSetProviderId()) {
5908
      lastComparison = TBaseHelper.compareTo(providerId, typedOther.providerId);
6403
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
5909
      if (lastComparison != 0) {
6404
        if (lastComparison != 0) {
5910
        return lastComparison;
6405
          return lastComparison;
-
 
6406
        }
5911
      }
6407
      }
5912
      lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
6408
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
5913
      if (lastComparison != 0) {
6409
      if (lastComparison != 0) {
5914
        return lastComparison;
6410
        return lastComparison;
5915
      }
6411
      }
-
 
6412
      if (isSetType()) {
5916
      lastComparison = TBaseHelper.compareTo(type, typedOther.type);
6413
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
5917
      if (lastComparison != 0) {
6414
        if (lastComparison != 0) {
5918
        return lastComparison;
6415
          return lastComparison;
-
 
6416
        }
5919
      }
6417
      }
5920
      return 0;
6418
      return 0;
5921
    }
6419
    }
5922
 
6420
 
-
 
6421
    public _Fields fieldForId(int fieldId) {
-
 
6422
      return _Fields.findByThriftId(fieldId);
-
 
6423
    }
-
 
6424
 
5923
    public void read(TProtocol iprot) throws TException {
6425
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
5924
      TField field;
6426
      org.apache.thrift.protocol.TField field;
5925
      iprot.readStructBegin();
6427
      iprot.readStructBegin();
5926
      while (true)
6428
      while (true)
5927
      {
6429
      {
5928
        field = iprot.readFieldBegin();
6430
        field = iprot.readFieldBegin();
5929
        if (field.type == TType.STOP) { 
6431
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
5930
          break;
6432
          break;
5931
        }
6433
        }
5932
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
5933
        if (fieldId == null) {
-
 
5934
          TProtocolUtil.skip(iprot, field.type);
-
 
5935
        } else {
-
 
5936
          switch (fieldId) {
6434
        switch (field.id) {
5937
            case PROVIDER_ID:
6435
          case 1: // PROVIDER_ID
5938
              if (field.type == TType.I64) {
6436
            if (field.type == org.apache.thrift.protocol.TType.I64) {
5939
                this.providerId = iprot.readI64();
6437
              this.providerId = iprot.readI64();
5940
                setProviderIdIsSet(true);
6438
              setProviderIdIsSet(true);
5941
              } else { 
6439
            } else { 
5942
                TProtocolUtil.skip(iprot, field.type);
6440
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5943
              }
6441
            }
5944
              break;
6442
            break;
5945
            case TYPE:
6443
          case 2: // TYPE
5946
              if (field.type == TType.STRING) {
6444
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
5947
                this.type = iprot.readString();
6445
              this.type = iprot.readString();
5948
              } else { 
6446
            } else { 
5949
                TProtocolUtil.skip(iprot, field.type);
6447
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5950
              }
6448
            }
5951
              break;
6449
            break;
5952
          }
6450
          default:
5953
          iprot.readFieldEnd();
6451
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
5954
        }
6452
        }
-
 
6453
        iprot.readFieldEnd();
5955
      }
6454
      }
5956
      iprot.readStructEnd();
6455
      iprot.readStructEnd();
5957
      validate();
6456
      validate();
5958
    }
6457
    }
5959
 
6458
 
5960
    public void write(TProtocol oprot) throws TException {
6459
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
5961
      validate();
6460
      validate();
5962
 
6461
 
5963
      oprot.writeStructBegin(STRUCT_DESC);
6462
      oprot.writeStructBegin(STRUCT_DESC);
5964
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
6463
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
5965
      oprot.writeI64(this.providerId);
6464
      oprot.writeI64(this.providerId);
Line 5991... Line 6490...
5991
      first = false;
6490
      first = false;
5992
      sb.append(")");
6491
      sb.append(")");
5993
      return sb.toString();
6492
      return sb.toString();
5994
    }
6493
    }
5995
 
6494
 
5996
    public void validate() throws TException {
6495
    public void validate() throws org.apache.thrift.TException {
5997
      // check for required fields
6496
      // check for required fields
5998
    }
6497
    }
5999
 
6498
 
-
 
6499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6500
      try {
-
 
6501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6502
      } catch (org.apache.thrift.TException te) {
-
 
6503
        throw new java.io.IOException(te);
-
 
6504
      }
-
 
6505
    }
-
 
6506
 
-
 
6507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6508
      try {
-
 
6509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6510
      } catch (org.apache.thrift.TException te) {
-
 
6511
        throw new java.io.IOException(te);
-
 
6512
      }
-
 
6513
    }
-
 
6514
 
6000
  }
6515
  }
6001
 
6516
 
6002
  public static class getFreeAwbCount_result implements TBase<getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable, Comparable<getFreeAwbCount_result>   {
6517
  public static class getFreeAwbCount_result implements org.apache.thrift.TBase<getFreeAwbCount_result, getFreeAwbCount_result._Fields>, java.io.Serializable, Cloneable   {
6003
    private static final TStruct STRUCT_DESC = new TStruct("getFreeAwbCount_result");
6518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getFreeAwbCount_result");
6004
 
6519
 
6005
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
6520
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
6006
 
6521
 
6007
    private long success;
6522
    private long success; // required
6008
 
6523
 
6009
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6010
    public enum _Fields implements TFieldIdEnum {
6525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6011
      SUCCESS((short)0, "success");
6526
      SUCCESS((short)0, "success");
6012
 
6527
 
6013
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6014
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6015
 
6529
 
6016
      static {
6530
      static {
6017
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6018
          byId.put((int)field._thriftId, field);
-
 
6019
          byName.put(field.getFieldName(), field);
6532
          byName.put(field.getFieldName(), field);
6020
        }
6533
        }
6021
      }
6534
      }
6022
 
6535
 
6023
      /**
6536
      /**
6024
       * Find the _Fields constant that matches fieldId, or null if its not found.
6537
       * Find the _Fields constant that matches fieldId, or null if its not found.
6025
       */
6538
       */
6026
      public static _Fields findByThriftId(int fieldId) {
6539
      public static _Fields findByThriftId(int fieldId) {
6027
        return byId.get(fieldId);
6540
        switch(fieldId) {
-
 
6541
          case 0: // SUCCESS
-
 
6542
            return SUCCESS;
-
 
6543
          default:
-
 
6544
            return null;
-
 
6545
        }
6028
      }
6546
      }
6029
 
6547
 
6030
      /**
6548
      /**
6031
       * Find the _Fields constant that matches fieldId, throwing an exception
6549
       * Find the _Fields constant that matches fieldId, throwing an exception
6032
       * if it is not found.
6550
       * if it is not found.
Line 6063... Line 6581...
6063
 
6581
 
6064
    // isset id assignments
6582
    // isset id assignments
6065
    private static final int __SUCCESS_ISSET_ID = 0;
6583
    private static final int __SUCCESS_ISSET_ID = 0;
6066
    private BitSet __isset_bit_vector = new BitSet(1);
6584
    private BitSet __isset_bit_vector = new BitSet(1);
6067
 
6585
 
6068
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6586
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6069
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6070
          new FieldValueMetaData(TType.I64)));
-
 
6071
    }});
-
 
6072
 
-
 
6073
    static {
6587
    static {
-
 
6588
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6589
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6590
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6591
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6074
      FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
6592
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getFreeAwbCount_result.class, metaDataMap);
6075
    }
6593
    }
6076
 
6594
 
6077
    public getFreeAwbCount_result() {
6595
    public getFreeAwbCount_result() {
6078
    }
6596
    }
6079
 
6597
 
Line 6096... Line 6614...
6096
 
6614
 
6097
    public getFreeAwbCount_result deepCopy() {
6615
    public getFreeAwbCount_result deepCopy() {
6098
      return new getFreeAwbCount_result(this);
6616
      return new getFreeAwbCount_result(this);
6099
    }
6617
    }
6100
 
6618
 
6101
    @Deprecated
6619
    @Override
6102
    public getFreeAwbCount_result clone() {
6620
    public void clear() {
6103
      return new getFreeAwbCount_result(this);
6621
      setSuccessIsSet(false);
-
 
6622
      this.success = 0;
6104
    }
6623
    }
6105
 
6624
 
6106
    public long getSuccess() {
6625
    public long getSuccess() {
6107
      return this.success;
6626
      return this.success;
6108
    }
6627
    }
6109
 
6628
 
6110
    public getFreeAwbCount_result setSuccess(long success) {
6629
    public void setSuccess(long success) {
6111
      this.success = success;
6630
      this.success = success;
6112
      setSuccessIsSet(true);
6631
      setSuccessIsSet(true);
6113
      return this;
-
 
6114
    }
6632
    }
6115
 
6633
 
6116
    public void unsetSuccess() {
6634
    public void unsetSuccess() {
6117
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6635
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
6118
    }
6636
    }
6119
 
6637
 
6120
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
6638
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6121
    public boolean isSetSuccess() {
6639
    public boolean isSetSuccess() {
6122
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6640
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
6123
    }
6641
    }
6124
 
6642
 
6125
    public void setSuccessIsSet(boolean value) {
6643
    public void setSuccessIsSet(boolean value) {
Line 6137... Line 6655...
6137
        break;
6655
        break;
6138
 
6656
 
6139
      }
6657
      }
6140
    }
6658
    }
6141
 
6659
 
6142
    public void setFieldValue(int fieldID, Object value) {
-
 
6143
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6144
    }
-
 
6145
 
-
 
6146
    public Object getFieldValue(_Fields field) {
6660
    public Object getFieldValue(_Fields field) {
6147
      switch (field) {
6661
      switch (field) {
6148
      case SUCCESS:
6662
      case SUCCESS:
6149
        return new Long(getSuccess());
6663
        return Long.valueOf(getSuccess());
6150
 
6664
 
6151
      }
6665
      }
6152
      throw new IllegalStateException();
6666
      throw new IllegalStateException();
6153
    }
6667
    }
6154
 
6668
 
6155
    public Object getFieldValue(int fieldId) {
-
 
6156
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6157
    }
-
 
6158
 
-
 
6159
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
6669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6160
    public boolean isSet(_Fields field) {
6670
    public boolean isSet(_Fields field) {
-
 
6671
      if (field == null) {
-
 
6672
        throw new IllegalArgumentException();
-
 
6673
      }
-
 
6674
 
6161
      switch (field) {
6675
      switch (field) {
6162
      case SUCCESS:
6676
      case SUCCESS:
6163
        return isSetSuccess();
6677
        return isSetSuccess();
6164
      }
6678
      }
6165
      throw new IllegalStateException();
6679
      throw new IllegalStateException();
6166
    }
6680
    }
6167
 
6681
 
6168
    public boolean isSet(int fieldID) {
-
 
6169
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6170
    }
-
 
6171
 
-
 
6172
    @Override
6682
    @Override
6173
    public boolean equals(Object that) {
6683
    public boolean equals(Object that) {
6174
      if (that == null)
6684
      if (that == null)
6175
        return false;
6685
        return false;
6176
      if (that instanceof getFreeAwbCount_result)
6686
      if (that instanceof getFreeAwbCount_result)
Line 6205... Line 6715...
6205
      }
6715
      }
6206
 
6716
 
6207
      int lastComparison = 0;
6717
      int lastComparison = 0;
6208
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
6718
      getFreeAwbCount_result typedOther = (getFreeAwbCount_result)other;
6209
 
6719
 
6210
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
6720
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6211
      if (lastComparison != 0) {
6721
      if (lastComparison != 0) {
6212
        return lastComparison;
6722
        return lastComparison;
6213
      }
6723
      }
-
 
6724
      if (isSetSuccess()) {
6214
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
6725
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6215
      if (lastComparison != 0) {
6726
        if (lastComparison != 0) {
6216
        return lastComparison;
6727
          return lastComparison;
-
 
6728
        }
6217
      }
6729
      }
6218
      return 0;
6730
      return 0;
6219
    }
6731
    }
6220
 
6732
 
-
 
6733
    public _Fields fieldForId(int fieldId) {
-
 
6734
      return _Fields.findByThriftId(fieldId);
-
 
6735
    }
-
 
6736
 
6221
    public void read(TProtocol iprot) throws TException {
6737
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6222
      TField field;
6738
      org.apache.thrift.protocol.TField field;
6223
      iprot.readStructBegin();
6739
      iprot.readStructBegin();
6224
      while (true)
6740
      while (true)
6225
      {
6741
      {
6226
        field = iprot.readFieldBegin();
6742
        field = iprot.readFieldBegin();
6227
        if (field.type == TType.STOP) { 
6743
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6228
          break;
6744
          break;
6229
        }
6745
        }
6230
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6231
        if (fieldId == null) {
-
 
6232
          TProtocolUtil.skip(iprot, field.type);
-
 
6233
        } else {
-
 
6234
          switch (fieldId) {
6746
        switch (field.id) {
6235
            case SUCCESS:
6747
          case 0: // SUCCESS
6236
              if (field.type == TType.I64) {
6748
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6237
                this.success = iprot.readI64();
6749
              this.success = iprot.readI64();
6238
                setSuccessIsSet(true);
6750
              setSuccessIsSet(true);
6239
              } else { 
6751
            } else { 
6240
                TProtocolUtil.skip(iprot, field.type);
6752
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6241
              }
6753
            }
6242
              break;
6754
            break;
6243
          }
6755
          default:
6244
          iprot.readFieldEnd();
6756
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6245
        }
6757
        }
-
 
6758
        iprot.readFieldEnd();
6246
      }
6759
      }
6247
      iprot.readStructEnd();
6760
      iprot.readStructEnd();
6248
      validate();
6761
      validate();
6249
    }
6762
    }
6250
 
6763
 
6251
    public void write(TProtocol oprot) throws TException {
6764
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6252
      oprot.writeStructBegin(STRUCT_DESC);
6765
      oprot.writeStructBegin(STRUCT_DESC);
6253
 
6766
 
6254
      if (this.isSetSuccess()) {
6767
      if (this.isSetSuccess()) {
6255
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6768
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6256
        oprot.writeI64(this.success);
6769
        oprot.writeI64(this.success);
Line 6270... Line 6783...
6270
      first = false;
6783
      first = false;
6271
      sb.append(")");
6784
      sb.append(")");
6272
      return sb.toString();
6785
      return sb.toString();
6273
    }
6786
    }
6274
 
6787
 
6275
    public void validate() throws TException {
6788
    public void validate() throws org.apache.thrift.TException {
6276
      // check for required fields
6789
      // check for required fields
6277
    }
6790
    }
6278
 
6791
 
-
 
6792
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
6793
      try {
-
 
6794
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
6795
      } catch (org.apache.thrift.TException te) {
-
 
6796
        throw new java.io.IOException(te);
-
 
6797
      }
-
 
6798
    }
-
 
6799
 
-
 
6800
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
6801
      try {
-
 
6802
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
6803
      } catch (org.apache.thrift.TException te) {
-
 
6804
        throw new java.io.IOException(te);
-
 
6805
      }
-
 
6806
    }
-
 
6807
 
6279
  }
6808
  }
6280
 
6809
 
6281
  public static class getHolidays_args implements TBase<getHolidays_args._Fields>, java.io.Serializable, Cloneable, Comparable<getHolidays_args>   {
6810
  public static class getHolidays_args implements org.apache.thrift.TBase<getHolidays_args, getHolidays_args._Fields>, java.io.Serializable, Cloneable   {
6282
    private static final TStruct STRUCT_DESC = new TStruct("getHolidays_args");
6811
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_args");
6283
 
6812
 
6284
    private static final TField FROM_DATE_FIELD_DESC = new TField("fromDate", TType.I64, (short)1);
6813
    private static final org.apache.thrift.protocol.TField FROM_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("fromDate", org.apache.thrift.protocol.TType.I64, (short)1);
6285
    private static final TField TO_DATE_FIELD_DESC = new TField("toDate", TType.I64, (short)2);
6814
    private static final org.apache.thrift.protocol.TField TO_DATE_FIELD_DESC = new org.apache.thrift.protocol.TField("toDate", org.apache.thrift.protocol.TType.I64, (short)2);
6286
 
6815
 
6287
    private long fromDate;
6816
    private long fromDate; // required
6288
    private long toDate;
6817
    private long toDate; // required
6289
 
6818
 
6290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6819
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6291
    public enum _Fields implements TFieldIdEnum {
6820
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6292
      FROM_DATE((short)1, "fromDate"),
6821
      FROM_DATE((short)1, "fromDate"),
6293
      TO_DATE((short)2, "toDate");
6822
      TO_DATE((short)2, "toDate");
6294
 
6823
 
6295
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6296
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6824
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6297
 
6825
 
6298
      static {
6826
      static {
6299
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6827
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6300
          byId.put((int)field._thriftId, field);
-
 
6301
          byName.put(field.getFieldName(), field);
6828
          byName.put(field.getFieldName(), field);
6302
        }
6829
        }
6303
      }
6830
      }
6304
 
6831
 
6305
      /**
6832
      /**
6306
       * Find the _Fields constant that matches fieldId, or null if its not found.
6833
       * Find the _Fields constant that matches fieldId, or null if its not found.
6307
       */
6834
       */
6308
      public static _Fields findByThriftId(int fieldId) {
6835
      public static _Fields findByThriftId(int fieldId) {
6309
        return byId.get(fieldId);
6836
        switch(fieldId) {
-
 
6837
          case 1: // FROM_DATE
-
 
6838
            return FROM_DATE;
-
 
6839
          case 2: // TO_DATE
-
 
6840
            return TO_DATE;
-
 
6841
          default:
-
 
6842
            return null;
-
 
6843
        }
6310
      }
6844
      }
6311
 
6845
 
6312
      /**
6846
      /**
6313
       * Find the _Fields constant that matches fieldId, throwing an exception
6847
       * Find the _Fields constant that matches fieldId, throwing an exception
6314
       * if it is not found.
6848
       * if it is not found.
Line 6346... Line 6880...
6346
    // isset id assignments
6880
    // isset id assignments
6347
    private static final int __FROMDATE_ISSET_ID = 0;
6881
    private static final int __FROMDATE_ISSET_ID = 0;
6348
    private static final int __TODATE_ISSET_ID = 1;
6882
    private static final int __TODATE_ISSET_ID = 1;
6349
    private BitSet __isset_bit_vector = new BitSet(2);
6883
    private BitSet __isset_bit_vector = new BitSet(2);
6350
 
6884
 
6351
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
6885
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6352
      put(_Fields.FROM_DATE, new FieldMetaData("fromDate", TFieldRequirementType.DEFAULT, 
-
 
6353
          new FieldValueMetaData(TType.I64)));
-
 
6354
      put(_Fields.TO_DATE, new FieldMetaData("toDate", TFieldRequirementType.DEFAULT, 
-
 
6355
          new FieldValueMetaData(TType.I64)));
-
 
6356
    }});
-
 
6357
 
-
 
6358
    static {
6886
    static {
-
 
6887
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
6888
      tmpMap.put(_Fields.FROM_DATE, new org.apache.thrift.meta_data.FieldMetaData("fromDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6889
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6890
      tmpMap.put(_Fields.TO_DATE, new org.apache.thrift.meta_data.FieldMetaData("toDate", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
6891
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
6892
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6359
      FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
6893
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_args.class, metaDataMap);
6360
    }
6894
    }
6361
 
6895
 
6362
    public getHolidays_args() {
6896
    public getHolidays_args() {
6363
    }
6897
    }
6364
 
6898
 
Line 6385... Line 6919...
6385
 
6919
 
6386
    public getHolidays_args deepCopy() {
6920
    public getHolidays_args deepCopy() {
6387
      return new getHolidays_args(this);
6921
      return new getHolidays_args(this);
6388
    }
6922
    }
6389
 
6923
 
6390
    @Deprecated
6924
    @Override
6391
    public getHolidays_args clone() {
6925
    public void clear() {
-
 
6926
      setFromDateIsSet(false);
-
 
6927
      this.fromDate = 0;
6392
      return new getHolidays_args(this);
6928
      setToDateIsSet(false);
-
 
6929
      this.toDate = 0;
6393
    }
6930
    }
6394
 
6931
 
6395
    public long getFromDate() {
6932
    public long getFromDate() {
6396
      return this.fromDate;
6933
      return this.fromDate;
6397
    }
6934
    }
6398
 
6935
 
6399
    public getHolidays_args setFromDate(long fromDate) {
6936
    public void setFromDate(long fromDate) {
6400
      this.fromDate = fromDate;
6937
      this.fromDate = fromDate;
6401
      setFromDateIsSet(true);
6938
      setFromDateIsSet(true);
6402
      return this;
-
 
6403
    }
6939
    }
6404
 
6940
 
6405
    public void unsetFromDate() {
6941
    public void unsetFromDate() {
6406
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
6942
      __isset_bit_vector.clear(__FROMDATE_ISSET_ID);
6407
    }
6943
    }
6408
 
6944
 
6409
    /** Returns true if field fromDate is set (has been asigned a value) and false otherwise */
6945
    /** Returns true if field fromDate is set (has been assigned a value) and false otherwise */
6410
    public boolean isSetFromDate() {
6946
    public boolean isSetFromDate() {
6411
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
6947
      return __isset_bit_vector.get(__FROMDATE_ISSET_ID);
6412
    }
6948
    }
6413
 
6949
 
6414
    public void setFromDateIsSet(boolean value) {
6950
    public void setFromDateIsSet(boolean value) {
Line 6417... Line 6953...
6417
 
6953
 
6418
    public long getToDate() {
6954
    public long getToDate() {
6419
      return this.toDate;
6955
      return this.toDate;
6420
    }
6956
    }
6421
 
6957
 
6422
    public getHolidays_args setToDate(long toDate) {
6958
    public void setToDate(long toDate) {
6423
      this.toDate = toDate;
6959
      this.toDate = toDate;
6424
      setToDateIsSet(true);
6960
      setToDateIsSet(true);
6425
      return this;
-
 
6426
    }
6961
    }
6427
 
6962
 
6428
    public void unsetToDate() {
6963
    public void unsetToDate() {
6429
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
6964
      __isset_bit_vector.clear(__TODATE_ISSET_ID);
6430
    }
6965
    }
6431
 
6966
 
6432
    /** Returns true if field toDate is set (has been asigned a value) and false otherwise */
6967
    /** Returns true if field toDate is set (has been assigned a value) and false otherwise */
6433
    public boolean isSetToDate() {
6968
    public boolean isSetToDate() {
6434
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
6969
      return __isset_bit_vector.get(__TODATE_ISSET_ID);
6435
    }
6970
    }
6436
 
6971
 
6437
    public void setToDateIsSet(boolean value) {
6972
    public void setToDateIsSet(boolean value) {
Line 6457... Line 6992...
6457
        break;
6992
        break;
6458
 
6993
 
6459
      }
6994
      }
6460
    }
6995
    }
6461
 
6996
 
6462
    public void setFieldValue(int fieldID, Object value) {
-
 
6463
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6464
    }
-
 
6465
 
-
 
6466
    public Object getFieldValue(_Fields field) {
6997
    public Object getFieldValue(_Fields field) {
6467
      switch (field) {
6998
      switch (field) {
6468
      case FROM_DATE:
6999
      case FROM_DATE:
6469
        return new Long(getFromDate());
7000
        return Long.valueOf(getFromDate());
6470
 
7001
 
6471
      case TO_DATE:
7002
      case TO_DATE:
6472
        return new Long(getToDate());
7003
        return Long.valueOf(getToDate());
6473
 
7004
 
6474
      }
7005
      }
6475
      throw new IllegalStateException();
7006
      throw new IllegalStateException();
6476
    }
7007
    }
6477
 
7008
 
6478
    public Object getFieldValue(int fieldId) {
-
 
6479
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6480
    }
-
 
6481
 
-
 
6482
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7009
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6483
    public boolean isSet(_Fields field) {
7010
    public boolean isSet(_Fields field) {
-
 
7011
      if (field == null) {
-
 
7012
        throw new IllegalArgumentException();
-
 
7013
      }
-
 
7014
 
6484
      switch (field) {
7015
      switch (field) {
6485
      case FROM_DATE:
7016
      case FROM_DATE:
6486
        return isSetFromDate();
7017
        return isSetFromDate();
6487
      case TO_DATE:
7018
      case TO_DATE:
6488
        return isSetToDate();
7019
        return isSetToDate();
6489
      }
7020
      }
6490
      throw new IllegalStateException();
7021
      throw new IllegalStateException();
6491
    }
7022
    }
6492
 
7023
 
6493
    public boolean isSet(int fieldID) {
-
 
6494
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6495
    }
-
 
6496
 
-
 
6497
    @Override
7024
    @Override
6498
    public boolean equals(Object that) {
7025
    public boolean equals(Object that) {
6499
      if (that == null)
7026
      if (that == null)
6500
        return false;
7027
        return false;
6501
      if (that instanceof getHolidays_args)
7028
      if (that instanceof getHolidays_args)
Line 6539... Line 7066...
6539
      }
7066
      }
6540
 
7067
 
6541
      int lastComparison = 0;
7068
      int lastComparison = 0;
6542
      getHolidays_args typedOther = (getHolidays_args)other;
7069
      getHolidays_args typedOther = (getHolidays_args)other;
6543
 
7070
 
6544
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(isSetFromDate());
7071
      lastComparison = Boolean.valueOf(isSetFromDate()).compareTo(typedOther.isSetFromDate());
6545
      if (lastComparison != 0) {
7072
      if (lastComparison != 0) {
6546
        return lastComparison;
7073
        return lastComparison;
6547
      }
7074
      }
-
 
7075
      if (isSetFromDate()) {
6548
      lastComparison = TBaseHelper.compareTo(fromDate, typedOther.fromDate);
7076
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.fromDate, typedOther.fromDate);
6549
      if (lastComparison != 0) {
7077
        if (lastComparison != 0) {
6550
        return lastComparison;
7078
          return lastComparison;
-
 
7079
        }
6551
      }
7080
      }
6552
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(isSetToDate());
7081
      lastComparison = Boolean.valueOf(isSetToDate()).compareTo(typedOther.isSetToDate());
6553
      if (lastComparison != 0) {
7082
      if (lastComparison != 0) {
6554
        return lastComparison;
7083
        return lastComparison;
6555
      }
7084
      }
-
 
7085
      if (isSetToDate()) {
6556
      lastComparison = TBaseHelper.compareTo(toDate, typedOther.toDate);
7086
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.toDate, typedOther.toDate);
6557
      if (lastComparison != 0) {
7087
        if (lastComparison != 0) {
6558
        return lastComparison;
7088
          return lastComparison;
-
 
7089
        }
6559
      }
7090
      }
6560
      return 0;
7091
      return 0;
6561
    }
7092
    }
6562
 
7093
 
-
 
7094
    public _Fields fieldForId(int fieldId) {
-
 
7095
      return _Fields.findByThriftId(fieldId);
-
 
7096
    }
-
 
7097
 
6563
    public void read(TProtocol iprot) throws TException {
7098
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6564
      TField field;
7099
      org.apache.thrift.protocol.TField field;
6565
      iprot.readStructBegin();
7100
      iprot.readStructBegin();
6566
      while (true)
7101
      while (true)
6567
      {
7102
      {
6568
        field = iprot.readFieldBegin();
7103
        field = iprot.readFieldBegin();
6569
        if (field.type == TType.STOP) { 
7104
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6570
          break;
7105
          break;
6571
        }
7106
        }
6572
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
6573
        if (fieldId == null) {
-
 
6574
          TProtocolUtil.skip(iprot, field.type);
-
 
6575
        } else {
-
 
6576
          switch (fieldId) {
7107
        switch (field.id) {
6577
            case FROM_DATE:
7108
          case 1: // FROM_DATE
6578
              if (field.type == TType.I64) {
7109
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6579
                this.fromDate = iprot.readI64();
7110
              this.fromDate = iprot.readI64();
6580
                setFromDateIsSet(true);
7111
              setFromDateIsSet(true);
6581
              } else { 
7112
            } else { 
6582
                TProtocolUtil.skip(iprot, field.type);
7113
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6583
              }
7114
            }
6584
              break;
7115
            break;
6585
            case TO_DATE:
7116
          case 2: // TO_DATE
6586
              if (field.type == TType.I64) {
7117
            if (field.type == org.apache.thrift.protocol.TType.I64) {
6587
                this.toDate = iprot.readI64();
7118
              this.toDate = iprot.readI64();
6588
                setToDateIsSet(true);
7119
              setToDateIsSet(true);
6589
              } else { 
7120
            } else { 
6590
                TProtocolUtil.skip(iprot, field.type);
7121
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6591
              }
7122
            }
6592
              break;
7123
            break;
6593
          }
7124
          default:
6594
          iprot.readFieldEnd();
7125
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6595
        }
7126
        }
-
 
7127
        iprot.readFieldEnd();
6596
      }
7128
      }
6597
      iprot.readStructEnd();
7129
      iprot.readStructEnd();
6598
      validate();
7130
      validate();
6599
    }
7131
    }
6600
 
7132
 
6601
    public void write(TProtocol oprot) throws TException {
7133
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6602
      validate();
7134
      validate();
6603
 
7135
 
6604
      oprot.writeStructBegin(STRUCT_DESC);
7136
      oprot.writeStructBegin(STRUCT_DESC);
6605
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
7137
      oprot.writeFieldBegin(FROM_DATE_FIELD_DESC);
6606
      oprot.writeI64(this.fromDate);
7138
      oprot.writeI64(this.fromDate);
Line 6626... Line 7158...
6626
      first = false;
7158
      first = false;
6627
      sb.append(")");
7159
      sb.append(")");
6628
      return sb.toString();
7160
      return sb.toString();
6629
    }
7161
    }
6630
 
7162
 
6631
    public void validate() throws TException {
7163
    public void validate() throws org.apache.thrift.TException {
6632
      // check for required fields
7164
      // check for required fields
6633
    }
7165
    }
6634
 
7166
 
-
 
7167
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7168
      try {
-
 
7169
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7170
      } catch (org.apache.thrift.TException te) {
-
 
7171
        throw new java.io.IOException(te);
-
 
7172
      }
-
 
7173
    }
-
 
7174
 
-
 
7175
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7176
      try {
-
 
7177
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
7178
        __isset_bit_vector = new BitSet(1);
-
 
7179
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7180
      } catch (org.apache.thrift.TException te) {
-
 
7181
        throw new java.io.IOException(te);
-
 
7182
      }
-
 
7183
    }
-
 
7184
 
6635
  }
7185
  }
6636
 
7186
 
6637
  public static class getHolidays_result implements TBase<getHolidays_result._Fields>, java.io.Serializable, Cloneable, Comparable<getHolidays_result>   {
7187
  public static class getHolidays_result implements org.apache.thrift.TBase<getHolidays_result, getHolidays_result._Fields>, java.io.Serializable, Cloneable   {
6638
    private static final TStruct STRUCT_DESC = new TStruct("getHolidays_result");
7188
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getHolidays_result");
6639
 
7189
 
6640
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
7190
    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);
6641
 
7191
 
6642
    private List<Long> success;
7192
    private List<Long> success; // required
6643
 
7193
 
6644
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7194
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6645
    public enum _Fields implements TFieldIdEnum {
7195
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6646
      SUCCESS((short)0, "success");
7196
      SUCCESS((short)0, "success");
6647
 
7197
 
6648
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6649
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7198
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6650
 
7199
 
6651
      static {
7200
      static {
6652
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7201
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6653
          byId.put((int)field._thriftId, field);
-
 
6654
          byName.put(field.getFieldName(), field);
7202
          byName.put(field.getFieldName(), field);
6655
        }
7203
        }
6656
      }
7204
      }
6657
 
7205
 
6658
      /**
7206
      /**
6659
       * Find the _Fields constant that matches fieldId, or null if its not found.
7207
       * Find the _Fields constant that matches fieldId, or null if its not found.
6660
       */
7208
       */
6661
      public static _Fields findByThriftId(int fieldId) {
7209
      public static _Fields findByThriftId(int fieldId) {
6662
        return byId.get(fieldId);
7210
        switch(fieldId) {
-
 
7211
          case 0: // SUCCESS
-
 
7212
            return SUCCESS;
-
 
7213
          default:
-
 
7214
            return null;
-
 
7215
        }
6663
      }
7216
      }
6664
 
7217
 
6665
      /**
7218
      /**
6666
       * Find the _Fields constant that matches fieldId, throwing an exception
7219
       * Find the _Fields constant that matches fieldId, throwing an exception
6667
       * if it is not found.
7220
       * if it is not found.
Line 6696... Line 7249...
6696
      }
7249
      }
6697
    }
7250
    }
6698
 
7251
 
6699
    // isset id assignments
7252
    // isset id assignments
6700
 
7253
 
6701
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7254
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
6702
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
6703
          new ListMetaData(TType.LIST, 
-
 
6704
              new FieldValueMetaData(TType.I64))));
-
 
6705
    }});
-
 
6706
 
-
 
6707
    static {
7255
    static {
-
 
7256
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7257
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7258
          new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST, 
-
 
7259
              new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64))));
-
 
7260
      metaDataMap = Collections.unmodifiableMap(tmpMap);
6708
      FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
7261
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getHolidays_result.class, metaDataMap);
6709
    }
7262
    }
6710
 
7263
 
6711
    public getHolidays_result() {
7264
    public getHolidays_result() {
6712
    }
7265
    }
6713
 
7266
 
Line 6733... Line 7286...
6733
 
7286
 
6734
    public getHolidays_result deepCopy() {
7287
    public getHolidays_result deepCopy() {
6735
      return new getHolidays_result(this);
7288
      return new getHolidays_result(this);
6736
    }
7289
    }
6737
 
7290
 
6738
    @Deprecated
7291
    @Override
6739
    public getHolidays_result clone() {
7292
    public void clear() {
6740
      return new getHolidays_result(this);
7293
      this.success = null;
6741
    }
7294
    }
6742
 
7295
 
6743
    public int getSuccessSize() {
7296
    public int getSuccessSize() {
6744
      return (this.success == null) ? 0 : this.success.size();
7297
      return (this.success == null) ? 0 : this.success.size();
6745
    }
7298
    }
Line 6757... Line 7310...
6757
 
7310
 
6758
    public List<Long> getSuccess() {
7311
    public List<Long> getSuccess() {
6759
      return this.success;
7312
      return this.success;
6760
    }
7313
    }
6761
 
7314
 
6762
    public getHolidays_result setSuccess(List<Long> success) {
7315
    public void setSuccess(List<Long> success) {
6763
      this.success = success;
7316
      this.success = success;
6764
      return this;
-
 
6765
    }
7317
    }
6766
 
7318
 
6767
    public void unsetSuccess() {
7319
    public void unsetSuccess() {
6768
      this.success = null;
7320
      this.success = null;
6769
    }
7321
    }
6770
 
7322
 
6771
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7323
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
6772
    public boolean isSetSuccess() {
7324
    public boolean isSetSuccess() {
6773
      return this.success != null;
7325
      return this.success != null;
6774
    }
7326
    }
6775
 
7327
 
6776
    public void setSuccessIsSet(boolean value) {
7328
    public void setSuccessIsSet(boolean value) {
Line 6790... Line 7342...
6790
        break;
7342
        break;
6791
 
7343
 
6792
      }
7344
      }
6793
    }
7345
    }
6794
 
7346
 
6795
    public void setFieldValue(int fieldID, Object value) {
-
 
6796
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
6797
    }
-
 
6798
 
-
 
6799
    public Object getFieldValue(_Fields field) {
7347
    public Object getFieldValue(_Fields field) {
6800
      switch (field) {
7348
      switch (field) {
6801
      case SUCCESS:
7349
      case SUCCESS:
6802
        return getSuccess();
7350
        return getSuccess();
6803
 
7351
 
6804
      }
7352
      }
6805
      throw new IllegalStateException();
7353
      throw new IllegalStateException();
6806
    }
7354
    }
6807
 
7355
 
6808
    public Object getFieldValue(int fieldId) {
-
 
6809
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
6810
    }
-
 
6811
 
-
 
6812
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7356
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
6813
    public boolean isSet(_Fields field) {
7357
    public boolean isSet(_Fields field) {
-
 
7358
      if (field == null) {
-
 
7359
        throw new IllegalArgumentException();
-
 
7360
      }
-
 
7361
 
6814
      switch (field) {
7362
      switch (field) {
6815
      case SUCCESS:
7363
      case SUCCESS:
6816
        return isSetSuccess();
7364
        return isSetSuccess();
6817
      }
7365
      }
6818
      throw new IllegalStateException();
7366
      throw new IllegalStateException();
6819
    }
7367
    }
6820
 
7368
 
6821
    public boolean isSet(int fieldID) {
-
 
6822
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
6823
    }
-
 
6824
 
-
 
6825
    @Override
7369
    @Override
6826
    public boolean equals(Object that) {
7370
    public boolean equals(Object that) {
6827
      if (that == null)
7371
      if (that == null)
6828
        return false;
7372
        return false;
6829
      if (that instanceof getHolidays_result)
7373
      if (that instanceof getHolidays_result)
Line 6858... Line 7402...
6858
      }
7402
      }
6859
 
7403
 
6860
      int lastComparison = 0;
7404
      int lastComparison = 0;
6861
      getHolidays_result typedOther = (getHolidays_result)other;
7405
      getHolidays_result typedOther = (getHolidays_result)other;
6862
 
7406
 
6863
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
7407
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
6864
      if (lastComparison != 0) {
7408
      if (lastComparison != 0) {
6865
        return lastComparison;
7409
        return lastComparison;
6866
      }
7410
      }
-
 
7411
      if (isSetSuccess()) {
6867
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
7412
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
6868
      if (lastComparison != 0) {
7413
        if (lastComparison != 0) {
6869
        return lastComparison;
7414
          return lastComparison;
-
 
7415
        }
6870
      }
7416
      }
6871
      return 0;
7417
      return 0;
6872
    }
7418
    }
6873
 
7419
 
-
 
7420
    public _Fields fieldForId(int fieldId) {
-
 
7421
      return _Fields.findByThriftId(fieldId);
-
 
7422
    }
-
 
7423
 
6874
    public void read(TProtocol iprot) throws TException {
7424
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
6875
      TField field;
7425
      org.apache.thrift.protocol.TField field;
6876
      iprot.readStructBegin();
7426
      iprot.readStructBegin();
6877
      while (true)
7427
      while (true)
6878
      {
7428
      {
6879
        field = iprot.readFieldBegin();
7429
        field = iprot.readFieldBegin();
6880
        if (field.type == TType.STOP) { 
7430
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
6881
          break;
7431
          break;
6882
        }
7432
        }
6883
        _Fields fieldId = _Fields.findByThriftId(field.id);
7433
        switch (field.id) {
6884
        if (fieldId == null) {
7434
          case 0: // SUCCESS
6885
          TProtocolUtil.skip(iprot, field.type);
7435
            if (field.type == org.apache.thrift.protocol.TType.LIST) {
6886
        } else {
7436
              {
6887
          switch (fieldId) {
7437
                org.apache.thrift.protocol.TList _list13 = iprot.readListBegin();
6888
            case SUCCESS:
7438
                this.success = new ArrayList<Long>(_list13.size);
6889
              if (field.type == TType.LIST) {
7439
                for (int _i14 = 0; _i14 < _list13.size; ++_i14)
6890
                {
7440
                {
6891
                  TList _list13 = iprot.readListBegin();
-
 
6892
                  this.success = new ArrayList<Long>(_list13.size);
-
 
6893
                  for (int _i14 = 0; _i14 < _list13.size; ++_i14)
-
 
6894
                  {
-
 
6895
                    long _elem15;
7441
                  long _elem15; // required
6896
                    _elem15 = iprot.readI64();
7442
                  _elem15 = iprot.readI64();
6897
                    this.success.add(_elem15);
7443
                  this.success.add(_elem15);
6898
                  }
-
 
6899
                  iprot.readListEnd();
-
 
6900
                }
7444
                }
6901
              } else { 
7445
                iprot.readListEnd();
6902
                TProtocolUtil.skip(iprot, field.type);
-
 
6903
              }
7446
              }
6904
              break;
7447
            } else { 
-
 
7448
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6905
          }
7449
            }
6906
          iprot.readFieldEnd();
7450
            break;
-
 
7451
          default:
-
 
7452
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
6907
        }
7453
        }
-
 
7454
        iprot.readFieldEnd();
6908
      }
7455
      }
6909
      iprot.readStructEnd();
7456
      iprot.readStructEnd();
6910
      validate();
7457
      validate();
6911
    }
7458
    }
6912
 
7459
 
6913
    public void write(TProtocol oprot) throws TException {
7460
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
6914
      oprot.writeStructBegin(STRUCT_DESC);
7461
      oprot.writeStructBegin(STRUCT_DESC);
6915
 
7462
 
6916
      if (this.isSetSuccess()) {
7463
      if (this.isSetSuccess()) {
6917
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7464
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
6918
        {
7465
        {
6919
          oprot.writeListBegin(new TList(TType.I64, this.success.size()));
7466
          oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.I64, this.success.size()));
6920
          for (long _iter16 : this.success)
7467
          for (long _iter16 : this.success)
6921
          {
7468
          {
6922
            oprot.writeI64(_iter16);
7469
            oprot.writeI64(_iter16);
6923
          }
7470
          }
6924
          oprot.writeListEnd();
7471
          oprot.writeListEnd();
Line 6943... Line 7490...
6943
      first = false;
7490
      first = false;
6944
      sb.append(")");
7491
      sb.append(")");
6945
      return sb.toString();
7492
      return sb.toString();
6946
    }
7493
    }
6947
 
7494
 
6948
    public void validate() throws TException {
7495
    public void validate() throws org.apache.thrift.TException {
6949
      // check for required fields
7496
      // check for required fields
6950
    }
7497
    }
6951
 
7498
 
-
 
7499
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7500
      try {
-
 
7501
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7502
      } catch (org.apache.thrift.TException te) {
-
 
7503
        throw new java.io.IOException(te);
-
 
7504
      }
-
 
7505
    }
-
 
7506
 
-
 
7507
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7508
      try {
-
 
7509
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7510
      } catch (org.apache.thrift.TException te) {
-
 
7511
        throw new java.io.IOException(te);
-
 
7512
      }
-
 
7513
    }
-
 
7514
 
6952
  }
7515
  }
6953
 
7516
 
6954
  public static class isCodAllowed_args implements TBase<isCodAllowed_args._Fields>, java.io.Serializable, Cloneable, Comparable<isCodAllowed_args>   {
7517
  public static class isCodAllowed_args implements org.apache.thrift.TBase<isCodAllowed_args, isCodAllowed_args._Fields>, java.io.Serializable, Cloneable   {
6955
    private static final TStruct STRUCT_DESC = new TStruct("isCodAllowed_args");
7518
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCodAllowed_args");
6956
 
7519
 
6957
    private static final TField DESTINATION_PINCODE_FIELD_DESC = new TField("destination_pincode", TType.STRING, (short)1);
7520
    private static final org.apache.thrift.protocol.TField DESTINATION_PINCODE_FIELD_DESC = new org.apache.thrift.protocol.TField("destination_pincode", org.apache.thrift.protocol.TType.STRING, (short)1);
6958
 
7521
 
6959
    private String destination_pincode;
7522
    private String destination_pincode; // required
6960
 
7523
 
6961
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7524
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
6962
    public enum _Fields implements TFieldIdEnum {
7525
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
6963
      DESTINATION_PINCODE((short)1, "destination_pincode");
7526
      DESTINATION_PINCODE((short)1, "destination_pincode");
6964
 
7527
 
6965
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
6966
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7528
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
6967
 
7529
 
6968
      static {
7530
      static {
6969
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7531
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
6970
          byId.put((int)field._thriftId, field);
-
 
6971
          byName.put(field.getFieldName(), field);
7532
          byName.put(field.getFieldName(), field);
6972
        }
7533
        }
6973
      }
7534
      }
6974
 
7535
 
6975
      /**
7536
      /**
6976
       * Find the _Fields constant that matches fieldId, or null if its not found.
7537
       * Find the _Fields constant that matches fieldId, or null if its not found.
6977
       */
7538
       */
6978
      public static _Fields findByThriftId(int fieldId) {
7539
      public static _Fields findByThriftId(int fieldId) {
6979
        return byId.get(fieldId);
7540
        switch(fieldId) {
-
 
7541
          case 1: // DESTINATION_PINCODE
-
 
7542
            return DESTINATION_PINCODE;
-
 
7543
          default:
-
 
7544
            return null;
-
 
7545
        }
6980
      }
7546
      }
6981
 
7547
 
6982
      /**
7548
      /**
6983
       * Find the _Fields constant that matches fieldId, throwing an exception
7549
       * Find the _Fields constant that matches fieldId, throwing an exception
6984
       * if it is not found.
7550
       * if it is not found.
Line 7013... Line 7579...
7013
      }
7579
      }
7014
    }
7580
    }
7015
 
7581
 
7016
    // isset id assignments
7582
    // isset id assignments
7017
 
7583
 
7018
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7584
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7019
      put(_Fields.DESTINATION_PINCODE, new FieldMetaData("destination_pincode", TFieldRequirementType.DEFAULT, 
-
 
7020
          new FieldValueMetaData(TType.STRING)));
-
 
7021
    }});
-
 
7022
 
-
 
7023
    static {
7585
    static {
-
 
7586
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7587
      tmpMap.put(_Fields.DESTINATION_PINCODE, new org.apache.thrift.meta_data.FieldMetaData("destination_pincode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7588
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
7589
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7024
      FieldMetaData.addStructMetaDataMap(isCodAllowed_args.class, metaDataMap);
7590
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCodAllowed_args.class, metaDataMap);
7025
    }
7591
    }
7026
 
7592
 
7027
    public isCodAllowed_args() {
7593
    public isCodAllowed_args() {
7028
    }
7594
    }
7029
 
7595
 
Line 7045... Line 7611...
7045
 
7611
 
7046
    public isCodAllowed_args deepCopy() {
7612
    public isCodAllowed_args deepCopy() {
7047
      return new isCodAllowed_args(this);
7613
      return new isCodAllowed_args(this);
7048
    }
7614
    }
7049
 
7615
 
7050
    @Deprecated
7616
    @Override
7051
    public isCodAllowed_args clone() {
7617
    public void clear() {
7052
      return new isCodAllowed_args(this);
7618
      this.destination_pincode = null;
7053
    }
7619
    }
7054
 
7620
 
7055
    public String getDestination_pincode() {
7621
    public String getDestination_pincode() {
7056
      return this.destination_pincode;
7622
      return this.destination_pincode;
7057
    }
7623
    }
7058
 
7624
 
7059
    public isCodAllowed_args setDestination_pincode(String destination_pincode) {
7625
    public void setDestination_pincode(String destination_pincode) {
7060
      this.destination_pincode = destination_pincode;
7626
      this.destination_pincode = destination_pincode;
7061
      return this;
-
 
7062
    }
7627
    }
7063
 
7628
 
7064
    public void unsetDestination_pincode() {
7629
    public void unsetDestination_pincode() {
7065
      this.destination_pincode = null;
7630
      this.destination_pincode = null;
7066
    }
7631
    }
7067
 
7632
 
7068
    /** Returns true if field destination_pincode is set (has been asigned a value) and false otherwise */
7633
    /** Returns true if field destination_pincode is set (has been assigned a value) and false otherwise */
7069
    public boolean isSetDestination_pincode() {
7634
    public boolean isSetDestination_pincode() {
7070
      return this.destination_pincode != null;
7635
      return this.destination_pincode != null;
7071
    }
7636
    }
7072
 
7637
 
7073
    public void setDestination_pincodeIsSet(boolean value) {
7638
    public void setDestination_pincodeIsSet(boolean value) {
Line 7087... Line 7652...
7087
        break;
7652
        break;
7088
 
7653
 
7089
      }
7654
      }
7090
    }
7655
    }
7091
 
7656
 
7092
    public void setFieldValue(int fieldID, Object value) {
-
 
7093
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7094
    }
-
 
7095
 
-
 
7096
    public Object getFieldValue(_Fields field) {
7657
    public Object getFieldValue(_Fields field) {
7097
      switch (field) {
7658
      switch (field) {
7098
      case DESTINATION_PINCODE:
7659
      case DESTINATION_PINCODE:
7099
        return getDestination_pincode();
7660
        return getDestination_pincode();
7100
 
7661
 
7101
      }
7662
      }
7102
      throw new IllegalStateException();
7663
      throw new IllegalStateException();
7103
    }
7664
    }
7104
 
7665
 
7105
    public Object getFieldValue(int fieldId) {
-
 
7106
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7107
    }
-
 
7108
 
-
 
7109
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7666
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7110
    public boolean isSet(_Fields field) {
7667
    public boolean isSet(_Fields field) {
-
 
7668
      if (field == null) {
-
 
7669
        throw new IllegalArgumentException();
-
 
7670
      }
-
 
7671
 
7111
      switch (field) {
7672
      switch (field) {
7112
      case DESTINATION_PINCODE:
7673
      case DESTINATION_PINCODE:
7113
        return isSetDestination_pincode();
7674
        return isSetDestination_pincode();
7114
      }
7675
      }
7115
      throw new IllegalStateException();
7676
      throw new IllegalStateException();
7116
    }
7677
    }
7117
 
7678
 
7118
    public boolean isSet(int fieldID) {
-
 
7119
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7120
    }
-
 
7121
 
-
 
7122
    @Override
7679
    @Override
7123
    public boolean equals(Object that) {
7680
    public boolean equals(Object that) {
7124
      if (that == null)
7681
      if (that == null)
7125
        return false;
7682
        return false;
7126
      if (that instanceof isCodAllowed_args)
7683
      if (that instanceof isCodAllowed_args)
Line 7155... Line 7712...
7155
      }
7712
      }
7156
 
7713
 
7157
      int lastComparison = 0;
7714
      int lastComparison = 0;
7158
      isCodAllowed_args typedOther = (isCodAllowed_args)other;
7715
      isCodAllowed_args typedOther = (isCodAllowed_args)other;
7159
 
7716
 
7160
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(isSetDestination_pincode());
7717
      lastComparison = Boolean.valueOf(isSetDestination_pincode()).compareTo(typedOther.isSetDestination_pincode());
7161
      if (lastComparison != 0) {
7718
      if (lastComparison != 0) {
7162
        return lastComparison;
7719
        return lastComparison;
7163
      }
7720
      }
-
 
7721
      if (isSetDestination_pincode()) {
7164
      lastComparison = TBaseHelper.compareTo(destination_pincode, typedOther.destination_pincode);
7722
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.destination_pincode, typedOther.destination_pincode);
7165
      if (lastComparison != 0) {
7723
        if (lastComparison != 0) {
7166
        return lastComparison;
7724
          return lastComparison;
-
 
7725
        }
7167
      }
7726
      }
7168
      return 0;
7727
      return 0;
7169
    }
7728
    }
7170
 
7729
 
-
 
7730
    public _Fields fieldForId(int fieldId) {
-
 
7731
      return _Fields.findByThriftId(fieldId);
-
 
7732
    }
-
 
7733
 
7171
    public void read(TProtocol iprot) throws TException {
7734
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7172
      TField field;
7735
      org.apache.thrift.protocol.TField field;
7173
      iprot.readStructBegin();
7736
      iprot.readStructBegin();
7174
      while (true)
7737
      while (true)
7175
      {
7738
      {
7176
        field = iprot.readFieldBegin();
7739
        field = iprot.readFieldBegin();
7177
        if (field.type == TType.STOP) { 
7740
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7178
          break;
7741
          break;
7179
        }
7742
        }
7180
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7181
        if (fieldId == null) {
-
 
7182
          TProtocolUtil.skip(iprot, field.type);
-
 
7183
        } else {
-
 
7184
          switch (fieldId) {
7743
        switch (field.id) {
7185
            case DESTINATION_PINCODE:
7744
          case 1: // DESTINATION_PINCODE
7186
              if (field.type == TType.STRING) {
7745
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
7187
                this.destination_pincode = iprot.readString();
7746
              this.destination_pincode = iprot.readString();
7188
              } else { 
7747
            } else { 
7189
                TProtocolUtil.skip(iprot, field.type);
7748
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7190
              }
7749
            }
7191
              break;
7750
            break;
7192
          }
7751
          default:
7193
          iprot.readFieldEnd();
7752
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7194
        }
7753
        }
-
 
7754
        iprot.readFieldEnd();
7195
      }
7755
      }
7196
      iprot.readStructEnd();
7756
      iprot.readStructEnd();
7197
      validate();
7757
      validate();
7198
    }
7758
    }
7199
 
7759
 
7200
    public void write(TProtocol oprot) throws TException {
7760
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7201
      validate();
7761
      validate();
7202
 
7762
 
7203
      oprot.writeStructBegin(STRUCT_DESC);
7763
      oprot.writeStructBegin(STRUCT_DESC);
7204
      if (this.destination_pincode != null) {
7764
      if (this.destination_pincode != null) {
7205
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
7765
        oprot.writeFieldBegin(DESTINATION_PINCODE_FIELD_DESC);
Line 7224... Line 7784...
7224
      first = false;
7784
      first = false;
7225
      sb.append(")");
7785
      sb.append(")");
7226
      return sb.toString();
7786
      return sb.toString();
7227
    }
7787
    }
7228
 
7788
 
7229
    public void validate() throws TException {
7789
    public void validate() throws org.apache.thrift.TException {
7230
      // check for required fields
7790
      // check for required fields
7231
    }
7791
    }
7232
 
7792
 
-
 
7793
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
7794
      try {
-
 
7795
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
7796
      } catch (org.apache.thrift.TException te) {
-
 
7797
        throw new java.io.IOException(te);
-
 
7798
      }
-
 
7799
    }
-
 
7800
 
-
 
7801
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
7802
      try {
-
 
7803
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
7804
      } catch (org.apache.thrift.TException te) {
-
 
7805
        throw new java.io.IOException(te);
-
 
7806
      }
-
 
7807
    }
-
 
7808
 
7233
  }
7809
  }
7234
 
7810
 
7235
  public static class isCodAllowed_result implements TBase<isCodAllowed_result._Fields>, java.io.Serializable, Cloneable, Comparable<isCodAllowed_result>   {
7811
  public static class isCodAllowed_result implements org.apache.thrift.TBase<isCodAllowed_result, isCodAllowed_result._Fields>, java.io.Serializable, Cloneable   {
7236
    private static final TStruct STRUCT_DESC = new TStruct("isCodAllowed_result");
7812
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("isCodAllowed_result");
7237
 
7813
 
7238
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.BOOL, (short)0);
7814
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.BOOL, (short)0);
7239
 
7815
 
7240
    private boolean success;
7816
    private boolean success; // required
7241
 
7817
 
7242
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7818
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
7243
    public enum _Fields implements TFieldIdEnum {
7819
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
7244
      SUCCESS((short)0, "success");
7820
      SUCCESS((short)0, "success");
7245
 
7821
 
7246
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
7247
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7822
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
7248
 
7823
 
7249
      static {
7824
      static {
7250
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7825
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
7251
          byId.put((int)field._thriftId, field);
-
 
7252
          byName.put(field.getFieldName(), field);
7826
          byName.put(field.getFieldName(), field);
7253
        }
7827
        }
7254
      }
7828
      }
7255
 
7829
 
7256
      /**
7830
      /**
7257
       * Find the _Fields constant that matches fieldId, or null if its not found.
7831
       * Find the _Fields constant that matches fieldId, or null if its not found.
7258
       */
7832
       */
7259
      public static _Fields findByThriftId(int fieldId) {
7833
      public static _Fields findByThriftId(int fieldId) {
7260
        return byId.get(fieldId);
7834
        switch(fieldId) {
-
 
7835
          case 0: // SUCCESS
-
 
7836
            return SUCCESS;
-
 
7837
          default:
-
 
7838
            return null;
-
 
7839
        }
7261
      }
7840
      }
7262
 
7841
 
7263
      /**
7842
      /**
7264
       * Find the _Fields constant that matches fieldId, throwing an exception
7843
       * Find the _Fields constant that matches fieldId, throwing an exception
7265
       * if it is not found.
7844
       * if it is not found.
Line 7296... Line 7875...
7296
 
7875
 
7297
    // isset id assignments
7876
    // isset id assignments
7298
    private static final int __SUCCESS_ISSET_ID = 0;
7877
    private static final int __SUCCESS_ISSET_ID = 0;
7299
    private BitSet __isset_bit_vector = new BitSet(1);
7878
    private BitSet __isset_bit_vector = new BitSet(1);
7300
 
7879
 
7301
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
7880
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
7302
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
7303
          new FieldValueMetaData(TType.BOOL)));
-
 
7304
    }});
-
 
7305
 
-
 
7306
    static {
7881
    static {
-
 
7882
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
7883
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
7884
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
7885
      metaDataMap = Collections.unmodifiableMap(tmpMap);
7307
      FieldMetaData.addStructMetaDataMap(isCodAllowed_result.class, metaDataMap);
7886
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(isCodAllowed_result.class, metaDataMap);
7308
    }
7887
    }
7309
 
7888
 
7310
    public isCodAllowed_result() {
7889
    public isCodAllowed_result() {
7311
    }
7890
    }
7312
 
7891
 
Line 7329... Line 7908...
7329
 
7908
 
7330
    public isCodAllowed_result deepCopy() {
7909
    public isCodAllowed_result deepCopy() {
7331
      return new isCodAllowed_result(this);
7910
      return new isCodAllowed_result(this);
7332
    }
7911
    }
7333
 
7912
 
7334
    @Deprecated
7913
    @Override
7335
    public isCodAllowed_result clone() {
7914
    public void clear() {
7336
      return new isCodAllowed_result(this);
7915
      setSuccessIsSet(false);
-
 
7916
      this.success = false;
7337
    }
7917
    }
7338
 
7918
 
7339
    public boolean isSuccess() {
7919
    public boolean isSuccess() {
7340
      return this.success;
7920
      return this.success;
7341
    }
7921
    }
7342
 
7922
 
7343
    public isCodAllowed_result setSuccess(boolean success) {
7923
    public void setSuccess(boolean success) {
7344
      this.success = success;
7924
      this.success = success;
7345
      setSuccessIsSet(true);
7925
      setSuccessIsSet(true);
7346
      return this;
-
 
7347
    }
7926
    }
7348
 
7927
 
7349
    public void unsetSuccess() {
7928
    public void unsetSuccess() {
7350
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7929
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
7351
    }
7930
    }
7352
 
7931
 
7353
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
7932
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
7354
    public boolean isSetSuccess() {
7933
    public boolean isSetSuccess() {
7355
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7934
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
7356
    }
7935
    }
7357
 
7936
 
7358
    public void setSuccessIsSet(boolean value) {
7937
    public void setSuccessIsSet(boolean value) {
Line 7370... Line 7949...
7370
        break;
7949
        break;
7371
 
7950
 
7372
      }
7951
      }
7373
    }
7952
    }
7374
 
7953
 
7375
    public void setFieldValue(int fieldID, Object value) {
-
 
7376
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
7377
    }
-
 
7378
 
-
 
7379
    public Object getFieldValue(_Fields field) {
7954
    public Object getFieldValue(_Fields field) {
7380
      switch (field) {
7955
      switch (field) {
7381
      case SUCCESS:
7956
      case SUCCESS:
7382
        return new Boolean(isSuccess());
7957
        return Boolean.valueOf(isSuccess());
7383
 
7958
 
7384
      }
7959
      }
7385
      throw new IllegalStateException();
7960
      throw new IllegalStateException();
7386
    }
7961
    }
7387
 
7962
 
7388
    public Object getFieldValue(int fieldId) {
-
 
7389
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
7390
    }
-
 
7391
 
-
 
7392
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
7963
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
7393
    public boolean isSet(_Fields field) {
7964
    public boolean isSet(_Fields field) {
-
 
7965
      if (field == null) {
-
 
7966
        throw new IllegalArgumentException();
-
 
7967
      }
-
 
7968
 
7394
      switch (field) {
7969
      switch (field) {
7395
      case SUCCESS:
7970
      case SUCCESS:
7396
        return isSetSuccess();
7971
        return isSetSuccess();
7397
      }
7972
      }
7398
      throw new IllegalStateException();
7973
      throw new IllegalStateException();
7399
    }
7974
    }
7400
 
7975
 
7401
    public boolean isSet(int fieldID) {
-
 
7402
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
7403
    }
-
 
7404
 
-
 
7405
    @Override
7976
    @Override
7406
    public boolean equals(Object that) {
7977
    public boolean equals(Object that) {
7407
      if (that == null)
7978
      if (that == null)
7408
        return false;
7979
        return false;
7409
      if (that instanceof isCodAllowed_result)
7980
      if (that instanceof isCodAllowed_result)
Line 7438... Line 8009...
7438
      }
8009
      }
7439
 
8010
 
7440
      int lastComparison = 0;
8011
      int lastComparison = 0;
7441
      isCodAllowed_result typedOther = (isCodAllowed_result)other;
8012
      isCodAllowed_result typedOther = (isCodAllowed_result)other;
7442
 
8013
 
7443
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
8014
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
7444
      if (lastComparison != 0) {
8015
      if (lastComparison != 0) {
7445
        return lastComparison;
8016
        return lastComparison;
7446
      }
8017
      }
-
 
8018
      if (isSetSuccess()) {
7447
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
8019
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
7448
      if (lastComparison != 0) {
8020
        if (lastComparison != 0) {
7449
        return lastComparison;
8021
          return lastComparison;
-
 
8022
        }
7450
      }
8023
      }
7451
      return 0;
8024
      return 0;
7452
    }
8025
    }
7453
 
8026
 
-
 
8027
    public _Fields fieldForId(int fieldId) {
-
 
8028
      return _Fields.findByThriftId(fieldId);
-
 
8029
    }
-
 
8030
 
7454
    public void read(TProtocol iprot) throws TException {
8031
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
7455
      TField field;
8032
      org.apache.thrift.protocol.TField field;
7456
      iprot.readStructBegin();
8033
      iprot.readStructBegin();
7457
      while (true)
8034
      while (true)
7458
      {
8035
      {
7459
        field = iprot.readFieldBegin();
8036
        field = iprot.readFieldBegin();
7460
        if (field.type == TType.STOP) { 
8037
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
7461
          break;
8038
          break;
7462
        }
8039
        }
7463
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
7464
        if (fieldId == null) {
-
 
7465
          TProtocolUtil.skip(iprot, field.type);
-
 
7466
        } else {
-
 
7467
          switch (fieldId) {
8040
        switch (field.id) {
7468
            case SUCCESS:
8041
          case 0: // SUCCESS
7469
              if (field.type == TType.BOOL) {
8042
            if (field.type == org.apache.thrift.protocol.TType.BOOL) {
7470
                this.success = iprot.readBool();
8043
              this.success = iprot.readBool();
7471
                setSuccessIsSet(true);
8044
              setSuccessIsSet(true);
7472
              } else { 
8045
            } else { 
7473
                TProtocolUtil.skip(iprot, field.type);
8046
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7474
              }
8047
            }
7475
              break;
8048
            break;
7476
          }
8049
          default:
7477
          iprot.readFieldEnd();
8050
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
7478
        }
8051
        }
-
 
8052
        iprot.readFieldEnd();
7479
      }
8053
      }
7480
      iprot.readStructEnd();
8054
      iprot.readStructEnd();
7481
      validate();
8055
      validate();
7482
    }
8056
    }
7483
 
8057
 
7484
    public void write(TProtocol oprot) throws TException {
8058
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
7485
      oprot.writeStructBegin(STRUCT_DESC);
8059
      oprot.writeStructBegin(STRUCT_DESC);
7486
 
8060
 
7487
      if (this.isSetSuccess()) {
8061
      if (this.isSetSuccess()) {
7488
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
8062
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
7489
        oprot.writeBool(this.success);
8063
        oprot.writeBool(this.success);
Line 7503... Line 8077...
7503
      first = false;
8077
      first = false;
7504
      sb.append(")");
8078
      sb.append(")");
7505
      return sb.toString();
8079
      return sb.toString();
7506
    }
8080
    }
7507
 
8081
 
7508
    public void validate() throws TException {
8082
    public void validate() throws org.apache.thrift.TException {
7509
      // check for required fields
8083
      // check for required fields
7510
    }
8084
    }
7511
 
8085
 
-
 
8086
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
8087
      try {
-
 
8088
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
8089
      } catch (org.apache.thrift.TException te) {
-
 
8090
        throw new java.io.IOException(te);
-
 
8091
      }
-
 
8092
    }
-
 
8093
 
-
 
8094
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
8095
      try {
-
 
8096
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
8097
      } catch (org.apache.thrift.TException te) {
-
 
8098
        throw new java.io.IOException(te);
-
 
8099
      }
-
 
8100
    }
-
 
8101
 
7512
  }
8102
  }
7513
 
8103
 
7514
}
8104
}