Subversion Repositories SmartDukaan

Rev

Rev 582 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 582 Rev 593
Line 54... Line 54...
54
 
54
 
55
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, TException;
55
    public boolean setUserAsLoggedOut(long userid, long timestamp) throws UserContextException, TException;
56
 
56
 
57
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, TException;
57
    public boolean setDefaultAddress(long userid, long addressId) throws UserContextException, TException;
58
 
58
 
59
    public boolean updatePassword(long userid, String password) throws UserContextException, TException;
59
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, TException;
60
 
60
 
61
    public boolean forgotPassword(String email) throws UserContextException, TException;
61
    public boolean forgotPassword(String email) throws UserContextException, TException;
62
 
62
 
-
 
63
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, TException;
-
 
64
 
-
 
65
    public long getDefaultAddressId(long userId) throws UserContextException, TException;
-
 
66
 
63
    public long createCart(long userId) throws ShoppingCartException, TException;
67
    public long createCart(long userId) throws ShoppingCartException, TException;
64
 
68
 
65
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
69
    public Cart getCurrentCart(long userId) throws ShoppingCartException, TException;
66
 
70
 
67
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
71
    public Cart getCart(long cartId) throws ShoppingCartException, TException;
Line 620... Line 624...
620
        throw result.ucx;
624
        throw result.ucx;
621
      }
625
      }
622
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
626
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "setDefaultAddress failed: unknown result");
623
    }
627
    }
624
 
628
 
625
    public boolean updatePassword(long userid, String password) throws UserContextException, TException
629
    public boolean updatePassword(long userid, String oldPassword, String newPassword) throws UserContextException, TException
626
    {
630
    {
627
      send_updatePassword(userid, password);
631
      send_updatePassword(userid, oldPassword, newPassword);
628
      return recv_updatePassword();
632
      return recv_updatePassword();
629
    }
633
    }
630
 
634
 
631
    public void send_updatePassword(long userid, String password) throws TException
635
    public void send_updatePassword(long userid, String oldPassword, String newPassword) throws TException
632
    {
636
    {
633
      oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));
637
      oprot_.writeMessageBegin(new TMessage("updatePassword", TMessageType.CALL, seqid_));
634
      updatePassword_args args = new updatePassword_args();
638
      updatePassword_args args = new updatePassword_args();
635
      args.userid = userid;
639
      args.userid = userid;
-
 
640
      args.oldPassword = oldPassword;
636
      args.password = password;
641
      args.newPassword = newPassword;
637
      args.write(oprot_);
642
      args.write(oprot_);
638
      oprot_.writeMessageEnd();
643
      oprot_.writeMessageEnd();
639
      oprot_.getTransport().flush();
644
      oprot_.getTransport().flush();
640
    }
645
    }
641
 
646
 
Line 693... Line 698...
693
        throw result.ucx;
698
        throw result.ucx;
694
      }
699
      }
695
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
700
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "forgotPassword failed: unknown result");
696
    }
701
    }
697
 
702
 
-
 
703
    public List<Address> getAllAddressesForUser(long userId) throws UserContextException, TException
-
 
704
    {
-
 
705
      send_getAllAddressesForUser(userId);
-
 
706
      return recv_getAllAddressesForUser();
-
 
707
    }
-
 
708
 
-
 
709
    public void send_getAllAddressesForUser(long userId) throws TException
-
 
710
    {
-
 
711
      oprot_.writeMessageBegin(new TMessage("getAllAddressesForUser", TMessageType.CALL, seqid_));
-
 
712
      getAllAddressesForUser_args args = new getAllAddressesForUser_args();
-
 
713
      args.userId = userId;
-
 
714
      args.write(oprot_);
-
 
715
      oprot_.writeMessageEnd();
-
 
716
      oprot_.getTransport().flush();
-
 
717
    }
-
 
718
 
-
 
719
    public List<Address> recv_getAllAddressesForUser() throws UserContextException, TException
-
 
720
    {
-
 
721
      TMessage msg = iprot_.readMessageBegin();
-
 
722
      if (msg.type == TMessageType.EXCEPTION) {
-
 
723
        TApplicationException x = TApplicationException.read(iprot_);
-
 
724
        iprot_.readMessageEnd();
-
 
725
        throw x;
-
 
726
      }
-
 
727
      getAllAddressesForUser_result result = new getAllAddressesForUser_result();
-
 
728
      result.read(iprot_);
-
 
729
      iprot_.readMessageEnd();
-
 
730
      if (result.isSetSuccess()) {
-
 
731
        return result.success;
-
 
732
      }
-
 
733
      if (result.ucx != null) {
-
 
734
        throw result.ucx;
-
 
735
      }
-
 
736
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAllAddressesForUser failed: unknown result");
-
 
737
    }
-
 
738
 
-
 
739
    public long getDefaultAddressId(long userId) throws UserContextException, TException
-
 
740
    {
-
 
741
      send_getDefaultAddressId(userId);
-
 
742
      return recv_getDefaultAddressId();
-
 
743
    }
-
 
744
 
-
 
745
    public void send_getDefaultAddressId(long userId) throws TException
-
 
746
    {
-
 
747
      oprot_.writeMessageBegin(new TMessage("getDefaultAddressId", TMessageType.CALL, seqid_));
-
 
748
      getDefaultAddressId_args args = new getDefaultAddressId_args();
-
 
749
      args.userId = userId;
-
 
750
      args.write(oprot_);
-
 
751
      oprot_.writeMessageEnd();
-
 
752
      oprot_.getTransport().flush();
-
 
753
    }
-
 
754
 
-
 
755
    public long recv_getDefaultAddressId() throws UserContextException, TException
-
 
756
    {
-
 
757
      TMessage msg = iprot_.readMessageBegin();
-
 
758
      if (msg.type == TMessageType.EXCEPTION) {
-
 
759
        TApplicationException x = TApplicationException.read(iprot_);
-
 
760
        iprot_.readMessageEnd();
-
 
761
        throw x;
-
 
762
      }
-
 
763
      getDefaultAddressId_result result = new getDefaultAddressId_result();
-
 
764
      result.read(iprot_);
-
 
765
      iprot_.readMessageEnd();
-
 
766
      if (result.isSetSuccess()) {
-
 
767
        return result.success;
-
 
768
      }
-
 
769
      if (result.ucx != null) {
-
 
770
        throw result.ucx;
-
 
771
      }
-
 
772
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getDefaultAddressId failed: unknown result");
-
 
773
    }
-
 
774
 
698
    public long createCart(long userId) throws ShoppingCartException, TException
775
    public long createCart(long userId) throws ShoppingCartException, TException
699
    {
776
    {
700
      send_createCart(userId);
777
      send_createCart(userId);
701
      return recv_createCart();
778
      return recv_createCart();
702
    }
779
    }
Line 1732... Line 1809...
1732
      processMap_.put("setUserAsLoggedIn", new setUserAsLoggedIn());
1809
      processMap_.put("setUserAsLoggedIn", new setUserAsLoggedIn());
1733
      processMap_.put("setUserAsLoggedOut", new setUserAsLoggedOut());
1810
      processMap_.put("setUserAsLoggedOut", new setUserAsLoggedOut());
1734
      processMap_.put("setDefaultAddress", new setDefaultAddress());
1811
      processMap_.put("setDefaultAddress", new setDefaultAddress());
1735
      processMap_.put("updatePassword", new updatePassword());
1812
      processMap_.put("updatePassword", new updatePassword());
1736
      processMap_.put("forgotPassword", new forgotPassword());
1813
      processMap_.put("forgotPassword", new forgotPassword());
-
 
1814
      processMap_.put("getAllAddressesForUser", new getAllAddressesForUser());
-
 
1815
      processMap_.put("getDefaultAddressId", new getDefaultAddressId());
1737
      processMap_.put("createCart", new createCart());
1816
      processMap_.put("createCart", new createCart());
1738
      processMap_.put("getCurrentCart", new getCurrentCart());
1817
      processMap_.put("getCurrentCart", new getCurrentCart());
1739
      processMap_.put("getCart", new getCart());
1818
      processMap_.put("getCart", new getCart());
1740
      processMap_.put("getCartsForUser", new getCartsForUser());
1819
      processMap_.put("getCartsForUser", new getCartsForUser());
1741
      processMap_.put("getCartsByStatus", new getCartsByStatus());
1820
      processMap_.put("getCartsByStatus", new getCartsByStatus());
Line 2167... Line 2246...
2167
        updatePassword_args args = new updatePassword_args();
2246
        updatePassword_args args = new updatePassword_args();
2168
        args.read(iprot);
2247
        args.read(iprot);
2169
        iprot.readMessageEnd();
2248
        iprot.readMessageEnd();
2170
        updatePassword_result result = new updatePassword_result();
2249
        updatePassword_result result = new updatePassword_result();
2171
        try {
2250
        try {
2172
          result.success = iface_.updatePassword(args.userid, args.password);
2251
          result.success = iface_.updatePassword(args.userid, args.oldPassword, args.newPassword);
2173
          result.setSuccessIsSet(true);
2252
          result.setSuccessIsSet(true);
2174
        } catch (UserContextException ucx) {
2253
        } catch (UserContextException ucx) {
2175
          result.ucx = ucx;
2254
          result.ucx = ucx;
2176
        } catch (Throwable th) {
2255
        } catch (Throwable th) {
2177
          LOGGER.error("Internal error processing updatePassword", th);
2256
          LOGGER.error("Internal error processing updatePassword", th);
Line 2217... Line 2296...
2217
        oprot.getTransport().flush();
2296
        oprot.getTransport().flush();
2218
      }
2297
      }
2219
 
2298
 
2220
    }
2299
    }
2221
 
2300
 
-
 
2301
    private class getAllAddressesForUser implements ProcessFunction {
-
 
2302
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2303
      {
-
 
2304
        getAllAddressesForUser_args args = new getAllAddressesForUser_args();
-
 
2305
        args.read(iprot);
-
 
2306
        iprot.readMessageEnd();
-
 
2307
        getAllAddressesForUser_result result = new getAllAddressesForUser_result();
-
 
2308
        try {
-
 
2309
          result.success = iface_.getAllAddressesForUser(args.userId);
-
 
2310
        } catch (UserContextException ucx) {
-
 
2311
          result.ucx = ucx;
-
 
2312
        } catch (Throwable th) {
-
 
2313
          LOGGER.error("Internal error processing getAllAddressesForUser", th);
-
 
2314
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getAllAddressesForUser");
-
 
2315
          oprot.writeMessageBegin(new TMessage("getAllAddressesForUser", TMessageType.EXCEPTION, seqid));
-
 
2316
          x.write(oprot);
-
 
2317
          oprot.writeMessageEnd();
-
 
2318
          oprot.getTransport().flush();
-
 
2319
          return;
-
 
2320
        }
-
 
2321
        oprot.writeMessageBegin(new TMessage("getAllAddressesForUser", TMessageType.REPLY, seqid));
-
 
2322
        result.write(oprot);
-
 
2323
        oprot.writeMessageEnd();
-
 
2324
        oprot.getTransport().flush();
-
 
2325
      }
-
 
2326
 
-
 
2327
    }
-
 
2328
 
-
 
