public boolean equals(GrantRevokePrivilegeRequest that) { if (that == null) return false; boolean this_present_requestType = true && this.isSetRequestType(); boolean that_present_requestType = true && that.isSetRequestType(); if (this_present_requestType || that_present_requestType) { if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false; } boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges)) return false; if (!this.privileges.equals(that.privileges)) return false; } boolean this_present_revokeGrantOption = true && this.isSetRevokeGrantOption(); boolean that_present_revokeGrantOption = true && that.isSetRevokeGrantOption(); if (this_present_revokeGrantOption || that_present_revokeGrantOption) { if (!(this_present_revokeGrantOption && that_present_revokeGrantOption)) return false; if (this.revokeGrantOption != that.revokeGrantOption) return false; } return true; }
case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else {
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_requestType = true && (isSetRequestType()); list.add(present_requestType); if (present_requestType) list.add(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); list.add(present_privileges); if (present_privileges) list.add(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); list.add(present_revokeGrantOption); if (present_revokeGrantOption) list.add(revokeGrantOption); return list.hashCode(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, GrantRevokePrivilegeRequest struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.requestType != null) { oprot.writeFieldBegin(REQUEST_TYPE_FIELD_DESC); oprot.writeI32(struct.requestType.getValue()); oprot.writeFieldEnd(); } if (struct.privileges != null) { oprot.writeFieldBegin(PRIVILEGES_FIELD_DESC); struct.privileges.write(oprot); oprot.writeFieldEnd(); } if (struct.isSetRevokeGrantOption()) { oprot.writeFieldBegin(REVOKE_GRANT_OPTION_FIELD_DESC); oprot.writeBool(struct.revokeGrantOption); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, GrantRevokePrivilegeRequest struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } if (incoming.get(1)) { struct.privileges = new PrivilegeBag(); struct.privileges.read(iprot); struct.setPrivilegesIsSet(true); } if (incoming.get(2)) { struct.revokeGrantOption = iprot.readBool(); struct.setRevokeGrantOptionIsSet(true); } } }
if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false;
list.add(present_requestType); if (present_requestType) list.add(requestType.getValue());
case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else {
public boolean equals(GrantRevokePrivilegeRequest that) { if (that == null) return false; boolean this_present_requestType = true && this.isSetRequestType(); boolean that_present_requestType = true && that.isSetRequestType(); if (this_present_requestType || that_present_requestType) { if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false; } boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges)) return false; if (!this.privileges.equals(that.privileges)) return false; } boolean this_present_revokeGrantOption = true && this.isSetRevokeGrantOption(); boolean that_present_revokeGrantOption = true && that.isSetRevokeGrantOption(); if (this_present_revokeGrantOption || that_present_revokeGrantOption) { if (!(this_present_revokeGrantOption && that_present_revokeGrantOption)) return false; if (this.revokeGrantOption != that.revokeGrantOption) return false; } return true; }
if (struct.requestType != null) { oprot.writeFieldBegin(REQUEST_TYPE_FIELD_DESC); oprot.writeI32(struct.requestType.getValue()); oprot.writeFieldEnd();
BitSet incoming = iprot.readBitSet(7); if (incoming.get(0)) { struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true);
public boolean equals(GrantRevokePrivilegeRequest that) { if (that == null) return false; boolean this_present_requestType = true && this.isSetRequestType(); boolean that_present_requestType = true && that.isSetRequestType(); if (this_present_requestType || that_present_requestType) { if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false; } boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges)) return false; if (!this.privileges.equals(that.privileges)) return false; } boolean this_present_revokeGrantOption = true && this.isSetRevokeGrantOption(); boolean that_present_revokeGrantOption = true && that.isSetRevokeGrantOption(); if (this_present_revokeGrantOption || that_present_revokeGrantOption) { if (!(this_present_revokeGrantOption && that_present_revokeGrantOption)) return false; if (this.revokeGrantOption != that.revokeGrantOption) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, GrantRevokePrivilegeRequest struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; BitSet optionals = new BitSet(); if (struct.isSetRequestType()) { optionals.set(0); } if (struct.isSetPrivileges()) { optionals.set(1); } if (struct.isSetRevokeGrantOption()) { optionals.set(2); } oprot.writeBitSet(optionals, 3); if (struct.isSetRequestType()) { oprot.writeI32(struct.requestType.getValue()); } if (struct.isSetPrivileges()) { struct.privileges.write(oprot); } if (struct.isSetRevokeGrantOption()) { oprot.writeBool(struct.revokeGrantOption); } }
case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.requestType = org.apache.hadoop.hive.metastore.api.GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else {
public boolean equals(GrantRevokePrivilegeRequest that) { if (that == null) return false; boolean this_present_requestType = true && this.isSetRequestType(); boolean that_present_requestType = true && that.isSetRequestType(); if (this_present_requestType || that_present_requestType) { if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false; } boolean this_present_privileges = true && this.isSetPrivileges(); boolean that_present_privileges = true && that.isSetPrivileges(); if (this_present_privileges || that_present_privileges) { if (!(this_present_privileges && that_present_privileges)) return false; if (!this.privileges.equals(that.privileges)) return false; } boolean this_present_revokeGrantOption = true && this.isSetRevokeGrantOption(); boolean that_present_revokeGrantOption = true && that.isSetRevokeGrantOption(); if (this_present_revokeGrantOption || that_present_revokeGrantOption) { if (!(this_present_revokeGrantOption && that_present_revokeGrantOption)) return false; if (this.revokeGrantOption != that.revokeGrantOption) return false; } return true; }
oprot.writeI32(struct.requestType.getValue());
case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else {
if (!(this_present_requestType && that_present_requestType)) return false; if (!this.requestType.equals(that.requestType)) return false;
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_requestType = true && (isSetRequestType()); list.add(present_requestType); if (present_requestType) list.add(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); list.add(present_privileges); if (present_privileges) list.add(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); list.add(present_revokeGrantOption); if (present_revokeGrantOption) list.add(revokeGrantOption); return list.hashCode(); }
case 1: // REQUEST_TYPE if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.requestType = GrantRevokeType.findByValue(iprot.readI32()); struct.setRequestTypeIsSet(true); } else {