Subversion Repositories SmartDukaan

Rev

Rev 2926 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
48 ashish 1
/**
3430 rajveer 2
 * Autogenerated by Thrift Compiler (0.7.0)
48 ashish 3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
6
package in.shop2020.config;
7
 
8
import java.util.List;
9
import java.util.ArrayList;
10
import java.util.Map;
11
import java.util.HashMap;
12
import java.util.EnumMap;
13
import java.util.Set;
14
import java.util.HashSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
17
import java.util.BitSet;
3430 rajveer 18
import java.nio.ByteBuffer;
48 ashish 19
import java.util.Arrays;
20
import org.slf4j.Logger;
21
import org.slf4j.LoggerFactory;
22
 
23
public class Configuration {
24
 
25
  public interface Iface {
26
 
3430 rajveer 27
    public String getPropetry(String propertyName) throws ConfigException, org.apache.thrift.TException;
48 ashish 28
 
3430 rajveer 29
    public void loadProperty(String propertyName, String propertyValue) throws org.apache.thrift.TException;
48 ashish 30
 
3430 rajveer 31
    public void reloadProperties() throws org.apache.thrift.TException;
2926 rajveer 32
 
48 ashish 33
  }
34
 
3430 rajveer 35
  public interface AsyncIface {
48 ashish 36
 
3430 rajveer 37
    public void getPropetry(String propertyName, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getPropetry_call> resultHandler) throws org.apache.thrift.TException;
48 ashish 38
 
3430 rajveer 39
    public void loadProperty(String propertyName, String propertyValue, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.loadProperty_call> resultHandler) throws org.apache.thrift.TException;
48 ashish 40
 
3430 rajveer 41
    public void reloadProperties(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.reloadProperties_call> resultHandler) throws org.apache.thrift.TException;
48 ashish 42
 
3430 rajveer 43
  }
44
 
45
  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
46
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
47
      public Factory() {}
48
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
49
        return new Client(prot);
50
      }
51
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
52
        return new Client(iprot, oprot);
53
      }
48 ashish 54
    }
55
 
3430 rajveer 56
    public Client(org.apache.thrift.protocol.TProtocol prot)
48 ashish 57
    {
3430 rajveer 58
      super(prot, prot);
48 ashish 59
    }
60
 
3430 rajveer 61
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
62
      super(iprot, oprot);
63
    }
64
 
65
    public String getPropetry(String propertyName) throws ConfigException, org.apache.thrift.TException
48 ashish 66
    {
67
      send_getPropetry(propertyName);
68
      return recv_getPropetry();
69
    }
70
 
3430 rajveer 71
    public void send_getPropetry(String propertyName) throws org.apache.thrift.TException
48 ashish 72
    {
73
      getPropetry_args args = new getPropetry_args();
3430 rajveer 74
      args.setPropertyName(propertyName);
75
      sendBase("getPropetry", args);
48 ashish 76
    }
77
 
3430 rajveer 78
    public String recv_getPropetry() throws ConfigException, org.apache.thrift.TException
48 ashish 79
    {
80
      getPropetry_result result = new getPropetry_result();
3430 rajveer 81
      receiveBase(result, "getPropetry");
48 ashish 82
      if (result.isSetSuccess()) {
83
        return result.success;
84
      }
85
      if (result.e != null) {
86
        throw result.e;
87
      }
3430 rajveer 88
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getPropetry failed: unknown result");
48 ashish 89
    }
90
 
3430 rajveer 91
    public void loadProperty(String propertyName, String propertyValue) throws org.apache.thrift.TException
48 ashish 92
    {
93
      send_loadProperty(propertyName, propertyValue);
94
      recv_loadProperty();
95
    }
96
 
3430 rajveer 97
    public void send_loadProperty(String propertyName, String propertyValue) throws org.apache.thrift.TException
48 ashish 98
    {
99
      loadProperty_args args = new loadProperty_args();
3430 rajveer 100
      args.setPropertyName(propertyName);
101
      args.setPropertyValue(propertyValue);
102
      sendBase("loadProperty", args);
48 ashish 103
    }
104
 
3430 rajveer 105
    public void recv_loadProperty() throws org.apache.thrift.TException
48 ashish 106
    {
107
      loadProperty_result result = new loadProperty_result();
3430 rajveer 108
      receiveBase(result, "loadProperty");
48 ashish 109
      return;
110
    }
111
 
3430 rajveer 112
    public void reloadProperties() throws org.apache.thrift.TException
2926 rajveer 113
    {
114
      send_reloadProperties();
115
      recv_reloadProperties();
116
    }
117
 
3430 rajveer 118
    public void send_reloadProperties() throws org.apache.thrift.TException
2926 rajveer 119
    {
120
      reloadProperties_args args = new reloadProperties_args();
3430 rajveer 121
      sendBase("reloadProperties", args);
2926 rajveer 122
    }
123
 
3430 rajveer 124
    public void recv_reloadProperties() throws org.apache.thrift.TException
2926 rajveer 125
    {
126
      reloadProperties_result result = new reloadProperties_result();
3430 rajveer 127
      receiveBase(result, "reloadProperties");
2926 rajveer 128
      return;
129
    }
130
 
48 ashish 131
  }
3430 rajveer 132
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
133
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
134
      private org.apache.thrift.async.TAsyncClientManager clientManager;
135
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
136
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
137
        this.clientManager = clientManager;
138
        this.protocolFactory = protocolFactory;
139
      }
140
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
141
        return new AsyncClient(protocolFactory, clientManager, transport);
142
      }
48 ashish 143
    }
144
 
3430 rajveer 145
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
146
      super(protocolFactory, clientManager, transport);
48 ashish 147
    }
148
 
3430 rajveer 149
    public void getPropetry(String propertyName, org.apache.thrift.async.AsyncMethodCallback<getPropetry_call> resultHandler) throws org.apache.thrift.TException {
150
      checkReady();
151
      getPropetry_call method_call = new getPropetry_call(propertyName, resultHandler, this, ___protocolFactory, ___transport);
152
      this.___currentMethod = method_call;
153
      ___manager.call(method_call);
154
    }
48 ashish 155
 
3430 rajveer 156
    public static class getPropetry_call extends org.apache.thrift.async.TAsyncMethodCall {
157
      private String propertyName;
158
      public getPropetry_call(String propertyName, org.apache.thrift.async.AsyncMethodCallback<getPropetry_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 {
159
        super(client, protocolFactory, transport, resultHandler, false);
160
        this.propertyName = propertyName;
48 ashish 161
      }
3430 rajveer 162
 
163
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
164
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getPropetry", org.apache.thrift.protocol.TMessageType.CALL, 0));
165
        getPropetry_args args = new getPropetry_args();
166
        args.setPropertyName(propertyName);
167
        args.write(prot);
168
        prot.writeMessageEnd();
169
      }
170
 
171
      public String getResult() throws ConfigException, org.apache.thrift.TException {
172
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
173
          throw new IllegalStateException("Method call not finished!");
174
        }
175
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
176
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
177
        return (new Client(prot)).recv_getPropetry();
178
      }
48 ashish 179
    }
180
 
3430 rajveer 181
    public void loadProperty(String propertyName, String propertyValue, org.apache.thrift.async.AsyncMethodCallback<loadProperty_call> resultHandler) throws org.apache.thrift.TException {
182
      checkReady();
183
      loadProperty_call method_call = new loadProperty_call(propertyName, propertyValue, resultHandler, this, ___protocolFactory, ___transport);
184
      this.___currentMethod = method_call;
185
      ___manager.call(method_call);
186
    }
187
 
188
    public static class loadProperty_call extends org.apache.thrift.async.TAsyncMethodCall {
189
      private String propertyName;
190
      private String propertyValue;
191
      public loadProperty_call(String propertyName, String propertyValue, org.apache.thrift.async.AsyncMethodCallback<loadProperty_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 {
192
        super(client, protocolFactory, transport, resultHandler, false);
193
        this.propertyName = propertyName;
194
        this.propertyValue = propertyValue;
195
      }
196
 
197
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
198
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("loadProperty", org.apache.thrift.protocol.TMessageType.CALL, 0));
199
        loadProperty_args args = new loadProperty_args();
200
        args.setPropertyName(propertyName);
201
        args.setPropertyValue(propertyValue);
202
        args.write(prot);
203
        prot.writeMessageEnd();
204
      }
205
 
206
      public void getResult() throws org.apache.thrift.TException {
207
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
208
          throw new IllegalStateException("Method call not finished!");
209
        }
210
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
211
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
212
        (new Client(prot)).recv_loadProperty();
213
      }
214
    }
215
 
216
    public void reloadProperties(org.apache.thrift.async.AsyncMethodCallback<reloadProperties_call> resultHandler) throws org.apache.thrift.TException {
217
      checkReady();
218
      reloadProperties_call method_call = new reloadProperties_call(resultHandler, this, ___protocolFactory, ___transport);
219
      this.___currentMethod = method_call;
220
      ___manager.call(method_call);
221
    }
222
 
223
    public static class reloadProperties_call extends org.apache.thrift.async.TAsyncMethodCall {
224
      public reloadProperties_call(org.apache.thrift.async.AsyncMethodCallback<reloadProperties_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 {
225
        super(client, protocolFactory, transport, resultHandler, false);
226
      }
227
 
228
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
229
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("reloadProperties", org.apache.thrift.protocol.TMessageType.CALL, 0));
230
        reloadProperties_args args = new reloadProperties_args();
231
        args.write(prot);
232
        prot.writeMessageEnd();
233
      }
234
 
235
      public void getResult() throws org.apache.thrift.TException {
236
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
237
          throw new IllegalStateException("Method call not finished!");
238
        }
239
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
240
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
241
        (new Client(prot)).recv_reloadProperties();
242
      }
243
    }
244
 
245
  }
246
 
247
  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
248
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
249
    public Processor(I iface) {
250
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
251
    }
252
 
253
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
254
      super(iface, getProcessMap(processMap));
255
    }
256
 
257
    private static <I extends Iface> Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> getProcessMap(Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
258
      processMap.put("getPropetry", new getPropetry());
259
      processMap.put("loadProperty", new loadProperty());
260
      processMap.put("reloadProperties", new reloadProperties());
261
      return processMap;
262
    }
263
 
264
    private static class getPropetry<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getPropetry_args> {
265
      public getPropetry() {
266
        super("getPropetry");
267
      }
268
 
269
      protected getPropetry_args getEmptyArgsInstance() {
270
        return new getPropetry_args();
271
      }
272
 
273
      protected getPropetry_result getResult(I iface, getPropetry_args args) throws org.apache.thrift.TException {
48 ashish 274
        getPropetry_result result = new getPropetry_result();
275
        try {
3430 rajveer 276
          result.success = iface.getPropetry(args.propertyName);
48 ashish 277
        } catch (ConfigException e) {
278
          result.e = e;
279
        }
3430 rajveer 280
        return result;
48 ashish 281
      }
282
    }
283
 
3430 rajveer 284
    private static class loadProperty<I extends Iface> extends org.apache.thrift.ProcessFunction<I, loadProperty_args> {
285
      public loadProperty() {
286
        super("loadProperty");
287
      }
288
 
289
      protected loadProperty_args getEmptyArgsInstance() {
290
        return new loadProperty_args();
291
      }
292
 
293
      protected loadProperty_result getResult(I iface, loadProperty_args args) throws org.apache.thrift.TException {
48 ashish 294
        loadProperty_result result = new loadProperty_result();
3430 rajveer 295
        iface.loadProperty(args.propertyName, args.propertyValue);
296
        return result;
48 ashish 297
      }
298
    }
299
 
3430 rajveer 300
    private static class reloadProperties<I extends Iface> extends org.apache.thrift.ProcessFunction<I, reloadProperties_args> {
301
      public reloadProperties() {
302
        super("reloadProperties");
303
      }
304
 
305
      protected reloadProperties_args getEmptyArgsInstance() {
306
        return new reloadProperties_args();
307
      }
308
 
309
      protected reloadProperties_result getResult(I iface, reloadProperties_args args) throws org.apache.thrift.TException {
2926 rajveer 310
        reloadProperties_result result = new reloadProperties_result();
3430 rajveer 311
        iface.reloadProperties();
312
        return result;
2926 rajveer 313
      }
314
    }
315
 
48 ashish 316
  }
317
 
3430 rajveer 318
  public static class getPropetry_args implements org.apache.thrift.TBase<getPropetry_args, getPropetry_args._Fields>, java.io.Serializable, Cloneable   {
319
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPropetry_args");
48 ashish 320
 
3430 rajveer 321
    private static final org.apache.thrift.protocol.TField PROPERTY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("propertyName", org.apache.thrift.protocol.TType.STRING, (short)1);
48 ashish 322
 
3430 rajveer 323
    private String propertyName; // required
48 ashish 324
 
325
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 326
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 327
      PROPERTY_NAME((short)1, "propertyName");
328
 
329
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
330
 
331
      static {
332
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
333
          byName.put(field.getFieldName(), field);
334
        }
335
      }
336
 
337
      /**
338
       * Find the _Fields constant that matches fieldId, or null if its not found.
339
       */
