Subversion Repositories SmartDukaan

Rev

Rev 4934 | Rev 5527 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4934 Rev 5247
Line 58... Line 58...
58
 
58
 
59
    /**
59
    /**
60
     * Returns an unused AWB number for the given provider.
60
     * Returns an unused AWB number for the given provider.
61
     * 
61
     * 
62
     * @param providerId
62
     * @param providerId
-
 
63
     * @param type
63
     */
64
     */
64
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException;
65
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException;
65
 
66
 
66
    /**
67
    /**
67
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
68
     * Returns the list of updates for the given AWB number and provider id. The list is empty if there are no updates yet.
68
     * 
69
     * 
69
     * @param awb
70
     * @param awb
Line 120... Line 121...
120
 
121
 
121
    public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
122
    public void getLogisticsEstimation(long itemId, String destination_pin, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsEstimation_call> resultHandler) throws org.apache.thrift.TException;
122
 
123
 
123
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
124
    public void getLogisticsInfo(String destination_pincode, long item_id, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getLogisticsInfo_call> resultHandler) throws org.apache.thrift.TException;
124
 
125
 
125
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
126
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException;
126
 
127
 
127
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
128
    public void getShipmentInfo(String awb, long providerId, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getShipmentInfo_call> resultHandler) throws org.apache.thrift.TException;
128
 
129
 
129
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
130
    public void getDestinationCode(long providerId, String pinCode, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getDestinationCode_call> resultHandler) throws org.apache.thrift.TException;
130
 
131
 
Line 261... Line 262...
261
        throw result.se;
262
        throw result.se;
262
      }
263
      }
263
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
264
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getLogisticsInfo failed: unknown result");
264
    }
265
    }
265
 
266
 
266
    public String getEmptyAWB(long providerId) throws LogisticsServiceException, org.apache.thrift.TException
267
    public String getEmptyAWB(long providerId, DeliveryType type) throws LogisticsServiceException, org.apache.thrift.TException
267
    {
268
    {
268
      send_getEmptyAWB(providerId);
269
      send_getEmptyAWB(providerId, type);
269
      return recv_getEmptyAWB();
270
      return recv_getEmptyAWB();
270
    }
271
    }
271
 
272
 
272
    public void send_getEmptyAWB(long providerId) throws org.apache.thrift.TException
273
    public void send_getEmptyAWB(long providerId, DeliveryType type) throws org.apache.thrift.TException
273
    {
274
    {
274
      getEmptyAWB_args args = new getEmptyAWB_args();
275
      getEmptyAWB_args args = new getEmptyAWB_args();
275
      args.setProviderId(providerId);
276
      args.setProviderId(providerId);
-
 
277
      args.setType(type);
276
      sendBase("getEmptyAWB", args);
278
      sendBase("getEmptyAWB", args);
277
    }
279
    }
278
 
280
 
279
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
281
    public String recv_getEmptyAWB() throws LogisticsServiceException, org.apache.thrift.TException
280
    {
282
    {
Line 572... Line 574...
572
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
574
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
573
        return (new Client(prot)).recv_getLogisticsInfo();
575
        return (new Client(prot)).recv_getLogisticsInfo();
574
      }
576
      }
575
    }
577
    }
576
 
578
 
577
    public void getEmptyAWB(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
579
    public void getEmptyAWB(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler) throws org.apache.thrift.TException {
578
      checkReady();
580
      checkReady();
579
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, resultHandler, this, ___protocolFactory, ___transport);
581
      getEmptyAWB_call method_call = new getEmptyAWB_call(providerId, type, resultHandler, this, ___protocolFactory, ___transport);
580
      this.___currentMethod = method_call;
582
      this.___currentMethod = method_call;
581
      ___manager.call(method_call);
583
      ___manager.call(method_call);
582
    }
584
    }
583
 
585
 
584
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
586
    public static class getEmptyAWB_call extends org.apache.thrift.async.TAsyncMethodCall {
585
      private long providerId;
587
      private long providerId;
-
 
588
      private DeliveryType type;
586
      public getEmptyAWB_call(long providerId, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
589
      public getEmptyAWB_call(long providerId, DeliveryType type, org.apache.thrift.async.AsyncMethodCallback<getEmptyAWB_call> resultHandler, org.apache.thrift.async.TAsyncClient client, org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.transport.TNonblockingTransport transport) throws org.apache.thrift.TException {
587
        super(client, protocolFactory, transport, resultHandler, false);
590
        super(client, protocolFactory, transport, resultHandler, false);
588
        this.providerId = providerId;
591
        this.providerId = providerId;
-
 
592
        this.type = type;
589
      }
593
      }
590
 
594
 
591
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
595
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
592
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
596
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getEmptyAWB", org.apache.thrift.protocol.TMessageType.CALL, 0));
593
        getEmptyAWB_args args = new getEmptyAWB_args();
597
        getEmptyAWB_args args = new getEmptyAWB_args();
594
        args.setProviderId(providerId);
598
        args.setProviderId(providerId);
-
 
599
        args.setType(type);
595
        args.write(prot);
600
        args.write(prot);
596
        prot.writeMessageEnd();
601
        prot.writeMessageEnd();
597
      }
602
      }
598
 
603
 
599
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
604
      public String getResult() throws LogisticsServiceException, org.apache.thrift.TException {
Line 900... Line 905...
900
      }
905
      }
901
 
906
 
902
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
907
      protected getEmptyAWB_result getResult(I iface, getEmptyAWB_args args) throws org.apache.thrift.TException {
903
        getEmptyAWB_result result = new getEmptyAWB_result();
908
        getEmptyAWB_result result = new getEmptyAWB_result();
904
        try {
909
        try {
905
          result.success = iface.getEmptyAWB(args.providerId);
910
          result.success = iface.getEmptyAWB(args.providerId, args.type);
906
        } catch (LogisticsServiceException se) {
911
        } catch (LogisticsServiceException se) {
907
          result.se = se;
912
          result.se = se;
908
        }
913
        }
909
        return result;
914
        return result;
910
      }
915
      }
Line 4024... Line 4029...
4024
 
4029
 
4025
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
4030
  public static class getEmptyAWB_args implements org.apache.thrift.TBase<getEmptyAWB_args, getEmptyAWB_args._Fields>, java.io.Serializable, Cloneable   {
4026
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
4031
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getEmptyAWB_args");
4027
 
4032
 
4028
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
4033
    private static final org.apache.thrift.protocol.TField PROVIDER_ID_FIELD_DESC = new org.apache.thrift.protocol.TField("providerId", org.apache.thrift.protocol.TType.I64, (short)1);
-
 
4034
    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)-1);
4029
 
4035
 
4030
    private long providerId; // required
4036
    private long providerId; // required
-
 
4037
    private DeliveryType type; // required
4031
 
4038
 
4032
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4039
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
4033
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4040
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
4034
      PROVIDER_ID((short)1, "providerId");
4041
      PROVIDER_ID((short)1, "providerId"),
-
 
4042
      /**
-
 
4043
       * 
-
 
4044
       * @see DeliveryType
-
 
4045
       */
