public boolean equals(SubmitOptions that) { if (that == null) return false; if (this == that) return true; boolean this_present_initial_status = true && this.is_set_initial_status(); boolean that_present_initial_status = true && that.is_set_initial_status(); if (this_present_initial_status || that_present_initial_status) { if (!(this_present_initial_status && that_present_initial_status)) return false; if (!this.initial_status.equals(that.initial_status)) return false; } boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
@Override public void read(org.apache.storm.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol iprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); java.util.BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } } }
@Override public void write(org.apache.storm.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.storm.thrift.TException { org.apache.storm.thrift.protocol.TTupleProtocol oprot = (org.apache.storm.thrift.protocol.TTupleProtocol) prot; oprot.writeI32(struct.initial_status.getValue()); java.util.BitSet optionals = new java.util.BitSet(); if (struct.is_set_creds()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_creds()) { struct.creds.write(oprot); } }
@Override public int hashCode() { int hashCode = 1; hashCode = hashCode * 8191 + ((is_set_initial_status()) ? 131071 : 524287); if (is_set_initial_status()) hashCode = hashCode * 8191 + initial_status.getValue(); hashCode = hashCode * 8191 + ((is_set_creds()) ? 131071 : 524287); if (is_set_creds()) hashCode = hashCode * 8191 + creds.hashCode(); return hashCode; }
case 1: // INITIAL_STATUS if (schemeField.type == org.apache.storm.thrift.protocol.TType.I32) { struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); } else {
public boolean equals(SubmitOptions that) { if (that == null) return false; boolean this_present_initial_status = true && this.is_set_initial_status(); boolean that_present_initial_status = true && that.is_set_initial_status(); if (this_present_initial_status || that_present_initial_status) { if (!(this_present_initial_status && that_present_initial_status)) return false; if (!this.initial_status.equals(that.initial_status)) return false; } boolean this_present_creds = true && this.is_set_creds(); boolean that_present_creds = true && that.is_set_creds(); if (this_present_creds || that_present_creds) { if (!(this_present_creds && that_present_creds)) return false; if (!this.creds.equals(that.creds)) return false; } return true; }
public void write(org.apache.storm.thrift.protocol.TProtocol oprot, SubmitOptions struct) throws org.apache.storm.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.initial_status != null) { oprot.writeFieldBegin(INITIAL_STATUS_FIELD_DESC); oprot.writeI32(struct.initial_status.getValue()); oprot.writeFieldEnd(); } if (struct.creds != null) { if (struct.is_set_creds()) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); BitSet incoming = iprot.readBitSet(1); if (incoming.get(0)) { struct.creds = new Credentials(); struct.creds.read(iprot); struct.set_creds_isSet(true); } } }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_initial_status = true && (is_set_initial_status()); list.add(present_initial_status); if (present_initial_status) list.add(initial_status.getValue()); boolean present_creds = true && (is_set_creds()); list.add(present_creds); if (present_creds) list.add(creds); return list.hashCode(); }
case 1: // INITIAL_STATUS if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.initial_status = org.apache.storm.generated.TopologyInitialStatus.findByValue(iprot.readI32()); struct.set_initial_status_isSet(true); } else {
@Override public void write(org.apache.thrift.protocol.TProtocol prot, SubmitOptions struct) throws org.apache.thrift.TException { TTupleProtocol oprot = (TTupleProtocol) prot; oprot.writeI32(struct.initial_status.getValue()); BitSet optionals = new BitSet(); if (struct.is_set_creds()) { optionals.set(0); } oprot.writeBitSet(optionals, 1); if (struct.is_set_creds()) { struct.creds.write(oprot); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, SubmitOptions struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.initial_status != null) { oprot.writeFieldBegin(INITIAL_STATUS_FIELD_DESC); oprot.writeI32(struct.initial_status.getValue()); oprot.writeFieldEnd(); } if (struct.creds != null) { if (struct.is_set_creds()) { oprot.writeFieldBegin(CREDS_FIELD_DESC); struct.creds.write(oprot); oprot.writeFieldEnd(); } } oprot.writeFieldStop(); oprot.writeStructEnd(); }