Subversion Repositories SmartDukaan

Rev

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

Rev 21908 Rev 21963
Line 38... Line 38...
38
  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)13);
38
  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)13);
39
  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)14);
39
  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)14);
40
  private static final org.apache.thrift.protocol.TField DOCUMENT_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("documentVerified", org.apache.thrift.protocol.TType.BOOL, (short)15);
40
  private static final org.apache.thrift.protocol.TField DOCUMENT_VERIFIED_FIELD_DESC = new org.apache.thrift.protocol.TField("documentVerified", org.apache.thrift.protocol.TType.BOOL, (short)15);
41
  private static final org.apache.thrift.protocol.TField VERIFICATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("verificationType", org.apache.thrift.protocol.TType.I32, (short)16);
41
  private static final org.apache.thrift.protocol.TField VERIFICATION_TYPE_FIELD_DESC = new org.apache.thrift.protocol.TField("verificationType", org.apache.thrift.protocol.TType.I32, (short)16);
42
  private static final org.apache.thrift.protocol.TField VERIFIED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("verifiedOn", org.apache.thrift.protocol.TType.I64, (short)17);
42
  private static final org.apache.thrift.protocol.TField VERIFIED_ON_FIELD_DESC = new org.apache.thrift.protocol.TField("verifiedOn", org.apache.thrift.protocol.TType.I64, (short)17);
43
  private static final org.apache.thrift.protocol.TField GST_IN_FIELD_DESC = new org.apache.thrift.protocol.TField("gstIn", org.apache.thrift.protocol.TType.STRING, (short)18);
43
  private static final org.apache.thrift.protocol.TField GSTIN_FIELD_DESC = new org.apache.thrift.protocol.TField("gstin", org.apache.thrift.protocol.TType.STRING, (short)18);
44
 
44
 
45
  private long id; // required
45
  private long id; // required
46
  private String code; // required
46
  private String code; // required
47
  private String name; // required
47
  private String name; // required
48
  private String ownerName; // required
48
  private String ownerName; // required
Line 57... Line 57...
57
  private long addedOn; // required
57
  private long addedOn; // required
58
  private long address; // required
58
  private long address; // required
59
  private boolean documentVerified; // required
59
  private boolean documentVerified; // required
60
  private CounterVerificationType verificationType; // required
60
  private CounterVerificationType verificationType; // required
61
  private long verifiedOn; // required
61
  private long verifiedOn; // required
62
  private String gstIn; // required
62
  private String gstin; // required
63
 
63
 
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
64
  /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
65
  public enum _Fields implements org.apache.thrift.TFieldIdEnum {
66
    ID((short)1, "id"),
66
    ID((short)1, "id"),
67
    CODE((short)2, "code"),
67
    CODE((short)2, "code"),
Line 82... Line 82...
82
     * 
82
     * 
83
     * @see CounterVerificationType
83
     * @see CounterVerificationType
84
     */
84
     */
85
    VERIFICATION_TYPE((short)16, "verificationType"),
85
    VERIFICATION_TYPE((short)16, "verificationType"),
86
    VERIFIED_ON((short)17, "verifiedOn"),
86
    VERIFIED_ON((short)17, "verifiedOn"),
87
    GST_IN((short)18, "gstIn");
87
    GSTIN((short)18, "gstin");
88
 
88
 
89
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
89
    private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
90
 
90
 
91
    static {
91
    static {
92
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
92
      for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 131... Line 131...
131
          return DOCUMENT_VERIFIED;
131
          return DOCUMENT_VERIFIED;
132
        case 16: // VERIFICATION_TYPE
132
        case 16: // VERIFICATION_TYPE
133
          return VERIFICATION_TYPE;
133
          return VERIFICATION_TYPE;
134
        case 17: // VERIFIED_ON
134
        case 17: // VERIFIED_ON
135
          return VERIFIED_ON;
135
          return VERIFIED_ON;
136
        case 18: // GST_IN
136
        case 18: // GSTIN
137
          return GST_IN;
137
          return GSTIN;
138
        default:
138
        default:
139
          return null;
139
          return null;
140
      }
140
      }
141
    }
141
    }
142
 
142
 
Line 220... Line 220...
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
220
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.BOOL)));
221
    tmpMap.put(_Fields.VERIFICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("verificationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
221
    tmpMap.put(_Fields.VERIFICATION_TYPE, new org.apache.thrift.meta_data.FieldMetaData("verificationType", org.apache.thrift.TFieldRequirementType.DEFAULT, 
222
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CounterVerificationType.class)));
222
        new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, CounterVerificationType.class)));
