| Line 28... |
Line 28... |
| 28 |
private static final org.apache.thrift.protocol.TField REGISTERED_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("registeredAddress", org.apache.thrift.protocol.TType.STRING, (short)3);
|
28 |
private static final org.apache.thrift.protocol.TField REGISTERED_ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("registeredAddress", org.apache.thrift.protocol.TType.STRING, (short)3);
|
| 29 |
private static final org.apache.thrift.protocol.TField REG_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("regId", org.apache.thrift.protocol.TType.STRING, (short)4);
|
29 |
private static final org.apache.thrift.protocol.TField REG_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("regId", org.apache.thrift.protocol.TType.STRING, (short)4);
|
| 30 |
private static final org.apache.thrift.protocol.TField CIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("cinNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
|
30 |
private static final org.apache.thrift.protocol.TField CIN_NUMBER_FIELD_DESC = new org.apache.thrift.protocol.TField("cinNumber", org.apache.thrift.protocol.TType.STRING, (short)5);
|
| 31 |
private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)6);
|
31 |
private static final org.apache.thrift.protocol.TField TIN_FIELD_DESC = new org.apache.thrift.protocol.TField("tin", org.apache.thrift.protocol.TType.STRING, (short)6);
|
| 32 |
private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)7);
|
32 |
private static final org.apache.thrift.protocol.TField ADDRESS_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("addressId", org.apache.thrift.protocol.TType.I64, (short)7);
|
| 33 |
private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.I64, (short)8);
|
33 |
private static final org.apache.thrift.protocol.TField ADDRESS_FIELD_DESC = new org.apache.thrift.protocol.TField("address", org.apache.thrift.protocol.TType.STRING, (short)8);
|
| 34 |
private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)9);
|
34 |
private static final org.apache.thrift.protocol.TField STATE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("stateId", org.apache.thrift.protocol.TType.I64, (short)9);
|
| 35 |
|
35 |
|
| 36 |
private long buyerId; // required
|
36 |
private long buyerId; // required
|
| 37 |
private String organisationName; // required
|
37 |
private String organisationName; // required
|
| 38 |
private String registeredAddress; // required
|
38 |
private String registeredAddress; // required
|
| 39 |
private String regId; // required
|
39 |
private String regId; // required
|
| 40 |
private String cinNumber; // required
|
40 |
private String cinNumber; // required
|
| 41 |
private String tin; // required
|
41 |
private String tin; // required
|
| 42 |
private long addressId; // required
|
42 |
private long addressId; // required
|
| 43 |
private long address; // required
|
43 |
private String address; // required
|
| 44 |
private long stateId; // required
|
44 |
private long stateId; // required
|
| 45 |
|
45 |
|
| 46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
46 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
47 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 48 |
BUYER_ID((short)1, "buyerId"),
|
48 |
BUYER_ID((short)1, "buyerId"),
|
| Line 126... |
Line 126... |
| 126 |
}
|
126 |
}
|
| 127 |
|
127 |
|
| 128 |
// isset id assignments
|
128 |
// isset id assignments
|
| 129 |
private static final int __BUYERID_ISSET_ID = 0;
|
129 |
private static final int __BUYERID_ISSET_ID = 0;
|
| 130 |
private static final int __ADDRESSID_ISSET_ID = 1;
|
130 |
private static final int __ADDRESSID_ISSET_ID = 1;
|
| 131 |
private static final int __ADDRESS_ISSET_ID = 2;
|
- |
|
| 132 |
private static final int __STATEID_ISSET_ID = 3;
|
131 |
private static final int __STATEID_ISSET_ID = 2;
|
| 133 |
private BitSet __isset_bit_vector = new BitSet(4);
|
132 |
private BitSet __isset_bit_vector = new BitSet(3);
|
| 134 |
|
133 |
|
| 135 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
134 |
public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
|
| 136 |
static {
|
135 |
static {
|
| 137 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
136 |
Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
|
| 138 |
tmpMap.put(_Fields.BUYER_ID, new org.apache.thrift.meta_data.FieldMetaData("buyerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
137 |
tmpMap.put(_Fields.BUYER_ID, new org.apache.thrift.meta_data.FieldMetaData("buyerId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| Line 148... |
Line 147... |
| 148 |
tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
147 |
tmpMap.put(_Fields.TIN, new org.apache.thrift.meta_data.FieldMetaData("tin", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 149 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
148 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 150 |
tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
149 |
tmpMap.put(_Fields.ADDRESS_ID, new org.apache.thrift.meta_data.FieldMetaData("addressId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 151 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
150 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 152 |
tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
151 |
tmpMap.put(_Fields.ADDRESS, new org.apache.thrift.meta_data.FieldMetaData("address", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 153 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
152 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 154 |
tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
153 |
tmpMap.put(_Fields.STATE_ID, new org.apache.thrift.meta_data.FieldMetaData("stateId", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 155 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
154 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 156 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
155 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 157 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BuyerInfo.class, metaDataMap);
|
156 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(BuyerInfo.class, metaDataMap);
|
| 158 |
}
|
157 |
}
|
| Line 166... |
Line 165... |
| 166 |
String registeredAddress,
|
165 |
String registeredAddress,
|
| 167 |
String regId,
|
166 |
String regId,
|
| 168 |
String cinNumber,
|
167 |
String cinNumber,
|
| 169 |
String tin,
|
168 |
String tin,
|
| 170 |
long addressId,
|
169 |
long addressId,
|
| 171 |
long address,
|
170 |
String address,
|
| 172 |
long stateId)
|
171 |
long stateId)
|
| 173 |
{
|
172 |
{
|
| 174 |
this();
|
173 |
this();
|
| 175 |
this.buyerId = buyerId;
|
174 |
this.buyerId = buyerId;
|
| 176 |
setBuyerIdIsSet(true);
|
175 |
setBuyerIdIsSet(true);
|
| Line 180... |
Line 179... |
| 180 |
this.cinNumber = cinNumber;
|
179 |
this.cinNumber = cinNumber;
|
| 181 |
this.tin = tin;
|
180 |
this.tin = tin;
|
| 182 |
this.addressId = addressId;
|
181 |
this.addressId = addressId;
|
| 183 |
setAddressIdIsSet(true);
|
182 |
setAddressIdIsSet(true);
|
| 184 |
this.address = address;
|
183 |
this.address = address;
|
| 185 |
setAddressIsSet(true);
|
- |
|
| 186 |
this.stateId = stateId;
|
184 |
this.stateId = stateId;
|
| 187 |
setStateIdIsSet(true);
|
185 |
setStateIdIsSet(true);
|
| 188 |
}
|
186 |
}
|
| 189 |
|
187 |
|
| 190 |
/**
|
188 |
/**
|
| Line 208... |
Line 206... |
| 208 |
}
|
206 |
}
|
| 209 |
if (other.isSetTin()) {
|
207 |
if (other.isSetTin()) {
|
| 210 |
this.tin = other.tin;
|
208 |
this.tin = other.tin;
|
| 211 |
}
|
209 |
}
|
| 212 |
this.addressId = other.addressId;
|
210 |
this.addressId = other.addressId;
|
| - |
|
211 |
if (other.isSetAddress()) {
|
| 213 |
this.address = other.address;
|
212 |
this.address = other.address;
|
| - |
|
213 |
}
|
| 214 |
this.stateId = other.stateId;
|
214 |
this.stateId = other.stateId;
|
| 215 |
}
|
215 |
}
|
| 216 |
|
216 |
|
| 217 |
public BuyerInfo deepCopy() {
|
217 |
public BuyerInfo deepCopy() {
|
| 218 |
return new BuyerInfo(this);
|
218 |
return new BuyerInfo(this);
|
| Line 227... |
Line 227... |
| 227 |
this.regId = null;
|
227 |
this.regId = null;
|
| 228 |
this.cinNumber = null;
|
228 |
this.cinNumber = null;
|
| 229 |
this.tin = null;
|
229 |
this.tin = null;
|
| 230 |
setAddressIdIsSet(false);
|
230 |
setAddressIdIsSet(false);
|
| 231 |
this.addressId = 0;
|
231 |
this.addressId = 0;
|
| 232 |
setAddressIsSet(false);
|
- |
|
| 233 |
this.address = 0;
|
232 |
this.address = null;
|
| 234 |
setStateIdIsSet(false);
|
233 |
setStateIdIsSet(false);
|
| 235 |
this.stateId = 0;
|
234 |
this.stateId = 0;
|
| 236 |
}
|
235 |
}
|
| 237 |
|
236 |
|
| 238 |
public long getBuyerId() {
|
237 |
public long getBuyerId() {
|
| Line 392... |
Line 391... |
| 392 |
|
391 |
|
| 393 |
public void setAddressIdIsSet(boolean value) {
|
392 |
public void setAddressIdIsSet(boolean value) {
|
| 394 |
__isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
|
393 |
__isset_bit_vector.set(__ADDRESSID_ISSET_ID, value);
|
| 395 |
}
|
394 |
}
|
| 396 |
|
395 |
|
| 397 |
public long getAddress() {
|
396 |
public String getAddress() {
|
| 398 |
return this.address;
|
397 |
return this.address;
|
| 399 |
}
|
398 |
}
|
| 400 |
|
399 |
|
| 401 |
public void setAddress(long address) {
|
400 |
public void setAddress(String address) {
|
| 402 |
this.address = address;
|
401 |
this.address = address;
|
| 403 |
setAddressIsSet(true);
|
- |
|
| 404 |
}
|
402 |
}
|
| 405 |
|
403 |
|
| 406 |
public void unsetAddress() {
|
404 |
public void unsetAddress() {
|
| 407 |
__isset_bit_vector.clear(__ADDRESS_ISSET_ID);
|
405 |
this.address = null;
|
| 408 |
}
|
406 |
}
|
| 409 |
|
407 |
|
| 410 |
/** Returns true if field address is set (has been assigned a value) and false otherwise */
|
408 |
/** Returns true if field address is set (has been assigned a value) and false otherwise */
|
| 411 |
public boolean isSetAddress() {
|
409 |
public boolean isSetAddress() {
|
| 412 |
return __isset_bit_vector.get(__ADDRESS_ISSET_ID);
|
410 |
return this.address != null;
|
| 413 |
}
|
411 |
}
|
| 414 |
|
412 |
|
| 415 |
public void setAddressIsSet(boolean value) {
|
413 |
public void setAddressIsSet(boolean value) {
|
| - |
|
414 |
if (!value) {
|
| 416 |
__isset_bit_vector.set(__ADDRESS_ISSET_ID, value);
|
415 |
this.address = null;
|
| - |
|
416 |
}
|
| 417 |
}
|
417 |
}
|
| 418 |
|
418 |
|
| 419 |
public long getStateId() {
|
419 |
public long getStateId() {
|
| 420 |
return this.stateId;
|
420 |
return this.stateId;
|
| 421 |
}
|
421 |
}
|
| Line 498... |
Line 498... |
| 498 |
|
498 |
|
| 499 |
case ADDRESS:
|
499 |
case ADDRESS:
|
| 500 |
if (value == null) {
|
500 |
if (value == null) {
|
| 501 |
unsetAddress();
|
501 |
unsetAddress();
|
| 502 |
} else {
|
502 |
} else {
|
| 503 |
setAddress((Long)value);
|
503 |
setAddress((String)value);
|
| 504 |
}
|
504 |
}
|
| 505 |
break;
|
505 |
break;
|
| 506 |
|
506 |
|
| 507 |
case STATE_ID:
|
507 |
case STATE_ID:
|
| 508 |
if (value == null) {
|
508 |
if (value == null) {
|
| Line 537... |
Line 537... |
| 537 |
|
537 |
|
| 538 |
case ADDRESS_ID:
|
538 |
case ADDRESS_ID:
|
| 539 |
return Long.valueOf(getAddressId());
|
539 |
return Long.valueOf(getAddressId());
|
| 540 |
|
540 |
|
| 541 |
case ADDRESS:
|
541 |
case ADDRESS:
|
| 542 |
return Long.valueOf(getAddress());
|
542 |
return getAddress();
|
| 543 |
|
543 |
|
| 544 |
case STATE_ID:
|
544 |
case STATE_ID:
|
| 545 |
return Long.valueOf(getStateId());
|
545 |
return Long.valueOf(getStateId());
|
| 546 |
|
546 |
|
| 547 |
}
|
547 |
}
|
| Line 651... |
Line 651... |
| 651 |
return false;
|
651 |
return false;
|
| 652 |
if (this.addressId != that.addressId)
|
652 |
if (this.addressId != that.addressId)
|
| 653 |
return false;
|
653 |
return false;
|
| 654 |
}
|
654 |
}
|
| 655 |
|
655 |
|
| 656 |
boolean this_present_address = true;
|
656 |
boolean this_present_address = true && this.isSetAddress();
|
| 657 |
boolean that_present_address = true;
|
657 |
boolean that_present_address = true && that.isSetAddress();
|
| 658 |
if (this_present_address || that_present_address) {
|
658 |
if (this_present_address || that_present_address) {
|
| 659 |
if (!(this_present_address && that_present_address))
|
659 |
if (!(this_present_address && that_present_address))
|
| 660 |
return false;
|
660 |
return false;
|
| 661 |
if (this.address != that.address)
|
661 |
if (!this.address.equals(that.address))
|
| 662 |
return false;
|
662 |
return false;
|
| 663 |
}
|
663 |
}
|
| 664 |
|
664 |
|
| 665 |
boolean this_present_stateId = true;
|
665 |
boolean this_present_stateId = true;
|
| 666 |
boolean that_present_stateId = true;
|
666 |
boolean that_present_stateId = true;
|
| Line 844... |
Line 844... |
| 844 |
} else {
|
844 |
} else {
|
| 845 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
845 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 846 |
}
|
846 |
}
|
| 847 |
break;
|
847 |
break;
|
| 848 |
case 8: // ADDRESS
|
848 |
case 8: // ADDRESS
|
| 849 |
if (field.type == org.apache.thrift.protocol.TType.I64) {
|
849 |
if (field.type == org.apache.thrift.protocol.TType.STRING) {
|
| 850 |
this.address = iprot.readI64();
|
850 |
this.address = iprot.readString();
|
| 851 |
setAddressIsSet(true);
|
- |
|
| 852 |
} else {
|
851 |
} else {
|
| 853 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
852 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 854 |
}
|
853 |
}
|
| 855 |
break;
|
854 |
break;
|
| 856 |
case 9: // STATE_ID
|
855 |
case 9: // STATE_ID
|
| Line 903... |
Line 902... |
| 903 |
oprot.writeFieldEnd();
|
902 |
oprot.writeFieldEnd();
|
| 904 |
}
|
903 |
}
|
| 905 |
oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
|
904 |
oprot.writeFieldBegin(ADDRESS_ID_FIELD_DESC);
|
| 906 |
oprot.writeI64(this.addressId);
|
905 |
oprot.writeI64(this.addressId);
|
| 907 |
oprot.writeFieldEnd();
|
906 |
oprot.writeFieldEnd();
|
| - |
|
907 |
if (this.address != null) {
|
| 908 |
oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
|
908 |
oprot.writeFieldBegin(ADDRESS_FIELD_DESC);
|
| 909 |
oprot.writeI64(this.address);
|
909 |
oprot.writeString(this.address);
|
| 910 |
oprot.writeFieldEnd();
|
910 |
oprot.writeFieldEnd();
|
| - |
|
911 |
}
|
| 911 |
oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
|
912 |
oprot.writeFieldBegin(STATE_ID_FIELD_DESC);
|
| 912 |
oprot.writeI64(this.stateId);
|
913 |
oprot.writeI64(this.stateId);
|
| 913 |
oprot.writeFieldEnd();
|
914 |
oprot.writeFieldEnd();
|
| 914 |
oprot.writeFieldStop();
|
915 |
oprot.writeFieldStop();
|
| 915 |
oprot.writeStructEnd();
|
916 |
oprot.writeStructEnd();
|
| Line 967... |
Line 968... |
| 967 |
sb.append("addressId:");
|
968 |
sb.append("addressId:");
|
| 968 |
sb.append(this.addressId);
|
969 |
sb.append(this.addressId);
|
| 969 |
first = false;
|
970 |
first = false;
|
| 970 |
if (!first) sb.append(", ");
|
971 |
if (!first) sb.append(", ");
|
| 971 |
sb.append("address:");
|
972 |
sb.append("address:");
|
| - |
|
973 |
if (this.address == null) {
|
| - |
|
974 |
sb.append("null");
|
| - |
|
975 |
} else {
|
| 972 |
sb.append(this.address);
|
976 |
sb.append(this.address);
|
| - |
|
977 |
}
|
| 973 |
first = false;
|
978 |
first = false;
|
| 974 |
if (!first) sb.append(", ");
|
979 |
if (!first) sb.append(", ");
|
| 975 |
sb.append("stateId:");
|
980 |
sb.append("stateId:");
|
| 976 |
sb.append(this.stateId);
|
981 |
sb.append(this.stateId);
|
| 977 |
first = false;
|
982 |
first = false;
|