Subversion Repositories SmartDukaan

Rev

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

Rev 20724 Rev 20744
Line 158... Line 158...
158
     */
158
     */
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
159
    public Map<Long,Map<Long,LocationInfo>> getLocationInfoMap(String destPincode, List<Long> price) throws org.apache.thrift.TException;
160
 
160
 
161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
161
    public DeliveryEstimateAndCosting getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn) throws LogisticsServiceException, org.apache.thrift.TException;
162
 
162
 
-
 
163
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException;
-
 
164
 
163
  }
165
  }
164
 
166
 
165
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
167
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
166
 
168
 
167
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
169
    public void getProvider(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getProvider_call> resultHandler) throws org.apache.thrift.TException;
Line 214... Line 216...
214
 
216
 
215
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
217
    public void getLocationInfoMap(String destPincode, List<Long> price, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLocationInfoMap_call> resultHandler) throws org.apache.thrift.TException;
216
 
218
 
217
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
219
    public void getCostingAndDeliveryEstimateForPincode(String pincode, double transactionAmount, boolean isCod, double weight, long billingWarehouseId, boolean isCompleteTxn, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getCostingAndDeliveryEstimateForPincode_call> resultHandler) throws org.apache.thrift.TException;
218
 
220
 
-
 
221
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException;
-
 
222
 
219
  }
223
  }
220
 
224
 
221
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
225
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
222
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
226
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
223
      public Factory() {}
227
      public Factory() {}
Line 898... Line 902...
898
        throw result.se;
902
        throw result.se;
899
      }
903
      }
900
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
904
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getCostingAndDeliveryEstimateForPincode failed: unknown result");
901
    }
905
    }
902
 
906
 
-
 
907
    public BluedartAttributes getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws LogisticsServiceException, org.apache.thrift.TException
-
 
908
    {
-
 
909
      send_getBluedartAttributesForLogisticsTxnId(logisticsTxnId, name);
-
 
910
      return recv_getBluedartAttributesForLogisticsTxnId();
-
 
911
    }
-
 
912
 
-
 
913
    public void send_getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name) throws org.apache.thrift.TException
-
 
914
    {
-
 
915
      getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
-
 
916
      args.setLogisticsTxnId(logisticsTxnId);
-
 
917
      args.setName(name);
-
 
918
      sendBase("getBluedartAttributesForLogisticsTxnId", args);
-
 
919
    }
-
 
920
 
-
 
921
    public BluedartAttributes recv_getBluedartAttributesForLogisticsTxnId() throws LogisticsServiceException, org.apache.thrift.TException
-
 
922
    {
-
 
923
      getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
-
 
924
      receiveBase(result, "getBluedartAttributesForLogisticsTxnId");
-
 
925
      if (result.isSetSuccess()) {
-
 
926
        return result.success;
-
 
927
      }
-
 
928
      if (result.se != null) {
-
 
929
        throw result.se;
-
 
930
      }
-
 
931
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getBluedartAttributesForLogisticsTxnId failed: unknown result");
-
 
932
    }
-
 
933
 
903
  }
934
  }
904
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
935
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
905
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
936
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
906
      private org.apache.thrift.async.TAsyncClientManager clientManager;
937
      private org.apache.thrift.async.TAsyncClientManager clientManager;
907
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
938
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 1859... Line 1890...
1859
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1890
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
1860
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1891
        return (new Client(prot)).recv_getCostingAndDeliveryEstimateForPincode();
1861
      }
1892
      }
1862
    }
1893
    }
1863
 
1894
 
-
 
1895
    public void getBluedartAttributesForLogisticsTxnId(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_call> resultHandler) throws org.apache.thrift.TException {
-
 
1896
      checkReady();
-
 
1897
      getBluedartAttributesForLogisticsTxnId_call method_call = new getBluedartAttributesForLogisticsTxnId_call(logisticsTxnId, name, resultHandler, this, ___protocolFactory, ___transport);
-
 
1898
      this.___currentMethod = method_call;
-
 
1899
      ___manager.call(method_call);
-
 
1900
    }
-
 
1901
 
-
 
1902
    public static class getBluedartAttributesForLogisticsTxnId_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
1903
      private String logisticsTxnId;
-
 
1904
      private String name;
-
 
1905
      public getBluedartAttributesForLogisticsTxnId_call(String logisticsTxnId, String name, org.apache.thrift.async.AsyncMethodCallback<getBluedartAttributesForLogisticsTxnId_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 {
-
 
1906
        super(client, protocolFactory, transport, resultHandler, false);
-
 
1907
        this.logisticsTxnId = logisticsTxnId;
-
 
1908
        this.name = name;
-
 
1909
      }
-
 
1910
 
-
 
1911
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
1912
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getBluedartAttributesForLogisticsTxnId", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
1913
        getBluedartAttributesForLogisticsTxnId_args args = new getBluedartAttributesForLogisticsTxnId_args();
-
 
1914
        args.setLogisticsTxnId(logisticsTxnId);
-
 
1915
        args.setName(name);
-
 
1916
        args.write(prot);
-
 
1917
        prot.writeMessageEnd();
-
 
1918
      }
-
 
1919
 
-
 
1920
      public BluedartAttributes getResult() throws LogisticsServiceException, org.apache.thrift.TException {
-
 
1921
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
1922
          throw new IllegalStateException("Method call not finished!");
-
 
1923
        }
-
 
1924
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
1925
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
1926
        return (new Client(prot)).recv_getBluedartAttributesForLogisticsTxnId();
-
 
1927
      }
-
 
1928
    }
-
 
1929
 
1864
  }
1930
  }
1865
 
1931
 
1866
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1932
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
1867
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1933
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
1868
    public Processor(I iface) {
1934
    public Processor(I iface) {
Line 1898... Line 1964...
1898
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1964
      processMap.put("getFirstDeliveryEstimateForWhLocation", new getFirstDeliveryEstimateForWhLocation());
1899
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1965
      processMap.put("getNewEmptyAwb", new getNewEmptyAwb());
1900
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1966
      processMap.put("getProviderLimitDetailsForPincode", new getProviderLimitDetailsForPincode());
1901
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
1967
      processMap.put("getLocationInfoMap", new getLocationInfoMap());
1902
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
1968
      processMap.put("getCostingAndDeliveryEstimateForPincode", new getCostingAndDeliveryEstimateForPincode());
-
 
1969
      processMap.put("getBluedartAttributesForLogisticsTxnId", new getBluedartAttributesForLogisticsTxnId());
1903
      return processMap;
1970
      return processMap;
1904
    }
1971
    }
1905
 
1972
 
1906
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1973
    private static class getProvider<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getProvider_args> {
1907
      public getProvider() {
1974
      public getProvider() {
Line 2374... Line 2441...
2374
        }
2441
        }
2375
        return result;
2442
        return result;
2376
      }
2443
      }
2377
    }
2444
    }
2378
 
2445
 
-
 
2446
    private static class getBluedartAttributesForLogisticsTxnId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getBluedartAttributesForLogisticsTxnId_args> {
-
 
2447
      public getBluedartAttributesForLogisticsTxnId() {
-
 
2448
        super("getBluedartAttributesForLogisticsTxnId");
-
 
2449
      }
-
 
2450
 
-
 
2451
      protected getBluedartAttributesForLogisticsTxnId_args getEmptyArgsInstance() {
-
 
2452
        return new getBluedartAttributesForLogisticsTxnId_args();
-
 
2453
      }
-
 
2454
 
-
 
2455
      protected getBluedartAttributesForLogisticsTxnId_result getResult(I iface, getBluedartAttributesForLogisticsTxnId_args args) throws org.apache.thrift.TException {
-
 
2456
        getBluedartAttributesForLogisticsTxnId_result result = new getBluedartAttributesForLogisticsTxnId_result();
-
 
2457
        try {
-
 
2458
          result.success = iface.getBluedartAttributesForLogisticsTxnId(args.logisticsTxnId, args.name);
-
 
2459
        } catch (LogisticsServiceException se) {
-
 
2460
          result.se = se;
-
 
2461
        }
-
 
2462
        return result;
-
 
2463
      }
-
 
2464
    }
-
 
2465
 
2379
  }
2466
  }
2380
 
2467
 
2381
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2468
  public static class getProvider_args implements org.apache.thrift.TBase<getProvider_args, getProvider_args._Fields>, java.io.Serializable, Cloneable   {
2382
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2469
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getProvider_args");
2383
 
2470
 
Line 22028... Line 22115...
22028
      boolean first = true;
22115
      boolean first = true;
22029
 
22116
 
22030
      sb.append("success:");
22117
      sb.append("success:");
22031
      if (this.success == null) {
22118
      if (this.success == null) {
22032
        sb.append("null");
22119
        sb.append("null");
-
 
22120
      } else {
-
 
22121
        sb.append(this.success);
-
 
22122
      }
-
 
22123
      first = false;
-
 
22124
      if (!first) sb.append(", ");
-
 
22125
      sb.append("se:");
-
 
22126
      if (this.se == null) {
-
 
22127
        sb.append("null");
-
 
22128
      } else {
-
 
22129
        sb.append(this.se);
-
 
22130
      }
-
 
22131
      first = false;
-
 
22132
      sb.append(")");
-
 
22133
      return sb.toString();
-
 
22134
    }
-
 
22135
 
-
 
22136
    public void validate() throws org.apache.thrift.TException {
-
 
22137
      // check for required fields
-
 
22138
    }
-
 
22139
 
-
 
22140
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22141
      try {
-
 
22142
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22143
      } catch (org.apache.thrift.TException te) {
-
 
22144
        throw new java.io.IOException(te);
-
 
22145
      }
-
 
22146
    }
-
 
22147
 
-
 
22148
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22149
      try {
-
 
22150
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22151
      } catch (org.apache.thrift.TException te) {
-
 
22152
        throw new java.io.IOException(te);
-
 
22153
      }
-
 
22154
    }
-
 
22155
 
-
 
22156
  }
-
 
22157
 
-
 
22158
  public static class getBluedartAttributesForLogisticsTxnId_args implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_args, getBluedartAttributesForLogisticsTxnId_args._Fields>, java.io.Serializable, Cloneable   {
-
 
22159
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_args");
-
 
22160
 
-
 
22161
    private static final org.apache.thrift.protocol.TField LOGISTICS_TXN_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("logisticsTxnId", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
22162
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)2);
-
 
22163
 
-
 
22164
    private String logisticsTxnId; // required
-
 
22165
    private String name; // required
-
 
22166
 
-
 
22167
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22168
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22169
      LOGISTICS_TXN_ID((short)1, "logisticsTxnId"),
-
 
22170
      NAME((short)2, "name");
-
 
22171
 
-
 
22172
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22173
 
-
 
22174
      static {
-
 
22175
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22176
          byName.put(field.getFieldName(), field);
-
 
22177
        }
-
 
22178
      }
-
 
22179
 
-
 
22180
      /**
-
 
22181
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22182
       */
-
 
22183
      public static _Fields findByThriftId(int fieldId) {
-
 
22184
        switch(fieldId) {
-
 
22185
          case 1: // LOGISTICS_TXN_ID
-
 
22186
            return LOGISTICS_TXN_ID;
-
 
22187
          case 2: // NAME
-
 
22188
            return NAME;
-
 
22189
          default:
-
 
22190
            return null;
-
 
22191
        }
-
 
22192
      }
-
 
22193
 
-
 
22194
      /**
-
 
22195
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22196
       * if it is not found.
-
 
22197
       */
-
 
22198
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22199
        _Fields fields = findByThriftId(fieldId);
-
 
22200
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22201
        return fields;
-
 
22202
      }
-
 
22203
 
-
 
22204
      /**
-
 
22205
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22206
       */
-
 
22207
      public static _Fields findByName(String name) {
-
 
22208
        return byName.get(name);
-
 
22209
      }
-
 
22210
 
-
 
22211
      private final short _thriftId;
-
 
22212
      private final String _fieldName;
-
 
22213
 
-
 
22214
      _Fields(short thriftId, String fieldName) {
-
 
22215
        _thriftId = thriftId;
-
 
22216
        _fieldName = fieldName;
-
 
22217
      }
-
 
22218
 
-
 
22219
      public short getThriftFieldId() {
-
 
22220
        return _thriftId;
-
 
22221
      }
-
 
22222
 
-
 
22223
      public String getFieldName() {
-
 
22224
        return _fieldName;
-
 
22225
      }
-
 
22226
    }
-
 
22227
 
-
 
22228
    // isset id assignments
-
 
22229
 
-
 
22230
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22231
    static {
-
 
22232
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22233
      tmpMap.put(_Fields.LOGISTICS_TXN_ID, new org.apache.thrift.meta_data.FieldMetaData("logisticsTxnId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22234
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
22235
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22236
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
22237
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22238
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_args.class, metaDataMap);
-
 
22239
    }
-
 
22240
 
-
 
22241
    public getBluedartAttributesForLogisticsTxnId_args() {
-
 
22242
    }
-
 
22243
 
-
 
22244
    public getBluedartAttributesForLogisticsTxnId_args(
-
 
22245
      String logisticsTxnId,
-
 
22246
      String name)
-
 
22247
    {
-
 
22248
      this();
-
 
22249
      this.logisticsTxnId = logisticsTxnId;
-
 
22250
      this.name = name;
-
 
22251
    }
-
 
22252
 
-
 
22253
    /**
-
 
22254
     * Performs a deep copy on <i>other</i>.
-
 
22255
     */
-
 
22256
    public getBluedartAttributesForLogisticsTxnId_args(getBluedartAttributesForLogisticsTxnId_args other) {
-
 
22257
      if (other.isSetLogisticsTxnId()) {
-
 
22258
        this.logisticsTxnId = other.logisticsTxnId;
-
 
22259
      }
-
 
22260
      if (other.isSetName()) {
-
 
22261
        this.name = other.name;
-
 
22262
      }
-
 
22263
    }
-
 
22264
 
-
 
22265
    public getBluedartAttributesForLogisticsTxnId_args deepCopy() {
-
 
22266
      return new getBluedartAttributesForLogisticsTxnId_args(this);
-
 
22267
    }
-
 
22268
 
-
 
22269
    @Override
-
 
22270
    public void clear() {
-
 
22271
      this.logisticsTxnId = null;
-
 
22272
      this.name = null;
-
 
22273
    }
-
 
22274
 
-
 
22275
    public String getLogisticsTxnId() {
-
 
22276
      return this.logisticsTxnId;
-
 
22277
    }
-
 
22278
 
-
 
22279
    public void setLogisticsTxnId(String logisticsTxnId) {
-
 
22280
      this.logisticsTxnId = logisticsTxnId;
-
 
22281
    }
-
 
22282
 
-
 
22283
    public void unsetLogisticsTxnId() {
-
 
22284
      this.logisticsTxnId = null;
-
 
22285
    }
-
 
22286
 
-
 
22287
    /** Returns true if field logisticsTxnId is set (has been assigned a value) and false otherwise */
-
 
22288
    public boolean isSetLogisticsTxnId() {
-
 
22289
      return this.logisticsTxnId != null;
-
 
22290
    }
-
 
22291
 
-
 
22292
    public void setLogisticsTxnIdIsSet(boolean value) {
-
 
22293
      if (!value) {
-
 
22294
        this.logisticsTxnId = null;
-
 
22295
      }
-
 
22296
    }
-
 
22297
 
-
 
22298
    public String getName() {
-
 
22299
      return this.name;
-
 
22300
    }
-
 
22301
 
-
 
22302
    public void setName(String name) {
-
 
22303
      this.name = name;
-
 
22304
    }
-
 
22305
 
-
 
22306
    public void unsetName() {
-
 
22307
      this.name = null;
-
 
22308
    }
-
 
22309
 
-
 
22310
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
-
 
22311
    public boolean isSetName() {
-
 
22312
      return this.name != null;
-
 
22313
    }
-
 
22314
 
-
 
22315
    public void setNameIsSet(boolean value) {
-
 
22316
      if (!value) {
-
 
22317
        this.name = null;
-
 
22318
      }
-
 
22319
    }
-
 
22320
 
-
 
22321
    public void setFieldValue(_Fields field, Object value) {
-
 
22322
      switch (field) {
-
 
22323
      case LOGISTICS_TXN_ID:
-
 
22324
        if (value == null) {
-
 
22325
          unsetLogisticsTxnId();
-
 
22326
        } else {
-
 
22327
          setLogisticsTxnId((String)value);
-
 
22328
        }
-
 
22329
        break;
-
 
22330
 
-
 
22331
      case NAME:
-
 
22332
        if (value == null) {
-
 
22333
          unsetName();
-
 
22334
        } else {
-
 
22335
          setName((String)value);
-
 
22336
        }
-
 
22337
        break;
-
 
22338
 
-
 
22339
      }
-
 
22340
    }
-
 
22341
 
-
 
22342
    public Object getFieldValue(_Fields field) {
-
 
22343
      switch (field) {
-
 
22344
      case LOGISTICS_TXN_ID:
-
 
22345
        return getLogisticsTxnId();
-
 
22346
 
-
 
22347
      case NAME:
-
 
22348
        return getName();
-
 
22349
 
-
 
22350
      }
-
 
22351
      throw new IllegalStateException();
-
 
22352
    }
-
 
22353
 
-
 
22354
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22355
    public boolean isSet(_Fields field) {
-
 
22356
      if (field == null) {
-
 
22357
        throw new IllegalArgumentException();
-
 
22358
      }
-
 
22359
 
-
 
22360
      switch (field) {
-
 
22361
      case LOGISTICS_TXN_ID:
-
 
22362
        return isSetLogisticsTxnId();
-
 
22363
      case NAME:
-
 
22364
        return isSetName();
-
 
22365
      }
-
 
22366
      throw new IllegalStateException();
-
 
22367
    }
-
 
22368
 
-
 
22369
    @Override
-
 
22370
    public boolean equals(Object that) {
-
 
22371
      if (that == null)
-
 
22372
        return false;
-
 
22373
      if (that instanceof getBluedartAttributesForLogisticsTxnId_args)
-
 
22374
        return this.equals((getBluedartAttributesForLogisticsTxnId_args)that);
-
 
22375
      return false;
-
 
22376
    }
-
 
22377
 
-
 
22378
    public boolean equals(getBluedartAttributesForLogisticsTxnId_args that) {
-
 
22379
      if (that == null)
-
 
22380
        return false;
-
 
22381
 
-
 
22382
      boolean this_present_logisticsTxnId = true && this.isSetLogisticsTxnId();
-
 
22383
      boolean that_present_logisticsTxnId = true && that.isSetLogisticsTxnId();
-
 
22384
      if (this_present_logisticsTxnId || that_present_logisticsTxnId) {
-
 
22385
        if (!(this_present_logisticsTxnId && that_present_logisticsTxnId))
-
 
22386
          return false;
-
 
22387
        if (!this.logisticsTxnId.equals(that.logisticsTxnId))
-
 
22388
          return false;
-
 
22389
      }
-
 
22390
 
-
 
22391
      boolean this_present_name = true && this.isSetName();
-
 
22392
      boolean that_present_name = true && that.isSetName();
-
 
22393
      if (this_present_name || that_present_name) {
-
 
22394
        if (!(this_present_name && that_present_name))
-
 
22395
          return false;
-
 
22396
        if (!this.name.equals(that.name))
-
 
22397
          return false;
-
 
22398
      }
-
 
22399
 
-
 
22400
      return true;
-
 
22401
    }
-
 
22402
 
-
 
22403
    @Override
-
 
22404
    public int hashCode() {
-
 
22405
      return 0;
-
 
22406
    }
-
 
22407
 
-
 
22408
    public int compareTo(getBluedartAttributesForLogisticsTxnId_args other) {
-
 
22409
      if (!getClass().equals(other.getClass())) {
-
 
22410
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22411
      }
-
 
22412
 
-
 
22413
      int lastComparison = 0;
-
 
22414
      getBluedartAttributesForLogisticsTxnId_args typedOther = (getBluedartAttributesForLogisticsTxnId_args)other;
-
 
22415
 
-
 
22416
      lastComparison = Boolean.valueOf(isSetLogisticsTxnId()).compareTo(typedOther.isSetLogisticsTxnId());
-
 
22417
      if (lastComparison != 0) {
-
 
22418
        return lastComparison;
-
 
22419
      }
-
 
22420
      if (isSetLogisticsTxnId()) {
-
 
22421
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.logisticsTxnId, typedOther.logisticsTxnId);
-
 
22422
        if (lastComparison != 0) {
-
 
22423
          return lastComparison;
-
 
22424
        }
-
 
22425
      }
-
 
22426
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
-
 
22427
      if (lastComparison != 0) {
-
 
22428
        return lastComparison;
-
 
22429
      }
-
 
22430
      if (isSetName()) {
-
 
22431
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
-
 
22432
        if (lastComparison != 0) {
-
 
22433
          return lastComparison;
-
 
22434
        }
-
 
22435
      }
-
 
22436
      return 0;
-
 
22437
    }
