public AccessControl( AccessControlType type, int access) { this(); this.type = type; this.access = access; set_access_isSet(true); }
@Override public void clear() { this.type = null; this.name = null; set_access_isSet(false); this.access = 0; }
public void set_access(int access) { this.access = access; set_access_isSet(true); }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, AccessControl struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.type = org.apache.storm.generated.AccessControlType.findByValue(iprot.readI32()); struct.set_type_isSet(true); struct.access = iprot.readI32(); struct.set_access_isSet(true); java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.set_name_isSet(true); } } }
if (schemeField.type == org.apache.storm.thrift.protocol.TType.I32) { struct.access = iprot.readI32(); struct.set_access_isSet(true); } else { org.apache.storm.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
public AccessControl( AccessControlType type, int access) { this(); this.type = type; this.access = access; set_access_isSet(true); }
@Override public void clear() { this.type = null; this.name = null; set_access_isSet(false); this.access = 0; }
public void set_access(int access) { this.access = access; set_access_isSet(true); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, AccessControl struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.type = org.apache.storm.generated.AccessControlType.findByValue(iprot.readI32()); struct.set_type_isSet(true); struct.access = iprot.readI32(); struct.set_access_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.name = iprot.readString(); struct.set_name_isSet(true); } } }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.access = iprot.readI32(); struct.set_access_isSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);