Subversion Repositories SmartDukaan

Rev

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

Rev 1013 Rev 3430
Line 1... Line 1...
1
/**
1
/**
2
 * Autogenerated by Thrift
2
 * Autogenerated by Thrift Compiler (0.7.0)
3
 *
3
 *
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
4
 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5
 */
5
 */
6
package in.shop2020.test;
6
package in.shop2020.test;
7
 
7
 
Line 13... Line 13...
13
import java.util.Set;
13
import java.util.Set;
14
import java.util.HashSet;
14
import java.util.HashSet;
15
import java.util.EnumSet;
15
import java.util.EnumSet;
16
import java.util.Collections;
16
import java.util.Collections;
17
import java.util.BitSet;
17
import java.util.BitSet;
-
 
18
import java.nio.ByteBuffer;
18
import java.util.Arrays;
19
import java.util.Arrays;
19
import org.slf4j.Logger;
20
import org.slf4j.Logger;
20
import org.slf4j.LoggerFactory;
21
import org.slf4j.LoggerFactory;
21
 
22
 
22
import org.apache.thrift.*;
-
 
23
import org.apache.thrift.meta_data.*;
-
 
24
import org.apache.thrift.protocol.*;
-
 
25
 
-
 
26
public class TestService {
23
public class TestService {
27
 
24
 
28
  public interface Iface {
25
  public interface Iface {
29
 
26
 
30
    public void sayHello(String message) throws TException;
27
    public void sayHello(String message) throws org.apache.thrift.TException;
31
 
28
 
32
    public String getUser(long id) throws TException;
29
    public String getUser(long id) throws org.apache.thrift.TException;
33
 
30
 
34
    public long getAddressId() throws TException;
31
    public long getAddressId() throws org.apache.thrift.TException;
35
 
32
 
36
    public Address getAddress() throws TException;
33
    public Address getAddress() throws org.apache.thrift.TException;
37
 
34
 
38
    public void createUser(String name) throws TException;
35
    public void createUser(String name) throws org.apache.thrift.TException;
39
 
36
 
40
    public void closeSession() throws TException;
37
    public void closeSession() throws org.apache.thrift.TException;
41
 
38
 
42
  }
39
  }
43
 
40
 
44
  public static class Client implements Iface {
41
  public interface AsyncIface {
45
    public Client(TProtocol prot)
-
 
46
    {
-
 
47
      this(prot, prot);
-
 
48
    }
-
 
49
 
42
 
50
    public Client(TProtocol iprot, TProtocol oprot)
43
    public void sayHello(String message, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.sayHello_call> resultHandler) throws org.apache.thrift.TException;
51
    {
-
 
52
      iprot_ = iprot;
-
 
53
      oprot_ = oprot;
-
 
54
    }
-
 
55
 
44
 
56
    protected TProtocol iprot_;
-
 
57
    protected TProtocol oprot_;
45
    public void getUser(long id, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getUser_call> resultHandler) throws org.apache.thrift.TException;
58
 
46
 
59
    protected int seqid_;
47
    public void getAddressId(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddressId_call> resultHandler) throws org.apache.thrift.TException;
60
 
48
 
-
 
49
    public void getAddress(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.getAddress_call> resultHandler) throws org.apache.thrift.TException;
-
 
50
 
-
 
51
    public void createUser(String name, org.apache.thrift.async.AsyncMethodCallback<AsyncClient.createUser_call> resultHandler) throws org.apache.thrift.TException;
-
 
52
 
-
 
53
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<AsyncClient.closeSession_call> resultHandler) throws org.apache.thrift.TException;
-
 
54
 
-
 
55
  }
-
 
56
 
-
 
57
  public static class Client extends org.apache.thrift.TServiceClient implements Iface {
-
 
58
    public static class Factory implements org.apache.thrift.TServiceClientFactory<Client> {
-
 
59
      public Factory() {}
-
 
60
      public Client getClient(org.apache.thrift.protocol.TProtocol prot) {
61
    public TProtocol getInputProtocol()
61
        return new Client(prot);
62
    {
62
      }
-
 
63
      public Client getClient(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
63
      return this.iprot_;
64
        return new Client(iprot, oprot);
-
 
65
      }
64
    }
66
    }
65
 
67
 
66
    public TProtocol getOutputProtocol()
68
    public Client(org.apache.thrift.protocol.TProtocol prot)
67
    {
69
    {
68
      return this.oprot_;
70
      super(prot, prot);
69
    }
71
    }
70
 
72
 
-
 
73
    public Client(org.apache.thrift.protocol.TProtocol iprot, org.apache.thrift.protocol.TProtocol oprot) {
-
 
74
      super(iprot, oprot);
-
 
75
    }
-
 
76
 
71
    public void sayHello(String message) throws TException
77
    public void sayHello(String message) throws org.apache.thrift.TException
72
    {
78
    {
73
      send_sayHello(message);
79
      send_sayHello(message);
74
      recv_sayHello();
80
      recv_sayHello();
75
    }
81
    }
76
 
82
 
77
    public void send_sayHello(String message) throws TException
83
    public void send_sayHello(String message) throws org.apache.thrift.TException
78
    {
84
    {
79
      oprot_.writeMessageBegin(new TMessage("sayHello", TMessageType.CALL, seqid_));
-
 
80
      sayHello_args args = new sayHello_args();
85
      sayHello_args args = new sayHello_args();
81
      args.message = message;
86
      args.setMessage(message);
82
      args.write(oprot_);
-
 
83
      oprot_.writeMessageEnd();
-
 
84
      oprot_.getTransport().flush();
87
      sendBase("sayHello", args);
85
    }
88
    }
86
 
89
 
87
    public void recv_sayHello() throws TException
90
    public void recv_sayHello() throws org.apache.thrift.TException
88
    {
91
    {
89
      TMessage msg = iprot_.readMessageBegin();
-
 
90
      if (msg.type == TMessageType.EXCEPTION) {
-
 
91
        TApplicationException x = TApplicationException.read(iprot_);
-
 
92
        iprot_.readMessageEnd();
-
 
93
        throw x;
-
 
94
      }
-
 
95
      sayHello_result result = new sayHello_result();
92
      sayHello_result result = new sayHello_result();
96
      result.read(iprot_);
-
 
97
      iprot_.readMessageEnd();
93
      receiveBase(result, "sayHello");
98
      return;
94
      return;
99
    }
95
    }
100
 
96
 
101
    public String getUser(long id) throws TException
97
    public String getUser(long id) throws org.apache.thrift.TException
102
    {
98
    {
103
      send_getUser(id);
99
      send_getUser(id);
104
      return recv_getUser();
100
      return recv_getUser();
105
    }
101
    }
106
 
102
 
107
    public void send_getUser(long id) throws TException
103
    public void send_getUser(long id) throws org.apache.thrift.TException
108
    {
104
    {
109
      oprot_.writeMessageBegin(new TMessage("getUser", TMessageType.CALL, seqid_));
-
 
110
      getUser_args args = new getUser_args();
105
      getUser_args args = new getUser_args();
111
      args.id = id;
106
      args.setId(id);
112
      args.write(oprot_);
-
 
113
      oprot_.writeMessageEnd();
107
      sendBase("getUser", args);
114
      oprot_.getTransport().flush();
-
 
115
    }
108
    }
116
 
109
 
117
    public String recv_getUser() throws TException
110
    public String recv_getUser() throws org.apache.thrift.TException
118
    {
111
    {
119
      TMessage msg = iprot_.readMessageBegin();
-
 
120
      if (msg.type == TMessageType.EXCEPTION) {
-
 
121
        TApplicationException x = TApplicationException.read(iprot_);
-
 
122
        iprot_.readMessageEnd();
-
 
123
        throw x;
-
 
124
      }
-
 
125
      getUser_result result = new getUser_result();
112
      getUser_result result = new getUser_result();
126
      result.read(iprot_);
-
 
127
      iprot_.readMessageEnd();
113
      receiveBase(result, "getUser");
128
      if (result.isSetSuccess()) {
114
      if (result.isSetSuccess()) {
129
        return result.success;
115
        return result.success;
130
      }
116
      }
131
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getUser failed: unknown result");
117
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getUser failed: unknown result");
132
    }
118
    }
133
 
119
 
134
    public long getAddressId() throws TException
120
    public long getAddressId() throws org.apache.thrift.TException
135
    {
121
    {
136
      send_getAddressId();
122
      send_getAddressId();
137
      return recv_getAddressId();
123
      return recv_getAddressId();
138
    }
124
    }
139
 
125
 
140
    public void send_getAddressId() throws TException
126
    public void send_getAddressId() throws org.apache.thrift.TException
141
    {
127
    {
142
      oprot_.writeMessageBegin(new TMessage("getAddressId", TMessageType.CALL, seqid_));
-
 
143
      getAddressId_args args = new getAddressId_args();
128
      getAddressId_args args = new getAddressId_args();
144
      args.write(oprot_);
-
 
145
      oprot_.writeMessageEnd();
129
      sendBase("getAddressId", args);
146
      oprot_.getTransport().flush();
-
 
147
    }
130
    }
148
 
131
 
149
    public long recv_getAddressId() throws TException
132
    public long recv_getAddressId() throws org.apache.thrift.TException
150
    {
133
    {
151
      TMessage msg = iprot_.readMessageBegin();
-
 
152
      if (msg.type == TMessageType.EXCEPTION) {
-
 
153
        TApplicationException x = TApplicationException.read(iprot_);
-
 
154
        iprot_.readMessageEnd();
-
 
155
        throw x;
-
 
156
      }
-
 
157
      getAddressId_result result = new getAddressId_result();
134
      getAddressId_result result = new getAddressId_result();
158
      result.read(iprot_);
135
      receiveBase(result, "getAddressId");
159
      iprot_.readMessageEnd();
-
 
160
      if (result.isSetSuccess()) {
136
      if (result.isSetSuccess()) {
161
        return result.success;
137
        return result.success;
162
      }
138
      }
163
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAddressId failed: unknown result");
139
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddressId failed: unknown result");
164
    }
140
    }
165
 
141
 
166
    public Address getAddress() throws TException
142
    public Address getAddress() throws org.apache.thrift.TException
167
    {
143
    {
168
      send_getAddress();
144
      send_getAddress();
169
      return recv_getAddress();
145
      return recv_getAddress();
170
    }
146
    }
171
 
147
 
172
    public void send_getAddress() throws TException
148
    public void send_getAddress() throws org.apache.thrift.TException
173
    {
149
    {
174
      oprot_.writeMessageBegin(new TMessage("getAddress", TMessageType.CALL, seqid_));
-
 
175
      getAddress_args args = new getAddress_args();
150
      getAddress_args args = new getAddress_args();
176
      args.write(oprot_);
-
 
177
      oprot_.writeMessageEnd();
151
      sendBase("getAddress", args);
178
      oprot_.getTransport().flush();
-
 
179
    }
152
    }
180
 
153
 
181
    public Address recv_getAddress() throws TException
154
    public Address recv_getAddress() throws org.apache.thrift.TException
182
    {
155
    {
183
      TMessage msg = iprot_.readMessageBegin();
-
 
184
      if (msg.type == TMessageType.EXCEPTION) {
-
 
185
        TApplicationException x = TApplicationException.read(iprot_);
-
 
186
        iprot_.readMessageEnd();
-
 
187
        throw x;
-
 
188
      }
-
 
189
      getAddress_result result = new getAddress_result();
156
      getAddress_result result = new getAddress_result();
190
      result.read(iprot_);
-
 
191
      iprot_.readMessageEnd();
157
      receiveBase(result, "getAddress");
192
      if (result.isSetSuccess()) {
158
      if (result.isSetSuccess()) {
193
        return result.success;
159
        return result.success;
194
      }
160
      }
195
      throw new TApplicationException(TApplicationException.MISSING_RESULT, "getAddress failed: unknown result");
161
      throw new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.MISSING_RESULT, "getAddress failed: unknown result");
196
    }
162
    }
197
 
163
 
198
    public void createUser(String name) throws TException
164
    public void createUser(String name) throws org.apache.thrift.TException
199
    {
165
    {
200
      send_createUser(name);
166
      send_createUser(name);
201
      recv_createUser();
167
      recv_createUser();
202
    }
168
    }
203
 
169
 
204
    public void send_createUser(String name) throws TException
170
    public void send_createUser(String name) throws org.apache.thrift.TException
205
    {
171
    {
206
      oprot_.writeMessageBegin(new TMessage("createUser", TMessageType.CALL, seqid_));
-
 
207
      createUser_args args = new createUser_args();
172
      createUser_args args = new createUser_args();
208
      args.name = name;
173
      args.setName(name);
209
      args.write(oprot_);
-
 
210
      oprot_.writeMessageEnd();
174
      sendBase("createUser", args);
211
      oprot_.getTransport().flush();
-
 
212
    }
175
    }
213
 
176
 
214
    public void recv_createUser() throws TException
177
    public void recv_createUser() throws org.apache.thrift.TException
215
    {
178
    {
216
      TMessage msg = iprot_.readMessageBegin();
-
 
217
      if (msg.type == TMessageType.EXCEPTION) {
-
 
218
        TApplicationException x = TApplicationException.read(iprot_);
-
 
219
        iprot_.readMessageEnd();
-
 
220
        throw x;
-
 
221
      }
-
 
222
      createUser_result result = new createUser_result();
179
      createUser_result result = new createUser_result();
223
      result.read(iprot_);
180
      receiveBase(result, "createUser");
224
      iprot_.readMessageEnd();
-
 
225
      return;
181
      return;
226
    }
182
    }
227
 
183
 
228
    public void closeSession() throws TException
184
    public void closeSession() throws org.apache.thrift.TException
229
    {
185
    {
230
      send_closeSession();
186
      send_closeSession();
231
      recv_closeSession();
187
      recv_closeSession();
232
    }
188
    }
233
 
189
 
234
    public void send_closeSession() throws TException
190
    public void send_closeSession() throws org.apache.thrift.TException
235
    {
191
    {
236
      oprot_.writeMessageBegin(new TMessage("closeSession", TMessageType.CALL, seqid_));
-
 
237
      closeSession_args args = new closeSession_args();
192
      closeSession_args args = new closeSession_args();
238
      args.write(oprot_);
-
 
239
      oprot_.writeMessageEnd();
193
      sendBase("closeSession", args);
240
      oprot_.getTransport().flush();
-
 
241
    }
194
    }
242
 
195
 
243
    public void recv_closeSession() throws TException
196
    public void recv_closeSession() throws org.apache.thrift.TException
244
    {
197
    {
245
      TMessage msg = iprot_.readMessageBegin();
-
 
246
      if (msg.type == TMessageType.EXCEPTION) {
-
 
247
        TApplicationException x = TApplicationException.read(iprot_);
-
 
248
        iprot_.readMessageEnd();
-
 
249
        throw x;
-
 
250
      }
-
 
251
      closeSession_result result = new closeSession_result();
198
      closeSession_result result = new closeSession_result();
252
      result.read(iprot_);
199
      receiveBase(result, "closeSession");
253
      iprot_.readMessageEnd();
-
 
254
      return;
200
      return;
255
    }
201
    }
256
 
202
 
257
  }
203
  }
258
  public static class Processor implements TProcessor {
204
  public static class AsyncClient extends org.apache.thrift.async.TAsyncClient implements AsyncIface {
259
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
205
    public static class Factory implements org.apache.thrift.async.TAsyncClientFactory<AsyncClient> {
260
    public Processor(Iface iface)
-
 
261
    {
-
 
262
      iface_ = iface;
-
 
263
      processMap_.put("sayHello", new sayHello());
-
 
264
      processMap_.put("getUser", new getUser());
-
 
265
      processMap_.put("getAddressId", new getAddressId());
206
      private org.apache.thrift.async.TAsyncClientManager clientManager;
266
      processMap_.put("getAddress", new getAddress());
207
      private org.apache.thrift.protocol.TProtocolFactory protocolFactory;
267
      processMap_.put("createUser", new createUser());
208
      public Factory(org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.protocol.TProtocolFactory protocolFactory) {
268
      processMap_.put("closeSession", new closeSession());
209
        this.clientManager = clientManager;
269
    }
-
 
270
 
-
 
271
    protected static interface ProcessFunction {
210
        this.protocolFactory = protocolFactory;
272
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException;
-
 
273
    }
211
      }
274
 
-
 
275
    private Iface iface_;
-
 
276
    protected final HashMap<String,ProcessFunction> processMap_ = new HashMap<String,ProcessFunction>();
-
 
277
 
-
 
278
    public boolean process(TProtocol iprot, TProtocol oprot) throws TException
212
      public AsyncClient getAsyncClient(org.apache.thrift.transport.TNonblockingTransport transport) {
279
    {
-
 
280
      TMessage msg = iprot.readMessageBegin();
-
 
281
      ProcessFunction fn = processMap_.get(msg.name);
-
 
282
      if (fn == null) {
-
 
283
        TProtocolUtil.skip(iprot, TType.STRUCT);
-
 
284
        iprot.readMessageEnd();
-
 
285
        TApplicationException x = new TApplicationException(TApplicationException.UNKNOWN_METHOD, "Invalid method name: '"+msg.name+"'");
-
 
286
        oprot.writeMessageBegin(new TMessage(msg.name, TMessageType.EXCEPTION, msg.seqid));
213
        return new AsyncClient(protocolFactory, clientManager, transport);
287
        x.write(oprot);
-
 
288
        oprot.writeMessageEnd();
-
 
289
        oprot.getTransport().flush();
-
 
290
        return true;
-
 
291
      }
214
      }
292
      fn.process(msg.seqid, iprot, oprot);
-
 
293
      return true;
-
 
294
    }
215
    }
295
 
216
 
-
 
217
    public AsyncClient(org.apache.thrift.protocol.TProtocolFactory protocolFactory, org.apache.thrift.async.TAsyncClientManager clientManager, org.apache.thrift.transport.TNonblockingTransport transport) {
-
 
218
      super(protocolFactory, clientManager, transport);
-
 
219
    }
-
 
220
 
-
 
221
    public void sayHello(String message, org.apache.thrift.async.AsyncMethodCallback<sayHello_call> resultHandler) throws org.apache.thrift.TException {
-
 
222
      checkReady();
-
 
223
      sayHello_call method_call = new sayHello_call(message, resultHandler, this, ___protocolFactory, ___transport);
-
 
224
      this.___currentMethod = method_call;
-
 
225
      ___manager.call(method_call);
-
 
226
    }
-
 
227
 
296
    private class sayHello implements ProcessFunction {
228
    public static class sayHello_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
229
      private String message;
297
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
230
      public sayHello_call(String message, org.apache.thrift.async.AsyncMethodCallback<sayHello_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 {
-
 
231
        super(client, protocolFactory, transport, resultHandler, false);
-
 
232
        this.message = message;
298
      {
233
      }
-
 
234
 
-
 
235
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
236
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("sayHello", org.apache.thrift.protocol.TMessageType.CALL, 0));
299
        sayHello_args args = new sayHello_args();
237
        sayHello_args args = new sayHello_args();
300
        args.read(iprot);
-
 
301
        iprot.readMessageEnd();
-
 
302
        sayHello_result result = new sayHello_result();
-
 
303
        iface_.sayHello(args.message);
238
        args.setMessage(message);
304
        oprot.writeMessageBegin(new TMessage("sayHello", TMessageType.REPLY, seqid));
-
 
305
        result.write(oprot);
239
        args.write(prot);
306
        oprot.writeMessageEnd();
240
        prot.writeMessageEnd();
307
        oprot.getTransport().flush();
-
 
308
      }
241
      }
309
 
242
 
-
 
243
      public void getResult() throws org.apache.thrift.TException {
-
 
244
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
245
          throw new IllegalStateException("Method call not finished!");
-
 
246
        }
-
 
247
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
248
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
249
        (new Client(prot)).recv_sayHello();
-
 
250
      }
310
    }
