public java.lang.Object getFieldValue(_Fields field) { switch (field) { case AZE: return get_aze(); } throw new java.lang.IllegalStateException(); }
@Override public int compareTo(sendSupervisorAssignments_result other) { if (!getClass().equals(other.getClass())) { return getClass().getName().compareTo(other.getClass().getName()); } int lastComparison = 0; lastComparison = java.lang.Boolean.valueOf(is_set_aze()).compareTo(other.is_set_aze()); if (lastComparison != 0) { return lastComparison; } if (is_set_aze()) { lastComparison = org.apache.storm.thrift.TBaseHelper.compareTo(this.aze, other.aze); if (lastComparison != 0) { return lastComparison; } } return 0; }
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException { try { read(new org.apache.storm.thrift.protocol.TCompactProtocol(new org.apache.storm.thrift.transport.TIOStreamTransport(in))); } catch (org.apache.storm.thrift.TException te) { throw new java.io.IOException(te); } }
public void read(org.apache.storm.thrift.protocol.TProtocol iprot, sendSupervisorAssignments_result struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TField schemeField; iprot.readStructBegin(); while (true) { schemeField = iprot.readFieldBegin(); if (schemeField.type == org.apache.storm.thrift.protocol.TType.STOP) { break; } switch (schemeField.id) { case 1: // AZE if (schemeField.type == org.apache.storm.thrift.protocol.TType.STRUCT) { struct.aze = new AuthorizationException(); struct.aze.read(iprot); struct.set_aze_isSet(true); } else { org.apache.storm.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } break; default: org.apache.storm.thrift.protocol.TProtocolUtil.skip(iprot, schemeField.type); } iprot.readFieldEnd(); } iprot.readStructEnd(); struct.validate(); }
public boolean equals(sendSupervisorAssignments_result that) { if (that == null) return false; if (this == that) return true; boolean this_present_aze = true && this.is_set_aze(); boolean that_present_aze = true && that.is_set_aze(); if (this_present_aze || that_present_aze) { if (!(this_present_aze && that_present_aze)) return false; if (!this.aze.equals(that.aze)) return false; } return true; }
public void read(org.apache.storm.thrift.protocol.TProtocol iprot) throws org.apache.storm.thrift.TException { scheme(iprot).read(iprot, this); }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot) throws org.apache.storm.thrift.TException { scheme(oprot).write(oprot, this); }
public sendSupervisorAssignments_result deepCopy() { return new sendSupervisorAssignments_result(this); }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, sendSupervisorAssignments_result struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_aze()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_aze()) { struct.aze.write(oprot); } }
/** 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 java.lang.IllegalArgumentException(); } switch (field) { case AZE: return is_set_aze(); } throw new java.lang.IllegalStateException(); }
/** * Performs a deep copy on <i>other</i>. */ public sendSupervisorAssignments_result(sendSupervisorAssignments_result other) { if (other.is_set_aze()) { this.aze = new AuthorizationException(other.aze); } }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, sendSupervisorAssignments_result struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.aze = new AuthorizationException(); struct.aze.read(iprot); struct.set_aze_isSet(true); } } }
public sendSupervisorAssignments_result getResult(I iface, sendSupervisorAssignments_args args) throws org.apache.storm.thrift.TException { sendSupervisorAssignments_result result = new sendSupervisorAssignments_result(); try { iface.sendSupervisorAssignments(args.assignments); } catch (AuthorizationException aze) { result.aze = aze; } return result; } }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, sendSupervisorAssignments_result struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.aze != null) { oprot.writeFieldBegin(AZE_FIELD_DESC); struct.aze.write(oprot); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_aze()) ? 131071 : 524287); if (is_set_aze()) hashCode = hashCode * 8191 + aze.hashCode(); return hashCode; }
public void recv_sendSupervisorAssignments() throws AuthorizationException, org.apache.storm.thrift.TException { sendSupervisorAssignments_result result = new sendSupervisorAssignments_result(); receiveBase(result, "sendSupervisorAssignments"); if (result.aze != null) { throw result.aze; } return; }
@Override public boolean equals(java.lang.Object that) { if (that == null) return false; if (that instanceof sendSupervisorAssignments_result) return this.equals((sendSupervisorAssignments_result)that); return false; }