340
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 341
        switch(fieldId) {
342
          case 1: // PROPERTY_NAME
343
            return PROPERTY_NAME;
344
          default:
345
            return null;
346
        }
48 ashish 347
      }
348
 
349
      /**
350
       * Find the _Fields constant that matches fieldId, throwing an exception
351
       * if it is not found.
352
       */
353
      public static _Fields findByThriftIdOrThrow(int fieldId) {
354
        _Fields fields = findByThriftId(fieldId);
355
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
356
        return fields;
357
      }
358
 
359
      /**
360
       * Find the _Fields constant that matches name, or null if its not found.
361
       */
362
      public static _Fields findByName(String name) {
363
        return byName.get(name);
364
      }
365
 
366
      private final short _thriftId;
367
      private final String _fieldName;
368
 
369
      _Fields(short thriftId, String fieldName) {
370
        _thriftId = thriftId;
371
        _fieldName = fieldName;
372
      }
373
 
374
      public short getThriftFieldId() {
375
        return _thriftId;
376
      }
377
 
378
      public String getFieldName() {
379
        return _fieldName;
380
      }
381
    }
382
 
383
    // isset id assignments
384
 
3430 rajveer 385
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 386
    static {
3430 rajveer 387
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
388
      tmpMap.put(_Fields.PROPERTY_NAME, new org.apache.thrift.meta_data.FieldMetaData("propertyName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
389
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
390
      metaDataMap = Collections.unmodifiableMap(tmpMap);
391
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPropetry_args.class, metaDataMap);
48 ashish 392
    }
393
 
394
    public getPropetry_args() {
395
    }
396
 
397
    public getPropetry_args(
398
      String propertyName)
399
    {
400
      this();
401
      this.propertyName = propertyName;
402
    }
403
 
404
    /**
405
     * Performs a deep copy on <i>other</i>.
406
     */
407
    public getPropetry_args(getPropetry_args other) {
408
      if (other.isSetPropertyName()) {
409
        this.propertyName = other.propertyName;
410
      }
411
    }
412
 
413
    public getPropetry_args deepCopy() {
414
      return new getPropetry_args(this);
415
    }
416
 
3430 rajveer 417
    @Override
418
    public void clear() {
419
      this.propertyName = null;
48 ashish 420
    }
421
 
422
    public String getPropertyName() {
423
      return this.propertyName;
424
    }
425
 
3430 rajveer 426
    public void setPropertyName(String propertyName) {
48 ashish 427
      this.propertyName = propertyName;
428
    }
429
 
430
    public void unsetPropertyName() {
431
      this.propertyName = null;
432
    }
433
 
3430 rajveer 434
    /** Returns true if field propertyName is set (has been assigned a value) and false otherwise */
48 ashish 435
    public boolean isSetPropertyName() {
436
      return this.propertyName != null;
437
    }
438
 
439
    public void setPropertyNameIsSet(boolean value) {
440
      if (!value) {
441
        this.propertyName = null;
442
      }
443
    }
444
 
445
    public void setFieldValue(_Fields field, Object value) {
446
      switch (field) {
447
      case PROPERTY_NAME:
448
        if (value == null) {
449
          unsetPropertyName();
450
        } else {
451
          setPropertyName((String)value);
452
        }
453
        break;
454
 
455
      }
456
    }
457
 
458
    public Object getFieldValue(_Fields field) {
459
      switch (field) {
460
      case PROPERTY_NAME:
461
        return getPropertyName();
462
 
463
      }
464
      throw new IllegalStateException();
465
    }
466
 
3430 rajveer 467
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
468
    public boolean isSet(_Fields field) {
469
      if (field == null) {
470
        throw new IllegalArgumentException();
471
      }
48 ashish 472
 
473
      switch (field) {
474
      case PROPERTY_NAME:
475
        return isSetPropertyName();
476
      }
477
      throw new IllegalStateException();
478
    }
479
 
480
    @Override
481
    public boolean equals(Object that) {
482
      if (that == null)
483
        return false;
484
      if (that instanceof getPropetry_args)
485
        return this.equals((getPropetry_args)that);
486
      return false;
487
    }
488
 
489
    public boolean equals(getPropetry_args that) {
490
      if (that == null)
491
        return false;
492
 
493
      boolean this_present_propertyName = true && this.isSetPropertyName();
494
      boolean that_present_propertyName = true && that.isSetPropertyName();
495
      if (this_present_propertyName || that_present_propertyName) {
496
        if (!(this_present_propertyName && that_present_propertyName))
497
          return false;
498
        if (!this.propertyName.equals(that.propertyName))
499
          return false;
500
      }
501
 
502
      return true;
503
    }
504
 
505
    @Override
506
    public int hashCode() {
507
      return 0;
508
    }
509
 
510
    public int compareTo(getPropetry_args other) {
511
      if (!getClass().equals(other.getClass())) {
512
        return getClass().getName().compareTo(other.getClass().getName());
513
      }
514
 
515
      int lastComparison = 0;
516
      getPropetry_args typedOther = (getPropetry_args)other;
517
 
3430 rajveer 518
      lastComparison = Boolean.valueOf(isSetPropertyName()).compareTo(typedOther.isSetPropertyName());
48 ashish 519
      if (lastComparison != 0) {
520
        return lastComparison;
521
      }
3430 rajveer 522
      if (isSetPropertyName()) {
523
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propertyName, typedOther.propertyName);
524
        if (lastComparison != 0) {
525
          return lastComparison;
526
        }
48 ashish 527
      }
528
      return 0;
529
    }
