public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (request != null) { request.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TDropSentryRoleRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(PROTOCOL_VERSION_FIELD_DESC); oprot.writeI32(struct.protocol_version); oprot.writeFieldEnd(); if (struct.requestorUserName != null) { oprot.writeFieldBegin(REQUESTOR_USER_NAME_FIELD_DESC); oprot.writeString(struct.requestorUserName); oprot.writeFieldEnd(); } if (struct.roleName != null) { oprot.writeFieldBegin(ROLE_NAME_FIELD_DESC); oprot.writeString(struct.roleName); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();