Subversion Repositories SmartDukaan

Rev

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

Rev 7788 Rev 19421
Line 32... Line 32...
32
  private static final org.apache.thrift.protocol.TField COD_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("codLimit", org.apache.thrift.protocol.TType.I64, (short)7);
32
  private static final org.apache.thrift.protocol.TField COD_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("codLimit", org.apache.thrift.protocol.TType.I64, (short)7);
33
  private static final org.apache.thrift.protocol.TField PREPAID_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidLimit", org.apache.thrift.protocol.TType.I64, (short)8);
33
  private static final org.apache.thrift.protocol.TField PREPAID_LIMIT_FIELD_DESC = new org.apache.thrift.protocol.TField("prepaidLimit", org.apache.thrift.protocol.TType.I64, (short)8);
34
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)9);
34
  private static final org.apache.thrift.protocol.TField WAREHOUSE_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("warehouseId", org.apache.thrift.protocol.TType.I64, (short)9);
35
  private static final org.apache.thrift.protocol.TField DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTime", org.apache.thrift.protocol.TType.I64, (short)10);
35
  private static final org.apache.thrift.protocol.TField DELIVERY_TIME_FIELD_DESC = new org.apache.thrift.protocol.TField("deliveryTime", org.apache.thrift.protocol.TType.I64, (short)10);
36
  private static final org.apache.thrift.protocol.TField DELIVERY_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("delivery_delay", org.apache.thrift.protocol.TType.I64, (short)11);
36
  private static final org.apache.thrift.protocol.TField DELIVERY_DELAY_FIELD_DESC = new org.apache.thrift.protocol.TField("delivery_delay", org.apache.thrift.protocol.TType.I64, (short)11);
-
 
37
  private static final org.apache.thrift.protocol.TField ZONE_CODE_FIELD_DESC = new org.apache.thrift.protocol.TField("zoneCode", org.apache.thrift.protocol.TType.STRING, (short)12);
37
 
38
 
38
  private long providerId; // required
39
  private long providerId; // required
39
  private String pinCode; // required
40
  private String pinCode; // required
40
  private String destinationCode; // required
41
  private String destinationCode; // required
41
  private boolean expAvailable; // required
42
  private boolean expAvailable; // required
Line 44... Line 45...
44
  private long codLimit; // required
45
  private long codLimit; // required
45
  private long prepaidLimit; // required
46
  private long prepaidLimit; // required
46
  private long warehouseId; // required
47
  private long warehouseId; // required
47
  private long deliveryTime; // required
48
  private long deliveryTime; // required
48
  private long delivery_delay; // required
49
  private long delivery_delay; // required
-
 
50
  private String zoneCode; // required
49
 
51
 
50
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
52
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
51
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
53
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
52
    PROVIDER_ID((short)1, "providerId"),
54
    PROVIDER_ID((short)1, "providerId"),
53
    PIN_CODE((short)2, "pinCode"),
55
    PIN_CODE((short)2, "pinCode"),
Line 57... Line 59...
57
    OTG_AVAILABLE((short)6, "otgAvailable"),
59
    OTG_AVAILABLE((short)6, "otgAvailable"),
58
    COD_LIMIT((short)7, "codLimit"),
60
    COD_LIMIT((short)7, "codLimit"),
59
    PREPAID_LIMIT((short)8, "prepaidLimit"),
61
    PREPAID_LIMIT((short)8, "prepaidLimit"),
60
    WAREHOUSE_ID((short)9, "warehouseId"),
62
    WAREHOUSE_ID((short)9, "warehouseId"),
61
    DELIVERY_TIME((short)10, "deliveryTime"),
63
    DELIVERY_TIME((short)10, "deliveryTime"),
62
    DELIVERY_DELAY((short)11, "delivery_delay");
64
    DELIVERY_DELAY((short)11, "delivery_delay"),
-
 
65
    ZONE_CODE((short)12, "zoneCode");
63
 
66
 
64
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
67
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
 
68
 
66
    static {
69
    static {
67
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
70
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 94... Line 97...
94
          return WAREHOUSE_ID;
97
          return WAREHOUSE_ID;
95
        case 10: // DELIVERY_TIME
98
        case 10: // DELIVERY_TIME
96
          return DELIVERY_TIME;
99
          return DELIVERY_TIME;
97
        case 11: // DELIVERY_DELAY
100
        case 11: // DELIVERY_DELAY
98
          return DELIVERY_DELAY;
101
          return DELIVERY_DELAY;
-
 
102
        case 12: // ZONE_CODE
-
 
103
          return ZONE_CODE;
99
        default:
104
        default:
100
          return null;
105
          return null;
101
      }
106
      }