530
 
3430 rajveer 531
    public _Fields fieldForId(int fieldId) {
532
      return _Fields.findByThriftId(fieldId);
533
    }
534
 
535
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
536
      org.apache.thrift.protocol.TField field;
48 ashish 537
      iprot.readStructBegin();
538
      while (true)
539
      {
540
        field = iprot.readFieldBegin();
3430 rajveer 541
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 542
          break;
543
        }
3430 rajveer 544
        switch (field.id) {
545
          case 1: // PROPERTY_NAME
546
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
547
              this.propertyName = iprot.readString();
548
            } else { 
549
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
550
            }
551
            break;
552
          default:
553
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 554
        }
3430 rajveer 555
        iprot.readFieldEnd();
48 ashish 556
      }
557
      iprot.readStructEnd();
558
      validate();
559
    }
560
 
3430 rajveer 561
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 562
      validate();
563
 
564
      oprot.writeStructBegin(STRUCT_DESC);
565
      if (this.propertyName != null) {
566
        oprot.writeFieldBegin(PROPERTY_NAME_FIELD_DESC);
567
        oprot.writeString(this.propertyName);
568
        oprot.writeFieldEnd();
569
      }
570
      oprot.writeFieldStop();
571
      oprot.writeStructEnd();
572
    }
573
 
574
    @Override
575
    public String toString() {
576
      StringBuilder sb = new StringBuilder("getPropetry_args(");
577
      boolean first = true;
578
 
579
      sb.append("propertyName:");
580
      if (this.propertyName == null) {
581
        sb.append("null");
582
      } else {
583
        sb.append(this.propertyName);
584
      }
585
      first = false;
586
      sb.append(")");
587
      return sb.toString();
588
    }
589
 
3430 rajveer 590
    public void validate() throws org.apache.thrift.TException {
48 ashish 591
      // check for required fields
592
    }
593
 
3430 rajveer 594
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
595
      try {
596
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
597
      } catch (org.apache.thrift.TException te) {
598
        throw new java.io.IOException(te);
599
      }
600
    }
601
 
602
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
603
      try {
604
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
605
      } catch (org.apache.thrift.TException te) {
606
        throw new java.io.IOException(te);
607
      }
608
    }
609
 
48 ashish 610
  }
611
 
3430 rajveer 612
  public static class getPropetry_result implements org.apache.thrift.TBase<getPropetry_result, getPropetry_result._Fields>, java.io.Serializable, Cloneable   {
613
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getPropetry_result");
48 ashish 614
 
3430 rajveer 615
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRING, (short)0);
616
    private static final org.apache.thrift.protocol.TField E_FIELD_DESC = new org.apache.thrift.protocol.TField("e", org.apache.thrift.protocol.TType.STRUCT, (short)1);
48 ashish 617
 
3430 rajveer 618
    private String success; // required
619
    private ConfigException e; // required
48 ashish 620
 
621
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 622
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 623
      SUCCESS((short)0, "success"),
624
      E((short)1, "e");
625
 
626
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
627
 
628
      static {
629
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
630
          byName.put(field.getFieldName(), field);
631
        }
632
      }
633
 
634
      /**
635
       * Find the _Fields constant that matches fieldId, or null if its not found.
636
       */
637
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 638
        switch(fieldId) {
639
          case 0: // SUCCESS
640
            return SUCCESS;
641
          case 1: // E
642
            return E;
643
          default:
644
            return null;
645
        }
48 ashish 646
      }
647
 
648
      /**
649
       * Find the _Fields constant that matches fieldId, throwing an exception
650
       * if it is not found.
651
       */
652
      public static _Fields findByThriftIdOrThrow(int fieldId) {
653
        _Fields fields = findByThriftId(fieldId);
654
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
655
        return fields;
656
      }
657
 
658
      /**
659
       * Find the _Fields constant that matches name, or null if its not found.
660
       */
661
      public static _Fields findByName(String name) {
662
        return byName.get(name);
663
      }
664
 
665
      private final short _thriftId;
666
      private final String _fieldName;
667
 
668
      _Fields(short thriftId, String fieldName) {
669
        _thriftId = thriftId;
670
        _fieldName = fieldName;
671
      }
672
 
673
      public short getThriftFieldId() {
674
        return _thriftId;
675
      }
676
 
677
      public String getFieldName() {
678
        return _fieldName;
679
      }
680
    }
681
 
