| Line 23... |
Line 23... |
| 23 |
public class Provider implements org.apache.thrift.TBase<Provider, Provider._Fields>, java.io.Serializable, Cloneable {
|
23 |
public class Provider implements org.apache.thrift.TBase<Provider, Provider._Fields>, java.io.Serializable, Cloneable {
|
| 24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Provider");
|
24 |
private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("Provider");
|
| 25 |
|
25 |
|
| 26 |
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);
|
26 |
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);
|
| 27 |
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)2);
|
27 |
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)2);
|
| 28 |
private static final org.apache.thrift.protocol.TField DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("details", org.apache.thrift.protocol.TType.MAP, (short)3);
|
28 |
private static final org.apache.thrift.protocol.TField DETAILS_FIELD_DESC = new org.apache.thrift.protocol.TField("details", org.apache.thrift.protocol.TType.LIST, (short)3);
|
| 29 |
private static final org.apache.thrift.protocol.TField PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickup", org.apache.thrift.protocol.TType.I32, (short)4);
|
29 |
private static final org.apache.thrift.protocol.TField PICKUP_FIELD_DESC = new org.apache.thrift.protocol.TField("pickup", org.apache.thrift.protocol.TType.I32, (short)4);
|
| 30 |
|
30 |
|
| 31 |
private long id; // required
|
31 |
private long id; // required
|
| 32 |
private String name; // required
|
32 |
private String name; // required
|
| 33 |
private Map<DeliveryType,ProviderDetails> details; // required
|
33 |
private List<ProviderDetails> details; // required
|
| 34 |
private PickUpType pickup; // required
|
34 |
private PickUpType pickup; // required
|
| 35 |
|
35 |
|
| 36 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
36 |
/** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
|
| 37 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
37 |
public enum _Fields implements org.apache.thrift.TFieldIdEnum {
|
| 38 |
ID((short)1, "id"),
|
38 |
ID((short)1, "id"),
|
| Line 114... |
Line 114... |
| 114 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
114 |
tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 115 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
115 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
|
| 116 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
116 |
tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 117 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
117 |
new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
|
| 118 |
tmpMap.put(_Fields.DETAILS, new org.apache.thrift.meta_data.FieldMetaData("details", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
118 |
tmpMap.put(_Fields.DETAILS, new org.apache.thrift.meta_data.FieldMetaData("details", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 119 |
new org.apache.thrift.meta_data.MapMetaData(org.apache.thrift.protocol.TType.MAP,
|
119 |
new org.apache.thrift.meta_data.ListMetaData(org.apache.thrift.protocol.TType.LIST,
|
| 120 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class),
|
- |
|
| 121 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProviderDetails.class))));
|
120 |
new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, ProviderDetails.class))));
|
| 122 |
tmpMap.put(_Fields.PICKUP, new org.apache.thrift.meta_data.FieldMetaData("pickup", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
121 |
tmpMap.put(_Fields.PICKUP, new org.apache.thrift.meta_data.FieldMetaData("pickup", org.apache.thrift.TFieldRequirementType.DEFAULT,
|
| 123 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
122 |
new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, PickUpType.class)));
|
| 124 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
123 |
metaDataMap = Collections.unmodifiableMap(tmpMap);
|
| 125 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Provider.class, metaDataMap);
|
124 |
org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Provider.class, metaDataMap);
|
| Line 129... |
Line 128... |
| 129 |
}
|
128 |
}
|
| 130 |
|
129 |
|
| 131 |
public Provider(
|
130 |
public Provider(
|
| 132 |
long id,
|
131 |
long id,
|
| 133 |
String name,
|
132 |
String name,
|
| 134 |
Map<DeliveryType,ProviderDetails> details,
|
133 |
List<ProviderDetails> details,
|
| 135 |
PickUpType pickup)
|
134 |
PickUpType pickup)
|
| 136 |
{
|
135 |
{
|
| 137 |
this();
|
136 |
this();
|
| 138 |
this.id = id;
|
137 |
this.id = id;
|
| 139 |
setIdIsSet(true);
|
138 |
setIdIsSet(true);
|
| Line 151... |
Line 150... |
| 151 |
this.id = other.id;
|
150 |
this.id = other.id;
|
| 152 |
if (other.isSetName()) {
|
151 |
if (other.isSetName()) {
|
| 153 |
this.name = other.name;
|
152 |
this.name = other.name;
|
| 154 |
}
|
153 |
}
|
| 155 |
if (other.isSetDetails()) {
|
154 |
if (other.isSetDetails()) {
|
| 156 |
Map<DeliveryType,ProviderDetails> __this__details = new HashMap<DeliveryType,ProviderDetails>();
|
155 |
List<ProviderDetails> __this__details = new ArrayList<ProviderDetails>();
|
| 157 |
for (Map.Entry<DeliveryType, ProviderDetails> other_element : other.details.entrySet()) {
|
- |
|
| 158 |
|
- |
|
| 159 |
DeliveryType other_element_key = other_element.getKey();
|
- |
|
| 160 |
ProviderDetails other_element_value = other_element.getValue();
|
156 |
for (ProviderDetails other_element : other.details) {
|
| 161 |
|
- |
|
| 162 |
DeliveryType __this__details_copy_key = other_element_key;
|
- |
|
| 163 |
|
- |
|
| 164 |
ProviderDetails __this__details_copy_value = new ProviderDetails(other_element_value);
|
157 |
__this__details.add(new ProviderDetails(other_element));
|
| 165 |
|
- |
|
| 166 |
__this__details.put(__this__details_copy_key, __this__details_copy_value);
|
- |
|
| 167 |
}
|
158 |
}
|
| 168 |
this.details = __this__details;
|
159 |
this.details = __this__details;
|
| 169 |
}
|
160 |
}
|
| 170 |
if (other.isSetPickup()) {
|
161 |
if (other.isSetPickup()) {
|
| 171 |
this.pickup = other.pickup;
|
162 |
this.pickup = other.pickup;
|
| Line 232... |
Line 223... |
| 232 |
|
223 |
|
| 233 |
public int getDetailsSize() {
|
224 |
public int getDetailsSize() {
|
| 234 |
return (this.details == null) ? 0 : this.details.size();
|
225 |
return (this.details == null) ? 0 : this.details.size();
|
| 235 |
}
|
226 |
}
|
| 236 |
|
227 |
|
| - |
|
228 |
public java.util.Iterator<ProviderDetails> getDetailsIterator() {
|
| - |
|
229 |
return (this.details == null) ? null : this.details.iterator();
|
| - |
|
230 |
}
|
| - |
|
231 |
|
| 237 |
public void putToDetails(DeliveryType key, ProviderDetails val) {
|
232 |
public void addToDetails(ProviderDetails elem) {
|
| 238 |
if (this.details == null) {
|
233 |
if (this.details == null) {
|
| 239 |
this.details = new HashMap<DeliveryType,ProviderDetails>();
|
234 |
this.details = new ArrayList<ProviderDetails>();
|
| 240 |
}
|
235 |
}
|
| 241 |
this.details.put(key, val);
|
236 |
this.details.add(elem);
|
| 242 |
}
|
237 |
}
|
| 243 |
|
238 |
|
| 244 |
public Map<DeliveryType,ProviderDetails> getDetails() {
|
239 |
public List<ProviderDetails> getDetails() {
|
| 245 |
return this.details;
|
240 |
return this.details;
|
| 246 |
}
|
241 |
}
|
| 247 |
|
242 |
|
| 248 |
public void setDetails(Map<DeliveryType,ProviderDetails> details) {
|
243 |
public void setDetails(List<ProviderDetails> details) {
|
| 249 |
this.details = details;
|
244 |
this.details = details;
|
| 250 |
}
|
245 |
}
|
| 251 |
|
246 |
|
| 252 |
public void unsetDetails() {
|
247 |
public void unsetDetails() {
|
| 253 |
this.details = null;
|
248 |
this.details = null;
|
| Line 315... |
Line 310... |
| 315 |
|
310 |
|
| 316 |
case DETAILS:
|
311 |
case DETAILS:
|
| 317 |
if (value == null) {
|
312 |
if (value == null) {
|
| 318 |
unsetDetails();
|
313 |
unsetDetails();
|
| 319 |
} else {
|
314 |
} else {
|
| 320 |
setDetails((Map<DeliveryType,ProviderDetails>)value);
|
315 |
setDetails((List<ProviderDetails>)value);
|
| 321 |
}
|
316 |
}
|
| 322 |
break;
|
317 |
break;
|
| 323 |
|
318 |
|
| 324 |
case PICKUP:
|
319 |
case PICKUP:
|
| 325 |
if (value == null) {
|
320 |
if (value == null) {
|
| Line 505... |
Line 500... |
| 505 |
} else {
|
500 |
} else {
|
| 506 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
501 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 507 |
}
|
502 |
}
|
| 508 |
break;
|
503 |
break;
|
| 509 |
case 3: // DETAILS
|
504 |
case 3: // DETAILS
|
| 510 |
if (field.type == org.apache.thrift.protocol.TType.MAP) {
|
505 |
if (field.type == org.apache.thrift.protocol.TType.LIST) {
|
| 511 |
{
|
506 |
{
|
| 512 |
org.apache.thrift.protocol.TMap _map0 = iprot.readMapBegin();
|
507 |
org.apache.thrift.protocol.TList _list0 = iprot.readListBegin();
|
| 513 |
this.details = new HashMap<DeliveryType,ProviderDetails>(2*_map0.size);
|
508 |
this.details = new ArrayList<ProviderDetails>(_list0.size);
|
| 514 |
for (int _i1 = 0; _i1 < _map0.size; ++_i1)
|
509 |
for (int _i1 = 0; _i1 < _list0.size; ++_i1)
|
| 515 |
{
|
510 |
{
|
| 516 |
DeliveryType _key2; // required
|
- |
|
| 517 |
ProviderDetails _val3; // required
|
511 |
ProviderDetails _elem2; // required
|
| 518 |
_key2 = DeliveryType.findByValue(iprot.readI32());
|
- |
|
| 519 |
_val3 = new ProviderDetails();
|
512 |
_elem2 = new ProviderDetails();
|
| 520 |
_val3.read(iprot);
|
513 |
_elem2.read(iprot);
|
| 521 |
this.details.put(_key2, _val3);
|
514 |
this.details.add(_elem2);
|
| 522 |
}
|
515 |
}
|
| 523 |
iprot.readMapEnd();
|
516 |
iprot.readListEnd();
|
| 524 |
}
|
517 |
}
|
| 525 |
} else {
|
518 |
} else {
|
| 526 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
519 |
org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
|
| 527 |
}
|
520 |
}
|
| 528 |
break;
|
521 |
break;
|
| Line 555... |
Line 548... |
| 555 |
oprot.writeFieldEnd();
|
548 |
oprot.writeFieldEnd();
|
| 556 |
}
|
549 |
}
|
| 557 |
if (this.details != null) {
|
550 |
if (this.details != null) {
|
| 558 |
oprot.writeFieldBegin(DETAILS_FIELD_DESC);
|
551 |
oprot.writeFieldBegin(DETAILS_FIELD_DESC);
|
| 559 |
{
|
552 |
{
|
| 560 |
oprot.writeMapBegin(new org.apache.thrift.protocol.TMap(org.apache.thrift.protocol.TType.I32, org.apache.thrift.protocol.TType.STRUCT, this.details.size()));
|
553 |
oprot.writeListBegin(new org.apache.thrift.protocol.TList(org.apache.thrift.protocol.TType.STRUCT, this.details.size()));
|
| 561 |
for (Map.Entry<DeliveryType, ProviderDetails> _iter4 : this.details.entrySet())
|
554 |
for (ProviderDetails _iter3 : this.details)
|
| 562 |
{
|
555 |
{
|
| 563 |
oprot.writeI32(_iter4.getKey().getValue());
|
- |
|
| 564 |
_iter4.getValue().write(oprot);
|
556 |
_iter3.write(oprot);
|
| 565 |
}
|
557 |
}
|
| 566 |
oprot.writeMapEnd();
|
558 |
oprot.writeListEnd();
|
| 567 |
}
|
559 |
}
|
| 568 |
oprot.writeFieldEnd();
|
560 |
oprot.writeFieldEnd();
|
| 569 |
}
|
561 |
}
|
| 570 |
if (this.pickup != null) {
|
562 |
if (this.pickup != null) {
|
| 571 |
oprot.writeFieldBegin(PICKUP_FIELD_DESC);
|
563 |
oprot.writeFieldBegin(PICKUP_FIELD_DESC);
|