protobuf-platform 1.0.262 → 1.0.264

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/game/game.proto CHANGED
@@ -76,6 +76,9 @@ service Game {
76
76
  rpc getPoorWagerLists(WagerSearchRequest) returns (WagerListItemsResponse);
77
77
  //Dashboard
78
78
  rpc getDashboardInfo(DashboardRequest) returns (DashboardResponse);
79
+ //SEO
80
+ rpc setSEOInstanceAttributes(SEOInstanceRequest) returns (GameStatusResponse);
81
+ rpc readSEOInstanceAttributes(SEOInstanceRequest) returns (SEOInstanceResponse);
79
82
  }
80
83
 
81
84
  message PingRequest { string ping = 1; }
@@ -548,4 +551,19 @@ message DashboardRequest {
548
551
  message DashboardResponse {
549
552
  int32 free_spins_total = 1;
550
553
  int32 free_spins_played = 2;
554
+ }
555
+ //SEO
556
+ message SEOAttribute {
557
+ string key = 1;
558
+ string value = 2;
559
+ }
560
+ message SEOInstanceRequest {
561
+ int32 instance_id = 1;
562
+ string instance_type = 2;
563
+ string locale = 3;
564
+ repeated SEOAttribute attributes = 4;
565
+ optional bool with_main_info = 5;
566
+ }
567
+ message SEOInstanceResponse {
568
+ repeated SEOAttribute attributes = 1;
551
569
  }
@@ -576,6 +576,28 @@ function deserialize_game_ProviderStatusResponse(buffer_arg) {
576
576
  return game_pb.ProviderStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
577
577
  }
578
578
 
579
+ function serialize_game_SEOInstanceRequest(arg) {
580
+ if (!(arg instanceof game_pb.SEOInstanceRequest)) {
581
+ throw new Error('Expected argument of type game.SEOInstanceRequest');
582
+ }
583
+ return Buffer.from(arg.serializeBinary());
584
+ }
585
+
586
+ function deserialize_game_SEOInstanceRequest(buffer_arg) {
587
+ return game_pb.SEOInstanceRequest.deserializeBinary(new Uint8Array(buffer_arg));
588
+ }
589
+
590
+ function serialize_game_SEOInstanceResponse(arg) {
591
+ if (!(arg instanceof game_pb.SEOInstanceResponse)) {
592
+ throw new Error('Expected argument of type game.SEOInstanceResponse');
593
+ }
594
+ return Buffer.from(arg.serializeBinary());
595
+ }
596
+
597
+ function deserialize_game_SEOInstanceResponse(buffer_arg) {
598
+ return game_pb.SEOInstanceResponse.deserializeBinary(new Uint8Array(buffer_arg));
599
+ }
600
+
579
601
  function serialize_game_ScopeRequest(arg) {
580
602
  if (!(arg instanceof game_pb.ScopeRequest)) {
581
603
  throw new Error('Expected argument of type game.ScopeRequest');
@@ -1457,6 +1479,29 @@ getDashboardInfo: {
1457
1479
  responseSerialize: serialize_game_DashboardResponse,
1458
1480
  responseDeserialize: deserialize_game_DashboardResponse,
1459
1481
  },
1482
+ // SEO
1483
+ setSEOInstanceAttributes: {
1484
+ path: '/game.Game/setSEOInstanceAttributes',
1485
+ requestStream: false,
1486
+ responseStream: false,
1487
+ requestType: game_pb.SEOInstanceRequest,
1488
+ responseType: game_pb.GameStatusResponse,
1489
+ requestSerialize: serialize_game_SEOInstanceRequest,
1490
+ requestDeserialize: deserialize_game_SEOInstanceRequest,
1491
+ responseSerialize: serialize_game_GameStatusResponse,
1492
+ responseDeserialize: deserialize_game_GameStatusResponse,
1493
+ },
1494
+ readSEOInstanceAttributes: {
1495
+ path: '/game.Game/readSEOInstanceAttributes',
1496
+ requestStream: false,
1497
+ responseStream: false,
1498
+ requestType: game_pb.SEOInstanceRequest,
1499
+ responseType: game_pb.SEOInstanceResponse,
1500
+ requestSerialize: serialize_game_SEOInstanceRequest,
1501
+ requestDeserialize: deserialize_game_SEOInstanceRequest,
1502
+ responseSerialize: serialize_game_SEOInstanceResponse,
1503
+ responseDeserialize: deserialize_game_SEOInstanceResponse,
1504
+ },
1460
1505
  };
1461
1506
 
1462
1507
  exports.GameClient = grpc.makeGenericClientConstructor(GameService);
package/game/game_pb.js CHANGED
@@ -88,6 +88,9 @@ goog.exportSymbol('proto.game.ProviderRequest', null, global);
88
88
  goog.exportSymbol('proto.game.ProviderRequest.RequestCase', null, global);
89
89
  goog.exportSymbol('proto.game.ProviderResponse', null, global);
90
90
  goog.exportSymbol('proto.game.ProviderStatusResponse', null, global);
91
+ goog.exportSymbol('proto.game.SEOAttribute', null, global);
92
+ goog.exportSymbol('proto.game.SEOInstanceRequest', null, global);
93
+ goog.exportSymbol('proto.game.SEOInstanceResponse', null, global);
91
94
  goog.exportSymbol('proto.game.ScopeRequest', null, global);
92
95
  goog.exportSymbol('proto.game.ScopeResponse', null, global);
93
96
  goog.exportSymbol('proto.game.SearchGamesIntoCollectionsRequest', null, global);
@@ -1852,6 +1855,69 @@ if (goog.DEBUG && !COMPILED) {
1852
1855
  */
1853
1856
  proto.game.DashboardResponse.displayName = 'proto.game.DashboardResponse';
1854
1857
  }
1858
+ /**
1859
+ * Generated by JsPbCodeGenerator.
1860
+ * @param {Array=} opt_data Optional initial data array, typically from a
1861
+ * server response, or constructed directly in Javascript. The array is used
1862
+ * in place and becomes part of the constructed object. It is not cloned.
1863
+ * If no data is provided, the constructed object will be empty, but still
1864
+ * valid.
1865
+ * @extends {jspb.Message}
1866
+ * @constructor
1867
+ */
1868
+ proto.game.SEOAttribute = function(opt_data) {
1869
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1870
+ };
1871
+ goog.inherits(proto.game.SEOAttribute, jspb.Message);
1872
+ if (goog.DEBUG && !COMPILED) {
1873
+ /**
1874
+ * @public
1875
+ * @override
1876
+ */
1877
+ proto.game.SEOAttribute.displayName = 'proto.game.SEOAttribute';
1878
+ }
1879
+ /**
1880
+ * Generated by JsPbCodeGenerator.
1881
+ * @param {Array=} opt_data Optional initial data array, typically from a
1882
+ * server response, or constructed directly in Javascript. The array is used
1883
+ * in place and becomes part of the constructed object. It is not cloned.
1884
+ * If no data is provided, the constructed object will be empty, but still
1885
+ * valid.
1886
+ * @extends {jspb.Message}
1887
+ * @constructor
1888
+ */
1889
+ proto.game.SEOInstanceRequest = function(opt_data) {
1890
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SEOInstanceRequest.repeatedFields_, null);
1891
+ };
1892
+ goog.inherits(proto.game.SEOInstanceRequest, jspb.Message);
1893
+ if (goog.DEBUG && !COMPILED) {
1894
+ /**
1895
+ * @public
1896
+ * @override
1897
+ */
1898
+ proto.game.SEOInstanceRequest.displayName = 'proto.game.SEOInstanceRequest';
1899
+ }
1900
+ /**
1901
+ * Generated by JsPbCodeGenerator.
1902
+ * @param {Array=} opt_data Optional initial data array, typically from a
1903
+ * server response, or constructed directly in Javascript. The array is used
1904
+ * in place and becomes part of the constructed object. It is not cloned.
1905
+ * If no data is provided, the constructed object will be empty, but still
1906
+ * valid.
1907
+ * @extends {jspb.Message}
1908
+ * @constructor
1909
+ */
1910
+ proto.game.SEOInstanceResponse = function(opt_data) {
1911
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.game.SEOInstanceResponse.repeatedFields_, null);
1912
+ };
1913
+ goog.inherits(proto.game.SEOInstanceResponse, jspb.Message);
1914
+ if (goog.DEBUG && !COMPILED) {
1915
+ /**
1916
+ * @public
1917
+ * @override
1918
+ */
1919
+ proto.game.SEOInstanceResponse.displayName = 'proto.game.SEOInstanceResponse';
1920
+ }
1855
1921
 
