agones.dev/agones@v1.53.0/sdks/nodejs/lib/alpha/alpha_pb.js (about)

     1  // Copyright 2024 Google LLC All Rights Reserved.
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // This code was autogenerated. Do not edit directly.
    16  // source: alpha.proto
    17  /**
    18   * @fileoverview
    19   * @enhanceable
    20   * @suppress {missingRequire} reports error on implicit type usages.
    21   * @suppress {messageConventions} JS Compiler reports an error if a variable or
    22   *     field starts with 'MSG_' and isn't a translatable message.
    23   * @public
    24   */
    25  // GENERATED CODE -- DO NOT EDIT!
    26  /* eslint-disable */
    27  // @ts-nocheck
    28  
    29  var jspb = require('google-protobuf');
    30  var goog = jspb;
    31  var global = Function('return this')();
    32  
    33  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
    34  goog.object.extend(proto, google_api_annotations_pb);
    35  var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js');
    36  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
    37  goog.exportSymbol('proto.agones.dev.sdk.alpha.Bool', null, global);
    38  goog.exportSymbol('proto.agones.dev.sdk.alpha.Count', null, global);
    39  goog.exportSymbol('proto.agones.dev.sdk.alpha.Empty', null, global);
    40  goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerID', null, global);
    41  goog.exportSymbol('proto.agones.dev.sdk.alpha.PlayerIDList', null, global);
    42  /**
    43   * Generated by JsPbCodeGenerator.
    44   * @param {Array=} opt_data Optional initial data array, typically from a
    45   * server response, or constructed directly in Javascript. The array is used
    46   * in place and becomes part of the constructed object. It is not cloned.
    47   * If no data is provided, the constructed object will be empty, but still
    48   * valid.
    49   * @extends {jspb.Message}
    50   * @constructor
    51   */
    52  proto.agones.dev.sdk.alpha.Empty = function(opt_data) {
    53    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    54  };
    55  goog.inherits(proto.agones.dev.sdk.alpha.Empty, jspb.Message);
    56  if (goog.DEBUG && !COMPILED) {
    57    /**
    58     * @public
    59     * @override
    60     */
    61    proto.agones.dev.sdk.alpha.Empty.displayName = 'proto.agones.dev.sdk.alpha.Empty';
    62  }
    63  /**
    64   * Generated by JsPbCodeGenerator.
    65   * @param {Array=} opt_data Optional initial data array, typically from a
    66   * server response, or constructed directly in Javascript. The array is used
    67   * in place and becomes part of the constructed object. It is not cloned.
    68   * If no data is provided, the constructed object will be empty, but still
    69   * valid.
    70   * @extends {jspb.Message}
    71   * @constructor
    72   */
    73  proto.agones.dev.sdk.alpha.Count = function(opt_data) {
    74    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    75  };
    76  goog.inherits(proto.agones.dev.sdk.alpha.Count, jspb.Message);
    77  if (goog.DEBUG && !COMPILED) {
    78    /**
    79     * @public
    80     * @override
    81     */
    82    proto.agones.dev.sdk.alpha.Count.displayName = 'proto.agones.dev.sdk.alpha.Count';
    83  }
    84  /**
    85   * Generated by JsPbCodeGenerator.
    86   * @param {Array=} opt_data Optional initial data array, typically from a
    87   * server response, or constructed directly in Javascript. The array is used
    88   * in place and becomes part of the constructed object. It is not cloned.
    89   * If no data is provided, the constructed object will be empty, but still
    90   * valid.
    91   * @extends {jspb.Message}
    92   * @constructor
    93   */
    94  proto.agones.dev.sdk.alpha.Bool = function(opt_data) {
    95    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
    96  };
    97  goog.inherits(proto.agones.dev.sdk.alpha.Bool, jspb.Message);
    98  if (goog.DEBUG && !COMPILED) {
    99    /**
   100     * @public
   101     * @override
   102     */
   103    proto.agones.dev.sdk.alpha.Bool.displayName = 'proto.agones.dev.sdk.alpha.Bool';
   104  }
   105  /**
   106   * Generated by JsPbCodeGenerator.
   107   * @param {Array=} opt_data Optional initial data array, typically from a
   108   * server response, or constructed directly in Javascript. The array is used
   109   * in place and becomes part of the constructed object. It is not cloned.
   110   * If no data is provided, the constructed object will be empty, but still
   111   * valid.
   112   * @extends {jspb.Message}
   113   * @constructor
   114   */
   115  proto.agones.dev.sdk.alpha.PlayerID = function(opt_data) {
   116    jspb.Message.initialize(this, opt_data, 0, -1, null, null);
   117  };
   118  goog.inherits(proto.agones.dev.sdk.alpha.PlayerID, jspb.Message);
   119  if (goog.DEBUG && !COMPILED) {
   120    /**
   121     * @public
   122     * @override
   123     */
   124    proto.agones.dev.sdk.alpha.PlayerID.displayName = 'proto.agones.dev.sdk.alpha.PlayerID';
   125  }
   126  /**
   127   * Generated by JsPbCodeGenerator.
   128   * @param {Array=} opt_data Optional initial data array, typically from a
   129   * server response, or constructed directly in Javascript. The array is used
   130   * in place and becomes part of the constructed object. It is not cloned.
   131   * If no data is provided, the constructed object will be empty, but still
   132   * valid.
   133   * @extends {jspb.Message}
   134   * @constructor
   135   */
   136  proto.agones.dev.sdk.alpha.PlayerIDList = function(opt_data) {
   137    jspb.Message.initialize(this, opt_data, 0, -1, proto.agones.dev.sdk.alpha.PlayerIDList.repeatedFields_, null);
   138  };
   139  goog.inherits(proto.agones.dev.sdk.alpha.PlayerIDList, jspb.Message);
   140  if (goog.DEBUG && !COMPILED) {
   141    /**
   142     * @public
   143     * @override
   144     */
   145    proto.agones.dev.sdk.alpha.PlayerIDList.displayName = 'proto.agones.dev.sdk.alpha.PlayerIDList';
   146  }
   147  
   148  
   149  
   150  if (jspb.Message.GENERATE_TO_OBJECT) {
   151  /**
   152   * Creates an object representation of this proto.
   153   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   154   * Optional fields that are not set will be set to undefined.
   155   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   156   * For the list of reserved names please see:
   157   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   158   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   159   *     JSPB instance for transitional soy proto support:
   160   *     http://goto/soy-param-migration
   161   * @return {!Object}
   162   */
   163  proto.agones.dev.sdk.alpha.Empty.prototype.toObject = function(opt_includeInstance) {
   164    return proto.agones.dev.sdk.alpha.Empty.toObject(opt_includeInstance, this);
   165  };
   166  
   167  
   168  /**
   169   * Static version of the {@see toObject} method.
   170   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   171   *     the JSPB instance for transitional soy proto support:
   172   *     http://goto/soy-param-migration
   173   * @param {!proto.agones.dev.sdk.alpha.Empty} msg The msg instance to transform.
   174   * @return {!Object}
   175   * @suppress {unusedLocalVariables} f is only used for nested messages
   176   */
   177  proto.agones.dev.sdk.alpha.Empty.toObject = function(includeInstance, msg) {
   178    var f, obj = {
   179  
   180    };
   181  
   182    if (includeInstance) {
   183      obj.$jspbMessageInstance = msg;
   184    }
   185    return obj;
   186  };
   187  }
   188  
   189  
   190  /**
   191   * Deserializes binary data (in protobuf wire format).
   192   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   193   * @return {!proto.agones.dev.sdk.alpha.Empty}
   194   */
   195  proto.agones.dev.sdk.alpha.Empty.deserializeBinary = function(bytes) {
   196    var reader = new jspb.BinaryReader(bytes);
   197    var msg = new proto.agones.dev.sdk.alpha.Empty;
   198    return proto.agones.dev.sdk.alpha.Empty.deserializeBinaryFromReader(msg, reader);
   199  };
   200  
   201  
   202  /**
   203   * Deserializes binary data (in protobuf wire format) from the
   204   * given reader into the given message object.
   205   * @param {!proto.agones.dev.sdk.alpha.Empty} msg The message object to deserialize into.
   206   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   207   * @return {!proto.agones.dev.sdk.alpha.Empty}
   208   */
   209  proto.agones.dev.sdk.alpha.Empty.deserializeBinaryFromReader = function(msg, reader) {
   210    while (reader.nextField()) {
   211      if (reader.isEndGroup()) {
   212        break;
   213      }
   214      var field = reader.getFieldNumber();
   215      switch (field) {
   216      default:
   217        reader.skipField();
   218        break;
   219      }
   220    }
   221    return msg;
   222  };
   223  
   224  
   225  /**
   226   * Serializes the message to binary data (in protobuf wire format).
   227   * @return {!Uint8Array}
   228   */
   229  proto.agones.dev.sdk.alpha.Empty.prototype.serializeBinary = function() {
   230    var writer = new jspb.BinaryWriter();
   231    proto.agones.dev.sdk.alpha.Empty.serializeBinaryToWriter(this, writer);
   232    return writer.getResultBuffer();
   233  };
   234  
   235  
   236  /**
   237   * Serializes the given message to binary data (in protobuf wire
   238   * format), writing to the given BinaryWriter.
   239   * @param {!proto.agones.dev.sdk.alpha.Empty} message
   240   * @param {!jspb.BinaryWriter} writer
   241   * @suppress {unusedLocalVariables} f is only used for nested messages
   242   */
   243  proto.agones.dev.sdk.alpha.Empty.serializeBinaryToWriter = function(message, writer) {
   244    var f = undefined;
   245  };
   246  
   247  
   248  
   249  
   250  
   251  if (jspb.Message.GENERATE_TO_OBJECT) {
   252  /**
   253   * Creates an object representation of this proto.
   254   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   255   * Optional fields that are not set will be set to undefined.
   256   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   257   * For the list of reserved names please see:
   258   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   259   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   260   *     JSPB instance for transitional soy proto support:
   261   *     http://goto/soy-param-migration
   262   * @return {!Object}
   263   */
   264  proto.agones.dev.sdk.alpha.Count.prototype.toObject = function(opt_includeInstance) {
   265    return proto.agones.dev.sdk.alpha.Count.toObject(opt_includeInstance, this);
   266  };
   267  
   268  
   269  /**
   270   * Static version of the {@see toObject} method.
   271   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   272   *     the JSPB instance for transitional soy proto support:
   273   *     http://goto/soy-param-migration
   274   * @param {!proto.agones.dev.sdk.alpha.Count} msg The msg instance to transform.
   275   * @return {!Object}
   276   * @suppress {unusedLocalVariables} f is only used for nested messages
   277   */
   278  proto.agones.dev.sdk.alpha.Count.toObject = function(includeInstance, msg) {
   279    var f, obj = {
   280      count: jspb.Message.getFieldWithDefault(msg, 1, 0)
   281    };
   282  
   283    if (includeInstance) {
   284      obj.$jspbMessageInstance = msg;
   285    }
   286    return obj;
   287  };
   288  }
   289  
   290  
   291  /**
   292   * Deserializes binary data (in protobuf wire format).
   293   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   294   * @return {!proto.agones.dev.sdk.alpha.Count}
   295   */
   296  proto.agones.dev.sdk.alpha.Count.deserializeBinary = function(bytes) {
   297    var reader = new jspb.BinaryReader(bytes);
   298    var msg = new proto.agones.dev.sdk.alpha.Count;
   299    return proto.agones.dev.sdk.alpha.Count.deserializeBinaryFromReader(msg, reader);
   300  };
   301  
   302  
   303  /**
   304   * Deserializes binary data (in protobuf wire format) from the
   305   * given reader into the given message object.
   306   * @param {!proto.agones.dev.sdk.alpha.Count} msg The message object to deserialize into.
   307   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   308   * @return {!proto.agones.dev.sdk.alpha.Count}
   309   */
   310  proto.agones.dev.sdk.alpha.Count.deserializeBinaryFromReader = function(msg, reader) {
   311    while (reader.nextField()) {
   312      if (reader.isEndGroup()) {
   313        break;
   314      }
   315      var field = reader.getFieldNumber();
   316      switch (field) {
   317      case 1:
   318        var value = /** @type {number} */ (reader.readInt64());
   319        msg.setCount(value);
   320        break;
   321      default:
   322        reader.skipField();
   323        break;
   324      }
   325    }
   326    return msg;
   327  };
   328  
   329  
   330  /**
   331   * Serializes the message to binary data (in protobuf wire format).
   332   * @return {!Uint8Array}
   333   */
   334  proto.agones.dev.sdk.alpha.Count.prototype.serializeBinary = function() {
   335    var writer = new jspb.BinaryWriter();
   336    proto.agones.dev.sdk.alpha.Count.serializeBinaryToWriter(this, writer);
   337    return writer.getResultBuffer();
   338  };
   339  
   340  
   341  /**
   342   * Serializes the given message to binary data (in protobuf wire
   343   * format), writing to the given BinaryWriter.
   344   * @param {!proto.agones.dev.sdk.alpha.Count} message
   345   * @param {!jspb.BinaryWriter} writer
   346   * @suppress {unusedLocalVariables} f is only used for nested messages
   347   */
   348  proto.agones.dev.sdk.alpha.Count.serializeBinaryToWriter = function(message, writer) {
   349    var f = undefined;
   350    f = message.getCount();
   351    if (f !== 0) {
   352      writer.writeInt64(
   353        1,
   354        f
   355      );
   356    }
   357  };
   358  
   359  
   360  /**
   361   * optional int64 count = 1;
   362   * @return {number}
   363   */
   364  proto.agones.dev.sdk.alpha.Count.prototype.getCount = function() {
   365    return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
   366  };
   367  
   368  
   369  /**
   370   * @param {number} value
   371   * @return {!proto.agones.dev.sdk.alpha.Count} returns this
   372   */
   373  proto.agones.dev.sdk.alpha.Count.prototype.setCount = function(value) {
   374    return jspb.Message.setProto3IntField(this, 1, value);
   375  };
   376  
   377  
   378  
   379  
   380  
   381  if (jspb.Message.GENERATE_TO_OBJECT) {
   382  /**
   383   * Creates an object representation of this proto.
   384   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   385   * Optional fields that are not set will be set to undefined.
   386   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   387   * For the list of reserved names please see:
   388   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   389   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   390   *     JSPB instance for transitional soy proto support:
   391   *     http://goto/soy-param-migration
   392   * @return {!Object}
   393   */
   394  proto.agones.dev.sdk.alpha.Bool.prototype.toObject = function(opt_includeInstance) {
   395    return proto.agones.dev.sdk.alpha.Bool.toObject(opt_includeInstance, this);
   396  };
   397  
   398  
   399  /**
   400   * Static version of the {@see toObject} method.
   401   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   402   *     the JSPB instance for transitional soy proto support:
   403   *     http://goto/soy-param-migration
   404   * @param {!proto.agones.dev.sdk.alpha.Bool} msg The msg instance to transform.
   405   * @return {!Object}
   406   * @suppress {unusedLocalVariables} f is only used for nested messages
   407   */
   408  proto.agones.dev.sdk.alpha.Bool.toObject = function(includeInstance, msg) {
   409    var f, obj = {
   410      bool: jspb.Message.getBooleanFieldWithDefault(msg, 1, false)
   411    };
   412  
   413    if (includeInstance) {
   414      obj.$jspbMessageInstance = msg;
   415    }
   416    return obj;
   417  };
   418  }
   419  
   420  
   421  /**
   422   * Deserializes binary data (in protobuf wire format).
   423   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   424   * @return {!proto.agones.dev.sdk.alpha.Bool}
   425   */
   426  proto.agones.dev.sdk.alpha.Bool.deserializeBinary = function(bytes) {
   427    var reader = new jspb.BinaryReader(bytes);
   428    var msg = new proto.agones.dev.sdk.alpha.Bool;
   429    return proto.agones.dev.sdk.alpha.Bool.deserializeBinaryFromReader(msg, reader);
   430  };
   431  
   432  
   433  /**
   434   * Deserializes binary data (in protobuf wire format) from the
   435   * given reader into the given message object.
   436   * @param {!proto.agones.dev.sdk.alpha.Bool} msg The message object to deserialize into.
   437   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   438   * @return {!proto.agones.dev.sdk.alpha.Bool}
   439   */
   440  proto.agones.dev.sdk.alpha.Bool.deserializeBinaryFromReader = function(msg, reader) {
   441    while (reader.nextField()) {
   442      if (reader.isEndGroup()) {
   443        break;
   444      }
   445      var field = reader.getFieldNumber();
   446      switch (field) {
   447      case 1:
   448        var value = /** @type {boolean} */ (reader.readBool());
   449        msg.setBool(value);
   450        break;
   451      default:
   452        reader.skipField();
   453        break;
   454      }
   455    }
   456    return msg;
   457  };
   458  
   459  
   460  /**
   461   * Serializes the message to binary data (in protobuf wire format).
   462   * @return {!Uint8Array}
   463   */
   464  proto.agones.dev.sdk.alpha.Bool.prototype.serializeBinary = function() {
   465    var writer = new jspb.BinaryWriter();
   466    proto.agones.dev.sdk.alpha.Bool.serializeBinaryToWriter(this, writer);
   467    return writer.getResultBuffer();
   468  };
   469  
   470  
   471  /**
   472   * Serializes the given message to binary data (in protobuf wire
   473   * format), writing to the given BinaryWriter.
   474   * @param {!proto.agones.dev.sdk.alpha.Bool} message
   475   * @param {!jspb.BinaryWriter} writer
   476   * @suppress {unusedLocalVariables} f is only used for nested messages
   477   */
   478  proto.agones.dev.sdk.alpha.Bool.serializeBinaryToWriter = function(message, writer) {
   479    var f = undefined;
   480    f = message.getBool();
   481    if (f) {
   482      writer.writeBool(
   483        1,
   484        f
   485      );
   486    }
   487  };
   488  
   489  
   490  /**
   491   * optional bool bool = 1;
   492   * @return {boolean}
   493   */
   494  proto.agones.dev.sdk.alpha.Bool.prototype.getBool = function() {
   495    return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
   496  };
   497  
   498  
   499  /**
   500   * @param {boolean} value
   501   * @return {!proto.agones.dev.sdk.alpha.Bool} returns this
   502   */
   503  proto.agones.dev.sdk.alpha.Bool.prototype.setBool = function(value) {
   504    return jspb.Message.setProto3BooleanField(this, 1, value);
   505  };
   506  
   507  
   508  
   509  
   510  
   511  if (jspb.Message.GENERATE_TO_OBJECT) {
   512  /**
   513   * Creates an object representation of this proto.
   514   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   515   * Optional fields that are not set will be set to undefined.
   516   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   517   * For the list of reserved names please see:
   518   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   519   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   520   *     JSPB instance for transitional soy proto support:
   521   *     http://goto/soy-param-migration
   522   * @return {!Object}
   523   */
   524  proto.agones.dev.sdk.alpha.PlayerID.prototype.toObject = function(opt_includeInstance) {
   525    return proto.agones.dev.sdk.alpha.PlayerID.toObject(opt_includeInstance, this);
   526  };
   527  
   528  
   529  /**
   530   * Static version of the {@see toObject} method.
   531   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   532   *     the JSPB instance for transitional soy proto support:
   533   *     http://goto/soy-param-migration
   534   * @param {!proto.agones.dev.sdk.alpha.PlayerID} msg The msg instance to transform.
   535   * @return {!Object}
   536   * @suppress {unusedLocalVariables} f is only used for nested messages
   537   */
   538  proto.agones.dev.sdk.alpha.PlayerID.toObject = function(includeInstance, msg) {
   539    var f, obj = {
   540      playerid: jspb.Message.getFieldWithDefault(msg, 1, "")
   541    };
   542  
   543    if (includeInstance) {
   544      obj.$jspbMessageInstance = msg;
   545    }
   546    return obj;
   547  };
   548  }
   549  
   550  
   551  /**
   552   * Deserializes binary data (in protobuf wire format).
   553   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   554   * @return {!proto.agones.dev.sdk.alpha.PlayerID}
   555   */
   556  proto.agones.dev.sdk.alpha.PlayerID.deserializeBinary = function(bytes) {
   557    var reader = new jspb.BinaryReader(bytes);
   558    var msg = new proto.agones.dev.sdk.alpha.PlayerID;
   559    return proto.agones.dev.sdk.alpha.PlayerID.deserializeBinaryFromReader(msg, reader);
   560  };
   561  
   562  
   563  /**
   564   * Deserializes binary data (in protobuf wire format) from the
   565   * given reader into the given message object.
   566   * @param {!proto.agones.dev.sdk.alpha.PlayerID} msg The message object to deserialize into.
   567   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   568   * @return {!proto.agones.dev.sdk.alpha.PlayerID}
   569   */
   570  proto.agones.dev.sdk.alpha.PlayerID.deserializeBinaryFromReader = function(msg, reader) {
   571    while (reader.nextField()) {
   572      if (reader.isEndGroup()) {
   573        break;
   574      }
   575      var field = reader.getFieldNumber();
   576      switch (field) {
   577      case 1:
   578        var value = /** @type {string} */ (reader.readString());
   579        msg.setPlayerid(value);
   580        break;
   581      default:
   582        reader.skipField();
   583        break;
   584      }
   585    }
   586    return msg;
   587  };
   588  
   589  
   590  /**
   591   * Serializes the message to binary data (in protobuf wire format).
   592   * @return {!Uint8Array}
   593   */
   594  proto.agones.dev.sdk.alpha.PlayerID.prototype.serializeBinary = function() {
   595    var writer = new jspb.BinaryWriter();
   596    proto.agones.dev.sdk.alpha.PlayerID.serializeBinaryToWriter(this, writer);
   597    return writer.getResultBuffer();
   598  };
   599  
   600  
   601  /**
   602   * Serializes the given message to binary data (in protobuf wire
   603   * format), writing to the given BinaryWriter.
   604   * @param {!proto.agones.dev.sdk.alpha.PlayerID} message
   605   * @param {!jspb.BinaryWriter} writer
   606   * @suppress {unusedLocalVariables} f is only used for nested messages
   607   */
   608  proto.agones.dev.sdk.alpha.PlayerID.serializeBinaryToWriter = function(message, writer) {
   609    var f = undefined;
   610    f = message.getPlayerid();
   611    if (f.length > 0) {
   612      writer.writeString(
   613        1,
   614        f
   615      );
   616    }
   617  };
   618  
   619  
   620  /**
   621   * optional string playerID = 1;
   622   * @return {string}
   623   */
   624  proto.agones.dev.sdk.alpha.PlayerID.prototype.getPlayerid = function() {
   625    return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
   626  };
   627  
   628  
   629  /**
   630   * @param {string} value
   631   * @return {!proto.agones.dev.sdk.alpha.PlayerID} returns this
   632   */
   633  proto.agones.dev.sdk.alpha.PlayerID.prototype.setPlayerid = function(value) {
   634    return jspb.Message.setProto3StringField(this, 1, value);
   635  };
   636  
   637  
   638  
   639  /**
   640   * List of repeated fields within this message type.
   641   * @private {!Array<number>}
   642   * @const
   643   */
   644  proto.agones.dev.sdk.alpha.PlayerIDList.repeatedFields_ = [1];
   645  
   646  
   647  
   648  if (jspb.Message.GENERATE_TO_OBJECT) {
   649  /**
   650   * Creates an object representation of this proto.
   651   * Field names that are reserved in JavaScript and will be renamed to pb_name.
   652   * Optional fields that are not set will be set to undefined.
   653   * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
   654   * For the list of reserved names please see:
   655   *     net/proto2/compiler/js/internal/generator.cc#kKeyword.
   656   * @param {boolean=} opt_includeInstance Deprecated. whether to include the
   657   *     JSPB instance for transitional soy proto support:
   658   *     http://goto/soy-param-migration
   659   * @return {!Object}
   660   */
   661  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.toObject = function(opt_includeInstance) {
   662    return proto.agones.dev.sdk.alpha.PlayerIDList.toObject(opt_includeInstance, this);
   663  };
   664  
   665  
   666  /**
   667   * Static version of the {@see toObject} method.
   668   * @param {boolean|undefined} includeInstance Deprecated. Whether to include
   669   *     the JSPB instance for transitional soy proto support:
   670   *     http://goto/soy-param-migration
   671   * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} msg The msg instance to transform.
   672   * @return {!Object}
   673   * @suppress {unusedLocalVariables} f is only used for nested messages
   674   */
   675  proto.agones.dev.sdk.alpha.PlayerIDList.toObject = function(includeInstance, msg) {
   676    var f, obj = {
   677      listList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
   678    };
   679  
   680    if (includeInstance) {
   681      obj.$jspbMessageInstance = msg;
   682    }
   683    return obj;
   684  };
   685  }
   686  
   687  
   688  /**
   689   * Deserializes binary data (in protobuf wire format).
   690   * @param {jspb.ByteSource} bytes The bytes to deserialize.
   691   * @return {!proto.agones.dev.sdk.alpha.PlayerIDList}
   692   */
   693  proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinary = function(bytes) {
   694    var reader = new jspb.BinaryReader(bytes);
   695    var msg = new proto.agones.dev.sdk.alpha.PlayerIDList;
   696    return proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinaryFromReader(msg, reader);
   697  };
   698  
   699  
   700  /**
   701   * Deserializes binary data (in protobuf wire format) from the
   702   * given reader into the given message object.
   703   * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} msg The message object to deserialize into.
   704   * @param {!jspb.BinaryReader} reader The BinaryReader to use.
   705   * @return {!proto.agones.dev.sdk.alpha.PlayerIDList}
   706   */
   707  proto.agones.dev.sdk.alpha.PlayerIDList.deserializeBinaryFromReader = function(msg, reader) {
   708    while (reader.nextField()) {
   709      if (reader.isEndGroup()) {
   710        break;
   711      }
   712      var field = reader.getFieldNumber();
   713      switch (field) {
   714      case 1:
   715        var value = /** @type {string} */ (reader.readString());
   716        msg.addList(value);
   717        break;
   718      default:
   719        reader.skipField();
   720        break;
   721      }
   722    }
   723    return msg;
   724  };
   725  
   726  
   727  /**
   728   * Serializes the message to binary data (in protobuf wire format).
   729   * @return {!Uint8Array}
   730   */
   731  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.serializeBinary = function() {
   732    var writer = new jspb.BinaryWriter();
   733    proto.agones.dev.sdk.alpha.PlayerIDList.serializeBinaryToWriter(this, writer);
   734    return writer.getResultBuffer();
   735  };
   736  
   737  
   738  /**
   739   * Serializes the given message to binary data (in protobuf wire
   740   * format), writing to the given BinaryWriter.
   741   * @param {!proto.agones.dev.sdk.alpha.PlayerIDList} message
   742   * @param {!jspb.BinaryWriter} writer
   743   * @suppress {unusedLocalVariables} f is only used for nested messages
   744   */
   745  proto.agones.dev.sdk.alpha.PlayerIDList.serializeBinaryToWriter = function(message, writer) {
   746    var f = undefined;
   747    f = message.getListList();
   748    if (f.length > 0) {
   749      writer.writeRepeatedString(
   750        1,
   751        f
   752      );
   753    }
   754  };
   755  
   756  
   757  /**
   758   * repeated string list = 1;
   759   * @return {!Array<string>}
   760   */
   761  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.getListList = function() {
   762    return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
   763  };
   764  
   765  
   766  /**
   767   * @param {!Array<string>} value
   768   * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this
   769   */
   770  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.setListList = function(value) {
   771    return jspb.Message.setField(this, 1, value || []);
   772  };
   773  
   774  
   775  /**
   776   * @param {string} value
   777   * @param {number=} opt_index
   778   * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this
   779   */
   780  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.addList = function(value, opt_index) {
   781    return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
   782  };
   783  
   784  
   785  /**
   786   * Clears the list making it empty but non-null.
   787   * @return {!proto.agones.dev.sdk.alpha.PlayerIDList} returns this
   788   */
   789  proto.agones.dev.sdk.alpha.PlayerIDList.prototype.clearListList = function() {
   790    return this.setListList([]);
   791  };
   792  
   793  
   794  goog.object.extend(exports, proto.agones.dev.sdk.alpha);