251
    }
311
 
252
 
-
 
253
    public void getUser(long id, org.apache.thrift.async.AsyncMethodCallback<getUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
254
      checkReady();
-
 
255
      getUser_call method_call = new getUser_call(id, resultHandler, this, ___protocolFactory, ___transport);
-
 
256
      this.___currentMethod = method_call;
-
 
257
      ___manager.call(method_call);
-
 
258
    }
-
 
259
 
312
    private class getUser implements ProcessFunction {
260
    public static class getUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
261
      private long id;
313
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
262
      public getUser_call(long id, org.apache.thrift.async.AsyncMethodCallback<getUser_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 {
-
 
263
        super(client, protocolFactory, transport, resultHandler, false);
-
 
264
        this.id = id;
314
      {
265
      }
-
 
266
 
-
 
267
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
268
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
315
        getUser_args args = new getUser_args();
269
        getUser_args args = new getUser_args();
-
 
270
        args.setId(id);
316
        args.read(iprot);
271
        args.write(prot);
317
        iprot.readMessageEnd();
272
        prot.writeMessageEnd();
-
 
273
      }
-
 
274
 
318
        getUser_result result = new getUser_result();
275
      public String getResult() throws org.apache.thrift.TException {
319
        result.success = iface_.getUser(args.id);
276
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
320
        oprot.writeMessageBegin(new TMessage("getUser", TMessageType.REPLY, seqid));
277
          throw new IllegalStateException("Method call not finished!");
321
        result.write(oprot);
278
        }
-
 
279
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
322
        oprot.writeMessageEnd();
280
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
323
        oprot.getTransport().flush();
281
        return (new Client(prot)).recv_getUser();
324
      }
282
      }
-
 
283
    }
325
 
284
 
-
 
285
    public void getAddressId(org.apache.thrift.async.AsyncMethodCallback<getAddressId_call> resultHandler) throws org.apache.thrift.TException {
-
 
286
      checkReady();
-
 
287
      getAddressId_call method_call = new getAddressId_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
288
      this.___currentMethod = method_call;
-
 
289
      ___manager.call(method_call);
326
    }
290
    }
327
 
291
 
328
    private class getAddressId implements ProcessFunction {
292
    public static class getAddressId_call extends org.apache.thrift.async.TAsyncMethodCall {
329
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
293
      public getAddressId_call(org.apache.thrift.async.AsyncMethodCallback<getAddressId_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 {
-
 
294
        super(client, protocolFactory, transport, resultHandler, false);
330
      {
295
      }
-
 
296
 
-
 
297
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
298
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddressId", org.apache.thrift.protocol.TMessageType.CALL, 0));
331
        getAddressId_args args = new getAddressId_args();
299
        getAddressId_args args = new getAddressId_args();
332
        args.read(iprot);
300
        args.write(prot);
333
        iprot.readMessageEnd();
-
 
334
        getAddressId_result result = new getAddressId_result();
-
 
335
        result.success = iface_.getAddressId();
-
 
336
        result.setSuccessIsSet(true);
-
 
337
        oprot.writeMessageBegin(new TMessage("getAddressId", TMessageType.REPLY, seqid));
-
 
338
        result.write(oprot);
-
 
339
        oprot.writeMessageEnd();
301
        prot.writeMessageEnd();
340
        oprot.getTransport().flush();
-
 
341
      }
302
      }
342
 
303
 
-
 
304
      public long getResult() throws org.apache.thrift.TException {
-
 
305
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
306
          throw new IllegalStateException("Method call not finished!");
-
 
307
        }
-
 
308
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
309
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
310
        return (new Client(prot)).recv_getAddressId();
-
 
311
      }
343
    }
312
    }
344
 
313
 
-
 
314
    public void getAddress(org.apache.thrift.async.AsyncMethodCallback<getAddress_call> resultHandler) throws org.apache.thrift.TException {
-
 
315
      checkReady();
-
 
316
      getAddress_call method_call = new getAddress_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
317
      this.___currentMethod = method_call;
-
 
318
      ___manager.call(method_call);
-
 
319
    }
-
 
320
 
345
    private class getAddress implements ProcessFunction {
321
    public static class getAddress_call extends org.apache.thrift.async.TAsyncMethodCall {
346
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
322
      public getAddress_call(org.apache.thrift.async.AsyncMethodCallback<getAddress_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 {
-
 
323
        super(client, protocolFactory, transport, resultHandler, false);
347
      {
324
      }
-
 
325
 
-
 
326
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
327
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("getAddress", org.apache.thrift.protocol.TMessageType.CALL, 0));
348
        getAddress_args args = new getAddress_args();
328
        getAddress_args args = new getAddress_args();
349
        args.read(iprot);
329
        args.write(prot);
350
        iprot.readMessageEnd();
330
        prot.writeMessageEnd();
-
 
331
      }
-
 
332
 
351
        getAddress_result result = new getAddress_result();
333
      public Address getResult() throws org.apache.thrift.TException {
352
        result.success = iface_.getAddress();
334
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
353
        oprot.writeMessageBegin(new TMessage("getAddress", TMessageType.REPLY, seqid));
335
          throw new IllegalStateException("Method call not finished!");
354
        result.write(oprot);
336
        }
-
 
337
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
355
        oprot.writeMessageEnd();
338
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
356
        oprot.getTransport().flush();
339
        return (new Client(prot)).recv_getAddress();
357
      }
340
      }
-
 
341
    }
358
 
342
 
-
 
343
    public void createUser(String name, org.apache.thrift.async.AsyncMethodCallback<createUser_call> resultHandler) throws org.apache.thrift.TException {
-
 
344
      checkReady();
-
 
345
      createUser_call method_call = new createUser_call(name, resultHandler, this, ___protocolFactory, ___transport);
-
 
346
      this.___currentMethod = method_call;
-
 
347
      ___manager.call(method_call);
359
    }
348
    }
360
 
349
 
361
    private class createUser implements ProcessFunction {
350
    public static class createUser_call extends org.apache.thrift.async.TAsyncMethodCall {
-
 
351
      private String name;
362
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
352
      public createUser_call(String name, org.apache.thrift.async.AsyncMethodCallback<createUser_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 {
-
 
353
        super(client, protocolFactory, transport, resultHandler, false);
-
 
354
        this.name = name;
363
      {
355
      }
-
 
356
 
-
 
357
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
358
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("createUser", org.apache.thrift.protocol.TMessageType.CALL, 0));
364
        createUser_args args = new createUser_args();
359
        createUser_args args = new createUser_args();
365
        args.read(iprot);
360
        args.setName(name);
366
        iprot.readMessageEnd();
-
 
367
        createUser_result result = new createUser_result();
-
 
368
        iface_.createUser(args.name);
-
 
369
        oprot.writeMessageBegin(new TMessage("createUser", TMessageType.REPLY, seqid));
-
 
370
        result.write(oprot);
361
        args.write(prot);
371
        oprot.writeMessageEnd();
362
        prot.writeMessageEnd();
372
        oprot.getTransport().flush();
-
 
373
      }
363
      }
374
 
364
 
-
 
365
      public void getResult() throws org.apache.thrift.TException {
-
 
366
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
367
          throw new IllegalStateException("Method call not finished!");
-
 
368
        }
-
 
369
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
370
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
371
        (new Client(prot)).recv_createUser();
-
 
372
      }
375
    }
373
    }
376
 
374
 
-
 
375
    public void closeSession(org.apache.thrift.async.AsyncMethodCallback<closeSession_call> resultHandler) throws org.apache.thrift.TException {
-
 
376
      checkReady();
-
 
377
      closeSession_call method_call = new closeSession_call(resultHandler, this, ___protocolFactory, ___transport);
-
 
378
      this.___currentMethod = method_call;
-
 
379
      ___manager.call(method_call);
-
 
380
    }
-
 
381
 
377
    private class closeSession implements ProcessFunction {
382
    public static class closeSession_call extends org.apache.thrift.async.TAsyncMethodCall {
378
      public void process(int seqid, TProtocol iprot, TProtocol oprot) throws TException
383
      public closeSession_call(org.apache.thrift.async.AsyncMethodCallback<closeSession_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 {
-
 
384
        super(client, protocolFactory, transport, resultHandler, false);
379
      {
385
      }
-
 
386
 
-
 
387
      public void write_args(org.apache.thrift.protocol.TProtocol prot) throws org.apache.thrift.TException {
-
 
388
        prot.writeMessageBegin(new org.apache.thrift.protocol.TMessage("closeSession", org.apache.thrift.protocol.TMessageType.CALL, 0));
380
        closeSession_args args = new closeSession_args();
389
        closeSession_args args = new closeSession_args();
381
        args.read(iprot);
390
        args.write(prot);
382
        iprot.readMessageEnd();
-
 
383
        closeSession_result result = new closeSession_result();
-
 
384
        iface_.closeSession();
-
 
385
        oprot.writeMessageBegin(new TMessage("closeSession", TMessageType.REPLY, seqid));
-
 
386
        result.write(oprot);
-
 
387
        oprot.writeMessageEnd();
391
        prot.writeMessageEnd();
388
        oprot.getTransport().flush();
-
 
389
      }
392
      }
390
 
393
 
-
 
394
      public void getResult() throws org.apache.thrift.TException {
-
 
395
        if (getState() != org.apache.thrift.async.TAsyncMethodCall.State.RESPONSE_READ) {
-
 
396
          throw new IllegalStateException("Method call not finished!");
-
 
397
        }
-
 
398
        org.apache.thrift.transport.TMemoryInputTransport memoryTransport = new org.apache.thrift.transport.TMemoryInputTransport(getFrameBuffer().array());
-
 
399
        org.apache.thrift.protocol.TProtocol prot = client.getProtocolFactory().getProtocol(memoryTransport);
-
 
400
        (new Client(prot)).recv_closeSession();
-
 
401
      }
391
    }
402
    }
392
 
403
 
393
  }
404
  }
394
 
405
 
395
  public static class sayHello_args implements TBase<sayHello_args._Fields>, java.io.Serializable, Cloneable, Comparable<sayHello_args>   {
406
  public static class Processor<I extends Iface> extends org.apache.thrift.TBaseProcessor implements org.apache.thrift.TProcessor {
396
    private static final TStruct STRUCT_DESC = new TStruct("sayHello_args");
407
    private static final Logger LOGGER = LoggerFactory.getLogger(Processor.class.getName());
-
 
408
    public Processor(I iface) {
-
 
409
      super(iface, getProcessMap(new HashMap<String, org.apache.thrift.ProcessFunction<I, ? extends org.apache.thrift.TBase>>()));
-
 
410
    }
-
 
411
 
-
 
412
    protected Processor(I iface, Map<String,  org.apache.thrift.ProcessFunction<I, ? extends  org.apache.thrift.TBase>> processMap) {
-
 
413
      super(iface, getProcessMap(processMap));
-
 
414
    }
-
 
415
 
-
 
416
    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) {
-
 
417
      processMap.put("sayHello", new sayHello());
-
 
418
      processMap.put("getUser", new getUser());
-
 
419
      processMap.put("getAddressId", new getAddressId());
-
 
420
      processMap.put("getAddress", new getAddress());
-
 
421
      processMap.put("createUser", new createUser());
-
 
422
      processMap.put("closeSession", new closeSession());
-
 
423
      return processMap;
-
 
424
    }
-
 
425
 
-
 
426
    private static class sayHello<I extends Iface> extends org.apache.thrift.ProcessFunction<I, sayHello_args> {
-
 
427
      public sayHello() {
-
 
428
        super("sayHello");
-
 
429
      }
-
 
430
 
-
 
431
      protected sayHello_args getEmptyArgsInstance() {
-
 
432
        return new sayHello_args();
-
 
433
      }
397
 
434
 
398
    private static final TField MESSAGE_FIELD_DESC = new TField("message", TType.STRING, (short)1);
435
      protected sayHello_result getResult(I iface, sayHello_args args) throws org.apache.thrift.TException {
-
 
436
        sayHello_result result = new sayHello_result();
-
 
437
        iface.sayHello(args.message);
-
 
438
        return result;
-
 
439
      }
-
 
440
    }
399
 
441
 
-
 
442
    private static class getUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getUser_args> {
-
 
443
      public getUser() {
-
 
444
        super("getUser");
-
 
445
      }
-
 
446
 
-
 
447
      protected getUser_args getEmptyArgsInstance() {
-
 
448
        return new getUser_args();
-
 
449
      }
-
 
450
 
-
 
451
      protected getUser_result getResult(I iface, getUser_args args) throws org.apache.thrift.TException {
-
 
452
        getUser_result result = new getUser_result();
-
 
453
        result.success = iface.getUser(args.id);
-
 
454
        return result;
-
 
455
      }
-
 
456
    }
-
 
457
 
-
 
458
    private static class getAddressId<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddressId_args> {
-
 
459
      public getAddressId() {
-
 
460
        super("getAddressId");
-
 
461
      }
-
 
462
 
-
 
463
      protected getAddressId_args getEmptyArgsInstance() {
-
 
464
        return new getAddressId_args();
-
 
465
      }
-
 
466
 
-
 
467
      protected getAddressId_result getResult(I iface, getAddressId_args args) throws org.apache.thrift.TException {
-
 
468
        getAddressId_result result = new getAddressId_result();
-
 
469
        result.success = iface.getAddressId();
-
 
470
        result.setSuccessIsSet(true);
-
 
471
        return result;
-
 
472
      }
-
 
473
    }
-
 
474
 
-
 
475
    private static class getAddress<I extends Iface> extends org.apache.thrift.ProcessFunction<I, getAddress_args> {
-
 
476
      public getAddress() {
-
 
477
        super("getAddress");
-
 
478
      }
-
 
479
 
-
 
480
      protected getAddress_args getEmptyArgsInstance() {
-
 
481
        return new getAddress_args();
-
 
482
      }
-
 
483
 
-
 
484
      protected getAddress_result getResult(I iface, getAddress_args args) throws org.apache.thrift.TException {
-
 
485
        getAddress_result result = new getAddress_result();
-
 
486
        result.success = iface.getAddress();
-
 
487
        return result;
-
 
488
      }
-
 
489
    }
-
 
490
 
-
 
491
    private static class createUser<I extends Iface> extends org.apache.thrift.ProcessFunction<I, createUser_args> {
-
 
492
      public createUser() {
-
 
493
        super("createUser");
-
 
494
      }
-
 
495
 
-
 
496
      protected createUser_args getEmptyArgsInstance() {
-
 
497
        return new createUser_args();
-
 
498
      }
-
 
499
 
-
 
500
      protected createUser_result getResult(I iface, createUser_args args) throws org.apache.thrift.TException {
-
 
501
        createUser_result result = new createUser_result();
-
 
502
        iface.createUser(args.name);
-
 
503
        return result;
-
 
504
      }
-
 
505
    }
-
 
506
 
-
 
507
    private static class closeSession<I extends Iface> extends org.apache.thrift.ProcessFunction<I, closeSession_args> {
-
 
508
      public closeSession() {
-
 
509
        super("closeSession");
-
 
510
      }
-
 
511
 
-
 
512
      protected closeSession_args getEmptyArgsInstance() {
-
 
513
        return new closeSession_args();
-
 
514
      }
-
 
515
 
-
 
516
      protected closeSession_result getResult(I iface, closeSession_args args) throws org.apache.thrift.TException {
-
 
517
        closeSession_result result = new closeSession_result();
-
 
518
        iface.closeSession();
-
 
519
        return result;
-
 
520
      }
-
 
521
    }
-
 
522
 
-
 
523
  }
-
 
524
 
-
 
525
  public static class sayHello_args implements org.apache.thrift.TBase<sayHello_args, sayHello_args._Fields>, java.io.Serializable, Cloneable   {
-
 
526
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sayHello_args");
-
 
527
 
-
 
528
    private static final org.apache.thrift.protocol.TField MESSAGE_FIELD_DESC = new org.apache.thrift.protocol.TField("message", org.apache.thrift.protocol.TType.STRING, (short)1);
-
 
529
 
400
    private String message;
530
    private String message; // required
401
 
531
 
402
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
532
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
403
    public enum _Fields implements TFieldIdEnum {
533
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
404
      MESSAGE((short)1, "message");
534
      MESSAGE((short)1, "message");
405
 
535
 
406
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
407
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
536
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
408
 
537
 
409
      static {
538
      static {
410
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
539
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
411
          byId.put((int)field._thriftId, field);
-
 
412
          byName.put(field.getFieldName(), field);
540
          byName.put(field.getFieldName(), field);
413
        }
541
        }
414
      }
542
      }
