Source: employees/PermissionSetRole.js

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

var base_Reference = require("../base/Reference");

/**
* @constructor
* @memberof employees
*/
var PermissionSetRole = function() {
  this._class_ = PermissionSetRole;
  this.id = undefined;
  this.role = undefined;
  this.permissionSet = undefined;
  this.modified_time = undefined;
  this.deleted_time = undefined;
};


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

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

/**
* Set the field value
* The role
*
* @memberof employees.PermissionSetRole
* @param {base.Reference} role 
*/
PermissionSetRole.prototype.setRole = function(role) {
  this.role = role;
};

/**
* Get the field value
* The role
* @memberof employees.PermissionSetRole
* @return {base.Reference} 
*/
PermissionSetRole.prototype.getRole = function() {
  return this.role;
};

/**
* Set the field value
* The role
*
* @memberof employees.PermissionSetRole
* @param {base.Reference} permissionSet 
*/
PermissionSetRole.prototype.setPermissionSet = function(permissionSet) {
  this.permissionSet = permissionSet;
};

/**
* Get the field value
* The role
* @memberof employees.PermissionSetRole
* @return {base.Reference} 
*/
PermissionSetRole.prototype.getPermissionSet = function() {
  return this.permissionSet;
};

/**
* Set the field value
* @memberof employees.PermissionSetRole
* @param {Number} modified_time must be a long integer
*/
PermissionSetRole.prototype.setModifiedTime = function(modified_time) {
  this.modified_time = modified_time;
};

/**
* Get the field value
* @memberof employees.PermissionSetRole
* @return {Number} must be a long integer
*/
PermissionSetRole.prototype.getModifiedTime = function() {
  return this.modified_time;
};

/**
* Set the field value
* @memberof employees.PermissionSetRole
* @param {Null|Number} deleted_time must be a long integer
*/
PermissionSetRole.prototype.setDeletedTime = function(deleted_time) {
  this.deleted_time = deleted_time;
};

/**
* Get the field value
* @memberof employees.PermissionSetRole
* @return {Null|Number} must be a long integer
*/
PermissionSetRole.prototype.getDeletedTime = function() {
  return this.deleted_time;
};

/**
* @memberof employees.PermissionSetRole
* @private
*/
PermissionSetRole.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;
};

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

PermissionSetRole._meta_ =  {fields:  {}};
PermissionSetRole._meta_._class_ =  PermissionSetRole;
PermissionSetRole._meta_.fields["id"] = {};
PermissionSetRole._meta_.fields["id"].type = String;
PermissionSetRole._meta_.fields["role"] = {};
PermissionSetRole._meta_.fields["role"].type = base_Reference;
PermissionSetRole._meta_.fields["permissionSet"] = {};
PermissionSetRole._meta_.fields["permissionSet"].type = base_Reference;
PermissionSetRole._meta_.fields["modified_time"] = {};
PermissionSetRole._meta_.fields["modified_time"].type = Number;
PermissionSetRole._meta_.fields["deleted_time"] = {};
PermissionSetRole._meta_.fields["deleted_time"].type = Number;

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