protobuf-platform 1.2.196 → 1.2.198

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/log/log_pb.js CHANGED
@@ -21,6 +21,10 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.log.ActivityChange', null, global);
25
+ goog.exportSymbol('proto.log.ActivitySearchRequest', null, global);
26
+ goog.exportSymbol('proto.log.ActivityTrailItem', null, global);
27
+ goog.exportSymbol('proto.log.ActivityTrailItemsResponse', null, global);
24
28
  goog.exportSymbol('proto.log.IssueItem', null, global);
25
29
  goog.exportSymbol('proto.log.IssueItemsResponse', null, global);
26
30
  goog.exportSymbol('proto.log.LogSearchRequest', null, global);
@@ -135,6 +139,27 @@ if (goog.DEBUG && !COMPILED) {
135
139
  */
136
140
  proto.log.UserSearchRequest.displayName = 'proto.log.UserSearchRequest';
137
141
  }
142
+ /**
143
+ * Generated by JsPbCodeGenerator.
144
+ * @param {Array=} opt_data Optional initial data array, typically from a
145
+ * server response, or constructed directly in Javascript. The array is used
146
+ * in place and becomes part of the constructed object. It is not cloned.
147
+ * If no data is provided, the constructed object will be empty, but still
148
+ * valid.
149
+ * @extends {jspb.Message}
150
+ * @constructor
151
+ */
152
+ proto.log.ActivitySearchRequest = function(opt_data) {
153
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
154
+ };
155
+ goog.inherits(proto.log.ActivitySearchRequest, jspb.Message);
156
+ if (goog.DEBUG && !COMPILED) {
157
+ /**
158
+ * @public
159
+ * @override
160
+ */
161
+ proto.log.ActivitySearchRequest.displayName = 'proto.log.ActivitySearchRequest';
162
+ }
138
163
  /**
139
164
  * Generated by JsPbCodeGenerator.
140
165
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -219,6 +244,69 @@ if (goog.DEBUG && !COMPILED) {
219
244
  */
220
245
  proto.log.UserActivitiesItemsResponse.displayName = 'proto.log.UserActivitiesItemsResponse';
221
246
  }
247
+ /**
248
+ * Generated by JsPbCodeGenerator.
249
+ * @param {Array=} opt_data Optional initial data array, typically from a
250
+ * server response, or constructed directly in Javascript. The array is used
251
+ * in place and becomes part of the constructed object. It is not cloned.
252
+ * If no data is provided, the constructed object will be empty, but still
253
+ * valid.
254
+ * @extends {jspb.Message}
255
+ * @constructor
256
+ */
257
+ proto.log.ActivityChange = function(opt_data) {
258
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
259
+ };
260
+ goog.inherits(proto.log.ActivityChange, jspb.Message);
261
+ if (goog.DEBUG && !COMPILED) {
262
+ /**
263
+ * @public
264
+ * @override
265
+ */
266
+ proto.log.ActivityChange.displayName = 'proto.log.ActivityChange';
267
+ }
268
+ /**
269
+ * Generated by JsPbCodeGenerator.
270
+ * @param {Array=} opt_data Optional initial data array, typically from a
271
+ * server response, or constructed directly in Javascript. The array is used
272
+ * in place and becomes part of the constructed object. It is not cloned.
273
+ * If no data is provided, the constructed object will be empty, but still
274
+ * valid.
275
+ * @extends {jspb.Message}
276
+ * @constructor
277
+ */
278
+ proto.log.ActivityTrailItem = function(opt_data) {
279
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.log.ActivityTrailItem.repeatedFields_, null);
280
+ };
281
+ goog.inherits(proto.log.ActivityTrailItem, jspb.Message);
282
+ if (goog.DEBUG && !COMPILED) {
283
+ /**
284
+ * @public
285
+ * @override
286
+ */
287
+ proto.log.ActivityTrailItem.displayName = 'proto.log.ActivityTrailItem';
288
+ }
289
+ /**
290
+ * Generated by JsPbCodeGenerator.
291
+ * @param {Array=} opt_data Optional initial data array, typically from a
292
+ * server response, or constructed directly in Javascript. The array is used
293
+ * in place and becomes part of the constructed object. It is not cloned.
294
+ * If no data is provided, the constructed object will be empty, but still
295
+ * valid.
296
+ * @extends {jspb.Message}
297
+ * @constructor
298
+ */
299
+ proto.log.ActivityTrailItemsResponse = function(opt_data) {
300
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.log.ActivityTrailItemsResponse.repeatedFields_, null);
301
+ };
302
+ goog.inherits(proto.log.ActivityTrailItemsResponse, jspb.Message);
303
+ if (goog.DEBUG && !COMPILED) {
304
+ /**
305
+ * @public
306
+ * @override
307
+ */
308
+ proto.log.ActivityTrailItemsResponse.displayName = 'proto.log.ActivityTrailItemsResponse';
309
+ }
222
310
 
223
311
 
224
312
 
@@ -514,7 +602,8 @@ proto.log.PaginationRequest.toObject = function(includeInstance, msg) {
514
602
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
515
603
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
516
604
  logSearchParams: (f = msg.getLogSearchParams()) && proto.log.LogSearchRequest.toObject(includeInstance, f),
517
- userSearchParams: (f = msg.getUserSearchParams()) && proto.log.UserSearchRequest.toObject(includeInstance, f)
605
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.log.UserSearchRequest.toObject(includeInstance, f),
606
+ activitySearchParams: (f = msg.getActivitySearchParams()) && proto.log.ActivitySearchRequest.toObject(includeInstance, f)
518
607
  };
519
608
 