102
    }
107
    }
103
 
108
 
Line 170... Line 175...
170
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
175
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
171
    tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
176
    tmpMap.put(_Fields.DELIVERY_TIME, new org.apache.thrift.meta_data.FieldMetaData("deliveryTime", org.apache.thrift.TFieldRequirementType.DEFAULT, 
172
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
177
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
173
    tmpMap.put(_Fields.DELIVERY_DELAY, new org.apache.thrift.meta_data.FieldMetaData("delivery_delay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
178
    tmpMap.put(_Fields.DELIVERY_DELAY, new org.apache.thrift.meta_data.FieldMetaData("delivery_delay", org.apache.thrift.TFieldRequirementType.DEFAULT, 
174
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
179
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
180
    tmpMap.put(_Fields.ZONE_CODE, new org.apache.thrift.meta_data.FieldMetaData("zoneCode", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
181
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
175
    metaDataMap = Collections.unmodifiableMap(tmpMap);
182
    metaDataMap = Collections.unmodifiableMap(tmpMap);
176
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsLocationInfo.class, metaDataMap);
183
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(LogisticsLocationInfo.class, metaDataMap);
177
  }
184
  }
178
 
185
 
179
  public LogisticsLocationInfo() {
186
  public LogisticsLocationInfo() {
Line 188... Line 195...
188
    boolean otgAvailable,
195
    boolean otgAvailable,
189
    long codLimit,
196
    long codLimit,
190
    long prepaidLimit,
197
    long prepaidLimit,
191
    long warehouseId,
198
    long warehouseId,
192
    long deliveryTime,
199
    long deliveryTime,
193
    long delivery_delay)
200
    long delivery_delay,
-
 
201
    String zoneCode)
194
  {
202
  {
195
    this();
203
    this();
196
    this.providerId = providerId;
204
    this.providerId = providerId;
197
    setProviderIdIsSet(true);
205
    setProviderIdIsSet(true);
198
    this.pinCode = pinCode;
206
    this.pinCode = pinCode;
Line 211... Line 219...
211
    setWarehouseIdIsSet(true);
219
    setWarehouseIdIsSet(true);
212
    this.deliveryTime = deliveryTime;
220
    this.deliveryTime = deliveryTime;
213
    setDeliveryTimeIsSet(true);
221
    setDeliveryTimeIsSet(true);
214
    this.delivery_delay = delivery_delay;
222
    this.delivery_delay = delivery_delay;
215
    setDelivery_delayIsSet(true);
223
    setDelivery_delayIsSet(true);
-
 
224
    this.zoneCode = zoneCode;
216
  }
225
  }
217
 
226
 
218
  /**
227
  /**
219
   * Performs a deep copy on <i>other</i>.
228
   * Performs a deep copy on <i>other</i>.
220
   */
229
   */
Line 234... Line 243...
234
    this.codLimit = other.codLimit;
243
    this.codLimit = other.codLimit;
235
    this.prepaidLimit = other.prepaidLimit;
244
    this.prepaidLimit = other.prepaidLimit;
236
    this.warehouseId = other.warehouseId;
245
    this.warehouseId = other.warehouseId;
237
    this.deliveryTime = other.deliveryTime;
246
    this.deliveryTime = other.deliveryTime;
238
    this.delivery_delay = other.delivery_delay;
247
    this.delivery_delay = other.delivery_delay;
-
 
248
    if (other.isSetZoneCode()) {
-
 
249
      this.zoneCode = other.zoneCode;
-
 
250
    }
239
  }
251
  }
240
 
252
 
241
  public LogisticsLocationInfo deepCopy() {
253
  public LogisticsLocationInfo deepCopy() {
242
    return new LogisticsLocationInfo(this);
254
    return new LogisticsLocationInfo(this);
243
  }
255
  }
Line 262... Line 274...
262
    this.warehouseId = 0;
274
    this.warehouseId = 0;
263
    setDeliveryTimeIsSet(false);
275
    setDeliveryTimeIsSet(false);
264
    this.deliveryTime = 0;
276
    this.deliveryTime = 0;
265
    setDelivery_delayIsSet(false);
277
    setDelivery_delayIsSet(false);
266
    this.delivery_delay = 0;
278
    this.delivery_delay = 0;
-
 
279
    this.zoneCode = null;
267
  }
280
  }
268
 
281
 
269
  public long getProviderId() {
282
  public long getProviderId() {
270
    return this.providerId;
283
    return this.providerId;
271
  }
284
  }
Line 508... Line 521...
508
 
521
 
509
  public void setDelivery_delayIsSet(boolean value) {
522
  public void setDelivery_delayIsSet(boolean value) {
510
    __isset_bit_vector.set(__DELIVERY_DELAY_ISSET_ID, value);
523
    __isset_bit_vector.set(__DELIVERY_DELAY_ISSET_ID, value);
511
  }
524
  }
512
 
525
 
-
 
526
  public String getZoneCode() {
-
 
527
    return this.zoneCode;
-
 
528
  }
-
 
529
 
-
 
530
  public void setZoneCode(String zoneCode) {
-
 
531
    this.zoneCode = zoneCode;
-
 
532
  }
-
 
533
 
-
 
534
  public void unsetZoneCode() {
-
 
535
    this.zoneCode = null;
-
 
536
  }
-
 
537
 
-
 
538
  /** Returns true if field zoneCode is set (has been assigned a value) and false otherwise */
-
 
539
  public boolean isSetZoneCode() {
-
 
540
    return this.zoneCode != null;
-
 
541
  }
-
 
542
 
-
 
543
  public void setZoneCodeIsSet(boolean value) {
-
 
544
    if (!value) {
-
 
545
      this.zoneCode = null;
-
 
546
    }
-
 
547
  }
-
 
548
 
513
  public void setFieldValue(_Fields field, Object value) {
549
  public void setFieldValue(_Fields field, Object value) {
514
    switch (field) {
550
    switch (field) {
515
    case PROVIDER_ID:
551
    case PROVIDER_ID:
516
      if (value == null) {
552
      if (value == null) {
517
        unsetProviderId();
553
        unsetProviderId();
Line 598... Line 634...
598
      } else {
634
      } else {
599
        setDelivery_delay((Long)value);
635
        setDelivery_delay((Long)value);
600
      }
636
      }
601
      break;
637
      break;
602
 
638
 
-
 
639
    case ZONE_CODE:
-
 
640
      if (value == null) {
-
 
641
        unsetZoneCode();
-
 
642
      } else {
-
 
643
        setZoneCode((String)value);
-
 
644
      }
-
 
645
      break;
-
 
646
 
603
    }
647
    }
604
  }
648
  }
605
 
649
 
606
  public Object getFieldValue(_Fields field) {
650
  public Object getFieldValue(_Fields field) {
607
    switch (field) {
651
    switch (field) {
Line 636... Line 680...
636
      return Long.valueOf(getDeliveryTime());
680
      return Long.valueOf(getDeliveryTime());
637
 
681
 
638
    case DELIVERY_DELAY:
682
    case DELIVERY_DELAY:
639
      return Long.valueOf(getDelivery_delay());
683
      return Long.valueOf(getDelivery_delay());
640
 
684
 
-
 
685
    case ZONE_CODE:
-
 
686
      return getZoneCode();
-
 
687
 
641
    }
688
    }
642
    throw new IllegalStateException();
689
    throw new IllegalStateException();
643
  }
690
  }
644
 
691
 
645
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
692
  /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 669... Line 716...
669
      return isSetWarehouseId();
716
      return isSetWarehouseId();
670
    case DELIVERY_TIME:
717
    case DELIVERY_TIME:
671
      return isSetDeliveryTime();
718
      return isSetDeliveryTime();
672
    case DELIVERY_DELAY:
719
    case DELIVERY_DELAY:
673
      return isSetDelivery_delay();
720
      return isSetDelivery_delay();
-
 
721
    case ZONE_CODE:
-
 
722
      return isSetZoneCode();
674
    }
