Subversion Repositories SmartDukaan

Rev

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

Rev 19973 Rev 19980
Line 1236... Line 1236...
1236
 
1236
 
1237
    public List<PendingStoreOrder> getPendingStoreOrders(long storeId) throws org.apache.thrift.TException;
1237
    public List<PendingStoreOrder> getPendingStoreOrders(long storeId) throws org.apache.thrift.TException;
1238
 
1238
 
1239
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1239
    public SellerInfo getSellerInfo(long sellerId) throws org.apache.thrift.TException;
1240
 
1240
 
-
 
1241
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException;
-
 
1242
 
1241
  }
1243
  }
1242
 
1244
 
1243
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1245
  public interface AsyncIface extends in.shop2020.generic.GenericService .AsyncIface {
1244
 
1246
 
1245
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
1247
    public void createTransaction(Transaction transaction, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createTransaction_call> resultHandler) throws org.apache.thrift.TException;
Line 1840... Line 1842...
1840
 
1842
 
1841
    public void getPendingStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1843
    public void getPendingStoreOrders(long storeId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPendingStoreOrders_call> resultHandler) throws org.apache.thrift.TException;
1842
 
1844
 
1843
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1845
    public void getSellerInfo(long sellerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getSellerInfo_call> resultHandler) throws org.apache.thrift.TException;
1844
 
1846
 
-
 
1847
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException;
-
 
1848
 
1845
  }
1849
  }
1846
 
1850
 
1847
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1851
  public static class Client extends in.shop2020.generic.GenericService.Client implements Iface {
1848
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1852
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
1849
      public Factory() {}
1853
      public Factory() {}
Line 9298... Line 9302...
9298
        return result.success;
9302
        return result.success;
9299
      }
9303
      }
9300
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSellerInfo failed: unknown result");
9304
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getSellerInfo failed: unknown result");
9301
    }
9305
    }
9302
 
9306
 
-
 
9307
    public WarehouseAddress getWarehouseAddress(long address_id) throws org.apache.thrift.TException
-
 
9308
    {
-
 
9309
      send_getWarehouseAddress(address_id);
-
 
9310
      return recv_getWarehouseAddress();
-
 
9311
    }
-
 
9312
 
-
 
9313
    public void send_getWarehouseAddress(long address_id) throws org.apache.thrift.TException
-
 
9314
    {
-
 
9315
      getWarehouseAddress_args args = new getWarehouseAddress_args();
-
 
9316
      args.setAddress_id(address_id);
-
 
9317
      sendBase("getWarehouseAddress", args);
-
 
9318
    }
-
 
9319
 
-
 
9320
    public WarehouseAddress recv_getWarehouseAddress() throws org.apache.thrift.TException
-
 
9321
    {
-
 
9322
      getWarehouseAddress_result result = new getWarehouseAddress_result();
-
 
9323
      receiveBase(result, "getWarehouseAddress");
-
 
9324
      if (result.isSetSuccess()) {
-
 
9325
        return result.success;
-
 
9326
      }
-
 
9327
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getWarehouseAddress failed: unknown result");
-
 
9328
    }
-
 
9329
 
9303
  }
9330
  }
9304
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9331
  public static class AsyncClient extends in.shop2020.generic.GenericService.AsyncClient implements AsyncIface {
9305
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9332
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
9306
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9333
      private org.apache.thrift.async.TAsyncClientManager clientManager;
9307
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
9334
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
Line 19786... Line 19813...
19786
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19813
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
19787
        return (new Client(prot)).recv_getSellerInfo();
19814
        return (new Client(prot)).recv_getSellerInfo();
19788
      }
19815
      }
19789
    }
19816
    }
19790
 
19817
 
-
 
19818
    public void getWarehouseAddress(long address_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseAddress_call> resultHandler) throws org.apache.thrift.TException {
-
 
19819
      checkReady();
-
 
19820
      getWarehouseAddress_call method_call = new getWarehouseAddress_call(address_id, resultHandler, this, ___protocolFactory, ___transport);
-
 
19821
      this.___currentMethod = method_call;
-
 
19822
      ___manager.call(method_call);
-
 
19823
    }
-
 
19824
 
-
 
19825
    public static class getWarehouseAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
19826
      private long address_id;
-
 
19827
      public getWarehouseAddress_call(long address_id, org.apache.thrift.async.AsyncMethodCallback<getWarehouseAddress_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 {
-
 
19828
        super(client, protocolFactory, transport, resultHandler, false);
-
 
19829
        this.address_id = address_id;
-
 
19830
      }
-
 
19831
 
-
 
19832
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
19833
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getWarehouseAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
-
 
19834
        getWarehouseAddress_args args = new getWarehouseAddress_args();
-
 
19835
        args.setAddress_id(address_id);
-
 
19836
        args.write(prot);
-
 
19837
        prot.writeMessageEnd();
-
 
19838
      }
-
 
19839
 
-
 
19840
      public WarehouseAddress getResult() throws org.apache.thrift.TException {
-
 
19841
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
19842
          throw new IllegalStateException("Method call not finished!");
-
 
19843
        }
-
 
19844
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
19845
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
19846
        return (new Client(prot)).recv_getWarehouseAddress();
-
 
19847
      }
-
 
19848
    }
-
 
19849
 
19791
  }
19850
  }
19792
 
19851
 
19793
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19852
  public static class Processor<I extends Iface> extends in.shop2020.generic.GenericService.Processor implements org.apache.thrift.TProcessor {
19794
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19853
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
19795
    public Processor(I iface) {
19854
    public Processor(I iface) {
Line 20099... Line 20158...
20099
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
20158
      processMap.put("validateReturnTransaction", new validateReturnTransaction());
20100
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20159
      processMap.put("markReturnNotRequiredOrdersProcessed", new markReturnNotRequiredOrdersProcessed());
20101
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20160
      processMap.put("getReturnPickupRequest", new getReturnPickupRequest());
20102
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20161
      processMap.put("getPendingStoreOrders", new getPendingStoreOrders());
20103
      processMap.put("getSellerInfo", new getSellerInfo());
20162
      processMap.put("getSellerInfo", new getSellerInfo());
-
 
20163
      processMap.put("getWarehouseAddress", new getWarehouseAddress());
20104
      return processMap;
20164
      return processMap;
20105
    }
20165
    }
20106
 
20166
 
20107
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20167
    private static class createTransaction<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createTransaction_args> {
20108
      public createTransaction() {
20168
      public createTransaction() {
Line 25536... Line 25596...
25536
        result.success = iface.getSellerInfo(args.sellerId);
25596
        result.success = iface.getSellerInfo(args.sellerId);
25537
        return result;
25597
        return result;
25538
      }
25598
      }
25539
    }
25599
    }
25540
 
25600
 
-
 
25601
    private static class getWarehouseAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getWarehouseAddress_args> {
-
 
25602
      public getWarehouseAddress() {
-
 
25603
        super("getWarehouseAddress");
-
 
25604
      }
-
 
25605
 
-
 
25606
      protected getWarehouseAddress_args getEmptyArgsInstance() {
-
 
25607
        return new getWarehouseAddress_args();
-
 
25608
      }
-
 
25609
 
-
 
25610
      protected getWarehouseAddress_result getResult(I iface, getWarehouseAddress_args args) throws org.apache.thrift.TException {
-
 
25611
        getWarehouseAddress_result result = new getWarehouseAddress_result();
-
 
25612
        result.success = iface.getWarehouseAddress(args.address_id);
-
 
25613
        return result;
-
 
25614
      }
-
 
25615
    }
-
 
25616
 
25541
  }
25617
  }
25542
 
25618
 
25543
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25619
  public static class createTransaction_args implements org.apache.thrift.TBase<createTransaction_args, createTransaction_args._Fields>, java.io.Serializable, Cloneable   {
25544
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25620
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createTransaction_args");
25545
 
25621
 
Line 240505... Line 240581...
240505
      boolean first = true;
240581
      boolean first = true;
240506
 
240582
 
240507
      sb.append("success:");
240583
      sb.append("success:");
240508
      if (this.success == null) {
240584
      if (this.success == null) {
240509
        sb.append("null");
240585
        sb.append("null");
-
 
240586
      } else {
-
 
240587
        sb.append(this.success);
-
 
240588
      }
-
 
240589
      first = false;
-
 
240590
      sb.append(")");
-
 
240591
      return sb.toString();
-
 
240592
    }
-
 
240593
 
-
 
240594
    public void validate() throws org.apache.thrift.TException {
-
 
240595
      // check for required fields
-
 
240596
    }
-
 
240597
 
-
 
240598
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
240599
      try {
-
 
240600
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
240601
      } catch (org.apache.thrift.TException te) {
-
 
240602
        throw new java.io.IOException(te);
-
 
240603
      }
-
 
240604
    }
-
 
240605
 
-
 
240606
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
240607
      try {
-
 
240608
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
240609
      } catch (org.apache.thrift.TException te) {
-
 
240610
        throw new java.io.IOException(te);
-
 
240611
      }
-
 
240612
    }
-
 
240613
 
-
 
240614
  }
-
 
240615
 
-
 
240616
  public static class getWarehouseAddress_args implements org.apache.thrift.TBase<getWarehouseAddress_args, getWarehouseAddress_args._Fields>, java.io.Serializable, Cloneable   {
-
 
240617
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseAddress_args");
-
 
240618
 
-
 
240619
    private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("address_id", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
240620
 
-
 
240621
    private long address_id; // required
-
 
240622
 
-
 
240623
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
240624
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
240625
      ADDRESS_ID((short)1, "address_id");
-
 
240626
 
-
 
240627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
240628
 
-
 
240629
      static {
-
 
240630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
240631
          byName.put(field.getFieldName(), field);
-
 
240632
        }
-
 
240633
      }
-
 
240634
 
-
 
240635
      /**
-
 
240636
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
240637
       */
-
 
240638
      public static _Fields findByThriftId(int fieldId) {
-
 
240639
        switch(fieldId) {
-
 
240640
          case 1: // ADDRESS_ID
-
 
240641
            return ADDRESS_ID;
-
 
240642
          default:
-
 
240643
            return null;
-
 
240644
        }
-
 
240645
      }
-
 
240646
 
-
 
240647
      /**
-
 
240648
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
240649
       * if it is not found.
-
 
240650
       */
-
 
240651
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
240652
        _Fields fields = findByThriftId(fieldId);
-
 
240653
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
240654
        return fields;
-
 
240655
      }
-
 
240656
 
-
 
240657
      /**
-
 
240658
       * Find the _Fields constant that matches name, or null if its not found.
-
 
240659
       */
-
 
240660
      public static _Fields findByName(String name) {
-
 
240661
        return byName.get(name);
-
 
240662
      }
-
 
240663
 
-
 
240664
      private final short _thriftId;
-
 
240665
      private final String _fieldName;
-
 
240666
 
-
 
240667
      _Fields(short thriftId, String fieldName) {
-
 
240668
        _thriftId = thriftId;
-
 
240669
        _fieldName = fieldName;
-
 
240670
      }
-
 
240671
 
-
 
240672
      public short getThriftFieldId() {
-
 
240673
        return _thriftId;
-
 
240674
      }
-
 
240675
 
-
 
240676
      public String getFieldName() {
-
 
240677
        return _fieldName;
-
 
240678
      }
-
 
240679
    }
-
 
240680
 
-
 
240681
    // isset id assignments
-
 
240682
    private static final int __ADDRESS_ID_ISSET_ID = 0;
-
 
240683
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
240684
 
-
 
240685
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
240686
    static {
-
 
240687
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
240688
      tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("address_id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240689
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
240690
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
240691
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseAddress_args.class, metaDataMap);
-
 
240692
    }
-
 
240693
 
-
 
240694
    public getWarehouseAddress_args() {
-
 
240695
    }
-
 
240696
 
-
 
240697
    public getWarehouseAddress_args(
-
 
240698
      long address_id)
-
 
240699
    {
-
 
240700
      this();
-
 
240701
      this.address_id = address_id;
-
 
240702
      setAddress_idIsSet(true);
-
 
240703
    }
-
 
240704
 
-
 
240705
    /**
-
 
240706
     * Performs a deep copy on <i>other</i>.
-
 
240707
     */
-
 
240708
    public getWarehouseAddress_args(getWarehouseAddress_args other) {
-
 
240709
      __isset_bit_vector.clear();
-
 
240710
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
240711
      this.address_id = other.address_id;
-
 
240712
    }
-
 
240713
 
-
 
240714
    public getWarehouseAddress_args deepCopy() {
-
 
240715
      return new getWarehouseAddress_args(this);
-
 
240716
    }
-
 
240717
 
-
 
240718
    @Override
-
 
240719
    public void clear() {
-
 
240720
      setAddress_idIsSet(false);
-
 
240721
      this.address_id = 0;
-
 
240722
    }
-
 
240723
 
-
 
240724
    public long getAddress_id() {
-
 
240725
      return this.address_id;
-
 
240726
    }
-
 
240727
 
-
 
240728
    public void setAddress_id(long address_id) {
-
 
240729
      this.address_id = address_id;
-
 
240730
      setAddress_idIsSet(true);
-
 
240731
    }
-
 
240732
 
-
 
240733
    public void unsetAddress_id() {
-
 
240734
      __isset_bit_vector.clear(__ADDRESS_ID_ISSET_ID);
-
 
240735
    }
-
 
240736
 
-
 
240737
    /** Returns true if field address_id is set (has been assigned a value) and false otherwise */
-
 
240738
    public boolean isSetAddress_id() {
-
 
240739
      return __isset_bit_vector.get(__ADDRESS_ID_ISSET_ID);
-
 
240740
    }
-
 
240741
 
-
 
240742
    public void setAddress_idIsSet(boolean value) {
-
 
240743
      __isset_bit_vector.set(__ADDRESS_ID_ISSET_ID, value);
-
 
240744
    }
-
 
240745
 
-
 
240746
    public void setFieldValue(_Fields field, Object value) {
-
 
240747
      switch (field) {
-
 
240748
      case ADDRESS_ID:
-
 
240749
        if (value == null) {
-
 
240750
          unsetAddress_id();
-
 
240751
        } else {
-
 
240752
          setAddress_id((Long)value);
-
 
240753
        }
-
 
240754
        break;
-
 
240755
 
-
 
240756
      }
-
 
240757
    }
-
 
240758
 
-
 
240759
    public Object getFieldValue(_Fields field) {
-
 
240760
      switch (field) {
-
 
240761
      case ADDRESS_ID:
-
 
240762
        return Long.valueOf(getAddress_id());
-
 
240763
 
-
 
240764
      }
-
 
240765
      throw new IllegalStateException();
-
 
240766
    }
-
 
240767
 
-
 
240768
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
240769
    public boolean isSet(_Fields field) {
-
 
240770
      if (field == null) {
-
 
240771
        throw new IllegalArgumentException();
-
 
240772
      }
-
 
240773
 
-
 
240774
      switch (field) {
-
 
240775
      case ADDRESS_ID:
-
 
240776
        return isSetAddress_id();
-
 
240777
      }
-
 
240778
      throw new IllegalStateException();
-
 
240779
    }
-
 
240780
 
-
 
240781
    @Override
-
 
240782
    public boolean equals(Object that) {
-
 
240783
      if (that == null)
-
 
240784
        return false;
-
 
240785
      if (that instanceof getWarehouseAddress_args)
-
 
240786
        return this.equals((getWarehouseAddress_args)that);
-
 
240787
      return false;
-
 
240788
    }
-
 
240789
 
-
 
240790
    public boolean equals(getWarehouseAddress_args that) {
-
 
240791
      if (that == null)
-
 
240792
        return false;
-
 
240793
 
-
 
240794
      boolean this_present_address_id = true;
-
 
240795
      boolean that_present_address_id = true;
-
 
240796
      if (this_present_address_id || that_present_address_id) {
-
 
240797
        if (!(this_present_address_id && that_present_address_id))
-
 
240798
          return false;
-
 
240799
        if (this.address_id != that.address_id)
-
 
240800
          return false;
-
 
240801
      }
-
 
240802
 
-
 
240803
      return true;
-
 
240804
    }
-
 
240805
 
-
 
240806
    @Override
-
 
240807
    public int hashCode() {
-
 
240808
      return 0;
-
 
240809
    }
-
 
240810
 
-
 
240811
    public int compareTo(getWarehouseAddress_args other) {
-
 
240812
      if (!getClass().equals(other.getClass())) {
-
 
240813
        return getClass().getName().compareTo(other.getClass().getName());
-
 
240814
      }
-
 
240815
 
-
 
240816
      int lastComparison = 0;
-
 
240817
      getWarehouseAddress_args typedOther = (getWarehouseAddress_args)other;
-
 
240818
 
-
 
240819
      lastComparison = Boolean.valueOf(isSetAddress_id()).compareTo(typedOther.isSetAddress_id());
-
 
240820
      if (lastComparison != 0) {
-
 
240821
        return lastComparison;
-
 
240822
      }
-
 
240823
      if (isSetAddress_id()) {
-
 
240824
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.address_id, typedOther.address_id);
-
 
240825
        if (lastComparison != 0) {
-
 
240826
          return lastComparison;
-
 
240827
        }
-
 
240828
      }
-
 
240829
      return 0;
-
 
240830
    }
-
 
240831
 
-
 
240832
    public _Fields fieldForId(int fieldId) {
-
 
240833
      return _Fields.findByThriftId(fieldId);
-
 
240834
    }
-
 
240835
 
-
 
240836
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
240837
      org.apache.thrift.protocol.TField field;
-
 
240838
      iprot.readStructBegin();
-
 
240839
      while (true)
-
 
240840
      {
-
 
240841
        field = iprot.readFieldBegin();
-
 
240842
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
240843
          break;
-
 
240844
        }
-
 
240845
        switch (field.id) {
-
 
240846
          case 1: // ADDRESS_ID
-
 
240847
            if (field.type == org.apache.thrift.protocol.TType.I64) {
-
 
240848
              this.address_id = iprot.readI64();
-
 
240849
              setAddress_idIsSet(true);
-
 
240850
            } else { 
-
 
240851
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240852
            }
-
 
240853
            break;
-
 
240854
          default:
-
 
240855
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
240856
        }
-
 
240857
        iprot.readFieldEnd();
-
 
240858
      }
-
 
240859
      iprot.readStructEnd();
-
 
240860
      validate();
-
 
240861
    }
-
 
240862
 
-
 
240863
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
240864
      validate();
-
 
240865
 
-
 
240866
      oprot.writeStructBegin(STRUCT_DESC);
-
 
240867
      oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
-
 
240868
      oprot.writeI64(this.address_id);
-
 
240869
      oprot.writeFieldEnd();
-
 
240870
      oprot.writeFieldStop();
-
 
240871
      oprot.writeStructEnd();
-
 
240872
    }
-
 
240873
 
-
 
240874
    @Override
-
 
240875
    public String toString() {
-
 
240876
      StringBuilder sb = new StringBuilder("getWarehouseAddress_args(");
-
 
240877
      boolean first = true;
-
 
240878
 
-
 
240879
      sb.append("address_id:");
-
 
240880
      sb.append(this.address_id);
-
 
240881
      first = false;
-
 
240882
      sb.append(")");
-
 
240883
      return sb.toString();
-
 
240884
    }
-
 
240885
 
-
 
240886
    public void validate() throws org.apache.thrift.TException {
-
 
240887
      // check for required fields
-
 
240888
    }
-
 
240889
 
-
 
240890
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
240891
      try {
-
 
240892
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
240893
      } catch (org.apache.thrift.TException te) {
-
 
240894
        throw new java.io.IOException(te);
-
 
240895
      }
-
 
240896
    }
-
 
240897
 
-
 
240898
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
240899
      try {
-
 
240900
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
240901
        __isset_bit_vector = new BitSet(1);
-
 
240902
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
240903
      } catch (org.apache.thrift.TException te) {
-
 
240904
        throw new java.io.IOException(te);
-
 
240905
      }
-
 
240906
    }
-
 
240907
 
-
 
240908
  }
-
 
240909
 
-
 
240910
  public static class getWarehouseAddress_result implements org.apache.thrift.TBase<getWarehouseAddress_result, getWarehouseAddress_result._Fields>, java.io.Serializable, Cloneable   {
-
 
240911
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getWarehouseAddress_result");
-
 
240912
 
-
 
240913
    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);
-
 
240914
 
-
 
240915
    private WarehouseAddress success; // required
-
 
240916
 
-
 
240917
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
240918
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
-
 
240919
      SUCCESS((short)0, "success");
-
 
240920
 
-
 
240921
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
240922
 
-
 
240923
      static {
-
 
240924
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
240925
          byName.put(field.getFieldName(), field);
-
 
240926
        }
-
 
240927
      }
-
 
240928
 
-
 
240929
      /**
-
 
240930
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
240931
       */
-
 
240932
      public static _Fields findByThriftId(int fieldId) {
-
 
240933
        switch(fieldId) {
-
 
240934
          case 0: // SUCCESS
-
 
240935
            return SUCCESS;
-
 
240936
          default:
-
 
240937
            return null;
-
 
240938
        }
-
 
240939
      }
-
 
240940
 
-
 
240941
      /**
-
 
240942
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
240943
       * if it is not found.
-
 
240944
       */
-
 
240945
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
240946
        _Fields fields = findByThriftId(fieldId);
-
 
240947
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
240948
        return fields;
-
 
240949
      }
-
 
240950
 
-
 
240951
      /**
-
 
240952
       * Find the _Fields constant that matches name, or null if its not found.
-
 
240953
       */
-
 
240954
      public static _Fields findByName(String name) {
-
 
240955
        return byName.get(name);
-
 
240956
      }
-
 
240957
 
-
 
240958
      private final short _thriftId;
-
 
240959
      private final String _fieldName;
-
 
240960
 
-
 
240961
      _Fields(short thriftId, String fieldName) {
-
 
240962
        _thriftId = thriftId;
-
 
240963
        _fieldName = fieldName;
-
 
240964
      }
-
 
240965
 
-
 
240966
      public short getThriftFieldId() {
-
 
240967
        return _thriftId;
-
 
240968
      }
-
 
240969
 
-
 
240970
      public String getFieldName() {
-
 
240971
        return _fieldName;
-
 
240972
      }
-
 
240973
    }
-
 
240974
 
-
 
240975
    // isset id assignments
-
 
240976
 
-
 
240977
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
-
 
240978
    static {
-
 
240979
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
240980
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
240981
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, WarehouseAddress.class)));
-
 
240982
      metaDataMap = Collections.unmodifiableMap(tmpMap);
-
 
240983
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getWarehouseAddress_result.class, metaDataMap);
-
 
240984
    }
-
 
240985
 
-
 
240986
    public getWarehouseAddress_result() {
-
 
240987
    }
-
 
240988
 
-
 
240989
    public getWarehouseAddress_result(
-
 
240990
      WarehouseAddress success)
-
 
240991
    {
-
 
240992
      this();
-
 
240993
      this.success = success;
-
 
240994
    }
-
 
240995
 
-
 
240996
    /**
-
 
240997
     * Performs a deep copy on <i>other</i>.
-
 
240998
     */
-
 
240999
    public getWarehouseAddress_result(getWarehouseAddress_result other) {
-
 
241000
      if (other.isSetSuccess()) {
-
 
241001
        this.success = new WarehouseAddress(other.success);
-
 
241002
      }
-
 
241003
    }
-
 
241004
 
-
 
241005
    public getWarehouseAddress_result deepCopy() {
-
 
241006
      return new getWarehouseAddress_result(this);
-
 
241007
    }
-
 
241008
 
-
 
241009
    @Override
-
 
241010
    public void clear() {
-
 
241011
      this.success = null;
-
 
241012
    }
-
 
241013
 
-
 
241014
    public WarehouseAddress getSuccess() {
-
 
241015
      return this.success;
-
 
241016
    }
-
 
241017
 
-
 
241018
    public void setSuccess(WarehouseAddress success) {
-
 
241019
      this.success = success;
-
 
241020
    }
-
 
241021
 
-
 
241022
    public void unsetSuccess() {
-
 
241023
      this.success = null;
-
 
241024
    }
-
 
241025
 
-
 
241026
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
-
 
241027
    public boolean isSetSuccess() {
-
 
241028
      return this.success != null;
-
 
241029
    }
-
 
241030
 
-
 
241031
    public void setSuccessIsSet(boolean value) {
-
 
241032
      if (!value) {
-
 
241033
        this.success = null;
-
 
241034
      }
-
 
241035
    }
-
 
241036
 
-
 
241037
    public void setFieldValue(_Fields field, Object value) {
-
 
241038
      switch (field) {
-
 
241039
      case SUCCESS:
-
 
241040
        if (value == null) {
-
 
241041
          unsetSuccess();
-
 
241042
        } else {
-
 
241043
          setSuccess((WarehouseAddress)value);
-
 
241044
        }
-
 
241045
        break;
-
 
241046
 
-
 
241047
      }
-
 
241048
    }
-
 
241049
 
-
 
241050
    public Object getFieldValue(_Fields field) {
-
 
241051
      switch (field) {
-
 
241052
      case SUCCESS:
-
 
241053
        return getSuccess();
-
 
241054
 
-
 
241055
      }
-
 
241056
      throw new IllegalStateException();
-
 
241057
    }
-
 
241058
 
-
 
241059
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
-
 
241060
    public boolean isSet(_Fields field) {
-
 
241061
      if (field == null) {
-
 
241062
        throw new IllegalArgumentException();
-
 
241063
      }
-
 
241064
 
-
 
241065
      switch (field) {
-
 
241066
      case SUCCESS:
-
 
241067
        return isSetSuccess();
-
 
241068
      }
-
 
241069
      throw new IllegalStateException();
-
 
241070
    }