415
 
543
 
416
      /**
544
      /**
417
       * Find the _Fields constant that matches fieldId, or null if its not found.
545
       * Find the _Fields constant that matches fieldId, or null if its not found.
418
       */
546
       */
419
      public static _Fields findByThriftId(int fieldId) {
547
      public static _Fields findByThriftId(int fieldId) {
420
        return byId.get(fieldId);
548
        switch(fieldId) {
-
 
549
          case 1: // MESSAGE
-
 
550
            return MESSAGE;
-
 
551
          default:
-
 
552
            return null;
-
 
553
        }
421
      }
554
      }
422
 
555
 
423
      /**
556
      /**
424
       * Find the _Fields constant that matches fieldId, throwing an exception
557
       * Find the _Fields constant that matches fieldId, throwing an exception
425
       * if it is not found.
558
       * if it is not found.
Line 454... Line 587...
454
      }
587
      }
455
    }
588
    }
456
 
589
 
457
    // isset id assignments
590
    // isset id assignments
458
 
591
 
459
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
592
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
460
      put(_Fields.MESSAGE, new FieldMetaData("message", TFieldRequirementType.DEFAULT, 
-
 
461
          new FieldValueMetaData(TType.STRING)));
-
 
462
    }});
-
 
463
 
-
 
464
    static {
593
    static {
-
 
594
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
595
      tmpMap.put(_Fields.MESSAGE, new org.apache.thrift.meta_data.FieldMetaData("message", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
596
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
597
      metaDataMap = Collections.unmodifiableMap(tmpMap);
465
      FieldMetaData.addStructMetaDataMap(sayHello_args.class, metaDataMap);
598
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sayHello_args.class, metaDataMap);
466
    }
599
    }
467
 
600
 
468
    public sayHello_args() {
601
    public sayHello_args() {
469
    }
602
    }
470
 
603
 
Line 486... Line 619...
486
 
619
 
487
    public sayHello_args deepCopy() {
620
    public sayHello_args deepCopy() {
488
      return new sayHello_args(this);
621
      return new sayHello_args(this);
489
    }
622
    }
490
 
623
 
491
    @Deprecated
624
    @Override
492
    public sayHello_args clone() {
625
    public void clear() {
493
      return new sayHello_args(this);
626
      this.message = null;
494
    }
627
    }
495
 
628
 
496
    public String getMessage() {
629
    public String getMessage() {
497
      return this.message;
630
      return this.message;
498
    }
631
    }
499
 
632
 
500
    public sayHello_args setMessage(String message) {
633
    public void setMessage(String message) {
501
      this.message = message;
634
      this.message = message;
502
      return this;
-
 
503
    }
635
    }
504
 
636
 
505
    public void unsetMessage() {
637
    public void unsetMessage() {
506
      this.message = null;
638
      this.message = null;
507
    }
639
    }
508
 
640
 
509
    /** Returns true if field message is set (has been asigned a value) and false otherwise */
641
    /** Returns true if field message is set (has been assigned a value) and false otherwise */
510
    public boolean isSetMessage() {
642
    public boolean isSetMessage() {
511
      return this.message != null;
643
      return this.message != null;
512
    }
644
    }
513
 
645
 
514
    public void setMessageIsSet(boolean value) {
646
    public void setMessageIsSet(boolean value) {
Line 528... Line 660...
528
        break;
660
        break;
529
 
661
 
530
      }
662
      }
531
    }
663
    }
532
 
664
 
533
    public void setFieldValue(int fieldID, Object value) {
-
 
534
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
535
    }
-
 
536
 
-
 
537
    public Object getFieldValue(_Fields field) {
665
    public Object getFieldValue(_Fields field) {
538
      switch (field) {
666
      switch (field) {
539
      case MESSAGE:
667
      case MESSAGE:
540
        return getMessage();
668
        return getMessage();
541
 
669
 
542
      }
670
      }
543
      throw new IllegalStateException();
671
      throw new IllegalStateException();
544
    }
672
    }
545
 
673
 
546
    public Object getFieldValue(int fieldId) {
-
 
547
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
548
    }
-
 
549
 
-
 
550
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
674
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
551
    public boolean isSet(_Fields field) {
675
    public boolean isSet(_Fields field) {
-
 
676
      if (field == null) {
-
 
677
        throw new IllegalArgumentException();
-
 
678
      }
-
 
679
 
552
      switch (field) {
680
      switch (field) {
553
      case MESSAGE:
681
      case MESSAGE:
554
        return isSetMessage();
682
        return isSetMessage();
555
      }
683
      }
556
      throw new IllegalStateException();
684
      throw new IllegalStateException();
557
    }
685
    }
558
 
686
 
559
    public boolean isSet(int fieldID) {
-
 
560
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
561
    }
-
 
562
 
-
 
563
    @Override
687
    @Override
564
    public boolean equals(Object that) {
688
    public boolean equals(Object that) {
565
      if (that == null)
689
      if (that == null)
566
        return false;
690
        return false;
567
      if (that instanceof sayHello_args)
691
      if (that instanceof sayHello_args)
Line 596... Line 720...
596
      }
720
      }
597
 
721
 
598
      int lastComparison = 0;
722
      int lastComparison = 0;
599
      sayHello_args typedOther = (sayHello_args)other;
723
      sayHello_args typedOther = (sayHello_args)other;
600
 
724
 
601
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(isSetMessage());
725
      lastComparison = Boolean.valueOf(isSetMessage()).compareTo(typedOther.isSetMessage());
602
      if (lastComparison != 0) {
726
      if (lastComparison != 0) {
603
        return lastComparison;
727
        return lastComparison;
604
      }
728
      }
-
 
729
      if (isSetMessage()) {
605
      lastComparison = TBaseHelper.compareTo(message, typedOther.message);
730
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.message, typedOther.message);
606
      if (lastComparison != 0) {
731
        if (lastComparison != 0) {
607
        return lastComparison;
732
          return lastComparison;
-
 
733
        }
608
      }
734
      }
609
      return 0;
735
      return 0;
610
    }
736
    }
611
 
737
 
-
 
738
    public _Fields fieldForId(int fieldId) {
-
 
739
      return _Fields.findByThriftId(fieldId);
-
 
740
    }
-
 
741
 
612
    public void read(TProtocol iprot) throws TException {
742
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
613
      TField field;
743
      org.apache.thrift.protocol.TField field;
614
      iprot.readStructBegin();
744
      iprot.readStructBegin();
615
      while (true)
745
      while (true)
616
      {
746
      {
617
        field = iprot.readFieldBegin();
747
        field = iprot.readFieldBegin();
618
        if (field.type == TType.STOP) { 
748
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
619
          break;
749
          break;
620
        }
750
        }
621
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
622
        if (fieldId == null) {
-
 
623
          TProtocolUtil.skip(iprot, field.type);
-
 
624
        } else {
-
 
625
          switch (fieldId) {
751
        switch (field.id) {
626
            case MESSAGE:
752
          case 1: // MESSAGE
627
              if (field.type == TType.STRING) {
753
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
628
                this.message = iprot.readString();
754
              this.message = iprot.readString();
629
              } else { 
755
            } else { 
630
                TProtocolUtil.skip(iprot, field.type);
756
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
631
              }
757
            }
632
              break;
758
            break;
633
          }
759
          default:
634
          iprot.readFieldEnd();
760
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
635
        }
761
        }
-
 
762
        iprot.readFieldEnd();
636
      }
763
      }
637
      iprot.readStructEnd();
764
      iprot.readStructEnd();
638
      validate();
765
      validate();
639
    }
766
    }
640
 
767
 
641
    public void write(TProtocol oprot) throws TException {
768
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
642
      validate();
769
      validate();
643
 
770
 
644
      oprot.writeStructBegin(STRUCT_DESC);
771
      oprot.writeStructBegin(STRUCT_DESC);
645
      if (this.message != null) {
772
      if (this.message != null) {
646
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
773
        oprot.writeFieldBegin(MESSAGE_FIELD_DESC);
Line 665... Line 792...
665
      first = false;
792
      first = false;
666
      sb.append(")");
793
      sb.append(")");
667
      return sb.toString();
794
      return sb.toString();
668
    }
795
    }
669
 
796
 
670
    public void validate() throws TException {
797
    public void validate() throws org.apache.thrift.TException {
671
      // check for required fields
798
      // check for required fields
672
    }
799
    }
673
 
800
 
-
 
801
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
802
      try {
-
 
803
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
804
      } catch (org.apache.thrift.TException te) {
-
 
805
        throw new java.io.IOException(te);
-
 
806
      }
-
 
807
    }
-
 
808
 
-
 
809
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
810
      try {
-
 
811
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
812
      } catch (org.apache.thrift.TException te) {
-
 
813
        throw new java.io.IOException(te);
-
 
814
      }
-
 
815
    }
-
 
816
 
674
  }
817
  }
675
 
818
 
676
  public static class sayHello_result implements TBase<sayHello_result._Fields>, java.io.Serializable, Cloneable, Comparable<sayHello_result>   {
819
  public static class sayHello_result implements org.apache.thrift.TBase<sayHello_result, sayHello_result._Fields>, java.io.Serializable, Cloneable   {
677
    private static final TStruct STRUCT_DESC = new TStruct("sayHello_result");
820
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("sayHello_result");
678
 
821
 
679
 
822
 
680
 
823
 
681
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
824
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
682
    public enum _Fields implements TFieldIdEnum {
825
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
683
;
826
;
684
 
827
 
685
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
686
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
828
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
687
 
829
 
688
      static {
830
      static {
689
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
831
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
690
          byId.put((int)field._thriftId, field);
-
 
691
          byName.put(field.getFieldName(), field);
832
          byName.put(field.getFieldName(), field);
692
        }
833
        }
693
      }
834
      }
694
 
835
 
695
      /**
836
      /**
696
       * Find the _Fields constant that matches fieldId, or null if its not found.
837
       * Find the _Fields constant that matches fieldId, or null if its not found.
697
       */
838
       */
698
      public static _Fields findByThriftId(int fieldId) {
839
      public static _Fields findByThriftId(int fieldId) {
699
        return byId.get(fieldId);
840
        switch(fieldId) {
-
 
841
          default:
-
 
842
            return null;
-
 
843
        }
700
      }
844
      }
701
 
845
 
702
      /**
846
      /**
703
       * Find the _Fields constant that matches fieldId, throwing an exception
847
       * Find the _Fields constant that matches fieldId, throwing an exception
704
       * if it is not found.
848
       * if it is not found.
Line 730... Line 874...
730
 
874
 
731
      public String getFieldName() {
875
      public String getFieldName() {
732
        return _fieldName;
876
        return _fieldName;
733
      }
877
      }
734
    }
878
    }
735
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
879
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
736
    }});
-
 
737
 
-
 
738
    static {
880
    static {
-
 
881
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
882
      metaDataMap = Collections.unmodifiableMap(tmpMap);
739
      FieldMetaData.addStructMetaDataMap(sayHello_result.class, metaDataMap);
883
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(sayHello_result.class, metaDataMap);
740
    }
884
    }
741
 
885
 
742
    public sayHello_result() {
886
    public sayHello_result() {
743
    }
887
    }
744
 
888
 
Line 750... Line 894...
750
 
894
 
751
    public sayHello_result deepCopy() {
895
    public sayHello_result deepCopy() {
752
      return new sayHello_result(this);
896
      return new sayHello_result(this);
753
    }
897
    }
754
 
898
 
755
    @Deprecated
899
    @Override
756
    public sayHello_result clone() {
900
    public void clear() {
757
      return new sayHello_result(this);
-
 
758
    }
901
    }
759
 
902
 
760
    public void setFieldValue(_Fields field, Object value) {
903
    public void setFieldValue(_Fields field, Object value) {
761
      switch (field) {
904
      switch (field) {
762
      }
905
      }
763
    }
906
    }
764
 
907
 
765
    public void setFieldValue(int fieldID, Object value) {
-
 
766
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
767
    }
-
 
768
 
-
 
769
    public Object getFieldValue(_Fields field) {
908
    public Object getFieldValue(_Fields field) {
770
      switch (field) {
909
      switch (field) {
771
      }
910
      }
772
      throw new IllegalStateException();
911
      throw new IllegalStateException();
773
    }
912
    }
774
 
913
 
775
    public Object getFieldValue(int fieldId) {
-
 
776
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
777
    }
-
 
778
 
-
 
779
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
914
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
780
    public boolean isSet(_Fields field) {
915
    public boolean isSet(_Fields field) {
-
 
916
      if (field == null) {
-
 
917
        throw new IllegalArgumentException();
-
 
918
      }
-
 
919
 
781
      switch (field) {
920
      switch (field) {
782
      }
921
      }
783
      throw new IllegalStateException();
922
      throw new IllegalStateException();
784
    }
923
    }
785
 
924
 
786
    public boolean isSet(int fieldID) {
-
 
787
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
788
    }
-
 
789
 
-
 
790
    @Override
925
    @Override
791
    public boolean equals(Object that) {
926
    public boolean equals(Object that) {
792
      if (that == null)
927
      if (that == null)
793
        return false;
928
        return false;
794
      if (that instanceof sayHello_result)
929
      if (that instanceof sayHello_result)
Line 817... Line 952...
817
      sayHello_result typedOther = (sayHello_result)other;
952
      sayHello_result typedOther = (sayHello_result)other;
818
 
953
 
819
      return 0;
954
      return 0;
820
    }
955
    }
821
 
956
 
-
 
957
    public _Fields fieldForId(int fieldId) {
-
 
958
      return _Fields.findByThriftId(fieldId);
-
 
959
    }
-
 
960
 
822
    public void read(TProtocol iprot) throws TException {
961
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
823
      TField field;
962
      org.apache.thrift.protocol.TField field;
824
      iprot.readStructBegin();
963
      iprot.readStructBegin();
825
      while (true)
964
      while (true)
826
      {
965
      {
827
        field = iprot.readFieldBegin();
966
        field = iprot.readFieldBegin();
828
        if (field.type == TType.STOP) { 
967
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
829
          break;
968
          break;
830
        }
969
        }
831
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
832
        if (fieldId == null) {
-
 
833
          TProtocolUtil.skip(iprot, field.type);
-
 
834
        } else {
-
 
835
          switch (fieldId) {
970
        switch (field.id) {
836
          }
971
          default:
837
          iprot.readFieldEnd();
972
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
838
        }
973
        }
-
 
974
        iprot.readFieldEnd();
839
      }
975
      }
840
      iprot.readStructEnd();
976
      iprot.readStructEnd();
841
      validate();
977
      validate();
842
    }
978
    }
843
 
979
 
844
    public void write(TProtocol oprot) throws TException {
980
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
845
      oprot.writeStructBegin(STRUCT_DESC);
981
      oprot.writeStructBegin(STRUCT_DESC);
846
 
982
 
847
      oprot.writeFieldStop();
983
      oprot.writeFieldStop();
848
      oprot.writeStructEnd();
984
      oprot.writeStructEnd();
849
    }
985
    }
Line 855... Line 991...
855
 
991
 
856
      sb.append(")");
992
      sb.append(")");
857
      return sb.toString();
993
      return sb.toString();
858
    }
994
    }
859
 
995
 
860
    public void validate() throws TException {
996
    public void validate() throws org.apache.thrift.TException {
861
      // check for required fields
997
      // check for required fields
862
    }
998
    }
863
 
999
 
-
 
1000
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1001
      try {
-
 
1002
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1003
      } catch (org.apache.thrift.TException te) {
-
 
1004
        throw new java.io.IOException(te);
-
 
1005
      }
-
 
1006
    }
-
 
1007
 
-
 
1008
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1009
      try {
-
 
1010
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1011
      } catch (org.apache.thrift.TException te) {
-
 
1012
        throw new java.io.IOException(te);
-
 
1013
      }
-
 
1014
    }
-
 
1015
 
864
  }
1016
  }
865
 
1017
 
866
  public static class getUser_args implements TBase<getUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<getUser_args>   {
1018
  public static class getUser_args implements org.apache.thrift.TBase<getUser_args, getUser_args._Fields>, java.io.Serializable, Cloneable   {
867
    private static final TStruct STRUCT_DESC = new TStruct("getUser_args");
1019
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_args");
868
 
1020
 
869
    private static final TField ID_FIELD_DESC = new TField("id", TType.I64, (short)1);
1021
    private static final org.apache.thrift.protocol.TField ID_FIELD_DESC = new org.apache.thrift.protocol.TField("id", org.apache.thrift.protocol.TType.I64, (short)1);
870
 
1022
 
871
    private long id;
1023
    private long id; // required
872
 
1024
 
873
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1025
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
874
    public enum _Fields implements TFieldIdEnum {
1026
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
875
      ID((short)1, "id");
1027
      ID((short)1, "id");
876
 
1028
 
877
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
878
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1029
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
879
 
1030
 
880
      static {
1031
      static {
881
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1032
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
882
          byId.put((int)field._thriftId, field);
-
 
883
          byName.put(field.getFieldName(), field);
1033
          byName.put(field.getFieldName(), field);
884
        }
1034
        }
885
      }
1035
      }
886
 
1036
 
887
      /**
1037
      /**
888
       * Find the _Fields constant that matches fieldId, or null if its not found.
1038
       * Find the _Fields constant that matches fieldId, or null if its not found.
889
       */
1039
       */
890
      public static _Fields findByThriftId(int fieldId) {
1040
      public static _Fields findByThriftId(int fieldId) {
891
        return byId.get(fieldId);
1041
        switch(fieldId) {
-
 
1042
          case 1: // ID
-
 
1043
            return ID;
-
 
1044
          default:
-
 
1045
            return null;
-
 
1046
        }
892
      }
1047
      }
893
 
1048
 
894
      /**
1049
      /**
895
       * Find the _Fields constant that matches fieldId, throwing an exception
1050
       * Find the _Fields constant that matches fieldId, throwing an exception
896
       * if it is not found.
1051
       * if it is not found.
Line 927... Line 1082...
927
 
1082
 
928
    // isset id assignments
1083
    // isset id assignments
929
    private static final int __ID_ISSET_ID = 0;
1084
    private static final int __ID_ISSET_ID = 0;
930
    private BitSet __isset_bit_vector = new BitSet(1);
1085
    private BitSet __isset_bit_vector = new BitSet(1);
931
 
1086
 
932
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1087
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
933
      put(_Fields.ID, new FieldMetaData("id", TFieldRequirementType.DEFAULT, 
-
 
934
          new FieldValueMetaData(TType.I64)));
-
 
935
    }});
-
 
936
 
-
 
937
    static {
1088
    static {
-
 
1089
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1090
      tmpMap.put(_Fields.ID, new org.apache.thrift.meta_data.FieldMetaData("id", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1091
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1092
      metaDataMap = Collections.unmodifiableMap(tmpMap);
938
      FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap);
1093
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_args.class, metaDataMap);
939
    }
1094
    }
940
 
1095
 
941
    public getUser_args() {
1096
    public getUser_args() {
942
    }
1097
    }
943
 
1098
 
Line 960... Line 1115...
960
 
1115
 
961
    public getUser_args deepCopy() {
1116
    public getUser_args deepCopy() {
962
      return new getUser_args(this);
1117
      return new getUser_args(this);
963
    }
1118
    }
964
 
1119
 
965
    @Deprecated
1120
    @Override
966
    public getUser_args clone() {
1121
    public void clear() {
967
      return new getUser_args(this);
1122
      setIdIsSet(false);
-
 
1123
      this.id = 0;
968
    }
1124
    }
969
 
1125
 
970
    public long getId() {
1126
    public long getId() {
971
      return this.id;
1127
      return this.id;
972
    }
1128
    }
973
 
1129
 
974
    public getUser_args setId(long id) {
1130
    public void setId(long id) {
975
      this.id = id;
1131
      this.id = id;
976
      setIdIsSet(true);
1132
      setIdIsSet(true);
977
      return this;
-
 
978
    }
1133
    }
979
 
1134
 
980
    public void unsetId() {
1135
    public void unsetId() {
981
      __isset_bit_vector.clear(__ID_ISSET_ID);
1136
      __isset_bit_vector.clear(__ID_ISSET_ID);
982
    }
1137
    }
983
 
1138
 
984
    /** Returns true if field id is set (has been asigned a value) and false otherwise */
1139
    /** Returns true if field id is set (has been assigned a value) and false otherwise */
985
    public boolean isSetId() {
1140
    public boolean isSetId() {
986
      return __isset_bit_vector.get(__ID_ISSET_ID);
1141
      return __isset_bit_vector.get(__ID_ISSET_ID);
987
    }
1142
    }
988
 
1143
 
989
    public void setIdIsSet(boolean value) {
1144
    public void setIdIsSet(boolean value) {
Line 1001... Line 1156...
1001
        break;
1156
        break;
1002
 
1157
 
1003
      }
1158
      }
1004
    }
