Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.model.v1.user;
6
package in.shop2020.model.v1.user;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
/**
23
/**
27
 * Address
24
 * Address
28
 */
25
 */
29
public class Address implements TBase<Address._Fields>, java.io.Serializable, Cloneable, Comparable<Address> {
26
public class Address implements org.apache.thrift.TBase<Address, Address._Fields>, java.io.Serializable, Cloneable {
30
  private static final TStruct STRUCT_DESC = new TStruct("Address");
27
  private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Address");
31
 
28
 
32
  private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
29
  private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
33
  private static final TField LINE1_FIELD_DESC = new TField("line1", TType.STRING, (short)2);
30
  private static final org.apache.thrift.protocol.TField LINE1_FIELD_DESC = new org.apache.thrift.protocol.TField("line1", org.apache.thrift.protocol.TType.STRING, (short)2);
34
  private static final TField LINE2_FIELD_DESC = new TField("line2", TType.STRING, (short)3);
31
  private static final org.apache.thrift.protocol.TField LINE2_FIELD_DESC = new org.apache.thrift.protocol.TField("line2", org.apache.thrift.protocol.TType.STRING, (short)3);
35
  private static final TField LANDMARK_FIELD_DESC = new TField("landmark", TType.STRING, (short)4);
32
  private static final org.apache.thrift.protocol.TField LANDMARK_FIELD_DESC = new org.apache.thrift.protocol.TField("landmark", org.apache.thrift.protocol.TType.STRING, (short)4);
36
  private static final TField CITY_FIELD_DESC = new TField("city", TType.STRING, (short)5);
33
  private static final org.apache.thrift.protocol.TField CITY_FIELD_DESC = new org.apache.thrift.protocol.TField("city", org.apache.thrift.protocol.TType.STRING, (short)5);
37
  private static final TField STATE_FIELD_DESC = new TField("state", TType.STRING, (short)6);
34
  private static final org.apache.thrift.protocol.TField STATE_FIELD_DESC = new org.apache.thrift.protocol.TField("state", org.apache.thrift.protocol.TType.STRING, (short)6);
38
  private static final TField PIN_FIELD_DESC = new TField("pin", TType.STRING, (short)7);
35
  private static final org.apache.thrift.protocol.TField PIN_FIELD_DESC = new org.apache.thrift.protocol.TField("pin", org.apache.thrift.protocol.TType.STRING, (short)7);
39
  private static final TField COUNTRY_FIELD_DESC = new TField("country", TType.STRING, (short)8);
36
  private static final org.apache.thrift.protocol.TField COUNTRY_FIELD_DESC = new org.apache.thrift.protocol.TField("country", org.apache.thrift.protocol.TType.STRING, (short)8);
40
  private static final TField ENABLED_FIELD_DESC = new TField("enabled", TType.BOOL, (short)9);
37
  private static final org.apache.thrift.protocol.TField ENABLED_FIELD_DESC = new org.apache.thrift.protocol.TField("enabled", org.apache.thrift.protocol.TType.BOOL, (short)9);
41
  private static final TField TYPE_FIELD_DESC = new TField("type", TType.I32, (short)10);
38
  private static final org.apache.thrift.protocol.TField TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("type", org.apache.thrift.protocol.TType.I32, (short)10);
42
  private static final TField ADDED_ON_FIELD_DESC = new TField("addedOn", TType.I64, (short)11);
39
  private static final org.apache.thrift.protocol.TField ADDED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("addedOn", org.apache.thrift.protocol.TType.I64, (short)11);
43
  private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)12);
40
  private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)12);
44
  private static final TField PHONE_FIELD_DESC = new TField("phone", TType.STRING, (short)13);
41
  private static final org.apache.thrift.protocol.TField PHONE_FIELD_DESC = new org.apache.thrift.protocol.TField("phone", org.apache.thrift.protocol.TType.STRING, (short)13);
45
 
42
 
46
  private long id;
43
  private long id; // required
47
  private String line1;
44
  private String line1; // required
48
  private String line2;
45
  private String line2; // required
49
  private String landmark;
46
  private String landmark; // required
50
  private String city;
47
  private String city; // required
51
  private String state;
48
  private String state; // required
52
  private String pin;
49
  private String pin; // required
53
  private String country;
50
  private String country; // required
54
  private boolean enabled;
51
  private boolean enabled; // required
55
  private AddressType type;
52
  private AddressType type; // required
56
  private long addedOn;
53
  private long addedOn; // required
57
  private String name;
54
  private String name; // required
58
  private String phone;
55
  private String phone; // required
59
 
56
 
60
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
57
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
61
  public enum _Fields implements TFieldIdEnum {
58
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
62
    ID((short)1, "id"),
59
    ID((short)1, "id"),
63
    LINE1((short)2, "line1"),
60
    LINE1((short)2, "line1"),
64
    LINE2((short)3, "line2"),
61
    LINE2((short)3, "line2"),
65
    LANDMARK((short)4, "landmark"),
62
    LANDMARK((short)4, "landmark"),
66
    CITY((short)5, "city"),
63
    CITY((short)5, "city"),
Line 75... Line 72...
75
    TYPE((short)10, "type"),
72
    TYPE((short)10, "type"),
76
    ADDED_ON((short)11, "addedOn"),
73
    ADDED_ON((short)11, "addedOn"),
77
    NAME((short)12, "name"),
74
    NAME((short)12, "name"),
78
    PHONE((short)13, "phone");
75
    PHONE((short)13, "phone");
79
 
76
 
80
    private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
81
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
77
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
82
 
78
 
83
    static {
79
    static {
84
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
80
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
85
        byId.put((int)field._thriftId, field);
-
 
86
        byName.put(field.getFieldName(), field);
81
        byName.put(field.getFieldName(), field);
87
      }
82
      }
88
    }
83
    }
89
 
84
 
90
    /**
85
    /**
91
     * Find the _Fields constant that matches fieldId, or null if its not found.
86
     * Find the _Fields constant that matches fieldId, or null if its not found.
92
     */
87
     */
