protobuf-platform 1.2.307 → 1.2.309

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/cms/cms_pb.js CHANGED
@@ -128,6 +128,7 @@ goog.exportSymbol('proto.cms.GetProfileMenuWidgetRequest', null, global);
128
128
  goog.exportSymbol('proto.cms.GetPromoRequest', null, global);
129
129
  goog.exportSymbol('proto.cms.GetPromoTranslationRequest', null, global);
130
130
  goog.exportSymbol('proto.cms.GetSignUpFormWidgetRequest', null, global);
131
+ goog.exportSymbol('proto.cms.GetTokenWidgetRequest', null, global);
131
132
  goog.exportSymbol('proto.cms.HeaderWidgetItem', null, global);
132
133
  goog.exportSymbol('proto.cms.ItemsBunchRequest', null, global);
133
134
  goog.exportSymbol('proto.cms.LocaleContentItem', null, global);
@@ -164,6 +165,13 @@ goog.exportSymbol('proto.cms.PromoTranslationResponse', null, global);
164
165
  goog.exportSymbol('proto.cms.PromosItemsResponse', null, global);
165
166
  goog.exportSymbol('proto.cms.SetPageSeoAttributesRequest', null, global);
166
167
  goog.exportSymbol('proto.cms.SignUpFormWidgetItem', null, global);
168
+ goog.exportSymbol('proto.cms.TokenWidgetItem', null, global);
169
+ goog.exportSymbol('proto.cms.TokenWidgetItemRequest', null, global);
170
+ goog.exportSymbol('proto.cms.TokenWidgetRequest', null, global);
171
+ goog.exportSymbol('proto.cms.TokenWidgetRequest.RequestCase', null, global);
172
+ goog.exportSymbol('proto.cms.TokenWidgetResponse', null, global);
173
+ goog.exportSymbol('proto.cms.TokenWidgetStatusResponse', null, global);
174
+ goog.exportSymbol('proto.cms.TokenWidgetsItemsResponse', null, global);
167
175
  goog.exportSymbol('proto.cms.TranslationItem', null, global);
168
176
  goog.exportSymbol('proto.cms.UserBannerGameImages', null, global);
169
177
  goog.exportSymbol('proto.cms.UserBannerGameItem', null, global);
@@ -1891,6 +1899,153 @@ if (goog.DEBUG && !COMPILED) {
1891
1899
  */
1892
1900
  proto.cms.GameWidgetsItemsResponse.displayName = 'proto.cms.GameWidgetsItemsResponse';
1893
1901
  }