682
    // isset id assignments
683
 
3430 rajveer 684
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 685
    static {
3430 rajveer 686
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
687
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
688
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
689
      tmpMap.put(_Fields.E, new org.apache.thrift.meta_data.FieldMetaData("e", org.apache.thrift.TFieldRequirementType.DEFAULT, 
690
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRUCT)));
691
      metaDataMap = Collections.unmodifiableMap(tmpMap);
692
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getPropetry_result.class, metaDataMap);
48 ashish 693
    }
694
 
695
    public getPropetry_result() {
696
    }
697
 
698
    public getPropetry_result(
699
      String success,
700
      ConfigException e)
701
    {
702
      this();
703
      this.success = success;
704
      this.e = e;
705
    }
706
 
707
    /**
708
     * Performs a deep copy on <i>other</i>.
709
     */
710
    public getPropetry_result(getPropetry_result other) {
711
      if (other.isSetSuccess()) {
712
        this.success = other.success;
713
      }
714
      if (other.isSetE()) {
715
        this.e = new ConfigException(other.e);
716
      }
717
    }
718
 
719
    public getPropetry_result deepCopy() {
720
      return new getPropetry_result(this);
721
    }
722
 
3430 rajveer 723
    @Override
724
    public void clear() {
725
      this.success = null;
726
      this.e = null;
48 ashish 727
    }
728
 
729
    public String getSuccess() {
730
      return this.success;
731
    }
732
 
3430 rajveer 733
    public void setSuccess(String success) {
48 ashish 734
      this.success = success;
735
    }
736
 
737
    public void unsetSuccess() {
738
      this.success = null;
739
    }
740
 
3430 rajveer 741
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
48 ashish 742
    public boolean isSetSuccess() {
743
      return this.success != null;
744
    }
745
 
746
    public void setSuccessIsSet(boolean value) {
747
      if (!value) {
748
        this.success = null;
749
      }
750
    }
751
 
752
    public ConfigException getE() {
753
      return this.e;
754
    }
755
 
3430 rajveer 756
    public void setE(ConfigException e) {
48 ashish 757
      this.e = e;
758
    }
759
 
760
    public void unsetE() {
761
      this.e = null;
762
    }
763
 
3430 rajveer 764
    /** Returns true if field e is set (has been assigned a value) and false otherwise */
48 ashish 765
    public boolean isSetE() {
766
      return this.e != null;
767
    }
768
 
769
    public void setEIsSet(boolean value) {
770
      if (!value) {
771
        this.e = null;
772
      }
773
    }
774
 
775
    public void setFieldValue(_Fields field, Object value) {
776
      switch (field) {
777
      case SUCCESS:
778
        if (value == null) {
779
          unsetSuccess();
780
        } else {
781
          setSuccess((String)value);
782
        }
783
        break;
784
 
785
      case E:
786
        if (value == null) {
787
          unsetE();
788
        } else {
789
          setE((ConfigException)value);
790
        }
791
        break;
792
 
793
      }
794
    }
795
 
796
    public Object getFieldValue(_Fields field) {
797
      switch (field) {
798
      case SUCCESS:
799
        return getSuccess();
800
 
801
      case E:
802
        return getE();
803
 
804
      }
805
      throw new IllegalStateException();
806
    }
807
 
3430 rajveer 808
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
809
    public boolean isSet(_Fields field) {
810
      if (field == null) {
811
        throw new IllegalArgumentException();
812
      }
48 ashish 813
 
814
      switch (field) {
815
      case SUCCESS:
816
        return isSetSuccess();
817
      case E:
818
        return isSetE();
819
      }
820
      throw new IllegalStateException();
821
    }
822
 
823
    @Override
824
    public boolean equals(Object that) {
825
      if (that == null)
826
        return false;
827
      if (that instanceof getPropetry_result)
828
        return this.equals((getPropetry_result)that);
829
      return false;
830
    }
831
 
832
    public boolean equals(getPropetry_result that) {
833
      if (that == null)
834
        return false;
835
 
836
      boolean this_present_success = true && this.isSetSuccess();
837
      boolean that_present_success = true && that.isSetSuccess();
838
      if (this_present_success || that_present_success) {
839
        if (!(this_present_success && that_present_success))
840
          return false;
841
        if (!this.success.equals(that.success))
842
          return false;
843
      }
844
 
845
      boolean this_present_e = true && this.isSetE();
846
      boolean that_present_e = true && that.isSetE();
847
      if (this_present_e || that_present_e) {
848
        if (!(this_present_e && that_present_e))
849
          return false;
850
        if (!this.e.equals(that.e))
851
          return false;
852
      }
853
 
854
      return true;
855
    }
856
 
857
    @Override
858
    public int hashCode() {
859
      return 0;
860
    }
861
 
862
    public int compareTo(getPropetry_result other) {
863
      if (!getClass().equals(other.getClass())) {
864
        return getClass().getName().compareTo(other.getClass().getName());
865
      }
866
 
867
      int lastComparison = 0;
868
      getPropetry_result typedOther = (getPropetry_result)other;
869
 
3430 rajveer 870
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
48 ashish 871
      if (lastComparison != 0) {
872
        return lastComparison;
873
      }
3430 rajveer 874
      if (isSetSuccess()) {
875
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
876
        if (lastComparison != 0) {
877
          return lastComparison;
878
        }
48 ashish 879
      }
3430 rajveer 880
      lastComparison = Boolean.valueOf(isSetE()).compareTo(typedOther.isSetE());
48 ashish 881
      if (lastComparison != 0) {
882
        return lastComparison;
883
      }
3430 rajveer 884
      if (isSetE()) {
885
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.e, typedOther.e);
886
        if (lastComparison != 0) {
887
          return lastComparison;
888
        }
48 ashish 889
      }
890
      return 0;
891
    }
892
 
3430 rajveer 893
    public _Fields fieldForId(int fieldId) {
894
      return _Fields.findByThriftId(fieldId);
895
    }
896
 
897
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
898
      org.apache.thrift.protocol.TField field;
48 ashish 899
      iprot.readStructBegin();
900
      while (true)
901
      {
902
        field = iprot.readFieldBegin();
3430 rajveer 903
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 904
          break;
905
        }
3430 rajveer 906
        switch (field.id) {
907
          case 0: // SUCCESS
908
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
909
              this.success = iprot.readString();
910
            } else { 
911
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
912
            }
913
            break;
914
          case 1: // E
915
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
916
              this.e = new ConfigException();
917
              this.e.read(iprot);
918
            } else { 
919
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
920
            }
921
            break;
922
          default:
923
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 924
        }
3430 rajveer 925
        iprot.readFieldEnd();
48 ashish 926
      }
927
      iprot.readStructEnd();
928
      validate();
929
    }
930
 
3430 rajveer 931
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 932
      oprot.writeStructBegin(STRUCT_DESC);
933
 
934
      if (this.isSetSuccess()) {
935
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
936
        oprot.writeString(this.success);
937
        oprot.writeFieldEnd();
938
      } else if (this.isSetE()) {
939
        oprot.writeFieldBegin(E_FIELD_DESC);
940
        this.e.write(oprot);
941
        oprot.writeFieldEnd();
942
      }
943
      oprot.writeFieldStop();
944
      oprot.writeStructEnd();
945
    }
946
 
947
    @Override
948
    public String toString() {
949
      StringBuilder sb = new StringBuilder("getPropetry_result(");
950
      boolean first = true;
951
 
952
      sb.append("success:");
953
      if (this.success == null) {
954
        sb.append("null");
955
      } else {
956
        sb.append(this.success);
957
      }
958
      first = false;
959
      if (!first) sb.append(", ");
960
      sb.append("e:");
961
      if (this.e == null) {
962
        sb.append("null");
963
      } else {
964
        sb.append(this.e);
965
      }
966
      first = false;
967
      sb.append(")");
968
      return sb.toString();
969
    }