1159
    }
1005
 
1160
 
1006
    public void setFieldValue(int fieldID, Object value) {
-
 
1007
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1008
    }
-
 
1009
 
-
 
1010
    public Object getFieldValue(_Fields field) {
1161
    public Object getFieldValue(_Fields field) {
1011
      switch (field) {
1162
      switch (field) {
1012
      case ID:
1163
      case ID:
1013
        return new Long(getId());
1164
        return Long.valueOf(getId());
1014
 
1165
 
1015
      }
1166
      }
1016
      throw new IllegalStateException();
1167
      throw new IllegalStateException();
1017
    }
1168
    }
1018
 
1169
 
1019
    public Object getFieldValue(int fieldId) {
-
 
1020
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1021
    }
-
 
1022
 
-
 
1023
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1170
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1024
    public boolean isSet(_Fields field) {
1171
    public boolean isSet(_Fields field) {
-
 
1172
      if (field == null) {
-
 
1173
        throw new IllegalArgumentException();
-
 
1174
      }
-
 
1175
 
1025
      switch (field) {
1176
      switch (field) {
1026
      case ID:
1177
      case ID:
1027
        return isSetId();
1178
        return isSetId();
1028
      }
1179
      }
1029
      throw new IllegalStateException();
1180
      throw new IllegalStateException();
1030
    }
1181
    }
1031
 
1182
 
1032
    public boolean isSet(int fieldID) {
-
 
1033
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1034
    }
-
 
1035
 
-
 
1036
    @Override
1183
    @Override
1037
    public boolean equals(Object that) {
1184
    public boolean equals(Object that) {
1038
      if (that == null)
1185
      if (that == null)
1039
        return false;
1186
        return false;
1040
      if (that instanceof getUser_args)
1187
      if (that instanceof getUser_args)
Line 1069... Line 1216...
1069
      }
1216
      }
1070
 
1217
 
1071
      int lastComparison = 0;
1218
      int lastComparison = 0;
1072
      getUser_args typedOther = (getUser_args)other;
1219
      getUser_args typedOther = (getUser_args)other;
1073
 
1220
 
1074
      lastComparison = Boolean.valueOf(isSetId()).compareTo(isSetId());
1221
      lastComparison = Boolean.valueOf(isSetId()).compareTo(typedOther.isSetId());
1075
      if (lastComparison != 0) {
1222
      if (lastComparison != 0) {
1076
        return lastComparison;
1223
        return lastComparison;
1077
      }
1224
      }
-
 
1225
      if (isSetId()) {
1078
      lastComparison = TBaseHelper.compareTo(id, typedOther.id);
1226
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.id, typedOther.id);
1079
      if (lastComparison != 0) {
1227
        if (lastComparison != 0) {
1080
        return lastComparison;
1228
          return lastComparison;
-
 
1229
        }
1081
      }
1230
      }
1082
      return 0;
1231
      return 0;
1083
    }
1232
    }
1084
 
1233
 
-
 
1234
    public _Fields fieldForId(int fieldId) {
-
 
1235
      return _Fields.findByThriftId(fieldId);
-
 
1236
    }
-
 
1237
 
1085
    public void read(TProtocol iprot) throws TException {
1238
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1086
      TField field;
1239
      org.apache.thrift.protocol.TField field;
1087
      iprot.readStructBegin();
1240
      iprot.readStructBegin();
1088
      while (true)
1241
      while (true)
1089
      {
1242
      {
1090
        field = iprot.readFieldBegin();
1243
        field = iprot.readFieldBegin();
1091
        if (field.type == TType.STOP) { 
1244
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1092
          break;
1245
          break;
1093
        }
1246
        }
1094
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1095
        if (fieldId == null) {
-
 
1096
          TProtocolUtil.skip(iprot, field.type);
-
 
1097
        } else {
-
 
1098
          switch (fieldId) {
1247
        switch (field.id) {
1099
            case ID:
1248
          case 1: // ID
1100
              if (field.type == TType.I64) {
1249
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1101
                this.id = iprot.readI64();
1250
              this.id = iprot.readI64();
1102
                setIdIsSet(true);
1251
              setIdIsSet(true);
1103
              } else { 
1252
            } else { 
1104
                TProtocolUtil.skip(iprot, field.type);
1253
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1105
              }
1254
            }
1106
              break;
1255
            break;
1107
          }
1256
          default:
1108
          iprot.readFieldEnd();
1257
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1109
        }
1258
        }
-
 
1259
        iprot.readFieldEnd();
1110
      }
1260
      }
1111
      iprot.readStructEnd();
1261
      iprot.readStructEnd();
1112
      validate();
1262
      validate();
1113
    }
1263
    }
1114
 
1264
 
1115
    public void write(TProtocol oprot) throws TException {
1265
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1116
      validate();
1266
      validate();
1117
 
1267
 
1118
      oprot.writeStructBegin(STRUCT_DESC);
1268
      oprot.writeStructBegin(STRUCT_DESC);
1119
      oprot.writeFieldBegin(ID_FIELD_DESC);
1269
      oprot.writeFieldBegin(ID_FIELD_DESC);
1120
      oprot.writeI64(this.id);
1270
      oprot.writeI64(this.id);
Line 1133... Line 1283...
1133
      first = false;
1283
      first = false;
1134
      sb.append(")");
1284
      sb.append(")");
1135
      return sb.toString();
1285
      return sb.toString();
1136
    }
1286
    }
1137
 
1287
 
1138
    public void validate() throws TException {
1288
    public void validate() throws org.apache.thrift.TException {
1139
      // check for required fields
1289
      // check for required fields
1140
    }
1290
    }
1141
 
1291
 
-
 
1292
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1293
      try {
-
 
1294
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1295
      } catch (org.apache.thrift.TException te) {
-
 
1296
        throw new java.io.IOException(te);
-
 
1297
      }
-
 
1298
    }
-
 
1299
 
-
 
1300
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1301
      try {
-
 
1302
        // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
-
 
1303
        __isset_bit_vector = new BitSet(1);
-
 
1304
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1305
      } catch (org.apache.thrift.TException te) {
-
 
1306
        throw new java.io.IOException(te);
-
 
1307
      }
-
 
1308
    }
-
 
1309
 
1142
  }
1310
  }
1143
 
1311
 
1144
  public static class getUser_result implements TBase<getUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<getUser_result>   {
1312
  public static class getUser_result implements org.apache.thrift.TBase<getUser_result, getUser_result._Fields>, java.io.Serializable, Cloneable   {
1145
    private static final TStruct STRUCT_DESC = new TStruct("getUser_result");
1313
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getUser_result");
1146
 
1314
 
1147
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRING, (short)0);
1315
    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);
1148
 
1316
 
1149
    private String success;
1317
    private String success; // required
1150
 
1318
 
1151
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1319
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1152
    public enum _Fields implements TFieldIdEnum {
1320
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1153
      SUCCESS((short)0, "success");
1321
      SUCCESS((short)0, "success");
1154
 
1322
 
1155
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1156
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1323
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1157
 
1324
 
1158
      static {
1325
      static {
1159
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1326
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1160
          byId.put((int)field._thriftId, field);
-
 
1161
          byName.put(field.getFieldName(), field);
1327
          byName.put(field.getFieldName(), field);
1162
        }
1328
        }
1163
      }
1329
      }
1164
 
1330
 
1165
      /**
1331
      /**
1166
       * Find the _Fields constant that matches fieldId, or null if its not found.
1332
       * Find the _Fields constant that matches fieldId, or null if its not found.
1167
       */
1333
       */
1168
      public static _Fields findByThriftId(int fieldId) {
1334
      public static _Fields findByThriftId(int fieldId) {
1169
        return byId.get(fieldId);
1335
        switch(fieldId) {
-
 
1336
          case 0: // SUCCESS
-
 
1337
            return SUCCESS;
-
 
1338
          default:
-
 
1339
            return null;
-
 
1340
        }
1170
      }
1341
      }
1171
 
1342
 
1172
      /**
1343
      /**
1173
       * Find the _Fields constant that matches fieldId, throwing an exception
1344
       * Find the _Fields constant that matches fieldId, throwing an exception
1174
       * if it is not found.
1345
       * if it is not found.
Line 1203... Line 1374...
1203
      }
1374
      }
1204
    }
1375
    }
1205
 
1376
 
1206
    // isset id assignments
1377
    // isset id assignments
1207
 
1378
 
1208
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1379
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1209
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1210
          new FieldValueMetaData(TType.STRING)));
-
 
1211
    }});
-
 
1212
 
-
 
1213
    static {
1380
    static {
-
 
1381
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1382
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1383
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
1384
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1214
      FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap);
1385
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getUser_result.class, metaDataMap);
1215
    }
1386
    }
1216
 
1387
 
1217
    public getUser_result() {
1388
    public getUser_result() {
1218
    }
1389
    }
1219
 
1390
 
Line 1235... Line 1406...
1235
 
1406
 
1236
    public getUser_result deepCopy() {
1407
    public getUser_result deepCopy() {
1237
      return new getUser_result(this);
1408
      return new getUser_result(this);
1238
    }
1409
    }
1239
 
1410
 
1240
    @Deprecated
1411
    @Override
1241
    public getUser_result clone() {
1412
    public void clear() {
1242
      return new getUser_result(this);
1413
      this.success = null;
1243
    }
1414
    }
1244
 
1415
 
1245
    public String getSuccess() {
1416
    public String getSuccess() {
1246
      return this.success;
1417
      return this.success;
1247
    }
1418
    }
1248
 
1419
 
1249
    public getUser_result setSuccess(String success) {
1420
    public void setSuccess(String success) {
1250
      this.success = success;
1421
      this.success = success;
1251
      return this;
-
 
1252
    }
1422
    }
1253
 
1423
 
1254
    public void unsetSuccess() {
1424
    public void unsetSuccess() {
1255
      this.success = null;
1425
      this.success = null;
1256
    }
1426
    }
1257
 
1427
 
1258
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
1428
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1259
    public boolean isSetSuccess() {
1429
    public boolean isSetSuccess() {
1260
      return this.success != null;
1430
      return this.success != null;
1261
    }
1431
    }
1262
 
1432
 
1263
    public void setSuccessIsSet(boolean value) {
1433
    public void setSuccessIsSet(boolean value) {
Line 1277... Line 1447...
1277
        break;
1447
        break;
1278
 
1448
 
1279
      }
1449
      }
1280
    }
1450
    }
1281
 
1451
 
1282
    public void setFieldValue(int fieldID, Object value) {
-
 
1283
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1284
    }
-
 
1285
 
-
 
1286
    public Object getFieldValue(_Fields field) {
1452
    public Object getFieldValue(_Fields field) {
1287
      switch (field) {
1453
      switch (field) {
1288
      case SUCCESS:
1454
      case SUCCESS:
1289
        return getSuccess();
1455
        return getSuccess();
1290
 
1456
 
1291
      }
1457
      }
1292
      throw new IllegalStateException();
1458
      throw new IllegalStateException();
1293
    }
1459
    }
1294
 
1460
 
1295
    public Object getFieldValue(int fieldId) {
-
 
1296
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1297
    }
-
 
1298
 
-
 
1299
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1461
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1300
    public boolean isSet(_Fields field) {
1462
    public boolean isSet(_Fields field) {
-
 
1463
      if (field == null) {
-
 
1464
        throw new IllegalArgumentException();
-
 
1465
      }
-
 
1466
 
1301
      switch (field) {
1467
      switch (field) {
1302
      case SUCCESS:
1468
      case SUCCESS:
1303
        return isSetSuccess();
1469
        return isSetSuccess();
1304
      }
1470
      }
1305
      throw new IllegalStateException();
1471
      throw new IllegalStateException();
1306
    }
1472
    }
1307
 
1473
 
1308
    public boolean isSet(int fieldID) {
-
 
1309
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1310
    }
-
 
1311
 
-
 
1312
    @Override
1474
    @Override
1313
    public boolean equals(Object that) {
1475
    public boolean equals(Object that) {
1314
      if (that == null)
1476
      if (that == null)
1315
        return false;
1477
        return false;
1316
      if (that instanceof getUser_result)
1478
      if (that instanceof getUser_result)
Line 1345... Line 1507...
1345
      }
1507
      }
1346
 
1508
 
1347
      int lastComparison = 0;
1509
      int lastComparison = 0;
1348
      getUser_result typedOther = (getUser_result)other;
1510
      getUser_result typedOther = (getUser_result)other;
1349
 
1511
 
1350
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
1512
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1351
      if (lastComparison != 0) {
1513
      if (lastComparison != 0) {
1352
        return lastComparison;
1514
        return lastComparison;
1353
      }
1515
      }
-
 
1516
      if (isSetSuccess()) {
1354
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
1517
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1355
      if (lastComparison != 0) {
1518
        if (lastComparison != 0) {
1356
        return lastComparison;
1519
          return lastComparison;
-
 
1520
        }
1357
      }
1521
      }
1358
      return 0;
1522
      return 0;
1359
    }
1523
    }
1360
 
1524
 
-
 
1525
    public _Fields fieldForId(int fieldId) {
-
 
1526
      return _Fields.findByThriftId(fieldId);
-
 
1527
    }
-
 
1528
 
1361
    public void read(TProtocol iprot) throws TException {
1529
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1362
      TField field;
1530
      org.apache.thrift.protocol.TField field;
1363
      iprot.readStructBegin();
1531
      iprot.readStructBegin();
1364
      while (true)
1532
      while (true)
1365
      {
1533
      {
1366
        field = iprot.readFieldBegin();
1534
        field = iprot.readFieldBegin();
1367
        if (field.type == TType.STOP) { 
1535
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1368
          break;
1536
          break;
1369
        }
1537
        }
1370
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1371
        if (fieldId == null) {
-
 
1372
          TProtocolUtil.skip(iprot, field.type);
-
 
1373
        } else {
-
 
1374
          switch (fieldId) {
1538
        switch (field.id) {
1375
            case SUCCESS:
1539
          case 0: // SUCCESS
1376
              if (field.type == TType.STRING) {
1540
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
1377
                this.success = iprot.readString();
1541
              this.success = iprot.readString();
1378
              } else { 
1542
            } else { 
1379
                TProtocolUtil.skip(iprot, field.type);
1543
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1380
              }
1544
            }
1381
              break;
1545
            break;
1382
          }
1546
          default:
1383
          iprot.readFieldEnd();
1547
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1384
        }
1548
        }
-
 
1549
        iprot.readFieldEnd();
1385
      }
1550
      }
1386
      iprot.readStructEnd();
1551
      iprot.readStructEnd();
1387
      validate();
1552
      validate();
1388
    }
1553
    }
1389
 
1554
 
1390
    public void write(TProtocol oprot) throws TException {
1555
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1391
      oprot.writeStructBegin(STRUCT_DESC);
1556
      oprot.writeStructBegin(STRUCT_DESC);
1392
 
1557
 
1393
      if (this.isSetSuccess()) {
1558
      if (this.isSetSuccess()) {
1394
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1559
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1395
        oprot.writeString(this.success);
1560
        oprot.writeString(this.success);
Line 1413... Line 1578...
1413
      first = false;
1578
      first = false;
1414
      sb.append(")");
1579
      sb.append(")");
1415
      return sb.toString();
1580
      return sb.toString();
1416
    }
1581
    }
1417
 
1582
 
1418
    public void validate() throws TException {
1583
    public void validate() throws org.apache.thrift.TException {
1419
      // check for required fields
1584
      // check for required fields
1420
    }
1585
    }
1421
 
1586
 
-
 
1587
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1588
      try {
-
 
1589
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1590
      } catch (org.apache.thrift.TException te) {
-
 
1591
        throw new java.io.IOException(te);
-
 
1592
      }
-
 
1593
    }
-
 
1594
 
-
 
1595
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1596
      try {
-
 
1597
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1598
      } catch (org.apache.thrift.TException te) {
-
 
1599
        throw new java.io.IOException(te);
-
 
1600
      }
-
 
1601
    }
-
 
1602
 
1422
  }
1603
  }
1423
 
1604
 
1424
  public static class getAddressId_args implements TBase<getAddressId_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAddressId_args>   {
1605
  public static class getAddressId_args implements org.apache.thrift.TBase<getAddressId_args, getAddressId_args._Fields>, java.io.Serializable, Cloneable   {
1425
    private static final TStruct STRUCT_DESC = new TStruct("getAddressId_args");
1606
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_args");
1426
 
1607
 
1427
 
1608
 
1428
 
1609
 
1429
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1610
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1430
    public enum _Fields implements TFieldIdEnum {
1611
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1431
;
1612
;
1432
 
1613
 
1433
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1434
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1614
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1435
 
1615
 
1436
      static {
1616
      static {
1437
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1617
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1438
          byId.put((int)field._thriftId, field);
-
 
1439
          byName.put(field.getFieldName(), field);
1618
          byName.put(field.getFieldName(), field);
1440
        }
1619
        }
1441
      }
1620
      }
1442
 
1621
 
1443
      /**
1622
      /**
1444
       * Find the _Fields constant that matches fieldId, or null if its not found.
1623
       * Find the _Fields constant that matches fieldId, or null if its not found.
1445
       */