1902
+ /**
1903
+ * Generated by JsPbCodeGenerator.
1904
+ * @param {Array=} opt_data Optional initial data array, typically from a
1905
+ * server response, or constructed directly in Javascript. The array is used
1906
+ * in place and becomes part of the constructed object. It is not cloned.
1907
+ * If no data is provided, the constructed object will be empty, but still
1908
+ * valid.
1909
+ * @extends {jspb.Message}
1910
+ * @constructor
1911
+ */
1912
+ proto.cms.TokenWidgetRequest = function(opt_data) {
1913
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.cms.TokenWidgetRequest.oneofGroups_);
1914
+ };
1915
+ goog.inherits(proto.cms.TokenWidgetRequest, jspb.Message);
1916
+ if (goog.DEBUG && !COMPILED) {
1917
+ /**
1918
+ * @public
1919
+ * @override
1920
+ */
1921
+ proto.cms.TokenWidgetRequest.displayName = 'proto.cms.TokenWidgetRequest';
1922
+ }
1923
+ /**
1924
+ * Generated by JsPbCodeGenerator.
1925
+ * @param {Array=} opt_data Optional initial data array, typically from a
1926
+ * server response, or constructed directly in Javascript. The array is used
1927
+ * in place and becomes part of the constructed object. It is not cloned.
1928
+ * If no data is provided, the constructed object will be empty, but still
1929
+ * valid.
1930
+ * @extends {jspb.Message}
1931
+ * @constructor
1932
+ */
1933
+ proto.cms.TokenWidgetItemRequest = function(opt_data) {
1934
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1935
+ };
1936
+ goog.inherits(proto.cms.TokenWidgetItemRequest, jspb.Message);
1937
+ if (goog.DEBUG && !COMPILED) {
1938
+ /**
1939
+ * @public
1940
+ * @override
1941
+ */
1942
+ proto.cms.TokenWidgetItemRequest.displayName = 'proto.cms.TokenWidgetItemRequest';
1943
+ }
1944
+ /**
1945
+ * Generated by JsPbCodeGenerator.
1946
+ * @param {Array=} opt_data Optional initial data array, typically from a
1947
+ * server response, or constructed directly in Javascript. The array is used
1948
+ * in place and becomes part of the constructed object. It is not cloned.
1949
+ * If no data is provided, the constructed object will be empty, but still
1950
+ * valid.
1951
+ * @extends {jspb.Message}
1952
+ * @constructor
1953
+ */
1954
+ proto.cms.TokenWidgetItem = function(opt_data) {
1955
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1956
+ };
1957
+ goog.inherits(proto.cms.TokenWidgetItem, jspb.Message);
1958
+ if (goog.DEBUG && !COMPILED) {
1959
+ /**
1960
+ * @public
1961
+ * @override
1962
+ */
1963
+ proto.cms.TokenWidgetItem.displayName = 'proto.cms.TokenWidgetItem';
1964
+ }
1965
+ /**
1966
+ * Generated by JsPbCodeGenerator.
1967
+ * @param {Array=} opt_data Optional initial data array, typically from a
1968
+ * server response, or constructed directly in Javascript. The array is used
1969
+ * in place and becomes part of the constructed object. It is not cloned.
1970
+ * If no data is provided, the constructed object will be empty, but still
1971
+ * valid.
1972
+ * @extends {jspb.Message}
1973
+ * @constructor
1974
+ */
1975
+ proto.cms.TokenWidgetResponse = function(opt_data) {
1976
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1977
+ };
1978
+ goog.inherits(proto.cms.TokenWidgetResponse, jspb.Message);
1979
+ if (goog.DEBUG && !COMPILED) {
1980
+ /**
1981
+ * @public
1982
+ * @override
1983
+ */
1984
+ proto.cms.TokenWidgetResponse.displayName = 'proto.cms.TokenWidgetResponse';
1985
+ }
1986
+ /**
1987
+ * Generated by JsPbCodeGenerator.
1988
+ * @param {Array=} opt_data Optional initial data array, typically from a
1989
+ * server response, or constructed directly in Javascript. The array is used
1990
+ * in place and becomes part of the constructed object. It is not cloned.
1991
+ * If no data is provided, the constructed object will be empty, but still
1992
+ * valid.
1993
+ * @extends {jspb.Message}
1994
+ * @constructor
1995
+ */
1996
+ proto.cms.GetTokenWidgetRequest = function(opt_data) {
1997
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1998
+ };
1999
+ goog.inherits(proto.cms.GetTokenWidgetRequest, jspb.Message);
2000
+ if (goog.DEBUG && !COMPILED) {
2001
+ /**
2002
+ * @public
2003
+ * @override
2004
+ */
2005
+ proto.cms.GetTokenWidgetRequest.displayName = 'proto.cms.GetTokenWidgetRequest';
2006
+ }
2007
+ /**
2008
+ * Generated by JsPbCodeGenerator.
2009
+ * @param {Array=} opt_data Optional initial data array, typically from a
2010
+ * server response, or constructed directly in Javascript. The array is used
2011
+ * in place and becomes part of the constructed object. It is not cloned.
2012
+ * If no data is provided, the constructed object will be empty, but still
2013
+ * valid.
2014
+ * @extends {jspb.Message}
2015
+ * @constructor
2016
+ */
2017
+ proto.cms.TokenWidgetStatusResponse = function(opt_data) {
2018
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2019
+ };
2020
+ goog.inherits(proto.cms.TokenWidgetStatusResponse, jspb.Message);
2021
+ if (goog.DEBUG && !COMPILED) {
2022
+ /**
2023
+ * @public
2024
+ * @override
2025
+ */
2026
+ proto.cms.TokenWidgetStatusResponse.displayName = 'proto.cms.TokenWidgetStatusResponse';
2027
+ }
2028
+ /**
2029
+ * Generated by JsPbCodeGenerator.
2030
+ * @param {Array=} opt_data Optional initial data array, typically from a
2031
+ * server response, or constructed directly in Javascript. The array is used
2032
+ * in place and becomes part of the constructed object. It is not cloned.
2033
+ * If no data is provided, the constructed object will be empty, but still
2034
+ * valid.
2035
+ * @extends {jspb.Message}
2036
+ * @constructor
2037
+ */
2038
+ proto.cms.TokenWidgetsItemsResponse = function(opt_data) {
2039
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.TokenWidgetsItemsResponse.repeatedFields_, null);
2040
+ };
2041
+ goog.inherits(proto.cms.TokenWidgetsItemsResponse, jspb.Message);
2042
+ if (goog.DEBUG && !COMPILED) {
2043
+ /**
2044
+ * @public
2045
+ * @override
2046
+ */
2047
+ proto.cms.TokenWidgetsItemsResponse.displayName = 'proto.cms.TokenWidgetsItemsResponse';
2048
+ }
1894
2049
  /**
1895
2050
  * Generated by JsPbCodeGenerator.
1896
2051
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -24822,6 +24977,1629 @@ proto.cms.GameWidgetsItemsResponse.prototype.hasTotalItems = function() {
24822
24977
 
24823
24978
 
24824
24979
 
24980
+ /**
24981
+ * Oneof group definitions for this message. Each group defines the field
24982
+ * numbers belonging to that group. When of these fields' value is set, all
24983
+ * other fields in the group are cleared. During deserialization, if multiple
24984
+ * fields are encountered for a group, only the last value seen will be kept.
24985
+ * @private {!Array<!Array<number>>}
24986
+ * @const
24987
+ */
24988
+ proto.cms.TokenWidgetRequest.oneofGroups_ = [[1,2]];
24989
+
24990
+ /**
24991
+ * @enum {number}
24992
+ */
24993
+ proto.cms.TokenWidgetRequest.RequestCase = {
24994
+ REQUEST_NOT_SET: 0,
24995
+ TOKEN_WIDGET_DATA: 1,
24996
+ IMAGE_SMALL: 2
24997
+ };
24998
+
24999
+ /**
25000
+ * @return {proto.cms.TokenWidgetRequest.RequestCase}
25001
+ */
25002
+ proto.cms.TokenWidgetRequest.prototype.getRequestCase = function() {
25003
+ return /** @type {proto.cms.TokenWidgetRequest.RequestCase} */(jspb.Message.computeOneofCase(this, proto.cms.TokenWidgetRequest.oneofGroups_[0]));
25004
+ };
25005
+
25006
+
25007
+
25008
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25009
+ /**
25010
+ * Creates an object representation of this proto.
25011
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25012
+ * Optional fields that are not set will be set to undefined.
25013
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25014
+ * For the list of reserved names please see:
25015
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25016
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25017
+ * JSPB instance for transitional soy proto support:
25018
+ * http://goto/soy-param-migration
25019
+ * @return {!Object}
25020
+ */
25021
+ proto.cms.TokenWidgetRequest.prototype.toObject = function(opt_includeInstance) {
25022
+ return proto.cms.TokenWidgetRequest.toObject(opt_includeInstance, this);
25023
+ };
25024
+
25025
+
25026
+ /**
25027
+ * Static version of the {@see toObject} method.
25028
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25029
+ * the JSPB instance for transitional soy proto support:
25030
+ * http://goto/soy-param-migration
25031
+ * @param {!proto.cms.TokenWidgetRequest} msg The msg instance to transform.
25032
+ * @return {!Object}
25033
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25034
+ */
25035
+ proto.cms.TokenWidgetRequest.toObject = function(includeInstance, msg) {
25036
+ var f, obj = {
25037
+ tokenWidgetData: (f = msg.getTokenWidgetData()) && proto.cms.TokenWidgetItemRequest.toObject(includeInstance, f),
25038
+ imageSmall: (f = msg.getImageSmall()) && proto.cms.File.toObject(includeInstance, f)
25039
+ };
25040
+
25041
+ if (includeInstance) {
25042
+ obj.$jspbMessageInstance = msg;
25043
+ }
25044
+ return obj;
25045
+ };
25046
+ }
25047
+
25048
+
25049
+ /**
25050
+ * Deserializes binary data (in protobuf wire format).
25051
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25052
+ * @return {!proto.cms.TokenWidgetRequest}
25053
+ */
25054
+ proto.cms.TokenWidgetRequest.deserializeBinary = function(bytes) {
25055
+ var reader = new jspb.BinaryReader(bytes);
25056
+ var msg = new proto.cms.TokenWidgetRequest;
25057
+ return proto.cms.TokenWidgetRequest.deserializeBinaryFromReader(msg, reader);
25058
+ };
25059
+
25060
+
25061
+ /**
25062
+ * Deserializes binary data (in protobuf wire format) from the
25063
+ * given reader into the given message object.
25064
+ * @param {!proto.cms.TokenWidgetRequest} msg The message object to deserialize into.
25065
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25066
+ * @return {!proto.cms.TokenWidgetRequest}
25067
+ */
25068
+ proto.cms.TokenWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
25069
+ while (reader.nextField()) {
25070
+ if (reader.isEndGroup()) {
25071
+ break;
25072
+ }
25073
+ var field = reader.getFieldNumber();
25074
+ switch (field) {
25075
+ case 1:
25076
+ var value = new proto.cms.TokenWidgetItemRequest;
25077
+ reader.readMessage(value,proto.cms.TokenWidgetItemRequest.deserializeBinaryFromReader);
25078
+ msg.setTokenWidgetData(value);
25079
+ break;
25080
+ case 2:
25081
+ var value = new proto.cms.File;
25082
+ reader.readMessage(value,proto.cms.File.deserializeBinaryFromReader);
25083
+ msg.setImageSmall(value);
25084
+ break;
25085
+ default:
25086
+ reader.skipField();
25087
+ break;
25088
+ }
25089
+ }
25090
+ return msg;
25091
+ };
25092
+
25093
+
25094
+ /**
25095
+ * Serializes the message to binary data (in protobuf wire format).
25096
+ * @return {!Uint8Array}
25097
+ */
25098
+ proto.cms.TokenWidgetRequest.prototype.serializeBinary = function() {
25099
+ var writer = new jspb.BinaryWriter();
25100
+ proto.cms.TokenWidgetRequest.serializeBinaryToWriter(this, writer);
25101
+ return writer.getResultBuffer();
25102
+ };
25103
+
25104
+
25105
+ /**
25106
+ * Serializes the given message to binary data (in protobuf wire
25107
+ * format), writing to the given BinaryWriter.
25108
+ * @param {!proto.cms.TokenWidgetRequest} message
25109
+ * @param {!jspb.BinaryWriter} writer
25110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25111
+ */
25112
+ proto.cms.TokenWidgetRequest.serializeBinaryToWriter = function(message, writer) {
25113
+ var f = undefined;
25114
+ f = message.getTokenWidgetData();
25115
+ if (f != null) {
25116
+ writer.writeMessage(
25117
+ 1,
25118
+ f,
25119
+ proto.cms.TokenWidgetItemRequest.serializeBinaryToWriter
25120
+ );
25121
+ }
25122
+ f = message.getImageSmall();
25123
+ if (f != null) {
25124
+ writer.writeMessage(
25125
+ 2,
25126
+ f,
25127
+ proto.cms.File.serializeBinaryToWriter
25128
+ );
25129
+ }
25130
+ };
25131
+
25132
+
25133
+ /**
25134
+ * optional TokenWidgetItemRequest token_widget_data = 1;
25135
+ * @return {?proto.cms.TokenWidgetItemRequest}
25136
+ */
25137
+ proto.cms.TokenWidgetRequest.prototype.getTokenWidgetData = function() {
25138
+ return /** @type{?proto.cms.TokenWidgetItemRequest} */ (
25139
+ jspb.Message.getWrapperField(this, proto.cms.TokenWidgetItemRequest, 1));
25140
+ };
25141
+
25142
+
25143
+ /**
25144
+ * @param {?proto.cms.TokenWidgetItemRequest|undefined} value
25145
+ * @return {!proto.cms.TokenWidgetRequest} returns this
25146
+ */
25147
+ proto.cms.TokenWidgetRequest.prototype.setTokenWidgetData = function(value) {
25148
+ return jspb.Message.setOneofWrapperField(this, 1, proto.cms.TokenWidgetRequest.oneofGroups_[0], value);
25149
+ };
25150
+
25151
+
25152
+ /**
25153
+ * Clears the message field making it undefined.
25154
+ * @return {!proto.cms.TokenWidgetRequest} returns this
25155
+ */
25156
+ proto.cms.TokenWidgetRequest.prototype.clearTokenWidgetData = function() {
25157
+ return this.setTokenWidgetData(undefined);
25158
+ };
25159
+
25160
+
25161
+ /**
25162
+ * Returns whether this field is set.
25163
+ * @return {boolean}
25164
+ */
25165
+ proto.cms.TokenWidgetRequest.prototype.hasTokenWidgetData = function() {
25166
+ return jspb.Message.getField(this, 1) != null;
25167
+ };
25168
+
25169
+
25170
+ /**
25171
+ * optional File image_small = 2;
25172
+ * @return {?proto.cms.File}
25173
+ */
25174
+ proto.cms.TokenWidgetRequest.prototype.getImageSmall = function() {
25175
+ return /** @type{?proto.cms.File} */ (
25176
+ jspb.Message.getWrapperField(this, proto.cms.File, 2));
25177
+ };
25178
+
25179
+
25180
+ /**
25181
+ * @param {?proto.cms.File|undefined} value
25182
+ * @return {!proto.cms.TokenWidgetRequest} returns this
25183
+ */
25184
+ proto.cms.TokenWidgetRequest.prototype.setImageSmall = function(value) {
25185
+ return jspb.Message.setOneofWrapperField(this, 2, proto.cms.TokenWidgetRequest.oneofGroups_[0], value);
25186
+ };
25187
+
25188
+
25189
+ /**
25190
+ * Clears the message field making it undefined.
25191
+ * @return {!proto.cms.TokenWidgetRequest} returns this
25192
+ */
25193
+ proto.cms.TokenWidgetRequest.prototype.clearImageSmall = function() {
25194
+ return this.setImageSmall(undefined);
25195
+ };
25196
+
25197
+
25198
+ /**
25199
+ * Returns whether this field is set.
25200
+ * @return {boolean}
25201
+ */
25202
+ proto.cms.TokenWidgetRequest.prototype.hasImageSmall = function() {
25203
+ return jspb.Message.getField(this, 2) != null;
25204
+ };
25205
+
25206
+
25207
+
25208
+
25209
+
25210
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25211
+ /**
25212
+ * Creates an object representation of this proto.
25213
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25214
+ * Optional fields that are not set will be set to undefined.
25215
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25216
+ * For the list of reserved names please see:
25217
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25218
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25219
+ * JSPB instance for transitional soy proto support:
25220
+ * http://goto/soy-param-migration
25221
+ * @return {!Object}
25222
+ */
25223
+ proto.cms.TokenWidgetItemRequest.prototype.toObject = function(opt_includeInstance) {
25224
+ return proto.cms.TokenWidgetItemRequest.toObject(opt_includeInstance, this);
25225
+ };
25226
+
25227
+
25228
+ /**
25229
+ * Static version of the {@see toObject} method.
25230
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25231
+ * the JSPB instance for transitional soy proto support:
25232
+ * http://goto/soy-param-migration
25233
+ * @param {!proto.cms.TokenWidgetItemRequest} msg The msg instance to transform.
25234
+ * @return {!Object}
25235
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25236
+ */
25237
+ proto.cms.TokenWidgetItemRequest.toObject = function(includeInstance, msg) {
25238
+ var f, obj = {
25239
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
25240
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
25241
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
25242
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0)
25243
+ };
25244
+
25245
+ if (includeInstance) {
25246
+ obj.$jspbMessageInstance = msg;
25247
+ }
25248
+ return obj;
25249
+ };
25250
+ }
25251
+
25252
+
25253
+ /**
25254
+ * Deserializes binary data (in protobuf wire format).
25255
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25256
+ * @return {!proto.cms.TokenWidgetItemRequest}
25257
+ */
25258
+ proto.cms.TokenWidgetItemRequest.deserializeBinary = function(bytes) {
25259
+ var reader = new jspb.BinaryReader(bytes);
25260
+ var msg = new proto.cms.TokenWidgetItemRequest;
25261
+ return proto.cms.TokenWidgetItemRequest.deserializeBinaryFromReader(msg, reader);
25262
+ };
25263
+
25264
+
25265
+ /**
25266
+ * Deserializes binary data (in protobuf wire format) from the
25267
+ * given reader into the given message object.
25268
+ * @param {!proto.cms.TokenWidgetItemRequest} msg The message object to deserialize into.
25269
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25270
+ * @return {!proto.cms.TokenWidgetItemRequest}
25271
+ */
25272
+ proto.cms.TokenWidgetItemRequest.deserializeBinaryFromReader = function(msg, reader) {
25273
+ while (reader.nextField()) {
25274
+ if (reader.isEndGroup()) {
25275
+ break;
25276
+ }
25277
+ var field = reader.getFieldNumber();
25278
+ switch (field) {
25279
+ case 1:
25280
+ var value = /** @type {number} */ (reader.readInt32());
25281
+ msg.setId(value);
25282
+ break;
25283
+ case 2:
25284
+ var value = /** @type {string} */ (reader.readString());
25285
+ msg.setTitle(value);
25286
+ break;
25287
+ case 3:
25288
+ var value = /** @type {string} */ (reader.readString());
25289
+ msg.setType(value);
25290
+ break;
25291
+ case 4:
25292
+ var value = /** @type {number} */ (reader.readInt32());
25293
+ msg.setIsActive(value);
25294
+ break;
25295
+ default:
25296
+ reader.skipField();
25297
+ break;
25298
+ }
25299
+ }
25300
+ return msg;
25301
+ };
25302
+
25303
+
25304
+ /**
25305
+ * Serializes the message to binary data (in protobuf wire format).
25306
+ * @return {!Uint8Array}
25307
+ */
25308
+ proto.cms.TokenWidgetItemRequest.prototype.serializeBinary = function() {
25309
+ var writer = new jspb.BinaryWriter();
25310
+ proto.cms.TokenWidgetItemRequest.serializeBinaryToWriter(this, writer);
25311
+ return writer.getResultBuffer();
25312
+ };
25313
+
25314
+
25315
+ /**
25316
+ * Serializes the given message to binary data (in protobuf wire
25317
+ * format), writing to the given BinaryWriter.
25318
+ * @param {!proto.cms.TokenWidgetItemRequest} message
25319
+ * @param {!jspb.BinaryWriter} writer
25320
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25321
+ */
25322
+ proto.cms.TokenWidgetItemRequest.serializeBinaryToWriter = function(message, writer) {
25323
+ var f = undefined;
25324
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
25325
+ if (f != null) {
25326
+ writer.writeInt32(
25327
+ 1,
25328
+ f
25329
+ );
25330
+ }
25331
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
25332
+ if (f != null) {
25333
+ writer.writeString(
25334
+ 2,
25335
+ f
25336
+ );
25337
+ }
25338
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
25339
+ if (f != null) {
25340
+ writer.writeString(
25341
+ 3,
25342
+ f
25343
+ );
25344
+ }
25345
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
25346
+ if (f != null) {
25347
+ writer.writeInt32(
25348
+ 4,
25349
+ f
25350
+ );
25351
+ }
25352
+ };
25353
+
25354
+
25355
+ /**
25356
+ * optional int32 id = 1;
25357
+ * @return {number}
25358
+ */
25359
+ proto.cms.TokenWidgetItemRequest.prototype.getId = function() {
25360
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25361
+ };
25362
+
25363
+
25364
+ /**
25365
+ * @param {number} value
25366
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25367
+ */
25368
+ proto.cms.TokenWidgetItemRequest.prototype.setId = function(value) {
25369
+ return jspb.Message.setField(this, 1, value);
25370
+ };
25371
+
25372
+
25373
+ /**
25374
+ * Clears the field making it undefined.
25375
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25376
+ */
25377
+ proto.cms.TokenWidgetItemRequest.prototype.clearId = function() {
25378
+ return jspb.Message.setField(this, 1, undefined);
25379
+ };
25380
+
25381
+
25382
+ /**
25383
+ * Returns whether this field is set.
25384
+ * @return {boolean}
25385
+ */
25386
+ proto.cms.TokenWidgetItemRequest.prototype.hasId = function() {
25387
+ return jspb.Message.getField(this, 1) != null;
25388
+ };
25389
+
25390
+
25391
+ /**
25392
+ * optional string title = 2;
25393
+ * @return {string}
25394
+ */
25395
+ proto.cms.TokenWidgetItemRequest.prototype.getTitle = function() {
25396
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25397
+ };
25398
+
25399
+
25400
+ /**
25401
+ * @param {string} value
25402
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25403
+ */
25404
+ proto.cms.TokenWidgetItemRequest.prototype.setTitle = function(value) {
25405
+ return jspb.Message.setField(this, 2, value);
25406
+ };
25407
+
25408
+
25409
+ /**
25410
+ * Clears the field making it undefined.
25411
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25412
+ */
25413
+ proto.cms.TokenWidgetItemRequest.prototype.clearTitle = function() {
25414
+ return jspb.Message.setField(this, 2, undefined);
25415
+ };
25416
+
25417
+
25418
+ /**
25419
+ * Returns whether this field is set.
25420
+ * @return {boolean}
25421
+ */
25422
+ proto.cms.TokenWidgetItemRequest.prototype.hasTitle = function() {
25423
+ return jspb.Message.getField(this, 2) != null;
25424
+ };
25425
+
25426
+
25427
+ /**
25428
+ * optional string type = 3;
25429
+ * @return {string}
25430
+ */
25431
+ proto.cms.TokenWidgetItemRequest.prototype.getType = function() {
25432
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
25433
+ };
25434
+
25435
+
25436
+ /**
25437
+ * @param {string} value
25438
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25439
+ */
25440
+ proto.cms.TokenWidgetItemRequest.prototype.setType = function(value) {
25441
+ return jspb.Message.setField(this, 3, value);
25442
+ };
25443
+
25444
+
25445
+ /**
25446
+ * Clears the field making it undefined.
25447
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25448
+ */
25449
+ proto.cms.TokenWidgetItemRequest.prototype.clearType = function() {
25450
+ return jspb.Message.setField(this, 3, undefined);
25451
+ };
25452
+
25453
+
25454
+ /**
25455
+ * Returns whether this field is set.
25456
+ * @return {boolean}
25457
+ */
25458
+ proto.cms.TokenWidgetItemRequest.prototype.hasType = function() {
25459
+ return jspb.Message.getField(this, 3) != null;
25460
+ };
25461
+
25462
+
25463
+ /**
25464
+ * optional int32 is_active = 4;
25465
+ * @return {number}
25466
+ */
25467
+ proto.cms.TokenWidgetItemRequest.prototype.getIsActive = function() {
25468
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
25469
+ };
25470
+
25471
+
25472
+ /**
25473
+ * @param {number} value
25474
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25475
+ */
25476
+ proto.cms.TokenWidgetItemRequest.prototype.setIsActive = function(value) {
25477
+ return jspb.Message.setField(this, 4, value);
25478
+ };
25479
+
25480
+
25481
+ /**
25482
+ * Clears the field making it undefined.
25483
+ * @return {!proto.cms.TokenWidgetItemRequest} returns this
25484
+ */
25485
+ proto.cms.TokenWidgetItemRequest.prototype.clearIsActive = function() {
25486
+ return jspb.Message.setField(this, 4, undefined);
25487
+ };
25488
+
25489
+
25490
+ /**
25491
+ * Returns whether this field is set.
25492
+ * @return {boolean}
25493
+ */
25494
+ proto.cms.TokenWidgetItemRequest.prototype.hasIsActive = function() {
25495
+ return jspb.Message.getField(this, 4) != null;
25496
+ };
25497
+
25498
+
25499
+
25500
+
25501
+
25502
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25503
+ /**
25504
+ * Creates an object representation of this proto.
25505
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25506
+ * Optional fields that are not set will be set to undefined.
25507
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25508
+ * For the list of reserved names please see:
25509
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25510
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25511
+ * JSPB instance for transitional soy proto support:
25512
+ * http://goto/soy-param-migration
25513
+ * @return {!Object}
25514
+ */
25515
+ proto.cms.TokenWidgetItem.prototype.toObject = function(opt_includeInstance) {
25516
+ return proto.cms.TokenWidgetItem.toObject(opt_includeInstance, this);
25517
+ };
25518
+
25519
+
25520
+ /**
25521
+ * Static version of the {@see toObject} method.
25522
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25523
+ * the JSPB instance for transitional soy proto support:
25524
+ * http://goto/soy-param-migration
25525
+ * @param {!proto.cms.TokenWidgetItem} msg The msg instance to transform.
25526
+ * @return {!Object}
25527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25528
+ */
25529
+ proto.cms.TokenWidgetItem.toObject = function(includeInstance, msg) {
25530
+ var f, obj = {
25531
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
25532
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
25533
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
25534
+ isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
25535
+ image: jspb.Message.getFieldWithDefault(msg, 5, ""),
25536
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 6, "")
25537
+ };
25538
+
25539
+ if (includeInstance) {
25540
+ obj.$jspbMessageInstance = msg;
25541
+ }
25542
+ return obj;
25543
+ };
25544
+ }
25545
+
25546
+
25547
+ /**
25548
+ * Deserializes binary data (in protobuf wire format).
25549
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25550
+ * @return {!proto.cms.TokenWidgetItem}
25551
+ */
25552
+ proto.cms.TokenWidgetItem.deserializeBinary = function(bytes) {
25553
+ var reader = new jspb.BinaryReader(bytes);
25554
+ var msg = new proto.cms.TokenWidgetItem;
25555
+ return proto.cms.TokenWidgetItem.deserializeBinaryFromReader(msg, reader);
25556
+ };
25557
+
25558
+
25559
+ /**
25560
+ * Deserializes binary data (in protobuf wire format) from the
25561
+ * given reader into the given message object.
25562
+ * @param {!proto.cms.TokenWidgetItem} msg The message object to deserialize into.
25563
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25564
+ * @return {!proto.cms.TokenWidgetItem}
25565
+ */
25566
+ proto.cms.TokenWidgetItem.deserializeBinaryFromReader = function(msg, reader) {
25567
+ while (reader.nextField()) {
25568
+ if (reader.isEndGroup()) {
25569
+ break;
25570
+ }
25571
+ var field = reader.getFieldNumber();
25572
+ switch (field) {
25573
+ case 1:
25574
+ var value = /** @type {number} */ (reader.readInt32());
25575
+ msg.setId(value);
25576
+ break;
25577
+ case 2:
25578
+ var value = /** @type {string} */ (reader.readString());
25579
+ msg.setTitle(value);
25580
+ break;
25581
+ case 3:
25582
+ var value = /** @type {string} */ (reader.readString());
25583
+ msg.setType(value);
25584
+ break;
25585
+ case 4:
25586
+ var value = /** @type {number} */ (reader.readInt32());
25587
+ msg.setIsActive(value);
25588
+ break;
25589
+ case 5:
25590
+ var value = /** @type {string} */ (reader.readString());
25591
+ msg.setImage(value);
25592
+ break;
25593
+ case 6:
25594
+ var value = /** @type {string} */ (reader.readString());
25595
+ msg.setImageCdn(value);
25596
+ break;
25597
+ default:
25598
+ reader.skipField();
25599
+ break;
25600
+ }
25601
+ }
25602
+ return msg;
25603
+ };
25604
+
25605
+
25606
+ /**
25607
+ * Serializes the message to binary data (in protobuf wire format).
25608
+ * @return {!Uint8Array}
25609
+ */
25610
+ proto.cms.TokenWidgetItem.prototype.serializeBinary = function() {
25611
+ var writer = new jspb.BinaryWriter();
25612
+ proto.cms.TokenWidgetItem.serializeBinaryToWriter(this, writer);
25613
+ return writer.getResultBuffer();
25614
+ };
25615
+
25616
+
25617
+ /**
25618
+ * Serializes the given message to binary data (in protobuf wire
25619
+ * format), writing to the given BinaryWriter.
25620
+ * @param {!proto.cms.TokenWidgetItem} message
25621
+ * @param {!jspb.BinaryWriter} writer
25622
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25623
+ */
25624
+ proto.cms.TokenWidgetItem.serializeBinaryToWriter = function(message, writer) {
25625
+ var f = undefined;
25626
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
25627
+ if (f != null) {
25628
+ writer.writeInt32(
25629
+ 1,
25630
+ f
25631
+ );
25632
+ }
25633
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
25634
+ if (f != null) {
25635
+ writer.writeString(
25636
+ 2,
25637
+ f
25638
+ );
25639
+ }
25640
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
25641
+ if (f != null) {
25642
+ writer.writeString(
25643
+ 3,
25644
+ f
25645
+ );
25646
+ }
25647
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
25648
+ if (f != null) {
25649
+ writer.writeInt32(
25650
+ 4,
25651
+ f
25652
+ );
25653
+ }
25654
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
25655
+ if (f != null) {
25656
+ writer.writeString(
25657
+ 5,
25658
+ f
25659
+ );
25660
+ }
25661
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
25662
+ if (f != null) {
25663
+ writer.writeString(
25664
+ 6,
25665
+ f
25666
+ );
25667
+ }
25668
+ };
25669
+
25670
+
25671
+ /**
25672
+ * optional int32 id = 1;
25673
+ * @return {number}
25674
+ */
25675
+ proto.cms.TokenWidgetItem.prototype.getId = function() {
25676
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
25677
+ };
25678
+
25679
+
25680
+ /**
25681
+ * @param {number} value
25682
+ * @return {!proto.cms.TokenWidgetItem} returns this
25683
+ */
25684
+ proto.cms.TokenWidgetItem.prototype.setId = function(value) {
25685
+ return jspb.Message.setField(this, 1, value);
25686
+ };
25687
+
25688
+
25689
+ /**
25690
+ * Clears the field making it undefined.
25691
+ * @return {!proto.cms.TokenWidgetItem} returns this
25692
+ */
25693
+ proto.cms.TokenWidgetItem.prototype.clearId = function() {
25694
+ return jspb.Message.setField(this, 1, undefined);
25695
+ };
25696
+
25697
+
25698
+ /**
25699
+ * Returns whether this field is set.
25700
+ * @return {boolean}
25701
+ */
25702
+ proto.cms.TokenWidgetItem.prototype.hasId = function() {
25703
+ return jspb.Message.getField(this, 1) != null;
25704
+ };
25705
+
25706
+
25707
+ /**
25708
+ * optional string title = 2;
25709
+ * @return {string}
25710
+ */
25711
+ proto.cms.TokenWidgetItem.prototype.getTitle = function() {
25712
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25713
+ };
25714
+
25715
+
25716
+ /**
25717
+ * @param {string} value
25718
+ * @return {!proto.cms.TokenWidgetItem} returns this
25719
+ */
25720
+ proto.cms.TokenWidgetItem.prototype.setTitle = function(value) {
25721
+ return jspb.Message.setField(this, 2, value);
25722
+ };
25723
+
25724
+
25725
+ /**
25726
+ * Clears the field making it undefined.
25727
+ * @return {!proto.cms.TokenWidgetItem} returns this
25728
+ */
25729
+ proto.cms.TokenWidgetItem.prototype.clearTitle = function() {
25730
+ return jspb.Message.setField(this, 2, undefined);
25731
+ };
25732
+
25733
+
25734
+ /**
25735
+ * Returns whether this field is set.
25736
+ * @return {boolean}
25737
+ */
25738
+ proto.cms.TokenWidgetItem.prototype.hasTitle = function() {
25739
+ return jspb.Message.getField(this, 2) != null;
25740
+ };
25741
+
25742
+
25743
+ /**
25744
+ * optional string type = 3;
25745
+ * @return {string}
25746
+ */
25747
+ proto.cms.TokenWidgetItem.prototype.getType = function() {
25748
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
25749
+ };
25750
+
25751
+
25752
+ /**
25753
+ * @param {string} value
25754
+ * @return {!proto.cms.TokenWidgetItem} returns this
25755
+ */
25756
+ proto.cms.TokenWidgetItem.prototype.setType = function(value) {
25757
+ return jspb.Message.setField(this, 3, value);
25758
+ };
25759
+
25760
+
25761
+ /**
25762
+ * Clears the field making it undefined.
25763
+ * @return {!proto.cms.TokenWidgetItem} returns this
25764
+ */
25765
+ proto.cms.TokenWidgetItem.prototype.clearType = function() {
25766
+ return jspb.Message.setField(this, 3, undefined);
25767
+ };
25768
+
25769
+
25770
+ /**
25771
+ * Returns whether this field is set.
25772
+ * @return {boolean}
25773
+ */
25774
+ proto.cms.TokenWidgetItem.prototype.hasType = function() {
25775
+ return jspb.Message.getField(this, 3) != null;
25776
+ };
25777
+
25778
+
25779
+ /**
25780
+ * optional int32 is_active = 4;
25781
+ * @return {number}
25782
+ */
25783
+ proto.cms.TokenWidgetItem.prototype.getIsActive = function() {
25784
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
25785
+ };
25786
+
25787
+
25788
+ /**
25789
+ * @param {number} value
25790
+ * @return {!proto.cms.TokenWidgetItem} returns this
25791
+ */
25792
+ proto.cms.TokenWidgetItem.prototype.setIsActive = function(value) {
25793
+ return jspb.Message.setField(this, 4, value);
25794
+ };
25795
+
25796
+
25797
+ /**
25798
+ * Clears the field making it undefined.
25799
+ * @return {!proto.cms.TokenWidgetItem} returns this
25800
+ */
25801
+ proto.cms.TokenWidgetItem.prototype.clearIsActive = function() {
25802
+ return jspb.Message.setField(this, 4, undefined);
25803
+ };
25804
+
25805
+
25806
+ /**
25807
+ * Returns whether this field is set.
25808
+ * @return {boolean}
25809
+ */
25810
+ proto.cms.TokenWidgetItem.prototype.hasIsActive = function() {
25811
+ return jspb.Message.getField(this, 4) != null;
25812
+ };
25813
+
25814
+
25815
+ /**
25816
+ * optional string image = 5;
25817
+ * @return {string}
25818
+ */
25819
+ proto.cms.TokenWidgetItem.prototype.getImage = function() {
25820
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
25821
+ };
25822
+
25823
+
25824
+ /**
25825
+ * @param {string} value
25826
+ * @return {!proto.cms.TokenWidgetItem} returns this
25827
+ */
25828
+ proto.cms.TokenWidgetItem.prototype.setImage = function(value) {
25829
+ return jspb.Message.setField(this, 5, value);
25830
+ };
25831
+
25832
+
25833
+ /**
25834
+ * Clears the field making it undefined.
25835
+ * @return {!proto.cms.TokenWidgetItem} returns this
25836
+ */
25837
+ proto.cms.TokenWidgetItem.prototype.clearImage = function() {
25838
+ return jspb.Message.setField(this, 5, undefined);
25839
+ };
25840
+
25841
+
25842
+ /**
25843
+ * Returns whether this field is set.
25844
+ * @return {boolean}
25845
+ */
25846
+ proto.cms.TokenWidgetItem.prototype.hasImage = function() {
25847
+ return jspb.Message.getField(this, 5) != null;
25848
+ };
25849
+
25850
+
25851
+ /**
25852
+ * optional string image_cdn = 6;
25853
+ * @return {string}
25854
+ */
25855
+ proto.cms.TokenWidgetItem.prototype.getImageCdn = function() {
25856
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
25857
+ };
25858
+
25859
+
25860
+ /**
25861
+ * @param {string} value
25862
+ * @return {!proto.cms.TokenWidgetItem} returns this
25863
+ */
25864
+ proto.cms.TokenWidgetItem.prototype.setImageCdn = function(value) {
25865
+ return jspb.Message.setField(this, 6, value);
25866
+ };
25867
+
25868
+
25869
+ /**
25870
+ * Clears the field making it undefined.
25871
+ * @return {!proto.cms.TokenWidgetItem} returns this
25872
+ */
25873
+ proto.cms.TokenWidgetItem.prototype.clearImageCdn = function() {
25874
+ return jspb.Message.setField(this, 6, undefined);
25875
+ };
25876
+
25877
+
25878
+ /**
25879
+ * Returns whether this field is set.
25880
+ * @return {boolean}
25881
+ */
25882
+ proto.cms.TokenWidgetItem.prototype.hasImageCdn = function() {
25883
+ return jspb.Message.getField(this, 6) != null;
25884
+ };
25885
+
25886
+
25887
+
25888
+
25889
+
25890
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25891
+ /**
25892
+ * Creates an object representation of this proto.
25893
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25894
+ * Optional fields that are not set will be set to undefined.
25895
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25896
+ * For the list of reserved names please see:
25897
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25898
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25899
+ * JSPB instance for transitional soy proto support:
25900
+ * http://goto/soy-param-migration
25901
+ * @return {!Object}
25902
+ */
25903
+ proto.cms.TokenWidgetResponse.prototype.toObject = function(opt_includeInstance) {
25904
+ return proto.cms.TokenWidgetResponse.toObject(opt_includeInstance, this);
25905
+ };
25906
+
25907
+
25908
+ /**
25909
+ * Static version of the {@see toObject} method.
25910
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25911
+ * the JSPB instance for transitional soy proto support:
25912
+ * http://goto/soy-param-migration
25913
+ * @param {!proto.cms.TokenWidgetResponse} msg The msg instance to transform.
25914
+ * @return {!Object}
25915
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25916
+ */
25917
+ proto.cms.TokenWidgetResponse.toObject = function(includeInstance, msg) {
25918
+ var f, obj = {
25919
+ data: (f = msg.getData()) && proto.cms.TokenWidgetItem.toObject(includeInstance, f)
25920
+ };
25921
+
25922
+ if (includeInstance) {
25923
+ obj.$jspbMessageInstance = msg;
25924
+ }
25925
+ return obj;
25926
+ };
25927
+ }
25928
+
25929
+
25930
+ /**
25931
+ * Deserializes binary data (in protobuf wire format).
25932
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25933
+ * @return {!proto.cms.TokenWidgetResponse}
25934
+ */
25935
+ proto.cms.TokenWidgetResponse.deserializeBinary = function(bytes) {
25936
+ var reader = new jspb.BinaryReader(bytes);
25937
+ var msg = new proto.cms.TokenWidgetResponse;
25938
+ return proto.cms.TokenWidgetResponse.deserializeBinaryFromReader(msg, reader);
25939
+ };
25940
+
25941
+
25942
+ /**
25943
+ * Deserializes binary data (in protobuf wire format) from the
25944
+ * given reader into the given message object.
25945
+ * @param {!proto.cms.TokenWidgetResponse} msg The message object to deserialize into.
25946
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25947
+ * @return {!proto.cms.TokenWidgetResponse}
25948
+ */
25949
+ proto.cms.TokenWidgetResponse.deserializeBinaryFromReader = function(msg, reader) {
25950
+ while (reader.nextField()) {
25951
+ if (reader.isEndGroup()) {
25952
+ break;
25953
+ }
25954
+ var field = reader.getFieldNumber();
25955
+ switch (field) {
25956
+ case 1:
25957
+ var value = new proto.cms.TokenWidgetItem;
25958
+ reader.readMessage(value,proto.cms.TokenWidgetItem.deserializeBinaryFromReader);
25959
+ msg.setData(value);
25960
+ break;
25961
+ default:
25962
+ reader.skipField();
25963
+ break;
25964
+ }
25965
+ }
25966
+ return msg;
25967
+ };
25968
+
25969
+
25970
+ /**
25971
+ * Serializes the message to binary data (in protobuf wire format).
25972
+ * @return {!Uint8Array}
25973
+ */
25974
+ proto.cms.TokenWidgetResponse.prototype.serializeBinary = function() {
25975
+ var writer = new jspb.BinaryWriter();
25976
+ proto.cms.TokenWidgetResponse.serializeBinaryToWriter(this, writer);
25977
+ return writer.getResultBuffer();
25978
+ };
25979
+
25980
+
25981
+ /**
25982
+ * Serializes the given message to binary data (in protobuf wire
25983
+ * format), writing to the given BinaryWriter.
25984
+ * @param {!proto.cms.TokenWidgetResponse} message
25985
+ * @param {!jspb.BinaryWriter} writer
25986
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25987
+ */
25988
+ proto.cms.TokenWidgetResponse.serializeBinaryToWriter = function(message, writer) {
25989
+ var f = undefined;
25990
+ f = message.getData();
25991
+ if (f != null) {
25992
+ writer.writeMessage(
25993
+ 1,
25994
+ f,
25995
+ proto.cms.TokenWidgetItem.serializeBinaryToWriter
25996
+ );
25997
+ }
25998
+ };
25999
+
26000
+
26001
+ /**
26002
+ * optional TokenWidgetItem data = 1;
26003
+ * @return {?proto.cms.TokenWidgetItem}
26004
+ */
26005
+ proto.cms.TokenWidgetResponse.prototype.getData = function() {
26006
+ return /** @type{?proto.cms.TokenWidgetItem} */ (
26007
+ jspb.Message.getWrapperField(this, proto.cms.TokenWidgetItem, 1));
26008
+ };
26009
+
26010
+
26011
+ /**
26012
+ * @param {?proto.cms.TokenWidgetItem|undefined} value
26013
+ * @return {!proto.cms.TokenWidgetResponse} returns this
26014
+ */
26015
+ proto.cms.TokenWidgetResponse.prototype.setData = function(value) {
26016
+ return jspb.Message.setWrapperField(this, 1, value);
26017
+ };
26018
+
26019
+
26020
+ /**
26021
+ * Clears the message field making it undefined.
26022
+ * @return {!proto.cms.TokenWidgetResponse} returns this
26023
+ */
26024
+ proto.cms.TokenWidgetResponse.prototype.clearData = function() {
26025
+ return this.setData(undefined);
26026
+ };
26027
+
26028
+
26029
+ /**
26030
+ * Returns whether this field is set.
26031
+ * @return {boolean}
26032
+ */
26033
+ proto.cms.TokenWidgetResponse.prototype.hasData = function() {
26034
+ return jspb.Message.getField(this, 1) != null;
26035
+ };
26036
+
26037
+
26038
+
26039
+
26040
+
26041
+ if (jspb.Message.GENERATE_TO_OBJECT) {
26042
+ /**
26043
+ * Creates an object representation of this proto.
26044
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
26045
+ * Optional fields that are not set will be set to undefined.
26046
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
26047
+ * For the list of reserved names please see:
26048
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
26049
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
26050
+ * JSPB instance for transitional soy proto support:
26051
+ * http://goto/soy-param-migration
26052
+ * @return {!Object}
26053
+ */
26054
+ proto.cms.GetTokenWidgetRequest.prototype.toObject = function(opt_includeInstance) {
26055
+ return proto.cms.GetTokenWidgetRequest.toObject(opt_includeInstance, this);
26056
+ };
26057
+
26058
+
26059
+ /**
26060
+ * Static version of the {@see toObject} method.
26061
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
26062
+ * the JSPB instance for transitional soy proto support:
26063
+ * http://goto/soy-param-migration
26064
+ * @param {!proto.cms.GetTokenWidgetRequest} msg The msg instance to transform.
26065
+ * @return {!Object}
26066
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26067
+ */
26068
+ proto.cms.GetTokenWidgetRequest.toObject = function(includeInstance, msg) {
26069
+ var f, obj = {
26070
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
26071
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
26072
+ };
26073
+
26074
+ if (includeInstance) {
26075
+ obj.$jspbMessageInstance = msg;
26076
+ }
26077
+ return obj;
26078
+ };
26079
+ }
26080
+
26081
+
26082
+ /**
26083
+ * Deserializes binary data (in protobuf wire format).
26084
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
26085
+ * @return {!proto.cms.GetTokenWidgetRequest}
26086
+ */
26087
+ proto.cms.GetTokenWidgetRequest.deserializeBinary = function(bytes) {
26088
+ var reader = new jspb.BinaryReader(bytes);
26089
+ var msg = new proto.cms.GetTokenWidgetRequest;
26090
+ return proto.cms.GetTokenWidgetRequest.deserializeBinaryFromReader(msg, reader);
26091
+ };
26092
+
26093
+
26094
+ /**
26095
+ * Deserializes binary data (in protobuf wire format) from the
26096
+ * given reader into the given message object.
26097
+ * @param {!proto.cms.GetTokenWidgetRequest} msg The message object to deserialize into.
26098
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
26099
+ * @return {!proto.cms.GetTokenWidgetRequest}
26100
+ */
26101
+ proto.cms.GetTokenWidgetRequest.deserializeBinaryFromReader = function(msg, reader) {
26102
+ while (reader.nextField()) {
26103
+ if (reader.isEndGroup()) {
26104
+ break;
26105
+ }
26106
+ var field = reader.getFieldNumber();
26107
+ switch (field) {
26108
+ case 1:
26109
+ var value = /** @type {number} */ (reader.readInt32());
26110
+ msg.setId(value);
26111
+ break;
26112
+ case 2:
26113
+ var value = /** @type {boolean} */ (reader.readBool());
26114
+ msg.setAdminSide(value);
26115
+ break;
26116
+ default:
26117
+ reader.skipField();
26118
+ break;
26119
+ }
26120
+ }
26121
+ return msg;
26122
+ };
26123
+
26124
+
26125
+ /**
26126
+ * Serializes the message to binary data (in protobuf wire format).
26127
+ * @return {!Uint8Array}
26128
+ */
26129
+ proto.cms.GetTokenWidgetRequest.prototype.serializeBinary = function() {
26130
+ var writer = new jspb.BinaryWriter();
26131
+ proto.cms.GetTokenWidgetRequest.serializeBinaryToWriter(this, writer);
26132
+ return writer.getResultBuffer();
26133
+ };
26134
+
26135
+
26136
+ /**
26137
+ * Serializes the given message to binary data (in protobuf wire
26138
+ * format), writing to the given BinaryWriter.
26139
+ * @param {!proto.cms.GetTokenWidgetRequest} message
26140
+ * @param {!jspb.BinaryWriter} writer
26141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26142
+ */
26143
+ proto.cms.GetTokenWidgetRequest.serializeBinaryToWriter = function(message, writer) {
26144
+ var f = undefined;
26145
+ f = message.getId();
26146
+ if (f !== 0) {
26147
+ writer.writeInt32(
26148
+ 1,
26149
+ f
26150
+ );
26151
+ }
26152
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
26153
+ if (f != null) {
26154
+ writer.writeBool(
26155
+ 2,
26156
+ f
26157
+ );
26158
+ }
26159
+ };
26160
+
26161
+
26162
+ /**
26163
+ * optional int32 id = 1;
26164
+ * @return {number}
26165
+ */
26166
+ proto.cms.GetTokenWidgetRequest.prototype.getId = function() {
26167
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
26168
+ };
26169
+
26170
+
26171
+ /**
26172
+ * @param {number} value
26173
+ * @return {!proto.cms.GetTokenWidgetRequest} returns this
26174
+ */
26175
+ proto.cms.GetTokenWidgetRequest.prototype.setId = function(value) {
26176
+ return jspb.Message.setProto3IntField(this, 1, value);
26177
+ };
26178
+
26179
+
26180
+ /**
26181
+ * optional bool admin_side = 2;
26182
+ * @return {boolean}
26183
+ */
26184
+ proto.cms.GetTokenWidgetRequest.prototype.getAdminSide = function() {
26185
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
26186
+ };
26187
+
26188
+
26189
+ /**
26190
+ * @param {boolean} value
26191
+ * @return {!proto.cms.GetTokenWidgetRequest} returns this
26192
+ */
26193
+ proto.cms.GetTokenWidgetRequest.prototype.setAdminSide = function(value) {
26194
+ return jspb.Message.setField(this, 2, value);
26195
+ };
26196
+
26197
+
26198
+ /**
26199
+ * Clears the field making it undefined.
26200
+ * @return {!proto.cms.GetTokenWidgetRequest} returns this
26201
+ */
26202
+ proto.cms.GetTokenWidgetRequest.prototype.clearAdminSide = function() {
26203
+ return jspb.Message.setField(this, 2, undefined);
26204
+ };
26205
+
26206
+
26207
+ /**
26208
+ * Returns whether this field is set.
26209
+ * @return {boolean}
26210
+ */
26211
+ proto.cms.GetTokenWidgetRequest.prototype.hasAdminSide = function() {
26212
+ return jspb.Message.getField(this, 2) != null;
26213
+ };
26214
+
26215
+
26216
+
26217
+
26218
+
26219
+ if (jspb.Message.GENERATE_TO_OBJECT) {
26220
+ /**
26221
+ * Creates an object representation of this proto.
26222
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
26223
+ * Optional fields that are not set will be set to undefined.
26224
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
26225
+ * For the list of reserved names please see:
26226
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
26227
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
26228
+ * JSPB instance for transitional soy proto support:
26229
+ * http://goto/soy-param-migration
26230
+ * @return {!Object}
26231
+ */
26232
+ proto.cms.TokenWidgetStatusResponse.prototype.toObject = function(opt_includeInstance) {
26233
+ return proto.cms.TokenWidgetStatusResponse.toObject(opt_includeInstance, this);
26234
+ };
26235
+
26236
+
26237
+ /**
26238
+ * Static version of the {@see toObject} method.
26239
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
26240
+ * the JSPB instance for transitional soy proto support:
26241
+ * http://goto/soy-param-migration
26242
+ * @param {!proto.cms.TokenWidgetStatusResponse} msg The msg instance to transform.
26243
+ * @return {!Object}
26244
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26245
+ */
26246
+ proto.cms.TokenWidgetStatusResponse.toObject = function(includeInstance, msg) {
26247
+ var f, obj = {
26248
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
26249
+ };
26250
+
26251
+ if (includeInstance) {
26252
+ obj.$jspbMessageInstance = msg;
26253
+ }
26254
+ return obj;
26255
+ };
26256
+ }
26257
+
26258
+
26259
+ /**
26260
+ * Deserializes binary data (in protobuf wire format).
26261
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
26262
+ * @return {!proto.cms.TokenWidgetStatusResponse}
26263
+ */
26264
+ proto.cms.TokenWidgetStatusResponse.deserializeBinary = function(bytes) {
26265
+ var reader = new jspb.BinaryReader(bytes);
26266
+ var msg = new proto.cms.TokenWidgetStatusResponse;
26267
+ return proto.cms.TokenWidgetStatusResponse.deserializeBinaryFromReader(msg, reader);
26268
+ };
26269
+
26270
+
26271
+ /**
26272
+ * Deserializes binary data (in protobuf wire format) from the
26273
+ * given reader into the given message object.
26274
+ * @param {!proto.cms.TokenWidgetStatusResponse} msg The message object to deserialize into.
26275
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
26276
+ * @return {!proto.cms.TokenWidgetStatusResponse}
26277
+ */
26278
+ proto.cms.TokenWidgetStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
26279
+ while (reader.nextField()) {
26280
+ if (reader.isEndGroup()) {
26281
+ break;
26282
+ }
26283
+ var field = reader.getFieldNumber();
26284
+ switch (field) {
26285
+ case 1:
26286
+ var value = /** @type {string} */ (reader.readString());
26287
+ msg.setStatus(value);
26288
+ break;
26289
+ default:
26290
+ reader.skipField();
26291
+ break;
26292
+ }
26293
+ }
26294
+ return msg;
26295
+ };
26296
+
26297
+
26298
+ /**
26299
+ * Serializes the message to binary data (in protobuf wire format).
26300
+ * @return {!Uint8Array}
26301
+ */
26302
+ proto.cms.TokenWidgetStatusResponse.prototype.serializeBinary = function() {
26303
+ var writer = new jspb.BinaryWriter();
26304
+ proto.cms.TokenWidgetStatusResponse.serializeBinaryToWriter(this, writer);
26305
+ return writer.getResultBuffer();
26306
+ };
26307
+
26308
+
26309
+ /**
26310
+ * Serializes the given message to binary data (in protobuf wire
26311
+ * format), writing to the given BinaryWriter.
26312
+ * @param {!proto.cms.TokenWidgetStatusResponse} message
26313
+ * @param {!jspb.BinaryWriter} writer
26314
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26315
+ */
26316
+ proto.cms.TokenWidgetStatusResponse.serializeBinaryToWriter = function(message, writer) {
26317
+ var f = undefined;
26318
+ f = message.getStatus();
26319
+ if (f.length > 0) {
26320
+ writer.writeString(
26321
+ 1,
26322
+ f
26323
+ );
26324
+ }
26325
+ };
26326
+
26327
+
26328
+ /**
26329
+ * optional string status = 1;
26330
+ * @return {string}
26331
+ */
26332
+ proto.cms.TokenWidgetStatusResponse.prototype.getStatus = function() {
26333
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
26334
+ };
26335
+
26336
+
26337
+ /**
26338
+ * @param {string} value
26339
+ * @return {!proto.cms.TokenWidgetStatusResponse} returns this
26340
+ */
26341
+ proto.cms.TokenWidgetStatusResponse.prototype.setStatus = function(value) {
26342
+ return jspb.Message.setProto3StringField(this, 1, value);
26343
+ };
26344
+
26345
+
26346
+
26347
+ /**
26348
+ * List of repeated fields within this message type.
26349
+ * @private {!Array<number>}
26350
+ * @const
26351
+ */
26352
+ proto.cms.TokenWidgetsItemsResponse.repeatedFields_ = [1];
26353
+
26354
+
26355
+
26356
+ if (jspb.Message.GENERATE_TO_OBJECT) {
26357
+ /**
26358
+ * Creates an object representation of this proto.
26359
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
26360
+ * Optional fields that are not set will be set to undefined.
26361
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
26362
+ * For the list of reserved names please see:
26363
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
26364
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
26365
+ * JSPB instance for transitional soy proto support:
26366
+ * http://goto/soy-param-migration
26367
+ * @return {!Object}
26368
+ */
26369
+ proto.cms.TokenWidgetsItemsResponse.prototype.toObject = function(opt_includeInstance) {
26370
+ return proto.cms.TokenWidgetsItemsResponse.toObject(opt_includeInstance, this);
26371
+ };
26372
+
26373
+
26374
+ /**
26375
+ * Static version of the {@see toObject} method.
26376
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
26377
+ * the JSPB instance for transitional soy proto support:
26378
+ * http://goto/soy-param-migration
26379
+ * @param {!proto.cms.TokenWidgetsItemsResponse} msg The msg instance to transform.
26380
+ * @return {!Object}
26381
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26382
+ */
26383
+ proto.cms.TokenWidgetsItemsResponse.toObject = function(includeInstance, msg) {
26384
+ var f, obj = {
26385
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
26386
+ proto.cms.TokenWidgetItem.toObject, includeInstance),
26387
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
26388
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
26389
+ };
26390
+
26391
+ if (includeInstance) {
26392
+ obj.$jspbMessageInstance = msg;
26393
+ }
26394
+ return obj;
26395
+ };
26396
+ }
26397
+
26398
+
26399
+ /**
26400
+ * Deserializes binary data (in protobuf wire format).
26401
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
26402
+ * @return {!proto.cms.TokenWidgetsItemsResponse}
26403
+ */
26404
+ proto.cms.TokenWidgetsItemsResponse.deserializeBinary = function(bytes) {
26405
+ var reader = new jspb.BinaryReader(bytes);
26406
+ var msg = new proto.cms.TokenWidgetsItemsResponse;
26407
+ return proto.cms.TokenWidgetsItemsResponse.deserializeBinaryFromReader(msg, reader);
26408
+ };
26409
+
26410
+
26411
+ /**
26412
+ * Deserializes binary data (in protobuf wire format) from the
26413
+ * given reader into the given message object.
26414
+ * @param {!proto.cms.TokenWidgetsItemsResponse} msg The message object to deserialize into.
26415
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
26416
+ * @return {!proto.cms.TokenWidgetsItemsResponse}
26417
+ */
26418
+ proto.cms.TokenWidgetsItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
26419
+ while (reader.nextField()) {
26420
+ if (reader.isEndGroup()) {
26421
+ break;
26422
+ }
26423
+ var field = reader.getFieldNumber();
26424
+ switch (field) {
26425
+ case 1:
26426
+ var value = new proto.cms.TokenWidgetItem;
26427
+ reader.readMessage(value,proto.cms.TokenWidgetItem.deserializeBinaryFromReader);
26428
+ msg.addItems(value);
26429
+ break;
26430
+ case 2:
26431
+ var value = /** @type {number} */ (reader.readInt32());
26432
+ msg.setTotalPages(value);
26433
+ break;
26434
+ case 3:
26435
+ var value = /** @type {number} */ (reader.readInt32());
26436
+ msg.setTotalItems(value);
26437
+ break;
26438
+ default:
26439
+ reader.skipField();
26440
+ break;
26441
+ }
26442
+ }
26443
+ return msg;
26444
+ };
26445
+
26446
+
26447
+ /**
26448
+ * Serializes the message to binary data (in protobuf wire format).
26449
+ * @return {!Uint8Array}
26450
+ */
26451
+ proto.cms.TokenWidgetsItemsResponse.prototype.serializeBinary = function() {
26452
+ var writer = new jspb.BinaryWriter();
26453
+ proto.cms.TokenWidgetsItemsResponse.serializeBinaryToWriter(this, writer);
26454
+ return writer.getResultBuffer();
26455
+ };
26456
+
26457
+
26458
+ /**
26459
+ * Serializes the given message to binary data (in protobuf wire
26460
+ * format), writing to the given BinaryWriter.
26461
+ * @param {!proto.cms.TokenWidgetsItemsResponse} message
26462
+ * @param {!jspb.BinaryWriter} writer
26463
+ * @suppress {unusedLocalVariables} f is only used for nested messages
26464
+ */
26465
+ proto.cms.TokenWidgetsItemsResponse.serializeBinaryToWriter = function(message, writer) {
26466
+ var f = undefined;
26467
+ f = message.getItemsList();
26468
+ if (f.length > 0) {
26469
+ writer.writeRepeatedMessage(
26470
+ 1,
26471
+ f,
26472
+ proto.cms.TokenWidgetItem.serializeBinaryToWriter
26473
+ );
26474
+ }
26475
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
26476
+ if (f != null) {
26477
+ writer.writeInt32(
26478
+ 2,
26479
+ f
26480
+ );
26481
+ }
26482
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
26483
+ if (f != null) {
26484
+ writer.writeInt32(
26485
+ 3,
26486
+ f
26487
+ );
26488
+ }
26489
+ };
26490
+
26491
+
26492
+ /**
26493
+ * repeated TokenWidgetItem items = 1;
26494
+ * @return {!Array<!proto.cms.TokenWidgetItem>}
26495
+ */
26496
+ proto.cms.TokenWidgetsItemsResponse.prototype.getItemsList = function() {
26497
+ return /** @type{!Array<!proto.cms.TokenWidgetItem>} */ (
26498
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.TokenWidgetItem, 1));
26499
+ };
26500
+
26501
+
26502
+ /**
26503
+ * @param {!Array<!proto.cms.TokenWidgetItem>} value
26504
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26505
+ */
26506
+ proto.cms.TokenWidgetsItemsResponse.prototype.setItemsList = function(value) {
26507
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
26508
+ };
26509
+
26510
+
26511
+ /**
26512
+ * @param {!proto.cms.TokenWidgetItem=} opt_value
26513
+ * @param {number=} opt_index
26514
+ * @return {!proto.cms.TokenWidgetItem}
26515
+ */
26516
+ proto.cms.TokenWidgetsItemsResponse.prototype.addItems = function(opt_value, opt_index) {
26517
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.cms.TokenWidgetItem, opt_index);
26518
+ };
26519
+
26520
+
26521
+ /**
26522
+ * Clears the list making it empty but non-null.
26523
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26524
+ */
26525
+ proto.cms.TokenWidgetsItemsResponse.prototype.clearItemsList = function() {
26526
+ return this.setItemsList([]);
26527
+ };
26528
+
26529
+
26530
+ /**
26531
+ * optional int32 total_pages = 2;
26532
+ * @return {number}
26533
+ */
26534
+ proto.cms.TokenWidgetsItemsResponse.prototype.getTotalPages = function() {
26535
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
26536
+ };
26537
+
26538
+
26539
+ /**
26540
+ * @param {number} value
26541
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26542
+ */
26543
+ proto.cms.TokenWidgetsItemsResponse.prototype.setTotalPages = function(value) {
26544
+ return jspb.Message.setField(this, 2, value);
26545
+ };
26546
+
26547
+
26548
+ /**
26549
+ * Clears the field making it undefined.
26550
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26551
+ */
26552
+ proto.cms.TokenWidgetsItemsResponse.prototype.clearTotalPages = function() {
26553
+ return jspb.Message.setField(this, 2, undefined);
26554
+ };
26555
+
26556
+
26557
+ /**
26558
+ * Returns whether this field is set.
26559
+ * @return {boolean}
26560
+ */
26561
+ proto.cms.TokenWidgetsItemsResponse.prototype.hasTotalPages = function() {
26562
+ return jspb.Message.getField(this, 2) != null;
26563
+ };
26564
+
26565
+
26566
+ /**
26567
+ * optional int32 total_items = 3;
26568
+ * @return {number}
26569
+ */
26570
+ proto.cms.TokenWidgetsItemsResponse.prototype.getTotalItems = function() {
26571
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
26572
+ };
26573
+
26574
+
26575
+ /**
26576
+ * @param {number} value
26577
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26578
+ */
26579
+ proto.cms.TokenWidgetsItemsResponse.prototype.setTotalItems = function(value) {
26580
+ return jspb.Message.setField(this, 3, value);
26581
+ };
26582
+
26583
+
26584
+ /**
26585
+ * Clears the field making it undefined.
26586
+ * @return {!proto.cms.TokenWidgetsItemsResponse} returns this
26587
+ */
26588
+ proto.cms.TokenWidgetsItemsResponse.prototype.clearTotalItems = function() {
26589
+ return jspb.Message.setField(this, 3, undefined);
26590
+ };
26591
+
26592
+
26593
+ /**
26594
+ * Returns whether this field is set.
26595
+ * @return {boolean}
26596
+ */
26597
+ proto.cms.TokenWidgetsItemsResponse.prototype.hasTotalItems = function() {
26598
+ return jspb.Message.getField(this, 3) != null;
26599
+ };
26600
+
26601
+
26602
+
24825
26603
 
24826
26604
 
24827
26605
  if (jspb.Message.GENERATE_TO_OBJECT) {