SENTRY-2192: supress date value in @Generated annotation generated by thrift.(Kalyan...
[sentry.git] / sentry-provider / sentry-provider-db / src / gen / thrift / gen-javabean / org / apache / sentry / provider / db / generic / service / thrift / TDropSentryRoleRequest.java
1 /**
2 * Autogenerated by Thrift Compiler (0.9.3)
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
7 package org.apache.sentry.provider.db.generic.service.thrift;
8
9 import org.apache.thrift.scheme.IScheme;
10 import org.apache.thrift.scheme.SchemeFactory;
11 import org.apache.thrift.scheme.StandardScheme;
12
13 import org.apache.thrift.scheme.TupleScheme;
14 import org.apache.thrift.protocol.TTupleProtocol;
15 import org.apache.thrift.protocol.TProtocolException;
16 import org.apache.thrift.EncodingUtils;
17 import org.apache.thrift.TException;
18 import org.apache.thrift.async.AsyncMethodCallback;
19 import org.apache.thrift.server.AbstractNonblockingServer.*;
20 import java.util.List;
21 import java.util.ArrayList;
22 import java.util.Map;
23 import java.util.HashMap;
24 import java.util.EnumMap;
25 import java.util.Set;
26 import java.util.HashSet;
27 import java.util.EnumSet;
28 import java.util.Collections;
29 import java.util.BitSet;
30 import java.nio.ByteBuffer;
31 import java.util.Arrays;
32 import javax.annotation.Generated;
33 import org.slf4j.Logger;
34 import org.slf4j.LoggerFactory;
35
36 @SuppressWarnings({"cast", "rawtypes", "serial", "unchecked"})
37 @Generated(value = "Autogenerated by Thrift Compiler (0.9.3)")
38 public class TDropSentryRoleRequest implements org.apache.thrift.TBase<TDropSentryRoleRequest, TDropSentryRoleRequest._Fields>, java.io.Serializable, Cloneable, Comparable<TDropSentryRoleRequest> {
39 private static final org.apache.thrift.protocol.TStruct STRUCT_DESC = new org.apache.thrift.protocol.TStruct("TDropSentryRoleRequest");
40
41 private static final org.apache.thrift.protocol.TField PROTOCOL_VERSION_FIELD_DESC = new org.apache.thrift.protocol.TField("protocol_version", org.apache.thrift.protocol.TType.I32, (short)1);
42 private static final org.apache.thrift.protocol.TField REQUESTOR_USER_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("requestorUserName", org.apache.thrift.protocol.TType.STRING, (short)2);
43 private static final org.apache.thrift.protocol.TField ROLE_NAME_FIELD_DESC = new org.apache.thrift.protocol.TField("roleName", org.apache.thrift.protocol.TType.STRING, (short)3);
44 private static final org.apache.thrift.protocol.TField COMPONENT_FIELD_DESC = new org.apache.thrift.protocol.TField("component", org.apache.thrift.protocol.TType.STRING, (short)4);
45
46 private static final Map<Class<? extends IScheme>, SchemeFactory> schemes = new HashMap<Class<? extends IScheme>, SchemeFactory>();
47 static {
48 schemes.put(StandardScheme.class, new TDropSentryRoleRequestStandardSchemeFactory());
49 schemes.put(TupleScheme.class, new TDropSentryRoleRequestTupleSchemeFactory());
50 }
51
52 private int protocol_version; // required
53 private String requestorUserName; // required
54 private String roleName; // required
55 private String component; // required
56
57 /** The set of fields this struct contains, along with convenience methods for finding and manipulating them. */
58 public enum _Fields implements org.apache.thrift.TFieldIdEnum {
59 PROTOCOL_VERSION((short)1, "protocol_version"),
60 REQUESTOR_USER_NAME((short)2, "requestorUserName"),
61 ROLE_NAME((short)3, "roleName"),
62 COMPONENT((short)4, "component");
63
64 private static final Map<String, _Fields> byName = new HashMap<String, _Fields>();
65
66 static {
67 for (_Fields field : EnumSet.allOf(_Fields.class)) {
68 byName.put(field.getFieldName(), field);
69 }
70 }
71
72 /**
73 * Find the _Fields constant that matches fieldId, or null if its not found.
74 */
75 public static _Fields findByThriftId(int fieldId) {
76 switch(fieldId) {
77 case 1: // PROTOCOL_VERSION
78 return PROTOCOL_VERSION;
79 case 2: // REQUESTOR_USER_NAME
80 return REQUESTOR_USER_NAME;
81 case 3: // ROLE_NAME
82 return ROLE_NAME;
83 case 4: // COMPONENT
84 return COMPONENT;
85 default:
86 return null;
87 }
88 }
89
90 /**
91 * Find the _Fields constant that matches fieldId, throwing an exception
92 * if it is not found.
93 */
94 public static _Fields findByThriftIdOrThrow(int fieldId) {
95 _Fields fields = findByThriftId(fieldId);
96 if (fields == null) throw new IllegalArgumentException("Field " + fieldId + " doesn't exist!");
97 return fields;
98 }
99
100 /**
101 * Find the _Fields constant that matches name, or null if its not found.
102 */
103 public static _Fields findByName(String name) {
104 return byName.get(name);
105 }
106
107 private final short _thriftId;
108 private final String _fieldName;
109
110 _Fields(short thriftId, String fieldName) {
111 _thriftId = thriftId;
112 _fieldName = fieldName;
113 }
114
115 public short getThriftFieldId() {
116 return _thriftId;
117 }
118
119 public String getFieldName() {
120 return _fieldName;
121 }
122 }
123
124 // isset id assignments
125 private static final int __PROTOCOL_VERSION_ISSET_ID = 0;
126 private byte __isset_bitfield = 0;
127 public static final Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> metaDataMap;
128 static {
129 Map<_Fields, org.apache.thrift.meta_data.FieldMetaData> tmpMap = new EnumMap<_Fields, org.apache.thrift.meta_data.FieldMetaData>(_Fields.class);
130 tmpMap.put(_Fields.PROTOCOL_VERSION, new org.apache.thrift.meta_data.FieldMetaData("protocol_version", org.apache.thrift.TFieldRequirementType.REQUIRED,
131 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.I32)));
132 tmpMap.put(_Fields.REQUESTOR_USER_NAME, new org.apache.thrift.meta_data.FieldMetaData("requestorUserName", org.apache.thrift.TFieldRequirementType.REQUIRED,
133 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
134 tmpMap.put(_Fields.ROLE_NAME, new org.apache.thrift.meta_data.FieldMetaData("roleName", org.apache.thrift.TFieldRequirementType.REQUIRED,
135 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
136 tmpMap.put(_Fields.COMPONENT, new org.apache.thrift.meta_data.FieldMetaData("component", org.apache.thrift.TFieldRequirementType.REQUIRED,
137 new org.apache.thrift.meta_data.FieldValueMetaData(org.apache.thrift.protocol.TType.STRING)));
138 metaDataMap = Collections.unmodifiableMap(tmpMap);
139 org.apache.thrift.meta_data.FieldMetaData.addStructMetaDataMap(TDropSentryRoleRequest.class, metaDataMap);
140 }
141
142 public TDropSentryRoleRequest() {
143 this.protocol_version = 2;
144
145 }
146
147 public TDropSentryRoleRequest(
148 int protocol_version,
149 String requestorUserName,
150 String roleName,
151 String component)
152 {
153 this();
154 this.protocol_version = protocol_version;
155 setProtocol_versionIsSet(true);
156 this.requestorUserName = requestorUserName;
157 this.roleName = roleName;
158 this.component = component;
159 }
160
161 /**
162 * Performs a deep copy on <i>other</i>.
163 */
164 public TDropSentryRoleRequest(TDropSentryRoleRequest other) {
165 __isset_bitfield = other.__isset_bitfield;
166 this.protocol_version = other.protocol_version;
167 if (other.isSetRequestorUserName()) {
168 this.requestorUserName = other.requestorUserName;
169 }
170 if (other.isSetRoleName()) {
171 this.roleName = other.roleName;
172 }
173 if (other.isSetComponent()) {
174 this.component = other.component;
175 }
176 }
177
178 public TDropSentryRoleRequest deepCopy() {
179 return new TDropSentryRoleRequest(this);
180 }
181
182 @Override
183 public void clear() {
184 this.protocol_version = 2;
185
186 this.requestorUserName = null;
187 this.roleName = null;
188 this.component = null;
189 }
190
191 public int getProtocol_version() {
192 return this.protocol_version;
193 }
194
195 public void setProtocol_version(int protocol_version) {
196 this.protocol_version = protocol_version;
197 setProtocol_versionIsSet(true);
198 }
199
200 public void unsetProtocol_version() {
201 __isset_bitfield = EncodingUtils.clearBit(__isset_bitfield, __PROTOCOL_VERSION_ISSET_ID);
202 }
203
204 /** Returns true if field protocol_version is set (has been assigned a value) and false otherwise */
205 public boolean isSetProtocol_version() {
206 return EncodingUtils.testBit(__isset_bitfield, __PROTOCOL_VERSION_ISSET_ID);
207 }
208
209 public void setProtocol_versionIsSet(boolean value) {
210 __isset_bitfield = EncodingUtils.setBit(__isset_bitfield, __PROTOCOL_VERSION_ISSET_ID, value);
211 }
212
213 public String getRequestorUserName() {
214 return this.requestorUserName;
215 }
216
217 public void setRequestorUserName(String requestorUserName) {
218 this.requestorUserName = requestorUserName;
219 }
220
221 public void unsetRequestorUserName() {
222 this.requestorUserName = null;
223 }
224
225 /** Returns true if field requestorUserName is set (has been assigned a value) and false otherwise */
226 public boolean isSetRequestorUserName() {
227 return this.requestorUserName != null;
228 }
229
230 public void setRequestorUserNameIsSet(boolean value) {
231 if (!value) {
232 this.requestorUserName = null;
233 }
234 }
235
236 public String getRoleName() {
237 return this.roleName;
238 }
239
240 public void setRoleName(String roleName) {
241 this.roleName = roleName;
242 }
243
244 public void unsetRoleName() {
245 this.roleName = null;
246 }
247
248 /** Returns true if field roleName is set (has been assigned a value) and false otherwise */
249 public boolean isSetRoleName() {
250 return this.roleName != null;
251 }
252
253 public void setRoleNameIsSet(boolean value) {
254 if (!value) {
255 this.roleName = null;
256 }
257 }
258
259 public String getComponent() {
260 return this.component;
261 }
262
263 public void setComponent(String component) {
264 this.component = component;
265 }
266
267 public void unsetComponent() {
268 this.component = null;
269 }
270
271 /** Returns true if field component is set (has been assigned a value) and false otherwise */
272 public boolean isSetComponent() {
273 return this.component != null;
274 }
275
276 public void setComponentIsSet(boolean value) {
277 if (!value) {
278 this.component = null;
279 }
280 }
281
282 public void setFieldValue(_Fields field, Object value) {
283 switch (field) {
284 case PROTOCOL_VERSION:
285 if (value == null) {
286 unsetProtocol_version();
287 } else {
288 setProtocol_version((Integer)value);
289 }
290 break;
291
292 case REQUESTOR_USER_NAME:
293 if (value == null) {
294 unsetRequestorUserName();
295 } else {
296 setRequestorUserName((String)value);
297 }
298 break;
299
300 case ROLE_NAME:
301 if (value == null) {
302 unsetRoleName();
303 } else {
304 setRoleName((String)value);
305 }
306 break;
307
308 case COMPONENT:
309 if (value == null) {
310 unsetComponent();
311 } else {
312 setComponent((String)value);
313 }
314 break;
315
316 }
317 }
318
319 public Object getFieldValue(_Fields field) {
320 switch (field) {
321 case PROTOCOL_VERSION:
322 return getProtocol_version();
323
324 case REQUESTOR_USER_NAME:
325 return getRequestorUserName();
326
327 case ROLE_NAME:
328 return getRoleName();
329
330 case COMPONENT:
331 return getComponent();
332
333 }
334 throw new IllegalStateException();
335 }
336
337 /** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */
338 public boolean isSet(_Fields field) {
339 if (field == null) {
340 throw new IllegalArgumentException();
341 }
342
343 switch (field) {
344 case PROTOCOL_VERSION:
345 return isSetProtocol_version();
346 case REQUESTOR_USER_NAME:
347 return isSetRequestorUserName();
348 case ROLE_NAME:
349 return isSetRoleName();
350 case COMPONENT:
351 return isSetComponent();
352 }
353 throw new IllegalStateException();
354 }
355
356 @Override
357 public boolean equals(Object that) {
358 if (that == null)
359 return false;
360 if (that instanceof TDropSentryRoleRequest)
361 return this.equals((TDropSentryRoleRequest)that);
362 return false;
363 }
364
365 public boolean equals(TDropSentryRoleRequest that) {
366 if (that == null)
367 return false;
368
369 boolean this_present_protocol_version = true;
370 boolean that_present_protocol_version = true;
371 if (this_present_protocol_version || that_present_protocol_version) {
372 if (!(this_present_protocol_version && that_present_protocol_version))
373 return false;
374 if (this.protocol_version != that.protocol_version)
375 return false;
376 }
377
378 boolean this_present_requestorUserName = true && this.isSetRequestorUserName();
379 boolean that_present_requestorUserName = true && that.isSetRequestorUserName();
380 if (this_present_requestorUserName || that_present_requestorUserName) {
381 if (!(this_present_requestorUserName && that_present_requestorUserName))
382 return false;
383 if (!this.requestorUserName.equals(that.requestorUserName))
384 return false;
385 }
386
387 boolean this_present_roleName = true && this.isSetRoleName();
388 boolean that_present_roleName = true && that.isSetRoleName();
389 if (this_present_roleName || that_present_roleName) {
390 if (!(this_present_roleName && that_present_roleName))
391 return false;
392 if (!this.roleName.equals(that.roleName))
393 return false;
394 }
395
396 boolean this_present_component = true && this.isSetComponent();
397 boolean that_present_component = true && that.isSetComponent();
398 if (this_present_component || that_present_component) {
399 if (!(this_present_component && that_present_component))
400 return false;
401 if (!this.component.equals(that.component))
402 return false;
403 }
404
405 return true;
406 }
407
408 @Override
409 public int hashCode() {
410 List<Object> list = new ArrayList<Object>();
411
412 boolean present_protocol_version = true;
413 list.add(present_protocol_version);
414 if (present_protocol_version)
415 list.add(protocol_version);
416
417 boolean present_requestorUserName = true && (isSetRequestorUserName());
418 list.add(present_requestorUserName);
419 if (present_requestorUserName)
420 list.add(requestorUserName);
421
422 boolean present_roleName = true && (isSetRoleName());
423 list.add(present_roleName);
424 if (present_roleName)
425 list.add(roleName);
426
427 boolean present_component = true && (isSetComponent());
428 list.add(present_component);
429 if (present_component)
430 list.add(component);
431
432 return list.hashCode();
433 }
434
435 @Override
436 public int compareTo(TDropSentryRoleRequest other) {
437 if (!getClass().equals(other.getClass())) {
438 return getClass().getName().compareTo(other.getClass().getName());
439 }
440
441 int lastComparison = 0;
442
443 lastComparison = Boolean.valueOf(isSetProtocol_version()).compareTo(other.isSetProtocol_version());
444 if (lastComparison != 0) {
445 return lastComparison;
446 }
447 if (isSetProtocol_version()) {
448 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.protocol_version, other.protocol_version);
449 if (lastComparison != 0) {
450 return lastComparison;
451 }
452 }
453 lastComparison = Boolean.valueOf(isSetRequestorUserName()).compareTo(other.isSetRequestorUserName());
454 if (lastComparison != 0) {
455 return lastComparison;
456 }
457 if (isSetRequestorUserName()) {
458 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.requestorUserName, other.requestorUserName);
459 if (lastComparison != 0) {
460 return lastComparison;
461 }
462 }
463 lastComparison = Boolean.valueOf(isSetRoleName()).compareTo(other.isSetRoleName());
464 if (lastComparison != 0) {
465 return lastComparison;
466 }
467 if (isSetRoleName()) {
468 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.roleName, other.roleName);
469 if (lastComparison != 0) {
470 return lastComparison;
471 }
472 }
473 lastComparison = Boolean.valueOf(isSetComponent()).compareTo(other.isSetComponent());
474 if (lastComparison != 0) {
475 return lastComparison;
476 }
477 if (isSetComponent()) {
478 lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.component, other.component);
479 if (lastComparison != 0) {
480 return lastComparison;
481 }
482 }
483 return 0;
484 }
485
486 public _Fields fieldForId(int fieldId) {
487 return _Fields.findByThriftId(fieldId);
488 }
489
490 public void read(org.apache.thrift.protocol.TProtocol iprot) throws org.apache.thrift.TException {
491 schemes.get(iprot.getScheme()).getScheme().read(iprot, this);
492 }
493
494 public void write(org.apache.thrift.protocol.TProtocol oprot) throws org.apache.thrift.TException {
495 schemes.get(oprot.getScheme()).getScheme().write(oprot, this);
496 }
497
498 @Override
499 public String toString() {
500 StringBuilder sb = new StringBuilder("TDropSentryRoleRequest(");
501 boolean first = true;
502
503 sb.append("protocol_version:");
504 sb.append(this.protocol_version);
505 first = false;
506 if (!first) sb.append(", ");
507 sb.append("requestorUserName:");
508 if (this.requestorUserName == null) {
509 sb.append("null");
510 } else {
511 sb.append(this.requestorUserName);
512 }
513 first = false;
514 if (!first) sb.append(", ");
515 sb.append("roleName:");
516 if (this.roleName == null) {
517 sb.append("null");
518 } else {
519 sb.append(this.roleName);
520 }
521 first = false;
522 if (!first) sb.append(", ");
523 sb.append("component:");
524 if (this.component == null) {
525 sb.append("null");
526 } else {
527 sb.append(this.component);
528 }
529 first = false;
530 sb.append(")");
531 return sb.toString();
532 }
533
534 public void validate() throws org.apache.thrift.TException {
535 // check for required fields
536 if (!isSetProtocol_version()) {
537 throw new org.apache.thrift.protocol.TProtocolException("Required field 'protocol_version' is unset! Struct:" + toString());
538 }
539
540 if (!isSetRequestorUserName()) {
541 throw new org.apache.thrift.protocol.TProtocolException("Required field 'requestorUserName' is unset! Struct:" + toString());
542 }
543
544 if (!isSetRoleName()) {
545 throw new org.apache.thrift.protocol.TProtocolException("Required field 'roleName' is unset! Struct:" + toString());
546 }
547
548 if (!isSetComponent()) {
549 throw new org.apache.thrift.protocol.TProtocolException("Required field 'component' is unset! Struct:" + toString());
550 }
551
552 // check for sub-struct validity
553 }
554
555 private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException {
556 try {
557 write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out)));
558 } catch (org.apache.thrift.TException te) {
559 throw new java.io.IOException(te);
560 }
561 }
562
563 private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException {
564 try {
565 // it doesn't seem like you should have to do this, but java serialization is wacky, and doesn't call the default constructor.
566 __isset_bitfield = 0;
567 read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in)));
568 } catch (org.apache.thrift.TException te) {
569 throw new java.io.IOException(te);
570 }
571 }
572
573 private static class TDropSentryRoleRequestStandardSchemeFactory implements SchemeFactory {
574 public TDropSentryRoleRequestStandardScheme getScheme() {
575 return new TDropSentryRoleRequestStandardScheme();
576 }
577 }
578
579 private static class TDropSentryRoleRequestStandardScheme extends StandardScheme<TDropSentryRoleRequest> {
580
581 public void read(org.apache.thrift.protocol.TProtocol iprot, TDropSentryRoleRequest struct) throws org.apache.thrift.TException {
582 org.apache.thrift.protocol.TField schemeField;
583 iprot.readStructBegin();
584 while (true)
585 {
586 schemeField = iprot.readFieldBegin();
587 if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {
588 break;
589 }
590 switch (schemeField.id) {
591 case 1: // PROTOCOL_VERSION
592 if (schemeField.type == org.apache.thrift.protocol.TType.I32) {
593 struct.protocol_version = iprot.readI32();
594 struct.setProtocol_versionIsSet(true);
595 } else {
596 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
597 }
598 break;
599 case 2: // REQUESTOR_USER_NAME
600 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
601 struct.requestorUserName = iprot.readString();
602 struct.setRequestorUserNameIsSet(true);
603 } else {
604 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
605 }
606 break;
607 case 3: // ROLE_NAME
608 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
609 struct.roleName = iprot.readString();
610 struct.setRoleNameIsSet(true);
611 } else {
612 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
613 }
614 break;
615 case 4: // COMPONENT
616 if (schemeField.type == org.apache.thrift.protocol.TType.STRING) {
617 struct.component = iprot.readString();
618 struct.setComponentIsSet(true);
619 } else {
620 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
621 }
622 break;
623 default:
624 org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
625 }
626 iprot.readFieldEnd();
627 }
628 iprot.readStructEnd();
629 struct.validate();
630 }
631
632 public void write(org.apache.thrift.protocol.TProtocol oprot, TDropSentryRoleRequest struct) throws org.apache.thrift.TException {
633 struct.validate();
634
635 oprot.writeStructBegin(STRUCT_DESC);
636 oprot.writeFieldBegin(PROTOCOL_VERSION_FIELD_DESC);
637 oprot.writeI32(struct.protocol_version);
638 oprot.writeFieldEnd();
639 if (struct.requestorUserName != null) {
640 oprot.writeFieldBegin(REQUESTOR_USER_NAME_FIELD_DESC);
641 oprot.writeString(struct.requestorUserName);
642 oprot.writeFieldEnd();
643 }
644 if (struct.roleName != null) {
645 oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC);
646 oprot.writeString(struct.roleName);
647 oprot.writeFieldEnd();
648 }
649 if (struct.component != null) {
650 oprot.writeFieldBegin(COMPONENT_FIELD_DESC);
651 oprot.writeString(struct.component);
652 oprot.writeFieldEnd();
653 }
654 oprot.writeFieldStop();
655 oprot.writeStructEnd();
656 }
657
658 }
659
660 private static class TDropSentryRoleRequestTupleSchemeFactory implements SchemeFactory {
661 public TDropSentryRoleRequestTupleScheme getScheme() {
662 return new TDropSentryRoleRequestTupleScheme();
663 }
664 }
665
666 private static class TDropSentryRoleRequestTupleScheme extends TupleScheme<TDropSentryRoleRequest> {
667
668 @Override
669 public void write(org.apache.thrift.protocol.TProtocol prot, TDropSentryRoleRequest struct) throws org.apache.thrift.TException {
670 TTupleProtocol oprot = (TTupleProtocol) prot;
671 oprot.writeI32(struct.protocol_version);
672 oprot.writeString(struct.requestorUserName);
673 oprot.writeString(struct.roleName);
674 oprot.writeString(struct.component);
675 }
676
677 @Override
678 public void read(org.apache.thrift.protocol.TProtocol prot, TDropSentryRoleRequest struct) throws org.apache.thrift.TException {
679 TTupleProtocol iprot = (TTupleProtocol) prot;
680 struct.protocol_version = iprot.readI32();
681 struct.setProtocol_versionIsSet(true);
682 struct.requestorUserName = iprot.readString();
683 struct.setRequestorUserNameIsSet(true);
684 struct.roleName = iprot.readString();
685 struct.setRoleNameIsSet(true);
686 struct.component = iprot.readString();
687 struct.setComponentIsSet(true);
688 }
689 }
690
691 }
692