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