-
 
241071
 
-
 
241072
    @Override
-
 
241073
    public boolean equals(Object that) {
-
 
241074
      if (that == null)
-
 
241075
        return false;
-
 
241076
      if (that instanceof getWarehouseAddress_result)
-
 
241077
        return this.equals((getWarehouseAddress_result)that);
-
 
241078
      return false;
-
 
241079
    }
-
 
241080
 
-
 
241081
    public boolean equals(getWarehouseAddress_result that) {
-
 
241082
      if (that == null)
-
 
241083
        return false;
-
 
241084
 
-
 
241085
      boolean this_present_success = true && this.isSetSuccess();
-
 
241086
      boolean that_present_success = true && that.isSetSuccess();
-
 
241087
      if (this_present_success || that_present_success) {
-
 
241088
        if (!(this_present_success && that_present_success))
-
 
241089
          return false;
-
 
241090
        if (!this.success.equals(that.success))
-
 
241091
          return false;
-
 
241092
      }
-
 
241093
 
-
 
241094
      return true;
-
 
241095
    }
-
 
241096
 
-
 
241097
    @Override
-
 
241098
    public int hashCode() {
-
 
241099
      return 0;
-
 
241100
    }
-
 
241101
 
-
 
241102
    public int compareTo(getWarehouseAddress_result other) {
-
 
241103
      if (!getClass().equals(other.getClass())) {
-
 
241104
        return getClass().getName().compareTo(other.getClass().getName());
-
 
241105
      }
-
 
241106
 
-
 
241107
      int lastComparison = 0;
-
 
241108
      getWarehouseAddress_result typedOther = (getWarehouseAddress_result)other;
-
 
241109
 
-
 
241110
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
-
 
241111
      if (lastComparison != 0) {
-
 
241112
        return lastComparison;
-
 
241113
      }
-
 
241114
      if (isSetSuccess()) {
-
 
241115
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
-
 
241116
        if (lastComparison != 0) {
-
 
241117
          return lastComparison;
-
 
241118
        }
-
 
241119
      }
-
 
241120
      return 0;
-
 
241121
    }
-
 
241122
 
-
 
241123
    public _Fields fieldForId(int fieldId) {
-
 
241124
      return _Fields.findByThriftId(fieldId);
-
 
241125
    }
-
 
241126
 
-
 
241127
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
-
 
241128
      org.apache.thrift.protocol.TField field;
-
 
241129
      iprot.readStructBegin();
-
 
241130
      while (true)
-
 
241131
      {
-
 
241132
        field = iprot.readFieldBegin();
-
 
241133
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
-
 
241134
          break;
-
 
241135
        }
-
 
241136
        switch (field.id) {
-
 
241137
          case 0: // SUCCESS
-
 
241138
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
-
 
241139
              this.success = new WarehouseAddress();
-
 
241140
              this.success.read(iprot);
-
 
241141
            } else { 
-
 
241142
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241143
            }
-
 
241144
            break;
-
 
241145
          default:
-
 
241146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
241147
        }
-
 
241148
        iprot.readFieldEnd();
-
 
241149
      }
-
 
241150
      iprot.readStructEnd();
-
 
241151
      validate();
-
 
241152
    }
-
 
241153
 
-
 
241154
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
-
 
241155
      oprot.writeStructBegin(STRUCT_DESC);
-
 
241156
 
-
 
241157
      if (this.isSetSuccess()) {
-
 
241158
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
241159
        this.success.write(oprot);
-
 
241160
        oprot.writeFieldEnd();
-
 
241161
      }
-
 
241162
      oprot.writeFieldStop();
-
 
241163
      oprot.writeStructEnd();
-
 
241164
    }
-
 
241165
 
-
 
241166
    @Override
-
 
241167
    public String toString() {
-
 
241168
      StringBuilder sb = new StringBuilder("getWarehouseAddress_result(");
-
 
241169
      boolean first = true;
-
 
241170
 
-
 
241171
      sb.append("success:");
-
 
241172
      if (this.success == null) {
-
 
241173
        sb.append("null");
240510
      } else {
241174
      } else {
240511
        sb.append(this.success);
241175
        sb.append(this.success);
240512
      }
241176
      }
240513
      first = false;
241177
      first = false;
240514
      sb.append(")");
241178
      sb.append(")");