-
 
4046
      TYPE((short)-1, "type");
4035
 
4047
 
4036
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4048
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
4037
 
4049
 
4038
      static {
4050
      static {
4039
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
4051
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
Line 4046... Line 4058...
4046
       */
4058
       */
4047
      public static _Fields findByThriftId(int fieldId) {
4059
      public static _Fields findByThriftId(int fieldId) {
4048
        switch(fieldId) {
4060
        switch(fieldId) {
4049
          case 1: // PROVIDER_ID
4061
          case 1: // PROVIDER_ID
4050
            return PROVIDER_ID;
4062
            return PROVIDER_ID;
-
 
4063
          case -1: // TYPE
-
 
4064
            return TYPE;
4051
          default:
4065
          default:
4052
            return null;
4066
            return null;
4053
        }
4067
        }
4054
      }
4068
      }
4055
 
4069
 
Line 4094... Line 4108...
4094
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4108
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
4095
    static {
4109
    static {
4096
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4110
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
4097
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4111
      tmpMap.put(_Fields.PROVIDER_ID, new org.apache.thrift.meta_data.FieldMetaData("providerId", org.apache.thrift.TFieldRequirementType.DEFAULT, 
4098
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
4112
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
4113
      tmpMap.put(_Fields.TYPE, new org.apache.thrift.meta_data.FieldMetaData("type", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
4114
          new org.apache.thrift.meta_data.EnumMetaData(org.apache.thrift.protocol.TType.ENUM, DeliveryType.class)));
4099
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4115
      metaDataMap = Collections.unmodifiableMap(tmpMap);
4100
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
4116
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getEmptyAWB_args.class, metaDataMap);
4101
    }
4117
    }
4102
 
4118
 
4103
    public getEmptyAWB_args() {
4119
    public getEmptyAWB_args() {
4104
    }
4120
    }
4105
 
4121
 
4106
    public getEmptyAWB_args(
4122
    public getEmptyAWB_args(
4107
      long providerId)
4123
      long providerId,
-
 
4124
      DeliveryType type)
4108
    {
4125
    {
4109
      this();
4126
      this();
4110
      this.providerId = providerId;
4127
      this.providerId = providerId;
4111
      setProviderIdIsSet(true);
4128
      setProviderIdIsSet(true);
-
 
4129
      this.type = type;
4112
    }
4130
    }
4113
 
4131
 
4114
    /**
4132
    /**
4115
     * Performs a deep copy on <i>other</i>.
4133
     * Performs a deep copy on <i>other</i>.
4116
     */
4134
     */
4117
    public getEmptyAWB_args(getEmptyAWB_args other) {
4135
    public getEmptyAWB_args(getEmptyAWB_args other) {
4118
      __isset_bit_vector.clear();
4136
      __isset_bit_vector.clear();
4119
      __isset_bit_vector.or(other.__isset_bit_vector);
4137
      __isset_bit_vector.or(other.__isset_bit_vector);
4120
      this.providerId = other.providerId;
4138
      this.providerId = other.providerId;
-
 
4139
      if (other.isSetType()) {
-
 
4140
        this.type = other.type;
-
 
4141
      }
4121
    }
4142
    }
4122
 
4143
 
4123
    public getEmptyAWB_args deepCopy() {
4144
    public getEmptyAWB_args deepCopy() {
4124
      return new getEmptyAWB_args(this);
4145
      return new getEmptyAWB_args(this);
4125
    }
4146
    }
4126
 
4147
 
4127
    @Override
4148
    @Override
4128
    public void clear() {
4149
    public void clear() {
4129
      setProviderIdIsSet(false);
4150
      setProviderIdIsSet(false);
4130
      this.providerId = 0;
4151
      this.providerId = 0;
-
 
4152
      this.type = null;
4131
    }
4153
    }
4132
 
4154
 
4133
    public long getProviderId() {
4155
    public long getProviderId() {
4134
      return this.providerId;
4156
      return this.providerId;
4135
    }
4157
    }
Line 4150... Line 4172...
4150
 
4172
 
4151
    public void setProviderIdIsSet(boolean value) {
4173
    public void setProviderIdIsSet(boolean value) {
4152
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
4174
      __isset_bit_vector.set(__PROVIDERID_ISSET_ID, value);
4153
    }
4175
    }
4154
 
4176
 
-
 
4177
    /**
-
 
4178
     * 
-
 
4179
     * @see DeliveryType
-
 
4180
     */
-
 
4181
    public DeliveryType getType() {
-
 
4182
      return this.type;
-
 
4183
    }
-
 
4184
 
-
 
4185
    /**
-
 
4186
     * 
-
 
4187
     * @see DeliveryType
-
 
4188
     */
-
 
4189
    public void setType(DeliveryType type) {
-
 
4190
      this.type = type;
-
 
4191
    }
-
 
4192
 
-
 
4193
    public void unsetType() {
-
 
4194
      this.type = null;
-
 
4195
    }
-
 
4196
 
-
 
4197
    /** Returns true if field type is set (has been assigned a value) and false otherwise */
-
 
4198
    public boolean isSetType() {
-
 
4199
      return this.type != null;
-
 
4200
    }
-
 
4201
 
-
 
4202
    public void setTypeIsSet(boolean value) {
-
 
4203
      if (!value) {
-
 
4204
        this.type = null;
-
 
4205
      }
-
 
4206
    }
-
 
4207
 
4155
    public void setFieldValue(_Fields field, Object value) {
4208
    public void setFieldValue(_Fields field, Object value) {
4156
      switch (field) {
4209
      switch (field) {
4157
      case PROVIDER_ID:
4210
      case PROVIDER_ID:
4158
        if (value == null) {
4211
        if (value == null) {
4159
          unsetProviderId();
4212
          unsetProviderId();
4160
        } else {
4213
        } else {
4161
          setProviderId((Long)value);
4214
          setProviderId((Long)value);
4162
        }
4215
        }
4163
        break;
4216
        break;
4164
 
4217
 
-
 
4218
      case TYPE:
-
 
4219
        if (value == null) {
-
 
4220
          unsetType();
-
 
4221
        } else {
-
 
4222
          setType((DeliveryType)value);
-
 
4223
        }
-
 
4224
        break;
-
 
4225
 
4165
      }
4226
      }
4166
    }
4227
    }
4167
 
4228
 
4168
    public Object getFieldValue(_Fields field) {
4229
    public Object getFieldValue(_Fields field) {
4169
      switch (field) {
4230
      switch (field) {
4170
      case PROVIDER_ID:
4231
      case PROVIDER_ID:
4171
        return Long.valueOf(getProviderId());
4232
        return Long.valueOf(getProviderId());
4172
 
4233
 
-
 
4234
      case TYPE:
-
 
4235
        return getType();
-
 
4236
 
4173
      }
4237
      }
4174
      throw new IllegalStateException();
4238
      throw new IllegalStateException();
4175
    }
4239
    }
4176
 
4240
 
4177
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
4241
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
Line 4181... Line 4245...
4181
      }
4245
      }
4182
 
4246
 
4183
      switch (field) {
4247
      switch (field) {
4184
      case PROVIDER_ID:
4248
      case PROVIDER_ID:
4185
        return isSetProviderId();
4249
        return isSetProviderId();
-
 
4250
      case TYPE:
-
 
4251
        return isSetType();
4186
      }
4252
      }
4187
      throw new IllegalStateException();
4253
      throw new IllegalStateException();
4188
    }
4254
    }
4189
 
4255
 
4190
    @Override
4256
    @Override
Line 4207... Line 4273...
4207
          return false;
4273
          return false;
4208
        if (this.providerId != that.providerId)
4274
        if (this.providerId != that.providerId)
4209
          return false;
4275
          return false;
4210
      }
4276
      }
4211
 
4277
 
-
 
4278
      boolean this_present_type = true && this.isSetType();
-
 
4279
      boolean that_present_type = true && that.isSetType();
-
 
4280
      if (this_present_type || that_present_type) {
-
 
4281
        if (!(this_present_type && that_present_type))
-
 
4282
          return false;
-
 
4283
        if (!this.type.equals(that.type))
-
 
4284
          return false;
-
 
4285
      }
-
 
4286
 
4212
      return true;
4287
      return true;
4213
    }
4288
    }
4214
 
4289
 
4215
    @Override
4290
    @Override
4216
    public int hashCode() {
4291
    public int hashCode() {
Line 4233... Line 4308...
4233
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4308
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.providerId, typedOther.providerId);
4234
        if (lastComparison != 0) {
4309
        if (lastComparison != 0) {
4235
          return lastComparison;
4310
          return lastComparison;
4236
        }
4311
        }
4237
      }
4312
      }
-
 
4313
      lastComparison = Boolean.valueOf(isSetType()).compareTo(typedOther.isSetType());
