@aceplus/smartace-api 3.7.0-alpha.10 → 3.7.0-alpha.12

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.
@@ -23,11 +23,18 @@ var global =
23
23
 
24
24
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
25
25
  goog.object.extend(proto, google_api_annotations_pb);
26
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
27
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
26
28
  var auth_cluster_pb = require('./auth.cluster_pb.js');
27
29
  goog.object.extend(proto, auth_cluster_pb);
28
30
  var platform_client_pb = require('./platform.client_pb.js');
29
31
  goog.object.extend(proto, platform_client_pb);
32
+ var platform_pagination_pb = require('./platform.pagination_pb.js');
33
+ goog.object.extend(proto, platform_pagination_pb);
30
34
  goog.exportSymbol('proto.Auth.AppDistributionProto', null, global);
35
+ goog.exportSymbol('proto.Auth.AppDistributionProto.ActiveQr', null, global);
36
+ goog.exportSymbol('proto.Auth.AppDistributionProto.ActiveQrRequest', null, global);
37
+ goog.exportSymbol('proto.Auth.AppDistributionProto.ActiveQrResponse', null, global);
31
38
  goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrRequest', null, global);
32
39
  goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrResponse', null, global);
33
40
  goog.exportSymbol('proto.Auth.AppDistributionProto.CheckQrResponseV2', null, global);
@@ -38,6 +45,9 @@ goog.exportSymbol('proto.Auth.AppDistributionProto.GetClientsRequest', null, glo
38
45
  goog.exportSymbol('proto.Auth.AppDistributionProto.GetClientsResponse', null, global);
39
46
  goog.exportSymbol('proto.Auth.AppDistributionProto.PhonePrefixesRequest', null, global);
40
47
  goog.exportSymbol('proto.Auth.AppDistributionProto.PhonePrefixesResponse', null, global);
48
+ goog.exportSymbol('proto.Auth.AppDistributionProto.QrHistory', null, global);
49
+ goog.exportSymbol('proto.Auth.AppDistributionProto.QrHistoryRequest', null, global);
50
+ goog.exportSymbol('proto.Auth.AppDistributionProto.QrHistoryResponse', null, global);
41
51
  /**
42
52
  * Generated by JsPbCodeGenerator.
43
53
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -269,6 +279,132 @@ if (goog.DEBUG && !COMPILED) {
269
279
  */
270
280
  proto.Auth.AppDistributionProto.ConnectQrResponse.displayName = 'proto.Auth.AppDistributionProto.ConnectQrResponse';
271
281
  }
282
+ /**
283
+ * Generated by JsPbCodeGenerator.
284
+ * @param {Array=} opt_data Optional initial data array, typically from a
285
+ * server response, or constructed directly in Javascript. The array is used
286
+ * in place and becomes part of the constructed object. It is not cloned.
287
+ * If no data is provided, the constructed object will be empty, but still
288
+ * valid.
289
+ * @extends {jspb.Message}
290
+ * @constructor
291
+ */
292
+ proto.Auth.AppDistributionProto.QrHistory = function(opt_data) {
293
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
294
+ };
295
+ goog.inherits(proto.Auth.AppDistributionProto.QrHistory, jspb.Message);
296
+ if (goog.DEBUG && !COMPILED) {
297
+ /**
298
+ * @public
299
+ * @override
300
+ */
301
+ proto.Auth.AppDistributionProto.QrHistory.displayName = 'proto.Auth.AppDistributionProto.QrHistory';
302
+ }
303
+ /**
304
+ * Generated by JsPbCodeGenerator.
305
+ * @param {Array=} opt_data Optional initial data array, typically from a
306
+ * server response, or constructed directly in Javascript. The array is used
307
+ * in place and becomes part of the constructed object. It is not cloned.
308
+ * If no data is provided, the constructed object will be empty, but still
309
+ * valid.
310
+ * @extends {jspb.Message}
311
+ * @constructor
312
+ */
313
+ proto.Auth.AppDistributionProto.QrHistoryRequest = function(opt_data) {
314
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
315
+ };
316
+ goog.inherits(proto.Auth.AppDistributionProto.QrHistoryRequest, jspb.Message);
317
+ if (goog.DEBUG && !COMPILED) {
318
+ /**
319
+ * @public
320
+ * @override
321
+ */
322
+ proto.Auth.AppDistributionProto.QrHistoryRequest.displayName = 'proto.Auth.AppDistributionProto.QrHistoryRequest';
323
+ }
324
+ /**
325
+ * Generated by JsPbCodeGenerator.
326
+ * @param {Array=} opt_data Optional initial data array, typically from a
327
+ * server response, or constructed directly in Javascript. The array is used
328
+ * in place and becomes part of the constructed object. It is not cloned.
329
+ * If no data is provided, the constructed object will be empty, but still
330
+ * valid.
331
+ * @extends {jspb.Message}
332
+ * @constructor
333
+ */
334
+ proto.Auth.AppDistributionProto.QrHistoryResponse = function(opt_data) {
335
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AppDistributionProto.QrHistoryResponse.repeatedFields_, null);
336
+ };
337
+ goog.inherits(proto.Auth.AppDistributionProto.QrHistoryResponse, jspb.Message);
338
+ if (goog.DEBUG && !COMPILED) {
339
+ /**
340
+ * @public
341
+ * @override
342
+ */
343
+ proto.Auth.AppDistributionProto.QrHistoryResponse.displayName = 'proto.Auth.AppDistributionProto.QrHistoryResponse';
344
+ }
345
+ /**
346
+ * Generated by JsPbCodeGenerator.
347
+ * @param {Array=} opt_data Optional initial data array, typically from a
348
+ * server response, or constructed directly in Javascript. The array is used
349
+ * in place and becomes part of the constructed object. It is not cloned.
350
+ * If no data is provided, the constructed object will be empty, but still
351
+ * valid.
352
+ * @extends {jspb.Message}
353
+ * @constructor
354
+ */
355
+ proto.Auth.AppDistributionProto.ActiveQr = function(opt_data) {
356
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
357
+ };
358
+ goog.inherits(proto.Auth.AppDistributionProto.ActiveQr, jspb.Message);
359
+ if (goog.DEBUG && !COMPILED) {
360
+ /**
361
+ * @public
362
+ * @override
363
+ */
364
+ proto.Auth.AppDistributionProto.ActiveQr.displayName = 'proto.Auth.AppDistributionProto.ActiveQr';
365
+ }
366
+ /**
367
+ * Generated by JsPbCodeGenerator.
368
+ * @param {Array=} opt_data Optional initial data array, typically from a
369
+ * server response, or constructed directly in Javascript. The array is used
370
+ * in place and becomes part of the constructed object. It is not cloned.
371
+ * If no data is provided, the constructed object will be empty, but still
372
+ * valid.
373
+ * @extends {jspb.Message}
374
+ * @constructor
375
+ */
376
+ proto.Auth.AppDistributionProto.ActiveQrRequest = function(opt_data) {
377
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
378
+ };
379
+ goog.inherits(proto.Auth.AppDistributionProto.ActiveQrRequest, jspb.Message);
380
+ if (goog.DEBUG && !COMPILED) {
381
+ /**
382
+ * @public
383
+ * @override
384
+ */
385
+ proto.Auth.AppDistributionProto.ActiveQrRequest.displayName = 'proto.Auth.AppDistributionProto.ActiveQrRequest';
386
+ }
387
+ /**
388
+ * Generated by JsPbCodeGenerator.
389
+ * @param {Array=} opt_data Optional initial data array, typically from a
390
+ * server response, or constructed directly in Javascript. The array is used
391
+ * in place and becomes part of the constructed object. It is not cloned.
392
+ * If no data is provided, the constructed object will be empty, but still
393
+ * valid.
394
+ * @extends {jspb.Message}
395
+ * @constructor
396
+ */
397
+ proto.Auth.AppDistributionProto.ActiveQrResponse = function(opt_data) {
398
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Auth.AppDistributionProto.ActiveQrResponse.repeatedFields_, null);
399
+ };
400
+ goog.inherits(proto.Auth.AppDistributionProto.ActiveQrResponse, jspb.Message);
401
+ if (goog.DEBUG && !COMPILED) {
402
+ /**
403
+ * @public
404
+ * @override
405
+ */
406
+ proto.Auth.AppDistributionProto.ActiveQrResponse.displayName = 'proto.Auth.AppDistributionProto.ActiveQrResponse';
407
+ }
272
408
 