520
609
  if (includeInstance) {
@@ -569,6 +658,11 @@ proto.log.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
569
658
  reader.readMessage(value,proto.log.UserSearchRequest.deserializeBinaryFromReader);
570
659
  msg.setUserSearchParams(value);
571
660
  break;
661
+ case 5:
662
+ var value = new proto.log.ActivitySearchRequest;
663
+ reader.readMessage(value,proto.log.ActivitySearchRequest.deserializeBinaryFromReader);
664
+ msg.setActivitySearchParams(value);
665
+ break;
572
666
  default:
573
667
  reader.skipField();
574
668
  break;
@@ -628,6 +722,14 @@ proto.log.PaginationRequest.serializeBinaryToWriter = function(message, writer)
628
722
  proto.log.UserSearchRequest.serializeBinaryToWriter
629
723
  );
630
724
  }
725
+ f = message.getActivitySearchParams();
726
+ if (f != null) {
727
+ writer.writeMessage(
728
+ 5,
729
+ f,
730
+ proto.log.ActivitySearchRequest.serializeBinaryToWriter
731
+ );
732
+ }
631
733
  };
632
734
 
633
735
 
@@ -741,6 +843,43 @@ proto.log.PaginationRequest.prototype.hasUserSearchParams = function() {
741
843
  };
742
844
 
743
845
 
846
+ /**
847
+ * optional ActivitySearchRequest activity_search_params = 5;
848
+ * @return {?proto.log.ActivitySearchRequest}
849
+ */
850
+ proto.log.PaginationRequest.prototype.getActivitySearchParams = function() {
851
+ return /** @type{?proto.log.ActivitySearchRequest} */ (
852
+ jspb.Message.getWrapperField(this, proto.log.ActivitySearchRequest, 5));
853
+ };
854
+
855
+
856
+ /**
857
+ * @param {?proto.log.ActivitySearchRequest|undefined} value
858
+ * @return {!proto.log.PaginationRequest} returns this
859
+ */
860
+ proto.log.PaginationRequest.prototype.setActivitySearchParams = function(value) {
861
+ return jspb.Message.setWrapperField(this, 5, value);
862
+ };
863
+
864
+
865
+ /**
866
+ * Clears the message field making it undefined.
867
+ * @return {!proto.log.PaginationRequest} returns this
868
+ */
869
+ proto.log.PaginationRequest.prototype.clearActivitySearchParams = function() {
870
+ return this.setActivitySearchParams(undefined);
871
+ };
872
+
873
+
874
+ /**
875
+ * Returns whether this field is set.
876
+ * @return {boolean}
877
+ */
878
+ proto.log.PaginationRequest.prototype.hasActivitySearchParams = function() {
879
+ return jspb.Message.getField(this, 5) != null;
880
+ };
881
+
882
+
744
883
 