-
 
22438
 
-
 
22439
    public _Fields fieldForId(int fieldId) {
-
 
22440
      return _Fields.findByThriftId(fieldId);
-
 
22441
    }
-
 
22442
 
-
 
22443
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22444
      org.apache.thrift.protocol.TField field;
-
 
22445
      iprot.readStructBegin();
-
 
22446
      while (true)
-
 
22447
      {
-
 
22448
        field = iprot.readFieldBegin();
-
 
22449
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22450
          break;
-
 
22451
        }
-
 
22452
        switch (field.id) {
-
 
22453
          case 1: // LOGISTICS_TXN_ID
-
 
22454
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
22455
              this.logisticsTxnId = iprot.readString();
-
 
22456
            } else { 
-
 
22457
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22458
            }
-
 
22459
            break;
-
 
22460
          case 2: // NAME
-
 
22461
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
22462
              this.name = iprot.readString();
-
 
22463
            } else { 
-
 
22464
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22465
            }
-
 
22466
            break;
-
 
22467
          default:
-
 
22468
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22469
        }
-
 
22470
        iprot.readFieldEnd();
-
 
22471
      }
-
 
22472
      iprot.readStructEnd();
-
 
22473
      validate();
-
 
22474
    }
-
 
22475
 
-
 
22476
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22477
      validate();
-
 
22478
 
-
 
22479
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22480
      if (this.logisticsTxnId != null) {
-
 
22481
        oprot.writeFieldBegin(LOGISTICS_TXN_ID_FIELD_DESC);
-
 
22482
        oprot.writeString(this.logisticsTxnId);
-
 
22483
        oprot.writeFieldEnd();
-
 
22484
      }
-
 
22485
      if (this.name != null) {
-
 
22486
        oprot.writeFieldBegin(NAME_FIELD_DESC);
-
 
22487
        oprot.writeString(this.name);
-
 
22488
        oprot.writeFieldEnd();
-
 
22489
      }
-
 
22490
      oprot.writeFieldStop();
-
 
22491
      oprot.writeStructEnd();
-
 
22492
    }
-
 
22493
 
-
 
22494
    @Override
-
 
22495
    public String toString() {
-
 
22496
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_args(");
-
 
22497
      boolean first = true;
-
 
22498
 
-
 
22499
      sb.append("logisticsTxnId:");
-
 
22500
      if (this.logisticsTxnId == null) {
-
 
22501
        sb.append("null");
-
 
22502
      } else {
-
 
22503
        sb.append(this.logisticsTxnId);
-
 
22504
      }
-
 
22505
      first = false;
-
 
22506
      if (!first) sb.append(", ");
-
 
22507
      sb.append("name:");
-
 
22508
      if (this.name == null) {
-
 
22509
        sb.append("null");
-
 
22510
      } else {
-
 
22511
        sb.append(this.name);
-
 
22512
      }
-
 
22513
      first = false;
-
 
22514
      sb.append(")");
-
 
22515
      return sb.toString();
-
 
22516
    }
-
 
22517
 
-
 
22518
    public void validate() throws org.apache.thrift.TException {
-
 
22519
      // check for required fields
-
 
22520
    }
-
 
22521
 
-
 
22522
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
22523
      try {
-
 
22524
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
22525
      } catch (org.apache.thrift.TException te) {
-
 
22526
        throw new java.io.IOException(te);
-
 
22527
      }
-
 
22528
    }