723
    }
675
    throw new IllegalStateException();
724
    throw new IllegalStateException();
676
  }
725
  }
677
 
726
 
678
  @Override
727
  @Override
Line 785... Line 834...
785
        return false;
834
        return false;
786
      if (this.delivery_delay != that.delivery_delay)
835
      if (this.delivery_delay != that.delivery_delay)
787
        return false;
836
        return false;
788
    }
837
    }
789
 
838
 
-
 
839
    boolean this_present_zoneCode = true && this.isSetZoneCode();
-
 
840
    boolean that_present_zoneCode = true && that.isSetZoneCode();
-
 
841
    if (this_present_zoneCode || that_present_zoneCode) {
-
 
842
      if (!(this_present_zoneCode && that_present_zoneCode))
-
 
843
        return false;
-
 
844
      if (!this.zoneCode.equals(that.zoneCode))
-
 
845
        return false;
-
 
846
    }
-
 
847
 
790
    return true;
848
    return true;
791
  }
849
  }
792
 
850
 
793
  @Override
851
  @Override
794
  public int hashCode() {
852
  public int hashCode() {
Line 911... Line 969...
911
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivery_delay, typedOther.delivery_delay);
969
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.delivery_delay, typedOther.delivery_delay);
912
      if (lastComparison != 0) {
970
      if (lastComparison != 0) {
913
        return lastComparison;
971
        return lastComparison;
914
      }
972
      }