1624
       */
1446
      public static _Fields findByThriftId(int fieldId) {
1625
      public static _Fields findByThriftId(int fieldId) {
1447
        return byId.get(fieldId);
1626
        switch(fieldId) {
-
 
1627
          default:
-
 
1628
            return null;
-
 
1629
        }
1448
      }
1630
      }
1449
 
1631
 
1450
      /**
1632
      /**
1451
       * Find the _Fields constant that matches fieldId, throwing an exception
1633
       * Find the _Fields constant that matches fieldId, throwing an exception
1452
       * if it is not found.
1634
       * if it is not found.
Line 1478... Line 1660...
1478
 
1660
 
1479
      public String getFieldName() {
1661
      public String getFieldName() {
1480
        return _fieldName;
1662
        return _fieldName;
1481
      }
1663
      }
1482
    }
1664
    }
1483
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1665
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1484
    }});
-
 
1485
 
-
 
1486
    static {
1666
    static {
-
 
1667
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1668
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1487
      FieldMetaData.addStructMetaDataMap(getAddressId_args.class, metaDataMap);
1669
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_args.class, metaDataMap);
1488
    }
1670
    }
1489
 
1671
 
1490
    public getAddressId_args() {
1672
    public getAddressId_args() {
1491
    }
1673
    }
1492
 
1674
 
Line 1498... Line 1680...
1498
 
1680
 
1499
    public getAddressId_args deepCopy() {
1681
    public getAddressId_args deepCopy() {
1500
      return new getAddressId_args(this);
1682
      return new getAddressId_args(this);
1501
    }
1683
    }
1502
 
1684
 
1503
    @Deprecated
1685
    @Override
1504
    public getAddressId_args clone() {
1686
    public void clear() {
1505
      return new getAddressId_args(this);
-
 
1506
    }
1687
    }
1507
 
1688
 
1508
    public void setFieldValue(_Fields field, Object value) {
1689
    public void setFieldValue(_Fields field, Object value) {
1509
      switch (field) {
1690
      switch (field) {
1510
      }
1691
      }
1511
    }
1692
    }
1512
 
1693
 
1513
    public void setFieldValue(int fieldID, Object value) {
-
 
1514
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1515
    }
-
 
1516
 
-
 
1517
    public Object getFieldValue(_Fields field) {
1694
    public Object getFieldValue(_Fields field) {
1518
      switch (field) {
1695
      switch (field) {
1519
      }
1696
      }
1520
      throw new IllegalStateException();
1697
      throw new IllegalStateException();
1521
    }
1698
    }
1522
 
1699
 
1523
    public Object getFieldValue(int fieldId) {
-
 
1524
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1525
    }
-
 
1526
 
-
 
1527
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1700
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1528
    public boolean isSet(_Fields field) {
1701
    public boolean isSet(_Fields field) {
-
 
1702
      if (field == null) {
-
 
1703
        throw new IllegalArgumentException();
-
 
1704
      }
-
 
1705
 
1529
      switch (field) {
1706
      switch (field) {
1530
      }
1707
      }
1531
      throw new IllegalStateException();
1708
      throw new IllegalStateException();
1532
    }
1709
    }
1533
 
1710
 
1534
    public boolean isSet(int fieldID) {
-
 
1535
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1536
    }
-
 
1537
 
-
 
1538
    @Override
1711
    @Override
1539
    public boolean equals(Object that) {
1712
    public boolean equals(Object that) {
1540
      if (that == null)
1713
      if (that == null)
1541
        return false;
1714
        return false;
1542
      if (that instanceof getAddressId_args)
1715
      if (that instanceof getAddressId_args)
Line 1565... Line 1738...
1565
      getAddressId_args typedOther = (getAddressId_args)other;
1738
      getAddressId_args typedOther = (getAddressId_args)other;
1566
 
1739
 
1567
      return 0;
1740
      return 0;
1568
    }
1741
    }
1569
 
1742
 
-
 
1743
    public _Fields fieldForId(int fieldId) {
-
 
1744
      return _Fields.findByThriftId(fieldId);
-
 
1745
    }
-
 
1746
 
1570
    public void read(TProtocol iprot) throws TException {
1747
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1571
      TField field;
1748
      org.apache.thrift.protocol.TField field;
1572
      iprot.readStructBegin();
1749
      iprot.readStructBegin();
1573
      while (true)
1750
      while (true)
1574
      {
1751
      {
1575
        field = iprot.readFieldBegin();
1752
        field = iprot.readFieldBegin();
1576
        if (field.type == TType.STOP) { 
1753
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1577
          break;
1754
          break;
1578
        }
1755
        }
1579
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1580
        if (fieldId == null) {
-
 
1581
          TProtocolUtil.skip(iprot, field.type);
-
 
1582
        } else {
-
 
1583
          switch (fieldId) {
1756
        switch (field.id) {
1584
          }
1757
          default:
1585
          iprot.readFieldEnd();
1758
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1586
        }
1759
        }
-
 
1760
        iprot.readFieldEnd();
1587
      }
1761
      }
1588
      iprot.readStructEnd();
1762
      iprot.readStructEnd();
1589
      validate();
1763
      validate();
1590
    }
1764
    }
1591
 
1765
 
1592
    public void write(TProtocol oprot) throws TException {
1766
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1593
      validate();
1767
      validate();
1594
 
1768
 
1595
      oprot.writeStructBegin(STRUCT_DESC);
1769
      oprot.writeStructBegin(STRUCT_DESC);
1596
      oprot.writeFieldStop();
1770
      oprot.writeFieldStop();
1597
      oprot.writeStructEnd();
1771
      oprot.writeStructEnd();
Line 1604... Line 1778...
1604
 
1778
 
1605
      sb.append(")");
1779
      sb.append(")");
1606
      return sb.toString();
1780
      return sb.toString();
1607
    }
1781
    }
1608
 
1782
 
1609
    public void validate() throws TException {
1783
    public void validate() throws org.apache.thrift.TException {
1610
      // check for required fields
1784
      // check for required fields
1611
    }
1785
    }
1612
 
1786
 
-
 
1787
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
1788
      try {
-
 
1789
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
1790
      } catch (org.apache.thrift.TException te) {
-
 
1791
        throw new java.io.IOException(te);
-
 
1792
      }
-
 
1793
    }
-
 
1794
 
-
 
1795
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
1796
      try {
-
 
1797
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
1798
      } catch (org.apache.thrift.TException te) {
-
 
1799
        throw new java.io.IOException(te);
-
 
1800
      }
-
 
1801
    }
-
 
1802
 
1613
  }
1803
  }
1614
 
1804
 
1615
  public static class getAddressId_result implements TBase<getAddressId_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAddressId_result>   {
1805
  public static class getAddressId_result implements org.apache.thrift.TBase<getAddressId_result, getAddressId_result._Fields>, java.io.Serializable, Cloneable   {
1616
    private static final TStruct STRUCT_DESC = new TStruct("getAddressId_result");
1806
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddressId_result");
1617
 
1807
 
1618
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.I64, (short)0);
1808
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.I64, (short)0);
1619
 
1809
 
1620
    private long success;
1810
    private long success; // required
1621
 
1811
 
1622
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1812
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1623
    public enum _Fields implements TFieldIdEnum {
1813
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1624
      SUCCESS((short)0, "success");
1814
      SUCCESS((short)0, "success");
1625
 
1815
 
1626
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1627
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1816
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1628
 
1817
 
1629
      static {
1818
      static {
1630
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1819
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1631
          byId.put((int)field._thriftId, field);
-
 
1632
          byName.put(field.getFieldName(), field);
1820
          byName.put(field.getFieldName(), field);
1633
        }
1821
        }
1634
      }
1822
      }
1635
 
1823
 
1636
      /**
1824
      /**
1637
       * Find the _Fields constant that matches fieldId, or null if its not found.
1825
       * Find the _Fields constant that matches fieldId, or null if its not found.
1638
       */
1826
       */
1639
      public static _Fields findByThriftId(int fieldId) {
1827
      public static _Fields findByThriftId(int fieldId) {
1640
        return byId.get(fieldId);
1828
        switch(fieldId) {
-
 
1829
          case 0: // SUCCESS
-
 
1830
            return SUCCESS;
-
 
1831
          default:
-
 
1832
            return null;
-
 
1833
        }
1641
      }
1834
      }
1642
 
1835
 
1643
      /**
1836
      /**
1644
       * Find the _Fields constant that matches fieldId, throwing an exception
1837
       * Find the _Fields constant that matches fieldId, throwing an exception
1645
       * if it is not found.
1838
       * if it is not found.
Line 1676... Line 1869...
1676
 
1869
 
1677
    // isset id assignments
1870
    // isset id assignments
1678
    private static final int __SUCCESS_ISSET_ID = 0;
1871
    private static final int __SUCCESS_ISSET_ID = 0;
1679
    private BitSet __isset_bit_vector = new BitSet(1);
1872
    private BitSet __isset_bit_vector = new BitSet(1);
1680
 
1873
 
1681
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
1874
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1682
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
1683
          new FieldValueMetaData(TType.I64)));
-
 
1684
    }});
-
 
1685
 
-
 
1686
    static {
1875
    static {
-
 
1876
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
1877
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
1878
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I64)));
-
 
1879
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1687
      FieldMetaData.addStructMetaDataMap(getAddressId_result.class, metaDataMap);
1880
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddressId_result.class, metaDataMap);
1688
    }
1881
    }
1689
 
1882
 
1690
    public getAddressId_result() {
1883
    public getAddressId_result() {
1691
    }
1884
    }
1692
 
1885
 
Line 1709... Line 1902...
1709
 
1902
 
1710
    public getAddressId_result deepCopy() {
1903
    public getAddressId_result deepCopy() {
1711
      return new getAddressId_result(this);
1904
      return new getAddressId_result(this);
1712
    }
1905
    }
1713
 
1906
 
1714
    @Deprecated
1907
    @Override
1715
    public getAddressId_result clone() {
1908
    public void clear() {
1716
      return new getAddressId_result(this);
1909
      setSuccessIsSet(false);
-
 
1910
      this.success = 0;
1717
    }
1911
    }
1718
 
1912
 
1719
    public long getSuccess() {
1913
    public long getSuccess() {
1720
      return this.success;
1914
      return this.success;
1721
    }
1915
    }
1722
 
1916
 
1723
    public getAddressId_result setSuccess(long success) {
1917
    public void setSuccess(long success) {
1724
      this.success = success;
1918
      this.success = success;
1725
      setSuccessIsSet(true);
1919
      setSuccessIsSet(true);
1726
      return this;
-
 
1727
    }
1920
    }
1728
 
1921
 
1729
    public void unsetSuccess() {
1922
    public void unsetSuccess() {
1730
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1923
      __isset_bit_vector.clear(__SUCCESS_ISSET_ID);
1731
    }
1924
    }
1732
 
1925
 
1733
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
1926
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
1734
    public boolean isSetSuccess() {
1927
    public boolean isSetSuccess() {
1735
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1928
      return __isset_bit_vector.get(__SUCCESS_ISSET_ID);
1736
    }
1929
    }
1737
 
1930
 
1738
    public void setSuccessIsSet(boolean value) {
1931
    public void setSuccessIsSet(boolean value) {
Line 1750... Line 1943...
1750
        break;
1943
        break;
1751
 
1944
 
1752
      }
1945
      }
1753
    }
1946
    }
1754
 
1947
 
1755
    public void setFieldValue(int fieldID, Object value) {
-
 
1756
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1757
    }
-
 
1758
 
-
 
1759
    public Object getFieldValue(_Fields field) {
1948
    public Object getFieldValue(_Fields field) {
1760
      switch (field) {
1949
      switch (field) {
1761
      case SUCCESS:
1950
      case SUCCESS:
1762
        return new Long(getSuccess());
1951
        return Long.valueOf(getSuccess());
1763
 
1952
 
1764
      }
1953
      }
1765
      throw new IllegalStateException();
1954
      throw new IllegalStateException();
1766
    }
1955
    }
1767
 
1956
 
1768
    public Object getFieldValue(int fieldId) {
-
 
1769
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1770
    }
-
 
1771
 
-
 
1772
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
1957
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1773
    public boolean isSet(_Fields field) {
1958
    public boolean isSet(_Fields field) {
-
 
1959
      if (field == null) {
-
 
1960
        throw new IllegalArgumentException();
-
 
1961
      }
-
 
1962
 
1774
      switch (field) {
1963
      switch (field) {
1775
      case SUCCESS:
1964
      case SUCCESS:
1776
        return isSetSuccess();
1965
        return isSetSuccess();
1777
      }
1966
      }
1778
      throw new IllegalStateException();
1967
      throw new IllegalStateException();
1779
    }
1968
    }
1780
 
1969
 
1781
    public boolean isSet(int fieldID) {
-
 
1782
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
1783
    }
-
 
1784
 
-
 
1785
    @Override
1970
    @Override
1786
    public boolean equals(Object that) {
1971
    public boolean equals(Object that) {
1787
      if (that == null)
1972
      if (that == null)
1788
        return false;
1973
        return false;
1789
      if (that instanceof getAddressId_result)
1974
      if (that instanceof getAddressId_result)
Line 1818... Line 2003...
1818
      }
2003
      }
1819
 
2004
 
1820
      int lastComparison = 0;
2005
      int lastComparison = 0;
1821
      getAddressId_result typedOther = (getAddressId_result)other;
2006
      getAddressId_result typedOther = (getAddressId_result)other;
1822
 
2007
 
1823
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2008
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
1824
      if (lastComparison != 0) {
2009
      if (lastComparison != 0) {
1825
        return lastComparison;
2010
        return lastComparison;
1826
      }
2011
      }
-
 
2012
      if (isSetSuccess()) {
1827
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2013
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
1828
      if (lastComparison != 0) {
2014
        if (lastComparison != 0) {
1829
        return lastComparison;
2015
          return lastComparison;
-
 
2016
        }
1830
      }
2017
      }
1831
      return 0;
2018
      return 0;
1832
    }
2019
    }
1833
 
2020
 
-
 
2021
    public _Fields fieldForId(int fieldId) {
-
 
2022
      return _Fields.findByThriftId(fieldId);
-
 
2023
    }
-
 
2024
 
1834
    public void read(TProtocol iprot) throws TException {
2025
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
1835
      TField field;
2026
      org.apache.thrift.protocol.TField field;
1836
      iprot.readStructBegin();
2027
      iprot.readStructBegin();
1837
      while (true)
2028
      while (true)
1838
      {
2029
      {
1839
        field = iprot.readFieldBegin();
2030
        field = iprot.readFieldBegin();
1840
        if (field.type == TType.STOP) { 
2031
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
1841
          break;
2032
          break;
1842
        }
2033
        }
1843
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
1844
        if (fieldId == null) {
-
 
1845
          TProtocolUtil.skip(iprot, field.type);
-
 
1846
        } else {
-
 
1847
          switch (fieldId) {
2034
        switch (field.id) {
1848
            case SUCCESS:
2035
          case 0: // SUCCESS
1849
              if (field.type == TType.I64) {
2036
            if (field.type == org.apache.thrift.protocol.TType.I64) {
1850
                this.success = iprot.readI64();
2037
              this.success = iprot.readI64();
1851
                setSuccessIsSet(true);
2038
              setSuccessIsSet(true);
1852
              } else { 
2039
            } else { 
1853
                TProtocolUtil.skip(iprot, field.type);
2040
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1854
              }
2041
            }
1855
              break;
2042
            break;
1856
          }
2043
          default:
1857
          iprot.readFieldEnd();
2044
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
1858
        }
2045
        }
-
 
2046
        iprot.readFieldEnd();
1859
      }
2047
      }
1860
      iprot.readStructEnd();
2048
      iprot.readStructEnd();
1861
      validate();
2049
      validate();
1862
    }
2050
    }
1863
 
2051
 
1864
    public void write(TProtocol oprot) throws TException {
2052
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
1865
      oprot.writeStructBegin(STRUCT_DESC);
2053
      oprot.writeStructBegin(STRUCT_DESC);
1866
 
2054
 
1867
      if (this.isSetSuccess()) {
2055
      if (this.isSetSuccess()) {
1868
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2056
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
1869
        oprot.writeI64(this.success);
2057
        oprot.writeI64(this.success);
Line 1883... Line 2071...
1883
      first = false;
2071
      first = false;
1884
      sb.append(")");
2072
      sb.append(")");
1885
      return sb.toString();
2073
      return sb.toString();
1886
    }
2074
    }
1887
 
2075
 
1888
    public void validate() throws TException {
2076
    public void validate() throws org.apache.thrift.TException {
1889
      // check for required fields
2077
      // check for required fields
1890
    }
2078
    }
1891
 
2079
 
-
 
2080
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2081
      try {
-
 
2082
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2083
      } catch (org.apache.thrift.TException te) {
-
 
2084
        throw new java.io.IOException(te);
-
 
2085
      }
-
 
2086
    }
-
 
2087
 
-
 
2088
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2089
      try {
-
 
2090
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2091
      } catch (org.apache.thrift.TException te) {
-
 
2092
        throw new java.io.IOException(te);
-
 
2093
      }
-
 
2094
    }
-
 
2095
 
1892
  }
2096
  }
1893
 
2097
 
1894
  public static class getAddress_args implements TBase<getAddress_args._Fields>, java.io.Serializable, Cloneable, Comparable<getAddress_args>   {
2098
  public static class getAddress_args implements org.apache.thrift.TBase<getAddress_args, getAddress_args._Fields>, java.io.Serializable, Cloneable   {
1895
    private static final TStruct STRUCT_DESC = new TStruct("getAddress_args");
2099
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_args");
1896
 
2100
 
1897
 
2101
 
1898
 
2102
 
1899
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2103
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
1900
    public enum _Fields implements TFieldIdEnum {
2104
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
1901
;
2105
;
1902
 
2106
 
1903
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
1904
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2107
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
1905
 
2108
 
1906
      static {
2109
      static {
1907
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2110
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
1908
          byId.put((int)field._thriftId, field);
-
 
1909
          byName.put(field.getFieldName(), field);
2111
          byName.put(field.getFieldName(), field);
1910
        }
2112
        }
1911
      }
2113
      }
1912
 
2114
 
1913
      /**
2115
      /**
1914
       * Find the _Fields constant that matches fieldId, or null if its not found.
2116
       * Find the _Fields constant that matches fieldId, or null if its not found.
1915
       */
2117
       */
1916
      public static _Fields findByThriftId(int fieldId) {
2118
      public static _Fields findByThriftId(int fieldId) {
1917
        return byId.get(fieldId);
2119
        switch(fieldId) {
-
 
2120
          default:
-
 
2121
            return null;
-
 
2122
        }
1918
      }
2123
      }
1919
 
2124
 
1920
      /**
2125
      /**
1921
       * Find the _Fields constant that matches fieldId, throwing an exception
2126
       * Find the _Fields constant that matches fieldId, throwing an exception
1922
       * if it is not found.
2127
       * if it is not found.
Line 1948... Line 2153...
1948
 
2153
 
1949
      public String getFieldName() {
2154
      public String getFieldName() {
1950
        return _fieldName;
2155
        return _fieldName;
1951
      }
2156
      }
1952
    }
2157
    }
1953
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2158
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
1954
    }});
-
 
1955
 
-
 
1956
    static {
2159
    static {
-
 
2160
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2161
      metaDataMap = Collections.unmodifiableMap(tmpMap);
1957
      FieldMetaData.addStructMetaDataMap(getAddress_args.class, metaDataMap);
2162
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_args.class, metaDataMap);
1958
    }
2163
    }
1959
 
2164
 
1960
    public getAddress_args() {
2165
    public getAddress_args() {
1961
    }
2166
    }
1962
 
2167
 
Line 1968... Line 2173...
1968
 
2173
 
1969
    public getAddress_args deepCopy() {
2174
    public getAddress_args deepCopy() {
1970
      return new getAddress_args(this);
2175
      return new getAddress_args(this);
1971
    }
2176
    }
1972
 
2177
 
1973
    @Deprecated
2178
    @Override
1974
    public getAddress_args clone() {
2179
    public void clear() {
1975
      return new getAddress_args(this);
-
 
1976
    }
2180
    }
1977
 
2181
 
1978
    public void setFieldValue(_Fields field, Object value) {
2182
    public void setFieldValue(_Fields field, Object value) {
1979
      switch (field) {
2183
      switch (field) {
1980
      }
2184
      }
1981
    }
2185
    }
1982
 
2186
 
1983
    public void setFieldValue(int fieldID, Object value) {
-
 
1984
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
1985
    }
-
 
1986
 
-
 
1987
    public Object getFieldValue(_Fields field) {
2187
    public Object getFieldValue(_Fields field) {
1988
      switch (field) {
2188
      switch (field) {
1989
      }
2189
      }
1990
      throw new IllegalStateException();
2190
      throw new IllegalStateException();
1991
    }
2191
    }
1992
 
2192
 
1993
    public Object getFieldValue(int fieldId) {
-
 
1994
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
1995
    }
-
 
1996
 
-
 
1997
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2193
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
1998
    public boolean isSet(_Fields field) {
2194
    public boolean isSet(_Fields field) {
-
 
2195
      if (field == null) {
-
 
2196
        throw new IllegalArgumentException();
-
 
2197
      }
-
 
2198
 
1999
      switch (field) {
2199
      switch (field) {
2000
      }
2200
      }
2001
      throw new IllegalStateException();
2201
      throw new IllegalStateException();
2002
    }
2202
    }
2003
 
2203
 
2004
    public boolean isSet(int fieldID) {
-
 
2005
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2006
    }
-
 
2007
 
-
 
2008
    @Override
2204
    @Override
2009
    public boolean equals(Object that) {
2205
    public boolean equals(Object that) {
2010
      if (that == null)
2206
      if (that == null)
2011
        return false;
2207
        return false;
2012
      if (that instanceof getAddress_args)
2208
      if (that instanceof getAddress_args)
Line 2035... Line 2231...
2035
      getAddress_args typedOther = (getAddress_args)other;
2231
      getAddress_args typedOther = (getAddress_args)other;
2036
 
2232
 
2037
      return 0;
2233
      return 0;
2038
    }
2234
    }
2039
 
2235
 
-
 
2236
    public _Fields fieldForId(int fieldId) {
-
 
2237
      return _Fields.findByThriftId(fieldId);
-
 
2238
    }
-
 
2239
 
2040
    public void read(TProtocol iprot) throws TException {
2240
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2041
      TField field;
2241
      org.apache.thrift.protocol.TField field;
2042
      iprot.readStructBegin();
2242
      iprot.readStructBegin();
2043
      while (true)
2243
      while (true)
2044
      {
2244
      {
2045
        field = iprot.readFieldBegin();
2245
        field = iprot.readFieldBegin();
2046
        if (field.type == TType.STOP) { 
2246
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2047
          break;
2247
          break;
2048
        }
2248
        }
2049
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2050
        if (fieldId == null) {
-
 
2051
          TProtocolUtil.skip(iprot, field.type);
-
 
2052
        } else {
-
 
2053
          switch (fieldId) {
2249
        switch (field.id) {
2054
          }
2250
          default:
2055
          iprot.readFieldEnd();
2251
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2056
        }
2252
        }
-
 
2253
        iprot.readFieldEnd();
2057
      }
2254
      }
2058
      iprot.readStructEnd();
2255
      iprot.readStructEnd();
2059
      validate();
2256
      validate();
2060
    }
2257
    }
2061
 
2258
 
2062
    public void write(TProtocol oprot) throws TException {
2259
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2063
      validate();
2260
      validate();
2064
 
2261
 
2065
      oprot.writeStructBegin(STRUCT_DESC);
2262
      oprot.writeStructBegin(STRUCT_DESC);
2066
      oprot.writeFieldStop();
2263
      oprot.writeFieldStop();
2067
      oprot.writeStructEnd();
2264
      oprot.writeStructEnd();
Line 2074... Line 2271...
2074
 
2271
 
2075
      sb.append(")");
2272
      sb.append(")");
2076
      return sb.toString();
2273
      return sb.toString();
2077
    }
2274
    }
2078
 
2275
 
2079
    public void validate() throws TException {
2276
    public void validate() throws org.apache.thrift.TException {
2080
      // check for required fields
2277
      // check for required fields
2081
    }
2278
    }
2082
 
2279
 
-
 
2280
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2281
      try {
-
 
2282
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2283
      } catch (org.apache.thrift.TException te) {
-
 
2284
        throw new java.io.IOException(te);
-
 
2285
      }
-
 
2286
    }
-
 
2287
 
-
 
2288
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2289
      try {
-
 
2290
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2291
      } catch (org.apache.thrift.TException te) {
-
 
2292
        throw new java.io.IOException(te);
-
 
2293
      }
-
 
2294
    }
-
 
2295
 
2083
  }
2296
  }
2084
 
2297
 
2085
  public static class getAddress_result implements TBase<getAddress_result._Fields>, java.io.Serializable, Cloneable, Comparable<getAddress_result>   {
2298
  public static class getAddress_result implements org.apache.thrift.TBase<getAddress_result, getAddress_result._Fields>, java.io.Serializable, Cloneable   {
2086
    private static final TStruct STRUCT_DESC = new TStruct("getAddress_result");
2299
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("getAddress_result");
2087
 
2300
 
2088
    private static final TField SUCCESS_FIELD_DESC = new TField("success", TType.STRUCT, (short)0);
2301
    private static final org.apache.thrift.protocol.TField SUCCESS_FIELD_DESC = new org.apache.thrift.protocol.TField("success", org.apache.thrift.protocol.TType.STRUCT, (short)0);
2089
 
2302
 
2090
    private Address success;
2303
    private Address success; // required
2091
 
2304
 
2092
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2305
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2093
    public enum _Fields implements TFieldIdEnum {
2306
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2094
      SUCCESS((short)0, "success");
2307
      SUCCESS((short)0, "success");
2095
 
2308
 
2096
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2097
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2309
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2098
 
2310
 
2099
      static {
2311
      static {
2100
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2312
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2101
          byId.put((int)field._thriftId, field);
-
 
2102
          byName.put(field.getFieldName(), field);
2313
          byName.put(field.getFieldName(), field);
2103
        }
2314
        }
2104
      }
2315
      }
2105
 
2316
 
2106
      /**
2317
      /**
2107
       * Find the _Fields constant that matches fieldId, or null if its not found.
2318
       * Find the _Fields constant that matches fieldId, or null if its not found.
2108
       */
2319
       */
2109
      public static _Fields findByThriftId(int fieldId) {
2320
      public static _Fields findByThriftId(int fieldId) {
2110
        return byId.get(fieldId);
2321
        switch(fieldId) {
-
 
2322
          case 0: // SUCCESS
-
 
2323
            return SUCCESS;
-
 
2324
          default:
-
 
2325
            return null;
-
 
2326
        }
2111
      }
2327
      }
2112
 
2328
 
2113
      /**
2329
      /**
2114
       * Find the _Fields constant that matches fieldId, throwing an exception
2330
       * Find the _Fields constant that matches fieldId, throwing an exception
2115
       * if it is not found.
2331
       * if it is not found.
Line 2144... Line 2360...
2144
      }
2360
      }
2145
    }
2361
    }
2146
 
2362
 
2147
    // isset id assignments
2363
    // isset id assignments
2148
 
2364
 
2149
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2365
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2150
      put(_Fields.SUCCESS, new FieldMetaData("success", TFieldRequirementType.DEFAULT, 
-
 
2151
          new StructMetaData(TType.STRUCT, Address.class)));
-
 
2152
    }});
-
 
2153
 
-
 
2154
    static {
2366
    static {
-
 
2367
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2368
      tmpMap.put(_Fields.SUCCESS, new org.apache.thrift.meta_data.FieldMetaData("success", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2369
          new org.apache.thrift.meta_data.StructMetaData(org.apache.thrift.protocol.TType.STRUCT, Address.class)));
-
 
2370
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2155
      FieldMetaData.addStructMetaDataMap(getAddress_result.class, metaDataMap);
2371
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(getAddress_result.class, metaDataMap);
2156
    }
2372
    }
2157
 
2373
 
2158
    public getAddress_result() {
2374
    public getAddress_result() {
2159
    }
2375
    }
2160
 
2376
 
Line 2176... Line 2392...
2176
 
2392
 
2177
    public getAddress_result deepCopy() {
2393
    public getAddress_result deepCopy() {
2178
      return new getAddress_result(this);
2394
      return new getAddress_result(this);
2179
    }
2395
    }
2180
 
2396
 
2181
    @Deprecated
2397
    @Override
2182
    public getAddress_result clone() {
2398
    public void clear() {
2183
      return new getAddress_result(this);
2399
      this.success = null;
2184
    }
2400
    }
2185
 
2401
 
2186
    public Address getSuccess() {
2402
    public Address getSuccess() {
2187
      return this.success;
2403
      return this.success;
2188
    }
2404
    }
2189
 
2405
 
2190
    public getAddress_result setSuccess(Address success) {
2406
    public void setSuccess(Address success) {
2191
      this.success = success;
2407
      this.success = success;
2192
      return this;
-
 
2193
    }
2408
    }
2194
 
2409
 
2195
    public void unsetSuccess() {
2410
    public void unsetSuccess() {
2196
      this.success = null;
2411
      this.success = null;
2197
    }
2412
    }
2198
 
2413
 
2199
    /** Returns true if field success is set (has been asigned a value) and false otherwise */
2414
    /** Returns true if field success is set (has been assigned a value) and false otherwise */
2200
    public boolean isSetSuccess() {
2415
    public boolean isSetSuccess() {
2201
      return this.success != null;
2416
      return this.success != null;
2202
    }
2417
    }
2203
 
2418
 
2204
    public void setSuccessIsSet(boolean value) {
2419
    public void setSuccessIsSet(boolean value) {
Line 2218... Line 2433...
2218
        break;
2433
        break;
2219
 
2434
 
2220
      }
2435
      }
2221
    }
2436
    }
2222
 
2437
 
2223
    public void setFieldValue(int fieldID, Object value) {
-
 
2224
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2225
    }
-
 
2226
 
-
 
2227
    public Object getFieldValue(_Fields field) {
2438
    public Object getFieldValue(_Fields field) {
2228
      switch (field) {
2439
      switch (field) {
2229
      case SUCCESS:
2440
      case SUCCESS:
2230
        return getSuccess();
2441
        return getSuccess();
2231
 
2442
 
2232
      }
2443
      }
2233
      throw new IllegalStateException();
2444
      throw new IllegalStateException();
2234
    }
2445
    }
2235
 
2446
 
2236
    public Object getFieldValue(int fieldId) {
-
 
2237
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2238
    }
-
 
2239
 
-
 
2240
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2447
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2241
    public boolean isSet(_Fields field) {
2448
    public boolean isSet(_Fields field) {
-
 
2449
      if (field == null) {
-
 
2450
        throw new IllegalArgumentException();
-
 
2451
      }
-
 
2452
 
2242
      switch (field) {
2453
      switch (field) {
2243
      case SUCCESS:
2454
      case SUCCESS:
2244
        return isSetSuccess();
2455
        return isSetSuccess();
2245
      }
2456
      }
2246
      throw new IllegalStateException();
2457
      throw new IllegalStateException();
2247
    }
2458
    }
2248
 
2459
 
2249
    public boolean isSet(int fieldID) {
-
 
2250
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2251
    }
-
 
2252
 
-
 
2253
    @Override
2460
    @Override
2254
    public boolean equals(Object that) {
2461
    public boolean equals(Object that) {
2255
      if (that == null)
2462
      if (that == null)
2256
        return false;
2463
        return false;
2257
      if (that instanceof getAddress_result)
2464
      if (that instanceof getAddress_result)
Line 2286... Line 2493...
2286
      }
2493
      }
2287
 
2494
 
2288
      int lastComparison = 0;
2495
      int lastComparison = 0;
2289
      getAddress_result typedOther = (getAddress_result)other;
2496
      getAddress_result typedOther = (getAddress_result)other;
2290
 
2497
 
2291
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(isSetSuccess());
2498
      lastComparison = Boolean.valueOf(isSetSuccess()).compareTo(typedOther.isSetSuccess());
2292
      if (lastComparison != 0) {
2499
      if (lastComparison != 0) {
2293
        return lastComparison;
2500
        return lastComparison;
2294
      }
2501
      }
-
 
2502
      if (isSetSuccess()) {
2295
      lastComparison = TBaseHelper.compareTo(success, typedOther.success);
2503
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.success, typedOther.success);
2296
      if (lastComparison != 0) {
2504
        if (lastComparison != 0) {
2297
        return lastComparison;
2505
          return lastComparison;
-
 
2506
        }
2298
      }
2507
      }
2299
      return 0;
2508
      return 0;
2300
    }
2509
    }
2301
 
2510
 
-
 
2511
    public _Fields fieldForId(int fieldId) {
-
 
2512
      return _Fields.findByThriftId(fieldId);
-
 
2513
    }
-
 
2514
 
2302
    public void read(TProtocol iprot) throws TException {
2515
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2303
      TField field;
2516
      org.apache.thrift.protocol.TField field;
2304
      iprot.readStructBegin();
2517
      iprot.readStructBegin();
2305
      while (true)
2518
      while (true)
2306
      {
2519
      {
2307
        field = iprot.readFieldBegin();
2520
        field = iprot.readFieldBegin();
2308
        if (field.type == TType.STOP) { 
2521
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2309
          break;
2522
          break;
2310
        }
2523
        }
2311
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2312
        if (fieldId == null) {
-
 
2313
          TProtocolUtil.skip(iprot, field.type);
-
 
2314
        } else {
-
 
2315
          switch (fieldId) {
2524
        switch (field.id) {
2316
            case SUCCESS:
2525
          case 0: // SUCCESS
2317
              if (field.type == TType.STRUCT) {
2526
            if (field.type == org.apache.thrift.protocol.TType.STRUCT) {
2318
                this.success = new Address();
2527
              this.success = new Address();
2319
                this.success.read(iprot);
2528
              this.success.read(iprot);
2320
              } else { 
2529
            } else { 
2321
                TProtocolUtil.skip(iprot, field.type);
2530
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2322
              }
2531
            }
2323
              break;
2532
            break;
2324
          }
2533
          default:
2325
          iprot.readFieldEnd();
2534
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2326
        }
2535
        }
-
 
2536
        iprot.readFieldEnd();
2327
      }
2537
      }