2329
    private class getDefaultAddressId implements ProcessFunction {
-
 
2330
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
-
 
2331
      {
-
 
2332
        getDefaultAddressId_args args = new getDefaultAddressId_args();
-
 
2333
        args.read(iprot);
-
 
2334
        iprot.readMessageEnd();
-
 
2335
        getDefaultAddressId_result result = new getDefaultAddressId_result();
-
 
2336
        try {
-
 
2337
          result.success = iface_.getDefaultAddressId(args.userId);
-
 
2338
          result.setSuccessIsSet(true);
-
 
2339
        } catch (UserContextException ucx) {
-
 
2340
          result.ucx = ucx;
-
 
2341
        } catch (Throwable th) {
-
 
2342
          LOGGER.error("Internal error processing getDefaultAddressId", th);
-
 
2343
          TApplicationException x = new TApplicationException(TApplicationException.INTERNAL_ERROR, "Internal error processing getDefaultAddressId");
-
 
2344
          oprot.writeMessageBegin(new TMessage("getDefaultAddressId", TMessageType.EXCEPTION, seqid));
-
 
2345
          x.write(oprot);
-
 
2346
          oprot.writeMessageEnd();
-
 
2347
          oprot.getTransport().flush();
-
 
2348
          return;
-
 
2349
        }
-
 
2350
        oprot.writeMessageBegin(new TMessage("getDefaultAddressId", TMessageType.REPLY, seqid));
-
 
2351
        result.write(oprot);
-
 
2352
        oprot.writeMessageEnd();
-
 
2353
        oprot.getTransport().flush();
-
 
2354
      }
-
 
2355
 
-
 
2356
    }
-
 
2357
 
2222
    private class createCart implements ProcessFunction {
2358
    private class createCart implements ProcessFunction {
2223
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2359
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
2224
      {
2360
      {
2225
        createCart_args args = new createCart_args();
2361
        createCart_args args = new createCart_args();
2226
        args.read(iprot);
2362
        args.read(iprot);
Line 11925... Line 12061...
11925
 
12061
 
11926
  public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args>   {
12062
  public static class updatePassword_args implements TBase<updatePassword_args._Fields>, java.io.Serializable, Cloneable, Comparable<updatePassword_args>   {
11927
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");
12063
    private static final TStruct STRUCT_DESC = new TStruct("updatePassword_args");
11928
 
12064
 
11929
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)1);
12065
    private static final TField USERID_FIELD_DESC = new TField("userid", TType.I64, (short)1);
11930
    private static final TField PASSWORD_FIELD_DESC = new TField("password", TType.STRING, (short)2);
12066
    private static final TField OLD_PASSWORD_FIELD_DESC = new TField("oldPassword", TType.STRING, (short)2);
-
 
12067
    private static final TField NEW_PASSWORD_FIELD_DESC = new TField("newPassword", TType.STRING, (short)3);
11931
 
12068
 
11932
    private long userid;
12069
    private long userid;
-
 
12070
    private String oldPassword;
11933
    private String password;
12071
    private String newPassword;
11934
 
12072
 
11935
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
12073
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
11936
    public enum _Fields implements TFieldIdEnum {
12074
    public enum _Fields implements TFieldIdEnum {
11937
      USERID((short)1, "userid"),
12075
      USERID((short)1, "userid"),
-
 
12076
      OLD_PASSWORD((short)2, "oldPassword"),
11938
      PASSWORD((short)2, "password");
12077
      NEW_PASSWORD((short)3, "newPassword");
11939
 
12078
 
11940
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
12079
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
11941
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
12080
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
11942
 
12081
 
11943
      static {
12082
      static {
Line 11993... Line 12132...
11993
    private BitSet __isset_bit_vector = new BitSet(1);
12132
    private BitSet __isset_bit_vector = new BitSet(1);
11994
 
12133
 
11995
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
12134
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
11996
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
12135
      put(_Fields.USERID, new FieldMetaData("userid", TFieldRequirementType.DEFAULT, 
11997
          new FieldValueMetaData(TType.I64)));
12136
          new FieldValueMetaData(TType.I64)));
11998
      put(_Fields.PASSWORD, new FieldMetaData("password", TFieldRequirementType.DEFAULT, 
12137
      put(_Fields.OLD_PASSWORD, new FieldMetaData("oldPassword", TFieldRequirementType.DEFAULT, 
-
 
12138
          new FieldValueMetaData(TType.STRING)));
-
 
12139
      put(_Fields.NEW_PASSWORD, new FieldMetaData("newPassword", TFieldRequirementType.DEFAULT, 
11999
          new FieldValueMetaData(TType.STRING)));
12140
          new FieldValueMetaData(TType.STRING)));
12000
    }});
12141
    }});
12001
 
12142
 
12002
    static {
12143
    static {
12003
      FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
12144
      FieldMetaData.addStructMetaDataMap(updatePassword_args.class, metaDataMap);
Line 12006... Line 12147...
12006
    public updatePassword_args() {
12147
    public updatePassword_args() {
12007
    }
12148
    }
12008
 
12149
 
12009
    public updatePassword_args(
12150
    public updatePassword_args(
12010
      long userid,
12151
      long userid,
-
 
12152
      String oldPassword,
12011
      String password)
12153
      String newPassword)
12012
    {
12154
    {
12013
      this();
12155
      this();
12014
      this.userid = userid;
12156
      this.userid = userid;
12015
      setUseridIsSet(true);
12157
      setUseridIsSet(true);
-
 
12158
      this.oldPassword = oldPassword;
12016
      this.password = password;
12159
      this.newPassword = newPassword;
12017
    }
12160
    }
12018
 
12161
 
12019
    /**
12162
    /**
12020
     * Performs a deep copy on <i>other</i>.
12163
     * Performs a deep copy on <i>other</i>.
12021
     */
12164
     */
12022
    public updatePassword_args(updatePassword_args other) {
12165
    public updatePassword_args(updatePassword_args other) {
12023
      __isset_bit_vector.clear();
12166
      __isset_bit_vector.clear();
12024
      __isset_bit_vector.or(other.__isset_bit_vector);
12167
      __isset_bit_vector.or(other.__isset_bit_vector);
12025
      this.userid = other.userid;
12168
      this.userid = other.userid;
12026
      if (other.isSetPassword()) {
12169
      if (other.isSetOldPassword()) {
-
 
12170
        this.oldPassword = other.oldPassword;
-
 
12171
      }
-
 
12172
      if (other.isSetNewPassword()) {
12027
        this.password = other.password;
12173
        this.newPassword = other.newPassword;
12028
      }
12174
      }
12029
    }
12175
    }
12030
 
12176
 
12031
    public updatePassword_args deepCopy() {
12177
    public updatePassword_args deepCopy() {
12032
      return new updatePassword_args(this);
12178
      return new updatePassword_args(this);
Line 12058... Line 12204...
12058
 
12204
 
12059
    public void setUseridIsSet(boolean value) {
12205
    public void setUseridIsSet(boolean value) {
12060
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
12206
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
12061
    }
12207
    }
12062
 
12208
 
12063
    public String getPassword() {
12209
    public String getOldPassword() {
12064
      return this.password;
12210
      return this.oldPassword;
12065
    }
12211
    }
12066
 
12212
 
12067
    public updatePassword_args setPassword(String password) {
12213
    public updatePassword_args setOldPassword(String oldPassword) {
12068
      this.password = password;
12214
      this.oldPassword = oldPassword;
12069
      return this;
12215
      return this;
12070
    }
12216
    }
12071
 
12217
 
12072
    public void unsetPassword() {
12218
    public void unsetOldPassword() {
12073
      this.password = null;
12219
      this.oldPassword = null;
12074
    }
12220
    }
12075
 
12221
 
12076
    /** Returns true if field password is set (has been asigned a value) and false otherwise */
12222
    /** Returns true if field oldPassword is set (has been asigned a value) and false otherwise */
12077
    public boolean isSetPassword() {
12223
    public boolean isSetOldPassword() {
12078
      return this.password != null;
12224
      return this.oldPassword != null;
12079
    }
12225
    }
12080
 
12226
 
12081
    public void setPasswordIsSet(boolean value) {
12227
    public void setOldPasswordIsSet(boolean value) {
12082
      if (!value) {
12228
      if (!value) {
12083
        this.password = null;
12229
        this.oldPassword = null;
-
 
12230
      }
-
 
12231
    }
-
 
12232
 
-
 
12233
    public String getNewPassword() {
-
 
12234
      return this.newPassword;
-
 
12235
    }
-
 
12236
 
-
 
12237
    public updatePassword_args setNewPassword(String newPassword) {
-
 
12238
      this.newPassword = newPassword;
-
 
12239
      return this;
-
 
12240
    }
-
 
12241
 
-
 
12242
    public void unsetNewPassword() {
-
 
12243
      this.newPassword = null;
-
 
12244
    }
-
 
12245
 
-
 
12246
    /** Returns true if field newPassword is set (has been asigned a value) and false otherwise */
-
 
12247
    public boolean isSetNewPassword() {
-
 
12248
      return this.newPassword != null;
-
 
12249
    }
-
 
12250
 
-
 
12251
    public void setNewPasswordIsSet(boolean value) {
-
 
12252
      if (!value) {
-
 
12253
        this.newPassword = null;
12084
      }
12254
      }
12085
    }
12255
    }
12086
 
12256
 
12087
    public void setFieldValue(_Fields field, Object value) {
12257
    public void setFieldValue(_Fields field, Object value) {
12088
      switch (field) {
12258
      switch (field) {
Line 12092... Line 12262...
12092
        } else {
12262
        } else {
12093
          setUserid((Long)value);
12263
          setUserid((Long)value);
12094
        }
12264
        }
12095
        break;
12265
        break;
12096
 
12266
 
12097
      case PASSWORD:
12267
      case OLD_PASSWORD:
12098
        if (value == null) {
12268
        if (value == null) {
12099
          unsetPassword();
12269
          unsetOldPassword();
12100
        } else {
12270
        } else {
12101
          setPassword((String)value);
12271
          setOldPassword((String)value);
-
 
12272
        }
-
 
12273
        break;
-
 
12274
 
-
 
12275
      case NEW_PASSWORD:
-
 
12276
        if (value == null) {
-
 
12277
          unsetNewPassword();
-
 
12278
        } else {
-
 
12279
          setNewPassword((String)value);
12102
        }
12280
        }
12103
        break;
12281
        break;
12104
 
12282
 
12105
      }
12283
      }
12106
    }
12284
    }
Line 12112... Line 12290...
12112
    public Object getFieldValue(_Fields field) {
12290
    public Object getFieldValue(_Fields field) {
12113
      switch (field) {
12291
      switch (field) {
12114
      case USERID:
12292
      case USERID:
12115
        return new Long(getUserid());
12293
        return new Long(getUserid());
12116
 
12294
 
-
 
12295
      case OLD_PASSWORD:
-
 
12296
        return getOldPassword();
-
 
12297
 
12117
      case PASSWORD:
12298
      case NEW_PASSWORD:
12118
        return getPassword();
12299
        return getNewPassword();
12119
 
12300
 
12120
      }
12301
      }
12121
      throw new IllegalStateException();
12302
      throw new IllegalStateException();
12122
    }
12303
    }
12123
 
12304
 
Line 12128... Line 12309...
12128
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12309
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
12129
    public boolean isSet(_Fields field) {
12310
    public boolean isSet(_Fields field) {
12130
      switch (field) {
12311
      switch (field) {
12131
      case USERID:
12312
      case USERID:
12132
        return isSetUserid();
12313
        return isSetUserid();
-
 
12314
      case OLD_PASSWORD:
-
 
12315
        return isSetOldPassword();
12133
      case PASSWORD:
12316
      case NEW_PASSWORD:
12134
        return isSetPassword();
12317
        return isSetNewPassword();
12135
      }
12318
      }
12136
      throw new IllegalStateException();
12319
      throw new IllegalStateException();
12137
    }
12320
    }
12138
 
12321
 
12139
    public boolean isSet(int fieldID) {
12322
    public boolean isSet(int fieldID) {
Line 12160... Line 12343...
12160
          return false;
12343
          return false;
12161
        if (this.userid != that.userid)
12344
        if (this.userid != that.userid)
12162
          return false;
12345
          return false;
12163
      }
12346
      }
12164
 
12347
 
12165
      boolean this_present_password = true && this.isSetPassword();
12348
      boolean this_present_oldPassword = true && this.isSetOldPassword();
12166
      boolean that_present_password = true && that.isSetPassword();
12349
      boolean that_present_oldPassword = true && that.isSetOldPassword();
12167
      if (this_present_password || that_present_password) {
12350
      if (this_present_oldPassword || that_present_oldPassword) {
12168
        if (!(this_present_password && that_present_password))
12351
        if (!(this_present_oldPassword && that_present_oldPassword))
12169
          return false;
12352
          return false;
12170
        if (!this.password.equals(that.password))
12353
        if (!this.oldPassword.equals(that.oldPassword))
-
 
12354
          return false;
-
 
12355
      }
-
 
12356
 
-
 
12357
      boolean this_present_newPassword = true && this.isSetNewPassword();
-
 
12358
      boolean that_present_newPassword = true && that.isSetNewPassword();
-
 
12359
      if (this_present_newPassword || that_present_newPassword) {
-
 
12360
        if (!(this_present_newPassword && that_present_newPassword))
-
 
12361
          return false;
-
 
12362
        if (!this.newPassword.equals(that.newPassword))
12171
          return false;
12363
          return false;
12172
      }
12364
      }
12173
 
12365
 
12174
      return true;
12366
      return true;
12175
    }
12367
    }