915
    }
973
    }
-
 
974
    lastComparison = Boolean.valueOf(isSetZoneCode()).compareTo(typedOther.isSetZoneCode());
-
 
975
    if (lastComparison != 0) {
-
 
976
      return lastComparison;
-
 
977
    }
-
 
978
    if (isSetZoneCode()) {
-
 
979
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.zoneCode, typedOther.zoneCode);
-
 
980
      if (lastComparison != 0) {
-
 
981
        return lastComparison;
-
 
982
      }
-
 
983
    }
916
    return 0;
984
    return 0;
917
  }
985
  }
918
 
986
 
919
  public _Fields fieldForId(int fieldId) {
987
  public _Fields fieldForId(int fieldId) {
920
    return _Fields.findByThriftId(fieldId);
988
    return _Fields.findByThriftId(fieldId);
Line 1014... Line 1082...
1014
            setDelivery_delayIsSet(true);
1082
            setDelivery_delayIsSet(true);
1015
          } else { 
1083
          } else { 
1016
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1084
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1017
          }
1085
          }
1018
          break;
1086
          break;
-
 
1087
        case 12: // ZONE_CODE
-
 
1088
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
-
 
1089
            this.zoneCode = iprot.readString();
-
 
1090
          } else { 
-
 
1091
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
1092
          }
-
 
1093
          break;
1019
        default:
1094
        default:
1020
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1095
          org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1021
      }
1096
      }
1022
      iprot.readFieldEnd();
1097
      iprot.readFieldEnd();
1023
    }
1098
    }
Line 1064... Line 1139...
1064
    oprot.writeI64(this.deliveryTime);
1139
    oprot.writeI64(this.deliveryTime);
1065
    oprot.writeFieldEnd();
1140
    oprot.writeFieldEnd();
1066
    oprot.writeFieldBegin(DELIVERY_DELAY_FIELD_DESC);
1141
    oprot.writeFieldBegin(DELIVERY_DELAY_FIELD_DESC);
1067
    oprot.writeI64(this.delivery_delay);
1142
    oprot.writeI64(this.delivery_delay);
1068
    oprot.writeFieldEnd();
1143
    oprot.writeFieldEnd();
-
 
1144
    if (this.zoneCode != null) {
-
 
1145
      oprot.writeFieldBegin(ZONE_CODE_FIELD_DESC);
-
 
1146
      oprot.writeString(this.zoneCode);
-
 
1147
      oprot.writeFieldEnd();
-
 
1148
    }
1069
    oprot.writeFieldStop();
1149
    oprot.writeFieldStop();
1070
    oprot.writeStructEnd();
1150
    oprot.writeStructEnd();
1071
  }
1151
  }
1072
 
1152
 
1073
  @Override
1153
  @Override
Line 1124... Line 1204...
1124
    first = false;
1204
    first = false;
1125
    if (!first) sb.append(", ");
1205
    if (!first) sb.append(", ");
1126
    sb.append("delivery_delay:");
1206
    sb.append("delivery_delay:");
1127
    sb.append(this.delivery_delay);
1207
    sb.append(this.delivery_delay);
1128
    first = false;
1208
    first = false;
-
 
1209
    if (!first) sb.append(", ");
-
 
1210
    sb.append("zoneCode:");
-
 
1211
    if (this.zoneCode == null) {
-
 
1212
      sb.append("null");
-
 
1213
    } else {
-
 
1214
      sb.append(this.zoneCode);
-
 
1215
    }
-
 
1216
    first = false;
1129
    sb.append(")");
1217
    sb.append(")");
1130
    return sb.toString();
1218
    return sb.toString();
1131
  }
1219
  }
1132
 
1220
 
1133
  public void validate() throws org.apache.thrift.TException {
1221
  public void validate() throws org.apache.thrift.TException {