Source: device/LimitedDevice.js

/**
 * Autogenerated by Avro
 * 
 * DO NOT EDIT DIRECTLY
 */


/**
* @constructor
* @memberof device
*/
var LimitedDevice = function() {
  this._class_ = LimitedDevice;
  this.id = undefined;
  this.name = undefined;
  this.serial = undefined;
};


/**
* Set the field value
* Unique identifier
*
* @memberof device.LimitedDevice
* @param {String} id 
*/
LimitedDevice.prototype.setId = function(id) {
  this.id = id;
};

/**
* Get the field value
* Unique identifier
* @memberof device.LimitedDevice
* @return {String} 
*/
LimitedDevice.prototype.getId = function() {
  return this.id;
};

/**
* Set the field value
* Name of the device (if entered)
*
* @memberof device.LimitedDevice
* @param {String} name 
*/
LimitedDevice.prototype.setName = function(name) {
  this.name = name;
};

/**
* Get the field value
* Name of the device (if entered)
* @memberof device.LimitedDevice
* @return {String} 
*/
LimitedDevice.prototype.getName = function() {
  return this.name;
};

/**
* Set the field value
* The device's serial number.
*
* @memberof device.LimitedDevice
* @param {String} serial 
*/
LimitedDevice.prototype.setSerial = function(serial) {
  this.serial = serial;
};

/**
* Get the field value
* The device's serial number.
* @memberof device.LimitedDevice
* @return {String} 
*/
LimitedDevice.prototype.getSerial = function() {
  return this.serial;
};

/**
* @memberof device.LimitedDevice
* @private
*/
LimitedDevice.prototype.getMetaInfo = function(fieldName) {
  var curclass = this._class_;
  do {
    var fieldMetaInfo = curclass._meta_.fields[fieldName];
    if(fieldMetaInfo) {
      return fieldMetaInfo;
    }
    if(curclass._meta_._superMeta_) {
      curclass = curclass._meta_._superMeta_._class_;
    } else {
      curclass = null;
    }
  } while(curclass);
  return null;
};

LimitedDevice.prototype.toString = function() {
  return JSON.stringify(this);
};

LimitedDevice._meta_ =  {fields:  {}};
LimitedDevice._meta_._class_ =  LimitedDevice;
LimitedDevice._meta_.fields["id"] = {};
LimitedDevice._meta_.fields["id"].type = String;
LimitedDevice._meta_.fields["name"] = {};
LimitedDevice._meta_.fields["name"].type = String;
LimitedDevice._meta_.fields["serial"] = {};
LimitedDevice._meta_.fields["serial"].type = String;

//
// Expose the module.
//
if ('undefined' !== typeof module) {
module.exports = LimitedDevice;
}