Line 12193... Line 12385...
12193
      }
12385
      }
12194
      lastComparison = TBaseHelper.compareTo(userid, typedOther.userid);
12386
      lastComparison = TBaseHelper.compareTo(userid, typedOther.userid);
12195
      if (lastComparison != 0) {
12387
      if (lastComparison != 0) {
12196
        return lastComparison;
12388
        return lastComparison;
12197
      }
12389
      }
12198
      lastComparison = Boolean.valueOf(isSetPassword()).compareTo(isSetPassword());
12390
      lastComparison = Boolean.valueOf(isSetOldPassword()).compareTo(isSetOldPassword());
12199
      if (lastComparison != 0) {
12391
      if (lastComparison != 0) {
12200
        return lastComparison;
12392
        return lastComparison;
12201
      }
12393
      }
12202
      lastComparison = TBaseHelper.compareTo(password, typedOther.password);
12394
      lastComparison = TBaseHelper.compareTo(oldPassword, typedOther.oldPassword);
-
 
12395
      if (lastComparison != 0) {
-
 
12396
        return lastComparison;
-
 
12397
      }
-
 
12398
      lastComparison = Boolean.valueOf(isSetNewPassword()).compareTo(isSetNewPassword());
-
 
12399
      if (lastComparison != 0) {
-
 
12400
        return lastComparison;
-
 
12401
      }
-
 
12402
      lastComparison = TBaseHelper.compareTo(newPassword, typedOther.newPassword);
12203
      if (lastComparison != 0) {
12403
      if (lastComparison != 0) {
12204
        return lastComparison;
12404
        return lastComparison;
12205
      }
12405
      }
12206
      return 0;
12406
      return 0;
12207
    }
12407
    }
Line 12226... Line 12426...
12226
                setUseridIsSet(true);
12426
                setUseridIsSet(true);
12227
              } else { 
12427
              } else { 
12228
                TProtocolUtil.skip(iprot, field.type);
12428
                TProtocolUtil.skip(iprot, field.type);
12229
              }
12429
              }
12230
              break;
12430
              break;
12231
            case PASSWORD:
12431
            case OLD_PASSWORD:
12232
              if (field.type == TType.STRING) {
12432
              if (field.type == TType.STRING) {
12233
                this.password = iprot.readString();
12433
                this.oldPassword = iprot.readString();
-
 
12434
              } else { 
-
 
12435
                TProtocolUtil.skip(iprot, field.type);
-
 
12436
              }
-
 
12437
              break;
-
 
12438
            case NEW_PASSWORD:
-
 
12439
              if (field.type == TType.STRING) {
-
 
12440
                this.newPassword = iprot.readString();
12234
              } else { 
12441
              } else { 
12235
                TProtocolUtil.skip(iprot, field.type);
12442
                TProtocolUtil.skip(iprot, field.type);
12236
              }
12443
              }
12237
              break;
12444
              break;
12238
          }
12445
          }
Line 12248... Line 12455...
12248
 
12455
 
12249
      oprot.writeStructBegin(STRUCT_DESC);
12456
      oprot.writeStructBegin(STRUCT_DESC);
12250
      oprot.writeFieldBegin(USERID_FIELD_DESC);
12457
      oprot.writeFieldBegin(USERID_FIELD_DESC);
12251
      oprot.writeI64(this.userid);
12458
      oprot.writeI64(this.userid);
12252
      oprot.writeFieldEnd();
12459
      oprot.writeFieldEnd();
12253
      if (this.password != null) {
12460
      if (this.oldPassword != null) {
-
 
12461
        oprot.writeFieldBegin(OLD_PASSWORD_FIELD_DESC);
-
 
12462
        oprot.writeString(this.oldPassword);
-
 
12463
        oprot.writeFieldEnd();
-
 
12464
      }
-
 
12465
      if (this.newPassword != null) {
12254
        oprot.writeFieldBegin(PASSWORD_FIELD_DESC);
12466
        oprot.writeFieldBegin(NEW_PASSWORD_FIELD_DESC);
12255
        oprot.writeString(this.password);
12467
        oprot.writeString(this.newPassword);
12256
        oprot.writeFieldEnd();
12468
        oprot.writeFieldEnd();
12257
      }
12469
      }
12258
      oprot.writeFieldStop();
12470
      oprot.writeFieldStop();
12259
      oprot.writeStructEnd();
12471
      oprot.writeStructEnd();
12260
    }
12472
    }
Line 12266... Line 12478...
12266
 
12478
 
12267
      sb.append("userid:");
12479
      sb.append("userid:");
12268
      sb.append(this.userid);
12480
      sb.append(this.userid);
12269
      first = false;
12481
      first = false;
12270
      if (!first) sb.append(", ");
12482
      if (!first) sb.append(", ");
12271
      sb.append("password:");
12483
      sb.append("oldPassword:");
12272
      if (this.password == null) {
12484
      if (this.oldPassword == null) {
12273
        sb.append("null");
12485
        sb.append("null");
12274
      } else {
12486
      } else {
12275
        sb.append(this.password);
12487
        sb.append(this.oldPassword);
-
 
12488
      }
-
 
12489
      first = false;
-
 
12490
      if (!first) sb.append(", ");
-
 
12491
      sb.append("newPassword:");
-
 
12492
      if (this.newPassword == null) {
-
 
12493
        sb.append("null");
-
 
12494
      } else {
-
 
12495
        sb.append(this.newPassword);
12276
      }
12496
      }
12277
      first = false;
12497
      first = false;
12278
      sb.append(")");
12498
      sb.append(")");
12279
      return sb.toString();
12499
      return sb.toString();
12280
    }
12500
    }
Line 13290... Line 13510...
13290
      // check for required fields
13510
      // check for required fields
13291
    }
13511
    }
13292
 
13512
 
13293
  }
13513
  }
13294
 
13514
 
-
 
13515
  public static class getAllAddressesForUser_args implements TBase<getAllAddressesForUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAddressesForUser_args>   {
-
 
13516
    private static final TStruct STRUCT_DESC = new TStruct("getAllAddressesForUser_args");
-
 
13517
 
-
 
13518
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
13519
 
-
 
13520
    private long userId;
-
 
13521
 
-
 
13522
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13523
    public enum _Fields implements TFieldIdEnum {
-
 
13524
      USER_ID((short)1, "userId");
-
 
13525
 
-
 
13526
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
13527
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13528
 
-
 
13529
      static {
-
 
13530
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13531
          byId.put((int)field._thriftId, field);
-
 
13532
          byName.put(field.getFieldName(), field);
-
 
13533
        }
-
 
13534
      }
-
 
13535
 
-
 
13536
      /**
-
 
13537
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13538
       */
-
 
13539
      public static _Fields findByThriftId(int fieldId) {
-
 
13540
        return byId.get(fieldId);
-
 
13541
      }
-
 
13542
 
-
 
13543
      /**
-
 
13544
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13545
       * if it is not found.
-
 
13546
       */
-
 
13547
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13548
        _Fields fields = findByThriftId(fieldId);
-
 
13549
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13550
        return fields;
-
 
13551
      }
-
 
13552
 
-
 
13553
      /**
-
 
13554
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13555
       */
-
 
13556
      public static _Fields findByName(String name) {
-
 
13557
        return byName.get(name);
-
 
13558
      }
-
 
13559
 
-
 
13560
      private final short _thriftId;
-
 
13561
      private final String _fieldName;
-
 
13562
 
-
 
13563
      _Fields(short thriftId, String fieldName) {
-
 
13564
        _thriftId = thriftId;
-
 
13565
        _fieldName = fieldName;
-
 
13566
      }
-
 
13567
 
-
 
13568
      public short getThriftFieldId() {
-
 
13569
        return _thriftId;
-
 
13570
      }
-
 
13571
 
-
 
13572
      public String getFieldName() {
-
 
13573
        return _fieldName;
-
 
13574
      }
-
 
13575
    }
-
 
13576
 
-
 
13577
    // isset id assignments
-
 
13578
    private static final int __USERID_ISSET_ID = 0;
-
 
13579
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
13580
 
-
 
13581
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
13582
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
13583
          new FieldValueMetaData(TType.I64)));
-
 
13584
    }});
-
 
13585
 
-
 
13586
    static {
-
 
13587
      FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_args.class, metaDataMap);
-
 
13588
    }
-
 
13589
 
-
 
13590
    public getAllAddressesForUser_args() {
-
 
13591
    }
-
 
13592
 
-
 
13593
    public getAllAddressesForUser_args(
-
 
13594
      long userId)
-
 
13595
    {
-
 
13596
      this();
-
 
13597
      this.userId = userId;
-
 
13598
      setUserIdIsSet(true);
-
 
13599
    }
-
 
13600
 
-
 
13601
    /**
-
 
13602
     * Performs a deep copy on <i>other</i>.
-
 
13603
     */
-
 
13604
    public getAllAddressesForUser_args(getAllAddressesForUser_args other) {
-
 
13605
      __isset_bit_vector.clear();
-
 
13606
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
13607
      this.userId = other.userId;
-
 
13608
    }
-
 
13609
 
-
 