1856
1922
 
1857
1923
 
@@ -22843,4 +22909,622 @@ proto.game.DashboardResponse.prototype.setFreeSpinsPlayed = function(value) {
22843
22909
  };
22844
22910
 
22845
22911
 
22912
+
22913
+
22914
+
22915
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22916
+ /**
22917
+ * Creates an object representation of this proto.
22918
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22919
+ * Optional fields that are not set will be set to undefined.
22920
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22921
+ * For the list of reserved names please see:
22922
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22923
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22924
+ * JSPB instance for transitional soy proto support:
22925
+ * http://goto/soy-param-migration
22926
+ * @return {!Object}
22927
+ */
22928
+ proto.game.SEOAttribute.prototype.toObject = function(opt_includeInstance) {
22929
+ return proto.game.SEOAttribute.toObject(opt_includeInstance, this);
22930
+ };
22931
+
22932
+
22933
+ /**
22934
+ * Static version of the {@see toObject} method.
22935
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22936
+ * the JSPB instance for transitional soy proto support:
22937
+ * http://goto/soy-param-migration
22938
+ * @param {!proto.game.SEOAttribute} msg The msg instance to transform.
22939
+ * @return {!Object}
22940
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22941
+ */
22942
+ proto.game.SEOAttribute.toObject = function(includeInstance, msg) {
22943
+ var f, obj = {
22944
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
22945
+ value: jspb.Message.getFieldWithDefault(msg, 2, "")
22946
+ };
22947
+
22948
+ if (includeInstance) {
22949
+ obj.$jspbMessageInstance = msg;
22950
+ }
22951
+ return obj;
22952
+ };
22953
+ }
22954
+
22955
+
22956
+ /**
22957
+ * Deserializes binary data (in protobuf wire format).
22958
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22959
+ * @return {!proto.game.SEOAttribute}
22960
+ */
22961
+ proto.game.SEOAttribute.deserializeBinary = function(bytes) {
22962
+ var reader = new jspb.BinaryReader(bytes);
22963
+ var msg = new proto.game.SEOAttribute;
22964
+ return proto.game.SEOAttribute.deserializeBinaryFromReader(msg, reader);
22965
+ };
22966
+
22967
+
22968
+ /**
22969
+ * Deserializes binary data (in protobuf wire format) from the
22970
+ * given reader into the given message object.
22971
+ * @param {!proto.game.SEOAttribute} msg The message object to deserialize into.
22972
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22973
+ * @return {!proto.game.SEOAttribute}
22974
+ */
22975
+ proto.game.SEOAttribute.deserializeBinaryFromReader = function(msg, reader) {
22976
+ while (reader.nextField()) {
22977
+ if (reader.isEndGroup()) {
22978
+ break;
22979
+ }
22980
+ var field = reader.getFieldNumber();
22981
+ switch (field) {
22982
+ case 1:
22983
+ var value = /** @type {string} */ (reader.readString());
22984
+ msg.setKey(value);
22985
+ break;
22986
+ case 2:
22987
+ var value = /** @type {string} */ (reader.readString());
22988
+ msg.setValue(value);
22989
+ break;
22990
+ default:
22991
+ reader.skipField();
22992
+ break;
22993
+ }
22994
+ }
22995
+ return msg;
22996
+ };
22997
+
22998
+
22999
+ /**
23000
+ * Serializes the message to binary data (in protobuf wire format).
23001
+ * @return {!Uint8Array}
23002
+ */
23003
+ proto.game.SEOAttribute.prototype.serializeBinary = function() {
23004
+ var writer = new jspb.BinaryWriter();
23005
+ proto.game.SEOAttribute.serializeBinaryToWriter(this, writer);
23006
+ return writer.getResultBuffer();
23007
+ };
23008
+
23009
+
23010
+ /**
23011
+ * Serializes the given message to binary data (in protobuf wire
23012
+ * format), writing to the given BinaryWriter.
23013
+ * @param {!proto.game.SEOAttribute} message
23014
+ * @param {!jspb.BinaryWriter} writer
23015
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23016
+ */
23017
+ proto.game.SEOAttribute.serializeBinaryToWriter = function(message, writer) {
23018
+ var f = undefined;
23019
+ f = message.getKey();
23020
+ if (f.length > 0) {
23021
+ writer.writeString(
23022
+ 1,
23023
+ f
23024
+ );
23025
+ }
23026
+ f = message.getValue();
23027
+ if (f.length > 0) {
23028
+ writer.writeString(
23029
+ 2,
23030
+ f
23031
+ );
23032
+ }
23033
+ };
23034
+
23035
+
23036
+ /**
23037
+ * optional string key = 1;
23038
+ * @return {string}
23039
+ */
23040
+ proto.game.SEOAttribute.prototype.getKey = function() {
23041
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
23042
+ };
23043
+
23044
+
23045
+ /**
23046
+ * @param {string} value
23047
+ * @return {!proto.game.SEOAttribute} returns this
23048
+ */
23049
+ proto.game.SEOAttribute.prototype.setKey = function(value) {
23050
+ return jspb.Message.setProto3StringField(this, 1, value);
23051
+ };
23052
+
23053
+
23054
+ /**
23055
+ * optional string value = 2;
23056
+ * @return {string}
23057
+ */
23058
+ proto.game.SEOAttribute.prototype.getValue = function() {
23059
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23060
+ };
23061
+
23062
+
23063
+ /**
23064
+ * @param {string} value
23065
+ * @return {!proto.game.SEOAttribute} returns this
23066
+ */
23067
+ proto.game.SEOAttribute.prototype.setValue = function(value) {
23068
+ return jspb.Message.setProto3StringField(this, 2, value);
23069
+ };
23070
+
23071
+
23072
+
23073
+ /**
23074
+ * List of repeated fields within this message type.
23075
+ * @private {!Array<number>}
23076
+ * @const
23077
+ */
23078
+ proto.game.SEOInstanceRequest.repeatedFields_ = [4];
23079
+
23080
+
23081
+
23082
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23083
+ /**
23084
+ * Creates an object representation of this proto.
23085
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23086
+ * Optional fields that are not set will be set to undefined.
23087
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23088
+ * For the list of reserved names please see:
23089
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23090
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23091
+ * JSPB instance for transitional soy proto support:
23092
+ * http://goto/soy-param-migration
23093
+ * @return {!Object}
23094
+ */
23095
+ proto.game.SEOInstanceRequest.prototype.toObject = function(opt_includeInstance) {
23096
+ return proto.game.SEOInstanceRequest.toObject(opt_includeInstance, this);
23097
+ };
23098
+
23099
+
23100
+ /**
23101
+ * Static version of the {@see toObject} method.
23102
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23103
+ * the JSPB instance for transitional soy proto support:
23104
+ * http://goto/soy-param-migration
23105
+ * @param {!proto.game.SEOInstanceRequest} msg The msg instance to transform.
23106
+ * @return {!Object}
23107
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23108
+ */
23109
+ proto.game.SEOInstanceRequest.toObject = function(includeInstance, msg) {
23110
+ var f, obj = {
23111
+ instanceId: jspb.Message.getFieldWithDefault(msg, 1, 0),
23112
+ instanceType: jspb.Message.getFieldWithDefault(msg, 2, ""),
23113
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
23114
+ attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
23115
+ proto.game.SEOAttribute.toObject, includeInstance),
23116
+ withMainInfo: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
23117
+ };
23118
+
23119
+ if (includeInstance) {
23120
+ obj.$jspbMessageInstance = msg;
23121
+ }
23122
+ return obj;
23123
+ };
23124
+ }
23125
+
23126
+
23127
+ /**
23128
+ * Deserializes binary data (in protobuf wire format).
23129
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23130
+ * @return {!proto.game.SEOInstanceRequest}
23131
+ */
23132
+ proto.game.SEOInstanceRequest.deserializeBinary = function(bytes) {
23133
+ var reader = new jspb.BinaryReader(bytes);
23134
+ var msg = new proto.game.SEOInstanceRequest;
23135
+ return proto.game.SEOInstanceRequest.deserializeBinaryFromReader(msg, reader);
23136
+ };
23137
+
23138
+
23139
+ /**
23140
+ * Deserializes binary data (in protobuf wire format) from the
23141
+ * given reader into the given message object.
23142
+ * @param {!proto.game.SEOInstanceRequest} msg The message object to deserialize into.
23143
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23144
+ * @return {!proto.game.SEOInstanceRequest}
23145
+ */
23146
+ proto.game.SEOInstanceRequest.deserializeBinaryFromReader = function(msg, reader) {
23147
+ while (reader.nextField()) {
23148
+ if (reader.isEndGroup()) {
23149
+ break;
23150
+ }
23151
+ var field = reader.getFieldNumber();
23152
+ switch (field) {
23153
+ case 1:
23154
+ var value = /** @type {number} */ (reader.readInt32());
23155
+ msg.setInstanceId(value);
23156
+ break;
23157
+ case 2:
23158
+ var value = /** @type {string} */ (reader.readString());
23159
+ msg.setInstanceType(value);
23160
+ break;
23161
+ case 3:
23162
+ var value = /** @type {string} */ (reader.readString());
23163
+ msg.setLocale(value);
23164
+ break;
23165
+ case 4:
23166
+ var value = new proto.game.SEOAttribute;
23167
+ reader.readMessage(value,proto.game.SEOAttribute.deserializeBinaryFromReader);
23168
+ msg.addAttributes(value);
23169
+ break;
23170
+ case 5:
23171
+ var value = /** @type {boolean} */ (reader.readBool());
23172
+ msg.setWithMainInfo(value);
23173
+ break;
23174
+ default:
23175
+ reader.skipField();
23176
+ break;
23177
+ }
23178
+ }
23179
+ return msg;
23180
+ };
23181
+
23182
+
23183
+ /**
23184
+ * Serializes the message to binary data (in protobuf wire format).
23185
+ * @return {!Uint8Array}
23186
+ */
23187
+ proto.game.SEOInstanceRequest.prototype.serializeBinary = function() {
23188
+ var writer = new jspb.BinaryWriter();
23189
+ proto.game.SEOInstanceRequest.serializeBinaryToWriter(this, writer);
23190
+ return writer.getResultBuffer();
23191
+ };
23192
+
23193
+
23194
+ /**
23195
+ * Serializes the given message to binary data (in protobuf wire
23196
+ * format), writing to the given BinaryWriter.
23197
+ * @param {!proto.game.SEOInstanceRequest} message
23198
+ * @param {!jspb.BinaryWriter} writer
23199
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23200
+ */
23201
+ proto.game.SEOInstanceRequest.serializeBinaryToWriter = function(message, writer) {
23202
+ var f = undefined;
23203
+ f = message.getInstanceId();
23204
+ if (f !== 0) {
23205
+ writer.writeInt32(
23206
+ 1,
23207
+ f
23208
+ );
23209
+ }
23210
+ f = message.getInstanceType();
23211
+ if (f.length > 0) {
23212
+ writer.writeString(
23213
+ 2,
23214
+ f
23215
+ );
23216
+ }
23217
+ f = message.getLocale();
23218
+ if (f.length > 0) {
23219
+ writer.writeString(
23220
+ 3,
23221
+ f
23222
+ );
23223
+ }
23224
+ f = message.getAttributesList();
23225
+ if (f.length > 0) {
23226
+ writer.writeRepeatedMessage(
23227
+ 4,
23228
+ f,
23229
+ proto.game.SEOAttribute.serializeBinaryToWriter
23230
+ );
23231
+ }
23232
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 5));
23233
+ if (f != null) {
23234
+ writer.writeBool(
23235
+ 5,
23236
+ f
23237
+ );
23238
+ }
23239
+ };
23240
+
23241
+
23242
+ /**
23243
+ * optional int32 instance_id = 1;
23244
+ * @return {number}
23245
+ */
23246
+ proto.game.SEOInstanceRequest.prototype.getInstanceId = function() {
23247
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
23248
+ };
23249
+
23250
+
23251
+ /**
23252
+ * @param {number} value
23253
+ * @return {!proto.game.SEOInstanceRequest} returns this
23254
+ */
23255
+ proto.game.SEOInstanceRequest.prototype.setInstanceId = function(value) {
23256
+ return jspb.Message.setProto3IntField(this, 1, value);
23257
+ };
23258
+
23259
+
23260
+ /**
23261
+ * optional string instance_type = 2;
23262
+ * @return {string}
23263
+ */
23264
+ proto.game.SEOInstanceRequest.prototype.getInstanceType = function() {
23265
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
23266
+ };
23267
+
23268
+
23269
+ /**
23270
+ * @param {string} value
23271
+ * @return {!proto.game.SEOInstanceRequest} returns this
23272
+ */
23273
+ proto.game.SEOInstanceRequest.prototype.setInstanceType = function(value) {
23274
+ return jspb.Message.setProto3StringField(this, 2, value);
23275
+ };
23276
+
23277
+
23278
+ /**
23279
+ * optional string locale = 3;
23280
+ * @return {string}
23281
+ */
23282
+ proto.game.SEOInstanceRequest.prototype.getLocale = function() {
23283
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
23284
+ };
23285
+
23286
+
23287
+ /**
23288
+ * @param {string} value
23289
+ * @return {!proto.game.SEOInstanceRequest} returns this
23290
+ */
23291
+ proto.game.SEOInstanceRequest.prototype.setLocale = function(value) {
23292
+ return jspb.Message.setProto3StringField(this, 3, value);
23293
+ };
23294
+
23295
+
23296
+ /**
23297
+ * repeated SEOAttribute attributes = 4;
23298
+ * @return {!Array<!proto.game.SEOAttribute>}
23299
+ */
23300
+ proto.game.SEOInstanceRequest.prototype.getAttributesList = function() {
23301
+ return /** @type{!Array<!proto.game.SEOAttribute>} */ (
23302
+ jspb.Message.getRepeatedWrapperField(this, proto.game.SEOAttribute, 4));
23303
+ };
23304
+
23305
+
23306
+ /**
23307
+ * @param {!Array<!proto.game.SEOAttribute>} value
23308
+ * @return {!proto.game.SEOInstanceRequest} returns this
23309
+ */
23310
+ proto.game.SEOInstanceRequest.prototype.setAttributesList = function(value) {
23311
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
23312
+ };
23313
+
23314
+
23315
+ /**
23316
+ * @param {!proto.game.SEOAttribute=} opt_value
23317
+ * @param {number=} opt_index
23318
+ * @return {!proto.game.SEOAttribute}
23319
+ */
23320
+ proto.game.SEOInstanceRequest.prototype.addAttributes = function(opt_value, opt_index) {
23321
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.game.SEOAttribute, opt_index);
23322
+ };
23323
+
23324
+
23325
+ /**
23326
+ * Clears the list making it empty but non-null.
23327
+ * @return {!proto.game.SEOInstanceRequest} returns this
23328
+ */
23329
+ proto.game.SEOInstanceRequest.prototype.clearAttributesList = function() {
23330
+ return this.setAttributesList([]);
23331
+ };
23332
+
23333
+
23334
+ /**
23335
+ * optional bool with_main_info = 5;
23336
+ * @return {boolean}
23337
+ */
23338
+ proto.game.SEOInstanceRequest.prototype.getWithMainInfo = function() {
23339
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
23340
+ };
23341
+
23342
+
23343
+ /**
23344
+ * @param {boolean} value
23345
+ * @return {!proto.game.SEOInstanceRequest} returns this
23346
+ */
23347
+ proto.game.SEOInstanceRequest.prototype.setWithMainInfo = function(value) {
23348
+ return jspb.Message.setField(this, 5, value);
23349
+ };
23350
+
23351
+
23352
+ /**
23353
+ * Clears the field making it undefined.
23354
+ * @return {!proto.game.SEOInstanceRequest} returns this
23355
+ */
23356
+ proto.game.SEOInstanceRequest.prototype.clearWithMainInfo = function() {
23357
+ return jspb.Message.setField(this, 5, undefined);
23358
+ };
23359
+
23360
+
23361
+ /**
23362
+ * Returns whether this field is set.
23363
+ * @return {boolean}
23364
+ */
23365
+ proto.game.SEOInstanceRequest.prototype.hasWithMainInfo = function() {
23366
+ return jspb.Message.getField(this, 5) != null;
23367
+ };
23368
+
23369
+
23370
+
23371
+ /**
23372
+ * List of repeated fields within this message type.
23373
+ * @private {!Array<number>}
23374
+ * @const
23375
+ */
23376
+ proto.game.SEOInstanceResponse.repeatedFields_ = [1];
23377
+
23378
+
23379
+
23380
+ if (jspb.Message.GENERATE_TO_OBJECT) {
23381
+ /**
23382
+ * Creates an object representation of this proto.
23383
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
23384
+ * Optional fields that are not set will be set to undefined.
23385
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
23386
+ * For the list of reserved names please see:
23387
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
23388
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
23389
+ * JSPB instance for transitional soy proto support:
23390
+ * http://goto/soy-param-migration
23391
+ * @return {!Object}
23392
+ */
23393
+ proto.game.SEOInstanceResponse.prototype.toObject = function(opt_includeInstance) {
23394
+ return proto.game.SEOInstanceResponse.toObject(opt_includeInstance, this);
23395
+ };
23396
+
23397
+
23398
+ /**
23399
+ * Static version of the {@see toObject} method.
23400
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
23401
+ * the JSPB instance for transitional soy proto support:
23402
+ * http://goto/soy-param-migration
23403
+ * @param {!proto.game.SEOInstanceResponse} msg The msg instance to transform.
23404
+ * @return {!Object}
23405
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23406
+ */
23407
+ proto.game.SEOInstanceResponse.toObject = function(includeInstance, msg) {
23408
+ var f, obj = {
23409
+ attributesList: jspb.Message.toObjectList(msg.getAttributesList(),
23410
+ proto.game.SEOAttribute.toObject, includeInstance)
23411
+ };
23412
+
23413
+ if (includeInstance) {
23414
+ obj.$jspbMessageInstance = msg;
23415
+ }
23416
+ return obj;
23417
+ };
23418
+ }
23419
+
23420
+
23421
+ /**
23422
+ * Deserializes binary data (in protobuf wire format).
23423
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
23424
+ * @return {!proto.game.SEOInstanceResponse}
23425
+ */
23426
+ proto.game.SEOInstanceResponse.deserializeBinary = function(bytes) {
23427
+ var reader = new jspb.BinaryReader(bytes);
23428
+ var msg = new proto.game.SEOInstanceResponse;
23429
+ return proto.game.SEOInstanceResponse.deserializeBinaryFromReader(msg, reader);
23430
+ };
23431
+
23432
+
23433
+ /**
23434
+ * Deserializes binary data (in protobuf wire format) from the
23435
+ * given reader into the given message object.
23436
+ * @param {!proto.game.SEOInstanceResponse} msg The message object to deserialize into.
23437
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
23438
+ * @return {!proto.game.SEOInstanceResponse}
23439
+ */
23440
+ proto.game.SEOInstanceResponse.deserializeBinaryFromReader = function(msg, reader) {
23441
+ while (reader.nextField()) {
23442
+ if (reader.isEndGroup()) {
23443
+ break;
23444
+ }
23445
+ var field = reader.getFieldNumber();
23446
+ switch (field) {
23447
+ case 1:
23448
+ var value = new proto.game.SEOAttribute;
23449
+ reader.readMessage(value,proto.game.SEOAttribute.deserializeBinaryFromReader);
23450
+ msg.addAttributes(value);
23451
+ break;
23452
+ default:
23453
+ reader.skipField();
23454
+ break;
23455
+ }
23456
+ }
23457
+ return msg;
23458
+ };
23459
+
23460
+
23461
+ /**
23462
+ * Serializes the message to binary data (in protobuf wire format).
23463
+ * @return {!Uint8Array}
23464
+ */
23465
+ proto.game.SEOInstanceResponse.prototype.serializeBinary = function() {
23466
+ var writer = new jspb.BinaryWriter();
23467
+ proto.game.SEOInstanceResponse.serializeBinaryToWriter(this, writer);
23468
+ return writer.getResultBuffer();
23469
+ };
23470
+
23471
+
23472
+ /**
23473
+ * Serializes the given message to binary data (in protobuf wire
23474
+ * format), writing to the given BinaryWriter.
23475
+ * @param {!proto.game.SEOInstanceResponse} message
23476
+ * @param {!jspb.BinaryWriter} writer
23477
+ * @suppress {unusedLocalVariables} f is only used for nested messages
23478
+ */
23479
+ proto.game.SEOInstanceResponse.serializeBinaryToWriter = function(message, writer) {
23480
+ var f = undefined;
23481
+ f = message.getAttributesList();
23482
+ if (f.length > 0) {
23483
+ writer.writeRepeatedMessage(
23484
+ 1,
23485
+ f,
23486
+ proto.game.SEOAttribute.serializeBinaryToWriter
23487
+ );
23488
+ }
23489
+ };
23490
+
23491
+
23492
+ /**
23493
+ * repeated SEOAttribute attributes = 1;
23494
+ * @return {!Array<!proto.game.SEOAttribute>}
23495
+ */
23496
+ proto.game.SEOInstanceResponse.prototype.getAttributesList = function() {
23497
+ return /** @type{!Array<!proto.game.SEOAttribute>} */ (
23498
+ jspb.Message.getRepeatedWrapperField(this, proto.game.SEOAttribute, 1));
23499
+ };
23500
+
23501
+
23502
+ /**
23503
+ * @param {!Array<!proto.game.SEOAttribute>} value
23504
+ * @return {!proto.game.SEOInstanceResponse} returns this
23505
+ */
23506
+ proto.game.SEOInstanceResponse.prototype.setAttributesList = function(value) {
23507
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
23508
+ };
23509
+
23510
+
23511
+ /**
23512
+ * @param {!proto.game.SEOAttribute=} opt_value
23513
+ * @param {number=} opt_index
23514
+ * @return {!proto.game.SEOAttribute}
23515
+ */
23516
+ proto.game.SEOInstanceResponse.prototype.addAttributes = function(opt_value, opt_index) {
23517
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.game.SEOAttribute, opt_index);
23518
+ };
23519
+
23520
+
23521
+ /**
23522
+ * Clears the list making it empty but non-null.
23523
+ * @return {!proto.game.SEOInstanceResponse} returns this
23524
+ */
23525
+ proto.game.SEOInstanceResponse.prototype.clearAttributesList = function() {
23526
+ return this.setAttributesList([]);
23527
+ };
23528
+
23529
+
22846
23530
  goog.object.extend(exports, proto.game);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.262",
3
+ "version": "1.0.264",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {