private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, ClassNotFoundException { try { read(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
_elem57.read(iprot); struct.groups.add(_elem57);
_elem17.read(iprot); struct.groups.add(_elem17);
_elem1.read(iprot); struct.groups.add(_elem1);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TSentryRole struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.roleName = iprot.readString(); struct.setRoleNameIsSet(true); { org.apache.thrift.protocol.TSet _set61 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.groups = new HashSet<TSentryGroup>(2*_set61.size); TSentryGroup _elem62; for (int _i63 = 0; _i63 < _set61.size; ++_i63) { _elem62 = new TSentryGroup(); _elem62.read(iprot); struct.groups.add(_elem62); } } struct.setGroupsIsSet(true); struct.grantorPrincipal = iprot.readString(); struct.setGrantorPrincipalIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TAlterSentryRoleAddGroupsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); struct.requestorUserName = iprot.readString(); struct.setRequestorUserNameIsSet(true); struct.roleName = iprot.readString(); struct.setRoleNameIsSet(true); { org.apache.thrift.protocol.TSet _set5 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.groups = new HashSet<TSentryGroup>(2*_set5.size); TSentryGroup _elem6; for (int _i7 = 0; _i7 < _set5.size; ++_i7) { _elem6 = new TSentryGroup(); _elem6.read(iprot); struct.groups.add(_elem6); } } struct.setGroupsIsSet(true); } }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TAlterSentryRoleDeleteGroupsRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); struct.requestorUserName = iprot.readString(); struct.setRequestorUserNameIsSet(true); struct.roleName = iprot.readString(); struct.setRoleNameIsSet(true); { org.apache.thrift.protocol.TSet _set21 = new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, iprot.readI32()); struct.groups = new HashSet<TSentryGroup>(2*_set21.size); TSentryGroup _elem22; for (int _i23 = 0; _i23 < _set21.size; ++_i23) { _elem22 = new TSentryGroup(); _elem22.read(iprot); struct.groups.add(_elem22); } } struct.setGroupsIsSet(true); } }