13610
    public getAllAddressesForUser_args deepCopy() {
-
 
13611
      return new getAllAddressesForUser_args(this);
-
 
13612
    }
-
 
13613
 
-
 
13614
    @Deprecated
-
 
13615
    public getAllAddressesForUser_args clone() {
-
 
13616
      return new getAllAddressesForUser_args(this);
-
 
13617
    }
-
 
13618
 
-
 
13619
    public long getUserId() {
-
 
13620
      return this.userId;
-
 
13621
    }
-
 
13622
 
-
 
13623
    public getAllAddressesForUser_args setUserId(long userId) {
-
 
13624
      this.userId = userId;
-
 
13625
      setUserIdIsSet(true);
-
 
13626
      return this;
-
 
13627
    }
-
 
13628
 
-
 
13629
    public void unsetUserId() {
-
 
13630
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
13631
    }
-
 
13632
 
-
 
13633
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
13634
    public boolean isSetUserId() {
-
 
13635
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
13636
    }
-
 
13637
 
-
 
13638
    public void setUserIdIsSet(boolean value) {
-
 
13639
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
13640
    }
-
 
13641
 
-
 
13642
    public void setFieldValue(_Fields field, Object value) {
-
 
13643
      switch (field) {
-
 
13644
      case USER_ID:
-
 
13645
        if (value == null) {
-
 
13646
          unsetUserId();
-
 
13647
        } else {
-
 
13648
          setUserId((Long)value);
-
 
13649
        }
-
 
13650
        break;
-
 
13651
 
-
 
13652
      }
-
 
13653
    }
-
 
13654
 
-
 
13655
    public void setFieldValue(int fieldID, Object value) {
-
 
13656
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
13657
    }
-
 
13658
 
-
 
13659
    public Object getFieldValue(_Fields field) {
-
 
13660
      switch (field) {
-
 
13661
      case USER_ID:
-
 
13662
        return new Long(getUserId());
-
 
13663
 
-
 
13664
      }
-
 
13665
      throw new IllegalStateException();
-
 
13666
    }
-
 
13667
 
-
 
13668
    public Object getFieldValue(int fieldId) {
-
 
13669
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
13670
    }
-
 
13671
 
-
 
13672
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
13673
    public boolean isSet(_Fields field) {
-
 
13674
      switch (field) {
-
 
13675
      case USER_ID:
-
 
13676
        return isSetUserId();
-
 
13677
      }
-
 
13678
      throw new IllegalStateException();
-
 
13679
    }
-
 
13680
 
-
 
13681
    public boolean isSet(int fieldID) {
-
 
13682
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
13683
    }
-
 
13684
 
-
 
13685
    @Override
-
 
13686
    public boolean equals(Object that) {
-
 
13687
      if (that == null)
-
 
13688
        return false;
-
 
13689
      if (that instanceof getAllAddressesForUser_args)
-
 
13690
        return this.equals((getAllAddressesForUser_args)that);
-
 
13691
      return false;
-
 
13692
    }
-
 
13693
 
-
 
13694
    public boolean equals(getAllAddressesForUser_args that) {
-
 
13695
      if (that == null)
-
 
13696
        return false;
-
 
13697
 
-
 
13698
      boolean this_present_userId = true;
-
 
13699
      boolean that_present_userId = true;
-
 
13700
      if (this_present_userId || that_present_userId) {
-
 
13701
        if (!(this_present_userId && that_present_userId))
-
 
13702
          return false;
-
 
13703
        if (this.userId != that.userId)
-
 
13704
          return false;
-
 
13705
      }
-
 
13706
 
-
 
13707
      return true;
-
 
13708
    }
-
 
13709
 
-
 
13710
    @Override
-
 
13711
    public int hashCode() {
-
 
13712
      return 0;
-
 
13713
    }
-
 
13714
 
-
 
13715
    public int compareTo(getAllAddressesForUser_args other) {
-
 
13716
      if (!getClass().equals(other.getClass())) {
-
 
13717
        return getClass().getName().compareTo(other.getClass().getName());
-
 
13718
      }
-
 
13719
 
-
 
13720
      int lastComparison = 0;
-
 
13721
      getAllAddressesForUser_args typedOther = (getAllAddressesForUser_args)other;
-
 
13722
 
-
 
13723
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
13724
      if (lastComparison != 0) {
-
 
13725
        return lastComparison;
-
 
13726
      }
-
 
13727
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
13728
      if (lastComparison != 0) {
-
 
13729
        return lastComparison;
-
 
13730
      }
-
 
13731
      return 0;
-
 
13732
    }
-
 
13733
 
-
 
13734
    public void read(TProtocol iprot) throws TException {
-
 
13735
      TField field;
-
 
13736
      iprot.readStructBegin();
-
 
13737
      while (true)
-
 
13738
      {
-
 
13739
        field = iprot.readFieldBegin();
-
 
13740
        if (field.type == TType.STOP) { 
-
 
13741
          break;
-
 
13742
        }
-
 
13743
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
13744
        if (fieldId == null) {
-
 
13745
          TProtocolUtil.skip(iprot, field.type);
-
 
13746
        } else {
-
 
13747
          switch (fieldId) {
-
 
13748
            case USER_ID:
-
 
13749
              if (field.type == TType.I64) {
-
 
13750
                this.userId = iprot.readI64();
-
 
13751
                setUserIdIsSet(true);
-
 
13752
              } else { 
-
 
13753
                TProtocolUtil.skip(iprot, field.type);
-
 
13754
              }
-
 
13755
              break;
-
 
13756
          }
-
 
13757
          iprot.readFieldEnd();
-
 
13758
        }
-
 
13759
      }
-
 
13760
      iprot.readStructEnd();
-
 
13761
      validate();
-
 
13762
    }
-
 
13763
 
-
 
13764
    public void write(TProtocol oprot) throws TException {
-
 
13765
      validate();
-
 
13766
 
-
 
13767
      oprot.writeStructBegin(STRUCT_DESC);
-
 
13768
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
13769
      oprot.writeI64(this.userId);
-
 
13770
      oprot.writeFieldEnd();
-
 
13771
      oprot.writeFieldStop();
-
 
13772
      oprot.writeStructEnd();
-
 
13773
    }
-
 
13774
 
-
 
13775
    @Override
-
 
13776
    public String toString() {
-
 
13777
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_args(");
-
 
13778
      boolean first = true;
-
 
13779
 
-
 
13780
      sb.append("userId:");
-
 
13781
      sb.append(this.userId);
-
 
13782
      first = false;
-
 
13783
      sb.append(")");
-
 
13784
      return sb.toString();
-
 
13785
    }
-
 
13786
 
-
 
13787
    public void validate() throws TException {
-
 
13788
      // check for required fields
-
 
13789
    }
-
 
13790
 
-
 
13791
  }
-
 
13792
 
-
 
13793
  public static class getAllAddressesForUser_result implements TBase<getAllAddressesForUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAllAddressesForUser_result>   {
-
 
13794
    private static final TStruct STRUCT_DESC = new TStruct("getAllAddressesForUser_result");
-
 
13795
 
-
 
13796
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.LIST, (short)0);
-
 
13797
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
13798
 
-
 
13799
    private List<Address> success;
-
 
13800
    private UserContextException ucx;
-
 
13801
 
-
 
13802
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
13803
    public enum _Fields implements TFieldIdEnum {
-
 
13804
      SUCCESS((short)0, "success"),
-
 
13805
      UCX((short)1, "ucx");
-
 
13806
 
-
 
13807
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
13808
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
13809
 
-
 
13810
      static {
-
 
13811
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
13812
          byId.put((int)field._thriftId, field);
-
 
13813
          byName.put(field.getFieldName(), field);
-
 
13814
        }
-
 
13815
      }
-
 
13816
 
-
 
13817
      /**
-
 
13818
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
13819
       */
-
 
13820
      public static _Fields findByThriftId(int fieldId) {
-
 
13821
        return byId.get(fieldId);
-
 
13822
      }
-
 
13823
 
-
 
13824
      /**
-
 
13825
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
13826
       * if it is not found.
-
 
13827
       */
-
 
13828
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
13829
        _Fields fields = findByThriftId(fieldId);
-
 
13830
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
13831
        return fields;
-
 
13832
      }
-
 
13833
 
-
 
13834
      /**
-
 
13835
       * Find the _Fields constant that matches name, or null if its not found.
-
 
13836
       */
-
 
13837
      public static _Fields findByName(String name) {
-
 
13838
        return byName.get(name);
-
 
13839
      }
-
 
13840
 
-
 
13841
      private final short _thriftId;
-
 
13842
      private final String _fieldName;
-
 
13843
 
-
 
13844
      _Fields(short thriftId, String fieldName) {
-
 
13845
        _thriftId = thriftId;
-
 
13846
        _fieldName = fieldName;
-
 
13847
      }
-
 
13848
 
-
 
13849
      public short getThriftFieldId() {
-
 
13850
        return _thriftId;
-
 
13851
      }
-
 
13852
 
-
 
13853
      public String getFieldName() {
-
 
13854
        return _fieldName;
-
 
13855
      }
-
 
13856
    }
-
 
13857
 
-
 
13858
    // isset id assignments
-
 
13859
 
-
 
13860
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
13861
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
13862
          new ListMetaData(TType.LIST, 
-
 
13863
              new StructMetaData(TType.STRUCT, Address.class))));
-
 
13864
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
13865
          new FieldValueMetaData(TType.STRUCT)));
-
 
13866
    }});
-
 
13867
 
-
 
13868
    static {
-
 
13869
      FieldMetaData.addStructMetaDataMap(getAllAddressesForUser_result.class, metaDataMap);
-
 
13870
    }
-
 
13871
 
-
 
13872
    public getAllAddressesForUser_result() {
-
 
13873
    }
-
 
13874
 
-
 
13875
    public getAllAddressesForUser_result(
-
 
13876
      List<Address> success,
-
 
13877
      UserContextException ucx)
-
 
13878
    {
-
 
13879
      this();
-
 
13880
      this.success = success;
-
 
13881
      this.ucx = ucx;
-
 
13882
    }
-
 
13883
 
-
 
13884
    /**
-
 
13885
     * Performs a deep copy on <i>other</i>.
-
 
13886
     */
-
 
13887
    public getAllAddressesForUser_result(getAllAddressesForUser_result other) {
-
 
13888
      if (other.isSetSuccess()) {
-
 
13889
        List<Address> __this__success = new ArrayList<Address>();
-
 
13890
        for (Address other_element : other.success) {
-
 
13891
          __this__success.add(new Address(other_element));
-
 
13892
        }
-
 
13893
        this.success = __this__success;
-
 
13894
      }
-
 
13895
      if (other.isSetUcx()) {
-
 
13896
        this.ucx = new UserContextException(other.ucx);
-
 
13897
      }
-
 
13898
    }
-
 
13899
 
-
 
13900
    public getAllAddressesForUser_result deepCopy() {
-
 
13901
      return new getAllAddressesForUser_result(this);
-
 
13902
    }
-
 
13903
 
-
 
13904
    @Deprecated
-
 
13905
    public getAllAddressesForUser_result clone() {
-
 
13906
      return new getAllAddressesForUser_result(this);
-
 
13907
    }
-
 
13908
 
-
 
