/** * Performs a deep copy on <i>other</i>. */ public TSentryResponseStatus(TSentryResponseStatus other) { __isset_bitfield = other.__isset_bitfield; this.value = other.value; if (other.isSetMessage()) { this.message = other.message; } if (other.isSetStack()) { this.stack = other.stack; } }
/** * Performs a deep copy on <i>other</i>. */ public TSentryResponseStatus(TSentryResponseStatus other) { __isset_bitfield = other.__isset_bitfield; this.value = other.value; if (other.isSetMessage()) { this.message = other.message; } if (other.isSetStack()) { this.stack = other.stack; } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_value = true; list.add(present_value); if (present_value) list.add(value); boolean present_message = true && (isSetMessage()); list.add(present_message); if (present_message) list.add(message); boolean present_stack = true && (isSetStack()); list.add(present_stack); if (present_stack) list.add(stack); return list.hashCode(); }
@Override public int hashCode() { HashCodeBuilder builder = new HashCodeBuilder(); boolean present_value = true; builder.append(present_value); if (present_value) builder.append(value); boolean present_message = true && (isSetMessage()); builder.append(present_message); if (present_message) builder.append(message); boolean present_stack = true && (isSetStack()); builder.append(present_stack); if (present_stack) builder.append(stack); return builder.toHashCode(); }
/** 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
public void write(org.apache.thrift.protocol.TProtocol oprot, TSentryResponseStatus struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeI32(struct.value); oprot.writeFieldEnd(); if (struct.message != null) { oprot.writeFieldBegin(MESSAGE_FIELD_DESC); oprot.writeString(struct.message); oprot.writeFieldEnd(); } if (struct.stack != null) { if (struct.isSetStack()) { oprot.writeFieldBegin(STACK_FIELD_DESC); oprot.writeString(struct.stack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TSentryResponseStatus("); boolean first = true; sb.append("value:"); sb.append(this.value); first = false; if (!first) sb.append(", "); sb.append("message:"); if (this.message == null) { sb.append("null"); } else { sb.append(this.message); } first = false; if (isSetStack()) { if (!first) sb.append(", "); sb.append("stack:"); if (this.stack == null) { sb.append("null"); } else { sb.append(this.stack); } first = false; } sb.append(")"); return sb.toString(); }
@Override public String toString() { StringBuilder sb = new StringBuilder("TSentryResponseStatus("); boolean first = true; sb.append("value:"); sb.append(this.value); first = false; if (!first) sb.append(", "); sb.append("message:"); if (this.message == null) { sb.append("null"); } else { sb.append(this.message); } first = false; if (isSetStack()) { if (!first) sb.append(", "); sb.append("stack:"); if (this.stack == null) { sb.append("null"); } else { sb.append(this.stack); } first = false; } sb.append(")"); return sb.toString(); }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TSentryResponseStatus struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.value); oprot.writeString(struct.message); BitSet optionals = new BitSet(); if (struct.isSetStack()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetStack()) { oprot.writeString(struct.stack); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, TSentryResponseStatus struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); oprot.writeFieldBegin(VALUE_FIELD_DESC); oprot.writeI32(struct.value); oprot.writeFieldEnd(); if (struct.message != null) { oprot.writeFieldBegin(MESSAGE_FIELD_DESC); oprot.writeString(struct.message); oprot.writeFieldEnd(); } if (struct.stack != null) { if (struct.isSetStack()) { oprot.writeFieldBegin(STACK_FIELD_DESC); oprot.writeString(struct.stack); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
/** 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 VALUE: return isSetValue(); case MESSAGE: return isSetMessage(); case STACK: return isSetStack(); } throw new IllegalStateException(); }
public boolean equals(TSentryResponseStatus that) { if (that == null) return false; boolean this_present_value = true; boolean that_present_value = true; if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (this.value != that.value) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } boolean this_present_stack = true && this.isSetStack(); boolean that_present_stack = true && that.isSetStack(); if (this_present_stack || that_present_stack) { if (!(this_present_stack && that_present_stack)) return false; if (!this.stack.equals(that.stack)) return false; } return true; }
public boolean equals(TSentryResponseStatus that) { if (that == null) return false; boolean this_present_value = true; boolean that_present_value = true; if (this_present_value || that_present_value) { if (!(this_present_value && that_present_value)) return false; if (this.value != that.value) return false; } boolean this_present_message = true && this.isSetMessage(); boolean that_present_message = true && that.isSetMessage(); if (this_present_message || that_present_message) { if (!(this_present_message && that_present_message)) return false; if (!this.message.equals(that.message)) return false; } boolean this_present_stack = true && this.isSetStack(); boolean that_present_stack = true && that.isSetStack(); if (this_present_stack || that_present_stack) { if (!(this_present_stack && that_present_stack)) return false; if (!this.stack.equals(that.stack)) return false; } return true; }
@Override public void write(org.apache.thrift.protocol.TProtocol prot, TSentryResponseStatus struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.value); oprot.writeString(struct.message); BitSet optionals = new BitSet(); if (struct.isSetStack()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.isSetStack()) { oprot.writeString(struct.stack); } }
lastComparison = Boolean.valueOf(isSetStack()).compareTo(other.isSetStack()); if (lastComparison != 0) { return lastComparison; if (isSetStack()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stack, other.stack); if (lastComparison != 0) {
lastComparison = Boolean.valueOf(isSetStack()).compareTo(typedOther.isSetStack()); if (lastComparison != 0) { return lastComparison; if (isSetStack()) { lastComparison = org.apache.thrift.TBaseHelper.compareTo(this.stack, typedOther.stack); if (lastComparison != 0) {