-
 
22529
 
-
 
22530
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
22531
      try {
-
 
22532
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
22533
      } catch (org.apache.thrift.TException te) {
-
 
22534
        throw new java.io.IOException(te);
-
 
22535
      }
-
 
22536
    }
-
 
22537
 
-
 
22538
  }
-
 
22539
 
-
 
22540
  public static class getBluedartAttributesForLogisticsTxnId_result implements org.apache.thrift.TBase<getBluedartAttributesForLogisticsTxnId_result, getBluedartAttributesForLogisticsTxnId_result._Fields>, java.io.Serializable, Cloneable   {
-
 
22541
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getBluedartAttributesForLogisticsTxnId_result");
-
 
22542
 
-
 
22543
    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);
-
 
22544
    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);
-
 
22545
 
-
 
22546
    private BluedartAttributes success; // required
-
 
22547
    private LogisticsServiceException se; // required
-
 
22548
 
-
 
22549
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
22550
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
22551
      SUCCESS((short)0, "success"),
-
 
22552
      SE((short)1, "se");
-
 
22553
 
-
 
22554
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
22555
 
-
 
22556
      static {
-
 
22557
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
22558
          byName.put(field.getFieldName(), field);
-
 
22559
        }
-
 
22560
      }
-
 
22561
 
-
 
22562
      /**
-
 
22563
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
22564
       */
-
 
22565
      public static _Fields findByThriftId(int fieldId) {
-
 
22566
        switch(fieldId) {
-
 
22567
          case 0: // SUCCESS
-
 
22568
            return SUCCESS;
-
 
22569
          case 1: // SE
-
 
22570
            return SE;
-
 
22571
          default:
-
 
22572
            return null;
-
 
22573
        }
-
 
22574
      }
-
 
22575
 
-
 
22576
      /**
-
 
22577
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
22578
       * if it is not found.
-
 
22579
       */
-
 
22580
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
22581
        _Fields fields = findByThriftId(fieldId);
-
 
22582
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
22583
        return fields;
-
 
22584
      }
-
 
22585
 
-
 
22586
      /**
-
 
22587
       * Find the _Fields constant that matches name, or null if its not found.
-
 
22588
       */
-
 
22589
      public static _Fields findByName(String name) {
-
 
22590
        return byName.get(name);
-
 
22591
      }
-
 
22592
 
-
 
22593
      private final short _thriftId;
-
 
22594
      private final String _fieldName;
-
 
22595
 
-
 
22596
      _Fields(short thriftId, String fieldName) {
-
 
22597
        _thriftId = thriftId;
-
 
22598
        _fieldName = fieldName;
-
 
22599
      }
-
 
22600
 
-
 
22601
      public short getThriftFieldId() {
-
 
22602
        return _thriftId;
-
 
22603
      }
-
 
22604
 
-
 
22605
      public String getFieldName() {
-
 
22606
        return _fieldName;
-
 
22607
      }
-
 
22608
    }
-
 
22609
 
-
 
22610
    // isset id assignments
-
 
22611
 
-
 
22612
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
22613
    static {
-
 
22614
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
22615
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22616
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, BluedartAttributes.class)));
-
 
22617
      tmpMap.put(_Fields.SE, new org.apache.thrift.meta_data.FieldMetaData("se", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
22618
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
-
 
22619
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
22620
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getBluedartAttributesForLogisticsTxnId_result.class, metaDataMap);
-
 
22621
    }
-
 
22622
 
-
 
22623
    public getBluedartAttributesForLogisticsTxnId_result() {
-
 
22624
    }
-
 
22625
 
-
 
22626
    public getBluedartAttributesForLogisticsTxnId_result(
-
 
22627
      BluedartAttributes success,
-
 
22628
      LogisticsServiceException se)
-
 
22629
    {
-
 
22630
      this();
-
 
22631
      this.success = success;
-
 
22632
      this.se = se;
-
 
22633
    }
-
 
22634
 
-
 
22635
    /**
-
 
22636
     * Performs a deep copy on <i>other</i>.
-
 
22637
     */
-
 
22638
    public getBluedartAttributesForLogisticsTxnId_result(getBluedartAttributesForLogisticsTxnId_result other) {
-
 
22639
      if (other.isSetSuccess()) {
-
 
22640
        this.success = new BluedartAttributes(other.success);
-
 
22641
      }
-
 
22642
      if (other.isSetSe()) {
-
 
22643
        this.se = new LogisticsServiceException(other.se);
-
 
22644
      }
-
 
22645
    }