93
    public static _Fields findByThriftId(int fieldId) {
88
    public static _Fields findByThriftId(int fieldId) {
94
      return byId.get(fieldId);
89
      switch(fieldId) {
-
 
90
        case 1: // ID
-
 
91
          return ID;
-
 
92
        case 2: // LINE1
-
 
93
          return LINE1;
-
 
94
        case 3: // LINE2
-
 
95
          return LINE2;
-
 
96
        case 4: // LANDMARK
-
 
97
          return LANDMARK;
-
 
98
        case 5: // CITY
-
 
99
          return CITY;
-
 
100
        case 6: // STATE
-
 
101
          return STATE;
-
 
102
        case 7: // PIN
-
 
103
          return PIN;
-
 
104
        case 8: // COUNTRY
-
 
105
          return COUNTRY;
-
 
106
        case 9: // ENABLED
-
 
107
          return ENABLED;
-
 
108
        case 10: // TYPE
-
 
109
          return TYPE;
-
 
110
        case 11: // ADDED_ON
-
 
111
          return ADDED_ON;
-
 
112
        case 12: // NAME
-
 
113
          return NAME;
-
 
114
        case 13: // PHONE
-
 
115
          return PHONE;
-
 
116
        default:
-
 
117
          return null;
-
 
118
      }
95
    }
119
    }
96
 
120
 
97
    /**
121
    /**
98
     * Find the _Fields constant that matches fieldId, throwing an exception
122
     * Find the _Fields constant that matches fieldId, throwing an exception
99
     * if it is not found.
123
     * if it is not found.
Line 132... Line 156...
132
  private static final int __ID_ISSET_ID = 0;
156
  private static final int __ID_ISSET_ID = 0;
133
  private static final int __ENABLED_ISSET_ID = 1;
157
  private static final int __ENABLED_ISSET_ID = 1;
134
  private static final int __ADDEDON_ISSET_ID = 2;
158
  private static final int __ADDEDON_ISSET_ID = 2;
135
  private BitSet __isset_bit_vector = new BitSet(3);
159
  private BitSet __isset_bit_vector = new BitSet(3);
136
 
160
 
137
  public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
161
  public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
138
    put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
139
        new FieldValueMetaData(TType.I64)));
-
 
140
    put(_Fields.LINE1, new FieldMetaData("line1", TFieldRequirementType.DEFAULT, 
-
 
141
        new FieldValueMetaData(TType.STRING)));
-
 
142
    put(_Fields.LINE2, new FieldMetaData("line2", TFieldRequirementType.DEFAULT, 
-
 
143
        new FieldValueMetaData(TType.STRING)));
-
 
144
    put(_Fields.LANDMARK, new FieldMetaData("landmark", TFieldRequirementType.DEFAULT, 
-
 
145
        new FieldValueMetaData(TType.STRING)));
-
 
146
    put(_Fields.CITY, new FieldMetaData("city", TFieldRequirementType.DEFAULT, 
-
 
147
        new FieldValueMetaData(TType.STRING)));
-
 
148
    put(_Fields.STATE, new FieldMetaData("state", TFieldRequirementType.DEFAULT, 
-
 
149
        new FieldValueMetaData(TType.STRING)));
-
 
150
    put(_Fields.PIN, new FieldMetaData("pin", TFieldRequirementType.DEFAULT, 
-
 
151
        new FieldValueMetaData(TType.STRING)));
-
 
152
    put(_Fields.COUNTRY, new FieldMetaData("country", TFieldRequirementType.DEFAULT, 
-
 
153
        new FieldValueMetaData(TType.STRING)));
-
 
154
    put(_Fields.ENABLED, new FieldMetaData("enabled", TFieldRequirementType.DEFAULT, 
-
 
155
        new FieldValueMetaData(TType.BOOL)));
-
 
156
    put(_Fields.TYPE, new FieldMetaData("type", TFieldRequirementType.DEFAULT, 
-
 
157
        new EnumMetaData(TType.ENUM, AddressType.class)));
-
 
158
    put(_Fields.ADDED_ON, new FieldMetaData("addedOn", TFieldRequirementType.DEFAULT, 
-
 
159
        new FieldValueMetaData(TType.I64)));
-
 
160
    put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
161
        new FieldValueMetaData(TType.STRING)));
-
 
162
    put(_Fields.PHONE, new FieldMetaData("phone", TFieldRequirementType.DEFAULT, 
-
 
163
        new FieldValueMetaData(TType.STRING)));
-
 
164
  }});
-
 
165
 
-
 
166
  static {
162
  static {
-
 
163
    Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
164
    tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
165
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
166
    tmpMap.put(_Fields.LINE1, new org.apache.thrift.meta_data.FieldMetaData("line1", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
167
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
168
    tmpMap.put(_Fields.LINE2, new org.apache.thrift.meta_data.FieldMetaData("line2", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
169
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
170
    tmpMap.put(_Fields.LANDMARK, new org.apache.thrift.meta_data.FieldMetaData("landmark", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
171
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
172
    tmpMap.put(_Fields.CITY, new org.apache.thrift.meta_data.FieldMetaData("city", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
173
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
174
    tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
176
    tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
178
    tmpMap.put(_Fields.COUNTRY, new org.apache.thrift.meta_data.FieldMetaData("country", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
180
    tmpMap.put(_Fields.ENABLED, new org.apache.thrift.meta_data.FieldMetaData("enabled", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
-
 
182
    tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
183
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AddressType.class)));
-
 
184
    tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
185
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
186
    tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
187
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
188
    tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
189
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
190
    metaDataMap = Collections.unmodifiableMap(tmpMap);
167
    FieldMetaData.addStructMetaDataMap(Address.class, metaDataMap);
191
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Address.class, metaDataMap);
168
  }
192
  }
169
 
193
 
170
  public Address() {
194
  public Address() {
171
  }
195
  }
172
 
196
 
Line 247... Line 271...
247
 
271
 
248
  public Address deepCopy() {
272
  public Address deepCopy() {
249
    return new Address(this);
273
    return new Address(this);
250
  }
274
  }
251
 
275
 
252
  @Deprecated
276
  @Override
253
  public Address clone() {
277
  public void clear() {
-
 
278
    setIdIsSet(false);
-
 
279
    this.id = 0;
-
 
280
    this.line1 = null;
-
 
281
    this.line2 = null;
-
 
282
    this.landmark = null;
-
 
283
    this.city = null;
-
 
284
    this.state = null;
-
 
285
    this.pin = null;
-
 
286
    this.country = null;
254
    return new Address(this);
287
    setEnabledIsSet(false);
-
 
288
    this.enabled = false;
-
 
289
    this.type = null;
-
 
290
    setAddedOnIsSet(false);
-
 
291
    this.addedOn = 0;
-
 
292
    this.name = null;
-
 
293
    this.phone = null;
255
  }
294
  }
256
 
295
 
257
  public long getId() {
296
  public long getId() {
258
    return this.id;
297
    return this.id;
259
  }
298
  }
260
 
299
 
261
  public Address setId(long id) {
300
  public void setId(long id) {
262
    this.id = id;
301
    this.id = id;
263
    setIdIsSet(true);
302
    setIdIsSet(true);
264
    return this;
-
 
265
  }
303
  }
266
 
304
 
267
  public void unsetId() {
305
  public void unsetId() {
268
    __isset_bit_vector.clear(__ID_ISSET_ID);
306
    __isset_bit_vector.clear(__ID_ISSET_ID);
269
  }
307
  }
270
 
308
 
271
  /** Returns true if field id is set (has been asigned a value) and false otherwise */