970
 
3430 rajveer 971
    public void validate() throws org.apache.thrift.TException {
48 ashish 972
      // check for required fields
973
    }
974
 
3430 rajveer 975
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
976
      try {
977
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
978
      } catch (org.apache.thrift.TException te) {
979
        throw new java.io.IOException(te);
980
      }
981
    }
982
 
983
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
984
      try {
985
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
986
      } catch (org.apache.thrift.TException te) {
987
        throw new java.io.IOException(te);
988
      }
989
    }
990
 
48 ashish 991
  }
992
 
3430 rajveer 993
  public static class loadProperty_args implements org.apache.thrift.TBase<loadProperty_args, loadProperty_args._Fields>, java.io.Serializable, Cloneable   {
994
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("loadProperty_args");
48 ashish 995
 
3430 rajveer 996
    private static final org.apache.thrift.protocol.TField PROPERTY_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("propertyName", org.apache.thrift.protocol.TType.STRING, (short)1);
997
    private static final org.apache.thrift.protocol.TField PROPERTY_VALUE_FIELD_DESC = new org.apache.thrift.protocol.TField("propertyValue", org.apache.thrift.protocol.TType.STRING, (short)2);
48 ashish 998
 
3430 rajveer 999
    private String propertyName; // required
1000
    private String propertyValue; // required
48 ashish 1001
 
1002
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1003
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 1004
      PROPERTY_NAME((short)1, "propertyName"),
1005
      PROPERTY_VALUE((short)2, "propertyValue");
1006
 
1007
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1008
 
1009
      static {
1010
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1011
          byName.put(field.getFieldName(), field);
1012
        }
1013
      }
1014
 
1015
      /**
1016
       * Find the _Fields constant that matches fieldId, or null if its not found.
1017
       */
1018
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1019
        switch(fieldId) {
1020
          case 1: // PROPERTY_NAME
1021
            return PROPERTY_NAME;
1022
          case 2: // PROPERTY_VALUE
1023
            return PROPERTY_VALUE;
1024
          default:
1025
            return null;
1026
        }
48 ashish 1027
      }
1028
 
1029
      /**
1030
       * Find the _Fields constant that matches fieldId, throwing an exception
1031
       * if it is not found.
1032
       */
1033
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1034
        _Fields fields = findByThriftId(fieldId);
1035
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1036
        return fields;
1037
      }
1038
 
1039
      /**
1040
       * Find the _Fields constant that matches name, or null if its not found.
1041
       */
1042
      public static _Fields findByName(String name) {
1043
        return byName.get(name);
1044
      }
1045
 
1046
      private final short _thriftId;
1047
      private final String _fieldName;
1048
 
1049
      _Fields(short thriftId, String fieldName) {
1050
        _thriftId = thriftId;
1051
        _fieldName = fieldName;
1052
      }
1053
 
1054
      public short getThriftFieldId() {
1055
        return _thriftId;
1056
      }
1057
 
1058
      public String getFieldName() {
1059
        return _fieldName;
1060
      }
1061
    }
1062
 
1063
    // isset id assignments
1064
 
3430 rajveer 1065
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 1066
    static {
3430 rajveer 1067
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1068
      tmpMap.put(_Fields.PROPERTY_NAME, new org.apache.thrift.meta_data.FieldMetaData("propertyName", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1069
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1070
      tmpMap.put(_Fields.PROPERTY_VALUE, new org.apache.thrift.meta_data.FieldMetaData("propertyValue", org.apache.thrift.TFieldRequirementType.DEFAULT, 
1071
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
1072
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1073
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(loadProperty_args.class, metaDataMap);
48 ashish 1074
    }
1075
 
1076
    public loadProperty_args() {
1077
    }
1078
 
1079
    public loadProperty_args(
1080
      String propertyName,
1081
      String propertyValue)
1082
    {
1083
      this();
1084
      this.propertyName = propertyName;
1085
      this.propertyValue = propertyValue;
1086
    }
1087
 
1088
    /**
1089
     * Performs a deep copy on <i>other</i>.
1090
     */
1091
    public loadProperty_args(loadProperty_args other) {
1092
      if (other.isSetPropertyName()) {
1093
        this.propertyName = other.propertyName;
1094
      }
1095
      if (other.isSetPropertyValue()) {
1096
        this.propertyValue = other.propertyValue;
1097
      }
1098
    }
1099
 
1100
    public loadProperty_args deepCopy() {
1101
      return new loadProperty_args(this);
1102
    }
1103
 
3430 rajveer 1104
    @Override
1105
    public void clear() {
1106
      this.propertyName = null;
1107
      this.propertyValue = null;
48 ashish 1108
    }
1109
 
1110
    public String getPropertyName() {
1111
      return this.propertyName;
1112
    }
1113
 
3430 rajveer 1114
    public void setPropertyName(String propertyName) {
48 ashish 1115
      this.propertyName = propertyName;
1116
    }
1117
 
1118
    public void unsetPropertyName() {
1119
      this.propertyName = null;
1120
    }
1121
 
3430 rajveer 1122
    /** Returns true if field propertyName is set (has been assigned a value) and false otherwise */
48 ashish 1123
    public boolean isSetPropertyName() {
1124
      return this.propertyName != null;
1125
    }
1126
 
1127
    public void setPropertyNameIsSet(boolean value) {
1128
      if (!value) {
1129
        this.propertyName = null;
1130
      }
1131
    }
1132
 
1133
    public String getPropertyValue() {
1134
      return this.propertyValue;
1135
    }
1136
 
3430 rajveer 1137
    public void setPropertyValue(String propertyValue) {
48 ashish 1138
      this.propertyValue = propertyValue;
1139
    }
1140
 
1141
    public void unsetPropertyValue() {
1142
      this.propertyValue = null;
1143
    }
1144
 
3430 rajveer 1145
    /** Returns true if field propertyValue is set (has been assigned a value) and false otherwise */
48 ashish 1146
    public boolean isSetPropertyValue() {
1147
      return this.propertyValue != null;
1148
    }
1149
 
1150
    public void setPropertyValueIsSet(boolean value) {
1151
      if (!value) {
1152
        this.propertyValue = null;
1153
      }
1154
    }
1155
 
1156
    public void setFieldValue(_Fields field, Object value) {
1157
      switch (field) {
1158
      case PROPERTY_NAME:
1159
        if (value == null) {
1160
          unsetPropertyName();
1161
        } else {
1162
          setPropertyName((String)value);
1163
        }
1164
        break;
1165
 
1166
      case PROPERTY_VALUE:
1167
        if (value == null) {
1168
          unsetPropertyValue();
1169
        } else {
1170
          setPropertyValue((String)value);
1171
        }
1172
        break;
1173
 
1174
      }
1175
    }
1176
 
1177
    public Object getFieldValue(_Fields field) {
1178
      switch (field) {
1179
      case PROPERTY_NAME:
1180
        return getPropertyName();
1181
 
1182
      case PROPERTY_VALUE:
1183
        return getPropertyValue();
1184
 
1185
      }
1186
      throw new IllegalStateException();
1187
    }
1188
 
3430 rajveer 1189
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1190
    public boolean isSet(_Fields field) {
1191
      if (field == null) {
1192
        throw new IllegalArgumentException();
1193
      }
48 ashish 1194
 
1195
      switch (field) {
1196
      case PROPERTY_NAME:
1197
        return isSetPropertyName();
1198
      case PROPERTY_VALUE:
1199
        return isSetPropertyValue();
1200
      }
1201
      throw new IllegalStateException();
1202
    }
1203
 
1204
    @Override
1205
    public boolean equals(Object that) {
1206
      if (that == null)
1207
        return false;
1208
      if (that instanceof loadProperty_args)
1209
        return this.equals((loadProperty_args)that);
1210
      return false;
1211
    }
1212
 
1213
    public boolean equals(loadProperty_args that) {
1214
      if (that == null)
1215
        return false;
1216
 
1217
      boolean this_present_propertyName = true && this.isSetPropertyName();
1218
      boolean that_present_propertyName = true && that.isSetPropertyName();
1219
      if (this_present_propertyName || that_present_propertyName) {
1220
        if (!(this_present_propertyName && that_present_propertyName))
1221
          return false;
1222
        if (!this.propertyName.equals(that.propertyName))
1223
          return false;
1224
      }
1225
 
1226
      boolean this_present_propertyValue = true && this.isSetPropertyValue();
1227
      boolean that_present_propertyValue = true && that.isSetPropertyValue();
1228
      if (this_present_propertyValue || that_present_propertyValue) {
1229
        if (!(this_present_propertyValue && that_present_propertyValue))
1230
          return false;
1231
        if (!this.propertyValue.equals(that.propertyValue))
1232
          return false;
1233
      }
1234
 
1235
      return true;
1236
    }
1237
 
1238
    @Override
1239
    public int hashCode() {
1240
      return 0;
1241
    }
1242
 
1243
    public int compareTo(loadProperty_args other) {
1244
      if (!getClass().equals(other.getClass())) {
1245
        return getClass().getName().compareTo(other.getClass().getName());
1246
      }
1247
 
1248
      int lastComparison = 0;
1249
      loadProperty_args typedOther = (loadProperty_args)other;
1250
 
3430 rajveer 1251
      lastComparison = Boolean.valueOf(isSetPropertyName()).compareTo(typedOther.isSetPropertyName());
48 ashish 1252
      if (lastComparison != 0) {
1253
        return lastComparison;
1254
      }
3430 rajveer 1255
      if (isSetPropertyName()) {
1256
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propertyName, typedOther.propertyName);
1257
        if (lastComparison != 0) {
1258
          return lastComparison;
1259
        }
48 ashish 1260
      }
3430 rajveer 1261
      lastComparison = Boolean.valueOf(isSetPropertyValue()).compareTo(typedOther.isSetPropertyValue());
48 ashish 1262
      if (lastComparison != 0) {
1263
        return lastComparison;
1264
      }
3430 rajveer 1265
      if (isSetPropertyValue()) {
1266
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.propertyValue, typedOther.propertyValue);
1267
        if (lastComparison != 0) {
1268
          return lastComparison;
1269
        }
48 ashish 1270
      }
1271
      return 0;
1272
    }
1273
 
3430 rajveer 1274
    public _Fields fieldForId(int fieldId) {
1275
      return _Fields.findByThriftId(fieldId);
1276
    }
1277
 
1278
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1279
      org.apache.thrift.protocol.TField field;
48 ashish 1280
      iprot.readStructBegin();
1281
      while (true)
1282
      {
1283
        field = iprot.readFieldBegin();
3430 rajveer 1284
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 1285
          break;
1286
        }
3430 rajveer 1287
        switch (field.id) {
1288
          case 1: // PROPERTY_NAME
1289
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1290
              this.propertyName = iprot.readString();
1291
            } else { 
1292
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1293
            }
1294
            break;
1295
          case 2: // PROPERTY_VALUE
1296
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1297
              this.propertyValue = iprot.readString();
1298
            } else { 
1299
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1300
            }
1301
            break;
1302
          default:
1303
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 1304
        }