13909
    public int getSuccessSize() {
-
 
13910
      return (this.success == null) ? 0 : this.success.size();
-
 
13911
    }
-
 
13912
 
-
 
13913
    public java.util.Iterator<Address> getSuccessIterator() {
-
 
13914
      return (this.success == null) ? null : this.success.iterator();
-
 
13915
    }
-
 
13916
 
-
 
13917
    public void addToSuccess(Address elem) {
-
 
13918
      if (this.success == null) {
-
 
13919
        this.success = new ArrayList<Address>();
-
 
13920
      }
-
 
13921
      this.success.add(elem);
-
 
13922
    }
-
 
13923
 
-
 
13924
    public List<Address> getSuccess() {
-
 
13925
      return this.success;
-
 
13926
    }
-
 
13927
 
-
 
13928
    public getAllAddressesForUser_result setSuccess(List<Address> success) {
-
 
13929
      this.success = success;
-
 
13930
      return this;
-
 
13931
    }
-
 
13932
 
-
 
13933
    public void unsetSuccess() {
-
 
13934
      this.success = null;
-
 
13935
    }
-
 
13936
 
-
 
13937
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
13938
    public boolean isSetSuccess() {
-
 
13939
      return this.success != null;
-
 
13940
    }
-
 
13941
 
-
 
13942
    public void setSuccessIsSet(boolean value) {
-
 
13943
      if (!value) {
-
 
13944
        this.success = null;
-
 
13945
      }
-
 
13946
    }
-
 
13947
 
-
 
13948
    public UserContextException getUcx() {
-
 
13949
      return this.ucx;
-
 
13950
    }
-
 
13951
 
-
 
13952
    public getAllAddressesForUser_result setUcx(UserContextException ucx) {
-
 
13953
      this.ucx = ucx;
-
 
13954
      return this;
-
 
13955
    }
-
 
13956
 
-
 
13957
    public void unsetUcx() {
-
 
13958
      this.ucx = null;
-
 
13959
    }
-
 
13960
 
-
 
13961
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
13962
    public boolean isSetUcx() {
-
 
13963
      return this.ucx != null;
-
 
13964
    }
-
 
13965
 
-
 
13966
    public void setUcxIsSet(boolean value) {
-
 
13967
      if (!value) {
-
 
13968
        this.ucx = null;
-
 
13969
      }
-
 
13970
    }
-
 
13971
 
-
 
13972
    public void setFieldValue(_Fields field, Object value) {
-
 
13973
      switch (field) {
-
 
13974
      case SUCCESS:
-
 
13975
        if (value == null) {
-
 
13976
          unsetSuccess();
-
 
13977
        } else {
-
 
13978
          setSuccess((List<Address>)value);
-
 
13979
        }
-
 
13980
        break;
-
 
13981
 
-
 
13982
      case UCX:
-
 
13983
        if (value == null) {
-
 
13984
          unsetUcx();
-
 
13985
        } else {
-
 
13986
          setUcx((UserContextException)value);
-
 
13987
        }
-
 
13988
        break;
-
 
13989
 
-
 
13990
      }
-
 
13991
    }
-
 
13992
 
-
 
13993
    public void setFieldValue(int fieldID, Object value) {
-
 
13994
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
13995
    }
-
 
13996
 
-
 
13997
    public Object getFieldValue(_Fields field) {
-
 
13998
      switch (field) {
-
 
13999
      case SUCCESS:
-
 
14000
        return getSuccess();
-
 
14001
 
-
 
14002
      case UCX:
-
 
14003
        return getUcx();
-
 
14004
 
-
 
14005
      }
-
 
14006
      throw new IllegalStateException();
-
 
14007
    }
-
 
14008
 
-
 
14009
    public Object getFieldValue(int fieldId) {
-
 
14010
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
14011
    }
-
 
14012
 
-
 
14013
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
14014
    public boolean isSet(_Fields field) {
-
 
14015
      switch (field) {
-
 
14016
      case SUCCESS:
-
 
14017
        return isSetSuccess();
-
 
14018
      case UCX:
-
 
14019
        return isSetUcx();
-
 
14020
      }
-
 
14021
      throw new IllegalStateException();
-
 
14022
    }
-
 
14023
 
-
 
14024
    public boolean isSet(int fieldID) {
-
 
14025
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
14026
    }
-
 
14027
 
-
 
14028
    @Override
-
 
14029
    public boolean equals(Object that) {
-
 
14030
      if (that == null)
-
 
14031
        return false;
-
 
14032
      if (that instanceof getAllAddressesForUser_result)
-
 
14033
        return this.equals((getAllAddressesForUser_result)that);
-
 
14034
      return false;
-
 
14035
    }
-
 
14036
 
-
 
14037
    public boolean equals(getAllAddressesForUser_result that) {
-
 
14038
      if (that == null)
-
 
14039
        return false;
-
 
14040
 
-
 
14041
      boolean this_present_success = true && this.isSetSuccess();
-
 
14042
      boolean that_present_success = true && that.isSetSuccess();
-
 
14043
      if (this_present_success || that_present_success) {
-
 
14044
        if (!(this_present_success && that_present_success))
-
 
14045
          return false;
-
 
14046
        if (!this.success.equals(that.success))
-
 
14047
          return false;
-
 
14048
      }
-
 
14049
 
-
 
14050
      boolean this_present_ucx = true && this.isSetUcx();
-
 
14051
      boolean that_present_ucx = true && that.isSetUcx();
-
 
14052
      if (this_present_ucx || that_present_ucx) {
-
 
14053
        if (!(this_present_ucx && that_present_ucx))
-
 
14054
          return false;
-
 
14055
        if (!this.ucx.equals(that.ucx))
-
 
14056
          return false;
-
 
14057
      }
-
 
14058
 
-
 
14059
      return true;
-
 
14060
    }
-
 
14061
 
-
 
14062
    @Override
-
 
14063
    public int hashCode() {
-
 
14064
      return 0;
-
 
14065
    }
-
 
14066
 
-
 
14067
    public int compareTo(getAllAddressesForUser_result other) {
-
 
14068
      if (!getClass().equals(other.getClass())) {
-
 
14069
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14070
      }
-
 
14071
 
-
 
14072
      int lastComparison = 0;
-
 
14073
      getAllAddressesForUser_result typedOther = (getAllAddressesForUser_result)other;
-
 
14074
 
-
 
14075
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
14076
      if (lastComparison != 0) {
-
 
14077
        return lastComparison;
-
 
14078
      }
-
 
14079
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
14080
      if (lastComparison != 0) {
-
 
14081
        return lastComparison;
-
 
14082
      }
-
 
14083
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
14084
      if (lastComparison != 0) {
-
 
14085
        return lastComparison;
-
 
14086
      }
-
 
14087
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
14088
      if (lastComparison != 0) {
-
 
14089
        return lastComparison;
-
 
14090
      }
-
 
14091
      return 0;
-
 
14092
    }
-
 
14093
 
-
 
14094
    public void read(TProtocol iprot) throws TException {
-
 
14095
      TField field;
-
 
14096
      iprot.readStructBegin();
-
 
14097
      while (true)
-
 
14098
      {
-
 
14099
        field = iprot.readFieldBegin();
-
 
14100
        if (field.type == TType.STOP) { 
-
 
14101
          break;
-
 
14102
        }
-
 
14103
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
14104
        if (fieldId == null) {
-
 
14105
          TProtocolUtil.skip(iprot, field.type);
-
 
14106
        } else {
-
 
14107
          switch (fieldId) {
-
 
14108
            case SUCCESS:
-
 
14109
              if (field.type == TType.LIST) {
-
 
14110
                {
-
 
14111
                  TList _list21 = iprot.readListBegin();
-
 
14112
                  this.success = new ArrayList<Address>(_list21.size);
-
 
14113
                  for (int _i22 = 0; _i22 < _list21.size; ++_i22)
-
 
14114
                  {
-
 
14115
                    Address _elem23;
-
 
14116
                    _elem23 = new Address();
-
 
14117
                    _elem23.read(iprot);
-
 
14118
                    this.success.add(_elem23);
-
 
14119
                  }
-
 
14120
                  iprot.readListEnd();
-
 
14121
                }
-
 
14122
              } else { 
-
 
14123
                TProtocolUtil.skip(iprot, field.type);
-
 
14124
              }
-
 
14125
              break;
-
 
14126
            case UCX:
-
 
14127
              if (field.type == TType.STRUCT) {
-
 
14128
                this.ucx = new UserContextException();
-
 
14129
                this.ucx.read(iprot);
-
 
14130
              } else { 
-
 
14131
                TProtocolUtil.skip(iprot, field.type);
-
 
14132
              }
-
 
14133
              break;
-
 
14134
          }
-
 
14135
          iprot.readFieldEnd();
-
 
14136
        }
-
 
14137
      }
-
 
14138
      iprot.readStructEnd();
-
 
14139
      validate();
-
 
14140
    }
-
 
14141
 
-
 
14142
    public void write(TProtocol oprot) throws TException {
-
 
14143
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14144
 
-
 
14145
      if (this.isSetSuccess()) {
-
 
14146
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
14147
        {
-
 
14148
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
-
 
14149
          for (Address _iter24 : this.success)
-
 
14150
          {
-
 
14151
            _iter24.write(oprot);
-
 
14152
          }
-
 
14153
          oprot.writeListEnd();
-
 
14154
        }
-
 
14155
        oprot.writeFieldEnd();
-
 
14156
      } else if (this.isSetUcx()) {
-
 
14157
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
14158
        this.ucx.write(oprot);
-
 
14159
        oprot.writeFieldEnd();
-
 
14160
      }
-
 
14161
      oprot.writeFieldStop();
-
 
14162
      oprot.writeStructEnd();
-
 
14163
    }
-
 
14164
 
-
 
14165
    @Override
-
 
14166
    public String toString() {
-
 
14167
      StringBuilder sb = new StringBuilder("getAllAddressesForUser_result(");
-
 
14168
      boolean first = true;
-
 
14169
 
-
 
14170
      sb.append("success:");
-
 
14171
      if (this.success == null) {
-
 
14172
        sb.append("null");
-
 
14173
      } else {
-
 
14174
        sb.append(this.success);
-
 
14175
      }
-
 
14176
      first = false;
-
 
14177
      if (!first) sb.append(", ");
-
 
14178
      sb.append("ucx:");
-
 
14179
      if (this.ucx == null) {
-
 
14180
        sb.append("null");
-
 
14181
      } else {
-
 
14182
        sb.append(this.ucx);
-
 
14183
      }
-
 
14184
      first = false;
-
 
14185
      sb.append(")");
-
 
14186
      return sb.toString();
-
 
14187
    }
-
 
14188
 
-
 
14189
    public void validate() throws TException {
-
 
14190
      // check for required fields
-
 
14191
    }
-
 
14192
 
-
 
14193
  }
-
 
14194
 
-
 