223
    tmpMap.put(_Fields.VERIFIED_ON, new org.apache.thrift.meta_data.FieldMetaData("verifiedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
223
    tmpMap.put(_Fields.VERIFIED_ON, new org.apache.thrift.meta_data.FieldMetaData("verifiedOn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
224
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
225
    tmpMap.put(_Fields.GST_IN, new org.apache.thrift.meta_data.FieldMetaData("gstIn", org.apache.thrift.TFieldRequirementType.DEFAULT, 
225
    tmpMap.put(_Fields.GSTIN, new org.apache.thrift.meta_data.FieldMetaData("gstin", org.apache.thrift.TFieldRequirementType.DEFAULT, 
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
226
        new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
227
    metaDataMap = Collections.unmodifiableMap(tmpMap);
227
    metaDataMap = Collections.unmodifiableMap(tmpMap);
228
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
228
    org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(Counter.class, metaDataMap);
229
  }
229
  }
230
 
230
 
Line 247... Line 247...
247
    long addedOn,
247
    long addedOn,
248
    long address,
248
    long address,
249
    boolean documentVerified,
249
    boolean documentVerified,
250
    CounterVerificationType verificationType,
250
    CounterVerificationType verificationType,
251
    long verifiedOn,
251
    long verifiedOn,
252
    String gstIn)
252
    String gstin)
253
  {
253
  {
254
    this();
254
    this();
255
    this.id = id;
255
    this.id = id;
256
    setIdIsSet(true);
256
    setIdIsSet(true);
257
    this.code = code;
257
    this.code = code;
Line 275... Line 275...
275
    this.documentVerified = documentVerified;
275
    this.documentVerified = documentVerified;
276
    setDocumentVerifiedIsSet(true);
276
    setDocumentVerifiedIsSet(true);
277
    this.verificationType = verificationType;
277
    this.verificationType = verificationType;
278
    this.verifiedOn = verifiedOn;
278
    this.verifiedOn = verifiedOn;
279
    setVerifiedOnIsSet(true);
279
    setVerifiedOnIsSet(true);
280
    this.gstIn = gstIn;
280
    this.gstin = gstin;
281
  }
281
  }
282
 
282
 
283
  /**
283
  /**
284
   * Performs a deep copy on <i>other</i>.
284
   * Performs a deep copy on <i>other</i>.
285
   */
285
   */
Line 319... Line 319...
319
    this.documentVerified = other.documentVerified;
319
    this.documentVerified = other.documentVerified;
320
    if (other.isSetVerificationType()) {
320
    if (other.isSetVerificationType()) {
321
      this.verificationType = other.verificationType;
321
      this.verificationType = other.verificationType;
322
    }
322
    }
323
    this.verifiedOn = other.verifiedOn;
323
    this.verifiedOn = other.verifiedOn;
324
    if (other.isSetGstIn()) {
324
    if (other.isSetGstin()) {
325
      this.gstIn = other.gstIn;
325
      this.gstin = other.gstin;
326
    }
326
    }
327
  }
327
  }
328
 
328
 
329
  public Counter deepCopy() {
329
  public Counter deepCopy() {
330
    return new Counter(this);
330
    return new Counter(this);
Line 355... Line 355...
355
    setDocumentVerifiedIsSet(false);
355
    setDocumentVerifiedIsSet(false);
356
    this.documentVerified = false;
356
    this.documentVerified = false;
357
    this.verificationType = null;
357
    this.verificationType = null;
358
    setVerifiedOnIsSet(false);
358
    setVerifiedOnIsSet(false);
359
    this.verifiedOn = 0;
359
    this.verifiedOn = 0;
360
    this.gstIn = null;
360
    this.gstin = null;
361
  }
361
  }
362
 
362
 
363
  public long getId() {
363
  public long getId() {
364
    return this.id;
364
    return this.id;
365
  }
365
  }
Line 749... Line 749...
749
 
749
 
750
  public void setVerifiedOnIsSet(boolean value) {
750
  public void setVerifiedOnIsSet(boolean value) {
751
    __isset_bit_vector.set(__VERIFIEDON_ISSET_ID, value);
751
    __isset_bit_vector.set(__VERIFIEDON_ISSET_ID, value);
752
  }
752
  }
753
 
753
 
754
  public String getGstIn() {
754
  public String getGstin() {
755
    return this.gstIn;
755
    return this.gstin;
756
  }
756
  }
757
 
757
 
758
  public void setGstIn(String gstIn) {
758
  public void setGstin(String gstin) {
759
    this.gstIn = gstIn;
759
    this.gstin = gstin;
760
  }
760
  }
761
 
761
 
762
  public void unsetGstIn() {
762
  public void unsetGstin() {
763
    this.gstIn = null;
763
    this.gstin = null;
764
  }
764
  }
765
 
765
 
766
  /** Returns true if field gstIn is set (has been assigned a value) and false otherwise */
766
  /** Returns true if field gstin is set (has been assigned a value) and false otherwise */
767
  public boolean isSetGstIn() {
767
  public boolean isSetGstin() {
768
    return this.gstIn != null;
768
    return this.gstin != null;
769
  }
769
  }
770
 
770
 
771
  public void setGstInIsSet(boolean value) {
771
  public void setGstinIsSet(boolean value) {
772
    if (!value) {
772
    if (!value) {
773
      this.gstIn = null;
773
      this.gstin = null;
774
    }
774
    }
775
  }
775
  }
776
 
776
 
777
  public void setFieldValue(_Fields field, Object value) {
777
  public void setFieldValue(_Fields field, Object value) {
778
    switch (field) {
778
    switch (field) {
Line 910... Line 910...
910
      } else {
910
      } else {
911
        setVerifiedOn((Long)value);
911
        setVerifiedOn((Long)value);
912
      }
912
      }
913
      break;
913
      break;
914
 
914
 
915
    case GST_IN:
915
    case GSTIN:
916
      if (value == null) {
916
      if (value == null) {
917
        unsetGstIn();
917
        unsetGstin();
918
      } else {
918
      } else {
919
        setGstIn((String)value);
919
        setGstin((String)value);
920
      }
920
      }
921
      break;
921
      break;
922
 
922
 
923
    }
923
    }
924
  }
924
  }
