@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_address = true && (isSetAddress()); list.add(present_address); if (present_address) list.add(address); boolean present_actorClassifier = true && (isSetActorClassifier()); list.add(present_actorClassifier); if (present_actorClassifier) list.add(actorClassifier.getValue()); return list.hashCode(); }
private ActorClassifier fromThriftActorClassifier(ThriftActorClassifier actorClassifier) { return ActorClassifier.valueOf(actorClassifier.name()); }
case 2: // ACTOR_CLASSIFIER if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } else {
public boolean equals(ThriftEndpointDeregistrationMessage that) { if (that == null) return false; boolean this_present_address = true && this.isSetAddress(); boolean that_present_address = true && that.isSetAddress(); if (this_present_address || that_present_address) { if (!(this_present_address && that_present_address)) return false; if (!this.address.equals(that.address)) return false; } boolean this_present_actorClassifier = true && this.isSetActorClassifier(); boolean that_present_actorClassifier = true && that.isSetActorClassifier(); if (this_present_actorClassifier || that_present_actorClassifier) { if (!(this_present_actorClassifier && that_present_actorClassifier)) return false; if (!this.actorClassifier.equals(that.actorClassifier)) return false; } return true; }
case 2: // ACTOR_CLASSIFIER if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } else {
public boolean equals(ThriftEndpointConfigurationRefreshMessage that) { if (that == null) return false; boolean this_present_address = true && this.isSetAddress(); boolean that_present_address = true && that.isSetAddress(); if (this_present_address || that_present_address) { if (!(this_present_address && that_present_address)) return false; if (!this.address.equals(that.address)) return false; } boolean this_present_actorClassifier = true && this.isSetActorClassifier(); boolean that_present_actorClassifier = true && that.isSetActorClassifier(); if (this_present_actorClassifier || that_present_actorClassifier) { if (!(this_present_actorClassifier && that_present_actorClassifier)) return false; if (!this.actorClassifier.equals(that.actorClassifier)) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_address = true && (isSetAddress()); list.add(present_address); if (present_address) list.add(address); boolean present_actorClassifier = true && (isSetActorClassifier()); list.add(present_actorClassifier); if (present_actorClassifier) list.add(actorClassifier.getValue()); return list.hashCode(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftEndpointDeregistrationMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.address = new ThriftEntityAddress(); struct.address.read(iprot); struct.setAddressIsSet(true); } if (incoming.get(1)) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } } }
public boolean equals(ThriftServerProfileUpdateMessage that) { if (that == null) return false; boolean this_present_address = true && this.isSetAddress(); boolean that_present_address = true && that.isSetAddress(); if (this_present_address || that_present_address) { if (!(this_present_address && that_present_address)) return false; if (!this.address.equals(that.address)) return false; } boolean this_present_actorClassifier = true && this.isSetActorClassifier(); boolean that_present_actorClassifier = true && that.isSetActorClassifier(); if (this_present_actorClassifier || that_present_actorClassifier) { if (!(this_present_actorClassifier && that_present_actorClassifier)) return false; if (!this.actorClassifier.equals(that.actorClassifier)) return false; } return true; }
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_address = true && (isSetAddress()); list.add(present_address); if (present_address) list.add(address); boolean present_actorClassifier = true && (isSetActorClassifier()); list.add(present_actorClassifier); if (present_actorClassifier) list.add(actorClassifier.getValue()); return list.hashCode(); }
case 2: // ACTOR_CLASSIFIER if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } else {
public boolean equals(ThriftUnicastNotificationMessage that) { if (that == null) return false; boolean this_present_address = true && this.isSetAddress(); boolean that_present_address = true && that.isSetAddress(); if (this_present_address || that_present_address) { if (!(this_present_address && that_present_address)) return false; if (!this.address.equals(that.address)) return false; } boolean this_present_actorClassifier = true && this.isSetActorClassifier(); boolean that_present_actorClassifier = true && that.isSetActorClassifier(); if (this_present_actorClassifier || that_present_actorClassifier) { if (!(this_present_actorClassifier && that_present_actorClassifier)) return false; if (!this.actorClassifier.equals(that.actorClassifier)) return false; } boolean this_present_notificationId = true && this.isSetNotificationId(); boolean that_present_notificationId = true && that.isSetNotificationId(); if (this_present_notificationId || that_present_notificationId) { if (!(this_present_notificationId && that_present_notificationId)) return false; if (!this.notificationId.equals(that.notificationId)) return false; } return true; }
public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftServerProfileUpdateMessage struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.address != null) { oprot.writeFieldBegin(ADDRESS_FIELD_DESC); struct.address.write(oprot); oprot.writeFieldEnd(); } if (struct.actorClassifier != null) { oprot.writeFieldBegin(ACTOR_CLASSIFIER_FIELD_DESC); oprot.writeI32(struct.actorClassifier.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
case 2: // ACTOR_CLASSIFIER if (schemeField.type == org.apache.thrift.protocol.TType.I32) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } else {
@Override public int hashCode() { List<Object> list = new ArrayList<Object>(); boolean present_address = true && (isSetAddress()); list.add(present_address); if (present_address) list.add(address); boolean present_actorClassifier = true && (isSetActorClassifier()); list.add(present_actorClassifier); if (present_actorClassifier) list.add(actorClassifier.getValue()); boolean present_notificationId = true && (isSetNotificationId()); list.add(present_notificationId); if (present_notificationId) list.add(notificationId); return list.hashCode(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftServerProfileUpdateMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.address = new ThriftEntityAddress(); struct.address.read(iprot); struct.setAddressIsSet(true); } if (incoming.get(1)) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftEndpointConfigurationRefreshMessage struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.address != null) { oprot.writeFieldBegin(ADDRESS_FIELD_DESC); struct.address.write(oprot); oprot.writeFieldEnd(); } if (struct.actorClassifier != null) { oprot.writeFieldBegin(ACTOR_CLASSIFIER_FIELD_DESC); oprot.writeI32(struct.actorClassifier.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftEndpointConfigurationRefreshMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(2); if (incoming.get(0)) { struct.address = new ThriftEntityAddress(); struct.address.read(iprot); struct.setAddressIsSet(true); } if (incoming.get(1)) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftEndpointDeregistrationMessage struct) throws org.apache.thrift.TException { struct.validate(); oprot.writeStructBegin(STRUCT_DESC); if (struct.address != null) { oprot.writeFieldBegin(ADDRESS_FIELD_DESC); struct.address.write(oprot); oprot.writeFieldEnd(); } if (struct.actorClassifier != null) { oprot.writeFieldBegin(ACTOR_CLASSIFIER_FIELD_DESC); oprot.writeI32(struct.actorClassifier.getValue()); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
@Override public void read(org.apache.thrift.protocol.TProtocol prot, ThriftUnicastNotificationMessage struct) throws org.apache.thrift.TException { TTupleProtocol iprot = (TTupleProtocol) prot; BitSet incoming = iprot.readBitSet(3); if (incoming.get(0)) { struct.address = new ThriftEntityAddress(); struct.address.read(iprot); struct.setAddressIsSet(true); } if (incoming.get(1)) { struct.actorClassifier = org.kaaproject.kaa.server.common.thrift.gen.operations.ThriftActorClassifier.findByValue(iprot.readI32()); struct.setActorClassifierIsSet(true); } if (incoming.get(2)) { struct.notificationId = iprot.readString(); struct.setNotificationIdIsSet(true); } } }