| 123 |
ashish |
1 |
/**
|
| 3430 |
rajveer |
2 |
* Autogenerated by Thrift Compiler (0.7.0)
|
| 123 |
ashish |
3 |
*
|
|
|
4 |
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
|
|
|
5 |
*/
|
|
|
6 |
package in.shop2020.model.v1.user;
|
|
|
7 |
|
|
|
8 |
import java.util.List;
|
|
|
9 |
import java.util.ArrayList;
|
|
|
10 |
import java.util.Map;
|
|
|
11 |
import java.util.HashMap;
|
|
|
12 |
import java.util.EnumMap;
|
|
|
13 |
import java.util.Set;
|
|
|
14 |
import java.util.HashSet;
|
|
|
15 |
import java.util.EnumSet;
|
|
|
16 |
import java.util.Collections;
|
|
|
17 |
import java.util.BitSet;
|
| 3430 |
rajveer |
18 |
import java.nio.ByteBuffer;
|
| 123 |
ashish |
19 |
import java.util.Arrays;
|
|
|
20 |
import org.slf4j.Logger;
|
|
|
21 |
import org.slf4j.LoggerFactory;
|
|
|
22 |
|
|
|
23 |
/**
|
|
|
24 |
* Address
|
|
|
25 |
*/
|
| 3430 |
rajveer |
26 |
public class Address implements org.apache.thrift.TBase<Address, Address._Fields>, java.io.Serializable, Cloneable {
|
|
|
27 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Address");
|
| 123 |
ashish |
28 |
|
| 3430 |
rajveer |
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
|
|
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);
|
| 18735 |
manish.sha |
42 |
private static final org.apache.thrift.protocol.TField TAX_INVOICE_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("taxInvoiceAvailable", org.apache.thrift.protocol.TType.BOOL, (short)14);
|
|
|
43 |
private static final org.apache.thrift.protocol.TField CREDIT_OPTION_AVAILABLE_FIELD_DESC = new org.apache.thrift.protocol.TField("creditOptionAvailable", org.apache.thrift.protocol.TType.BOOL, (short)15);
|
| 123 |
ashish |
44 |
|
| 3430 |
rajveer |
45 |
private long id; // required
|
|
|
46 |
private String line1; // required
|
|
|
47 |
private String line2; // required
|
|
|
48 |
private String landmark; // required
|
|
|
49 |
private String city; // required
|
|
|
50 |
private String state; // required
|
|
|
51 |
private String pin; // required
|
|
|
52 |
private String country; // required
|
|
|
53 |
private boolean enabled; // required
|
|
|
54 |
private AddressType type; // required
|
|
|
55 |
private long addedOn; // required
|
|
|
56 |
private String name; // required
|
|
|
57 |
private String phone; // required
|
| 18735 |
manish.sha |
58 |
private boolean taxInvoiceAvailable; // required
|
|
|
59 |
private boolean creditOptionAvailable; // required
|
| 123 |
ashish |
60 |
|
|
|
61 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 3430 |
rajveer |
62 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 553 |
chandransh |
63 |
ID((short)1, "id"),
|
|
|
64 |
LINE1((short)2, "line1"),
|
|
|
65 |
LINE2((short)3, "line2"),
|
|
|
66 |
LANDMARK((short)4, "landmark"),
|
|
|
67 |
CITY((short)5, "city"),
|
|
|
68 |
STATE((short)6, "state"),
|
|
|
69 |
PIN((short)7, "pin"),
|
|
|
70 |
COUNTRY((short)8, "country"),
|
| 123 |
ashish |
71 |
ENABLED((short)9, "enabled"),
|
|
|
72 |
/**
|
|
|
73 |
*
|
|
|
74 |
* @see AddressType
|
|
|
75 |
*/
|
|
|
76 |
TYPE((short)10, "type"),
|
| 414 |
ashish |
77 |
ADDED_ON((short)11, "addedOn"),
|
|
|
78 |
NAME((short)12, "name"),
|
| 18735 |
manish.sha |
79 |
PHONE((short)13, "phone"),
|
|
|
80 |
TAX_INVOICE_AVAILABLE((short)14, "taxInvoiceAvailable"),
|
|
|
81 |
CREDIT_OPTION_AVAILABLE((short)15, "creditOptionAvailable");
|
| 123 |
ashish |
82 |
|
|
|
83 |
private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
|
|
|
84 |
|
|
|
85 |
static {
|
|
|
86 |
for (_Fields field : EnumSet.allOf(_Fields.class)) {
|
|
|
87 |
byName.put(field.getFieldName(), field);
|
|
|
88 |
}
|
|
|
89 |
}
|
|
|
90 |
|
|
|
91 |
/**
|
|
|
92 |
* Find the _Fields constant that matches fieldId, or null if its not found.
|
|
|
93 |
*/
|
|
|
94 |
public static _Fields findByThriftId(int fieldId) {
|
| 3430 |
rajveer |
95 |
switch(fieldId) {
|
|
|
96 |
case 1: // ID
|
|
|
97 |
return ID;
|
|
|
98 |
case 2: // LINE1
|
|
|
99 |
return LINE1;
|
|
|
100 |
case 3: // LINE2
|
|
|
101 |
return LINE2;
|
|
|
102 |
case 4: // LANDMARK
|
|
|
103 |
return LANDMARK;
|
|
|
104 |
case 5: // CITY
|
|
|
105 |
return CITY;
|
|
|
106 |
case 6: // STATE
|
|
|
107 |
return STATE;
|
|
|
108 |
case 7: // PIN
|
|
|
109 |
return PIN;
|
|
|
110 |
case 8: // COUNTRY
|
|
|
111 |
return COUNTRY;
|
|
|
112 |
case 9: // ENABLED
|
|
|
113 |
return ENABLED;
|
|
|
114 |
case 10: // TYPE
|
|
|
115 |
return TYPE;
|
|
|
116 |
case 11: // ADDED_ON
|
|
|
117 |
return ADDED_ON;
|
|
|
118 |
case 12: // NAME
|
|
|
119 |
return NAME;
|
|
|
120 |
case 13: // PHONE
|
|
|
121 |
return PHONE;
|
| 18735 |
manish.sha |
122 |
case 14: // TAX_INVOICE_AVAILABLE
|
|
|
123 |
return TAX_INVOICE_AVAILABLE;
|
|
|
124 |
case 15: // CREDIT_OPTION_AVAILABLE
|
|
|
125 |
return CREDIT_OPTION_AVAILABLE;
|
| 3430 |
rajveer |
126 |
default:
|
|
|
127 |
return null;
|
|
|
128 |
}
|
| 123 |
ashish |
129 |
}
|
|
|
130 |
|
|
|
131 |
/**
|
|
|
132 |
* Find the _Fields constant that matches fieldId, throwing an exception
|
|
|
133 |
* if it is not found.
|
|
|
134 |
*/
|
|
|
135 |
public static _Fields findByThriftIdOrThrow(int fieldId) {
|
|
|
136 |
_Fields fields = findByThriftId(fieldId);
|
|
|
137 |
if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
|
|
|
138 |
return fields;
|
|
|
139 |
}
|
|
|
140 |
|
|
|
141 |
/**
|
|
|
142 |
* Find the _Fields constant that matches name, or null if its not found.
|
|
|
143 |
*/
|
|
|
144 |
public static _Fields findByName(String name) {
|
|
|
145 |
return byName.get(name);
|
|
|
146 |
}
|
|
|
147 |
|
|
|
148 |
private final short _thriftId;
|
|
|
149 |
private final String _fieldName;
|
|
|
150 |
|
|
|
151 |
_Fields(short thriftId, String fieldName) {
|
|
|
152 |
_thriftId = thriftId;
|
|
|
153 |
_fieldName = fieldName;
|
|
|
154 |
}
|
|
|
155 |
|
|
|
156 |
public short getThriftFieldId() {
|
|
|
157 |
return _thriftId;
|
|
|
158 |
}
|
|
|
159 |
|
|
|
160 |
public String getFieldName() {
|
|
|
161 |
return _fieldName;
|
|
|
162 |
}
|
|
|
163 |
}
|
|
|
164 |
|
|
|
165 |
// isset id assignments
|
|
|
166 |
private static final int __ID_ISSET_ID = 0;
|
|
|
167 |
private static final int __ENABLED_ISSET_ID = 1;
|
|
|
168 |
private static final int __ADDEDON_ISSET_ID = 2;
|
| 18735 |
manish.sha |
169 |
private static final int __TAXINVOICEAVAILABLE_ISSET_ID = 3;
|
|
|
170 |
private static final int __CREDITOPTIONAVAILABLE_ISSET_ID = 4;
|
|
|
171 |
private BitSet __isset_bit_vector = new BitSet(5);
|
| 123 |
ashish |
172 |
|
| 3430 |
rajveer |
173 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 123 |
ashish |
174 |
static {
|
| 3430 |
rajveer |
175 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
|
|
176 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
177 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
178 |
tmpMap.put(_Fields.LINE1, new org.apache.thrift.meta_data.FieldMetaData("line1", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
179 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
180 |
tmpMap.put(_Fields.LINE2, new org.apache.thrift.meta_data.FieldMetaData("line2", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
181 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
182 |
tmpMap.put(_Fields.LANDMARK, new org.apache.thrift.meta_data.FieldMetaData("landmark", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
183 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
184 |
tmpMap.put(_Fields.CITY, new org.apache.thrift.meta_data.FieldMetaData("city", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
185 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
186 |
tmpMap.put(_Fields.STATE, new org.apache.thrift.meta_data.FieldMetaData("state", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
187 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
188 |
tmpMap.put(_Fields.PIN, new org.apache.thrift.meta_data.FieldMetaData("pin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
189 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
190 |
tmpMap.put(_Fields.COUNTRY, new org.apache.thrift.meta_data.FieldMetaData("country", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
191 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
192 |
tmpMap.put(_Fields.ENABLED, new org.apache.thrift.meta_data.FieldMetaData("enabled", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
193 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
194 |
tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
195 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, AddressType.class)));
|
|
|
196 |
tmpMap.put(_Fields.ADDED_ON, new org.apache.thrift.meta_data.FieldMetaData("addedOn", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
197 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
|
|
198 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
199 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
|
|
200 |
tmpMap.put(_Fields.PHONE, new org.apache.thrift.meta_data.FieldMetaData("phone", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
201 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 18735 |
manish.sha |
202 |
tmpMap.put(_Fields.TAX_INVOICE_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("taxInvoiceAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
203 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
|
|
204 |
tmpMap.put(_Fields.CREDIT_OPTION_AVAILABLE, new org.apache.thrift.meta_data.FieldMetaData("creditOptionAvailable", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
|
|
205 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
|
| 3430 |
rajveer |
206 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
|
|
207 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Address.class, metaDataMap);
|
| 123 |
ashish |
208 |
}
|
|
|
209 |
|
|
|
210 |
public Address() {
|
|
|
211 |
}
|
|
|
212 |
|
|
|
213 |
public Address(
|
| 553 |
chandransh |
214 |
long id,
|
| 123 |
ashish |
215 |
String line1,
|
|
|
216 |
String line2,
|
|
|
217 |
String landmark,
|
|
|
218 |
String city,
|
|
|
219 |
String state,
|
|
|
220 |
String pin,
|
|
|
221 |
String country,
|
|
|
222 |
boolean enabled,
|
|
|
223 |
AddressType type,
|
| 414 |
ashish |
224 |
long addedOn,
|
|
|
225 |
String name,
|
| 18735 |
manish.sha |
226 |
String phone,
|
|
|
227 |
boolean taxInvoiceAvailable,
|
|
|
228 |
boolean creditOptionAvailable)
|
| 123 |
ashish |
229 |
{
|
|
|
230 |
this();
|
| 553 |
chandransh |
231 |
this.id = id;
|
|
|
232 |
setIdIsSet(true);
|
| 123 |
ashish |
233 |
this.line1 = line1;
|
|
|
234 |
this.line2 = line2;
|
|
|
235 |
this.landmark = landmark;
|
|
|
236 |
this.city = city;
|
|
|
237 |
this.state = state;
|
|
|
238 |
this.pin = pin;
|
|
|
239 |
this.country = country;
|
|
|
240 |
this.enabled = enabled;
|
|
|
241 |
setEnabledIsSet(true);
|
|
|
242 |
this.type = type;
|
|
|
243 |
this.addedOn = addedOn;
|
|
|
244 |
setAddedOnIsSet(true);
|
| 414 |
ashish |
245 |
this.name = name;
|
|
|
246 |
this.phone = phone;
|
| 18735 |
manish.sha |
247 |
this.taxInvoiceAvailable = taxInvoiceAvailable;
|
|
|
248 |
setTaxInvoiceAvailableIsSet(true);
|
|
|
249 |
this.creditOptionAvailable = creditOptionAvailable;
|
|
|
250 |
setCreditOptionAvailableIsSet(true);
|
| 123 |
ashish |
251 |
}
|
|
|
252 |
|
|
|
253 |
/**
|
|
|
254 |
* Performs a deep copy on <i>other</i>.
|
|
|
255 |
*/
|
|
|
256 |
public Address(Address other) {
|
|
|
257 |
__isset_bit_vector.clear();
|
|
|
258 |
__isset_bit_vector.or(other.__isset_bit_vector);
|
| 553 |
chandransh |
259 |
this.id = other.id;
|
| 123 |
ashish |
260 |
if (other.isSetLine1()) {
|
|
|
261 |
this.line1 = other.line1;
|
|
|
262 |
}
|
|
|
263 |
if (other.isSetLine2()) {
|
|
|
264 |
this.line2 = other.line2;
|
|
|
265 |
}
|
|
|
266 |
if (other.isSetLandmark()) {
|
|
|
267 |
this.landmark = other.landmark;
|
|
|
268 |
}
|
|
|
269 |
if (other.isSetCity()) {
|
|
|
270 |
this.city = other.city;
|
|
|
271 |
}
|
|
|
272 |
if (other.isSetState()) {
|
|
|
273 |
this.state = other.state;
|
|
|
274 |
}
|
|
|
275 |
if (other.isSetPin()) {
|
|
|
276 |
this.pin = other.pin;
|
|
|
277 |
}
|
|
|
278 |
if (other.isSetCountry()) {
|
|
|
279 |
this.country = other.country;
|
|
|
280 |
}
|
|
|
281 |
this.enabled = other.enabled;
|
|
|
282 |
if (other.isSetType()) {
|
|
|
283 |
this.type = other.type;
|
|
|
284 |
}
|
|
|
285 |
this.addedOn = other.addedOn;
|
| 414 |
ashish |
286 |
if (other.isSetName()) {
|
|
|
287 |
this.name = other.name;
|
|
|
288 |
}
|
|
|
289 |
if (other.isSetPhone()) {
|
|
|
290 |
this.phone = other.phone;
|
|
|
291 |
}
|
| 18735 |
manish.sha |
292 |
this.taxInvoiceAvailable = other.taxInvoiceAvailable;
|
|
|
293 |
this.creditOptionAvailable = other.creditOptionAvailable;
|
| 123 |
ashish |
294 |
}
|
|
|
295 |
|
|
|
296 |
public Address deepCopy() {
|
|
|
297 |
return new Address(this);
|
|
|
298 |
}
|
|
|
299 |
|
| 3430 |
rajveer |
300 |
@Override
|
|
|
301 |
public void clear() {
|
|
|
302 |
setIdIsSet(false);
|
|
|
303 |
this.id = 0;
|
|
|
304 |
this.line1 = null;
|
|
|
305 |
this.line2 = null;
|
|
|
306 |
this.landmark = null;
|
|
|
307 |
this.city = null;
|
|
|
308 |
this.state = null;
|
|
|
309 |
this.pin = null;
|
|
|
310 |
this.country = null;
|
|
|
311 |
setEnabledIsSet(false);
|
|
|
312 |
this.enabled = false;
|
|
|
313 |
this.type = null;
|
|
|
314 |
setAddedOnIsSet(false);
|
|
|
315 |
this.addedOn = 0;
|
|
|
316 |
this.name = null;
|
|
|
317 |
this.phone = null;
|
| 18735 |
manish.sha |
318 |
setTaxInvoiceAvailableIsSet(false);
|
|
|
319 |
this.taxInvoiceAvailable = false;
|
|
|
320 |
setCreditOptionAvailableIsSet(false);
|
|
|
321 |
this.creditOptionAvailable = false;
|
| 123 |
ashish |
322 |
}
|
|
|
323 |
|
| 553 |
chandransh |
324 |
public long getId() {
|
|
|
325 |
return this.id;
|
|
|
326 |
}
|
|
|
327 |
|
| 3430 |
rajveer |
328 |
public void setId(long id) {
|
| 553 |
chandransh |
329 |
this.id = id;
|
|
|
330 |
setIdIsSet(true);
|
|
|
331 |
}
|
|
|
332 |
|
|
|
333 |
public void unsetId() {
|
|
|
334 |
__isset_bit_vector.clear(__ID_ISSET_ID);
|
|
|
335 |
}
|
|
|
336 |
|
| 3430 |
rajveer |
337 |
/** Returns true if field id is set (has been assigned a value) and false otherwise */
|
| 553 |
chandransh |
338 |
public boolean isSetId() {
|
|
|
339 |
return __isset_bit_vector.get(__ID_ISSET_ID);
|
|
|
340 |
}
|
|
|
341 |
|
|
|
342 |
public void setIdIsSet(boolean value) {
|
|
|
343 |
__isset_bit_vector.set(__ID_ISSET_ID, value);
|
|
|
344 |
}
|
|
|
345 |
|
| 123 |
ashish |
346 |
public String getLine1() {
|
|
|
347 |
return this.line1;
|
|
|
348 |
}
|
|
|
349 |
|
| 3430 |
rajveer |
350 |
public void setLine1(String line1) {
|
| 123 |
ashish |
351 |
this.line1 = line1;
|
|
|
352 |
}
|
|
|
353 |
|
|
|
354 |
public void unsetLine1() {
|
|
|
355 |
this.line1 = null;
|
|
|
356 |
}
|
|
|
357 |
|
| 3430 |
rajveer |
358 |
/** Returns true if field line1 is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
359 |
public boolean isSetLine1() {
|
|
|
360 |
return this.line1 != null;
|
|
|
361 |
}
|
|
|
362 |
|
|
|
363 |
public void setLine1IsSet(boolean value) {
|
|
|
364 |
if (!value) {
|
|
|
365 |
this.line1 = null;
|
|
|
366 |
}
|
|
|
367 |
}
|
|
|
368 |
|
|
|
369 |
public String getLine2() {
|
|
|
370 |
return this.line2;
|
|
|
371 |
}
|
|
|
372 |
|
| 3430 |
rajveer |
373 |
public void setLine2(String line2) {
|
| 123 |
ashish |
374 |
this.line2 = line2;
|
|
|
375 |
}
|
|
|
376 |
|
|
|
377 |
public void unsetLine2() {
|
|
|
378 |
this.line2 = null;
|
|
|
379 |
}
|
|
|
380 |
|
| 3430 |
rajveer |
381 |
/** Returns true if field line2 is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
382 |
public boolean isSetLine2() {
|
|
|
383 |
return this.line2 != null;
|
|
|
384 |
}
|
|
|
385 |
|
|
|
386 |
public void setLine2IsSet(boolean value) {
|
|
|
387 |
if (!value) {
|
|
|
388 |
this.line2 = null;
|
|
|
389 |
}
|
|
|
390 |
}
|
|
|
391 |
|
|
|
392 |
public String getLandmark() {
|
|
|
393 |
return this.landmark;
|
|
|
394 |
}
|
|
|
395 |
|
| 3430 |
rajveer |
396 |
public void setLandmark(String landmark) {
|
| 123 |
ashish |
397 |
this.landmark = landmark;
|
|
|
398 |
}
|
|
|
399 |
|
|
|
400 |
public void unsetLandmark() {
|
|
|
401 |
this.landmark = null;
|
|
|
402 |
}
|
|
|
403 |
|
| 3430 |
rajveer |
404 |
/** Returns true if field landmark is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
405 |
public boolean isSetLandmark() {
|
|
|
406 |
return this.landmark != null;
|
|
|
407 |
}
|
|
|
408 |
|
|
|
409 |
public void setLandmarkIsSet(boolean value) {
|
|
|
410 |
if (!value) {
|
|
|
411 |
this.landmark = null;
|
|
|
412 |
}
|
|
|
413 |
}
|
|
|
414 |
|
|
|
415 |
public String getCity() {
|
|
|
416 |
return this.city;
|
|
|
417 |
}
|
|
|
418 |
|
| 3430 |
rajveer |
419 |
public void setCity(String city) {
|
| 123 |
ashish |
420 |
this.city = city;
|
|
|
421 |
}
|
|
|
422 |
|
|
|
423 |
public void unsetCity() {
|
|
|
424 |
this.city = null;
|
|
|
425 |
}
|
|
|
426 |
|
| 3430 |
rajveer |
427 |
/** Returns true if field city is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
428 |
public boolean isSetCity() {
|
|
|
429 |
return this.city != null;
|
|
|
430 |
}
|
|
|
431 |
|
|
|
432 |
public void setCityIsSet(boolean value) {
|
|
|
433 |
if (!value) {
|
|
|
434 |
this.city = null;
|
|
|
435 |
}
|
|
|
436 |
}
|
|
|
437 |
|
|
|
438 |
public String getState() {
|
|
|
439 |
return this.state;
|
|
|
440 |
}
|
|
|
441 |
|
| 3430 |
rajveer |
442 |
public void setState(String state) {
|
| 123 |
ashish |
443 |
this.state = state;
|
|
|
444 |
}
|
|
|
445 |
|
|
|
446 |
public void unsetState() {
|
|
|
447 |
this.state = null;
|
|
|
448 |
}
|
|
|
449 |
|
| 3430 |
rajveer |
450 |
/** Returns true if field state is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
451 |
public boolean isSetState() {
|
|
|
452 |
return this.state != null;
|
|
|
453 |
}
|
|
|
454 |
|
|
|
455 |
public void setStateIsSet(boolean value) {
|
|
|
456 |
if (!value) {
|
|
|
457 |
this.state = null;
|
|
|
458 |
}
|
|
|
459 |
}
|
|
|
460 |
|
|
|
461 |
public String getPin() {
|
|
|
462 |
return this.pin;
|
|
|
463 |
}
|
|
|
464 |
|
| 3430 |
rajveer |
465 |
public void setPin(String pin) {
|
| 123 |
ashish |
466 |
this.pin = pin;
|
|
|
467 |
}
|
|
|
468 |
|
|
|
469 |
public void unsetPin() {
|
|
|
470 |
this.pin = null;
|
|
|
471 |
}
|
|
|
472 |
|
| 3430 |
rajveer |
473 |
/** Returns true if field pin is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
474 |
public boolean isSetPin() {
|
|
|
475 |
return this.pin != null;
|
|
|
476 |
}
|
|
|
477 |
|
|
|
478 |
public void setPinIsSet(boolean value) {
|
|
|
479 |
if (!value) {
|
|
|
480 |
this.pin = null;
|
|
|
481 |
}
|
|
|
482 |
}
|
|
|
483 |
|
|
|
484 |
public String getCountry() {
|
|
|
485 |
return this.country;
|
|
|
486 |
}
|
|
|
487 |
|
| 3430 |
rajveer |
488 |
public void setCountry(String country) {
|
| 123 |
ashish |
489 |
this.country = country;
|
|
|
490 |
}
|
|
|
491 |
|
|
|
492 |
public void unsetCountry() {
|
|
|
493 |
this.country = null;
|
|
|
494 |
}
|
|
|
495 |
|
| 3430 |
rajveer |
496 |
/** Returns true if field country is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
497 |
public boolean isSetCountry() {
|
|
|
498 |
return this.country != null;
|
|
|
499 |
}
|
|
|
500 |
|
|
|
501 |
public void setCountryIsSet(boolean value) {
|
|
|
502 |
if (!value) {
|
|
|
503 |
this.country = null;
|
|
|
504 |
}
|
|
|
505 |
}
|
|
|
506 |
|
|
|
507 |
public boolean isEnabled() {
|
|
|
508 |
return this.enabled;
|
|
|
509 |
}
|
|
|
510 |
|
| 3430 |
rajveer |
511 |
public void setEnabled(boolean enabled) {
|
| 123 |
ashish |
512 |
this.enabled = enabled;
|
|
|
513 |
setEnabledIsSet(true);
|
|
|
514 |
}
|
|
|
515 |
|
|
|
516 |
public void unsetEnabled() {
|
|
|
517 |
__isset_bit_vector.clear(__ENABLED_ISSET_ID);
|
|
|
518 |
}
|
|
|
519 |
|
| 3430 |
rajveer |
520 |
/** Returns true if field enabled is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
521 |
public boolean isSetEnabled() {
|
|
|
522 |
return __isset_bit_vector.get(__ENABLED_ISSET_ID);
|
|
|
523 |
}
|
|
|
524 |
|
|
|
525 |
public void setEnabledIsSet(boolean value) {
|
|
|
526 |
__isset_bit_vector.set(__ENABLED_ISSET_ID, value);
|
|
|
527 |
}
|
|
|
528 |
|
|
|
529 |
/**
|
|
|
530 |
*
|
|
|
531 |
* @see AddressType
|
|
|
532 |
*/
|
|
|
533 |
public AddressType getType() {
|
|
|
534 |
return this.type;
|
|
|
535 |
}
|
|
|
536 |
|
|
|
537 |
/**
|
|
|
538 |
*
|
|
|
539 |
* @see AddressType
|
|
|
540 |
*/
|
| 3430 |
rajveer |
541 |
public void setType(AddressType type) {
|
| 123 |
ashish |
542 |
this.type = type;
|
|
|
543 |
}
|
|
|
544 |
|
|
|
545 |
public void unsetType() {
|
|
|
546 |
this.type = null;
|
|
|
547 |
}
|
|
|
548 |
|
| 3430 |
rajveer |
549 |
/** Returns true if field type is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
550 |
public boolean isSetType() {
|
|
|
551 |
return this.type != null;
|
|
|
552 |
}
|
|
|
553 |
|
|
|
554 |
public void setTypeIsSet(boolean value) {
|
|
|
555 |
if (!value) {
|
|
|
556 |
this.type = null;
|
|
|
557 |
}
|
|
|
558 |
}
|
|
|
559 |
|
|
|
560 |
public long getAddedOn() {
|
|
|
561 |
return this.addedOn;
|
|
|
562 |
}
|
|
|
563 |
|
| 3430 |
rajveer |
564 |
public void setAddedOn(long addedOn) {
|
| 123 |
ashish |
565 |
this.addedOn = addedOn;
|
|
|
566 |
setAddedOnIsSet(true);
|
|
|
567 |
}
|
|
|
568 |
|
|
|
569 |
public void unsetAddedOn() {
|
|
|
570 |
__isset_bit_vector.clear(__ADDEDON_ISSET_ID);
|
|
|
571 |
}
|
|
|
572 |
|
| 3430 |
rajveer |
573 |
/** Returns true if field addedOn is set (has been assigned a value) and false otherwise */
|
| 123 |
ashish |
574 |
public boolean isSetAddedOn() {
|
|
|
575 |
return __isset_bit_vector.get(__ADDEDON_ISSET_ID);
|
|
|
576 |
}
|
|
|
577 |
|
|
|
578 |
public void setAddedOnIsSet(boolean value) {
|
|
|
579 |
__isset_bit_vector.set(__ADDEDON_ISSET_ID, value);
|
|
|
580 |
}
|
|
|
581 |
|
| 414 |
ashish |
582 |
public String getName() {
|
|
|
583 |
return this.name;
|
|
|
584 |
}
|
|
|
585 |
|
| 3430 |
rajveer |
586 |
public void setName(String name) {
|
| 414 |
ashish |
587 |
this.name = name;
|
|
|
588 |
}
|
|
|
589 |
|
|
|
590 |
public void unsetName() {
|
|
|
591 |
this.name = null;
|
|
|
592 |
}
|
|
|
593 |
|
| 3430 |
rajveer |
594 |
/** Returns true if field name is set (has been assigned a value) and false otherwise */
|
| 414 |
ashish |
595 |
public boolean isSetName() {
|
|
|
596 |
return this.name != null;
|
|
|
597 |
}
|
|
|
598 |
|
|
|
599 |
public void setNameIsSet(boolean value) {
|
|
|
600 |
if (!value) {
|
|
|
601 |
this.name = null;
|
|
|
602 |
}
|
|
|
603 |
}
|
|
|
604 |
|
|
|
605 |
public String getPhone() {
|
|
|
606 |
return this.phone;
|
|
|
607 |
}
|
|
|
608 |
|
| 3430 |
rajveer |
609 |
public void setPhone(String phone) {
|
| 414 |
ashish |
610 |
this.phone = phone;
|
|
|
611 |
}
|
|
|
612 |
|
|
|
613 |
public void unsetPhone() {
|
|
|
614 |
this.phone = null;
|
|
|
615 |
}
|
|
|
616 |
|
| 3430 |
rajveer |
617 |
/** Returns true if field phone is set (has been assigned a value) and false otherwise */
|
| 414 |
ashish |
618 |
public boolean isSetPhone() {
|
|
|
619 |
return this.phone != null;
|
|
|
620 |
}
|
|
|
621 |
|
|
|
622 |
public void setPhoneIsSet(boolean value) {
|
|
|
623 |
if (!value) {
|
|
|
624 |
this.phone = null;
|
|
|
625 |
}
|
|
|
626 |
}
|
|
|
627 |
|
| 18735 |
manish.sha |
628 |
public boolean isTaxInvoiceAvailable() {
|
|
|
629 |
return this.taxInvoiceAvailable;
|
|
|
630 |
}
|
|
|
631 |
|
|
|
632 |
public void setTaxInvoiceAvailable(boolean taxInvoiceAvailable) {
|
|
|
633 |
this.taxInvoiceAvailable = taxInvoiceAvailable;
|
|
|
634 |
setTaxInvoiceAvailableIsSet(true);
|
|
|
635 |
}
|
|
|
636 |
|
|
|
637 |
public void unsetTaxInvoiceAvailable() {
|
|
|
638 |
__isset_bit_vector.clear(__TAXINVOICEAVAILABLE_ISSET_ID);
|
|
|
639 |
}
|
|
|
640 |
|
|
|
641 |
/** Returns true if field taxInvoiceAvailable is set (has been assigned a value) and false otherwise */
|
|
|
642 |
public boolean isSetTaxInvoiceAvailable() {
|
|
|
643 |
return __isset_bit_vector.get(__TAXINVOICEAVAILABLE_ISSET_ID);
|
|
|
644 |
}
|
|
|
645 |
|
|
|
646 |
public void setTaxInvoiceAvailableIsSet(boolean value) {
|
|
|
647 |
__isset_bit_vector.set(__TAXINVOICEAVAILABLE_ISSET_ID, value);
|
|
|
648 |
}
|
|
|
649 |
|
|
|
650 |
public boolean isCreditOptionAvailable() {
|
|
|
651 |
return this.creditOptionAvailable;
|
|
|
652 |
}
|
|
|
653 |
|
|
|
654 |
public void setCreditOptionAvailable(boolean creditOptionAvailable) {
|
|
|
655 |
this.creditOptionAvailable = creditOptionAvailable;
|
|
|
656 |
setCreditOptionAvailableIsSet(true);
|
|
|
657 |
}
|
|
|
658 |
|
|
|
659 |
public void unsetCreditOptionAvailable() {
|
|
|
660 |
__isset_bit_vector.clear(__CREDITOPTIONAVAILABLE_ISSET_ID);
|
|
|
661 |
}
|
|
|
662 |
|
|
|
663 |
/** Returns true if field creditOptionAvailable is set (has been assigned a value) and false otherwise */
|
|
|
664 |
public boolean isSetCreditOptionAvailable() {
|
|
|
665 |
return __isset_bit_vector.get(__CREDITOPTIONAVAILABLE_ISSET_ID);
|
|
|
666 |
}
|
|
|
667 |
|
|
|
668 |
public void setCreditOptionAvailableIsSet(boolean value) {
|
|
|
669 |
__isset_bit_vector.set(__CREDITOPTIONAVAILABLE_ISSET_ID, value);
|
|
|
670 |
}
|
|
|
671 |
|
| 123 |
ashish |
672 |
public void setFieldValue(_Fields field, Object value) {
|
|
|
673 |
switch (field) {
|
| 553 |
chandransh |
674 |
case ID:
|
|
|
675 |
if (value == null) {
|
|
|
676 |
unsetId();
|
|
|
677 |
} else {
|
|
|
678 |
setId((Long)value);
|
|
|
679 |
}
|
|
|
680 |
break;
|
|
|
681 |
|
| 123 |
ashish |
682 |
case LINE1:
|
|
|
683 |
if (value == null) {
|
|
|
684 |
unsetLine1();
|
|
|
685 |
} else {
|
|
|
686 |
setLine1((String)value);
|
|
|
687 |
}
|
|
|
688 |
break;
|
|
|
689 |
|
|
|
690 |
case LINE2:
|
|
|
691 |
if (value == null) {
|
|
|
692 |
unsetLine2();
|
|
|
693 |
} else {
|
|
|
694 |
setLine2((String)value);
|
|
|
695 |
}
|
|
|
696 |
break;
|
|
|
697 |
|
|
|
698 |
case LANDMARK:
|
|
|
699 |
if (value == null) {
|
|
|
700 |
unsetLandmark();
|
|
|
701 |
} else {
|
|
|
702 |
setLandmark((String)value);
|
|
|
703 |
}
|
|
|
704 |
break;
|
|
|
705 |
|
|
|
706 |
case CITY:
|
|
|
707 |
if (value == null) {
|
|
|
708 |
unsetCity();
|
|
|
709 |
} else {
|
|
|
710 |
setCity((String)value);
|
|
|
711 |
}
|
|
|
712 |
break;
|
|
|
713 |
|
|
|
714 |
case STATE:
|
|
|
715 |
if (value == null) {
|
|
|
716 |
unsetState();
|
|
|
717 |
} else {
|
|
|
718 |
setState((String)value);
|
|
|
719 |
}
|
|
|
720 |
break;
|
|
|
721 |
|
|
|
722 |
case PIN:
|
|
|
723 |
if (value == null) {
|
|
|
724 |
unsetPin();
|
|
|
725 |
} else {
|
|
|
726 |
setPin((String)value);
|
|
|
727 |
}
|
|
|
728 |
break;
|
|
|
729 |
|
|
|
730 |
case COUNTRY:
|
|
|
731 |
if (value == null) {
|
|
|
732 |
unsetCountry();
|
|
|
733 |
} else {
|
|
|
734 |
setCountry((String)value);
|
|
|
735 |
}
|
|
|
736 |
break;
|
|
|
737 |
|
|
|
738 |
case ENABLED:
|
|
|
739 |
if (value == null) {
|
|
|
740 |
unsetEnabled();
|
|
|
741 |
} else {
|
|
|
742 |
setEnabled((Boolean)value);
|
|
|
743 |
}
|
|
|
744 |
break;
|
|
|
745 |
|
|
|
746 |
case TYPE:
|
|
|
747 |
if (value == null) {
|
|
|
748 |
unsetType();
|
|
|
749 |
} else {
|
|
|
750 |
setType((AddressType)value);
|
|
|
751 |
}
|
|
|
752 |
break;
|
|
|
753 |
|
|
|
754 |
case ADDED_ON:
|
|
|
755 |
if (value == null) {
|
|
|
756 |
unsetAddedOn();
|
|
|
757 |
} else {
|
|
|
758 |
setAddedOn((Long)value);
|
|
|
759 |
}
|
|
|
760 |
break;
|
|
|
761 |
|
| 414 |
ashish |
762 |
case NAME:
|
|
|
763 |
if (value == null) {
|
|
|
764 |
unsetName();
|
|
|
765 |
} else {
|
|
|
766 |
setName((String)value);
|
|
|
767 |
}
|
|
|
768 |
break;
|
|
|
769 |
|
|
|
770 |
case PHONE:
|
|
|
771 |
if (value == null) {
|
|
|
772 |
unsetPhone();
|
|
|
773 |
} else {
|
|
|
774 |
setPhone((String)value);
|
|
|
775 |
}
|
|
|
776 |
break;
|
|
|
777 |
|
| 18735 |
manish.sha |
778 |
case TAX_INVOICE_AVAILABLE:
|
|
|
779 |
if (value == null) {
|
|
|
780 |
unsetTaxInvoiceAvailable();
|
|
|
781 |
} else {
|
|
|
782 |
setTaxInvoiceAvailable((Boolean)value);
|
|
|
783 |
}
|
|
|
784 |
break;
|
|
|
785 |
|
|
|
786 |
case CREDIT_OPTION_AVAILABLE:
|
|
|
787 |
if (value == null) {
|
|
|
788 |
unsetCreditOptionAvailable();
|
|
|
789 |
} else {
|
|
|
790 |
setCreditOptionAvailable((Boolean)value);
|
|
|
791 |
}
|
|
|
792 |
break;
|
|
|
793 |
|
| 123 |
ashish |
794 |
}
|
|
|
795 |
}
|
|
|
796 |
|
|
|
797 |
public Object getFieldValue(_Fields field) {
|
|
|
798 |
switch (field) {
|
| 553 |
chandransh |
799 |
case ID:
|
| 3430 |
rajveer |
800 |
return Long.valueOf(getId());
|
| 553 |
chandransh |
801 |
|
| 123 |
ashish |
802 |
case LINE1:
|
|
|
803 |
return getLine1();
|
|
|
804 |
|
|
|
805 |
case LINE2:
|
|
|
806 |
return getLine2();
|
|
|
807 |
|
|
|
808 |
case LANDMARK:
|
|
|
809 |
return getLandmark();
|
|
|
810 |
|
|
|
811 |
case CITY:
|
|
|
812 |
return getCity();
|
|
|
813 |
|
|
|
814 |
case STATE:
|
|
|
815 |
return getState();
|
|
|
816 |
|
|
|
817 |
case PIN:
|
|
|
818 |
return getPin();
|
|
|
819 |
|
|
|
820 |
case COUNTRY:
|
|
|
821 |
return getCountry();
|
|
|
822 |
|
|
|
823 |
case ENABLED:
|
| 3430 |
rajveer |
824 |
return Boolean.valueOf(isEnabled());
|
| 123 |
ashish |
825 |
|
|
|
826 |
case TYPE:
|
|
|
827 |
return getType();
|
|
|
828 |
|
|
|
829 |
case ADDED_ON:
|
| 3430 |
rajveer |
830 |
return Long.valueOf(getAddedOn());
|
| 123 |
ashish |
831 |
|
| 414 |
ashish |
832 |
case NAME:
|
|
|
833 |
return getName();
|
|
|
834 |
|
|
|
835 |
case PHONE:
|
|
|
836 |
return getPhone();
|
|
|
837 |
|
| 18735 |
manish.sha |
838 |
case TAX_INVOICE_AVAILABLE:
|
|
|
839 |
return Boolean.valueOf(isTaxInvoiceAvailable());
|
|
|
840 |
|
|
|
841 |
case CREDIT_OPTION_AVAILABLE:
|
|
|
842 |
return Boolean.valueOf(isCreditOptionAvailable());
|
|
|
843 |
|
| 123 |
ashish |
844 |
}
|
|
|
845 |
throw new IllegalStateException();
|
|
|
846 |
}
|
|
|
847 |
|
| 3430 |
rajveer |
848 |
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
|
|
|
849 |
public boolean isSet(_Fields field) {
|
|
|
850 |
if (field == null) {
|
|
|
851 |
throw new IllegalArgumentException();
|
|
|
852 |
}
|
| 123 |
ashish |
853 |
|
|
|
854 |
switch (field) {
|
| 553 |
chandransh |
855 |
case ID:
|
|
|
856 |
return isSetId();
|
| 123 |
ashish |
857 |
case LINE1:
|
|
|
858 |
return isSetLine1();
|
|
|
859 |
case LINE2:
|
|
|
860 |
return isSetLine2();
|
|
|
861 |
case LANDMARK:
|
|
|
862 |
return isSetLandmark();
|
|
|
863 |
case CITY:
|
|
|
864 |
return isSetCity();
|
|
|
865 |
case STATE:
|
|
|
866 |
return isSetState();
|
|
|
867 |
case PIN:
|
|
|
868 |
return isSetPin();
|
|
|
869 |
case COUNTRY:
|
|
|
870 |
return isSetCountry();
|
|
|
871 |
case ENABLED:
|
|
|
872 |
return isSetEnabled();
|
|
|
873 |
case TYPE:
|
|
|
874 |
return isSetType();
|
|
|
875 |
case ADDED_ON:
|
|
|
876 |
return isSetAddedOn();
|
| 414 |
ashish |
877 |
case NAME:
|
|
|
878 |
return isSetName();
|
|
|
879 |
case PHONE:
|
|
|
880 |
return isSetPhone();
|
| 18735 |
manish.sha |
881 |
case TAX_INVOICE_AVAILABLE:
|
|
|
882 |
return isSetTaxInvoiceAvailable();
|
|
|
883 |
case CREDIT_OPTION_AVAILABLE:
|
|
|
884 |
return isSetCreditOptionAvailable();
|
| 123 |
ashish |
885 |
}
|
|
|
886 |
throw new IllegalStateException();
|
|
|
887 |
}
|
|
|
888 |
|
|
|
889 |
@Override
|
|
|
890 |
public boolean equals(Object that) {
|
|
|
891 |
if (that == null)
|
|
|
892 |
return false;
|
|
|
893 |
if (that instanceof Address)
|
|
|
894 |
return this.equals((Address)that);
|
|
|
895 |
return false;
|
|
|
896 |
}
|
|
|
897 |
|
|
|
898 |
public boolean equals(Address that) {
|
|
|
899 |
if (that == null)
|
|
|
900 |
return false;
|
|
|
901 |
|
| 553 |
chandransh |
902 |
boolean this_present_id = true;
|
|
|
903 |
boolean that_present_id = true;
|
|
|
904 |
if (this_present_id || that_present_id) {
|
|
|
905 |
if (!(this_present_id && that_present_id))
|
|
|
906 |
return false;
|
|
|
907 |
if (this.id != that.id)
|
|
|
908 |
return false;
|
|
|
909 |
}
|
|
|
910 |
|
| 123 |
ashish |
911 |
boolean this_present_line1 = true && this.isSetLine1();
|
|
|
912 |
boolean that_present_line1 = true && that.isSetLine1();
|
|
|
913 |
if (this_present_line1 || that_present_line1) {
|
|
|
914 |
if (!(this_present_line1 && that_present_line1))
|
|
|
915 |
return false;
|
|
|
916 |
if (!this.line1.equals(that.line1))
|
|
|
917 |
return false;
|
|
|
918 |
}
|
|
|
919 |
|
|
|
920 |
boolean this_present_line2 = true && this.isSetLine2();
|
|
|
921 |
boolean that_present_line2 = true && that.isSetLine2();
|
|
|
922 |
if (this_present_line2 || that_present_line2) {
|
|
|
923 |
if (!(this_present_line2 && that_present_line2))
|
|
|
924 |
return false;
|
|
|
925 |
if (!this.line2.equals(that.line2))
|
|
|
926 |
return false;
|
|
|
927 |
}
|
|
|
928 |
|
|
|
929 |
boolean this_present_landmark = true && this.isSetLandmark();
|
|
|
930 |
boolean that_present_landmark = true && that.isSetLandmark();
|
|
|
931 |
if (this_present_landmark || that_present_landmark) {
|
|
|
932 |
if (!(this_present_landmark && that_present_landmark))
|
|
|
933 |
return false;
|
|
|
934 |
if (!this.landmark.equals(that.landmark))
|
|
|
935 |
return false;
|
|
|
936 |
}
|
|
|
937 |
|
|
|
938 |
boolean this_present_city = true && this.isSetCity();
|
|
|
939 |
boolean that_present_city = true && that.isSetCity();
|
|
|
940 |
if (this_present_city || that_present_city) {
|
|
|
941 |
if (!(this_present_city && that_present_city))
|
|
|
942 |
return false;
|
|
|
943 |
if (!this.city.equals(that.city))
|
|
|
944 |
return false;
|
|
|
945 |
}
|
|
|
946 |
|
|
|
947 |
boolean this_present_state = true && this.isSetState();
|
|
|
948 |
boolean that_present_state = true && that.isSetState();
|
|
|
949 |
if (this_present_state || that_present_state) {
|
|
|
950 |
if (!(this_present_state && that_present_state))
|
|
|
951 |
return false;
|
|
|
952 |
if (!this.state.equals(that.state))
|
|
|
953 |
return false;
|
|
|
954 |
}
|
|
|
955 |
|
|
|
956 |
boolean this_present_pin = true && this.isSetPin();
|
|
|
957 |
boolean that_present_pin = true && that.isSetPin();
|
|
|
958 |
if (this_present_pin || that_present_pin) {
|
|
|
959 |
if (!(this_present_pin && that_present_pin))
|
|
|
960 |
return false;
|
|
|
961 |
if (!this.pin.equals(that.pin))
|
|
|
962 |
return false;
|
|
|
963 |
}
|
|
|
964 |
|
|
|
965 |
boolean this_present_country = true && this.isSetCountry();
|
|
|
966 |
boolean that_present_country = true && that.isSetCountry();
|
|
|
967 |
if (this_present_country || that_present_country) {
|
|
|
968 |
if (!(this_present_country && that_present_country))
|
|
|
969 |
return false;
|
|
|
970 |
if (!this.country.equals(that.country))
|
|
|
971 |
return false;
|
|
|
972 |
}
|
|
|
973 |
|
|
|
974 |
boolean this_present_enabled = true;
|
|
|
975 |
boolean that_present_enabled = true;
|
|
|
976 |
if (this_present_enabled || that_present_enabled) {
|
|
|
977 |
if (!(this_present_enabled && that_present_enabled))
|
|
|
978 |
return false;
|
|
|
979 |
if (this.enabled != that.enabled)
|
|
|
980 |
return false;
|
|
|
981 |
}
|
|
|
982 |
|
|
|
983 |
boolean this_present_type = true && this.isSetType();
|
|
|
984 |
boolean that_present_type = true && that.isSetType();
|
|
|
985 |
if (this_present_type || that_present_type) {
|
|
|
986 |
if (!(this_present_type && that_present_type))
|
|
|
987 |
return false;
|
|
|
988 |
if (!this.type.equals(that.type))
|
|
|
989 |
return false;
|
|
|
990 |
}
|
|
|
991 |
|
|
|
992 |
boolean this_present_addedOn = true;
|
|
|
993 |
boolean that_present_addedOn = true;
|
|
|
994 |
if (this_present_addedOn || that_present_addedOn) {
|
|
|
995 |
if (!(this_present_addedOn && that_present_addedOn))
|
|
|
996 |
return false;
|
|
|
997 |
if (this.addedOn != that.addedOn)
|
|
|
998 |
return false;
|
|
|
999 |
}
|
|
|
1000 |
|
| 414 |
ashish |
1001 |
boolean this_present_name = true && this.isSetName();
|
|
|
1002 |
boolean that_present_name = true && that.isSetName();
|
|
|
1003 |
if (this_present_name || that_present_name) {
|
|
|
1004 |
if (!(this_present_name && that_present_name))
|
|
|
1005 |
return false;
|
|
|
1006 |
if (!this.name.equals(that.name))
|
|
|
1007 |
return false;
|
|
|
1008 |
}
|
|
|
1009 |
|
|
|
1010 |
boolean this_present_phone = true && this.isSetPhone();
|
|
|
1011 |
boolean that_present_phone = true && that.isSetPhone();
|
|
|
1012 |
if (this_present_phone || that_present_phone) {
|
|
|
1013 |
if (!(this_present_phone && that_present_phone))
|
|
|
1014 |
return false;
|
|
|
1015 |
if (!this.phone.equals(that.phone))
|
|
|
1016 |
return false;
|
|
|
1017 |
}
|
|
|
1018 |
|
| 18735 |
manish.sha |
1019 |
boolean this_present_taxInvoiceAvailable = true;
|
|
|
1020 |
boolean that_present_taxInvoiceAvailable = true;
|
|
|
1021 |
if (this_present_taxInvoiceAvailable || that_present_taxInvoiceAvailable) {
|
|
|
1022 |
if (!(this_present_taxInvoiceAvailable && that_present_taxInvoiceAvailable))
|
|
|
1023 |
return false;
|
|
|
1024 |
if (this.taxInvoiceAvailable != that.taxInvoiceAvailable)
|
|
|
1025 |
return false;
|
|
|
1026 |
}
|
|
|
1027 |
|
|
|
1028 |
boolean this_present_creditOptionAvailable = true;
|
|
|
1029 |
boolean that_present_creditOptionAvailable = true;
|
|
|
1030 |
if (this_present_creditOptionAvailable || that_present_creditOptionAvailable) {
|
|
|
1031 |
if (!(this_present_creditOptionAvailable && that_present_creditOptionAvailable))
|
|
|
1032 |
return false;
|
|
|
1033 |
if (this.creditOptionAvailable != that.creditOptionAvailable)
|
|
|
1034 |
return false;
|
|
|
1035 |
}
|
|
|
1036 |
|
| 123 |
ashish |
1037 |
return true;
|
|
|
1038 |
}
|
|
|
1039 |
|
|
|
1040 |
@Override
|
|
|
1041 |
public int hashCode() {
|
|
|
1042 |
return 0;
|
|
|
1043 |
}
|
|
|
1044 |
|
|
|
1045 |
public int compareTo(Address other) {
|
|
|
1046 |
if (!getClass().equals(other.getClass())) {
|
|
|
1047 |
return getClass().getName().compareTo(other.getClass().getName());
|
|
|
1048 |
}
|
|
|
1049 |
|
|
|
1050 |
int lastComparison = 0;
|
|
|
1051 |
Address typedOther = (Address)other;
|
|
|
1052 |
|
| 3430 |
rajveer |
1053 |
lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
|
| 553 |
chandransh |
1054 |
if (lastComparison != 0) {
|
|
|
1055 |
return lastComparison;
|
|
|
1056 |
}
|
| 3430 |
rajveer |
1057 |
if (isSetId()) {
|
|
|
1058 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
|
|
|
1059 |
if (lastComparison != 0) {
|
|
|
1060 |
return lastComparison;
|
|
|
1061 |
}
|
| 553 |
chandransh |
1062 |
}
|
| 3430 |
rajveer |
1063 |
lastComparison = Boolean.valueOf(isSetLine1()).compareTo(typedOther.isSetLine1());
|
| 123 |
ashish |
1064 |
if (lastComparison != 0) {
|
|
|
1065 |
return lastComparison;
|
|
|
1066 |
}
|
| 3430 |
rajveer |
1067 |
if (isSetLine1()) {
|
|
|
1068 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line1, typedOther.line1);
|
|
|
1069 |
if (lastComparison != 0) {
|
|
|
1070 |
return lastComparison;
|
|
|
1071 |
}
|
| 123 |
ashish |
1072 |
}
|
| 3430 |
rajveer |
1073 |
lastComparison = Boolean.valueOf(isSetLine2()).compareTo(typedOther.isSetLine2());
|
| 123 |
ashish |
1074 |
if (lastComparison != 0) {
|
|
|
1075 |
return lastComparison;
|
|
|
1076 |
}
|
| 3430 |
rajveer |
1077 |
if (isSetLine2()) {
|
|
|
1078 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.line2, typedOther.line2);
|
|
|
1079 |
if (lastComparison != 0) {
|
|
|
1080 |
return lastComparison;
|
|
|
1081 |
}
|
| 123 |
ashish |
1082 |
}
|
| 3430 |
rajveer |
1083 |
lastComparison = Boolean.valueOf(isSetLandmark()).compareTo(typedOther.isSetLandmark());
|
| 123 |
ashish |
1084 |
if (lastComparison != 0) {
|
|
|
1085 |
return lastComparison;
|
|
|
1086 |
}
|
| 3430 |
rajveer |
1087 |
if (isSetLandmark()) {
|
|
|
1088 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.landmark, typedOther.landmark);
|
|
|
1089 |
if (lastComparison != 0) {
|
|
|
1090 |
return lastComparison;
|
|
|
1091 |
}
|
| 123 |
ashish |
1092 |
}
|
| 3430 |
rajveer |
1093 |
lastComparison = Boolean.valueOf(isSetCity()).compareTo(typedOther.isSetCity());
|
| 123 |
ashish |
1094 |
if (lastComparison != 0) {
|
|
|
1095 |
return lastComparison;
|
|
|
1096 |
}
|
| 3430 |
rajveer |
1097 |
if (isSetCity()) {
|
|
|
1098 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.city, typedOther.city);
|
|
|
1099 |
if (lastComparison != 0) {
|
|
|
1100 |
return lastComparison;
|
|
|
1101 |
}
|
| 123 |
ashish |
1102 |
}
|
| 3430 |
rajveer |
1103 |
lastComparison = Boolean.valueOf(isSetState()).compareTo(typedOther.isSetState());
|
| 123 |
ashish |
1104 |
if (lastComparison != 0) {
|
|
|
1105 |
return lastComparison;
|
|
|
1106 |
}
|
| 3430 |
rajveer |
1107 |
if (isSetState()) {
|
|
|
1108 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.state, typedOther.state);
|
|
|
1109 |
if (lastComparison != 0) {
|
|
|
1110 |
return lastComparison;
|
|
|
1111 |
}
|
| 123 |
ashish |
1112 |
}
|
| 3430 |
rajveer |
1113 |
lastComparison = Boolean.valueOf(isSetPin()).compareTo(typedOther.isSetPin());
|
| 123 |
ashish |
1114 |
if (lastComparison != 0) {
|
|
|
1115 |
return lastComparison;
|
|
|
1116 |
}
|
| 3430 |
rajveer |
1117 |
if (isSetPin()) {
|
|
|
1118 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.pin, typedOther.pin);
|
|
|
1119 |
if (lastComparison != 0) {
|
|
|
1120 |
return lastComparison;
|
|
|
1121 |
}
|
| 123 |
ashish |
1122 |
}
|
| 3430 |
rajveer |
1123 |
lastComparison = Boolean.valueOf(isSetCountry()).compareTo(typedOther.isSetCountry());
|
| 123 |
ashish |
1124 |
if (lastComparison != 0) {
|
|
|
1125 |
return lastComparison;
|
|
|
1126 |
}
|
| 3430 |
rajveer |
1127 |
if (isSetCountry()) {
|
|
|
1128 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.country, typedOther.country);
|
|
|
1129 |
if (lastComparison != 0) {
|
|
|
1130 |
return lastComparison;
|
|
|
1131 |
}
|
| 123 |
ashish |
1132 |
}
|
| 3430 |
rajveer |
1133 |
lastComparison = Boolean.valueOf(isSetEnabled()).compareTo(typedOther.isSetEnabled());
|
| 123 |
ashish |
1134 |
if (lastComparison != 0) {
|
|
|
1135 |
return lastComparison;
|
|
|
1136 |
}
|
| 3430 |
rajveer |
1137 |
if (isSetEnabled()) {
|
|
|
1138 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.enabled, typedOther.enabled);
|
|
|
1139 |
if (lastComparison != 0) {
|
|
|
1140 |
return lastComparison;
|
|
|
1141 |
}
|
| 123 |
ashish |
1142 |
}
|
| 3430 |
rajveer |
1143 |
lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
|
| 123 |
ashish |
1144 |
if (lastComparison != 0) {
|
|
|
1145 |
return lastComparison;
|
|
|
1146 |
}
|
| 3430 |
rajveer |
1147 |
if (isSetType()) {
|
|
|
1148 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
|
|
|
1149 |
if (lastComparison != 0) {
|
|
|
1150 |
return lastComparison;
|
|
|
1151 |
}
|
| 123 |
ashish |
1152 |
}
|
| 3430 |
rajveer |
1153 |
lastComparison = Boolean.valueOf(isSetAddedOn()).compareTo(typedOther.isSetAddedOn());
|
| 123 |
ashish |
1154 |
if (lastComparison != 0) {
|
|
|
1155 |
return lastComparison;
|
|
|
1156 |
}
|
| 3430 |
rajveer |
1157 |
if (isSetAddedOn()) {
|
|
|
1158 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.addedOn, typedOther.addedOn);
|
|
|
1159 |
if (lastComparison != 0) {
|
|
|
1160 |
return lastComparison;
|
|
|
1161 |
}
|
| 123 |
ashish |
1162 |
}
|
| 3430 |
rajveer |
1163 |
lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
|
| 414 |
ashish |
1164 |
if (lastComparison != 0) {
|
|
|
1165 |
return lastComparison;
|
|
|
1166 |
}
|
| 3430 |
rajveer |
1167 |
if (isSetName()) {
|
|
|
1168 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
|
|
|
1169 |
if (lastComparison != 0) {
|
|
|
1170 |
return lastComparison;
|
|
|
1171 |
}
|
| 414 |
ashish |
1172 |
}
|
| 3430 |
rajveer |
1173 |
lastComparison = Boolean.valueOf(isSetPhone()).compareTo(typedOther.isSetPhone());
|
| 414 |
ashish |
1174 |
if (lastComparison != 0) {
|
|
|
1175 |
return lastComparison;
|
|
|
1176 |
}
|
| 3430 |
rajveer |
1177 |
if (isSetPhone()) {
|
|
|
1178 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.phone, typedOther.phone);
|
|
|
1179 |
if (lastComparison != 0) {
|
|
|
1180 |
return lastComparison;
|
|
|
1181 |
}
|
| 414 |
ashish |
1182 |
}
|
| 18735 |
manish.sha |
1183 |
lastComparison = Boolean.valueOf(isSetTaxInvoiceAvailable()).compareTo(typedOther.isSetTaxInvoiceAvailable());
|
|
|
1184 |
if (lastComparison != 0) {
|
|
|
1185 |
return lastComparison;
|
|
|
1186 |
}
|
|
|
1187 |
if (isSetTaxInvoiceAvailable()) {
|
|
|
1188 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.taxInvoiceAvailable, typedOther.taxInvoiceAvailable);
|
|
|
1189 |
if (lastComparison != 0) {
|
|
|
1190 |
return lastComparison;
|
|
|
1191 |
}
|
|
|
1192 |
}
|
|
|
1193 |
lastComparison = Boolean.valueOf(isSetCreditOptionAvailable()).compareTo(typedOther.isSetCreditOptionAvailable());
|
|
|
1194 |
if (lastComparison != 0) {
|
|
|
1195 |
return lastComparison;
|
|
|
1196 |
}
|
|
|
1197 |
if (isSetCreditOptionAvailable()) {
|
|
|
1198 |
lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.creditOptionAvailable, typedOther.creditOptionAvailable);
|
|
|
1199 |
if (lastComparison != 0) {
|
|
|
1200 |
return lastComparison;
|
|
|
1201 |
}
|
|
|
1202 |
}
|
| 123 |
ashish |
1203 |
return 0;
|
|
|
1204 |
}
|
|
|
1205 |
|
| 3430 |
rajveer |
1206 |
public _Fields fieldForId(int fieldId) {
|
|
|
1207 |
return _Fields.findByThriftId(fieldId);
|
|
|
1208 |
}
|
|
|
1209 |
|
|
|
1210 |
public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
|
|
|
1211 |
org.apache.thrift.protocol.TField field;
|
| 123 |
ashish |
1212 |
iprot.readStructBegin();
|
|
|
1213 |
while (true)
|
|
|
1214 |
{
|
|
|
1215 |
field = iprot.readFieldBegin();
|
| 3430 |
rajveer |
1216 |
if (field.type == org.apache.thrift.protocol.TType.STOP) {
|
| 123 |
ashish |
1217 |
break;
|
|
|
1218 |
}
|
| 3430 |
rajveer |
1219 |
switch (field.id) {
|
|
|
1220 |
case 1: // ID
|
|
|
1221 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1222 |
this.id = iprot.readI64();
|
|
|
1223 |
setIdIsSet(true);
|
|
|
1224 |
} else {
|
|
|
1225 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1226 |
}
|
|
|
1227 |
break;
|
|
|
1228 |
case 2: // LINE1
|
|
|
1229 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1230 |
this.line1 = iprot.readString();
|
|
|
1231 |
} else {
|
|
|
1232 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1233 |
}
|
|
|
1234 |
break;
|
|
|
1235 |
case 3: // LINE2
|
|
|
1236 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1237 |
this.line2 = iprot.readString();
|
|
|
1238 |
} else {
|
|
|
1239 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1240 |
}
|
|
|
1241 |
break;
|
|
|
1242 |
case 4: // LANDMARK
|
|
|
1243 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1244 |
this.landmark = iprot.readString();
|
|
|
1245 |
} else {
|
|
|
1246 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1247 |
}
|
|
|
1248 |
break;
|
|
|
1249 |
case 5: // CITY
|
|
|
1250 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1251 |
this.city = iprot.readString();
|
|
|
1252 |
} else {
|
|
|
1253 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1254 |
}
|
|
|
1255 |
break;
|
|
|
1256 |
case 6: // STATE
|
|
|
1257 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1258 |
this.state = iprot.readString();
|
|
|
1259 |
} else {
|
|
|
1260 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1261 |
}
|
|
|
1262 |
break;
|
|
|
1263 |
case 7: // PIN
|
|
|
1264 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1265 |
this.pin = iprot.readString();
|
|
|
1266 |
} else {
|
|
|
1267 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1268 |
}
|
|
|
1269 |
break;
|
|
|
1270 |
case 8: // COUNTRY
|
|
|
1271 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1272 |
this.country = iprot.readString();
|
|
|
1273 |
} else {
|
|
|
1274 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1275 |
}
|
|
|
1276 |
break;
|
|
|
1277 |
case 9: // ENABLED
|
|
|
1278 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1279 |
this.enabled = iprot.readBool();
|
|
|
1280 |
setEnabledIsSet(true);
|
|
|
1281 |
} else {
|
|
|
1282 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1283 |
}
|
|
|
1284 |
break;
|
|
|
1285 |
case 10: // TYPE
|
|
|
1286 |
if (field.type == org.apache.thrift.protocol.TType.I32) {
|
|
|
1287 |
this.type = AddressType.findByValue(iprot.readI32());
|
|
|
1288 |
} else {
|
|
|
1289 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1290 |
}
|
|
|
1291 |
break;
|
|
|
1292 |
case 11: // ADDED_ON
|
|
|
1293 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
|
|
1294 |
this.addedOn = iprot.readI64();
|
|
|
1295 |
setAddedOnIsSet(true);
|
|
|
1296 |
} else {
|
|
|
1297 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1298 |
}
|
|
|
1299 |
break;
|
|
|
1300 |
case 12: // NAME
|
|
|
1301 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1302 |
this.name = iprot.readString();
|
|
|
1303 |
} else {
|
|
|
1304 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1305 |
}
|
|
|
1306 |
break;
|
|
|
1307 |
case 13: // PHONE
|
|
|
1308 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
|
|
1309 |
this.phone = iprot.readString();
|
|
|
1310 |
} else {
|
|
|
1311 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1312 |
}
|
|
|
1313 |
break;
|
| 18735 |
manish.sha |
1314 |
case 14: // TAX_INVOICE_AVAILABLE
|
|
|
1315 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1316 |
this.taxInvoiceAvailable = iprot.readBool();
|
|
|
1317 |
setTaxInvoiceAvailableIsSet(true);
|
|
|
1318 |
} else {
|
|
|
1319 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1320 |
}
|
|
|
1321 |
break;
|
|
|
1322 |
case 15: // CREDIT_OPTION_AVAILABLE
|
|
|
1323 |
if (field.type == org.apache.thrift.protocol.TType.BOOL) {
|
|
|
1324 |
this.creditOptionAvailable = iprot.readBool();
|
|
|
1325 |
setCreditOptionAvailableIsSet(true);
|
|
|
1326 |
} else {
|
|
|
1327 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
|
|
1328 |
}
|
|
|
1329 |
break;
|
| 3430 |
rajveer |
1330 |
default:
|
|
|
1331 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 123 |
ashish |
1332 |
}
|
| 3430 |
rajveer |
1333 |
iprot.readFieldEnd();
|
| 123 |
ashish |
1334 |
}
|
|
|
1335 |
iprot.readStructEnd();
|
|
|
1336 |
validate();
|
|
|
1337 |
}
|
|
|
1338 |
|
| 3430 |
rajveer |
1339 |
public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
|
| 123 |
ashish |
1340 |
validate();
|
|
|
1341 |
|
|
|
1342 |
oprot.writeStructBegin(STRUCT_DESC);
|
| 553 |
chandransh |
1343 |
oprot.writeFieldBegin(ID_FIELD_DESC);
|
|
|
1344 |
oprot.writeI64(this.id);
|
|
|
1345 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
1346 |
if (this.line1 != null) {
|
|
|
1347 |
oprot.writeFieldBegin(LINE1_FIELD_DESC);
|
|
|
1348 |
oprot.writeString(this.line1);
|
|
|
1349 |
oprot.writeFieldEnd();
|
|
|
1350 |
}
|
|
|
1351 |
if (this.line2 != null) {
|
|
|
1352 |
oprot.writeFieldBegin(LINE2_FIELD_DESC);
|
|
|
1353 |
oprot.writeString(this.line2);
|
|
|
1354 |
oprot.writeFieldEnd();
|
|
|
1355 |
}
|
|
|
1356 |
if (this.landmark != null) {
|
|
|
1357 |
oprot.writeFieldBegin(LANDMARK_FIELD_DESC);
|
|
|
1358 |
oprot.writeString(this.landmark);
|
|
|
1359 |
oprot.writeFieldEnd();
|
|
|
1360 |
}
|
|
|
1361 |
if (this.city != null) {
|
|
|
1362 |
oprot.writeFieldBegin(CITY_FIELD_DESC);
|
|
|
1363 |
oprot.writeString(this.city);
|
|
|
1364 |
oprot.writeFieldEnd();
|
|
|
1365 |
}
|
|
|
1366 |
if (this.state != null) {
|
|
|
1367 |
oprot.writeFieldBegin(STATE_FIELD_DESC);
|
|
|
1368 |
oprot.writeString(this.state);
|
|
|
1369 |
oprot.writeFieldEnd();
|
|
|
1370 |
}
|
|
|
1371 |
if (this.pin != null) {
|
|
|
1372 |
oprot.writeFieldBegin(PIN_FIELD_DESC);
|
|
|
1373 |
oprot.writeString(this.pin);
|
|
|
1374 |
oprot.writeFieldEnd();
|
|
|
1375 |
}
|
|
|
1376 |
if (this.country != null) {
|
|
|
1377 |
oprot.writeFieldBegin(COUNTRY_FIELD_DESC);
|
|
|
1378 |
oprot.writeString(this.country);
|
|
|
1379 |
oprot.writeFieldEnd();
|
|
|
1380 |
}
|
|
|
1381 |
oprot.writeFieldBegin(ENABLED_FIELD_DESC);
|
|
|
1382 |
oprot.writeBool(this.enabled);
|
|
|
1383 |
oprot.writeFieldEnd();
|
|
|
1384 |
if (this.type != null) {
|
|
|
1385 |
oprot.writeFieldBegin(TYPE_FIELD_DESC);
|
|
|
1386 |
oprot.writeI32(this.type.getValue());
|
|
|
1387 |
oprot.writeFieldEnd();
|
|
|
1388 |
}
|
|
|
1389 |
oprot.writeFieldBegin(ADDED_ON_FIELD_DESC);
|
|
|
1390 |
oprot.writeI64(this.addedOn);
|
|
|
1391 |
oprot.writeFieldEnd();
|
| 414 |
ashish |
1392 |
if (this.name != null) {
|
|
|
1393 |
oprot.writeFieldBegin(NAME_FIELD_DESC);
|
|
|
1394 |
oprot.writeString(this.name);
|
|
|
1395 |
oprot.writeFieldEnd();
|
|
|
1396 |
}
|
|
|
1397 |
if (this.phone != null) {
|
|
|
1398 |
oprot.writeFieldBegin(PHONE_FIELD_DESC);
|
|
|
1399 |
oprot.writeString(this.phone);
|
|
|
1400 |
oprot.writeFieldEnd();
|
|
|
1401 |
}
|
| 18735 |
manish.sha |
1402 |
oprot.writeFieldBegin(TAX_INVOICE_AVAILABLE_FIELD_DESC);
|
|
|
1403 |
oprot.writeBool(this.taxInvoiceAvailable);
|
|
|
1404 |
oprot.writeFieldEnd();
|
|
|
1405 |
oprot.writeFieldBegin(CREDIT_OPTION_AVAILABLE_FIELD_DESC);
|
|
|
1406 |
oprot.writeBool(this.creditOptionAvailable);
|
|
|
1407 |
oprot.writeFieldEnd();
|
| 123 |
ashish |
1408 |
oprot.writeFieldStop();
|
|
|
1409 |
oprot.writeStructEnd();
|
|
|
1410 |
}
|
|
|
1411 |
|
|
|
1412 |
@Override
|
|
|
1413 |
public String toString() {
|
|
|
1414 |
StringBuilder sb = new StringBuilder("Address(");
|
|
|
1415 |
boolean first = true;
|
|
|
1416 |
|
| 553 |
chandransh |
1417 |
sb.append("id:");
|
|
|
1418 |
sb.append(this.id);
|
|
|
1419 |
first = false;
|
|
|
1420 |
if (!first) sb.append(", ");
|
| 123 |
ashish |
1421 |
sb.append("line1:");
|
|
|
1422 |
if (this.line1 == null) {
|
|
|
1423 |
sb.append("null");
|
|
|
1424 |
} else {
|
|
|
1425 |
sb.append(this.line1);
|
|
|
1426 |
}
|
|
|
1427 |
first = false;
|
|
|
1428 |
if (!first) sb.append(", ");
|
|
|
1429 |
sb.append("line2:");
|
|
|
1430 |
if (this.line2 == null) {
|
|
|
1431 |
sb.append("null");
|
|
|
1432 |
} else {
|
|
|
1433 |
sb.append(this.line2);
|
|
|
1434 |
}
|
|
|
1435 |
first = false;
|
|
|
1436 |
if (!first) sb.append(", ");
|
|
|
1437 |
sb.append("landmark:");
|
|
|
1438 |
if (this.landmark == null) {
|
|
|
1439 |
sb.append("null");
|
|
|
1440 |
} else {
|
|
|
1441 |
sb.append(this.landmark);
|
|
|
1442 |
}
|
|
|
1443 |
first = false;
|
|
|
1444 |
if (!first) sb.append(", ");
|
|
|
1445 |
sb.append("city:");
|
|
|
1446 |
if (this.city == null) {
|
|
|
1447 |
sb.append("null");
|
|
|
1448 |
} else {
|
|
|
1449 |
sb.append(this.city);
|
|
|
1450 |
}
|
|
|
1451 |
first = false;
|
|
|
1452 |
if (!first) sb.append(", ");
|
|
|
1453 |
sb.append("state:");
|
|
|
1454 |
if (this.state == null) {
|
|
|
1455 |
sb.append("null");
|
|
|
1456 |
} else {
|
|
|
1457 |
sb.append(this.state);
|
|
|
1458 |
}
|
|
|
1459 |
first = false;
|
|
|
1460 |
if (!first) sb.append(", ");
|
|
|
1461 |
sb.append("pin:");
|
|
|
1462 |
if (this.pin == null) {
|
|
|
1463 |
sb.append("null");
|
|
|
1464 |
} else {
|
|
|
1465 |
sb.append(this.pin);
|
|
|
1466 |
}
|
|
|
1467 |
first = false;
|
|
|
1468 |
if (!first) sb.append(", ");
|
|
|
1469 |
sb.append("country:");
|
|
|
1470 |
if (this.country == null) {
|
|
|
1471 |
sb.append("null");
|
|
|
1472 |
} else {
|
|
|
1473 |
sb.append(this.country);
|
|
|
1474 |
}
|
|
|
1475 |
first = false;
|
|
|
1476 |
if (!first) sb.append(", ");
|
|
|
1477 |
sb.append("enabled:");
|
|
|
1478 |
sb.append(this.enabled);
|
|
|
1479 |
first = false;
|
|
|
1480 |
if (!first) sb.append(", ");
|
|
|
1481 |
sb.append("type:");
|
|
|
1482 |
if (this.type == null) {
|
|
|
1483 |
sb.append("null");
|
|
|
1484 |
} else {
|
|
|
1485 |
sb.append(this.type);
|
|
|
1486 |
}
|
|
|
1487 |
first = false;
|
|
|
1488 |
if (!first) sb.append(", ");
|
|
|
1489 |
sb.append("addedOn:");
|
|
|
1490 |
sb.append(this.addedOn);
|
|
|
1491 |
first = false;
|
| 414 |
ashish |
1492 |
if (!first) sb.append(", ");
|
|
|
1493 |
sb.append("name:");
|
|
|
1494 |
if (this.name == null) {
|
|
|
1495 |
sb.append("null");
|
|
|
1496 |
} else {
|
|
|
1497 |
sb.append(this.name);
|
|
|
1498 |
}
|
|
|
1499 |
first = false;
|
|
|
1500 |
if (!first) sb.append(", ");
|
|
|
1501 |
sb.append("phone:");
|
|
|
1502 |
if (this.phone == null) {
|
|
|
1503 |
sb.append("null");
|
|
|
1504 |
} else {
|
|
|
1505 |
sb.append(this.phone);
|
|
|
1506 |
}
|
|
|
1507 |
first = false;
|
| 18735 |
manish.sha |
1508 |
if (!first) sb.append(", ");
|
|
|
1509 |
sb.append("taxInvoiceAvailable:");
|
|
|
1510 |
sb.append(this.taxInvoiceAvailable);
|
|
|
1511 |
first = false;
|
|
|
1512 |
if (!first) sb.append(", ");
|
|
|
1513 |
sb.append("creditOptionAvailable:");
|
|
|
1514 |
sb.append(this.creditOptionAvailable);
|
|
|
1515 |
first = false;
|
| 123 |
ashish |
1516 |
sb.append(")");
|
|
|
1517 |
return sb.toString();
|
|
|
1518 |
}
|
|
|
1519 |
|
| 3430 |
rajveer |
1520 |
public void validate() throws org.apache.thrift.TException {
|
| 123 |
ashish |
1521 |
// check for required fields
|
|
|
1522 |
}
|
|
|
1523 |
|
| 3430 |
rajveer |
1524 |
private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
|
|
|
1525 |
try {
|
|
|
1526 |
write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
|
|
|
1527 |
} catch (org.apache.thrift.TException te) {
|
|
|
1528 |
throw new java.io.IOException(te);
|
|
|
1529 |
}
|
|
|
1530 |
}
|
|
|
1531 |
|
|
|
1532 |
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
|
|
|
1533 |
try {
|
|
|
1534 |
// it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
|
|
|
1535 |
__isset_bit_vector = new BitSet(1);
|
|
|
1536 |
read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
|
|
|
1537 |
} catch (org.apache.thrift.TException te) {
|
|
|
1538 |
throw new java.io.IOException(te);
|
|
|
1539 |
}
|
|
|
1540 |
}
|
|
|
1541 |
|
| 123 |
ashish |
1542 |
}
|
|
|
1543 |
|