3430 rajveer 1305
        iprot.readFieldEnd();
48 ashish 1306
      }
1307
      iprot.readStructEnd();
1308
      validate();
1309
    }
1310
 
3430 rajveer 1311
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 1312
      validate();
1313
 
1314
      oprot.writeStructBegin(STRUCT_DESC);
1315
      if (this.propertyName != null) {
1316
        oprot.writeFieldBegin(PROPERTY_NAME_FIELD_DESC);
1317
        oprot.writeString(this.propertyName);
1318
        oprot.writeFieldEnd();
1319
      }
1320
      if (this.propertyValue != null) {
1321
        oprot.writeFieldBegin(PROPERTY_VALUE_FIELD_DESC);
1322
        oprot.writeString(this.propertyValue);
1323
        oprot.writeFieldEnd();
1324
      }
1325
      oprot.writeFieldStop();
1326
      oprot.writeStructEnd();
1327
    }
1328
 
1329
    @Override
1330
    public String toString() {
1331
      StringBuilder sb = new StringBuilder("loadProperty_args(");
1332
      boolean first = true;
1333
 
1334
      sb.append("propertyName:");
1335
      if (this.propertyName == null) {
1336
        sb.append("null");
1337
      } else {
1338
        sb.append(this.propertyName);
1339
      }
1340
      first = false;
1341
      if (!first) sb.append(", ");
1342
      sb.append("propertyValue:");
1343
      if (this.propertyValue == null) {
1344
        sb.append("null");
1345
      } else {
1346
        sb.append(this.propertyValue);
1347
      }
1348
      first = false;
1349
      sb.append(")");
1350
      return sb.toString();
1351
    }
1352
 
3430 rajveer 1353
    public void validate() throws org.apache.thrift.TException {
48 ashish 1354
      // check for required fields
1355
    }
1356
 
3430 rajveer 1357
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1358
      try {
1359
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1360
      } catch (org.apache.thrift.TException te) {
1361
        throw new java.io.IOException(te);
1362
      }
1363
    }
1364
 
1365
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1366
      try {
1367
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1368
      } catch (org.apache.thrift.TException te) {
1369
        throw new java.io.IOException(te);
1370
      }
1371
    }
1372
 
48 ashish 1373
  }
1374
 
3430 rajveer 1375
  public static class loadProperty_result implements org.apache.thrift.TBase<loadProperty_result, loadProperty_result._Fields>, java.io.Serializable, Cloneable   {
1376
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("loadProperty_result");
48 ashish 1377
 
1378
 
1379
 
1380
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1381
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
48 ashish 1382
;
1383
 
1384
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1385
 
1386
      static {
1387
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1388
          byName.put(field.getFieldName(), field);
1389
        }
1390
      }
1391
 
1392
      /**
1393
       * Find the _Fields constant that matches fieldId, or null if its not found.
1394
       */
1395
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1396
        switch(fieldId) {
1397
          default:
1398
            return null;
1399
        }
48 ashish 1400
      }
1401
 
1402
      /**
1403
       * Find the _Fields constant that matches fieldId, throwing an exception
1404
       * if it is not found.
1405
       */
1406
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1407
        _Fields fields = findByThriftId(fieldId);
1408
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1409
        return fields;
1410
      }
1411
 
1412
      /**
1413
       * Find the _Fields constant that matches name, or null if its not found.
1414
       */
1415
      public static _Fields findByName(String name) {
1416
        return byName.get(name);
1417
      }
1418
 
1419
      private final short _thriftId;
1420
      private final String _fieldName;
1421
 
1422
      _Fields(short thriftId, String fieldName) {
1423
        _thriftId = thriftId;
1424
        _fieldName = fieldName;
1425
      }
1426
 
1427
      public short getThriftFieldId() {
1428
        return _thriftId;
1429
      }
1430
 
1431
      public String getFieldName() {
1432
        return _fieldName;
1433
      }
1434
    }
3430 rajveer 1435
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
48 ashish 1436
    static {
3430 rajveer 1437
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1438
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1439
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(loadProperty_result.class, metaDataMap);
48 ashish 1440
    }
1441
 