-
 
22646
 
-
 
22647
    public getBluedartAttributesForLogisticsTxnId_result deepCopy() {
-
 
22648
      return new getBluedartAttributesForLogisticsTxnId_result(this);
-
 
22649
    }
-
 
22650
 
-
 
22651
    @Override
-
 
22652
    public void clear() {
-
 
22653
      this.success = null;
-
 
22654
      this.se = null;
-
 
22655
    }
-
 
22656
 
-
 
22657
    public BluedartAttributes getSuccess() {
-
 
22658
      return this.success;
-
 
22659
    }
-
 
22660
 
-
 
22661
    public void setSuccess(BluedartAttributes success) {
-
 
22662
      this.success = success;
-
 
22663
    }
-
 
22664
 
-
 
22665
    public void unsetSuccess() {
-
 
22666
      this.success = null;
-
 
22667
    }
-
 
22668
 
-
 
22669
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
22670
    public boolean isSetSuccess() {
-
 
22671
      return this.success != null;
-
 
22672
    }
-
 
22673
 
-
 
22674
    public void setSuccessIsSet(boolean value) {
-
 
22675
      if (!value) {
-
 
22676
        this.success = null;
-
 
22677
      }
-
 
22678
    }
-
 
22679
 
-
 
22680
    public LogisticsServiceException getSe() {
-
 
22681
      return this.se;
-
 
22682
    }
-
 
22683
 
-
 
22684
    public void setSe(LogisticsServiceException se) {
-
 
22685
      this.se = se;
-
 
22686
    }
-
 
22687
 
-
 
22688
    public void unsetSe() {
-
 
22689
      this.se = null;
-
 
22690
    }
-
 
22691
 
-
 
22692
    /** Returns true if field se is set (has been assigned a value) and false otherwise */
-
 
22693
    public boolean isSetSe() {
-
 
22694
      return this.se != null;
-
 
22695
    }
-
 
22696
 
-
 
22697
    public void setSeIsSet(boolean value) {
-
 
22698
      if (!value) {
-
 
22699
        this.se = null;
-
 
22700
      }
-
 
22701
    }
-
 
22702
 
-
 
22703
    public void setFieldValue(_Fields field, Object value) {
-
 
22704
      switch (field) {
-
 
22705
      case SUCCESS:
-
 
22706
        if (value == null) {
-
 
22707
          unsetSuccess();
-
 
22708
        } else {
-
 
22709
          setSuccess((BluedartAttributes)value);
-
 
22710
        }
-
 
22711
        break;
-
 
22712
 
-
 
22713
      case SE:
-
 
22714
        if (value == null) {
-
 
22715
          unsetSe();
-
 
22716
        } else {
-
 
22717
          setSe((LogisticsServiceException)value);
-
 
22718
        }
-
 
22719
        break;
-
 
22720
 
-
 
22721
      }
-
 
22722
    }
-
 
22723
 
-
 
22724
    public Object getFieldValue(_Fields field) {
-
 
22725
      switch (field) {
-
 
22726
      case SUCCESS:
-
 
22727
        return getSuccess();
-
 
22728
 
-
 
22729
      case SE:
-
 
22730
        return getSe();
-
 
22731
 
-
 
22732
      }
-
 
22733
      throw new IllegalStateException();
-
 
22734
    }
-
 
22735
 
-
 
22736
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
22737
    public boolean isSet(_Fields field) {
-
 
22738
      if (field == null) {
-
 
22739
        throw new IllegalArgumentException();
-
 
22740
      }
-
 
22741
 
-
 
22742
      switch (field) {
-
 
22743
      case SUCCESS:
-
 
22744
        return isSetSuccess();
-
 
22745
      case SE:
-
 
22746
        return isSetSe();
-
 
22747
      }
-
 
22748
      throw new IllegalStateException();
-
 
22749
    }
-
 
22750
 
-
 
22751
    @Override
-
 
22752
    public boolean equals(Object that) {
-
 
22753
      if (that == null)
-
 
22754
        return false;
-
 
22755
      if (that instanceof getBluedartAttributesForLogisticsTxnId_result)
-
 
22756
        return this.equals((getBluedartAttributesForLogisticsTxnId_result)that);
-
 
22757
      return false;
-
 
22758
    }
-
 
22759
 
-
 