14195
  public static class getDefaultAddressId_args implements TBase<getDefaultAddressId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getDefaultAddressId_args>   {
-
 
14196
    private static final TStruct STRUCT_DESC = new TStruct("getDefaultAddressId_args");
-
 
14197
 
-
 
14198
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
-
 
14199
 
-
 
14200
    private long userId;
-
 
14201
 
-
 
14202
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14203
    public enum _Fields implements TFieldIdEnum {
-
 
14204
      USER_ID((short)1, "userId");
-
 
14205
 
-
 
14206
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
14207
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14208
 
-
 
14209
      static {
-
 
14210
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14211
          byId.put((int)field._thriftId, field);
-
 
14212
          byName.put(field.getFieldName(), field);
-
 
14213
        }
-
 
14214
      }
-
 
14215
 
-
 
14216
      /**
-
 
14217
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14218
       */
-
 
14219
      public static _Fields findByThriftId(int fieldId) {
-
 
14220
        return byId.get(fieldId);
-
 
14221
      }
-
 
14222
 
-
 
14223
      /**
-
 
14224
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14225
       * if it is not found.
-
 
14226
       */
-
 
14227
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14228
        _Fields fields = findByThriftId(fieldId);
-
 
14229
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14230
        return fields;
-
 
14231
      }
-
 
14232
 
-
 
14233
      /**
-
 
14234
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14235
       */
-
 
14236
      public static _Fields findByName(String name) {
-
 
14237
        return byName.get(name);
-
 
14238
      }
-
 
14239
 
-
 
14240
      private final short _thriftId;
-
 
14241
      private final String _fieldName;
-
 
14242
 
-
 
14243
      _Fields(short thriftId, String fieldName) {
-
 
14244
        _thriftId = thriftId;
-
 
14245
        _fieldName = fieldName;
-
 
14246
      }
-
 
14247
 
-
 
14248
      public short getThriftFieldId() {
-
 
14249
        return _thriftId;
-
 
14250
      }
-
 
14251
 
-
 
14252
      public String getFieldName() {
-
 
14253
        return _fieldName;
-
 
14254
      }
-
 
14255
    }
-
 
14256
 
-
 
14257
    // isset id assignments
-
 
14258
    private static final int __USERID_ISSET_ID = 0;
-
 
14259
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14260
 
-
 
14261
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
14262
      put(_Fields.USER_ID, new FieldMetaData("userId", TFieldRequirementType.DEFAULT, 
-
 
14263
          new FieldValueMetaData(TType.I64)));
-
 
14264
    }});
-
 
14265
 
-
 
14266
    static {
-
 
14267
      FieldMetaData.addStructMetaDataMap(getDefaultAddressId_args.class, metaDataMap);
-
 
14268
    }
-
 
14269
 
-
 
14270
    public getDefaultAddressId_args() {
-
 
14271
    }
-
 
14272
 
-
 
14273
    public getDefaultAddressId_args(
-
 
14274
      long userId)
-
 
14275
    {
-
 
14276
      this();
-
 
14277
      this.userId = userId;
-
 
14278
      setUserIdIsSet(true);
-
 
14279
    }
-
 
14280
 
-
 
14281
    /**
-
 
14282
     * Performs a deep copy on <i>other</i>.
-
 
14283
     */
-
 
14284
    public getDefaultAddressId_args(getDefaultAddressId_args other) {
-
 
14285
      __isset_bit_vector.clear();
-
 
14286
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14287
      this.userId = other.userId;
-
 
14288
    }
-
 
14289
 
-
 
14290
    public getDefaultAddressId_args deepCopy() {
-
 
14291
      return new getDefaultAddressId_args(this);
-
 
14292
    }
-
 
14293
 
-
 
14294
    @Deprecated
-
 
14295
    public getDefaultAddressId_args clone() {
-
 
14296
      return new getDefaultAddressId_args(this);
-
 
14297
    }
-
 
14298
 
-
 
14299
    public long getUserId() {
-
 
14300
      return this.userId;
-
 
14301
    }
-
 
14302
 
-
 
14303
    public getDefaultAddressId_args setUserId(long userId) {
-
 
14304
      this.userId = userId;
-
 
14305
      setUserIdIsSet(true);
-
 
14306
      return this;
-
 
14307
    }
-
 
14308
 
-
 
14309
    public void unsetUserId() {
-
 
14310
      __isset_bit_vector.clear(__USERID_ISSET_ID);
-
 
14311
    }
-
 
14312
 
-
 
14313
    /** Returns true if field userId is set (has been asigned a value) and false otherwise */
-
 
14314
    public boolean isSetUserId() {
-
 
14315
      return __isset_bit_vector.get(__USERID_ISSET_ID);
-
 
14316
    }
-
 
14317
 
-
 
14318
    public void setUserIdIsSet(boolean value) {
-
 
14319
      __isset_bit_vector.set(__USERID_ISSET_ID, value);
-
 
14320
    }
-
 
14321
 
-
 
14322
    public void setFieldValue(_Fields field, Object value) {
-
 
14323
      switch (field) {
-
 
14324
      case USER_ID:
-
 
14325
        if (value == null) {
-
 
14326
          unsetUserId();
-
 
14327
        } else {
-
 
14328
          setUserId((Long)value);
-
 
14329
        }
-
 
14330
        break;
-
 
14331
 
-
 
14332
      }
-
 
14333
    }
-
 
14334
 
-
 
14335
    public void setFieldValue(int fieldID, Object value) {
-
 
14336
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
14337
    }
-
 
14338
 
-
 
14339
    public Object getFieldValue(_Fields field) {
-
 
14340
      switch (field) {
-
 
14341
      case USER_ID:
-
 
14342
        return new Long(getUserId());
-
 
14343
 
-
 
14344
      }
-
 
14345
      throw new IllegalStateException();
-
 
14346
    }
-
 
14347
 
-
 
14348
    public Object getFieldValue(int fieldId) {
-
 
14349
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
14350
    }
-
 
14351
 
-
 
14352
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
14353
    public boolean isSet(_Fields field) {
-
 
14354
      switch (field) {
-
 
14355
      case USER_ID:
-
 
14356
        return isSetUserId();
-
 
14357
      }
-
 
14358
      throw new IllegalStateException();
-
 
14359
    }
-
 
14360
 
-
 
14361
    public boolean isSet(int fieldID) {
-
 
14362
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
14363
    }
-
 
14364
 
-
 
14365
    @Override
-
 
14366
    public boolean equals(Object that) {
-
 
14367
      if (that == null)
-
 
14368
        return false;
-
 
14369
      if (that instanceof getDefaultAddressId_args)
-
 
14370
        return this.equals((getDefaultAddressId_args)that);
-
 
14371
      return false;
-
 
14372
    }
-
 
14373
 
-
 
14374
    public boolean equals(getDefaultAddressId_args that) {
-
 
14375
      if (that == null)
-
 
14376
        return false;
-
 
14377
 
-
 
14378
      boolean this_present_userId = true;
-
 
14379
      boolean that_present_userId = true;
-
 
14380
      if (this_present_userId || that_present_userId) {
-
 
14381
        if (!(this_present_userId && that_present_userId))
-
 
14382
          return false;
-
 
14383
        if (this.userId != that.userId)
-
 
14384
          return false;
-
 
14385
      }
-
 
14386
 
-
 
14387
      return true;
-
 
14388
    }
-
 
14389
 
-
 
14390
    @Override
-
 
14391
    public int hashCode() {
-
 
14392
      return 0;
-
 
14393
    }
-
 
14394
 
-
 
14395
    public int compareTo(getDefaultAddressId_args other) {
-
 
14396
      if (!getClass().equals(other.getClass())) {
-
 
14397
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14398
      }
-
 
14399
 
-
 
14400
      int lastComparison = 0;
-
 
14401
      getDefaultAddressId_args typedOther = (getDefaultAddressId_args)other;
-
 
14402
 
-
 
14403
      lastComparison = Boolean.valueOf(isSetUserId()).compareTo(isSetUserId());
-
 
14404
      if (lastComparison != 0) {
-
 
14405
        return lastComparison;
-
 
14406
      }
-
 
14407
      lastComparison = TBaseHelper.compareTo(userId, typedOther.userId);
-
 
14408
      if (lastComparison != 0) {
-
 
14409
        return lastComparison;
-
 
14410
      }
-
 
14411
      return 0;
-
 
14412
    }
-
 
14413
 
-
 
14414
    public void read(TProtocol iprot) throws TException {
-
 
14415
      TField field;
-
 
14416
      iprot.readStructBegin();
-
 
14417
      while (true)
-
 
14418
      {
-
 
14419
        field = iprot.readFieldBegin();
-
 
14420
        if (field.type == TType.STOP) { 
-
 
14421
          break;
-
 
14422
        }
-
 
14423
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
14424
        if (fieldId == null) {
-
 
14425
          TProtocolUtil.skip(iprot, field.type);
-
 
14426
        } else {
-
 
14427
          switch (fieldId) {
-
 
14428
            case USER_ID:
-
 
14429
              if (field.type == TType.I64) {
-
 
14430
                this.userId = iprot.readI64();
-
 
14431
                setUserIdIsSet(true);
-
 
14432
              } else { 
-
 
14433
                TProtocolUtil.skip(iprot, field.type);
-
 
14434
              }
-
 
14435
              break;
-
 
14436
          }
-
 
14437
          iprot.readFieldEnd();
-
 
14438
        }
-
 
14439
      }
-
 
14440
      iprot.readStructEnd();
-
 
14441
      validate();
-
 
14442
    }
-
 
14443
 
-
 
14444
    public void write(TProtocol oprot) throws TException {
-
 
14445
      validate();
-
 
14446
 
-
 
14447
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14448
      oprot.writeFieldBegin(USER_ID_FIELD_DESC);
-
 
14449
      oprot.writeI64(this.userId);
-
 
14450
      oprot.writeFieldEnd();
-
 
14451
      oprot.writeFieldStop();
-
 
14452
      oprot.writeStructEnd();
-
 
14453
    }
-
 
14454
 
-
 
14455
    @Override
-
 
14456
    public String toString() {
-
 
14457
      StringBuilder sb = new StringBuilder("getDefaultAddressId_args(");
-
 
14458
      boolean first = true;
-
 
14459
 
-
 
14460
      sb.append("userId:");
-
 
14461
      sb.append(this.userId);
-
 
14462
      first = false;
-
 
14463
      sb.append(")");
-
 
14464
      return sb.toString();
-
 
14465
    }
-
 
14466
 
-
 
14467
    public void validate() throws TException {
-
 
14468
      // check for required fields
-
 
14469
    }
-
 
14470
 
-
 
14471
  }
-
 
14472
 
-
 
