if (isSetOwnerName()) { if (!first) sb.append(", "); sb.append("ownerName:");
list.add(ownerType.getValue()); boolean present_ownerName = true && (isSetOwnerName()); list.add(present_ownerName); if (present_ownerName)
if (struct.isSetOwnerName()) { oprot.writeFieldBegin(OWNER_NAME_FIELD_DESC); oprot.writeString(struct.ownerName);
lastComparison = Boolean.valueOf(isSetOwnerName()).compareTo(other.isSetOwnerName()); if (lastComparison != 0) { return lastComparison; if (isSetOwnerName()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.ownerName, other.ownerName); if (lastComparison != 0) {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TSentryHmsEventNotification struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.protocol_version); oprot.writeString(struct.requestorUserName); oprot.writeI64(struct.id); oprot.writeString(struct.eventType); struct.authorizable.write(oprot); BitSet optionals = new BitSet(); if (struct.isSetOwnerType()) { optionals.set(0); } if (struct.isSetOwnerName()) { optionals.set(1); } oprot.writeBitSet(optionals, 2); if (struct.isSetOwnerType()) { oprot.writeI32(struct.ownerType.getValue()); } if (struct.isSetOwnerName()) { oprot.writeString(struct.ownerName); } }
/** Returns true if field corresponding to fieldID is set (has been assigned a value) and false otherwise */ public boolean isSet(_Fields field) { if (field == null) { throw new IllegalArgumentException(); } switch (field) { case PROTOCOL_VERSION: return isSetProtocol_version(); case REQUESTOR_USER_NAME: return isSetRequestorUserName(); case ID: return isSetId(); case EVENT_TYPE: return isSetEventType(); case AUTHORIZABLE: return isSetAuthorizable(); case OWNER_TYPE: return isSetOwnerType(); case OWNER_NAME: return isSetOwnerName(); } throw new IllegalStateException(); }
boolean this_present_ownerName = true && this.isSetOwnerName(); boolean that_present_ownerName = true && that.isSetOwnerName(); if (this_present_ownerName || that_present_ownerName) { if (!(this_present_ownerName && that_present_ownerName))
/** * Performs a deep copy on <i>other</i>. */ public TSentryHmsEventNotification(TSentryHmsEventNotification other) { __isset_bitfield = other.__isset_bitfield; this.protocol_version = other.protocol_version; if (other.isSetRequestorUserName()) { this.requestorUserName = other.requestorUserName; } this.id = other.id; if (other.isSetEventType()) { this.eventType = other.eventType; } if (other.isSetAuthorizable()) { this.authorizable = new TSentryAuthorizable(other.authorizable); } if (other.isSetOwnerType()) { this.ownerType = other.ownerType; } if (other.isSetOwnerName()) { this.ownerName = other.ownerName; } }