Line 974... Line 974...
974
      return getVerificationType();
974
      return getVerificationType();
975
 
975
 
976
    case VERIFIED_ON:
976
    case VERIFIED_ON:
977
      return Long.valueOf(getVerifiedOn());
977
      return Long.valueOf(getVerifiedOn());
978
 
978
 
979
    case GST_IN:
979
    case GSTIN:
980
      return getGstIn();
980
      return getGstin();
981
 
981
 
982
    }
982
    }
983
    throw new IllegalStateException();
983
    throw new IllegalStateException();
984
  }
984
  }
985
 
985
 
Line 1022... Line 1022...
1022
      return isSetDocumentVerified();
1022
      return isSetDocumentVerified();
1023
    case VERIFICATION_TYPE:
1023
    case VERIFICATION_TYPE:
1024
      return isSetVerificationType();
1024
      return isSetVerificationType();
1025
    case VERIFIED_ON:
1025
    case VERIFIED_ON:
1026
      return isSetVerifiedOn();
1026
      return isSetVerifiedOn();
1027
    case GST_IN:
1027
    case GSTIN:
1028
      return isSetGstIn();
1028
      return isSetGstin();
1029
    }
1029
    }
1030
    throw new IllegalStateException();
1030
    throw new IllegalStateException();
1031
  }
1031
  }
1032
 
1032
 
1033
  @Override
1033
  @Override
Line 1194... Line 1194...
1194
        return false;
1194
        return false;
1195
      if (this.verifiedOn != that.verifiedOn)
1195
      if (this.verifiedOn != that.verifiedOn)
1196
        return false;
1196
        return false;
1197
    }
1197
    }
1198
 
1198
 
1199
    boolean this_present_gstIn = true && this.isSetGstIn();
1199
    boolean this_present_gstin = true && this.isSetGstin();
1200
    boolean that_present_gstIn = true && that.isSetGstIn();
1200
    boolean that_present_gstin = true && that.isSetGstin();
1201
    if (this_present_gstIn || that_present_gstIn) {
1201
    if (this_present_gstin || that_present_gstin) {
1202
      if (!(this_present_gstIn && that_present_gstIn))
1202
      if (!(this_present_gstin && that_present_gstin))
1203
        return false;
1203
        return false;
1204
      if (!this.gstIn.equals(that.gstIn))
1204
      if (!this.gstin.equals(that.gstin))
1205
        return false;
1205
        return false;
1206
    }
1206
    }