2328
      iprot.readStructEnd();
2538
      iprot.readStructEnd();
2329
      validate();
2539
      validate();
2330
    }
2540
    }
2331
 
2541
 
2332
    public void write(TProtocol oprot) throws TException {
2542
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2333
      oprot.writeStructBegin(STRUCT_DESC);
2543
      oprot.writeStructBegin(STRUCT_DESC);
2334
 
2544
 
2335
      if (this.isSetSuccess()) {
2545
      if (this.isSetSuccess()) {
2336
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2546
        oprot.writeFieldBegin(SUCCESS_FIELD_DESC);
2337
        this.success.write(oprot);
2547
        this.success.write(oprot);
Line 2355... Line 2565...
2355
      first = false;
2565
      first = false;
2356
      sb.append(")");
2566
      sb.append(")");
2357
      return sb.toString();
2567
      return sb.toString();
2358
    }
2568
    }
2359
 
2569
 
2360
    public void validate() throws TException {
2570
    public void validate() throws org.apache.thrift.TException {
2361
      // check for required fields
2571
      // check for required fields
2362
    }
2572
    }
2363
 
2573
 
-
 
2574
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2575
      try {
-
 
2576
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2577
      } catch (org.apache.thrift.TException te) {
-
 
2578
        throw new java.io.IOException(te);
-
 
2579
      }
-
 
2580
    }
-
 
2581
 
-
 
2582
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2583
      try {
-
 
2584
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2585
      } catch (org.apache.thrift.TException te) {
-
 
2586
        throw new java.io.IOException(te);
-
 
2587
      }
-
 
2588
    }
-
 
2589
 
2364
  }
2590
  }
2365
 
2591
 
2366
  public static class createUser_args implements TBase<createUser_args._Fields>, java.io.Serializable, Cloneable, Comparable<createUser_args>   {
2592
  public static class createUser_args implements org.apache.thrift.TBase<createUser_args, createUser_args._Fields>, java.io.Serializable, Cloneable   {
2367
    private static final TStruct STRUCT_DESC = new TStruct("createUser_args");
2593
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_args");
2368
 
2594
 
2369
    private static final TField NAME_FIELD_DESC = new TField("name", TType.STRING, (short)1);
2595
    private static final org.apache.thrift.protocol.TField NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("name", org.apache.thrift.protocol.TType.STRING, (short)1);
2370
 
2596
 
2371
    private String name;
2597
    private String name; // required
2372
 
2598
 
2373
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2599
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2374
    public enum _Fields implements TFieldIdEnum {
2600
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2375
      NAME((short)1, "name");
2601
      NAME((short)1, "name");
2376
 
2602
 
2377
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2378
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2603
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2379
 
2604
 
2380
      static {
2605
      static {
2381
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2606
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2382
          byId.put((int)field._thriftId, field);
-
 
2383
          byName.put(field.getFieldName(), field);
2607
          byName.put(field.getFieldName(), field);
2384
        }
2608
        }
2385
      }
2609
      }
2386
 
2610
 
2387
      /**
2611
      /**
2388
       * Find the _Fields constant that matches fieldId, or null if its not found.
2612
       * Find the _Fields constant that matches fieldId, or null if its not found.
2389
       */
2613
       */
2390
      public static _Fields findByThriftId(int fieldId) {
2614
      public static _Fields findByThriftId(int fieldId) {
2391
        return byId.get(fieldId);
2615
        switch(fieldId) {
-
 
2616
          case 1: // NAME
-
 
2617
            return NAME;
-
 
2618
          default:
-
 
2619
            return null;
-
 
2620
        }
2392
      }
2621
      }
2393
 
2622
 
2394
      /**
2623
      /**
2395
       * Find the _Fields constant that matches fieldId, throwing an exception
2624
       * Find the _Fields constant that matches fieldId, throwing an exception
2396
       * if it is not found.
2625
       * if it is not found.
Line 2425... Line 2654...
2425
      }
2654
      }
2426
    }
2655
    }
2427
 
2656
 
2428
    // isset id assignments
2657
    // isset id assignments
2429
 
2658
 
2430
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2659
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2431
      put(_Fields.NAME, new FieldMetaData("name", TFieldRequirementType.DEFAULT, 
-
 
2432
          new FieldValueMetaData(TType.STRING)));
-
 
2433
    }});
-
 
2434
 
-
 
2435
    static {
2660
    static {
-
 
2661
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2662
      tmpMap.put(_Fields.NAME, new org.apache.thrift.meta_data.FieldMetaData("name", org.apache.thrift.TFieldRequirementType.DEFAULT, 
-
 
2663
          new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
-
 
2664
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2436
      FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
2665
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_args.class, metaDataMap);
2437
    }
2666
    }
2438
 
2667
 
2439
    public createUser_args() {
2668
    public createUser_args() {
2440
    }
2669
    }
2441
 
2670
 
Line 2457... Line 2686...
2457
 
2686
 
2458
    public createUser_args deepCopy() {
2687
    public createUser_args deepCopy() {
2459
      return new createUser_args(this);
2688
      return new createUser_args(this);
2460
    }
2689
    }
2461
 
2690
 
2462
    @Deprecated
2691
    @Override
2463
    public createUser_args clone() {
2692
    public void clear() {
2464
      return new createUser_args(this);
2693
      this.name = null;
2465
    }
2694
    }
2466
 
2695
 
2467
    public String getName() {
2696
    public String getName() {
2468
      return this.name;
2697
      return this.name;
2469
    }
2698
    }
2470
 
2699
 
2471
    public createUser_args setName(String name) {
2700
    public void setName(String name) {
2472
      this.name = name;
2701
      this.name = name;
2473
      return this;
-
 
2474
    }
2702
    }
2475
 
2703
 
2476
    public void unsetName() {
2704
    public void unsetName() {
2477
      this.name = null;
2705
      this.name = null;
2478
    }
2706
    }
2479
 
2707
 
2480
    /** Returns true if field name is set (has been asigned a value) and false otherwise */
2708
    /** Returns true if field name is set (has been assigned a value) and false otherwise */
2481
    public boolean isSetName() {
2709
    public boolean isSetName() {
2482
      return this.name != null;
2710
      return this.name != null;
2483
    }
2711
    }
2484
 
2712
 
2485
    public void setNameIsSet(boolean value) {
2713
    public void setNameIsSet(boolean value) {
Line 2499... Line 2727...
2499
        break;
2727
        break;
2500
 
2728
 
2501
      }
2729
      }
2502
    }
2730
    }
2503
 
2731
 
2504
    public void setFieldValue(int fieldID, Object value) {
-
 
2505
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2506
    }
-
 
2507
 
-
 
2508
    public Object getFieldValue(_Fields field) {
2732
    public Object getFieldValue(_Fields field) {
2509
      switch (field) {
2733
      switch (field) {
2510
      case NAME:
2734
      case NAME:
2511
        return getName();
2735
        return getName();
2512
 
2736
 
2513
      }
2737
      }
2514
      throw new IllegalStateException();
2738
      throw new IllegalStateException();
2515
    }
2739
    }
2516
 
2740
 
2517
    public Object getFieldValue(int fieldId) {
-
 
2518
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2519
    }
-
 
2520
 
-
 
2521
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2741
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2522
    public boolean isSet(_Fields field) {
2742
    public boolean isSet(_Fields field) {
-
 
2743
      if (field == null) {
-
 
2744
        throw new IllegalArgumentException();
-
 
2745
      }
-
 
2746
 
2523
      switch (field) {
2747
      switch (field) {
2524
      case NAME:
2748
      case NAME:
2525
        return isSetName();
2749
        return isSetName();
2526
      }
2750
      }
2527
      throw new IllegalStateException();
2751
      throw new IllegalStateException();
2528
    }
2752
    }
2529
 
2753
 
2530
    public boolean isSet(int fieldID) {
-
 
2531
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2532
    }
-
 
2533
 
-
 
2534
    @Override
2754
    @Override
2535
    public boolean equals(Object that) {
2755
    public boolean equals(Object that) {
2536
      if (that == null)
2756
      if (that == null)
2537
        return false;
2757
        return false;
2538
      if (that instanceof createUser_args)
2758
      if (that instanceof createUser_args)
Line 2567... Line 2787...
2567
      }
2787
      }
2568
 
2788
 
2569
      int lastComparison = 0;
2789
      int lastComparison = 0;
2570
      createUser_args typedOther = (createUser_args)other;
2790
      createUser_args typedOther = (createUser_args)other;
2571
 
2791
 
2572
      lastComparison = Boolean.valueOf(isSetName()).compareTo(isSetName());
2792
      lastComparison = Boolean.valueOf(isSetName()).compareTo(typedOther.isSetName());
2573
      if (lastComparison != 0) {
2793
      if (lastComparison != 0) {
2574
        return lastComparison;
2794
        return lastComparison;
2575
      }
2795
      }
-
 
2796
      if (isSetName()) {
2576
      lastComparison = TBaseHelper.compareTo(name, typedOther.name);
2797
        lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.name, typedOther.name);
2577
      if (lastComparison != 0) {
2798
        if (lastComparison != 0) {
2578
        return lastComparison;
2799
          return lastComparison;
-
 
2800
        }
2579
      }
2801
      }
2580
      return 0;
2802
      return 0;
2581
    }
2803
    }
2582
 
2804
 
-
 
2805
    public _Fields fieldForId(int fieldId) {
-
 
2806
      return _Fields.findByThriftId(fieldId);
-
 
2807
    }
-
 
2808
 
2583
    public void read(TProtocol iprot) throws TException {
2809
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2584
      TField field;
2810
      org.apache.thrift.protocol.TField field;
2585
      iprot.readStructBegin();
2811
      iprot.readStructBegin();
2586
      while (true)
2812
      while (true)
2587
      {
2813
      {
2588
        field = iprot.readFieldBegin();
2814
        field = iprot.readFieldBegin();
2589
        if (field.type == TType.STOP) { 
2815
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2590
          break;
2816
          break;
2591
        }
2817
        }
2592
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2593
        if (fieldId == null) {
-
 
2594
          TProtocolUtil.skip(iprot, field.type);
-
 
2595
        } else {
-
 
2596
          switch (fieldId) {
2818
        switch (field.id) {
2597
            case NAME:
2819
          case 1: // NAME
2598
              if (field.type == TType.STRING) {
2820
            if (field.type == org.apache.thrift.protocol.TType.STRING) {
2599
                this.name = iprot.readString();
2821
              this.name = iprot.readString();
2600
              } else { 
2822
            } else { 
2601
                TProtocolUtil.skip(iprot, field.type);
2823
              org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2602
              }
2824
            }
2603
              break;
2825
            break;
2604
          }
2826
          default:
2605
          iprot.readFieldEnd();
2827
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2606
        }
2828
        }
-
 
2829
        iprot.readFieldEnd();
2607
      }
2830
      }
2608
      iprot.readStructEnd();
2831
      iprot.readStructEnd();
2609
      validate();
2832
      validate();
2610
    }
2833
    }
2611
 
2834
 
2612
    public void write(TProtocol oprot) throws TException {
2835
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2613
      validate();
2836
      validate();
2614
 
2837
 
2615
      oprot.writeStructBegin(STRUCT_DESC);
2838
      oprot.writeStructBegin(STRUCT_DESC);
2616
      if (this.name != null) {
2839
      if (this.name != null) {
2617
        oprot.writeFieldBegin(NAME_FIELD_DESC);
2840
        oprot.writeFieldBegin(NAME_FIELD_DESC);
Line 2636... Line 2859...
2636
      first = false;
2859
      first = false;
2637
      sb.append(")");
2860
      sb.append(")");
2638
      return sb.toString();
2861
      return sb.toString();
2639
    }
2862
    }
2640
 
2863
 
2641
    public void validate() throws TException {
2864
    public void validate() throws org.apache.thrift.TException {
2642
      // check for required fields
2865
      // check for required fields
2643
    }
2866
    }
2644
 
2867
 
-
 
2868
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
2869
      try {
-
 
2870
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
2871
      } catch (org.apache.thrift.TException te) {
-
 
2872
        throw new java.io.IOException(te);
-
 
2873
      }
-
 
2874
    }
-
 
2875
 
-
 
2876
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
2877
      try {
-
 
2878
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
2879
      } catch (org.apache.thrift.TException te) {
-
 
2880
        throw new java.io.IOException(te);
-
 
2881
      }
-
 
2882
    }
-
 
2883
 
2645
  }
2884
  }
2646
 
2885
 
