@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(); }
list.add(present_requestType); if (present_requestType) list.add(requestType.getValue());
if (struct.requestType != null) { oprot.writeFieldBegin(REQUEST_TYPE_FIELD_DESC); oprot.writeI32(struct.requestType.getValue()); oprot.writeFieldEnd();
@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); } }
oprot.writeI32(struct.requestType.getValue());
@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(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); builder.append(present_requestType); if (present_requestType) builder.append(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); builder.append(present_privileges); if (present_privileges) builder.append(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); builder.append(present_revokeGrantOption); if (present_revokeGrantOption) builder.append(revokeGrantOption); return builder.toHashCode(); }
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(); }
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(); }
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(); }
builder.append(present_requestType); if (present_requestType) builder.append(requestType.getValue());
list.add(present_requestType); if (present_requestType) list.add(requestType.getValue());
if (struct.requestType != null) { oprot.writeFieldBegin(REQUEST_TYPE_FIELD_DESC); oprot.writeI32(struct.requestType.getValue()); oprot.writeFieldEnd();
if (struct.requestType != null) { oprot.writeFieldBegin(REQUEST_TYPE_FIELD_DESC); oprot.writeI32(struct.requestType.getValue()); oprot.writeFieldEnd();
@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); } }
@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); } }
@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); } }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_requestType = true && (isSetRequestType()); builder.append(present_requestType); if (present_requestType) builder.append(requestType.getValue()); boolean present_privileges = true && (isSetPrivileges()); builder.append(present_privileges); if (present_privileges) builder.append(privileges); boolean present_revokeGrantOption = true && (isSetRevokeGrantOption()); builder.append(present_revokeGrantOption); if (present_revokeGrantOption) builder.append(revokeGrantOption); return builder.toHashCode(); }
builder.append(present_requestType); if (present_requestType) builder.append(requestType.getValue());