1207
 
1207
 
1208
    return true;
1208
    return true;
1209
  }
1209
  }
Line 1389... Line 1389...
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.verifiedOn, typedOther.verifiedOn);
1389
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.verifiedOn, typedOther.verifiedOn);
1390
      if (lastComparison != 0) {
1390
      if (lastComparison != 0) {
1391
        return lastComparison;
1391
        return lastComparison;
1392
      }
1392
      }
1393
    }
1393
    }
1394
    lastComparison = Boolean.valueOf(isSetGstIn()).compareTo(typedOther.isSetGstIn());
1394
    lastComparison = Boolean.valueOf(isSetGstin()).compareTo(typedOther.isSetGstin());
1395
    if (lastComparison != 0) {
1395
    if (lastComparison != 0) {
1396
      return lastComparison;
1396
      return lastComparison;
1397
    }
1397
    }
1398
    if (isSetGstIn()) {
1398
    if (isSetGstin()) {
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstIn, typedOther.gstIn);
1399
      lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.gstin, typedOther.gstin);
1400
      if (lastComparison != 0) {
1400
      if (lastComparison != 0) {
1401
        return lastComparison;
1401
        return lastComparison;
1402
      }
1402
      }
1403
    }
1403
    }
1404
    return 0;
1404
    return 0;
Line 1543... Line 1543...
1543
            setVerifiedOnIsSet(true);
1543
            setVerifiedOnIsSet(true);
1544
          } else { 
1544
          } else { 
1545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1545
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1546
          }
1546
          }
1547
          break;
1547
          break;
1548
        case 18: // GST_IN
1548
        case 18: // GSTIN
1549
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1549
          if (field.type == org.apache.thrift.protocol.TType.STRING) {
1550
            this.gstIn = iprot.readString();
1550
            this.gstin = iprot.readString();
1551
          } else { 
1551
          } else { 
1552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1552
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1553
          }
1553
          }
1554
          break;
1554
          break;
1555
        default:
1555
        default:
Line 1632... Line 1632...
1632
      oprot.writeFieldEnd();
1632
      oprot.writeFieldEnd();
1633
    }
1633
    }
1634
    oprot.writeFieldBegin(VERIFIED_ON_FIELD_DESC);
1634
    oprot.writeFieldBegin(VERIFIED_ON_FIELD_DESC);
1635
    oprot.writeI64(this.verifiedOn);
1635
    oprot.writeI64(this.verifiedOn);
1636
    oprot.writeFieldEnd();
1636
    oprot.writeFieldEnd();
1637
    if (this.gstIn != null) {
1637
    if (this.gstin != null) {
1638
      oprot.writeFieldBegin(GST_IN_FIELD_DESC);
1638
      oprot.writeFieldBegin(GSTIN_FIELD_DESC);
1639
      oprot.writeString(this.gstIn);
1639
      oprot.writeString(this.gstin);
1640
      oprot.writeFieldEnd();
1640
      oprot.writeFieldEnd();
1641
    }
1641
    }
1642
    oprot.writeFieldStop();
1642
    oprot.writeFieldStop();
1643
    oprot.writeStructEnd();
1643
    oprot.writeStructEnd();
1644
  }
1644
  }
Line 1750... Line 1750...
1750
    if (!first) sb.append(", ");
1750
    if (!first) sb.append(", ");
1751
    sb.append("verifiedOn:");
1751
    sb.append("verifiedOn:");
1752
    sb.append(this.verifiedOn);
1752
    sb.append(this.verifiedOn);
1753
    first = false;
1753
    first = false;
1754
    if (!first) sb.append(", ");
1754
    if (!first) sb.append(", ");
1755
    sb.append("gstIn:");
1755
    sb.append("gstin:");
1756
    if (this.gstIn == null) {
1756
    if (this.gstin == null) {
1757
      sb.append("null");
1757
      sb.append("null");
1758
    } else {
1758
    } else {
1759
      sb.append(this.gstIn);
1759
      sb.append(this.gstin);
1760
    }
1760
    }
1761
    first = false;
1761
    first = false;
1762
    sb.append(")");
1762
    sb.append(")");
1763
    return sb.toString();
1763
    return sb.toString();
1764
  }
1764
  }