-
 
4314
      if (lastComparison != 0) {
-
 
4315
        return lastComparison;
-
 
4316
      }
-
 
4317
      if (isSetType()) {
-
 
4318
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.type, typedOther.type);
-
 
4319
        if (lastComparison != 0) {
-
 
4320
          return lastComparison;
-
 
4321
        }
-
 
4322
      }
4238
      return 0;
4323
      return 0;
4239
    }
4324
    }
4240
 
4325
 
4241
    public _Fields fieldForId(int fieldId) {
4326
    public _Fields fieldForId(int fieldId) {
4242
      return _Fields.findByThriftId(fieldId);
4327
      return _Fields.findByThriftId(fieldId);
Line 4258... Line 4343...
4258
              setProviderIdIsSet(true);
4343
              setProviderIdIsSet(true);
4259
            } else { 
4344
            } else { 
4260
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4345
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4261
            }
4346
            }
4262
            break;
4347
            break;
-
 
4348
          case -1: // TYPE
-
 
4349
            if (field.type == org.apache.thrift.protocol.TType.I32) {
-
 
4350
              this.type = DeliveryType.findByValue(iprot.readI32());
-
 
4351
            } else { 
-
 
4352
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
-
 
4353
            }
-
 
4354
            break;
4263
          default:
4355
          default:
4264
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4356
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
4265
        }
4357
        }
4266
        iprot.readFieldEnd();
4358
        iprot.readFieldEnd();
4267
      }
4359
      }
Line 4271... Line 4363...
4271
 
4363
 
4272
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4364
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
4273
      validate();
4365
      validate();
4274
 
4366
 
4275
      oprot.writeStructBegin(STRUCT_DESC);
4367
      oprot.writeStructBegin(STRUCT_DESC);
-
 
4368
      if (this.type != null) {
-
 
4369
        oprot.writeFieldBegin(TYPE_FIELD_DESC);
-
 
4370
        oprot.writeI32(this.type.getValue());
-
 
4371
        oprot.writeFieldEnd();
-
 
4372
      }
4276
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
4373
      oprot.writeFieldBegin(PROVIDER_ID_FIELD_DESC);
4277
      oprot.writeI64(this.providerId);
4374
      oprot.writeI64(this.providerId);
4278
      oprot.writeFieldEnd();
4375
      oprot.writeFieldEnd();
4279
      oprot.writeFieldStop();
4376
      oprot.writeFieldStop();
4280
      oprot.writeStructEnd();
4377
      oprot.writeStructEnd();
Line 4286... Line 4383...
4286
      boolean first = true;
4383
      boolean first = true;
4287
 
4384
 
4288
      sb.append("providerId:");
4385
      sb.append("providerId:");
4289
      sb.append(this.providerId);
4386
      sb.append(this.providerId);
4290
      first = false;
4387
      first = false;
-
 
4388
      if (!first) sb.append(", ");
-
 
4389
      sb.append("type:");
-
 
4390
      if (this.type == null) {
-
 
4391
        sb.append("null");
-
 
4392
      } else {
-
 
4393
        sb.append(this.type);
-
 
4394
      }
-
 
4395
      first = false;
4291
      sb.append(")");
4396
      sb.append(")");
4292
      return sb.toString();
4397
      return sb.toString();
4293
    }
4398
    }
4294
 
4399
 
4295
    public void validate() throws org.apache.thrift.TException {
4400
    public void validate() throws org.apache.thrift.TException {