private void writeObject(java.io.ObjectOutputStream out) throws java.io.IOException { try { write(new org.apache.thrift.protocol.TCompactProtocol(new org.apache.thrift.transport.TIOStreamTransport(out))); } catch (org.apache.thrift.TException te) { throw new java.io.IOException(te); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TSentryRole struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.roleName != null) { oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); oprot.writeString(struct.roleName); oprot.writeFieldEnd(); } if (struct.groups != null) { oprot.writeFieldBegin(GROUPS_FIELD_DESC); { oprot.writeSetBegin(new org.apache.thrift.protocol.TSet(org.apache.thrift.protocol.TType.STRUCT, struct.groups.size())); for (TSentryGroup _iter43 : struct.groups) { _iter43.write(oprot); } oprot.writeSetEnd(); } oprot.writeFieldEnd(); } if (struct.grantorPrincipal != null) { oprot.writeFieldBegin(GRANTOR_PRINCIPAL_FIELD_DESC); oprot.writeString(struct.grantorPrincipal); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TSentryRole struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeString(struct.roleName); { oprot.writeI32(struct.groups.size()); for (TSentryGroup _iter44 : struct.groups) { _iter44.write(oprot); } } oprot.writeString(struct.grantorPrincipal); }
for (TSentryGroup _iter11 : struct.groups) _iter11.write(oprot);
for (TSentryGroup _iter3 : struct.groups) _iter3.write(oprot);
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAlterSentryRoleAddGroupsRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.protocol_version); oprot.writeString(struct.requestorUserName); oprot.writeString(struct.roleName); { oprot.writeI32(struct.groups.size()); for (TSentryGroup _iter4 : struct.groups) { _iter4.write(oprot); } } }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TAlterSentryRoleDeleteGroupsRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.protocol_version); oprot.writeString(struct.requestorUserName); oprot.writeString(struct.roleName); { oprot.writeI32(struct.groups.size()); for (TSentryGroup _iter12 : struct.groups) { _iter12.write(oprot); } } }