309
  /** Returns true if field id is set (has been assigned a value) and false otherwise */
272
  public boolean isSetId() {
310
  public boolean isSetId() {
273
    return __isset_bit_vector.get(__ID_ISSET_ID);
311
    return __isset_bit_vector.get(__ID_ISSET_ID);
274
  }
312
  }
275
 
313
 
276
  public void setIdIsSet(boolean value) {
314
  public void setIdIsSet(boolean value) {
Line 279... Line 317...
279
 
317
 
280
  public String getLine1() {
318
  public String getLine1() {
281
    return this.line1;
319
    return this.line1;
282
  }
320
  }
283
 
321
 
284
  public Address setLine1(String line1) {
322
  public void setLine1(String line1) {
285
    this.line1 = line1;
323
    this.line1 = line1;
286
    return this;
-
 
287
  }
324
  }
288
 
325
 
289
  public void unsetLine1() {
326
  public void unsetLine1() {
290
    this.line1 = null;
327
    this.line1 = null;
291
  }
328
  }
292
 
329
 
293
  /** Returns true if field line1 is set (has been asigned a value) and false otherwise */
330
  /** Returns true if field line1 is set (has been assigned a value) and false otherwise */
294
  public boolean isSetLine1() {
331
  public boolean isSetLine1() {
295
    return this.line1 != null;
332
    return this.line1 != null;
296
  }
333
  }
297
 
334
 
298
  public void setLine1IsSet(boolean value) {
335
  public void setLine1IsSet(boolean value) {
Line 303... Line 340...
303
 
340
 
304
  public String getLine2() {
341
  public String getLine2() {
305
    return this.line2;
342
    return this.line2;
306
  }
343
  }
307
 
344
 
308
  public Address setLine2(String line2) {
345
  public void setLine2(String line2) {
309
    this.line2 = line2;
346
    this.line2 = line2;
310
    return this;
-
 
311
  }
347
  }
312
 
348
 
313
  public void unsetLine2() {
349
  public void unsetLine2() {
314
    this.line2 = null;
350
    this.line2 = null;
315
  }
351
  }
316
 
352
 
317
  /** Returns true if field line2 is set (has been asigned a value) and false otherwise */
353
  /** Returns true if field line2 is set (has been assigned a value) and false otherwise */
318
  public boolean isSetLine2() {
354
  public boolean isSetLine2() {
319
    return this.line2 != null;
355
    return this.line2 != null;
320
  }
356
  }
321
 
357
 
322
  public void setLine2IsSet(boolean value) {
358
  public void setLine2IsSet(boolean value) {
Line 327... Line 363...
327
 
363
 
328
  public String getLandmark() {
364
  public String getLandmark() {
329
    return this.landmark;
365
    return this.landmark;
330
  }
366
  }
331
 
367
 
332
  public Address setLandmark(String landmark) {
368
  public void setLandmark(String landmark) {
333
    this.landmark = landmark;
369
    this.landmark = landmark;
334
    return this;
-
 
335
  }
370
  }
336
 
371
 
337
  public void unsetLandmark() {
372
  public void unsetLandmark() {
338
    this.landmark = null;
373
    this.landmark = null;
339
  }
374
  }
340
 
375
 
341
  /** Returns true if field landmark is set (has been asigned a value) and false otherwise */
376
  /** Returns true if field landmark is set (has been assigned a value) and false otherwise */
342
  public boolean isSetLandmark() {
377
  public boolean isSetLandmark() {
343
    return this.landmark != null;
378
    return this.landmark != null;
344
  }
379
  }
345
 
380
 
346
  public void setLandmarkIsSet(boolean value) {
381
  public void setLandmarkIsSet(boolean value) {
Line 351... Line 386...
351
 
386
 
352
  public String getCity() {
387
  public String getCity() {
353
    return this.city;
388
    return this.city;
354
  }
389
  }
355
 
390
 
356
  public Address setCity(String city) {
391
  public void setCity(String city) {
357
    this.city = city;
392
    this.city = city;
358
    return this;
-
 
359
  }
393
  }
360
 
394
 
361
  public void unsetCity() {
395
  public void unsetCity() {
362
    this.city = null;
396
    this.city = null;
363
  }
397
  }
364
 
398
 
365
  /** Returns true if field city is set (has been asigned a value) and false otherwise */
399
  /** Returns true if field city is set (has been assigned a value) and false otherwise */
366
  public boolean isSetCity() {
400
  public boolean isSetCity() {
367
    return this.city != null;
401
    return this.city != null;
368
  }
402
  }
369
 
403
 
370
  public void setCityIsSet(boolean value) {
404
  public void setCityIsSet(boolean value) {
Line 375... Line 409...
375
 
409
 
376
  public String getState() {
410
  public String getState() {
377
    return this.state;
411
    return this.state;
378
  }
412
  }
379
 
413
 
380
  public Address setState(String state) {
414
  public void setState(String state) {
381
    this.state = state;
415
    this.state = state;
382
    return this;
-
 
383
  }
416
  }
384
 
417
 
385
  public void unsetState() {
418
  public void unsetState() {
386
    this.state = null;
419
    this.state = null;
387
  }
420
  }
388
 
421
 
389
  /** Returns true if field state is set (has been asigned a value) and false otherwise */
422
  /** Returns true if field state is set (has been assigned a value) and false otherwise */
390
  public boolean isSetState() {
423
  public boolean isSetState() {
391
    return this.state != null;
424
    return this.state != null;
392
  }
425
  }
393
 
426
 
394
  public void setStateIsSet(boolean value) {
427
  public void setStateIsSet(boolean value) {
Line 399... Line 432...
399
 
432
 
400
  public String getPin() {
433
  public String getPin() {
401
    return this.pin;
434
    return this.pin;
402
  }
435
  }
403
 
436
 
404
  public Address setPin(String pin) {
437
  public void setPin(String pin) {
405
    this.pin = pin;
438
    this.pin = pin;
406
    return this;
-
 
407
  }
439
  }
408
 
440
 
409
  public void unsetPin() {
441
  public void unsetPin() {
410
    this.pin = null;
442
    this.pin = null;
411
  }
443
  }
412
 
444
 
413
  /** Returns true if field pin is set (has been asigned a value) and false otherwise */
445
  /** Returns true if field pin is set (has been assigned a value) and false otherwise */
414
  public boolean isSetPin() {
446
  public boolean isSetPin() {
415
    return this.pin != null;
447
    return this.pin != null;
416
  }
448
  }
417
 
449
 
418
  public void setPinIsSet(boolean value) {
450
  public void setPinIsSet(boolean value) {
Line 423... Line 455...
423
 
455
 
424
  public String getCountry() {
456
  public String getCountry() {
425
    return this.country;
457
    return this.country;
426
  }
458
  }
427
 
459
 
428
  public Address setCountry(String country) {
460
  public void setCountry(String country) {
429
    this.country = country;
461
    this.country = country;
430
    return this;
-
 
431
  }
462
  }
432
 
463
 
433
  public void unsetCountry() {
464
  public void unsetCountry() {
434
    this.country = null;
465
    this.country = null;
435
  }
466
  }
436
 
467
 
437
  /** Returns true if field country is set (has been asigned a value) and false otherwise */
468
  /** Returns true if field country is set (has been assigned a value) and false otherwise */
438
  public boolean isSetCountry() {
469
  public boolean isSetCountry() {
439
    return this.country != null;
470
    return this.country != null;
440
  }
471
  }
441
 
472
 
442
  public void setCountryIsSet(boolean value) {
473
  public void setCountryIsSet(boolean value) {
Line 447... Line 478...
447
 
478
 
448
  public boolean isEnabled() {
479
  public boolean isEnabled() {
449
    return this.enabled;
480
    return this.enabled;
450
  }
481
  }
451
 
482
 
452
  public Address setEnabled(boolean enabled) {
483
  public void setEnabled(boolean enabled) {
453
    this.enabled = enabled;
484
    this.enabled = enabled;
454
    setEnabledIsSet(true);
485
    setEnabledIsSet(true);
455
    return this;
-
 
456
  }
486
  }
457
 
487
 
458
  public void unsetEnabled() {
488
  public void unsetEnabled() {
459
    __isset_bit_vector.clear(__ENABLED_ISSET_ID);
489
    __isset_bit_vector.clear(__ENABLED_ISSET_ID);
460
  }
490
  }
461
 
491
 
462
  /** Returns true if field enabled is set (has been asigned a value) and false otherwise */
492
  /** Returns true if field enabled is set (has been assigned a value) and false otherwise */
463
  public boolean isSetEnabled() {
493
  public boolean isSetEnabled() {
464
    return __isset_bit_vector.get(__ENABLED_ISSET_ID);
494
    return __isset_bit_vector.get(__ENABLED_ISSET_ID);
465
  }
495
  }
466
 
496
 
467
  public void setEnabledIsSet(boolean value) {
497
  public void setEnabledIsSet(boolean value) {
Line 478... Line 508...
478
 
508
 
479
  /**
509
  /**
480
   * 
510
   * 
481
   * @see AddressType
511
   * @see AddressType
482
   */
512
   */
483
  public Address setType(AddressType type) {
513
  public void setType(AddressType type) {
484
    this.type = type;
514
    this.type = type;
485
    return this;
-
 
486
  }
515
  }
487
 
516
 
488
  public void unsetType() {
517
  public void unsetType() {
489
    this.type = null;
518
    this.type = null;
490
  }
519
  }
491
 
520
 
492
  /** Returns true if field type is set (has been asigned a value) and false otherwise */
521
  /** Returns true if field type is set (has been assigned a value) and false otherwise */
493
  public boolean isSetType() {
522
  public boolean isSetType() {
494
    return this.type != null;
523
    return this.type != null;
495
  }
524
  }
496
 
525
 
497
  public void setTypeIsSet(boolean value) {
526
  public void setTypeIsSet(boolean value) {
Line 502... Line 531...
502
 
531
 
503
  public long getAddedOn() {
532
  public long getAddedOn() {
504
    return this.addedOn;
533
    return this.addedOn;
505
  }
534
  }
506
 
535
 
507
  public Address setAddedOn(long addedOn) {
536
  public void setAddedOn(long addedOn) {
508
    this.addedOn = addedOn;
537
    this.addedOn = addedOn;
509
    setAddedOnIsSet(true);
538
    setAddedOnIsSet(true);
510
    return this;
-
 
511
  }
539
  }
512
 
540
 
513
  public void unsetAddedOn() {
541
  public void unsetAddedOn() {
514
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
542
    __isset_bit_vector.clear(__ADDEDON_ISSET_ID);
515
  }
543
  }
516
 
544
 
517
  /** Returns true if field addedOn is set (has been asigned a value) and false otherwise */
545
  /** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
518
  public boolean isSetAddedOn() {
546
  public boolean isSetAddedOn() {
519
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
547
    return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
520
  }
548
  }
521
 
549
 
522
  public void setAddedOnIsSet(boolean value) {
550
  public void setAddedOnIsSet(boolean value) {
Line 525... Line 553...
525
 
553
 
526
  public String getName() {
554
  public String getName() {
527
    return this.name;
555
    return this.name;
528
  }
556
  }
529
 
557
 
530
  public Address setName(String name) {
558
  public void setName(String name) {
531
    this.name = name;
559
    this.name = name;
532
    return this;
-
 
533
  }
560
  }
534
 
561
 
535
  public void unsetName() {
562
  public void unsetName() {
536
    this.name = null;
563
    this.name = null;
537
  }
564
  }
538
 
565
 
539
  /** Returns true if field name is set (has been asigned a value) and false otherwise */
566
  /** Returns true if field name is set (has been assigned a value) and false otherwise */
540
  public boolean isSetName() {
567
  public boolean isSetName() {
541
    return this.name != null;
568
    return this.name != null;
542
  }
569
  }
543
 
570
 
544
  public void setNameIsSet(boolean value) {
571
  public void setNameIsSet(boolean value) {
Line 549... Line 576...
549
 
576
 
550
  public String getPhone() {
577
  public String getPhone() {
551
    return this.phone;
578
    return this.phone;
552
  }
579
  }
553
 
580
 
554
  public Address setPhone(String phone) {
581
  public void setPhone(String phone) {
555
    this.phone = phone;
582
    this.phone = phone;
556
    return this;
-
 
557
  }
583
  }
558
 
584
 
559
  public void unsetPhone() {
585
  public void unsetPhone() {
560
    this.phone = null;
586
    this.phone = null;
561
  }
587
  }
562
 
588
 
563
  /** Returns true if field phone is set (has been asigned a value) and false otherwise */
589
  /** Returns true if field phone is set (has been assigned a value) and false otherwise */
564
  public boolean isSetPhone() {
590
  public boolean isSetPhone() {
565
    return this.phone != null;
591
    return this.phone != null;
566
  }
592
  }
567
 
593
 
568
  public void setPhoneIsSet(boolean value) {
594
  public void setPhoneIsSet(boolean value) {
Line 678... Line 704...
678
      break;
704
      break;
679
 
705
 
680
    }
706
    }
681
  }
707
  }
682
 
708
 
683
  public void setFieldValue(int fieldID, Object value) {
-
 
684
    setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
685
  }
-
 
686
 
-
 
687
  public Object getFieldValue(_Fields field) {
709
  public Object getFieldValue(_Fields field) {
688
    switch (field) {
710
    switch (field) {
689
    case ID:
711
    case ID:
690
      return new Long(getId());
712
      return Long.valueOf(getId());
691
 
713
 
692
    case LINE1:
714
    case LINE1:
693
      return getLine1();
715
      return getLine1();
694
 
716
 
695
    case LINE2:
717
    case LINE2:
Line 709... Line 731...
709
 
731
 
710
    case COUNTRY:
732
    case COUNTRY:
711
      return getCountry();
733
      return getCountry();
712
 
734
 
713
    case ENABLED:
735
    case ENABLED:
714
      return new Boolean(isEnabled());
736
      return Boolean.valueOf(isEnabled());
715
 
737
 
716
    case TYPE:
738
    case TYPE:
717
      return getType();
739
      return getType();
718
 
740
 
719
    case ADDED_ON:
741
    case ADDED_ON:
720
      return new Long(getAddedOn());
742
      return Long.valueOf(getAddedOn());
721
 
743
 
722
    case NAME:
744
    case NAME:
723
      return getName();
745
      return getName();
724
 
746
 
725
    case PHONE:
747
    case PHONE:
Line 727... Line 749...
727
 
749
 
728
    }
750
    }
729
    throw new IllegalStateException();
751
    throw new IllegalStateException();
730
  }
752
  }
731
 
753
 
732
  public Object getFieldValue(int fieldId) {
-
 
733
    return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
734
  }
-
 
735
 
-
 
736
  /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
754
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
737
  public boolean isSet(_Fields field) {
755
  public boolean isSet(_Fields field) {
-
 
756
    if (field == null) {
-
 
757
      throw new IllegalArgumentException();
-
 
758
    }
-
 
759
 
738
    switch (field) {
760
    switch (field) {
739
    case ID:
761
    case ID:
740
      return isSetId();
762
      return isSetId();
741
    case LINE1:
763
    case LINE1:
742
      return isSetLine1();
764
      return isSetLine1();
Line 764... Line 786...
764
      return isSetPhone();
786
      return isSetPhone();
765
    }
787
    }
766
    throw new IllegalStateException();
788
    throw new IllegalStateException();
767
  }
789
  }
768
 
790
 
769
  public boolean isSet(int fieldID) {
-
 
770
    return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
771
  }
-
 
772
 
-
 
773
  @Override
791
  @Override
774
  public boolean equals(Object that) {
792
  public boolean equals(Object that) {
775
    if (that == null)
793
    if (that == null)
776
      return false;
794
      return false;
777
    if (that instanceof Address)
795
    if (that instanceof Address)
Line 914... Line 932...
914
    }
932
    }
915
 
933
 
916
    int lastComparison = 0;
934
    int lastComparison = 0;
917
    Address typedOther = (Address)other;
935
    Address typedOther = (Address)other;
918
 
936
 
919
    lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
937
    lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
920
    if (lastComparison != 0) {
938
    if (lastComparison != 0) {
921
      return lastComparison;
939
      return lastComparison;
922
    }
940
    }
-
 
941
    if (isSetId()) {
923
    lastComparison = TBaseHelper.compareTo(id, typedOther.id);
942
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
924
    if (lastComparison != 0) {
943
      if (lastComparison != 0) {
925
      return lastComparison;
944
        return lastComparison;
-
 
945
      }
926
    }
946
    }
927
    lastComparison = Boolean.valueOf(isSetLine1()).compareTo(isSetLine1());
947
    lastComparison = Boolean.valueOf(isSetLine1()).compareTo(typedOther.isSetLine1());
928
    if (lastComparison != 0) {
948
    if (lastComparison != 0) {
929
      return lastComparison;
949
      return lastComparison;
930
    }
950
    }
-
 
951
    if (isSetLine1()) {
931
    lastComparison = TBaseHelper.compareTo(line1, typedOther.line1);
952
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line1, typedOther.line1);
932
    if (lastComparison != 0) {
953
      if (lastComparison != 0) {
933
      return lastComparison;
954
        return lastComparison;
-
 
955
      }
934
    }
956
    }
935
    lastComparison = Boolean.valueOf(isSetLine2()).compareTo(isSetLine2());
957
    lastComparison = Boolean.valueOf(isSetLine2()).compareTo(typedOther.isSetLine2());
936
    if (lastComparison != 0) {
958
    if (lastComparison != 0) {
937
      return lastComparison;
959
      return lastComparison;
938
    }
960
    }
-
 
961
    if (isSetLine2()) {
939
    lastComparison = TBaseHelper.compareTo(line2, typedOther.line2);
962
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line2, typedOther.line2);
940
    if (lastComparison != 0) {
963
      if (lastComparison != 0) {
941
      return lastComparison;
964
        return lastComparison;
-
 
965
      }
942
    }
966
    }
943
    lastComparison = Boolean.valueOf(isSetLandmark()).compareTo(isSetLandmark());
967
    lastComparison = Boolean.valueOf(isSetLandmark()).compareTo(typedOther.isSetLandmark());
944
    if (lastComparison != 0) {
968
    if (lastComparison != 0) {
945
      return lastComparison;
969
      return lastComparison;
946
    }
970
    }
-
 
971
    if (isSetLandmark()) {
947
    lastComparison = TBaseHelper.compareTo(landmark, typedOther.landmark);
972
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.landmark, typedOther.landmark);
948
    if (lastComparison != 0) {
973
      if (lastComparison != 0) {
949
      return lastComparison;
974
        return lastComparison;
-
 
975
      }
950
    }
976
    }
951
    lastComparison = Boolean.valueOf(isSetCity()).compareTo(isSetCity());
977
    lastComparison = Boolean.valueOf(isSetCity()).compareTo(typedOther.isSetCity());
952
    if (lastComparison != 0) {
978
    if (lastComparison != 0) {
953
      return lastComparison;
979
      return lastComparison;
954
    }
980
    }
-
 
981
    if (isSetCity()) {
955
    lastComparison = TBaseHelper.compareTo(city, typedOther.city);
982
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.city, typedOther.city);
956
    if (lastComparison != 0) {
983
      if (lastComparison != 0) {
957
      return lastComparison;
984
        return lastComparison;
-
 
985
      }
958
    }
986
    }
959
    lastComparison = Boolean.valueOf(isSetState()).compareTo(isSetState());
987
    lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
960
    if (lastComparison != 0) {
988
    if (lastComparison != 0) {
961
      return lastComparison;
989
      return lastComparison;
962
    }
990
    }
-
 
991
    if (isSetState()) {
963
    lastComparison = TBaseHelper.compareTo(state, typedOther.state);
992
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
964
    if (lastComparison != 0) {
993
      if (lastComparison != 0) {
965
      return lastComparison;
994
        return lastComparison;
-
 
995
      }
966
    }
996
    }
967
    lastComparison = Boolean.valueOf(isSetPin()).compareTo(isSetPin());
997
    lastComparison = Boolean.valueOf(isSetPin()).compareTo(typedOther.isSetPin());
968
    if (lastComparison != 0) {
998
    if (lastComparison != 0) {
969
      return lastComparison;
999
      return lastComparison;
970
    }
1000
    }
-
 
1001
    if (isSetPin()) {
971
    lastComparison = TBaseHelper.compareTo(pin, typedOther.pin);
1002
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pin, typedOther.pin);
972
    if (lastComparison != 0) {
1003
      if (lastComparison != 0) {
973
      return lastComparison;
1004
        return lastComparison;
-
 
1005
      }
974
    }
1006
    }
975
    lastComparison = Boolean.valueOf(isSetCountry()).compareTo(isSetCountry());
1007
    lastComparison = Boolean.valueOf(isSetCountry()).compareTo(typedOther.isSetCountry());
976
    if (lastComparison != 0) {
1008
    if (lastComparison != 0) {
977
      return lastComparison;
1009
      return lastComparison;
978
    }
1010
    }
-
 
1011
    if (isSetCountry()) {
979
    lastComparison = TBaseHelper.compareTo(country, typedOther.country);
1012
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.country, typedOther.country);
980
    if (lastComparison != 0) {
1013
      if (lastComparison != 0) {
981
      return lastComparison;
1014
        return lastComparison;
-
 
1015
      }
982
    }
1016
    }
983
    lastComparison = Boolean.valueOf(isSetEnabled()).compareTo(isSetEnabled());
1017
    lastComparison = Boolean.valueOf(isSetEnabled()).compareTo(typedOther.isSetEnabled());
984
    if (lastComparison != 0) {
1018
    if (lastComparison != 0) {
985
      return lastComparison;
1019
      return lastComparison;
986
    }
1020
    }
-
 
1021
    if (isSetEnabled()) {
987
    lastComparison = TBaseHelper.compareTo(enabled, typedOther.enabled);
1022
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enabled, typedOther.enabled);
988
    if (lastComparison != 0) {
1023
      if (lastComparison != 0) {
989
      return lastComparison;
1024
        return lastComparison;
-
 
1025
      }
990
    }
1026
    }
991
    lastComparison = Boolean.valueOf(isSetType()).compareTo(isSetType());
1027
    lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
992
    if (lastComparison != 0) {
1028
    if (lastComparison != 0) {
993
      return lastComparison;
1029
      return lastComparison;
994
    }
1030
    }
-
 
1031
    if (isSetType()) {
995
    lastComparison = TBaseHelper.compareTo(type, typedOther.type);
1032
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
996
    if (lastComparison != 0) {
1033
      if (lastComparison != 0) {
997
      return lastComparison;
1034
        return lastComparison;
-
 
1035
      }
998
    }
1036
    }
999
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(isSetAddedOn());
1037
    lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
1000
    if (lastComparison != 0) {
1038
    if (lastComparison != 0) {
1001
      return lastComparison;
1039
      return lastComparison;
1002
    }
1040
    }
-
 
1041
    if (isSetAddedOn()) {
1003
    lastComparison = TBaseHelper.compareTo(addedOn, typedOther.addedOn);
1042
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
1004
    if (lastComparison != 0) {
1043
      if (lastComparison != 0) {
1005
      return lastComparison;
1044
        return lastComparison;
-
 
1045
      }
1006
    }
1046
    }
1007
    lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
1047
    lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
1008
    if (lastComparison != 0) {
1048
    if (lastComparison != 0) {
1009
      return lastComparison;
1049
      return lastComparison;
1010
    }
1050
    }
-
 
1051
    if (isSetName()) {
1011
    lastComparison = TBaseHelper.compareTo(name, typedOther.name);
1052
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
1012
    if (lastComparison != 0) {
1053
      if (lastComparison != 0) {
1013
      return lastComparison;
1054
        return lastComparison;
-
 
1055
      }
1014
    }
1056
    }
1015
    lastComparison = Boolean.valueOf(isSetPhone()).compareTo(isSetPhone());
1057
    lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
1016
    if (lastComparison != 0) {
1058
    if (lastComparison != 0) {
1017
      return lastComparison;
1059
      return lastComparison;
1018
    }
1060
    }
-
 
1061
    if (isSetPhone()) {
1019
    lastComparison = TBaseHelper.compareTo(phone, typedOther.phone);
1062
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
1020
    if (lastComparison != 0) {
1063
      if (lastComparison != 0) {
1021
      return lastComparison;
1064
        return lastComparison;
-
 
1065
      }
1022
    }
1066
    }
1023
    return 0;
1067
    return 0;
1024
  }
1068
  }
1025
 
1069
 
-
 
1070
  public _Fields fieldForId(int fieldId) {
-
 
1071
    return _Fields.findByThriftId(fieldId);
-
 
1072
  }
-
 
1073
 
1026
  public void read(TProtocol iprot) throws TException {
1074
  public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1027
    TField field;
1075
    org.apache.thrift.protocol.TField field;
1028
    iprot.readStructBegin();
1076
    iprot.readStructBegin();
1029
    while (true)
1077
    while (true)
1030
    {
1078
    {
1031
      field = iprot.readFieldBegin();
1079
      field = iprot.readFieldBegin();
1032
      if (field.type == TType.STOP) { 
1080
      if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1033
        break;
1081
        break;
1034
      }
1082
      }
1035
      _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1036
      if (fieldId == null) {
-
 
1037
        TProtocolUtil.skip(iprot, field.type);
-
 
1038
      } else {
-
 
1039
        switch (fieldId) {
1083
      switch (field.id) {
1040
          case ID:
1084
        case 1: // ID
1041
            if (field.type == TType.I64) {
1085
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1042
              this.id = iprot.readI64();
1086
            this.id = iprot.readI64();
1043
              setIdIsSet(true);
1087
            setIdIsSet(true);
1044
            } else { 
1088
          } else { 
1045
              TProtocolUtil.skip(iprot, field.type);
1089
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1046
            }
1090
          }
1047
            break;
1091
          break;
1048
          case LINE1:
1092
        case 2: // LINE1
1049
            if (field.type == TType.STRING) {
1093
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1050
              this.line1 = iprot.readString();
1094
            this.line1 = iprot.readString();
1051
            } else { 
1095
          } else { 
1052
              TProtocolUtil.skip(iprot, field.type);
1096
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1053
            }
1097
          }
1054
            break;
1098
          break;
1055
          case LINE2:
1099
        case 3: // LINE2
1056
            if (field.type == TType.STRING) {
1100
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1057
              this.line2 = iprot.readString();
1101
            this.line2 = iprot.readString();
1058
            } else { 
1102
          } else { 
1059
              TProtocolUtil.skip(iprot, field.type);
1103
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1060
            }
1104
          }
1061
            break;
1105
          break;
1062
          case LANDMARK:
1106
        case 4: // LANDMARK
1063
            if (field.type == TType.STRING) {
1107
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1064
              this.landmark = iprot.readString();
1108
            this.landmark = iprot.readString();
1065
            } else { 
1109
          } else { 
1066
              TProtocolUtil.skip(iprot, field.type);
1110
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1067
            }
1111
          }
1068
            break;
1112
          break;
1069
          case CITY:
1113
        case 5: // CITY
1070
            if (field.type == TType.STRING) {
1114
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1071
              this.city = iprot.readString();
1115
            this.city = iprot.readString();
1072
            } else { 
1116
          } else { 
1073
              TProtocolUtil.skip(iprot, field.type);
1117
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1074
            }
1118
          }
1075
            break;
1119
          break;
1076
          case STATE:
1120
        case 6: // STATE
1077
            if (field.type == TType.STRING) {
1121
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1078
              this.state = iprot.readString();
1122
            this.state = iprot.readString();
1079
            } else { 
1123
          } else { 
1080
              TProtocolUtil.skip(iprot, field.type);
1124
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1081
            }
1125
          }
1082
            break;
1126
          break;
1083
          case PIN:
1127
        case 7: // PIN
1084
            if (field.type == TType.STRING) {
1128
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1085
              this.pin = iprot.readString();
1129
            this.pin = iprot.readString();
1086
            } else { 
1130
          } else { 
1087
              TProtocolUtil.skip(iprot, field.type);
1131
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1088
            }
1132
          }
1089
            break;
1133
          break;
1090
          case COUNTRY:
1134
        case 8: // COUNTRY
1091
            if (field.type == TType.STRING) {
1135
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1092
              this.country = iprot.readString();
1136
            this.country = iprot.readString();
1093
            } else { 
1137
          } else { 
1094
              TProtocolUtil.skip(iprot, field.type);
1138
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1095
            }
1139
          }
1096
            break;
1140
          break;
1097
          case ENABLED:
1141
        case 9: // ENABLED
1098
            if (field.type == TType.BOOL) {
1142
          if (field.type == org.apache.thrift.protocol.TType.BOOL) {
1099
              this.enabled = iprot.readBool();
1143
            this.enabled = iprot.readBool();
1100
              setEnabledIsSet(true);
1144
            setEnabledIsSet(true);
1101
            } else { 
1145
          } else { 
1102
              TProtocolUtil.skip(iprot, field.type);
1146
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1103
            }
1147
          }
1104
            break;
1148
          break;
1105
          case TYPE:
1149
        case 10: // TYPE
1106
            if (field.type == TType.I32) {
1150
          if (field.type == org.apache.thrift.protocol.TType.I32) {
1107
              this.type = AddressType.findByValue(iprot.readI32());
1151
            this.type = AddressType.findByValue(iprot.readI32());
1108
            } else { 
1152
          } else { 
1109
              TProtocolUtil.skip(iprot, field.type);
1153
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1110
            }
1154
          }
1111
            break;
1155
          break;
1112
          case ADDED_ON:
1156
        case 11: // ADDED_ON
1113
            if (field.type == TType.I64) {
1157
          if (field.type == org.apache.thrift.protocol.TType.I64) {
1114
              this.addedOn = iprot.readI64();
1158
            this.addedOn = iprot.readI64();
1115
              setAddedOnIsSet(true);
1159
            setAddedOnIsSet(true);
1116
            } else { 
1160
          } else { 
1117
              TProtocolUtil.skip(iprot, field.type);
1161
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1118
            }
1162
          }
1119
            break;
1163
          break;
1120
          case NAME:
1164
        case 12: // NAME
1121
            if (field.type == TType.STRING) {
1165
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1122
              this.name = iprot.readString();
1166
            this.name = iprot.readString();
1123
            } else { 
1167
          } else { 
1124
              TProtocolUtil.skip(iprot, field.type);
1168
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1125
            }
1169
          }
1126
            break;
1170
          break;
1127
          case PHONE:
1171
        case 13: // PHONE
1128
            if (field.type == TType.STRING) {
1172
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1129
              this.phone = iprot.readString();
1173
            this.phone = iprot.readString();
1130
            } else { 
1174
          } else { 
1131
              TProtocolUtil.skip(iprot, field.type);
1175
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1132
            }
1176
          }
1133
            break;
1177
          break;
1134
        }
1178
        default:
1135
        iprot.readFieldEnd();
1179
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1136
      }
1180
      }
-
 
1181
      iprot.readFieldEnd();
1137
    }
1182
    }
1138
    iprot.readStructEnd();
1183
    iprot.readStructEnd();
1139
    validate();
1184
    validate();
1140
  }
