Source: employees/PermissionSetRole.js

  1. /**
  2. * Autogenerated by Avro
  3. *
  4. * DO NOT EDIT DIRECTLY
  5. */
  6. var base_Reference = require("../base/Reference");
  7. /**
  8. * @constructor
  9. * @memberof employees
  10. */
  11. var PermissionSetRole = function() {
  12. this._class_ = PermissionSetRole;
  13. this.id = undefined;
  14. this.role = undefined;
  15. this.permissionSet = undefined;
  16. this.modified_time = undefined;
  17. this.deleted_time = undefined;
  18. };
  19. /**
  20. * Set the field value
  21. * Unique identifier
  22. *
  23. * @memberof employees.PermissionSetRole
  24. * @param {String} id
  25. */
  26. PermissionSetRole.prototype.setId = function(id) {
  27. this.id = id;
  28. };
  29. /**
  30. * Get the field value
  31. * Unique identifier
  32. * @memberof employees.PermissionSetRole
  33. * @return {String}
  34. */
  35. PermissionSetRole.prototype.getId = function() {
  36. return this.id;
  37. };
  38. /**
  39. * Set the field value
  40. * The role
  41. *
  42. * @memberof employees.PermissionSetRole
  43. * @param {base.Reference} role
  44. */
  45. PermissionSetRole.prototype.setRole = function(role) {
  46. this.role = role;
  47. };
  48. /**
  49. * Get the field value
  50. * The role
  51. * @memberof employees.PermissionSetRole
  52. * @return {base.Reference}
  53. */
  54. PermissionSetRole.prototype.getRole = function() {
  55. return this.role;
  56. };
  57. /**
  58. * Set the field value
  59. * The role
  60. *
  61. * @memberof employees.PermissionSetRole
  62. * @param {base.Reference} permissionSet
  63. */
  64. PermissionSetRole.prototype.setPermissionSet = function(permissionSet) {
  65. this.permissionSet = permissionSet;
  66. };
  67. /**
  68. * Get the field value
  69. * The role
  70. * @memberof employees.PermissionSetRole
  71. * @return {base.Reference}
  72. */
  73. PermissionSetRole.prototype.getPermissionSet = function() {
  74. return this.permissionSet;
  75. };
  76. /**
  77. * Set the field value
  78. * @memberof employees.PermissionSetRole
  79. * @param {Number} modified_time must be a long integer
  80. */
  81. PermissionSetRole.prototype.setModifiedTime = function(modified_time) {
  82. this.modified_time = modified_time;
  83. };
  84. /**
  85. * Get the field value
  86. * @memberof employees.PermissionSetRole
  87. * @return {Number} must be a long integer
  88. */
  89. PermissionSetRole.prototype.getModifiedTime = function() {
  90. return this.modified_time;
  91. };
  92. /**
  93. * Set the field value
  94. * @memberof employees.PermissionSetRole
  95. * @param {Null|Number} deleted_time must be a long integer
  96. */
  97. PermissionSetRole.prototype.setDeletedTime = function(deleted_time) {
  98. this.deleted_time = deleted_time;
  99. };
  100. /**
  101. * Get the field value
  102. * @memberof employees.PermissionSetRole
  103. * @return {Null|Number} must be a long integer
  104. */
  105. PermissionSetRole.prototype.getDeletedTime = function() {
  106. return this.deleted_time;
  107. };
  108. /**
  109. * @memberof employees.PermissionSetRole
  110. * @private
  111. */
  112. PermissionSetRole.prototype.getMetaInfo = function(fieldName) {
  113. var curclass = this._class_;
  114. do {
  115. var fieldMetaInfo = curclass._meta_.fields[fieldName];
  116. if(fieldMetaInfo) {
  117. return fieldMetaInfo;
  118. }
  119. if(curclass._meta_._superMeta_) {
  120. curclass = curclass._meta_._superMeta_._class_;
  121. } else {
  122. curclass = null;
  123. }
  124. } while(curclass);
  125. return null;
  126. };
  127. PermissionSetRole.prototype.toString = function() {
  128. return JSON.stringify(this);
  129. };
  130. PermissionSetRole._meta_ = {fields: {}};
  131. PermissionSetRole._meta_._class_ = PermissionSetRole;
  132. PermissionSetRole._meta_.fields["id"] = {};
  133. PermissionSetRole._meta_.fields["id"].type = String;
  134. PermissionSetRole._meta_.fields["role"] = {};
  135. PermissionSetRole._meta_.fields["role"].type = base_Reference;
  136. PermissionSetRole._meta_.fields["permissionSet"] = {};
  137. PermissionSetRole._meta_.fields["permissionSet"].type = base_Reference;
  138. PermissionSetRole._meta_.fields["modified_time"] = {};
  139. PermissionSetRole._meta_.fields["modified_time"].type = Number;
  140. PermissionSetRole._meta_.fields["deleted_time"] = {};
  141. PermissionSetRole._meta_.fields["deleted_time"].type = Number;
  142. //
  143. // Expose the module.
  144. //
  145. if ('undefined' !== typeof module) {
  146. module.exports = PermissionSetRole;
  147. }