273
409
 
274
410
 
@@ -1851,4 +1987,1228 @@ proto.Auth.AppDistributionProto.ConnectQrResponse.prototype.setUid = function(va
1851
1987
  };
1852
1988
 
1853
1989
 
1990
+
1991
+
1992
+
1993
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1994
+ /**
1995
+ * Creates an object representation of this proto.
1996
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1997
+ * Optional fields that are not set will be set to undefined.
1998
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1999
+ * For the list of reserved names please see:
2000
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2001
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2002
+ * JSPB instance for transitional soy proto support:
2003
+ * http://goto/soy-param-migration
2004
+ * @return {!Object}
2005
+ */
2006
+ proto.Auth.AppDistributionProto.QrHistory.prototype.toObject = function(opt_includeInstance) {
2007
+ return proto.Auth.AppDistributionProto.QrHistory.toObject(opt_includeInstance, this);
2008
+ };
2009
+
2010
+
2011
+ /**
2012
+ * Static version of the {@see toObject} method.
2013
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2014
+ * the JSPB instance for transitional soy proto support:
2015
+ * http://goto/soy-param-migration
2016
+ * @param {!proto.Auth.AppDistributionProto.QrHistory} msg The msg instance to transform.
2017
+ * @return {!Object}
2018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2019
+ */
2020
+ proto.Auth.AppDistributionProto.QrHistory.toObject = function(includeInstance, msg) {
2021
+ var f, obj = {
2022
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2023
+ qrCode: jspb.Message.getFieldWithDefault(msg, 2, ""),
2024
+ fromDate: (f = msg.getFromDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
2025
+ toDate: (f = msg.getToDate()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
2026
+ };
2027
+
2028
+ if (includeInstance) {
2029
+ obj.$jspbMessageInstance = msg;
2030
+ }
2031
+ return obj;
2032
+ };
2033
+ }
2034
+
2035
+
2036
+ /**
2037
+ * Deserializes binary data (in protobuf wire format).
2038
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2039
+ * @return {!proto.Auth.AppDistributionProto.QrHistory}
2040
+ */
2041
+ proto.Auth.AppDistributionProto.QrHistory.deserializeBinary = function(bytes) {
2042
+ var reader = new jspb.BinaryReader(bytes);
2043
+ var msg = new proto.Auth.AppDistributionProto.QrHistory;
2044
+ return proto.Auth.AppDistributionProto.QrHistory.deserializeBinaryFromReader(msg, reader);
2045
+ };
2046
+
2047
+
2048
+ /**
2049
+ * Deserializes binary data (in protobuf wire format) from the
2050
+ * given reader into the given message object.
2051
+ * @param {!proto.Auth.AppDistributionProto.QrHistory} msg The message object to deserialize into.
2052
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2053
+ * @return {!proto.Auth.AppDistributionProto.QrHistory}
2054
+ */
2055
+ proto.Auth.AppDistributionProto.QrHistory.deserializeBinaryFromReader = function(msg, reader) {
2056
+ while (reader.nextField()) {
2057
+ if (reader.isEndGroup()) {
2058
+ break;
2059
+ }
2060
+ var field = reader.getFieldNumber();
2061
+ switch (field) {
2062
+ case 1:
2063
+ var value = /** @type {number} */ (reader.readInt64());
2064
+ msg.setId(value);
2065
+ break;
2066
+ case 2:
2067
+ var value = /** @type {string} */ (reader.readString());
2068
+ msg.setQrCode(value);
2069
+ break;
2070
+ case 3:
2071
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2072
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2073
+ msg.setFromDate(value);
2074
+ break;
2075
+ case 4:
2076
+ var value = new google_protobuf_timestamp_pb.Timestamp;
2077
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
2078
+ msg.setToDate(value);
2079
+ break;
2080
+ default:
2081
+ reader.skipField();
2082
+ break;
2083
+ }
2084
+ }
2085
+ return msg;
2086
+ };
2087
+
2088
+
2089
+ /**
2090
+ * Serializes the message to binary data (in protobuf wire format).
2091
+ * @return {!Uint8Array}
2092
+ */
2093
+ proto.Auth.AppDistributionProto.QrHistory.prototype.serializeBinary = function() {
2094
+ var writer = new jspb.BinaryWriter();
2095
+ proto.Auth.AppDistributionProto.QrHistory.serializeBinaryToWriter(this, writer);
2096
+ return writer.getResultBuffer();
2097
+ };
2098
+
2099
+
2100
+ /**
2101
+ * Serializes the given message to binary data (in protobuf wire
2102
+ * format), writing to the given BinaryWriter.
2103
+ * @param {!proto.Auth.AppDistributionProto.QrHistory} message
2104
+ * @param {!jspb.BinaryWriter} writer
2105
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2106
+ */
2107
+ proto.Auth.AppDistributionProto.QrHistory.serializeBinaryToWriter = function(message, writer) {
2108
+ var f = undefined;
2109
+ f = message.getId();
2110
+ if (f !== 0) {
2111
+ writer.writeInt64(
2112
+ 1,
2113
+ f
2114
+ );
2115
+ }
2116
+ f = message.getQrCode();
2117
+ if (f.length > 0) {
2118
+ writer.writeString(
2119
+ 2,
2120
+ f
2121
+ );
2122
+ }
2123
+ f = message.getFromDate();
2124
+ if (f != null) {
2125
+ writer.writeMessage(
2126
+ 3,
2127
+ f,
2128
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2129
+ );
2130
+ }
2131
+ f = message.getToDate();
2132
+ if (f != null) {
2133
+ writer.writeMessage(
2134
+ 4,
2135
+ f,
2136
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2137
+ );
2138
+ }
2139
+ };
2140
+
2141
+
2142
+ /**
2143
+ * optional int64 id = 1;
2144
+ * @return {number}
2145
+ */
2146
+ proto.Auth.AppDistributionProto.QrHistory.prototype.getId = function() {
2147
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2148
+ };
2149
+
2150
+
2151
+ /**
2152
+ * @param {number} value
2153
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2154
+ */
2155
+ proto.Auth.AppDistributionProto.QrHistory.prototype.setId = function(value) {
2156
+ return jspb.Message.setProto3IntField(this, 1, value);
2157
+ };
2158
+
2159
+
2160
+ /**
2161
+ * optional string qr_code = 2;
2162
+ * @return {string}
2163
+ */
2164
+ proto.Auth.AppDistributionProto.QrHistory.prototype.getQrCode = function() {
2165
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2166
+ };
2167
+
2168
+
2169
+ /**
2170
+ * @param {string} value
2171
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2172
+ */
2173
+ proto.Auth.AppDistributionProto.QrHistory.prototype.setQrCode = function(value) {
2174
+ return jspb.Message.setProto3StringField(this, 2, value);
2175
+ };
2176
+
2177
+
2178
+ /**
2179
+ * optional google.protobuf.Timestamp from_date = 3;
2180
+ * @return {?proto.google.protobuf.Timestamp}
2181
+ */
2182
+ proto.Auth.AppDistributionProto.QrHistory.prototype.getFromDate = function() {
2183
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2184
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
2185
+ };
2186
+
2187
+
2188
+ /**
2189
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2190
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2191
+ */
2192
+ proto.Auth.AppDistributionProto.QrHistory.prototype.setFromDate = function(value) {
2193
+ return jspb.Message.setWrapperField(this, 3, value);
2194
+ };
2195
+
2196
+
2197
+ /**
2198
+ * Clears the message field making it undefined.
2199
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2200
+ */
2201
+ proto.Auth.AppDistributionProto.QrHistory.prototype.clearFromDate = function() {
2202
+ return this.setFromDate(undefined);
2203
+ };
2204
+
2205
+
2206
+ /**
2207
+ * Returns whether this field is set.
2208
+ * @return {boolean}
2209
+ */
2210
+ proto.Auth.AppDistributionProto.QrHistory.prototype.hasFromDate = function() {
2211
+ return jspb.Message.getField(this, 3) != null;
2212
+ };
2213
+
2214
+
2215
+ /**
2216
+ * optional google.protobuf.Timestamp to_date = 4;
2217
+ * @return {?proto.google.protobuf.Timestamp}
2218
+ */
2219
+ proto.Auth.AppDistributionProto.QrHistory.prototype.getToDate = function() {
2220
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2221
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
2222
+ };
2223
+
2224
+
2225
+ /**
2226
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2227
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2228
+ */
2229
+ proto.Auth.AppDistributionProto.QrHistory.prototype.setToDate = function(value) {
2230
+ return jspb.Message.setWrapperField(this, 4, value);
2231
+ };
2232
+
2233
+
2234
+ /**
2235
+ * Clears the message field making it undefined.
2236
+ * @return {!proto.Auth.AppDistributionProto.QrHistory} returns this
2237
+ */
2238
+ proto.Auth.AppDistributionProto.QrHistory.prototype.clearToDate = function() {
2239
+ return this.setToDate(undefined);
2240
+ };
2241
+
2242
+
2243
+ /**
2244
+ * Returns whether this field is set.
2245
+ * @return {boolean}
2246
+ */
2247
+ proto.Auth.AppDistributionProto.QrHistory.prototype.hasToDate = function() {
2248
+ return jspb.Message.getField(this, 4) != null;
2249
+ };
2250
+
2251
+
2252
+
2253
+
2254
+
2255
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2256
+ /**
2257
+ * Creates an object representation of this proto.
2258
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2259
+ * Optional fields that are not set will be set to undefined.
2260
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2261
+ * For the list of reserved names please see:
2262
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2263
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2264
+ * JSPB instance for transitional soy proto support:
2265
+ * http://goto/soy-param-migration
2266
+ * @return {!Object}
2267
+ */
2268
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.toObject = function(opt_includeInstance) {
2269
+ return proto.Auth.AppDistributionProto.QrHistoryRequest.toObject(opt_includeInstance, this);
2270
+ };
2271
+
2272
+
2273
+ /**
2274
+ * Static version of the {@see toObject} method.
2275
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2276
+ * the JSPB instance for transitional soy proto support:
2277
+ * http://goto/soy-param-migration
2278
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryRequest} msg The msg instance to transform.
2279
+ * @return {!Object}
2280
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2281
+ */
2282
+ proto.Auth.AppDistributionProto.QrHistoryRequest.toObject = function(includeInstance, msg) {
2283
+ var f, obj = {
2284
+ uid: jspb.Message.getFieldWithDefault(msg, 1, ""),
2285
+ page: jspb.Message.getFieldWithDefault(msg, 2, 0),
2286
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
2287
+ };
2288
+
2289
+ if (includeInstance) {
2290
+ obj.$jspbMessageInstance = msg;
2291
+ }
2292
+ return obj;
2293
+ };
2294
+ }
2295
+
2296
+
2297
+ /**
2298
+ * Deserializes binary data (in protobuf wire format).
2299
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2300
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryRequest}
2301
+ */
2302
+ proto.Auth.AppDistributionProto.QrHistoryRequest.deserializeBinary = function(bytes) {
2303
+ var reader = new jspb.BinaryReader(bytes);
2304
+ var msg = new proto.Auth.AppDistributionProto.QrHistoryRequest;
2305
+ return proto.Auth.AppDistributionProto.QrHistoryRequest.deserializeBinaryFromReader(msg, reader);
2306
+ };
2307
+
2308
+
2309
+ /**
2310
+ * Deserializes binary data (in protobuf wire format) from the
2311
+ * given reader into the given message object.
2312
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryRequest} msg The message object to deserialize into.
2313
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2314
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryRequest}
2315
+ */
2316
+ proto.Auth.AppDistributionProto.QrHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
2317
+ while (reader.nextField()) {
2318
+ if (reader.isEndGroup()) {
2319
+ break;
2320
+ }
2321
+ var field = reader.getFieldNumber();
2322
+ switch (field) {
2323
+ case 1:
2324
+ var value = /** @type {string} */ (reader.readString());
2325
+ msg.setUid(value);
2326
+ break;
2327
+ case 2:
2328
+ var value = /** @type {number} */ (reader.readInt32());
2329
+ msg.setPage(value);
2330
+ break;
2331
+ case 3:
2332
+ var value = /** @type {number} */ (reader.readInt32());
2333
+ msg.setCount(value);
2334
+ break;
2335
+ default:
2336
+ reader.skipField();
2337
+ break;
2338
+ }
2339
+ }
2340
+ return msg;
2341
+ };
2342
+
2343
+
2344
+ /**
2345
+ * Serializes the message to binary data (in protobuf wire format).
2346
+ * @return {!Uint8Array}
2347
+ */
2348
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.serializeBinary = function() {
2349
+ var writer = new jspb.BinaryWriter();
2350
+ proto.Auth.AppDistributionProto.QrHistoryRequest.serializeBinaryToWriter(this, writer);
2351
+ return writer.getResultBuffer();
2352
+ };
2353
+
2354
+
2355
+ /**
2356
+ * Serializes the given message to binary data (in protobuf wire
2357
+ * format), writing to the given BinaryWriter.
2358
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryRequest} message
2359
+ * @param {!jspb.BinaryWriter} writer
2360
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2361
+ */
2362
+ proto.Auth.AppDistributionProto.QrHistoryRequest.serializeBinaryToWriter = function(message, writer) {
2363
+ var f = undefined;
2364
+ f = message.getUid();
2365
+ if (f.length > 0) {
2366
+ writer.writeString(
2367
+ 1,
2368
+ f
2369
+ );
2370
+ }
2371
+ f = message.getPage();
2372
+ if (f !== 0) {
2373
+ writer.writeInt32(
2374
+ 2,
2375
+ f
2376
+ );
2377
+ }
2378
+ f = message.getCount();
2379
+ if (f !== 0) {
2380
+ writer.writeInt32(
2381
+ 3,
2382
+ f
2383
+ );
2384
+ }
2385
+ };
2386
+
2387
+
2388
+ /**
2389
+ * optional string uid = 1;
2390
+ * @return {string}
2391
+ */
2392
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.getUid = function() {
2393
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2394
+ };
2395
+
2396
+
2397
+ /**
2398
+ * @param {string} value
2399
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryRequest} returns this
2400
+ */
2401
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.setUid = function(value) {
2402
+ return jspb.Message.setProto3StringField(this, 1, value);
2403
+ };
2404
+
2405
+
2406
+ /**
2407
+ * optional int32 page = 2;
2408
+ * @return {number}
2409
+ */
2410
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.getPage = function() {
2411
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
2412
+ };
2413
+
2414
+
2415
+ /**
2416
+ * @param {number} value
2417
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryRequest} returns this
2418
+ */
2419
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.setPage = function(value) {
2420
+ return jspb.Message.setProto3IntField(this, 2, value);
2421
+ };
2422
+
2423
+
2424
+ /**
2425
+ * optional int32 count = 3;
2426
+ * @return {number}
2427
+ */
2428
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.getCount = function() {
2429
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2430
+ };
2431
+
2432
+
2433
+ /**
2434
+ * @param {number} value
2435
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryRequest} returns this
2436
+ */
2437
+ proto.Auth.AppDistributionProto.QrHistoryRequest.prototype.setCount = function(value) {
2438
+ return jspb.Message.setProto3IntField(this, 3, value);
2439
+ };
2440
+
2441
+
2442
+
2443
+ /**
2444
+ * List of repeated fields within this message type.
2445
+ * @private {!Array<number>}
2446
+ * @const
2447
+ */
2448
+ proto.Auth.AppDistributionProto.QrHistoryResponse.repeatedFields_ = [2];
2449
+
2450
+
2451
+
2452
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2453
+ /**
2454
+ * Creates an object representation of this proto.
2455
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2456
+ * Optional fields that are not set will be set to undefined.
2457
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2458
+ * For the list of reserved names please see:
2459
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2460
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2461
+ * JSPB instance for transitional soy proto support:
2462
+ * http://goto/soy-param-migration
2463
+ * @return {!Object}
2464
+ */
2465
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.toObject = function(opt_includeInstance) {
2466
+ return proto.Auth.AppDistributionProto.QrHistoryResponse.toObject(opt_includeInstance, this);
2467
+ };
2468
+
2469
+
2470
+ /**
2471
+ * Static version of the {@see toObject} method.
2472
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2473
+ * the JSPB instance for transitional soy proto support:
2474
+ * http://goto/soy-param-migration
2475
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryResponse} msg The msg instance to transform.
2476
+ * @return {!Object}
2477
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2478
+ */
2479
+ proto.Auth.AppDistributionProto.QrHistoryResponse.toObject = function(includeInstance, msg) {
2480
+ var f, obj = {
2481
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f),
2482
+ historyList: jspb.Message.toObjectList(msg.getHistoryList(),
2483
+ proto.Auth.AppDistributionProto.QrHistory.toObject, includeInstance)
2484
+ };
2485
+
2486
+ if (includeInstance) {
2487
+ obj.$jspbMessageInstance = msg;
2488
+ }
2489
+ return obj;
2490
+ };
2491
+ }
2492
+
2493
+
2494
+ /**
2495
+ * Deserializes binary data (in protobuf wire format).
2496
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2497
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse}
2498
+ */
2499
+ proto.Auth.AppDistributionProto.QrHistoryResponse.deserializeBinary = function(bytes) {
2500
+ var reader = new jspb.BinaryReader(bytes);
2501
+ var msg = new proto.Auth.AppDistributionProto.QrHistoryResponse;
2502
+ return proto.Auth.AppDistributionProto.QrHistoryResponse.deserializeBinaryFromReader(msg, reader);
2503
+ };
2504
+
2505
+
2506
+ /**
2507
+ * Deserializes binary data (in protobuf wire format) from the
2508
+ * given reader into the given message object.
2509
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryResponse} msg The message object to deserialize into.
2510
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2511
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse}
2512
+ */
2513
+ proto.Auth.AppDistributionProto.QrHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
2514
+ while (reader.nextField()) {
2515
+ if (reader.isEndGroup()) {
2516
+ break;
2517
+ }
2518
+ var field = reader.getFieldNumber();
2519
+ switch (field) {
2520
+ case 1:
2521
+ var value = new platform_pagination_pb.PaginationProto;
2522
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
2523
+ msg.setPagination(value);
2524
+ break;
2525
+ case 2:
2526
+ var value = new proto.Auth.AppDistributionProto.QrHistory;
2527
+ reader.readMessage(value,proto.Auth.AppDistributionProto.QrHistory.deserializeBinaryFromReader);
2528
+ msg.addHistory(value);
2529
+ break;
2530
+ default:
2531
+ reader.skipField();
2532
+ break;
2533
+ }
2534
+ }
2535
+ return msg;
2536
+ };
2537
+
2538
+
2539
+ /**
2540
+ * Serializes the message to binary data (in protobuf wire format).
2541
+ * @return {!Uint8Array}
2542
+ */
2543
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.serializeBinary = function() {
2544
+ var writer = new jspb.BinaryWriter();
2545
+ proto.Auth.AppDistributionProto.QrHistoryResponse.serializeBinaryToWriter(this, writer);
2546
+ return writer.getResultBuffer();
2547
+ };
2548
+
2549
+
2550
+ /**
2551
+ * Serializes the given message to binary data (in protobuf wire
2552
+ * format), writing to the given BinaryWriter.
2553
+ * @param {!proto.Auth.AppDistributionProto.QrHistoryResponse} message
2554
+ * @param {!jspb.BinaryWriter} writer
2555
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2556
+ */
2557
+ proto.Auth.AppDistributionProto.QrHistoryResponse.serializeBinaryToWriter = function(message, writer) {
2558
+ var f = undefined;
2559
+ f = message.getPagination();
2560
+ if (f != null) {
2561
+ writer.writeMessage(
2562
+ 1,
2563
+ f,
2564
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
2565
+ );
2566
+ }
2567
+ f = message.getHistoryList();
2568
+ if (f.length > 0) {
2569
+ writer.writeRepeatedMessage(
2570
+ 2,
2571
+ f,
2572
+ proto.Auth.AppDistributionProto.QrHistory.serializeBinaryToWriter
2573
+ );
2574
+ }
2575
+ };
2576
+
2577
+
2578
+ /**
2579
+ * optional Platform.PaginationProto pagination = 1;
2580
+ * @return {?proto.Platform.PaginationProto}
2581
+ */
2582
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.getPagination = function() {
2583
+ return /** @type{?proto.Platform.PaginationProto} */ (
2584
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 1));
2585
+ };
2586
+
2587
+
2588
+ /**
2589
+ * @param {?proto.Platform.PaginationProto|undefined} value
2590
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse} returns this
2591
+ */
2592
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.setPagination = function(value) {
2593
+ return jspb.Message.setWrapperField(this, 1, value);
2594
+ };
2595
+
2596
+
2597
+ /**
2598
+ * Clears the message field making it undefined.
2599
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse} returns this
2600
+ */
2601
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.clearPagination = function() {
2602
+ return this.setPagination(undefined);
2603
+ };
2604
+
2605
+
2606
+ /**
2607
+ * Returns whether this field is set.
2608
+ * @return {boolean}
2609
+ */
2610
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.hasPagination = function() {
2611
+ return jspb.Message.getField(this, 1) != null;
2612
+ };
2613
+
2614
+
2615
+ /**
2616
+ * repeated QrHistory history = 2;
2617
+ * @return {!Array<!proto.Auth.AppDistributionProto.QrHistory>}
2618
+ */
2619
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.getHistoryList = function() {
2620
+ return /** @type{!Array<!proto.Auth.AppDistributionProto.QrHistory>} */ (
2621
+ jspb.Message.getRepeatedWrapperField(this, proto.Auth.AppDistributionProto.QrHistory, 2));
2622
+ };
2623
+
2624
+
2625
+ /**
2626
+ * @param {!Array<!proto.Auth.AppDistributionProto.QrHistory>} value
2627
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse} returns this
2628
+ */
2629
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.setHistoryList = function(value) {
2630
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
2631
+ };
2632
+
2633
+
2634
+ /**
2635
+ * @param {!proto.Auth.AppDistributionProto.QrHistory=} opt_value
2636
+ * @param {number=} opt_index
2637
+ * @return {!proto.Auth.AppDistributionProto.QrHistory}
2638
+ */
2639
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.addHistory = function(opt_value, opt_index) {
2640
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Auth.AppDistributionProto.QrHistory, opt_index);
2641
+ };
2642
+
2643
+
2644
+ /**
2645
+ * Clears the list making it empty but non-null.
2646
+ * @return {!proto.Auth.AppDistributionProto.QrHistoryResponse} returns this
2647
+ */
2648
+ proto.Auth.AppDistributionProto.QrHistoryResponse.prototype.clearHistoryList = function() {
2649
+ return this.setHistoryList([]);
2650
+ };
2651
+
2652
+
2653
+
2654
+
2655
+
2656
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2657
+ /**
2658
+ * Creates an object representation of this proto.
2659
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2660
+ * Optional fields that are not set will be set to undefined.
2661
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2662
+ * For the list of reserved names please see:
2663
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2664
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2665
+ * JSPB instance for transitional soy proto support:
2666
+ * http://goto/soy-param-migration
2667
+ * @return {!Object}
2668
+ */
2669
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.toObject = function(opt_includeInstance) {
2670
+ return proto.Auth.AppDistributionProto.ActiveQr.toObject(opt_includeInstance, this);
2671
+ };
2672
+
2673
+
2674
+ /**
2675
+ * Static version of the {@see toObject} method.
2676
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2677
+ * the JSPB instance for transitional soy proto support:
2678
+ * http://goto/soy-param-migration
2679
+ * @param {!proto.Auth.AppDistributionProto.ActiveQr} msg The msg instance to transform.
2680
+ * @return {!Object}
2681
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2682
+ */
2683
+ proto.Auth.AppDistributionProto.ActiveQr.toObject = function(includeInstance, msg) {
2684
+ var f, obj = {
2685
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2686
+ uid: jspb.Message.getFieldWithDefault(msg, 2, ""),
2687
+ qrCode: jspb.Message.getFieldWithDefault(msg, 3, "")
2688
+ };
2689
+
2690
+ if (includeInstance) {
2691
+ obj.$jspbMessageInstance = msg;
2692
+ }
2693
+ return obj;
2694
+ };
2695
+ }
2696
+
2697
+
2698
+ /**
2699
+ * Deserializes binary data (in protobuf wire format).
2700
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2701
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr}
2702
+ */
2703
+ proto.Auth.AppDistributionProto.ActiveQr.deserializeBinary = function(bytes) {
2704
+ var reader = new jspb.BinaryReader(bytes);
2705
+ var msg = new proto.Auth.AppDistributionProto.ActiveQr;
2706
+ return proto.Auth.AppDistributionProto.ActiveQr.deserializeBinaryFromReader(msg, reader);
2707
+ };
2708
+
2709
+
2710
+ /**
2711
+ * Deserializes binary data (in protobuf wire format) from the
2712
+ * given reader into the given message object.
2713
+ * @param {!proto.Auth.AppDistributionProto.ActiveQr} msg The message object to deserialize into.
2714
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2715
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr}
2716
+ */
2717
+ proto.Auth.AppDistributionProto.ActiveQr.deserializeBinaryFromReader = function(msg, reader) {
2718
+ while (reader.nextField()) {
2719
+ if (reader.isEndGroup()) {
2720
+ break;
2721
+ }
2722
+ var field = reader.getFieldNumber();
2723
+ switch (field) {
2724
+ case 1:
2725
+ var value = /** @type {number} */ (reader.readInt64());
2726
+ msg.setId(value);
2727
+ break;
2728
+ case 2:
2729
+ var value = /** @type {string} */ (reader.readString());
2730
+ msg.setUid(value);
2731
+ break;
2732
+ case 3:
2733
+ var value = /** @type {string} */ (reader.readString());
2734
+ msg.setQrCode(value);
2735
+ break;
2736
+ default:
2737
+ reader.skipField();
2738
+ break;
2739
+ }
2740
+ }
2741
+ return msg;
2742
+ };
2743
+
2744
+
2745
+ /**
2746
+ * Serializes the message to binary data (in protobuf wire format).
2747
+ * @return {!Uint8Array}
2748
+ */
2749
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.serializeBinary = function() {
2750
+ var writer = new jspb.BinaryWriter();
2751
+ proto.Auth.AppDistributionProto.ActiveQr.serializeBinaryToWriter(this, writer);
2752
+ return writer.getResultBuffer();
2753
+ };
2754
+
2755
+
2756
+ /**
2757
+ * Serializes the given message to binary data (in protobuf wire
2758
+ * format), writing to the given BinaryWriter.
2759
+ * @param {!proto.Auth.AppDistributionProto.ActiveQr} message
2760
+ * @param {!jspb.BinaryWriter} writer
2761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2762
+ */
2763
+ proto.Auth.AppDistributionProto.ActiveQr.serializeBinaryToWriter = function(message, writer) {
2764
+ var f = undefined;
2765
+ f = message.getId();
2766
+ if (f !== 0) {
2767
+ writer.writeInt64(
2768
+ 1,
2769
+ f
2770
+ );
2771
+ }
2772
+ f = message.getUid();
2773
+ if (f.length > 0) {
2774
+ writer.writeString(
2775
+ 2,
2776
+ f
2777
+ );
2778
+ }
2779
+ f = message.getQrCode();
2780
+ if (f.length > 0) {
2781
+ writer.writeString(
2782
+ 3,
2783
+ f
2784
+ );
2785
+ }
2786
+ };
2787
+
2788
+
2789
+ /**
2790
+ * optional int64 id = 1;
2791
+ * @return {number}
2792
+ */
2793
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.getId = function() {
2794
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2795
+ };
2796
+
2797
+
2798
+ /**
2799
+ * @param {number} value
2800
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr} returns this
2801
+ */
2802
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.setId = function(value) {
2803
+ return jspb.Message.setProto3IntField(this, 1, value);
2804
+ };
2805
+
2806
+
2807
+ /**
2808
+ * optional string uid = 2;
2809
+ * @return {string}
2810
+ */
2811
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.getUid = function() {
2812
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2813
+ };
2814
+
2815
+
2816
+ /**
2817
+ * @param {string} value
2818
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr} returns this
2819
+ */
2820
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.setUid = function(value) {
2821
+ return jspb.Message.setProto3StringField(this, 2, value);
2822
+ };
2823
+
2824
+
2825
+ /**
2826
+ * optional string qr_code = 3;
2827
+ * @return {string}
2828
+ */
2829
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.getQrCode = function() {
2830
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2831
+ };
2832
+
2833
+
2834
+ /**
2835
+ * @param {string} value
2836
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr} returns this
2837
+ */
2838
+ proto.Auth.AppDistributionProto.ActiveQr.prototype.setQrCode = function(value) {
2839
+ return jspb.Message.setProto3StringField(this, 3, value);
2840
+ };
2841
+
2842
+
2843
+
2844
+
2845
+
2846
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2847
+ /**
2848
+ * Creates an object representation of this proto.
2849
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2850
+ * Optional fields that are not set will be set to undefined.
2851
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2852
+ * For the list of reserved names please see:
2853
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2854
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2855
+ * JSPB instance for transitional soy proto support:
2856
+ * http://goto/soy-param-migration
2857
+ * @return {!Object}
2858
+ */
2859
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.toObject = function(opt_includeInstance) {
2860
+ return proto.Auth.AppDistributionProto.ActiveQrRequest.toObject(opt_includeInstance, this);
2861
+ };
2862
+
2863
+
2864
+ /**
2865
+ * Static version of the {@see toObject} method.
2866
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2867
+ * the JSPB instance for transitional soy proto support:
2868
+ * http://goto/soy-param-migration
2869
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrRequest} msg The msg instance to transform.
2870
+ * @return {!Object}
2871
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2872
+ */
2873
+ proto.Auth.AppDistributionProto.ActiveQrRequest.toObject = function(includeInstance, msg) {
2874
+ var f, obj = {
2875
+ page: jspb.Message.getFieldWithDefault(msg, 1, 0),
2876
+ count: jspb.Message.getFieldWithDefault(msg, 3, 0)
2877
+ };
2878
+
2879
+ if (includeInstance) {
2880
+ obj.$jspbMessageInstance = msg;
2881
+ }
2882
+ return obj;
2883
+ };
2884
+ }
2885
+
2886
+
2887
+ /**
2888
+ * Deserializes binary data (in protobuf wire format).
2889
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2890
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrRequest}
2891
+ */
2892
+ proto.Auth.AppDistributionProto.ActiveQrRequest.deserializeBinary = function(bytes) {
2893
+ var reader = new jspb.BinaryReader(bytes);
2894
+ var msg = new proto.Auth.AppDistributionProto.ActiveQrRequest;
2895
+ return proto.Auth.AppDistributionProto.ActiveQrRequest.deserializeBinaryFromReader(msg, reader);
2896
+ };
2897
+
2898
+
2899
+ /**
2900
+ * Deserializes binary data (in protobuf wire format) from the
2901
+ * given reader into the given message object.
2902
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrRequest} msg The message object to deserialize into.
2903
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2904
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrRequest}
2905
+ */
2906
+ proto.Auth.AppDistributionProto.ActiveQrRequest.deserializeBinaryFromReader = function(msg, reader) {
2907
+ while (reader.nextField()) {
2908
+ if (reader.isEndGroup()) {
2909
+ break;
2910
+ }
2911
+ var field = reader.getFieldNumber();
2912
+ switch (field) {
2913
+ case 1:
2914
+ var value = /** @type {number} */ (reader.readInt32());
2915
+ msg.setPage(value);
2916
+ break;
2917
+ case 3:
2918
+ var value = /** @type {number} */ (reader.readInt32());
2919
+ msg.setCount(value);
2920
+ break;
2921
+ default:
2922
+ reader.skipField();
2923
+ break;
2924
+ }
2925
+ }
2926
+ return msg;
2927
+ };
2928
+
2929
+
2930
+ /**
2931
+ * Serializes the message to binary data (in protobuf wire format).
2932
+ * @return {!Uint8Array}
2933
+ */
2934
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.serializeBinary = function() {
2935
+ var writer = new jspb.BinaryWriter();
2936
+ proto.Auth.AppDistributionProto.ActiveQrRequest.serializeBinaryToWriter(this, writer);
2937
+ return writer.getResultBuffer();
2938
+ };
2939
+
2940
+
2941
+ /**
2942
+ * Serializes the given message to binary data (in protobuf wire
2943
+ * format), writing to the given BinaryWriter.
2944
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrRequest} message
2945
+ * @param {!jspb.BinaryWriter} writer
2946
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2947
+ */
2948
+ proto.Auth.AppDistributionProto.ActiveQrRequest.serializeBinaryToWriter = function(message, writer) {
2949
+ var f = undefined;
2950
+ f = message.getPage();
2951
+ if (f !== 0) {
2952
+ writer.writeInt32(
2953
+ 1,
2954
+ f
2955
+ );
2956
+ }
2957
+ f = message.getCount();
2958
+ if (f !== 0) {
2959
+ writer.writeInt32(
2960
+ 3,
2961
+ f
2962
+ );
2963
+ }
2964
+ };
2965
+
2966
+
2967
+ /**
2968
+ * optional int32 page = 1;
2969
+ * @return {number}
2970
+ */
2971
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.getPage = function() {
2972
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2973
+ };
2974
+
2975
+
2976
+ /**
2977
+ * @param {number} value
2978
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrRequest} returns this
2979
+ */
2980
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.setPage = function(value) {
2981
+ return jspb.Message.setProto3IntField(this, 1, value);
2982
+ };
2983
+
2984
+
2985
+ /**
2986
+ * optional int32 count = 3;
2987
+ * @return {number}
2988
+ */
2989
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.getCount = function() {
2990
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
2991
+ };
2992
+
2993
+
2994
+ /**
2995
+ * @param {number} value
2996
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrRequest} returns this
2997
+ */
2998
+ proto.Auth.AppDistributionProto.ActiveQrRequest.prototype.setCount = function(value) {
2999
+ return jspb.Message.setProto3IntField(this, 3, value);
3000
+ };
3001
+
3002
+
3003
+
3004
+ /**
3005
+ * List of repeated fields within this message type.
3006
+ * @private {!Array<number>}
3007
+ * @const
3008
+ */
3009
+ proto.Auth.AppDistributionProto.ActiveQrResponse.repeatedFields_ = [2];
3010
+
3011
+
3012
+
3013
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3014
+ /**
3015
+ * Creates an object representation of this proto.
3016
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3017
+ * Optional fields that are not set will be set to undefined.
3018
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3019
+ * For the list of reserved names please see:
3020
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3021
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3022
+ * JSPB instance for transitional soy proto support:
3023
+ * http://goto/soy-param-migration
3024
+ * @return {!Object}
3025
+ */
3026
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.toObject = function(opt_includeInstance) {
3027
+ return proto.Auth.AppDistributionProto.ActiveQrResponse.toObject(opt_includeInstance, this);
3028
+ };
3029
+
3030
+
3031
+ /**
3032
+ * Static version of the {@see toObject} method.
3033
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3034
+ * the JSPB instance for transitional soy proto support:
3035
+ * http://goto/soy-param-migration
3036
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrResponse} msg The msg instance to transform.
3037
+ * @return {!Object}
3038
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3039
+ */
3040
+ proto.Auth.AppDistributionProto.ActiveQrResponse.toObject = function(includeInstance, msg) {
3041
+ var f, obj = {
3042
+ pagination: (f = msg.getPagination()) && platform_pagination_pb.PaginationProto.toObject(includeInstance, f),
3043
+ activeqrsList: jspb.Message.toObjectList(msg.getActiveqrsList(),
3044
+ proto.Auth.AppDistributionProto.ActiveQr.toObject, includeInstance)
3045
+ };
3046
+
3047
+ if (includeInstance) {
3048
+ obj.$jspbMessageInstance = msg;
3049
+ }
3050
+ return obj;
3051
+ };
3052
+ }
3053
+
3054
+
3055
+ /**
3056
+ * Deserializes binary data (in protobuf wire format).
3057
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3058
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse}
3059
+ */
3060
+ proto.Auth.AppDistributionProto.ActiveQrResponse.deserializeBinary = function(bytes) {
3061
+ var reader = new jspb.BinaryReader(bytes);
3062
+ var msg = new proto.Auth.AppDistributionProto.ActiveQrResponse;
3063
+ return proto.Auth.AppDistributionProto.ActiveQrResponse.deserializeBinaryFromReader(msg, reader);
3064
+ };
3065
+
3066
+
3067
+ /**
3068
+ * Deserializes binary data (in protobuf wire format) from the
3069
+ * given reader into the given message object.
3070
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrResponse} msg The message object to deserialize into.
3071
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3072
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse}
3073
+ */
3074
+ proto.Auth.AppDistributionProto.ActiveQrResponse.deserializeBinaryFromReader = function(msg, reader) {
3075
+ while (reader.nextField()) {
3076
+ if (reader.isEndGroup()) {
3077
+ break;
3078
+ }
3079
+ var field = reader.getFieldNumber();
3080
+ switch (field) {
3081
+ case 1:
3082
+ var value = new platform_pagination_pb.PaginationProto;
3083
+ reader.readMessage(value,platform_pagination_pb.PaginationProto.deserializeBinaryFromReader);
3084
+ msg.setPagination(value);
3085
+ break;
3086
+ case 2:
3087
+ var value = new proto.Auth.AppDistributionProto.ActiveQr;
3088
+ reader.readMessage(value,proto.Auth.AppDistributionProto.ActiveQr.deserializeBinaryFromReader);
3089
+ msg.addActiveqrs(value);
3090
+ break;
3091
+ default:
3092
+ reader.skipField();
3093
+ break;
3094
+ }
3095
+ }
3096
+ return msg;
3097
+ };
3098
+
3099
+
3100
+ /**
3101
+ * Serializes the message to binary data (in protobuf wire format).
3102
+ * @return {!Uint8Array}
3103
+ */
3104
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.serializeBinary = function() {
3105
+ var writer = new jspb.BinaryWriter();
3106
+ proto.Auth.AppDistributionProto.ActiveQrResponse.serializeBinaryToWriter(this, writer);
3107
+ return writer.getResultBuffer();
3108
+ };
3109
+
3110
+
3111
+ /**
3112
+ * Serializes the given message to binary data (in protobuf wire
3113
+ * format), writing to the given BinaryWriter.
3114
+ * @param {!proto.Auth.AppDistributionProto.ActiveQrResponse} message
3115
+ * @param {!jspb.BinaryWriter} writer
3116
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3117
+ */
3118
+ proto.Auth.AppDistributionProto.ActiveQrResponse.serializeBinaryToWriter = function(message, writer) {
3119
+ var f = undefined;
3120
+ f = message.getPagination();
3121
+ if (f != null) {
3122
+ writer.writeMessage(
3123
+ 1,
3124
+ f,
3125
+ platform_pagination_pb.PaginationProto.serializeBinaryToWriter
3126
+ );
3127
+ }
3128
+ f = message.getActiveqrsList();
3129
+ if (f.length > 0) {
3130
+ writer.writeRepeatedMessage(
3131
+ 2,
3132
+ f,
3133
+ proto.Auth.AppDistributionProto.ActiveQr.serializeBinaryToWriter
3134
+ );
3135
+ }
3136
+ };
3137
+
3138
+
3139
+ /**
3140
+ * optional Platform.PaginationProto pagination = 1;
3141
+ * @return {?proto.Platform.PaginationProto}
3142
+ */
3143
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.getPagination = function() {
3144
+ return /** @type{?proto.Platform.PaginationProto} */ (
3145
+ jspb.Message.getWrapperField(this, platform_pagination_pb.PaginationProto, 1));
3146
+ };
3147
+
3148
+
3149
+ /**
3150
+ * @param {?proto.Platform.PaginationProto|undefined} value
3151
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse} returns this
3152
+ */
3153
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.setPagination = function(value) {
3154
+ return jspb.Message.setWrapperField(this, 1, value);
3155
+ };
3156
+
3157
+
3158
+ /**
3159
+ * Clears the message field making it undefined.
3160
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse} returns this
3161
+ */
3162
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.clearPagination = function() {
3163
+ return this.setPagination(undefined);
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * Returns whether this field is set.
3169
+ * @return {boolean}
3170
+ */
3171
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.hasPagination = function() {
3172
+ return jspb.Message.getField(this, 1) != null;
3173
+ };
3174
+
3175
+
3176
+ /**
3177
+ * repeated ActiveQr activeQrs = 2;
3178
+ * @return {!Array<!proto.Auth.AppDistributionProto.ActiveQr>}
3179
+ */
3180
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.getActiveqrsList = function() {
3181
+ return /** @type{!Array<!proto.Auth.AppDistributionProto.ActiveQr>} */ (
3182
+ jspb.Message.getRepeatedWrapperField(this, proto.Auth.AppDistributionProto.ActiveQr, 2));
3183
+ };
3184
+
3185
+
3186
+ /**
3187
+ * @param {!Array<!proto.Auth.AppDistributionProto.ActiveQr>} value
3188
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse} returns this
3189
+ */
3190
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.setActiveqrsList = function(value) {
3191
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
3192
+ };
3193
+
3194
+
3195
+ /**
3196
+ * @param {!proto.Auth.AppDistributionProto.ActiveQr=} opt_value
3197
+ * @param {number=} opt_index
3198
+ * @return {!proto.Auth.AppDistributionProto.ActiveQr}
3199
+ */
3200
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.addActiveqrs = function(opt_value, opt_index) {
3201
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.Auth.AppDistributionProto.ActiveQr, opt_index);
3202
+ };
3203
+
3204
+
3205
+ /**
3206
+ * Clears the list making it empty but non-null.
3207
+ * @return {!proto.Auth.AppDistributionProto.ActiveQrResponse} returns this
3208
+ */
3209
+ proto.Auth.AppDistributionProto.ActiveQrResponse.prototype.clearActiveqrsList = function() {
3210
+ return this.setActiveqrsList([]);
3211
+ };
3212
+
3213
+
1854
3214
  goog.object.extend(exports, proto.Auth);