745
884
  /**
746
885
  * List of repeated fields within this message type.
@@ -1079,6 +1218,166 @@ proto.log.UserSearchRequest.prototype.setUserId = function(value) {
1079
1218
 
1080
1219
 
1081
1220
 
1221
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1222
+ /**
1223
+ * Creates an object representation of this proto.
1224
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1225
+ * Optional fields that are not set will be set to undefined.
1226
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1227
+ * For the list of reserved names please see:
1228
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1229
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1230
+ * JSPB instance for transitional soy proto support:
1231
+ * http://goto/soy-param-migration
1232
+ * @return {!Object}
1233
+ */
1234
+ proto.log.ActivitySearchRequest.prototype.toObject = function(opt_includeInstance) {
1235
+ return proto.log.ActivitySearchRequest.toObject(opt_includeInstance, this);
1236
+ };
1237
+
1238
+
1239
+ /**
1240
+ * Static version of the {@see toObject} method.
1241
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1242
+ * the JSPB instance for transitional soy proto support:
1243
+ * http://goto/soy-param-migration
1244
+ * @param {!proto.log.ActivitySearchRequest} msg The msg instance to transform.
1245
+ * @return {!Object}
1246
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1247
+ */
1248
+ proto.log.ActivitySearchRequest.toObject = function(includeInstance, msg) {
1249
+ var f, obj = {
1250
+ entityType: jspb.Message.getFieldWithDefault(msg, 1, ""),
1251
+ entityId: jspb.Message.getFieldWithDefault(msg, 2, "")
1252
+ };
1253
+
1254
+ if (includeInstance) {
1255
+ obj.$jspbMessageInstance = msg;
1256
+ }
1257
+ return obj;
1258
+ };
1259
+ }
1260
+
1261
+
1262
+ /**
1263
+ * Deserializes binary data (in protobuf wire format).
1264
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1265
+ * @return {!proto.log.ActivitySearchRequest}
1266
+ */
1267
+ proto.log.ActivitySearchRequest.deserializeBinary = function(bytes) {
1268
+ var reader = new jspb.BinaryReader(bytes);
1269
+ var msg = new proto.log.ActivitySearchRequest;
1270
+ return proto.log.ActivitySearchRequest.deserializeBinaryFromReader(msg, reader);
1271
+ };
1272
+
1273
+
1274
+ /**
1275
+ * Deserializes binary data (in protobuf wire format) from the
1276
+ * given reader into the given message object.
1277
+ * @param {!proto.log.ActivitySearchRequest} msg The message object to deserialize into.
1278
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1279
+ * @return {!proto.log.ActivitySearchRequest}
1280
+ */
1281
+ proto.log.ActivitySearchRequest.deserializeBinaryFromReader = function(msg, reader) {
1282
+ while (reader.nextField()) {
1283
+ if (reader.isEndGroup()) {
1284
+ break;
1285
+ }
1286
+ var field = reader.getFieldNumber();
1287
+ switch (field) {
1288
+ case 1:
1289
+ var value = /** @type {string} */ (reader.readString());
1290
+ msg.setEntityType(value);
1291
+ break;
1292
+ case 2:
1293
+ var value = /** @type {string} */ (reader.readString());
1294
+ msg.setEntityId(value);
1295
+ break;
1296
+ default:
1297
+ reader.skipField();
1298
+ break;
1299
+ }
1300
+ }
1301
+ return msg;
1302
+ };
1303
+
1304
+
1305
+ /**
1306
+ * Serializes the message to binary data (in protobuf wire format).
1307
+ * @return {!Uint8Array}
1308
+ */
1309
+ proto.log.ActivitySearchRequest.prototype.serializeBinary = function() {
1310
+ var writer = new jspb.BinaryWriter();
1311
+ proto.log.ActivitySearchRequest.serializeBinaryToWriter(this, writer);
1312
+ return writer.getResultBuffer();
1313
+ };
1314
+
1315
+
1316
+ /**
1317
+ * Serializes the given message to binary data (in protobuf wire
1318
+ * format), writing to the given BinaryWriter.
1319
+ * @param {!proto.log.ActivitySearchRequest} message
1320
+ * @param {!jspb.BinaryWriter} writer
1321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1322
+ */
1323
+ proto.log.ActivitySearchRequest.serializeBinaryToWriter = function(message, writer) {
1324
+ var f = undefined;
1325
+ f = message.getEntityType();
1326
+ if (f.length > 0) {
1327
+ writer.writeString(
1328
+ 1,
1329
+ f
1330
+ );
1331
+ }
1332
+ f = message.getEntityId();
1333
+ if (f.length > 0) {
1334
+ writer.writeString(
1335
+ 2,
1336
+ f
1337
+ );
1338
+ }
1339
+ };
1340
+
1341
+
1342
+ /**
1343
+ * optional string entity_type = 1;
1344
+ * @return {string}
1345
+ */
1346
+ proto.log.ActivitySearchRequest.prototype.getEntityType = function() {
1347
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1348
+ };
1349
+
1350
+
1351
+ /**
1352
+ * @param {string} value
1353
+ * @return {!proto.log.ActivitySearchRequest} returns this
1354
+ */
1355
+ proto.log.ActivitySearchRequest.prototype.setEntityType = function(value) {
1356
+ return jspb.Message.setProto3StringField(this, 1, value);
1357
+ };
1358
+
1359
+
1360
+ /**
1361
+ * optional string entity_id = 2;
1362
+ * @return {string}
1363
+ */
1364
+ proto.log.ActivitySearchRequest.prototype.getEntityId = function() {
1365
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1366
+ };
1367
+
1368
+
1369
+ /**
1370
+ * @param {string} value
1371
+ * @return {!proto.log.ActivitySearchRequest} returns this
1372
+ */
1373
+ proto.log.ActivitySearchRequest.prototype.setEntityId = function(value) {
1374
+ return jspb.Message.setProto3StringField(this, 2, value);
1375
+ };
1376
+
1377
+
1378
+
1379
+
1380
+
1082
1381
  if (jspb.Message.GENERATE_TO_OBJECT) {
1083
1382
  /**
1084
1383
  * Creates an object representation of this proto.
@@ -2088,4 +2387,958 @@ proto.log.UserActivitiesItemsResponse.prototype.hasTotalItems = function() {
2088
2387
  };
2089
2388
 
2090
2389
 
2390
+
2391
+
2392
+
2393
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2394
+ /**
2395
+ * Creates an object representation of this proto.
2396
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2397
+ * Optional fields that are not set will be set to undefined.
2398
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2399
+ * For the list of reserved names please see:
2400
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2401
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2402
+ * JSPB instance for transitional soy proto support:
2403
+ * http://goto/soy-param-migration
2404
+ * @return {!Object}
2405
+ */
2406
+ proto.log.ActivityChange.prototype.toObject = function(opt_includeInstance) {
2407
+ return proto.log.ActivityChange.toObject(opt_includeInstance, this);
2408
+ };
2409
+
2410
+
2411
+ /**
2412
+ * Static version of the {@see toObject} method.
2413
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2414
+ * the JSPB instance for transitional soy proto support:
2415
+ * http://goto/soy-param-migration
2416
+ * @param {!proto.log.ActivityChange} msg The msg instance to transform.
2417
+ * @return {!Object}
2418
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2419
+ */
2420
+ proto.log.ActivityChange.toObject = function(includeInstance, msg) {
2421
+ var f, obj = {
2422
+ path: jspb.Message.getFieldWithDefault(msg, 1, ""),
2423
+ op: jspb.Message.getFieldWithDefault(msg, 2, ""),
2424
+ from: jspb.Message.getFieldWithDefault(msg, 3, ""),
2425
+ to: jspb.Message.getFieldWithDefault(msg, 4, "")
2426
+ };
2427
+
2428
+ if (includeInstance) {
2429
+ obj.$jspbMessageInstance = msg;
2430
+ }
2431
+ return obj;
2432
+ };
2433
+ }
2434
+
2435
+
2436
+ /**
2437
+ * Deserializes binary data (in protobuf wire format).
2438
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2439
+ * @return {!proto.log.ActivityChange}
2440
+ */
2441
+ proto.log.ActivityChange.deserializeBinary = function(bytes) {
2442
+ var reader = new jspb.BinaryReader(bytes);
2443
+ var msg = new proto.log.ActivityChange;
2444
+ return proto.log.ActivityChange.deserializeBinaryFromReader(msg, reader);
2445
+ };
2446
+
2447
+
2448
+ /**
2449
+ * Deserializes binary data (in protobuf wire format) from the
2450
+ * given reader into the given message object.
2451
+ * @param {!proto.log.ActivityChange} msg The message object to deserialize into.
2452
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2453
+ * @return {!proto.log.ActivityChange}
2454
+ */
2455
+ proto.log.ActivityChange.deserializeBinaryFromReader = function(msg, reader) {
2456
+ while (reader.nextField()) {
2457
+ if (reader.isEndGroup()) {
2458
+ break;
2459
+ }
2460
+ var field = reader.getFieldNumber();
2461
+ switch (field) {
2462
+ case 1:
2463
+ var value = /** @type {string} */ (reader.readString());
2464
+ msg.setPath(value);
2465
+ break;
2466
+ case 2:
2467
+ var value = /** @type {string} */ (reader.readString());
2468
+ msg.setOp(value);
2469
+ break;
2470
+ case 3:
2471
+ var value = /** @type {string} */ (reader.readString());
2472
+ msg.setFrom(value);
2473
+ break;
2474
+ case 4:
2475
+ var value = /** @type {string} */ (reader.readString());
2476
+ msg.setTo(value);
2477
+ break;
2478
+ default:
2479
+ reader.skipField();
2480
+ break;
2481
+ }
2482
+ }
2483
+ return msg;
2484
+ };
2485
+
2486
+
2487
+ /**
2488
+ * Serializes the message to binary data (in protobuf wire format).
2489
+ * @return {!Uint8Array}
2490
+ */
2491
+ proto.log.ActivityChange.prototype.serializeBinary = function() {
2492
+ var writer = new jspb.BinaryWriter();
2493
+ proto.log.ActivityChange.serializeBinaryToWriter(this, writer);
2494
+ return writer.getResultBuffer();
2495
+ };
2496
+
2497
+
2498
+ /**
2499
+ * Serializes the given message to binary data (in protobuf wire
2500
+ * format), writing to the given BinaryWriter.
2501
+ * @param {!proto.log.ActivityChange} message
2502
+ * @param {!jspb.BinaryWriter} writer
2503
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2504
+ */
2505
+ proto.log.ActivityChange.serializeBinaryToWriter = function(message, writer) {
2506
+ var f = undefined;
2507
+ f = message.getPath();
2508
+ if (f.length > 0) {
2509
+ writer.writeString(
2510
+ 1,
2511
+ f
2512
+ );
2513
+ }
2514
+ f = message.getOp();
2515
+ if (f.length > 0) {
2516
+ writer.writeString(
2517
+ 2,
2518
+ f
2519
+ );
2520
+ }
2521
+ f = message.getFrom();
2522
+ if (f.length > 0) {
2523
+ writer.writeString(
2524
+ 3,
2525
+ f
2526
+ );
2527
+ }
2528
+ f = message.getTo();
2529
+ if (f.length > 0) {
2530
+ writer.writeString(
2531
+ 4,
2532
+ f
2533
+ );
2534
+ }
2535
+ };
2536
+
2537
+
2538
+ /**
2539
+ * optional string path = 1;
2540
+ * @return {string}
2541
+ */
2542
+ proto.log.ActivityChange.prototype.getPath = function() {
2543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2544
+ };
2545
+
2546
+
2547
+ /**
2548
+ * @param {string} value
2549
+ * @return {!proto.log.ActivityChange} returns this
2550
+ */
2551
+ proto.log.ActivityChange.prototype.setPath = function(value) {
2552
+ return jspb.Message.setProto3StringField(this, 1, value);
2553
+ };
2554
+
2555
+
2556
+ /**
2557
+ * optional string op = 2;
2558
+ * @return {string}
2559
+ */
2560
+ proto.log.ActivityChange.prototype.getOp = function() {
2561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2562
+ };
2563
+
2564
+
2565
+ /**
2566
+ * @param {string} value
2567
+ * @return {!proto.log.ActivityChange} returns this
2568
+ */
2569
+ proto.log.ActivityChange.prototype.setOp = function(value) {
2570
+ return jspb.Message.setProto3StringField(this, 2, value);
2571
+ };
2572
+
2573
+
2574
+ /**
2575
+ * optional string from = 3;
2576
+ * @return {string}
2577
+ */
2578
+ proto.log.ActivityChange.prototype.getFrom = function() {
2579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2580
+ };
2581
+
2582
+
2583
+ /**
2584
+ * @param {string} value
2585
+ * @return {!proto.log.ActivityChange} returns this
2586
+ */
2587
+ proto.log.ActivityChange.prototype.setFrom = function(value) {
2588
+ return jspb.Message.setProto3StringField(this, 3, value);
2589
+ };
2590
+
2591
+
2592
+ /**
2593
+ * optional string to = 4;
2594
+ * @return {string}
2595
+ */
2596
+ proto.log.ActivityChange.prototype.getTo = function() {
2597
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * @param {string} value
2603
+ * @return {!proto.log.ActivityChange} returns this
2604
+ */
2605
+ proto.log.ActivityChange.prototype.setTo = function(value) {
2606
+ return jspb.Message.setProto3StringField(this, 4, value);
2607
+ };
2608
+
2609
+
2610
+
2611
+ /**
2612
+ * List of repeated fields within this message type.
2613
+ * @private {!Array<number>}
2614
+ * @const
2615
+ */
2616
+ proto.log.ActivityTrailItem.repeatedFields_ = [10];
2617
+
2618
+
2619
+
2620
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2621
+ /**
2622
+ * Creates an object representation of this proto.
2623
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2624
+ * Optional fields that are not set will be set to undefined.
2625
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2626
+ * For the list of reserved names please see:
2627
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2628
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2629
+ * JSPB instance for transitional soy proto support:
2630
+ * http://goto/soy-param-migration
2631
+ * @return {!Object}
2632
+ */
2633
+ proto.log.ActivityTrailItem.prototype.toObject = function(opt_includeInstance) {
2634
+ return proto.log.ActivityTrailItem.toObject(opt_includeInstance, this);
2635
+ };
2636
+
2637
+
2638
+ /**
2639
+ * Static version of the {@see toObject} method.
2640
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2641
+ * the JSPB instance for transitional soy proto support:
2642
+ * http://goto/soy-param-migration
2643
+ * @param {!proto.log.ActivityTrailItem} msg The msg instance to transform.
2644
+ * @return {!Object}
2645
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2646
+ */
2647
+ proto.log.ActivityTrailItem.toObject = function(includeInstance, msg) {
2648
+ var f, obj = {
2649
+ hash: jspb.Message.getFieldWithDefault(msg, 1, ""),
2650
+ ts: jspb.Message.getFieldWithDefault(msg, 2, ""),
2651
+ action: jspb.Message.getFieldWithDefault(msg, 3, ""),
2652
+ service: jspb.Message.getFieldWithDefault(msg, 4, ""),
2653
+ requestId: jspb.Message.getFieldWithDefault(msg, 5, ""),
2654
+ actorId: jspb.Message.getFieldWithDefault(msg, 6, ""),
2655
+ actorRole: jspb.Message.getFieldWithDefault(msg, 7, ""),
2656
+ entityType: jspb.Message.getFieldWithDefault(msg, 8, ""),
2657
+ entityId: jspb.Message.getFieldWithDefault(msg, 9, ""),
2658
+ changesList: jspb.Message.toObjectList(msg.getChangesList(),
2659
+ proto.log.ActivityChange.toObject, includeInstance),
2660
+ detailsJson: jspb.Message.getFieldWithDefault(msg, 11, "")
2661
+ };
2662
+
2663
+ if (includeInstance) {
2664
+ obj.$jspbMessageInstance = msg;
2665
+ }
2666
+ return obj;
2667
+ };
2668
+ }
2669
+
2670
+
2671
+ /**
2672
+ * Deserializes binary data (in protobuf wire format).
2673
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2674
+ * @return {!proto.log.ActivityTrailItem}
2675
+ */
2676
+ proto.log.ActivityTrailItem.deserializeBinary = function(bytes) {
2677
+ var reader = new jspb.BinaryReader(bytes);
2678
+ var msg = new proto.log.ActivityTrailItem;
2679
+ return proto.log.ActivityTrailItem.deserializeBinaryFromReader(msg, reader);
2680
+ };
2681
+
2682
+
2683
+ /**
2684
+ * Deserializes binary data (in protobuf wire format) from the
2685
+ * given reader into the given message object.
2686
+ * @param {!proto.log.ActivityTrailItem} msg The message object to deserialize into.
2687
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2688
+ * @return {!proto.log.ActivityTrailItem}
2689
+ */
2690
+ proto.log.ActivityTrailItem.deserializeBinaryFromReader = function(msg, reader) {
2691
+ while (reader.nextField()) {
2692
+ if (reader.isEndGroup()) {
2693
+ break;
2694
+ }
2695
+ var field = reader.getFieldNumber();
2696
+ switch (field) {
2697
+ case 1:
2698
+ var value = /** @type {string} */ (reader.readString());
2699
+ msg.setHash(value);
2700
+ break;
2701
+ case 2:
2702
+ var value = /** @type {string} */ (reader.readString());
2703
+ msg.setTs(value);
2704
+ break;
2705
+ case 3:
2706
+ var value = /** @type {string} */ (reader.readString());
2707
+ msg.setAction(value);
2708
+ break;
2709
+ case 4:
2710
+ var value = /** @type {string} */ (reader.readString());
2711
+ msg.setService(value);
2712
+ break;
2713
+ case 5:
2714
+ var value = /** @type {string} */ (reader.readString());
2715
+ msg.setRequestId(value);
2716
+ break;
2717
+ case 6:
2718
+ var value = /** @type {string} */ (reader.readString());
2719
+ msg.setActorId(value);
2720
+ break;
2721
+ case 7:
2722
+ var value = /** @type {string} */ (reader.readString());
2723
+ msg.setActorRole(value);
2724
+ break;
2725
+ case 8:
2726
+ var value = /** @type {string} */ (reader.readString());
2727
+ msg.setEntityType(value);
2728
+ break;
2729
+ case 9:
2730
+ var value = /** @type {string} */ (reader.readString());
2731
+ msg.setEntityId(value);
2732
+ break;
2733
+ case 10:
2734
+ var value = new proto.log.ActivityChange;
2735
+ reader.readMessage(value,proto.log.ActivityChange.deserializeBinaryFromReader);
2736
+ msg.addChanges(value);
2737
+ break;
2738
+ case 11:
2739
+ var value = /** @type {string} */ (reader.readString());
2740
+ msg.setDetailsJson(value);
2741
+ break;
2742
+ default:
2743
+ reader.skipField();
2744
+ break;
2745
+ }
2746
+ }
2747
+ return msg;
2748
+ };
2749
+
2750
+
2751
+ /**
2752
+ * Serializes the message to binary data (in protobuf wire format).
2753
+ * @return {!Uint8Array}
2754
+ */
2755
+ proto.log.ActivityTrailItem.prototype.serializeBinary = function() {
2756
+ var writer = new jspb.BinaryWriter();
2757
+ proto.log.ActivityTrailItem.serializeBinaryToWriter(this, writer);
2758
+ return writer.getResultBuffer();
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Serializes the given message to binary data (in protobuf wire
2764
+ * format), writing to the given BinaryWriter.
2765
+ * @param {!proto.log.ActivityTrailItem} message
2766
+ * @param {!jspb.BinaryWriter} writer
2767
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2768
+ */
2769
+ proto.log.ActivityTrailItem.serializeBinaryToWriter = function(message, writer) {
2770
+ var f = undefined;
2771
+ f = message.getHash();
2772
+ if (f.length > 0) {
2773
+ writer.writeString(
2774
+ 1,
2775
+ f
2776
+ );
2777
+ }
2778
+ f = message.getTs();
2779
+ if (f.length > 0) {
2780
+ writer.writeString(
2781
+ 2,
2782
+ f
2783
+ );
2784
+ }
2785
+ f = message.getAction();
2786
+ if (f.length > 0) {
2787
+ writer.writeString(
2788
+ 3,
2789
+ f
2790
+ );
2791
+ }
2792
+ f = message.getService();
2793
+ if (f.length > 0) {
2794
+ writer.writeString(
2795
+ 4,
2796
+ f
2797
+ );
2798
+ }
2799
+ f = message.getRequestId();
2800
+ if (f.length > 0) {
2801
+ writer.writeString(
2802
+ 5,
2803
+ f
2804
+ );
2805
+ }
2806
+ f = message.getActorId();
2807
+ if (f.length > 0) {
2808
+ writer.writeString(
2809
+ 6,
2810
+ f
2811
+ );
2812
+ }
2813
+ f = message.getActorRole();
2814
+ if (f.length > 0) {
2815
+ writer.writeString(
2816
+ 7,
2817
+ f
2818
+ );
2819
+ }
2820
+ f = message.getEntityType();
2821
+ if (f.length > 0) {
2822
+ writer.writeString(
2823
+ 8,
2824
+ f
2825
+ );
2826
+ }
2827
+ f = message.getEntityId();
2828
+ if (f.length > 0) {
2829
+ writer.writeString(
2830
+ 9,
2831
+ f
2832
+ );
2833
+ }
2834
+ f = message.getChangesList();
2835
+ if (f.length > 0) {
2836
+ writer.writeRepeatedMessage(
2837
+ 10,
2838
+ f,
2839
+ proto.log.ActivityChange.serializeBinaryToWriter
2840
+ );
2841
+ }
2842
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
2843
+ if (f != null) {
2844
+ writer.writeString(
2845
+ 11,
2846
+ f
2847
+ );
2848
+ }
2849
+ };
2850
+
2851
+
2852
+ /**
2853
+ * optional string hash = 1;
2854
+ * @return {string}
2855
+ */
2856
+ proto.log.ActivityTrailItem.prototype.getHash = function() {
2857
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2858
+ };
2859
+
2860
+
2861
+ /**
2862
+ * @param {string} value
2863
+ * @return {!proto.log.ActivityTrailItem} returns this
2864
+ */
2865
+ proto.log.ActivityTrailItem.prototype.setHash = function(value) {
2866
+ return jspb.Message.setProto3StringField(this, 1, value);
2867
+ };
2868
+
2869
+
2870
+ /**
2871
+ * optional string ts = 2;
2872
+ * @return {string}
2873
+ */
2874
+ proto.log.ActivityTrailItem.prototype.getTs = function() {
2875
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2876
+ };
2877
+
2878
+
2879
+ /**
2880
+ * @param {string} value
2881
+ * @return {!proto.log.ActivityTrailItem} returns this
2882
+ */
2883
+ proto.log.ActivityTrailItem.prototype.setTs = function(value) {
2884
+ return jspb.Message.setProto3StringField(this, 2, value);
2885
+ };
2886
+
2887
+
2888
+ /**
2889
+ * optional string action = 3;
2890
+ * @return {string}
2891
+ */
2892
+ proto.log.ActivityTrailItem.prototype.getAction = function() {
2893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
2894
+ };
2895
+
2896
+
2897
+ /**
2898
+ * @param {string} value
2899
+ * @return {!proto.log.ActivityTrailItem} returns this
2900
+ */
2901
+ proto.log.ActivityTrailItem.prototype.setAction = function(value) {
2902
+ return jspb.Message.setProto3StringField(this, 3, value);
2903
+ };
2904
+
2905
+
2906
+ /**
2907
+ * optional string service = 4;
2908
+ * @return {string}
2909
+ */
2910
+ proto.log.ActivityTrailItem.prototype.getService = function() {
2911
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
2912
+ };
2913
+
2914
+
2915
+ /**
2916
+ * @param {string} value
2917
+ * @return {!proto.log.ActivityTrailItem} returns this
2918
+ */
2919
+ proto.log.ActivityTrailItem.prototype.setService = function(value) {
2920
+ return jspb.Message.setProto3StringField(this, 4, value);
2921
+ };
2922
+
2923
+
2924
+ /**
2925
+ * optional string request_id = 5;
2926
+ * @return {string}
2927
+ */
2928
+ proto.log.ActivityTrailItem.prototype.getRequestId = function() {
2929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
2930
+ };
2931
+
2932
+
2933
+ /**
2934
+ * @param {string} value
2935
+ * @return {!proto.log.ActivityTrailItem} returns this
2936
+ */
2937
+ proto.log.ActivityTrailItem.prototype.setRequestId = function(value) {
2938
+ return jspb.Message.setProto3StringField(this, 5, value);
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * optional string actor_id = 6;
2944
+ * @return {string}
2945
+ */
2946
+ proto.log.ActivityTrailItem.prototype.getActorId = function() {
2947
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * @param {string} value
2953
+ * @return {!proto.log.ActivityTrailItem} returns this
2954
+ */
2955
+ proto.log.ActivityTrailItem.prototype.setActorId = function(value) {
2956
+ return jspb.Message.setProto3StringField(this, 6, value);
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * optional string actor_role = 7;
2962
+ * @return {string}
2963
+ */
2964
+ proto.log.ActivityTrailItem.prototype.getActorRole = function() {
2965
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
2966
+ };
2967
+
2968
+
2969
+ /**
2970
+ * @param {string} value
2971
+ * @return {!proto.log.ActivityTrailItem} returns this
2972
+ */
2973
+ proto.log.ActivityTrailItem.prototype.setActorRole = function(value) {
2974
+ return jspb.Message.setProto3StringField(this, 7, value);
2975
+ };
2976
+
2977
+
2978
+ /**
2979
+ * optional string entity_type = 8;
2980
+ * @return {string}
2981
+ */
2982
+ proto.log.ActivityTrailItem.prototype.getEntityType = function() {
2983
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
2984
+ };
2985
+
2986
+
2987
+ /**
2988
+ * @param {string} value
2989
+ * @return {!proto.log.ActivityTrailItem} returns this
2990
+ */
2991
+ proto.log.ActivityTrailItem.prototype.setEntityType = function(value) {
2992
+ return jspb.Message.setProto3StringField(this, 8, value);
2993
+ };
2994
+
2995
+
2996
+ /**
2997
+ * optional string entity_id = 9;
2998
+ * @return {string}
2999
+ */
3000
+ proto.log.ActivityTrailItem.prototype.getEntityId = function() {
3001
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
3002
+ };
3003
+
3004
+
3005
+ /**
3006
+ * @param {string} value
3007
+ * @return {!proto.log.ActivityTrailItem} returns this
3008
+ */
3009
+ proto.log.ActivityTrailItem.prototype.setEntityId = function(value) {
3010
+ return jspb.Message.setProto3StringField(this, 9, value);
3011
+ };
3012
+
3013
+
3014
+ /**
3015
+ * repeated ActivityChange changes = 10;
3016
+ * @return {!Array<!proto.log.ActivityChange>}
3017
+ */
3018
+ proto.log.ActivityTrailItem.prototype.getChangesList = function() {
3019
+ return /** @type{!Array<!proto.log.ActivityChange>} */ (
3020
+ jspb.Message.getRepeatedWrapperField(this, proto.log.ActivityChange, 10));
3021
+ };
3022
+
3023
+
3024
+ /**
3025
+ * @param {!Array<!proto.log.ActivityChange>} value
3026
+ * @return {!proto.log.ActivityTrailItem} returns this
3027
+ */
3028
+ proto.log.ActivityTrailItem.prototype.setChangesList = function(value) {
3029
+ return jspb.Message.setRepeatedWrapperField(this, 10, value);
3030
+ };
3031
+
3032
+
3033
+ /**
3034
+ * @param {!proto.log.ActivityChange=} opt_value
3035
+ * @param {number=} opt_index
3036
+ * @return {!proto.log.ActivityChange}
3037
+ */
3038
+ proto.log.ActivityTrailItem.prototype.addChanges = function(opt_value, opt_index) {
3039
+ return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.log.ActivityChange, opt_index);
3040
+ };
3041
+
3042
+
3043
+ /**
3044
+ * Clears the list making it empty but non-null.
3045
+ * @return {!proto.log.ActivityTrailItem} returns this
3046
+ */
3047
+ proto.log.ActivityTrailItem.prototype.clearChangesList = function() {
3048
+ return this.setChangesList([]);
3049
+ };
3050
+
3051
+
3052
+ /**
3053
+ * optional string details_json = 11;
3054
+ * @return {string}
3055
+ */
3056
+ proto.log.ActivityTrailItem.prototype.getDetailsJson = function() {
3057
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
3058
+ };
3059
+
3060
+
3061
+ /**
3062
+ * @param {string} value
3063
+ * @return {!proto.log.ActivityTrailItem} returns this
3064
+ */
3065
+ proto.log.ActivityTrailItem.prototype.setDetailsJson = function(value) {
3066
+ return jspb.Message.setField(this, 11, value);
3067
+ };
3068
+
3069
+
3070
+ /**
3071
+ * Clears the field making it undefined.
3072
+ * @return {!proto.log.ActivityTrailItem} returns this
3073
+ */
3074
+ proto.log.ActivityTrailItem.prototype.clearDetailsJson = function() {
3075
+ return jspb.Message.setField(this, 11, undefined);
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * Returns whether this field is set.
3081
+ * @return {boolean}
3082
+ */
3083
+ proto.log.ActivityTrailItem.prototype.hasDetailsJson = function() {
3084
+ return jspb.Message.getField(this, 11) != null;
3085
+ };
3086
+
3087
+
3088
+
3089
+ /**
3090
+ * List of repeated fields within this message type.
3091
+ * @private {!Array<number>}
3092
+ * @const
3093
+ */
3094
+ proto.log.ActivityTrailItemsResponse.repeatedFields_ = [1];
3095
+
3096
+
3097
+
3098
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3099
+ /**
3100
+ * Creates an object representation of this proto.
3101
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3102
+ * Optional fields that are not set will be set to undefined.
3103
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3104
+ * For the list of reserved names please see:
3105
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3106
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3107
+ * JSPB instance for transitional soy proto support:
3108
+ * http://goto/soy-param-migration
3109
+ * @return {!Object}
3110
+ */
3111
+ proto.log.ActivityTrailItemsResponse.prototype.toObject = function(opt_includeInstance) {
3112
+ return proto.log.ActivityTrailItemsResponse.toObject(opt_includeInstance, this);
3113
+ };
3114
+
3115
+
3116
+ /**
3117
+ * Static version of the {@see toObject} method.
3118
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3119
+ * the JSPB instance for transitional soy proto support:
3120
+ * http://goto/soy-param-migration
3121
+ * @param {!proto.log.ActivityTrailItemsResponse} msg The msg instance to transform.
3122
+ * @return {!Object}
3123
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3124
+ */
3125
+ proto.log.ActivityTrailItemsResponse.toObject = function(includeInstance, msg) {
3126
+ var f, obj = {
3127
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
3128
+ proto.log.ActivityTrailItem.toObject, includeInstance),
3129
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
3130
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
3131
+ };
3132
+
3133
+ if (includeInstance) {
3134
+ obj.$jspbMessageInstance = msg;
3135
+ }
3136
+ return obj;
3137
+ };
3138
+ }
3139
+
3140
+
3141
+ /**
3142
+ * Deserializes binary data (in protobuf wire format).
3143
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3144
+ * @return {!proto.log.ActivityTrailItemsResponse}
3145
+ */
3146
+ proto.log.ActivityTrailItemsResponse.deserializeBinary = function(bytes) {
3147
+ var reader = new jspb.BinaryReader(bytes);
3148
+ var msg = new proto.log.ActivityTrailItemsResponse;
3149
+ return proto.log.ActivityTrailItemsResponse.deserializeBinaryFromReader(msg, reader);
3150
+ };
3151
+
3152
+
3153
+ /**
3154
+ * Deserializes binary data (in protobuf wire format) from the
3155
+ * given reader into the given message object.
3156
+ * @param {!proto.log.ActivityTrailItemsResponse} msg The message object to deserialize into.
3157
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3158
+ * @return {!proto.log.ActivityTrailItemsResponse}
3159
+ */
3160
+ proto.log.ActivityTrailItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
3161
+ while (reader.nextField()) {
3162
+ if (reader.isEndGroup()) {
3163
+ break;
3164
+ }
3165
+ var field = reader.getFieldNumber();
3166
+ switch (field) {
3167
+ case 1:
3168
+ var value = new proto.log.ActivityTrailItem;
3169
+ reader.readMessage(value,proto.log.ActivityTrailItem.deserializeBinaryFromReader);
3170
+ msg.addItems(value);
3171
+ break;
3172
+ case 2:
3173
+ var value = /** @type {number} */ (reader.readInt32());
3174
+ msg.setTotalPages(value);
3175
+ break;
3176
+ case 3:
3177
+ var value = /** @type {number} */ (reader.readInt32());
3178
+ msg.setTotalItems(value);
3179
+ break;
3180
+ default:
3181
+ reader.skipField();
3182
+ break;
3183
+ }
3184
+ }
3185
+ return msg;
3186
+ };
3187
+
3188
+
3189
+ /**
3190
+ * Serializes the message to binary data (in protobuf wire format).
3191
+ * @return {!Uint8Array}
3192
+ */
3193
+ proto.log.ActivityTrailItemsResponse.prototype.serializeBinary = function() {
3194
+ var writer = new jspb.BinaryWriter();
3195
+ proto.log.ActivityTrailItemsResponse.serializeBinaryToWriter(this, writer);
3196
+ return writer.getResultBuffer();
3197
+ };
3198
+
3199
+
3200
+ /**
3201
+ * Serializes the given message to binary data (in protobuf wire
3202
+ * format), writing to the given BinaryWriter.
3203
+ * @param {!proto.log.ActivityTrailItemsResponse} message
3204
+ * @param {!jspb.BinaryWriter} writer
3205
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3206
+ */
3207
+ proto.log.ActivityTrailItemsResponse.serializeBinaryToWriter = function(message, writer) {
3208
+ var f = undefined;
3209
+ f = message.getItemsList();
3210
+ if (f.length > 0) {
3211
+ writer.writeRepeatedMessage(
3212
+ 1,
3213
+ f,
3214
+ proto.log.ActivityTrailItem.serializeBinaryToWriter
3215
+ );
3216
+ }
3217
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
3218
+ if (f != null) {
3219
+ writer.writeInt32(
3220
+ 2,
3221
+ f
3222
+ );
3223
+ }
3224
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
3225
+ if (f != null) {
3226
+ writer.writeInt32(
3227
+ 3,
3228
+ f
3229
+ );
3230
+ }
3231
+ };
3232
+
3233
+
3234
+ /**
3235
+ * repeated ActivityTrailItem items = 1;
3236
+ * @return {!Array<!proto.log.ActivityTrailItem>}
3237
+ */
3238
+ proto.log.ActivityTrailItemsResponse.prototype.getItemsList = function() {
3239
+ return /** @type{!Array<!proto.log.ActivityTrailItem>} */ (
3240
+ jspb.Message.getRepeatedWrapperField(this, proto.log.ActivityTrailItem, 1));
3241
+ };
3242
+
3243
+
3244
+ /**
3245
+ * @param {!Array<!proto.log.ActivityTrailItem>} value
3246
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3247
+ */
3248
+ proto.log.ActivityTrailItemsResponse.prototype.setItemsList = function(value) {
3249
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
3250
+ };
3251
+
3252
+
3253
+ /**
3254
+ * @param {!proto.log.ActivityTrailItem=} opt_value
3255
+ * @param {number=} opt_index
3256
+ * @return {!proto.log.ActivityTrailItem}
3257
+ */
3258
+ proto.log.ActivityTrailItemsResponse.prototype.addItems = function(opt_value, opt_index) {
3259
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.log.ActivityTrailItem, opt_index);
3260
+ };
3261
+
3262
+
3263
+ /**
3264
+ * Clears the list making it empty but non-null.
3265
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3266
+ */
3267
+ proto.log.ActivityTrailItemsResponse.prototype.clearItemsList = function() {
3268
+ return this.setItemsList([]);
3269
+ };
3270
+
3271
+
3272
+ /**
3273
+ * optional int32 total_pages = 2;
3274
+ * @return {number}
3275
+ */
3276
+ proto.log.ActivityTrailItemsResponse.prototype.getTotalPages = function() {
3277
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3278
+ };
3279
+
3280
+
3281
+ /**
3282
+ * @param {number} value
3283
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3284
+ */
3285
+ proto.log.ActivityTrailItemsResponse.prototype.setTotalPages = function(value) {
3286
+ return jspb.Message.setField(this, 2, value);
3287
+ };
3288
+
3289
+
3290
+ /**
3291
+ * Clears the field making it undefined.
3292
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3293
+ */
3294
+ proto.log.ActivityTrailItemsResponse.prototype.clearTotalPages = function() {
3295
+ return jspb.Message.setField(this, 2, undefined);
3296
+ };
3297
+
3298
+
3299
+ /**
3300
+ * Returns whether this field is set.
3301
+ * @return {boolean}
3302
+ */
3303
+ proto.log.ActivityTrailItemsResponse.prototype.hasTotalPages = function() {
3304
+ return jspb.Message.getField(this, 2) != null;
3305
+ };
3306
+
3307
+
3308
+ /**
3309
+ * optional int32 total_items = 3;
3310
+ * @return {number}
3311
+ */
3312
+ proto.log.ActivityTrailItemsResponse.prototype.getTotalItems = function() {
3313
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
3314
+ };
3315
+
3316
+
3317
+ /**
3318
+ * @param {number} value
3319
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3320
+ */
3321
+ proto.log.ActivityTrailItemsResponse.prototype.setTotalItems = function(value) {
3322
+ return jspb.Message.setField(this, 3, value);
3323
+ };
3324
+
3325
+
3326
+ /**
3327
+ * Clears the field making it undefined.
3328
+ * @return {!proto.log.ActivityTrailItemsResponse} returns this
3329
+ */
3330
+ proto.log.ActivityTrailItemsResponse.prototype.clearTotalItems = function() {
3331
+ return jspb.Message.setField(this, 3, undefined);
3332
+ };
3333
+
3334
+
3335
+ /**
3336
+ * Returns whether this field is set.
3337
+ * @return {boolean}
3338
+ */
3339
+ proto.log.ActivityTrailItemsResponse.prototype.hasTotalItems = function() {
3340
+ return jspb.Message.getField(this, 3) != null;
3341
+ };
3342
+
3343
+
2091
3344
  goog.object.extend(exports, proto.log);