14473
  public static class getDefaultAddressId_result implements TBase<getDefaultAddressId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getDefaultAddressId_result>   {
-
 
14474
    private static final TStruct STRUCT_DESC = new TStruct("getDefaultAddressId_result");
-
 
14475
 
-
 
14476
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
-
 
14477
    private static final TField UCX_FIELD_DESC = new TField("ucx", TType.STRUCT, (short)1);
-
 
14478
 
-
 
14479
    private long success;
-
 
14480
    private UserContextException ucx;
-
 
14481
 
-
 
14482
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
-
 
14483
    public enum _Fields implements TFieldIdEnum {
-
 
14484
      SUCCESS((short)0, "success"),
-
 
14485
      UCX((short)1, "ucx");
-
 
14486
 
-
 
14487
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
14488
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
-
 
14489
 
-
 
14490
      static {
-
 
14491
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
-
 
14492
          byId.put((int)field._thriftId, field);
-
 
14493
          byName.put(field.getFieldName(), field);
-
 
14494
        }
-
 
14495
      }
-
 
14496
 
-
 
14497
      /**
-
 
14498
       * Find the _Fields constant that matches fieldId, or null if its not found.
-
 
14499
       */
-
 
14500
      public static _Fields findByThriftId(int fieldId) {
-
 
14501
        return byId.get(fieldId);
-
 
14502
      }
-
 
14503
 
-
 
14504
      /**
-
 
14505
       * Find the _Fields constant that matches fieldId, throwing an exception
-
 
14506
       * if it is not found.
-
 
14507
       */
-
 
14508
      public static _Fields findByThriftIdOrThrow(int fieldId) {
-
 
14509
        _Fields fields = findByThriftId(fieldId);
-
 
14510
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
-
 
14511
        return fields;
-
 
14512
      }
-
 
14513
 
-
 
14514
      /**
-
 
14515
       * Find the _Fields constant that matches name, or null if its not found.
-
 
14516
       */
-
 
14517
      public static _Fields findByName(String name) {
-
 
14518
        return byName.get(name);
-
 
14519
      }
-
 
14520
 
-
 
14521
      private final short _thriftId;
-
 
14522
      private final String _fieldName;
-
 
14523
 
-
 
14524
      _Fields(short thriftId, String fieldName) {
-
 
14525
        _thriftId = thriftId;
-
 
14526
        _fieldName = fieldName;
-
 
14527
      }
-
 
14528
 
-
 
14529
      public short getThriftFieldId() {
-
 
14530
        return _thriftId;
-
 
14531
      }
-
 
14532
 
-
 
14533
      public String getFieldName() {
-
 
14534
        return _fieldName;
-
 
14535
      }
-
 
14536
    }
-
 
14537
 
-
 
14538
    // isset id assignments
-
 
14539
    private static final int __SUCCESS_ISSET_ID = 0;
-
 
14540
    private BitSet __isset_bit_vector = new BitSet(1);
-
 
14541
 
-
 
14542
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
-
 
14543
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
14544
          new FieldValueMetaData(TType.I64)));
-
 
14545
      put(_Fields.UCX, new FieldMetaData("ucx", TFieldRequirementType.DEFAULT, 
-
 
14546
          new FieldValueMetaData(TType.STRUCT)));
-
 
14547
    }});
-
 
14548
 
-
 
14549
    static {
-
 
14550
      FieldMetaData.addStructMetaDataMap(getDefaultAddressId_result.class, metaDataMap);
-
 
14551
    }
-
 
14552
 
-
 
14553
    public getDefaultAddressId_result() {
-
 
14554
    }
-
 
14555
 
-
 
14556
    public getDefaultAddressId_result(
-
 
14557
      long success,
-
 
14558
      UserContextException ucx)
-
 
14559
    {
-
 
14560
      this();
-
 
14561
      this.success = success;
-
 
14562
      setSuccessIsSet(true);
-
 
14563
      this.ucx = ucx;
-
 
14564
    }
-
 
14565
 
-
 
14566
    /**
-
 
14567
     * Performs a deep copy on <i>other</i>.
-
 
14568
     */
-
 
14569
    public getDefaultAddressId_result(getDefaultAddressId_result other) {
-
 
14570
      __isset_bit_vector.clear();
-
 
14571
      __isset_bit_vector.or(other.__isset_bit_vector);
-
 
14572
      this.success = other.success;
-
 
14573
      if (other.isSetUcx()) {
-
 
14574
        this.ucx = new UserContextException(other.ucx);
-
 
14575
      }
-
 
14576
    }
-
 
14577
 
-
 
14578
    public getDefaultAddressId_result deepCopy() {
-
 
14579
      return new getDefaultAddressId_result(this);
-
 
14580
    }
-
 
14581
 
-
 
14582
    @Deprecated
-
 
14583
    public getDefaultAddressId_result clone() {
-
 
14584
      return new getDefaultAddressId_result(this);
-
 
14585
    }
-
 
14586
 
-
 
14587
    public long getSuccess() {
-
 
14588
      return this.success;
-
 
14589
    }
-
 
14590
 
-
 
14591
    public getDefaultAddressId_result setSuccess(long success) {
-
 
14592
      this.success = success;
-
 
14593
      setSuccessIsSet(true);
-
 
14594
      return this;
-
 
14595
    }
-
 
14596
 
-
 
14597
    public void unsetSuccess() {
-
 
14598
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
-
 
14599
    }
-
 
14600
 
-
 
14601
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
-
 
14602
    public boolean isSetSuccess() {
-
 
14603
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
-
 
14604
    }
-
 
14605
 
-
 
14606
    public void setSuccessIsSet(boolean value) {
-
 
14607
      __isset_bit_vector.set(__SUCCESS_ISSET_ID, value);
-
 
14608
    }
-
 
14609
 
-
 
14610
    public UserContextException getUcx() {
-
 
14611
      return this.ucx;
-
 
14612
    }
-
 
14613
 
-
 
14614
    public getDefaultAddressId_result setUcx(UserContextException ucx) {
-
 
14615
      this.ucx = ucx;
-
 
14616
      return this;
-
 
14617
    }
-
 
14618
 
-
 
14619
    public void unsetUcx() {
-
 
14620
      this.ucx = null;
-
 
14621
    }
-
 
14622
 
-
 
14623
    /** Returns true if field ucx is set (has been asigned a value) and false otherwise */
-
 
14624
    public boolean isSetUcx() {
-
 
14625
      return this.ucx != null;
-
 
14626
    }
-
 
14627
 
-
 
14628
    public void setUcxIsSet(boolean value) {
-
 
14629
      if (!value) {
-
 
14630
        this.ucx = null;
-
 
14631
      }
-
 
14632
    }
-
 
14633
 
-
 
14634
    public void setFieldValue(_Fields field, Object value) {
-
 
14635
      switch (field) {
-
 
14636
      case SUCCESS:
-
 
14637
        if (value == null) {
-
 
14638
          unsetSuccess();
-
 
14639
        } else {
-
 
14640
          setSuccess((Long)value);
-
 
14641
        }
-
 
14642
        break;
-
 
14643
 
-
 
14644
      case UCX:
-
 
14645
        if (value == null) {
-
 
14646
          unsetUcx();
-
 
14647
        } else {
-
 
14648
          setUcx((UserContextException)value);
-
 
14649
        }
-
 
14650
        break;
-
 
14651
 
-
 
14652
      }
-
 
14653
    }
-
 
14654
 
-
 
14655
    public void setFieldValue(int fieldID, Object value) {
-
 
14656
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
14657
    }
-
 
14658
 
-
 
14659
    public Object getFieldValue(_Fields field) {
-
 
14660
      switch (field) {
-
 
14661
      case SUCCESS:
-
 
14662
        return new Long(getSuccess());
-
 
14663
 
-
 
14664
      case UCX:
-
 
14665
        return getUcx();
-
 
14666
 
-
 
14667
      }
-
 
14668
      throw new IllegalStateException();
-
 
14669
    }
-
 
14670
 
-
 
14671
    public Object getFieldValue(int fieldId) {
-
 
14672
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
14673
    }
-
 
14674
 
-
 
14675
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
-
 
14676
    public boolean isSet(_Fields field) {
-
 
14677
      switch (field) {
-
 
14678
      case SUCCESS:
-
 
14679
        return isSetSuccess();
-
 
14680
      case UCX:
-
 
14681
        return isSetUcx();
-
 
14682
      }
-
 
14683
      throw new IllegalStateException();
-
 
14684
    }
-
 
14685
 
-
 
14686
    public boolean isSet(int fieldID) {
-
 
14687
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
14688
    }
-
 
14689
 
-
 
14690
    @Override
-
 
14691
    public boolean equals(Object that) {
-
 
14692
      if (that == null)
-
 
14693
        return false;
-
 
14694
      if (that instanceof getDefaultAddressId_result)
-
 
14695
        return this.equals((getDefaultAddressId_result)that);
-
 
14696
      return false;
-
 
14697
    }
-
 
14698
 
-
 
14699
    public boolean equals(getDefaultAddressId_result that) {
-
 
14700
      if (that == null)
-
 
14701
        return false;
-
 
14702
 
-
 
14703
      boolean this_present_success = true;
-
 
14704
      boolean that_present_success = true;
-
 
14705
      if (this_present_success || that_present_success) {
-
 
14706
        if (!(this_present_success && that_present_success))
-
 
14707
          return false;
-
 
14708
        if (this.success != that.success)
-
 
14709
          return false;
-
 
14710
      }
-
 
14711
 
-
 
14712
      boolean this_present_ucx = true && this.isSetUcx();
-
 
14713
      boolean that_present_ucx = true && that.isSetUcx();
-
 
14714
      if (this_present_ucx || that_present_ucx) {
-
 
14715
        if (!(this_present_ucx && that_present_ucx))
-
 
14716
          return false;
-
 
14717
        if (!this.ucx.equals(that.ucx))
-
 
14718
          return false;
-
 
14719
      }
-
 
14720
 
-
 
14721
      return true;
-
 
14722
    }
-
 
14723
 
-
 
14724
    @Override
-
 
14725
    public int hashCode() {
-
 
14726
      return 0;
-
 
14727
    }
-
 
14728
 
-
 
14729
    public int compareTo(getDefaultAddressId_result other) {
-
 
14730
      if (!getClass().equals(other.getClass())) {
-
 
14731
        return getClass().getName().compareTo(other.getClass().getName());
-
 
14732
      }
-
 
14733
 
-
 
14734
      int lastComparison = 0;
-
 
14735
      getDefaultAddressId_result typedOther = (getDefaultAddressId_result)other;
-
 
14736
 
-
 
14737
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
-
 
14738
      if (lastComparison != 0) {
-
 
14739
        return lastComparison;
-
 
14740
      }
-
 
14741
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
-
 
14742
      if (lastComparison != 0) {
-
 
14743
        return lastComparison;
-
 
14744
      }
-
 
14745
      lastComparison = Boolean.valueOf(isSetUcx()).compareTo(isSetUcx());
-
 
14746
      if (lastComparison != 0) {
-
 
14747
        return lastComparison;
-
 
14748
      }
-
 
14749
      lastComparison = TBaseHelper.compareTo(ucx, typedOther.ucx);
-
 
14750
      if (lastComparison != 0) {
-
 
14751
        return lastComparison;
-
 
14752
      }
-
 
14753
      return 0;
-
 
14754
    }
-
 
14755
 
-
 
14756
    public void read(TProtocol iprot) throws TException {
-
 
14757
      TField field;
-
 
14758
      iprot.readStructBegin();
-
 
14759
      while (true)
-
 
14760
      {
-
 
14761
        field = iprot.readFieldBegin();
-
 
14762
        if (field.type == TType.STOP) { 
-
 
14763
          break;
-
 
14764
        }
-
 
14765
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
14766
        if (fieldId == null) {
-
 
14767
          TProtocolUtil.skip(iprot, field.type);
-
 
14768
        } else {
-
 
14769
          switch (fieldId) {
-
 
14770
            case SUCCESS:
-
 
14771
              if (field.type == TType.I64) {
-
 
14772
                this.success = iprot.readI64();
-
 
14773
                setSuccessIsSet(true);
-
 
14774
              } else { 
-
 
14775
                TProtocolUtil.skip(iprot, field.type);
-
 
14776
              }
-
 
14777
              break;
-
 
14778
            case UCX:
-
 
14779
              if (field.type == TType.STRUCT) {
-
 
14780
                this.ucx = new UserContextException();
-
 
14781
                this.ucx.read(iprot);
-
 
14782
              } else { 
-
 
14783
                TProtocolUtil.skip(iprot, field.type);
-
 
14784
              }
-
 
14785
              break;
-
 
14786
          }
-
 
14787
          iprot.readFieldEnd();
-
 
14788
        }
-
 
14789
      }
-
 
14790
      iprot.readStructEnd();
-
 
14791
      validate();
-
 
14792
    }
