public void validate() throws org.apache.thrift.TException { // check for required fields // check for sub-struct validity if (message != null) { message.validate(); } }
public void write(org.apache.thrift.protocol.TProtocol oprot, ThriftUnicastNotificationMessage 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(); } if (struct.notificationId != null) { oprot.writeFieldBegin(NOTIFICATION_ID_FIELD_DESC); oprot.writeString(struct.notificationId); oprot.writeFieldEnd(); } oprot.writeFieldStop(); oprot.writeStructEnd(); }
struct.validate();