2647
  public static class createUser_result implements TBase<createUser_result._Fields>, java.io.Serializable, Cloneable, Comparable<createUser_result>   {
2886
  public static class createUser_result implements org.apache.thrift.TBase<createUser_result, createUser_result._Fields>, java.io.Serializable, Cloneable   {
2648
    private static final TStruct STRUCT_DESC = new TStruct("createUser_result");
2887
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("createUser_result");
2649
 
2888
 
2650
 
2889
 
2651
 
2890
 
2652
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2891
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2653
    public enum _Fields implements TFieldIdEnum {
2892
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2654
;
2893
;
2655
 
2894
 
2656
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2657
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2895
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2658
 
2896
 
2659
      static {
2897
      static {
2660
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2898
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2661
          byId.put((int)field._thriftId, field);
-
 
2662
          byName.put(field.getFieldName(), field);
2899
          byName.put(field.getFieldName(), field);
2663
        }
2900
        }
2664
      }
2901
      }
2665
 
2902
 
2666
      /**
2903
      /**
2667
       * Find the _Fields constant that matches fieldId, or null if its not found.
2904
       * Find the _Fields constant that matches fieldId, or null if its not found.
2668
       */
2905
       */
2669
      public static _Fields findByThriftId(int fieldId) {
2906
      public static _Fields findByThriftId(int fieldId) {
2670
        return byId.get(fieldId);
2907
        switch(fieldId) {
-
 
2908
          default:
-
 
2909
            return null;
-
 
2910
        }
2671
      }
2911
      }
2672
 
2912
 
2673
      /**
2913
      /**
2674
       * Find the _Fields constant that matches fieldId, throwing an exception
2914
       * Find the _Fields constant that matches fieldId, throwing an exception
2675
       * if it is not found.
2915
       * if it is not found.
Line 2701... Line 2941...
2701
 
2941
 
2702
      public String getFieldName() {
2942
      public String getFieldName() {
2703
        return _fieldName;
2943
        return _fieldName;
2704
      }
2944
      }
2705
    }
2945
    }
2706
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
2946
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2707
    }});
-
 
2708
 
-
 
2709
    static {
2947
    static {
-
 
2948
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
2949
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2710
      FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
2950
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(createUser_result.class, metaDataMap);
2711
    }
2951
    }
2712
 
2952
 
2713
    public createUser_result() {
2953
    public createUser_result() {
2714
    }
2954
    }
2715
 
2955
 
Line 2721... Line 2961...
2721
 
2961
 
2722
    public createUser_result deepCopy() {
2962
    public createUser_result deepCopy() {
2723
      return new createUser_result(this);
2963
      return new createUser_result(this);
2724
    }
2964
    }
2725
 
2965
 
2726
    @Deprecated
2966
    @Override
2727
    public createUser_result clone() {
2967
    public void clear() {
2728
      return new createUser_result(this);
-
 
2729
    }
2968
    }
2730
 
2969
 
2731
    public void setFieldValue(_Fields field, Object value) {
2970
    public void setFieldValue(_Fields field, Object value) {
2732
      switch (field) {
2971
      switch (field) {
2733
      }
2972
      }
2734
    }
2973
    }
2735
 
2974
 
2736
    public void setFieldValue(int fieldID, Object value) {
-
 
2737
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2738
    }
-
 
2739
 
-
 
2740
    public Object getFieldValue(_Fields field) {
2975
    public Object getFieldValue(_Fields field) {
2741
      switch (field) {
2976
      switch (field) {
2742
      }
2977
      }
2743
      throw new IllegalStateException();
2978
      throw new IllegalStateException();
2744
    }
2979
    }
2745
 
2980
 
2746
    public Object getFieldValue(int fieldId) {
-
 
2747
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2748
    }
-
 
2749
 
-
 
2750
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
2981
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2751
    public boolean isSet(_Fields field) {
2982
    public boolean isSet(_Fields field) {
-
 
2983
      if (field == null) {
-
 
2984
        throw new IllegalArgumentException();
-
 
2985
      }
-
 
2986
 
2752
      switch (field) {
2987
      switch (field) {
2753
      }
2988
      }
2754
      throw new IllegalStateException();
2989
      throw new IllegalStateException();
2755
    }
2990
    }
2756
 
2991
 
2757
    public boolean isSet(int fieldID) {
-
 
2758
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2759
    }
-
 
2760
 
-
 
2761
    @Override
2992
    @Override
2762
    public boolean equals(Object that) {
2993
    public boolean equals(Object that) {
2763
      if (that == null)
2994
      if (that == null)
2764
        return false;
2995
        return false;
2765
      if (that instanceof createUser_result)
2996
      if (that instanceof createUser_result)
Line 2788... Line 3019...
2788
      createUser_result typedOther = (createUser_result)other;
3019
      createUser_result typedOther = (createUser_result)other;
2789
 
3020
 
2790
      return 0;
3021
      return 0;
2791
    }
3022
    }
2792
 
3023
 
-
 
3024
    public _Fields fieldForId(int fieldId) {
-
 
3025
      return _Fields.findByThriftId(fieldId);
-
 
3026
    }
-
 
3027
 
2793
    public void read(TProtocol iprot) throws TException {
3028
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2794
      TField field;
3029
      org.apache.thrift.protocol.TField field;
2795
      iprot.readStructBegin();
3030
      iprot.readStructBegin();
2796
      while (true)
3031
      while (true)
2797
      {
3032
      {
2798
        field = iprot.readFieldBegin();
3033
        field = iprot.readFieldBegin();
2799
        if (field.type == TType.STOP) { 
3034
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2800
          break;
3035
          break;
2801
        }
3036
        }
2802
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2803
        if (fieldId == null) {
-
 
2804
          TProtocolUtil.skip(iprot, field.type);
-
 
2805
        } else {
-
 
2806
          switch (fieldId) {
3037
        switch (field.id) {
2807
          }
3038
          default:
2808
          iprot.readFieldEnd();
3039
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2809
        }
3040
        }
-
 
3041
        iprot.readFieldEnd();
2810
      }
3042
      }
2811
      iprot.readStructEnd();
3043
      iprot.readStructEnd();
2812
      validate();
3044
      validate();
2813
    }
3045
    }
2814
 
3046
 
2815
    public void write(TProtocol oprot) throws TException {
3047
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
2816
      oprot.writeStructBegin(STRUCT_DESC);
3048
      oprot.writeStructBegin(STRUCT_DESC);
2817
 
3049
 
2818
      oprot.writeFieldStop();
3050
      oprot.writeFieldStop();
2819
      oprot.writeStructEnd();
3051
      oprot.writeStructEnd();
2820
    }
3052
    }
Line 2826... Line 3058...
2826
 
3058
 
2827
      sb.append(")");
3059
      sb.append(")");
2828
      return sb.toString();
3060
      return sb.toString();
2829
    }
3061
    }
2830
 
3062
 
2831
    public void validate() throws TException {
3063
    public void validate() throws org.apache.thrift.TException {
2832
      // check for required fields
3064
      // check for required fields
2833
    }
3065
    }
2834
 
3066
 
-
 
3067
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3068
      try {
-
 
3069
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3070
      } catch (org.apache.thrift.TException te) {
-
 
3071
        throw new java.io.IOException(te);
-
 
3072
      }
-
 
3073
    }
-
 
3074
 
-
 
3075
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3076
      try {
-
 
3077
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3078
      } catch (org.apache.thrift.TException te) {
-
 
3079
        throw new java.io.IOException(te);
-
 
3080
      }
-
 
3081
    }
-
 
3082
 
2835
  }
3083
  }
2836
 
3084
 
2837
  public static class closeSession_args implements TBase<closeSession_args._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_args>   {
3085
  public static class closeSession_args implements org.apache.thrift.TBase<closeSession_args, closeSession_args._Fields>, java.io.Serializable, Cloneable   {
2838
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_args");
3086
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_args");
2839
 
3087
 
2840
 
3088
 
2841
 
3089
 
2842
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3090
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
2843
    public enum _Fields implements TFieldIdEnum {
3091
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
2844
;
3092
;
2845
 
3093
 
2846
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
2847
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3094
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
2848
 
3095
 
2849
      static {
3096
      static {
2850
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3097
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
2851
          byId.put((int)field._thriftId, field);
-
 
2852
          byName.put(field.getFieldName(), field);
3098
          byName.put(field.getFieldName(), field);
2853
        }
3099
        }
2854
      }
3100
      }
2855
 
3101
 
2856
      /**
3102
      /**
2857
       * Find the _Fields constant that matches fieldId, or null if its not found.
3103
       * Find the _Fields constant that matches fieldId, or null if its not found.
2858
       */
3104
       */
2859
      public static _Fields findByThriftId(int fieldId) {
3105
      public static _Fields findByThriftId(int fieldId) {
2860
        return byId.get(fieldId);
3106
        switch(fieldId) {
-
 
3107
          default:
-
 
3108
            return null;
-
 
3109
        }
2861
      }
3110
      }
2862
 
3111
 
2863
      /**
3112
      /**
2864
       * Find the _Fields constant that matches fieldId, throwing an exception
3113
       * Find the _Fields constant that matches fieldId, throwing an exception
2865
       * if it is not found.
3114
       * if it is not found.
Line 2891... Line 3140...
2891
 
3140
 
2892
      public String getFieldName() {
3141
      public String getFieldName() {
2893
        return _fieldName;
3142
        return _fieldName;
2894
      }
3143
      }
2895
    }
3144
    }
2896
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3145
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
2897
    }});
-
 
2898
 
-
 
2899
    static {
3146
    static {
-
 
3147
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3148
      metaDataMap = Collections.unmodifiableMap(tmpMap);
2900
      FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
3149
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_args.class, metaDataMap);
2901
    }
3150
    }
2902
 
3151
 
2903
    public closeSession_args() {
3152
    public closeSession_args() {
2904
    }
3153
    }
2905
 
3154
 
Line 2911... Line 3160...
2911
 
3160
 
2912
    public closeSession_args deepCopy() {
3161
    public closeSession_args deepCopy() {
2913
      return new closeSession_args(this);
3162
      return new closeSession_args(this);
2914
    }
3163
    }
2915
 
3164
 
2916
    @Deprecated
3165
    @Override
2917
    public closeSession_args clone() {
3166
    public void clear() {
2918
      return new closeSession_args(this);
-
 
2919
    }
3167
    }
2920
 
3168
 
2921
    public void setFieldValue(_Fields field, Object value) {
3169
    public void setFieldValue(_Fields field, Object value) {
2922
      switch (field) {
3170
      switch (field) {
2923
      }
3171
      }
2924
    }
3172
    }
2925
 
3173
 
2926
    public void setFieldValue(int fieldID, Object value) {
-
 
2927
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
2928
    }
-
 
2929
 
-
 
2930
    public Object getFieldValue(_Fields field) {
3174
    public Object getFieldValue(_Fields field) {
2931
      switch (field) {
3175
      switch (field) {
2932
      }
3176
      }
2933
      throw new IllegalStateException();
3177
      throw new IllegalStateException();
2934
    }
3178
    }
2935
 
3179
 
2936
    public Object getFieldValue(int fieldId) {
-
 
2937
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
2938
    }
-
 
2939
 
-
 
2940
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3180
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
2941
    public boolean isSet(_Fields field) {
3181
    public boolean isSet(_Fields field) {
-
 
3182
      if (field == null) {
-
 
3183
        throw new IllegalArgumentException();
-
 
3184
      }
-
 
3185
 
2942
      switch (field) {
3186
      switch (field) {
2943
      }
3187
      }
2944
      throw new IllegalStateException();
3188
      throw new IllegalStateException();
2945
    }
3189
    }
2946
 
3190
 
2947
    public boolean isSet(int fieldID) {
-
 
2948
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
2949
    }
-
 
2950
 
-
 
2951
    @Override
3191
    @Override
2952
    public boolean equals(Object that) {
3192
    public boolean equals(Object that) {
2953
      if (that == null)
3193
      if (that == null)
2954
        return false;
3194
        return false;
2955
      if (that instanceof closeSession_args)
3195
      if (that instanceof closeSession_args)
Line 2978... Line 3218...
2978
      closeSession_args typedOther = (closeSession_args)other;
3218
      closeSession_args typedOther = (closeSession_args)other;
2979
 
3219
 
2980
      return 0;
3220
      return 0;
2981
    }
3221
    }
2982
 
3222
 
-
 
3223
    public _Fields fieldForId(int fieldId) {
-
 
3224
      return _Fields.findByThriftId(fieldId);
-
 
3225
    }
-
 
3226
 
2983
    public void read(TProtocol iprot) throws TException {
3227
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
2984
      TField field;
3228
      org.apache.thrift.protocol.TField field;
2985
      iprot.readStructBegin();
3229
      iprot.readStructBegin();
2986
      while (true)
3230
      while (true)
2987
      {
3231
      {
2988
        field = iprot.readFieldBegin();
3232
        field = iprot.readFieldBegin();
2989
        if (field.type == TType.STOP) { 
3233
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
2990
          break;
3234
          break;
2991
        }
3235
        }
2992
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
2993
        if (fieldId == null) {
-
 
2994
          TProtocolUtil.skip(iprot, field.type);
-
 
2995
        } else {
-
 
2996
          switch (fieldId) {
3236
        switch (field.id) {
2997
          }
3237
          default:
2998
          iprot.readFieldEnd();
3238
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
2999
        }
3239
        }
-
 
3240
        iprot.readFieldEnd();
3000
      }
3241
      }
3001
      iprot.readStructEnd();
3242
      iprot.readStructEnd();
3002
      validate();
3243
      validate();
3003
    }
3244
    }
3004
 
3245
 
3005
    public void write(TProtocol oprot) throws TException {
3246
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3006
      validate();
3247
      validate();
3007
 
3248
 
3008
      oprot.writeStructBegin(STRUCT_DESC);
3249
      oprot.writeStructBegin(STRUCT_DESC);
3009
      oprot.writeFieldStop();
3250
      oprot.writeFieldStop();
3010
      oprot.writeStructEnd();
3251
      oprot.writeStructEnd();
Line 3017... Line 3258...
3017
 
3258
 
3018
      sb.append(")");
3259
      sb.append(")");
3019
      return sb.toString();
3260
      return sb.toString();
3020
    }
3261
    }
3021
 
3262
 
3022
    public void validate() throws TException {
3263
    public void validate() throws org.apache.thrift.TException {
3023
      // check for required fields
3264
      // check for required fields
3024
    }
3265
    }
3025
 
3266
 
-
 
3267
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3268
      try {
-
 
3269
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3270
      } catch (org.apache.thrift.TException te) {
-
 
3271
        throw new java.io.IOException(te);
-
 
3272
      }
-
 
3273
    }
-
 
3274
 
-
 
3275
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3276
      try {
-
 
3277
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3278
      } catch (org.apache.thrift.TException te) {
-
 
3279
        throw new java.io.IOException(te);
-
 
3280
      }
-
 
3281
    }
-
 
3282
 
3026
  }
3283
  }
3027
 
3284
 
3028
  public static class closeSession_result implements TBase<closeSession_result._Fields>, java.io.Serializable, Cloneable, Comparable<closeSession_result>   {
3285
  public static class closeSession_result implements org.apache.thrift.TBase<closeSession_result, closeSession_result._Fields>, java.io.Serializable, Cloneable   {
3029
    private static final TStruct STRUCT_DESC = new TStruct("closeSession_result");
3286
    private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("closeSession_result");
3030
 
3287
 
3031
 
3288
 
3032
 
3289
 
3033
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3290
    /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
3034
    public enum _Fields implements TFieldIdEnum {
3291
    public enum _Fields implements org.apache.thrift.TFieldIdEnum {
3035
;
3292
;
3036
 
3293
 
3037
      private static final Map<Integer, _Fields> byId = new HashMap<Integer, _Fields>();
-
 
3038
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3294
      private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
3039
 
3295
 
3040
      static {
3296
      static {
3041
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3297
        for (_Fields field : EnumSet.allOf(_Fields.class)) {
3042
          byId.put((int)field._thriftId, field);
-
 
3043
          byName.put(field.getFieldName(), field);
3298
          byName.put(field.getFieldName(), field);
3044
        }
3299
        }
3045
      }
3300
      }
3046
 
3301
 
3047
      /**
3302
      /**
3048
       * Find the _Fields constant that matches fieldId, or null if its not found.
3303
       * Find the _Fields constant that matches fieldId, or null if its not found.
3049
       */
3304
       */
3050
      public static _Fields findByThriftId(int fieldId) {
3305
      public static _Fields findByThriftId(int fieldId) {
3051
        return byId.get(fieldId);
3306
        switch(fieldId) {
-
 
3307
          default:
-
 
3308
            return null;
-
 
3309
        }
3052
      }
3310
      }
3053
 
3311
 
3054
      /**
3312
      /**
3055
       * Find the _Fields constant that matches fieldId, throwing an exception
3313
       * Find the _Fields constant that matches fieldId, throwing an exception
3056
       * if it is not found.
3314
       * if it is not found.
Line 3082... Line 3340...
3082
 
3340
 
3083
      public String getFieldName() {
3341
      public String getFieldName() {
3084
        return _fieldName;
3342
        return _fieldName;
3085
      }
3343
      }
3086
    }
3344
    }
3087
    public static final Map<_Fields, FieldMetaData> metaDataMap = Collections.unmodifiableMap(new EnumMap<_Fields, FieldMetaData>(_Fields.class) {{
3345
    public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
3088
    }});
-
 
3089
 
-
 
3090
    static {
3346
    static {
-
 
3347
      Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
-
 
3348
      metaDataMap = Collections.unmodifiableMap(tmpMap);
3091
      FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
3349
      org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(closeSession_result.class, metaDataMap);
3092
    }
3350
    }
3093
 
3351
 
3094
    public closeSession_result() {
3352
    public closeSession_result() {
3095
    }
3353
    }
3096
 
3354
 
Line 3102... Line 3360...
3102
 
3360
 
3103
    public closeSession_result deepCopy() {
3361
    public closeSession_result deepCopy() {
3104
      return new closeSession_result(this);
3362
      return new closeSession_result(this);
3105
    }
3363
    }
3106
 
3364
 
3107
    @Deprecated
3365
    @Override
3108
    public closeSession_result clone() {
3366
    public void clear() {
3109
      return new closeSession_result(this);
-
 
3110
    }
3367
    }
3111
 
3368
 
3112
    public void setFieldValue(_Fields field, Object value) {
3369
    public void setFieldValue(_Fields field, Object value) {
3113
      switch (field) {
3370
      switch (field) {
3114
      }
3371
      }
3115
    }
3372
    }
3116
 
3373
 
3117
    public void setFieldValue(int fieldID, Object value) {
-
 
3118
      setFieldValue(_Fields.findByThriftIdOrThrow(fieldID), value);
-
 
3119
    }
-
 
3120
 
-
 
3121
    public Object getFieldValue(_Fields field) {
3374
    public Object getFieldValue(_Fields field) {
3122
      switch (field) {
3375
      switch (field) {
3123
      }
3376
      }
3124
      throw new IllegalStateException();
3377
      throw new IllegalStateException();
3125
    }
3378
    }
3126
 
3379
 
3127
    public Object getFieldValue(int fieldId) {
-
 
3128
      return getFieldValue(_Fields.findByThriftIdOrThrow(fieldId));
-
 
3129
    }
-
 
3130
 
-
 
3131
    /** Returns true if field corresponding to fieldID is set (has been asigned a value) and false otherwise */
3380
    /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
3132
    public boolean isSet(_Fields field) {
3381
    public boolean isSet(_Fields field) {
-
 
3382
      if (field == null) {
-
 
3383
        throw new IllegalArgumentException();
-
 
3384
      }
-
 
3385
 
3133
      switch (field) {
3386
      switch (field) {
3134
      }
3387
      }
3135
      throw new IllegalStateException();
3388
      throw new IllegalStateException();
3136
    }
3389
    }
3137
 
3390
 
3138
    public boolean isSet(int fieldID) {
-
 
3139
      return isSet(_Fields.findByThriftIdOrThrow(fieldID));
-
 
3140
    }
-
 
3141
 
-
 
3142
    @Override
3391
    @Override
3143
    public boolean equals(Object that) {
3392
    public boolean equals(Object that) {
3144
      if (that == null)
3393
      if (that == null)
3145
        return false;
3394
        return false;
3146
      if (that instanceof closeSession_result)
3395
      if (that instanceof closeSession_result)
Line 3169... Line 3418...
3169
      closeSession_result typedOther = (closeSession_result)other;
3418
      closeSession_result typedOther = (closeSession_result)other;
3170
 
3419
 
3171
      return 0;
3420
      return 0;
3172
    }
3421
    }
3173
 
3422
 
-
 
3423
    public _Fields fieldForId(int fieldId) {
-
 
3424
      return _Fields.findByThriftId(fieldId);
-
 
3425
    }
-
 
3426
 
3174
    public void read(TProtocol iprot) throws TException {
3427
    public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
3175
      TField field;
3428
      org.apache.thrift.protocol.TField field;
3176
      iprot.readStructBegin();
3429
      iprot.readStructBegin();
3177
      while (true)
3430
      while (true)
3178
      {
3431
      {
3179
        field = iprot.readFieldBegin();
3432
        field = iprot.readFieldBegin();
3180
        if (field.type == TType.STOP) { 
3433
        if (field.type == org.apache.thrift.protocol.TType.STOP) { 
3181
          break;
3434
          break;
3182
        }
3435
        }
3183
        _Fields fieldId = _Fields.findByThriftId(field.id);
-
 
3184
        if (fieldId == null) {
-
 
3185
          TProtocolUtil.skip(iprot, field.type);
-
 
3186
        } else {
-
 
3187
          switch (fieldId) {
3436
        switch (field.id) {
3188
          }
3437
          default:
3189
          iprot.readFieldEnd();
3438
            org.apache.thrift.protocol.TProtocolUtil.skip(iprot, field.type);
3190
        }
3439
        }
-
 
3440
        iprot.readFieldEnd();
3191
      }
3441
      }
3192
      iprot.readStructEnd();
3442
      iprot.readStructEnd();
3193
      validate();
3443
      validate();
3194
    }
3444
    }
3195
 
3445
 
3196
    public void write(TProtocol oprot) throws TException {
3446
    public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
3197
      oprot.writeStructBegin(STRUCT_DESC);
3447
      oprot.writeStructBegin(STRUCT_DESC);
3198
 
3448
 
3199
      oprot.writeFieldStop();
3449
      oprot.writeFieldStop();
3200
      oprot.writeStructEnd();
3450
      oprot.writeStructEnd();
3201
    }
3451
    }
Line 3207... Line 3457...
3207
 
3457
 
3208
      sb.append(")");
3458
      sb.append(")");
3209
      return sb.toString();
3459
      return sb.toString();
3210
    }
3460
    }
3211
 
3461
 
3212
    public void validate() throws TException {
3462
    public void validate() throws org.apache.thrift.TException {
3213
      // check for required fields
3463
      // check for required fields
3214
    }
3464
    }
3215
 
3465
 
-
 
3466
    private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
-
 
3467
      try {
-
 
3468
        write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
-
 
3469
      } catch (org.apache.thrift.TException te) {
-
 
3470
        throw new java.io.IOException(te);
-
 
3471
      }
-
 
3472
    }
-
 
3473
 
-
 
3474
    private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
-
 
3475
      try {
-
 
3476
        read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
-
 
3477
      } catch (org.apache.thrift.TException te) {
-
 
3478
        throw new java.io.IOException(te);
-
 
3479
      }
-
 
3480
    }
-
 
3481
 
3216
  }
3482
  }
3217
 
3483
 
3218
}
3484
}