1185
  }
1141
 
1186
 
1142
  public void write(TProtocol oprot) throws TException {
1187
  public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1143
    validate();
1188
    validate();
1144
 
1189
 
1145
    oprot.writeStructBegin(STRUCT_DESC);
1190
    oprot.writeStructBegin(STRUCT_DESC);
1146
    oprot.writeFieldBegin(ID_FIELD_DESC);
1191
    oprot.writeFieldBegin(ID_FIELD_DESC);
1147
    oprot.writeI64(this.id);
1192
    oprot.writeI64(this.id);
Line 1277... Line 1322...
1277
    if (!first) sb.append(", ");
1322
    if (!first) sb.append(", ");
1278
    sb.append("type:");
1323
    sb.append("type:");
1279
    if (this.type == null) {
1324
    if (this.type == null) {
1280
      sb.append("null");
1325
      sb.append("null");
1281
    } else {
1326
    } else {
1282
      String type_name = type.name();
-
 
1283
      if (type_name != null) {
-
 
1284
        sb.append(type_name);
-
 
1285
        sb.append(" (");
-
 
1286
      }
-
 
1287
      sb.append(this.type);
1327
      sb.append(this.type);
1288
      if (type_name != null) {
-
 
1289
        sb.append(")");
-
 
1290
      }
-
 
1291
    }
1328
    }
1292
    first = false;
1329
    first = false;
1293
    if (!first) sb.append(", ");
1330
    if (!first) sb.append(", ");
1294
    sb.append("addedOn:");
1331
    sb.append("addedOn:");
1295
    sb.append(this.addedOn);
1332
    sb.append(this.addedOn);
Line 1312... Line 1349...
1312
    first = false;
1349
    first = false;
1313
    sb.append(")");
1350
    sb.append(")");
1314
    return sb.toString();
1351
    return sb.toString();
1315
  }
1352
  }
1316
 
1353
 
1317
  public void validate() throws TException {
1354
  public void validate() throws org.apache.thrift.TException {
1318
    // check for required fields
1355
    // check for required fields
1319
  }
1356
  }
1320
 
1357
 
-
 
1358
  private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1359
    try {
-
 
1360
      write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1361
    } catch (org.apache.thrift.TException te) {
-
 
1362
      throw new java.io.IOException(te);
-
 
1363
    }
-
 
1364
  }
-
 
1365
 
-
 
1366
  private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1367
    try {
-
 
1368
      // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1369
      __isset_bit_vector = new BitSet(1);
-
 
1370
      read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1371
    } catch (org.apache.thrift.TException te) {
-
 
1372
      throw new java.io.IOException(te);
-
 
1373
    }
-
 
1374
  }
-
 
1375
 
1321
}
1376
}
1322
 
1377