Source: proto/spine/server/model/standard_events_pb.js

  1. // source: spine/server/model/standard_events.proto
  2. /**
  3. * @fileoverview
  4. * @enhanceable
  5. * @suppress {messageConventions} JS Compiler reports an error if a variable or
  6. * field starts with 'MSG_' and isn't a translatable message.
  7. * @public
  8. */
  9. // GENERATED CODE -- DO NOT EDIT!
  10. var jspb = require('google-protobuf');
  11. var goog = jspb;
  12. var global = Function('return this')();
  13. var spine_options_pb = require('../../../spine/options_pb.js');
  14. goog.object.extend(proto, spine_options_pb);
  15. goog.exportSymbol('proto.spine.server.model.Nothing', null, global);
  16. /**
  17. * Generated by JsPbCodeGenerator.
  18. * @param {Array=} opt_data Optional initial data array, typically from a
  19. * server response, or constructed directly in Javascript. The array is used
  20. * in place and becomes part of the constructed object. It is not cloned.
  21. * If no data is provided, the constructed object will be empty, but still
  22. * valid.
  23. * @extends {jspb.Message}
  24. * @constructor
  25. */
  26. proto.spine.server.model.Nothing = function(opt_data) {
  27. jspb.Message.initialize(this, opt_data, 0, -1, null, null);
  28. };
  29. goog.inherits(proto.spine.server.model.Nothing, jspb.Message);
  30. if (goog.DEBUG && !COMPILED) {
  31. /**
  32. * @public
  33. * @override
  34. */
  35. proto.spine.server.model.Nothing.displayName = 'proto.spine.server.model.Nothing';
  36. }
  37. if (jspb.Message.GENERATE_TO_OBJECT) {
  38. /**
  39. * Creates an object representation of this proto.
  40. * Field names that are reserved in JavaScript and will be renamed to pb_name.
  41. * Optional fields that are not set will be set to undefined.
  42. * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
  43. * For the list of reserved names please see:
  44. * net/proto2/compiler/js/internal/generator.cc#kKeyword.
  45. * @param {boolean=} opt_includeInstance Deprecated. whether to include the
  46. * JSPB instance for transitional soy proto support:
  47. * http://goto/soy-param-migration
  48. * @return {!Object}
  49. */
  50. proto.spine.server.model.Nothing.prototype.toObject = function(opt_includeInstance) {
  51. return proto.spine.server.model.Nothing.toObject(opt_includeInstance, this);
  52. };
  53. /**
  54. * Static version of the {@see toObject} method.
  55. * @param {boolean|undefined} includeInstance Deprecated. Whether to include
  56. * the JSPB instance for transitional soy proto support:
  57. * http://goto/soy-param-migration
  58. * @param {!proto.spine.server.model.Nothing} msg The msg instance to transform.
  59. * @return {!Object}
  60. * @suppress {unusedLocalVariables} f is only used for nested messages
  61. */
  62. proto.spine.server.model.Nothing.toObject = function(includeInstance, msg) {
  63. var f, obj = {
  64. };
  65. if (includeInstance) {
  66. obj.$jspbMessageInstance = msg;
  67. }
  68. return obj;
  69. };
  70. }
  71. /**
  72. * Deserializes binary data (in protobuf wire format).
  73. * @param {jspb.ByteSource} bytes The bytes to deserialize.
  74. * @return {!proto.spine.server.model.Nothing}
  75. */
  76. proto.spine.server.model.Nothing.deserializeBinary = function(bytes) {
  77. var reader = new jspb.BinaryReader(bytes);
  78. var msg = new proto.spine.server.model.Nothing;
  79. return proto.spine.server.model.Nothing.deserializeBinaryFromReader(msg, reader);
  80. };
  81. /**
  82. * Deserializes binary data (in protobuf wire format) from the
  83. * given reader into the given message object.
  84. * @param {!proto.spine.server.model.Nothing} msg The message object to deserialize into.
  85. * @param {!jspb.BinaryReader} reader The BinaryReader to use.
  86. * @return {!proto.spine.server.model.Nothing}
  87. */
  88. proto.spine.server.model.Nothing.deserializeBinaryFromReader = function(msg, reader) {
  89. while (reader.nextField()) {
  90. if (reader.isEndGroup()) {
  91. break;
  92. }
  93. var field = reader.getFieldNumber();
  94. switch (field) {
  95. default:
  96. reader.skipField();
  97. break;
  98. }
  99. }
  100. return msg;
  101. };
  102. /**
  103. * Serializes the message to binary data (in protobuf wire format).
  104. * @return {!Uint8Array}
  105. */
  106. proto.spine.server.model.Nothing.prototype.serializeBinary = function() {
  107. var writer = new jspb.BinaryWriter();
  108. proto.spine.server.model.Nothing.serializeBinaryToWriter(this, writer);
  109. return writer.getResultBuffer();
  110. };
  111. /**
  112. * Serializes the given message to binary data (in protobuf wire
  113. * format), writing to the given BinaryWriter.
  114. * @param {!proto.spine.server.model.Nothing} message
  115. * @param {!jspb.BinaryWriter} writer
  116. * @suppress {unusedLocalVariables} f is only used for nested messages
  117. */
  118. proto.spine.server.model.Nothing.serializeBinaryToWriter = function(message, writer) {
  119. var f = undefined;
  120. };
  121. goog.object.extend(exports, proto.spine.server.model);
  122. // Generated by Spine ProtoJs Plugin
  123. let ObjectParser = require('../../../../client/parser/object-parser.js').default;
  124. let TypeParsers = require('../../../../client/parser/type-parsers.js').default;
  125. proto.spine.server.model.Nothing.Parser = function() {
  126. ObjectParser.call(this);
  127. };
  128. proto.spine.server.model.Nothing.Parser.prototype = Object.create(ObjectParser.prototype);
  129. proto.spine.server.model.Nothing.Parser.prototype.constructor = proto.spine.server.model.Nothing.Parser;
  130. proto.spine.server.model.Nothing.Parser.prototype.fromObject = function(obj) {
  131. if (obj === null) {
  132. return null;
  133. }
  134. let msg = new proto.spine.server.model.Nothing();
  135. return msg;
  136. };
  137. // Generated by Spine ProtoJs Plugin
  138. proto.spine.server.model.Nothing.typeUrl = function() {
  139. return 'type.spine.io/spine.server.model.Nothing';
  140. };