1442
    public loadProperty_result() {
1443
    }
1444
 
1445
    /**
1446
     * Performs a deep copy on <i>other</i>.
1447
     */
1448
    public loadProperty_result(loadProperty_result other) {
1449
    }
1450
 
1451
    public loadProperty_result deepCopy() {
1452
      return new loadProperty_result(this);
1453
    }
1454
 
3430 rajveer 1455
    @Override
1456
    public void clear() {
48 ashish 1457
    }
1458
 
1459
    public void setFieldValue(_Fields field, Object value) {
1460
      switch (field) {
1461
      }
1462
    }
1463
 
1464
    public Object getFieldValue(_Fields field) {
1465
      switch (field) {
1466
      }
1467
      throw new IllegalStateException();
1468
    }
1469
 
3430 rajveer 1470
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1471
    public boolean isSet(_Fields field) {
1472
      if (field == null) {
1473
        throw new IllegalArgumentException();
1474
      }
48 ashish 1475
 
1476
      switch (field) {
1477
      }
1478
      throw new IllegalStateException();
1479
    }
1480
 
1481
    @Override
1482
    public boolean equals(Object that) {
1483
      if (that == null)
1484
        return false;
1485
      if (that instanceof loadProperty_result)
1486
        return this.equals((loadProperty_result)that);
1487
      return false;
1488
    }
1489
 
1490
    public boolean equals(loadProperty_result that) {
1491
      if (that == null)
1492
        return false;
1493
 
1494
      return true;
1495
    }
1496
 
1497
    @Override
1498
    public int hashCode() {
1499
      return 0;
1500
    }
1501
 
1502
    public int compareTo(loadProperty_result other) {
1503
      if (!getClass().equals(other.getClass())) {
1504
        return getClass().getName().compareTo(other.getClass().getName());
1505
      }
1506
 
1507
      int lastComparison = 0;
1508
      loadProperty_result typedOther = (loadProperty_result)other;
1509
 
1510
      return 0;
1511
    }
1512
 
3430 rajveer 1513
    public _Fields fieldForId(int fieldId) {
1514
      return _Fields.findByThriftId(fieldId);
1515
    }
1516
 
1517
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1518
      org.apache.thrift.protocol.TField field;
48 ashish 1519
      iprot.readStructBegin();
1520
      while (true)
1521
      {
1522
        field = iprot.readFieldBegin();
3430 rajveer 1523
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
48 ashish 1524
          break;
1525
        }
3430 rajveer 1526
        switch (field.id) {
1527
          default:
1528
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
48 ashish 1529
        }
3430 rajveer 1530
        iprot.readFieldEnd();
48 ashish 1531
      }
1532
      iprot.readStructEnd();
1533
      validate();
1534
    }
1535
 
3430 rajveer 1536
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
48 ashish 1537
      oprot.writeStructBegin(STRUCT_DESC);
1538
 
1539
      oprot.writeFieldStop();
1540
      oprot.writeStructEnd();
1541
    }
1542
 
1543
    @Override
1544
    public String toString() {
1545
      StringBuilder sb = new StringBuilder("loadProperty_result(");
1546
      boolean first = true;
1547
 
1548
      sb.append(")");
1549
      return sb.toString();
1550
    }
1551
 
3430 rajveer 1552
    public void validate() throws org.apache.thrift.TException {
48 ashish 1553
      // check for required fields
1554
    }
1555
 
3430 rajveer 1556
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1557
      try {
1558
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1559
      } catch (org.apache.thrift.TException te) {
1560
        throw new java.io.IOException(te);
1561
      }
1562
    }
1563
 
1564
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1565
      try {
1566
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1567
      } catch (org.apache.thrift.TException te) {
1568
        throw new java.io.IOException(te);
1569
      }
1570
    }
1571
 
48 ashish 1572
  }
1573
 
3430 rajveer 1574
  public static class reloadProperties_args implements org.apache.thrift.TBase<reloadProperties_args, reloadProperties_args._Fields>, java.io.Serializable, Cloneable   {
1575
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reloadProperties_args");
2926 rajveer 1576
 
1577
 
1578
 
1579
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1580
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2926 rajveer 1581
;
1582
 
1583
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1584
 
1585
      static {
1586
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1587
          byName.put(field.getFieldName(), field);
1588
        }
1589
      }
1590
 
1591
      /**
1592
       * Find the _Fields constant that matches fieldId, or null if its not found.
1593
       */
1594
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1595
        switch(fieldId) {
1596
          default:
1597
            return null;
1598
        }
2926 rajveer 1599
      }
1600
 
1601
      /**
1602
       * Find the _Fields constant that matches fieldId, throwing an exception
1603
       * if it is not found.
1604
       */
1605
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1606
        _Fields fields = findByThriftId(fieldId);
1607
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1608
        return fields;
1609
      }
1610
 
1611
      /**
1612
       * Find the _Fields constant that matches name, or null if its not found.
1613
       */
1614
      public static _Fields findByName(String name) {
1615
        return byName.get(name);
1616
      }
1617
 
1618
      private final short _thriftId;
1619
      private final String _fieldName;
1620
 
1621
      _Fields(short thriftId, String fieldName) {
1622
        _thriftId = thriftId;
1623
        _fieldName = fieldName;
1624
      }
1625
 
1626
      public short getThriftFieldId() {
1627
        return _thriftId;
1628
      }
1629
 
1630
      public String getFieldName() {
1631
        return _fieldName;
1632
      }
1633
    }
3430 rajveer 1634
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2926 rajveer 1635
    static {
3430 rajveer 1636
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1637
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1638
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reloadProperties_args.class, metaDataMap);
2926 rajveer 1639
    }
1640
 
1641
    public reloadProperties_args() {
1642
    }
1643
 
1644
    /**
1645
     * Performs a deep copy on <i>other</i>.
1646
     */
1647
    public reloadProperties_args(reloadProperties_args other) {
1648
    }
1649
 
1650
    public reloadProperties_args deepCopy() {
1651
      return new reloadProperties_args(this);
1652
    }
1653
 
3430 rajveer 1654
    @Override
1655
    public void clear() {
2926 rajveer 1656
    }
1657
 
1658
    public void setFieldValue(_Fields field, Object value) {
1659
      switch (field) {
1660
      }
1661
    }
1662
 
1663
    public Object getFieldValue(_Fields field) {
1664
      switch (field) {
1665
      }
1666
      throw new IllegalStateException();
1667
    }
1668
 
3430 rajveer 1669
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1670
    public boolean isSet(_Fields field) {
1671
      if (field == null) {
1672
        throw new IllegalArgumentException();
1673
      }
2926 rajveer 1674
 
1675
      switch (field) {
1676
      }
1677
      throw new IllegalStateException();
1678
    }
1679
 
1680
    @Override
1681
    public boolean equals(Object that) {
1682
      if (that == null)
1683
        return false;
1684
      if (that instanceof reloadProperties_args)
1685
        return this.equals((reloadProperties_args)that);
1686
      return false;
1687
    }
1688
 
1689
    public boolean equals(reloadProperties_args that) {
1690
      if (that == null)
1691
        return false;
1692
 
1693
      return true;
1694
    }
1695
 
1696
    @Override
1697
    public int hashCode() {
1698
      return 0;
1699
    }
1700
 
1701
    public int compareTo(reloadProperties_args other) {
1702
      if (!getClass().equals(other.getClass())) {
1703
        return getClass().getName().compareTo(other.getClass().getName());
1704
      }
1705
 
1706
      int lastComparison = 0;
1707
      reloadProperties_args typedOther = (reloadProperties_args)other;
1708
 
1709
      return 0;
1710
    }
1711
 