22760
    public boolean equals(getBluedartAttributesForLogisticsTxnId_result that) {
-
 
22761
      if (that == null)
-
 
22762
        return false;
-
 
22763
 
-
 
22764
      boolean this_present_success = true && this.isSetSuccess();
-
 
22765
      boolean that_present_success = true && that.isSetSuccess();
-
 
22766
      if (this_present_success || that_present_success) {
-
 
22767
        if (!(this_present_success && that_present_success))
-
 
22768
          return false;
-
 
22769
        if (!this.success.equals(that.success))
-
 
22770
          return false;
-
 
22771
      }
-
 
22772
 
-
 
22773
      boolean this_present_se = true && this.isSetSe();
-
 
22774
      boolean that_present_se = true && that.isSetSe();
-
 
22775
      if (this_present_se || that_present_se) {
-
 
22776
        if (!(this_present_se && that_present_se))
-
 
22777
          return false;
-
 
22778
        if (!this.se.equals(that.se))
-
 
22779
          return false;
-
 
22780
      }
-
 
22781
 
-
 
22782
      return true;
-
 
22783
    }
-
 
22784
 
-
 
22785
    @Override
-
 
22786
    public int hashCode() {
-
 
22787
      return 0;
-
 
22788
    }
-
 
22789
 
-
 
22790
    public int compareTo(getBluedartAttributesForLogisticsTxnId_result other) {
-
 
22791
      if (!getClass().equals(other.getClass())) {
-
 
22792
        return getClass().getName().compareTo(other.getClass().getName());
-
 
22793
      }
-
 
22794
 
-
 
22795
      int lastComparison = 0;
-
 
22796
      getBluedartAttributesForLogisticsTxnId_result typedOther = (getBluedartAttributesForLogisticsTxnId_result)other;
-
 
22797
 
-
 
22798
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
22799
      if (lastComparison != 0) {
-
 
22800
        return lastComparison;
-
 
22801
      }
-
 
22802
      if (isSetSuccess()) {
-
 
22803
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
22804
        if (lastComparison != 0) {
-
 
22805
          return lastComparison;
-
 
22806
        }
-
 
22807
      }
-
 
22808
      lastComparison = Boolean.valueOf(isSetSe()).compareTo(typedOther.isSetSe());
-
 
22809
      if (lastComparison != 0) {
-
 
22810
        return lastComparison;
-
 
22811
      }
-
 
22812
      if (isSetSe()) {
-
 
22813
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.se, typedOther.se);
-
 
22814
        if (lastComparison != 0) {
-
 
22815
          return lastComparison;
-
 
22816
        }
-
 
22817
      }
-
 
22818
      return 0;
-
 
22819
    }
-
 
22820
 
-
 
22821
    public _Fields fieldForId(int fieldId) {
-
 
22822
      return _Fields.findByThriftId(fieldId);
-
 
22823
    }
-
 
22824
 
-
 
22825
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
22826
      org.apache.thrift.protocol.TField field;
-
 
22827
      iprot.readStructBegin();
-
 
22828
      while (true)
-
 
22829
      {
-
 
22830
        field = iprot.readFieldBegin();
-
 
22831
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
22832
          break;
-
 
22833
        }
-
 
22834
        switch (field.id) {
-
 
22835
          case 0: // SUCCESS
-
 
22836
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
22837
              this.success = new BluedartAttributes();
-
 
22838
              this.success.read(iprot);
-
 
22839
            } else { 
-
 
22840
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22841
            }
-
 
22842
            break;
-
 
22843
          case 1: // SE
-
 
22844
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
22845
              this.se = new LogisticsServiceException();
-
 
22846
              this.se.read(iprot);
-
 
22847
            } else { 
-
 
22848
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22849
            }
-
 
22850
            break;
-
 
22851
          default:
-
 
22852
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
22853
        }
-
 
22854
        iprot.readFieldEnd();
-
 
22855
      }
-
 
22856
      iprot.readStructEnd();
-
 
22857
      validate();
-
 
22858
    }
-
 
22859
 
-
 
22860
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
22861
      oprot.writeStructBegin(STRUCT_DESC);
-
 
22862
 
-
 
22863
      if (this.isSetSuccess()) {
-
 
22864
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
22865
        this.success.write(oprot);
-
 
22866
        oprot.writeFieldEnd();
-
 
22867
      } else if (this.isSetSe()) {
-
 
22868
        oprot.writeFieldBegin(SE_FIELD_DESC);
-
 
22869
        this.se.write(oprot);
-
 
22870
        oprot.writeFieldEnd();
-
 
22871
      }
-
 
22872
      oprot.writeFieldStop();
-
 
22873
      oprot.writeStructEnd();
-
 
22874
    }
-
 
22875
 
-
 
22876
    @Override
-
 
22877
    public String toString() {
-
 
22878
      StringBuilder sb = new StringBuilder("getBluedartAttributesForLogisticsTxnId_result(");
-
 
22879
      boolean first = true;
-
 
22880
 
-
 
22881
      sb.append("success:");
-
 
22882
      if (this.success == null) {
-
 
22883
        sb.append("null");
22033
      } else {
22884
      } else {
22034
        sb.append(this.success);
22885
        sb.append(this.success);
22035
      }
22886
      }
22036
      first = false;
22887
      first = false;
22037
      if (!first) sb.append(", ");
22888
      if (!first) sb.append(", ");