-
 
14793
 
-
 
14794
    public void write(TProtocol oprot) throws TException {
-
 
14795
      oprot.writeStructBegin(STRUCT_DESC);
-
 
14796
 
-
 
14797
      if (this.isSetSuccess()) {
-
 
14798
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
-
 
14799
        oprot.writeI64(this.success);
-
 
14800
        oprot.writeFieldEnd();
-
 
14801
      } else if (this.isSetUcx()) {
-
 
14802
        oprot.writeFieldBegin(UCX_FIELD_DESC);
-
 
14803
        this.ucx.write(oprot);
-
 
14804
        oprot.writeFieldEnd();
-
 
14805
      }
-
 
14806
      oprot.writeFieldStop();
-
 
14807
      oprot.writeStructEnd();
-
 
14808
    }
-
 
14809
 
-
 
14810
    @Override
-
 
14811
    public String toString() {
-
 
14812
      StringBuilder sb = new StringBuilder("getDefaultAddressId_result(");
-
 
14813
      boolean first = true;
-
 
14814
 
-
 
14815
      sb.append("success:");
-
 
14816
      sb.append(this.success);
-
 
14817
      first = false;
-
 
14818
      if (!first) sb.append(", ");
-
 
14819
      sb.append("ucx:");
-
 
14820
      if (this.ucx == null) {
-
 
14821
        sb.append("null");
-
 
14822
      } else {
-
 
14823
        sb.append(this.ucx);
-
 
14824
      }
-
 
14825
      first = false;
-
 
14826
      sb.append(")");
-
 
14827
      return sb.toString();
-
 
14828
    }
-
 
14829
 
-
 
14830
    public void validate() throws TException {
-
 
14831
      // check for required fields
-
 
14832
    }
-
 
14833
 
-
 
14834
  }
-
 
14835
 
13295
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
14836
  public static class createCart_args implements TBase<createCart_args._Fields>, java.io.Serializable, Cloneable, Comparable<createCart_args>   {
13296
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
14837
    private static final TStruct STRUCT_DESC = new TStruct("createCart_args");
13297
 
14838
 
13298
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
14839
    private static final TField USER_ID_FIELD_DESC = new TField("userId", TType.I64, (short)1);
13299
 
14840
 
Line 15917... Line 17458...
15917
        } else {
17458
        } else {
15918
          switch (fieldId) {
17459
          switch (fieldId) {
15919
            case SUCCESS:
17460
            case SUCCESS:
15920
              if (field.type == TType.LIST) {
17461
              if (field.type == TType.LIST) {
15921
                {
17462
                {
15922
                  TList _list21 = iprot.readListBegin();
17463
                  TList _list25 = iprot.readListBegin();
15923
                  this.success = new ArrayList<Cart>(_list21.size);
17464
                  this.success = new ArrayList<Cart>(_list25.size);
15924
                  for (int _i22 = 0; _i22 < _list21.size; ++_i22)
17465
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
15925
                  {
17466
                  {
15926
                    Cart _elem23;
17467
                    Cart _elem27;
15927
                    _elem23 = new Cart();
17468
                    _elem27 = new Cart();
15928
                    _elem23.read(iprot);
17469
                    _elem27.read(iprot);
15929
                    this.success.add(_elem23);
17470
                    this.success.add(_elem27);
15930
                  }
17471
                  }
15931
                  iprot.readListEnd();
17472
                  iprot.readListEnd();
15932
                }
17473
                }
15933
              } else { 
17474
              } else { 
15934
                TProtocolUtil.skip(iprot, field.type);
17475
                TProtocolUtil.skip(iprot, field.type);
Line 15955... Line 17496...
15955
 
17496
 
15956
      if (this.isSetSuccess()) {
17497
      if (this.isSetSuccess()) {
15957
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17498
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
15958
        {
17499
        {
15959
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17500
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
15960
          for (Cart _iter24 : this.success)
17501
          for (Cart _iter28 : this.success)
15961
          {
17502
          {
15962
            _iter24.write(oprot);
17503
            _iter28.write(oprot);
15963
          }
17504
          }
15964
          oprot.writeListEnd();
17505
          oprot.writeListEnd();
15965
        }
17506
        }
15966
        oprot.writeFieldEnd();
17507
        oprot.writeFieldEnd();
15967
      } else if (this.isSetScx()) {
17508
      } else if (this.isSetScx()) {
Line 16620... Line 18161...
16620
        } else {
18161
        } else {
16621
          switch (fieldId) {
18162
          switch (fieldId) {
16622
            case SUCCESS:
18163
            case SUCCESS:
16623
              if (field.type == TType.LIST) {
18164
              if (field.type == TType.LIST) {
16624
                {
18165
                {
16625
                  TList _list25 = iprot.readListBegin();
18166
                  TList _list29 = iprot.readListBegin();
16626
                  this.success = new ArrayList<Cart>(_list25.size);
18167
                  this.success = new ArrayList<Cart>(_list29.size);
16627
                  for (int _i26 = 0; _i26 < _list25.size; ++_i26)
18168
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
16628
                  {
18169
                  {
16629
                    Cart _elem27;
18170
                    Cart _elem31;
16630
                    _elem27 = new Cart();
18171
                    _elem31 = new Cart();
16631
                    _elem27.read(iprot);
18172
                    _elem31.read(iprot);
16632
                    this.success.add(_elem27);
18173
                    this.success.add(_elem31);
16633
                  }
18174
                  }
16634
                  iprot.readListEnd();
18175
                  iprot.readListEnd();
16635
                }
18176
                }
16636
              } else { 
18177
              } else { 
16637
                TProtocolUtil.skip(iprot, field.type);
18178
                TProtocolUtil.skip(iprot, field.type);
Line 16658... Line 18199...
16658
 
18199
 
16659
      if (this.isSetSuccess()) {
18200
      if (this.isSetSuccess()) {
16660
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
18201
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
16661
        {
18202
        {
16662
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
18203
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
16663
          for (Cart _iter28 : this.success)
18204
          for (Cart _iter32 : this.success)
16664
          {
18205
          {
16665
            _iter28.write(oprot);
18206
            _iter32.write(oprot);
16666
          }
18207
          }
16667
          oprot.writeListEnd();
18208
          oprot.writeListEnd();
16668
        }
18209
        }
16669
        oprot.writeFieldEnd();
18210
        oprot.writeFieldEnd();
16670
      } else if (this.isSetScx()) {
18211
      } else if (this.isSetScx()) {
Line 17482... Line 19023...
17482
        } else {
19023
        } else {
17483
          switch (fieldId) {
19024
          switch (fieldId) {
17484
            case SUCCESS:
19025
            case SUCCESS:
17485
              if (field.type == TType.LIST) {
19026
              if (field.type == TType.LIST) {
17486
                {
19027
                {
17487
                  TList _list29 = iprot.readListBegin();
19028
                  TList _list33 = iprot.readListBegin();
17488
                  this.success = new ArrayList<Cart>(_list29.size);
19029
                  this.success = new ArrayList<Cart>(_list33.size);
17489
                  for (int _i30 = 0; _i30 < _list29.size; ++_i30)
19030
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
17490
                  {
19031
                  {
17491
                    Cart _elem31;
19032
                    Cart _elem35;
17492
                    _elem31 = new Cart();
19033
                    _elem35 = new Cart();
17493
                    _elem31.read(iprot);
19034
                    _elem35.read(iprot);
17494
                    this.success.add(_elem31);
19035
                    this.success.add(_elem35);
17495
                  }
19036
                  }
17496
                  iprot.readListEnd();
19037
                  iprot.readListEnd();
17497
                }
19038
                }
17498
              } else { 
19039
              } else { 
17499
                TProtocolUtil.skip(iprot, field.type);
19040
                TProtocolUtil.skip(iprot, field.type);
Line 17520... Line 19061...
17520
 
19061
 
17521
      if (this.isSetSuccess()) {
19062
      if (this.isSetSuccess()) {
17522
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
19063
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
17523
        {
19064
        {
17524
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
19065
          oprot.writeListBegin(new TList(TType.STRUCT, this.success.size()));
17525
          for (Cart _iter32 : this.success)
19066
          for (Cart _iter36 : this.success)
17526
          {
19067
          {
17527
            _iter32.write(oprot);
19068
            _iter36.write(oprot);
17528
          }
19069
          }
17529
          oprot.writeListEnd();
19070
          oprot.writeListEnd();
17530
        }
19071
        }
17531
        oprot.writeFieldEnd();
19072
        oprot.writeFieldEnd();
17532
      } else if (this.isSetScx()) {
19073
      } else if (this.isSetScx()) {
Line 25034... Line 26575...
25034
              }
26575
              }
25035
              break;
26576
              break;
25036
            case ITEMS:
26577
            case ITEMS:
25037
              if (field.type == TType.LIST) {
26578
              if (field.type == TType.LIST) {
25038
                {
26579
                {
25039
                  TList _list33 = iprot.readListBegin();
26580
                  TList _list37 = iprot.readListBegin();
25040
                  this.items = new ArrayList<Long>(_list33.size);
26581
                  this.items = new ArrayList<Long>(_list37.size);
25041
                  for (int _i34 = 0; _i34 < _list33.size; ++_i34)
26582
                  for (int _i38 = 0; _i38 < _list37.size; ++_i38)
25042
                  {
26583
                  {
25043
                    long _elem35;
26584
                    long _elem39;
25044
                    _elem35 = iprot.readI64();
26585
                    _elem39 = iprot.readI64();
25045
                    this.items.add(_elem35);
26586
                    this.items.add(_elem39);
25046
                  }
26587
                  }
25047
                  iprot.readListEnd();
26588
                  iprot.readListEnd();
25048
                }
26589
                }
25049
              } else { 
26590
              } else { 
25050
                TProtocolUtil.skip(iprot, field.type);
26591
                TProtocolUtil.skip(iprot, field.type);
Line 25067... Line 26608...
25067
      oprot.writeFieldEnd();
26608
      oprot.writeFieldEnd();
25068
      if (this.items != null) {
26609
      if (this.items != null) {
25069
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
26610
        oprot.writeFieldBegin(ITEMS_FIELD_DESC);
25070
        {
26611
        {
25071
          oprot.writeListBegin(new TList(TType.I64, this.items.size()));
26612
          oprot.writeListBegin(new TList(TType.I64, this.items.size()));
25072
          for (long _iter36 : this.items)
26613
          for (long _iter40 : this.items)
25073
          {
26614
          {
25074
            oprot.writeI64(_iter36);
26615
            oprot.writeI64(_iter40);
25075
          }
26616
          }
25076
          oprot.writeListEnd();
26617
          oprot.writeListEnd();
25077
        }
26618
        }
25078
        oprot.writeFieldEnd();
26619
        oprot.writeFieldEnd();
25079
      }
26620
      }