public TRenamePrivilegesRequest( int protocol_version, String requestorUserName, TSentryAuthorizable oldAuthorizable, TSentryAuthorizable newAuthorizable) { this(); this.protocol_version = protocol_version; setProtocol_versionIsSet(true); this.requestorUserName = requestorUserName; this.oldAuthorizable = oldAuthorizable; this.newAuthorizable = newAuthorizable; }
public void setProtocol_version(int protocol_version) { this.protocol_version = protocol_version; setProtocol_versionIsSet(true); }
if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.protocol_version = iprot.readI32(); struct.setProtocol_versionIsSet(true); } else { org.apache.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type);
@Override public void read(org.apache.thrift.protocol.TProtocol prot, TRenamePrivilegesRequest 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.oldAuthorizable = new TSentryAuthorizable(); struct.oldAuthorizable.read(iprot); struct.setOldAuthorizableIsSet(true); struct.newAuthorizable = new TSentryAuthorizable(); struct.newAuthorizable.read(iprot); struct.setNewAuthorizableIsSet(true); } }