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