3430 rajveer 1712
    public _Fields fieldForId(int fieldId) {
1713
      return _Fields.findByThriftId(fieldId);
1714
    }
1715
 
1716
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1717
      org.apache.thrift.protocol.TField field;
2926 rajveer 1718
      iprot.readStructBegin();
1719
      while (true)
1720
      {
1721
        field = iprot.readFieldBegin();
3430 rajveer 1722
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2926 rajveer 1723
          break;
1724
        }
3430 rajveer 1725
        switch (field.id) {
1726
          default:
1727
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2926 rajveer 1728
        }
3430 rajveer 1729
        iprot.readFieldEnd();
2926 rajveer 1730
      }
1731
      iprot.readStructEnd();
1732
      validate();
1733
    }
1734
 
3430 rajveer 1735
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2926 rajveer 1736
      validate();
1737
 
1738
      oprot.writeStructBegin(STRUCT_DESC);
1739
      oprot.writeFieldStop();
1740
      oprot.writeStructEnd();
1741
    }
1742
 
1743
    @Override
1744
    public String toString() {
1745
      StringBuilder sb = new StringBuilder("reloadProperties_args(");
1746
      boolean first = true;
1747
 
1748
      sb.append(")");
1749
      return sb.toString();
1750
    }
1751
 
3430 rajveer 1752
    public void validate() throws org.apache.thrift.TException {
2926 rajveer 1753
      // check for required fields
1754
    }
1755
 
3430 rajveer 1756
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1757
      try {
1758
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1759
      } catch (org.apache.thrift.TException te) {
1760
        throw new java.io.IOException(te);
1761
      }
1762
    }
1763
 
1764
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1765
      try {
1766
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1767
      } catch (org.apache.thrift.TException te) {
1768
        throw new java.io.IOException(te);
1769
      }
1770
    }
1771
 
2926 rajveer 1772
  }
1773
 
3430 rajveer 1774
  public static class reloadProperties_result implements org.apache.thrift.TBase<reloadProperties_result, reloadProperties_result._Fields>, java.io.Serializable, Cloneable   {
1775
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("reloadProperties_result");
2926 rajveer 1776
 
1777
 
1778
 
1779
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3430 rajveer 1780
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2926 rajveer 1781
;
1782
 
1783
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1784
 
1785
      static {
1786
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1787
          byName.put(field.getFieldName(), field);
1788
        }
1789
      }
1790
 
1791
      /**
1792
       * Find the _Fields constant that matches fieldId, or null if its not found.
1793
       */
1794
      public static _Fields findByThriftId(int fieldId) {
3430 rajveer 1795
        switch(fieldId) {
1796
          default:
1797
            return null;
1798
        }
2926 rajveer 1799
      }
1800
 
1801
      /**
1802
       * Find the _Fields constant that matches fieldId, throwing an exception
1803
       * if it is not found.
1804
       */
1805
      public static _Fields findByThriftIdOrThrow(int fieldId) {
1806
        _Fields fields = findByThriftId(fieldId);
1807
        if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
1808
        return fields;
1809
      }
1810
 
1811
      /**
1812
       * Find the _Fields constant that matches name, or null if its not found.
1813
       */
1814
      public static _Fields findByName(String name) {
1815
        return byName.get(name);
1816
      }
1817
 
1818
      private final short _thriftId;
1819
      private final String _fieldName;
1820
 
1821
      _Fields(short thriftId, String fieldName) {
1822
        _thriftId = thriftId;
1823
        _fieldName = fieldName;
1824
      }
1825
 
1826
      public short getThriftFieldId() {
1827
        return _thriftId;
1828
      }
1829
 
1830
      public String getFieldName() {
1831
        return _fieldName;
1832
      }
1833
    }
3430 rajveer 1834
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2926 rajveer 1835
    static {
3430 rajveer 1836
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
1837
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1838
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(reloadProperties_result.class, metaDataMap);
2926 rajveer 1839
    }
1840
 
1841
    public reloadProperties_result() {
1842
    }
1843
 
1844
    /**
1845
     * Performs a deep copy on <i>other</i>.
1846
     */
1847
    public reloadProperties_result(reloadProperties_result other) {
1848
    }
1849
 
1850
    public reloadProperties_result deepCopy() {
1851
      return new reloadProperties_result(this);
1852
    }
1853
 
3430 rajveer 1854
    @Override
1855
    public void clear() {
2926 rajveer 1856
    }
1857
 
1858
    public void setFieldValue(_Fields field, Object value) {
1859
      switch (field) {
1860
      }
1861
    }
1862
 
1863
    public Object getFieldValue(_Fields field) {
1864
      switch (field) {
1865
      }
1866
      throw new IllegalStateException();
1867
    }
1868
 
3430 rajveer 1869
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1870
    public boolean isSet(_Fields field) {
1871
      if (field == null) {
1872
        throw new IllegalArgumentException();
1873
      }
2926 rajveer 1874
 
1875
      switch (field) {
1876
      }
1877
      throw new IllegalStateException();
1878
    }
1879
 
1880
    @Override
1881
    public boolean equals(Object that) {
1882
      if (that == null)
1883
        return false;
1884
      if (that instanceof reloadProperties_result)
1885
        return this.equals((reloadProperties_result)that);
1886
      return false;
1887
    }
1888
 
1889
    public boolean equals(reloadProperties_result that) {
1890
      if (that == null)
1891
        return false;
1892
 
1893
      return true;
1894
    }
1895
 
1896
    @Override
1897
    public int hashCode() {
1898
      return 0;
1899
    }
1900
 
1901
    public int compareTo(reloadProperties_result other) {
1902
      if (!getClass().equals(other.getClass())) {
1903
        return getClass().getName().compareTo(other.getClass().getName());
1904
      }
1905
 
1906
      int lastComparison = 0;
1907
      reloadProperties_result typedOther = (reloadProperties_result)other;
1908
 
1909
      return 0;
1910
    }
1911
 
3430 rajveer 1912
    public _Fields fieldForId(int fieldId) {
1913
      return _Fields.findByThriftId(fieldId);
1914
    }
1915
 
1916
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1917
      org.apache.thrift.protocol.TField field;
2926 rajveer 1918
      iprot.readStructBegin();
1919
      while (true)
1920
      {
1921
        field = iprot.readFieldBegin();
3430 rajveer 1922
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2926 rajveer 1923
          break;
1924
        }
3430 rajveer 1925
        switch (field.id) {
1926
          default:
1927
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2926 rajveer 1928
        }
3430 rajveer 1929
        iprot.readFieldEnd();
2926 rajveer 1930
      }
1931
      iprot.readStructEnd();
1932
      validate();
1933
    }
1934
 
3430 rajveer 1935
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2926 rajveer 1936
      oprot.writeStructBegin(STRUCT_DESC);
1937
 
1938
      oprot.writeFieldStop();
1939
      oprot.writeStructEnd();
1940
    }
1941
 
1942
    @Override
1943
    public String toString() {
1944
      StringBuilder sb = new StringBuilder("reloadProperties_result(");
1945
      boolean first = true;
1946
 
1947
      sb.append(")");
1948
      return sb.toString();
1949
    }
1950
 
3430 rajveer 1951
    public void validate() throws org.apache.thrift.TException {
2926 rajveer 1952
      // check for required fields
1953
    }
1954
 
3430 rajveer 1955
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
1956
      try {
1957
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
1958
      } catch (org.apache.thrift.TException te) {
1959
        throw new java.io.IOException(te);
1960
      }
1961
    }
1962
 
1963
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
1964
      try {
1965
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
1966
      } catch (org.apache.thrift.TException te) {
1967
        throw new java.io.IOException(te);
1968
      }
1969
    }
1970
 
2926 rajveer 1971
  }
1972
 
48 ashish 1973
}