@miradorlabs/web-grpc 3.32.0 → 3.33.0
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.
|
@@ -56,6 +56,7 @@ goog.exportSymbol('proto.gateway.web.v1.AISessionEventType', null, global);
|
|
|
56
56
|
goog.exportSymbol('proto.gateway.web.v1.AISessionFilter', null, global);
|
|
57
57
|
goog.exportSymbol('proto.gateway.web.v1.AISessionRef', null, global);
|
|
58
58
|
goog.exportSymbol('proto.gateway.web.v1.AISessionSummary', null, global);
|
|
59
|
+
goog.exportSymbol('proto.gateway.web.v1.AISpendForecastDimension', null, global);
|
|
59
60
|
goog.exportSymbol('proto.gateway.web.v1.AITokenActivityDimension', null, global);
|
|
60
61
|
goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
|
|
61
62
|
goog.exportSymbol('proto.gateway.web.v1.ActivityRhythm', null, global);
|
|
@@ -140,6 +141,13 @@ goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global)
|
|
|
140
141
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
|
|
141
142
|
goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
|
|
142
143
|
goog.exportSymbol('proto.gateway.web.v1.SnapshotCompleted', null, global);
|
|
144
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecast', null, global);
|
|
145
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecastBreakdown', null, global);
|
|
146
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecastFilter', null, global);
|
|
147
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecastGroup', null, global);
|
|
148
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecastMeasures', null, global);
|
|
149
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendForecastRequest', null, global);
|
|
150
|
+
goog.exportSymbol('proto.gateway.web.v1.SpendProjection', null, global);
|
|
143
151
|
goog.exportSymbol('proto.gateway.web.v1.StreamEntitlementsRequest', null, global);
|
|
144
152
|
goog.exportSymbol('proto.gateway.web.v1.StreamGitActivitiesRequest', null, global);
|
|
145
153
|
goog.exportSymbol('proto.gateway.web.v1.StreamSessionEventsRequest', null, global);
|
|
@@ -1283,6 +1291,153 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1283
1291
|
*/
|
|
1284
1292
|
proto.gateway.web.v1.DailyActivityMeasures.displayName = 'proto.gateway.web.v1.DailyActivityMeasures';
|
|
1285
1293
|
}
|
|
1294
|
+
/**
|
|
1295
|
+
* Generated by JsPbCodeGenerator.
|
|
1296
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1297
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1298
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1299
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1300
|
+
* valid.
|
|
1301
|
+
* @extends {jspb.Message}
|
|
1302
|
+
* @constructor
|
|
1303
|
+
*/
|
|
1304
|
+
proto.gateway.web.v1.SpendForecastRequest = function(opt_data) {
|
|
1305
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1306
|
+
};
|
|
1307
|
+
goog.inherits(proto.gateway.web.v1.SpendForecastRequest, jspb.Message);
|
|
1308
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1309
|
+
/**
|
|
1310
|
+
* @public
|
|
1311
|
+
* @override
|
|
1312
|
+
*/
|
|
1313
|
+
proto.gateway.web.v1.SpendForecastRequest.displayName = 'proto.gateway.web.v1.SpendForecastRequest';
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* Generated by JsPbCodeGenerator.
|
|
1317
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1318
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1319
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1320
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1321
|
+
* valid.
|
|
1322
|
+
* @extends {jspb.Message}
|
|
1323
|
+
* @constructor
|
|
1324
|
+
*/
|
|
1325
|
+
proto.gateway.web.v1.SpendForecastFilter = function(opt_data) {
|
|
1326
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SpendForecastFilter.repeatedFields_, null);
|
|
1327
|
+
};
|
|
1328
|
+
goog.inherits(proto.gateway.web.v1.SpendForecastFilter, jspb.Message);
|
|
1329
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1330
|
+
/**
|
|
1331
|
+
* @public
|
|
1332
|
+
* @override
|
|
1333
|
+
*/
|
|
1334
|
+
proto.gateway.web.v1.SpendForecastFilter.displayName = 'proto.gateway.web.v1.SpendForecastFilter';
|
|
1335
|
+
}
|
|
1336
|
+
/**
|
|
1337
|
+
* Generated by JsPbCodeGenerator.
|
|
1338
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1339
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1340
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1341
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1342
|
+
* valid.
|
|
1343
|
+
* @extends {jspb.Message}
|
|
1344
|
+
* @constructor
|
|
1345
|
+
*/
|
|
1346
|
+
proto.gateway.web.v1.SpendForecast = function(opt_data) {
|
|
1347
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SpendForecast.repeatedFields_, null);
|
|
1348
|
+
};
|
|
1349
|
+
goog.inherits(proto.gateway.web.v1.SpendForecast, jspb.Message);
|
|
1350
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1351
|
+
/**
|
|
1352
|
+
* @public
|
|
1353
|
+
* @override
|
|
1354
|
+
*/
|
|
1355
|
+
proto.gateway.web.v1.SpendForecast.displayName = 'proto.gateway.web.v1.SpendForecast';
|
|
1356
|
+
}
|
|
1357
|
+
/**
|
|
1358
|
+
* Generated by JsPbCodeGenerator.
|
|
1359
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1360
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1361
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1362
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1363
|
+
* valid.
|
|
1364
|
+
* @extends {jspb.Message}
|
|
1365
|
+
* @constructor
|
|
1366
|
+
*/
|
|
1367
|
+
proto.gateway.web.v1.SpendForecastBreakdown = function(opt_data) {
|
|
1368
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SpendForecastBreakdown.repeatedFields_, null);
|
|
1369
|
+
};
|
|
1370
|
+
goog.inherits(proto.gateway.web.v1.SpendForecastBreakdown, jspb.Message);
|
|
1371
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1372
|
+
/**
|
|
1373
|
+
* @public
|
|
1374
|
+
* @override
|
|
1375
|
+
*/
|
|
1376
|
+
proto.gateway.web.v1.SpendForecastBreakdown.displayName = 'proto.gateway.web.v1.SpendForecastBreakdown';
|
|
1377
|
+
}
|
|
1378
|
+
/**
|
|
1379
|
+
* Generated by JsPbCodeGenerator.
|
|
1380
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1381
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1382
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1383
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1384
|
+
* valid.
|
|
1385
|
+
* @extends {jspb.Message}
|
|
1386
|
+
* @constructor
|
|
1387
|
+
*/
|
|
1388
|
+
proto.gateway.web.v1.SpendForecastGroup = function(opt_data) {
|
|
1389
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1390
|
+
};
|
|
1391
|
+
goog.inherits(proto.gateway.web.v1.SpendForecastGroup, jspb.Message);
|
|
1392
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1393
|
+
/**
|
|
1394
|
+
* @public
|
|
1395
|
+
* @override
|
|
1396
|
+
*/
|
|
1397
|
+
proto.gateway.web.v1.SpendForecastGroup.displayName = 'proto.gateway.web.v1.SpendForecastGroup';
|
|
1398
|
+
}
|
|
1399
|
+
/**
|
|
1400
|
+
* Generated by JsPbCodeGenerator.
|
|
1401
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1402
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1403
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1404
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1405
|
+
* valid.
|
|
1406
|
+
* @extends {jspb.Message}
|
|
1407
|
+
* @constructor
|
|
1408
|
+
*/
|
|
1409
|
+
proto.gateway.web.v1.SpendForecastMeasures = function(opt_data) {
|
|
1410
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1411
|
+
};
|
|
1412
|
+
goog.inherits(proto.gateway.web.v1.SpendForecastMeasures, jspb.Message);
|
|
1413
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1414
|
+
/**
|
|
1415
|
+
* @public
|
|
1416
|
+
* @override
|
|
1417
|
+
*/
|
|
1418
|
+
proto.gateway.web.v1.SpendForecastMeasures.displayName = 'proto.gateway.web.v1.SpendForecastMeasures';
|
|
1419
|
+
}
|
|
1420
|
+
/**
|
|
1421
|
+
* Generated by JsPbCodeGenerator.
|
|
1422
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1423
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1424
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1425
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1426
|
+
* valid.
|
|
1427
|
+
* @extends {jspb.Message}
|
|
1428
|
+
* @constructor
|
|
1429
|
+
*/
|
|
1430
|
+
proto.gateway.web.v1.SpendProjection = function(opt_data) {
|
|
1431
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1432
|
+
};
|
|
1433
|
+
goog.inherits(proto.gateway.web.v1.SpendProjection, jspb.Message);
|
|
1434
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1435
|
+
/**
|
|
1436
|
+
* @public
|
|
1437
|
+
* @override
|
|
1438
|
+
*/
|
|
1439
|
+
proto.gateway.web.v1.SpendProjection.displayName = 'proto.gateway.web.v1.SpendProjection';
|
|
1440
|
+
}
|
|
1286
1441
|
/**
|
|
1287
1442
|
* Generated by JsPbCodeGenerator.
|
|
1288
1443
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -20511,8 +20666,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
20511
20666
|
* http://goto/soy-param-migration
|
|
20512
20667
|
* @return {!Object}
|
|
20513
20668
|
*/
|
|
20514
|
-
proto.gateway.web.v1.
|
|
20515
|
-
return proto.gateway.web.v1.
|
|
20669
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.toObject = function(opt_includeInstance) {
|
|
20670
|
+
return proto.gateway.web.v1.SpendForecastRequest.toObject(opt_includeInstance, this);
|
|
20516
20671
|
};
|
|
20517
20672
|
|
|
20518
20673
|
|
|
@@ -20521,16 +20676,15 @@ proto.gateway.web.v1.ActivityRhythmRequest.prototype.toObject = function(opt_inc
|
|
|
20521
20676
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
20522
20677
|
* the JSPB instance for transitional soy proto support:
|
|
20523
20678
|
* http://goto/soy-param-migration
|
|
20524
|
-
* @param {!proto.gateway.web.v1.
|
|
20679
|
+
* @param {!proto.gateway.web.v1.SpendForecastRequest} msg The msg instance to transform.
|
|
20525
20680
|
* @return {!Object}
|
|
20526
20681
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20527
20682
|
*/
|
|
20528
|
-
proto.gateway.web.v1.
|
|
20683
|
+
proto.gateway.web.v1.SpendForecastRequest.toObject = function(includeInstance, msg) {
|
|
20529
20684
|
var f, obj = {
|
|
20530
20685
|
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
20531
20686
|
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
20532
|
-
|
|
20533
|
-
timeZone: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
20687
|
+
filter: (f = msg.getFilter()) && proto.gateway.web.v1.SpendForecastFilter.toObject(includeInstance, f)
|
|
20534
20688
|
};
|
|
20535
20689
|
|
|
20536
20690
|
if (includeInstance) {
|
|
@@ -20544,23 +20698,23 @@ timeZone: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
|
20544
20698
|
/**
|
|
20545
20699
|
* Deserializes binary data (in protobuf wire format).
|
|
20546
20700
|
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
20547
|
-
* @return {!proto.gateway.web.v1.
|
|
20701
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest}
|
|
20548
20702
|
*/
|
|
20549
|
-
proto.gateway.web.v1.
|
|
20703
|
+
proto.gateway.web.v1.SpendForecastRequest.deserializeBinary = function(bytes) {
|
|
20550
20704
|
var reader = new jspb.BinaryReader(bytes);
|
|
20551
|
-
var msg = new proto.gateway.web.v1.
|
|
20552
|
-
return proto.gateway.web.v1.
|
|
20705
|
+
var msg = new proto.gateway.web.v1.SpendForecastRequest;
|
|
20706
|
+
return proto.gateway.web.v1.SpendForecastRequest.deserializeBinaryFromReader(msg, reader);
|
|
20553
20707
|
};
|
|
20554
20708
|
|
|
20555
20709
|
|
|
20556
20710
|
/**
|
|
20557
20711
|
* Deserializes binary data (in protobuf wire format) from the
|
|
20558
20712
|
* given reader into the given message object.
|
|
20559
|
-
* @param {!proto.gateway.web.v1.
|
|
20713
|
+
* @param {!proto.gateway.web.v1.SpendForecastRequest} msg The message object to deserialize into.
|
|
20560
20714
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20561
|
-
* @return {!proto.gateway.web.v1.
|
|
20715
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest}
|
|
20562
20716
|
*/
|
|
20563
|
-
proto.gateway.web.v1.
|
|
20717
|
+
proto.gateway.web.v1.SpendForecastRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
20564
20718
|
while (reader.nextField()) {
|
|
20565
20719
|
if (reader.isEndGroup()) {
|
|
20566
20720
|
break;
|
|
@@ -20576,12 +20730,9 @@ proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader = functio
|
|
|
20576
20730
|
msg.setProjectId(value);
|
|
20577
20731
|
break;
|
|
20578
20732
|
case 3:
|
|
20579
|
-
var value =
|
|
20580
|
-
|
|
20581
|
-
|
|
20582
|
-
case 4:
|
|
20583
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
20584
|
-
msg.setTimeZone(value);
|
|
20733
|
+
var value = new proto.gateway.web.v1.SpendForecastFilter;
|
|
20734
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendForecastFilter.deserializeBinaryFromReader);
|
|
20735
|
+
msg.setFilter(value);
|
|
20585
20736
|
break;
|
|
20586
20737
|
default:
|
|
20587
20738
|
reader.skipField();
|
|
@@ -20596,9 +20747,9 @@ proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader = functio
|
|
|
20596
20747
|
* Serializes the message to binary data (in protobuf wire format).
|
|
20597
20748
|
* @return {!Uint8Array}
|
|
20598
20749
|
*/
|
|
20599
|
-
proto.gateway.web.v1.
|
|
20750
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.serializeBinary = function() {
|
|
20600
20751
|
var writer = new jspb.BinaryWriter();
|
|
20601
|
-
proto.gateway.web.v1.
|
|
20752
|
+
proto.gateway.web.v1.SpendForecastRequest.serializeBinaryToWriter(this, writer);
|
|
20602
20753
|
return writer.getResultBuffer();
|
|
20603
20754
|
};
|
|
20604
20755
|
|
|
@@ -20606,11 +20757,11 @@ proto.gateway.web.v1.ActivityRhythmRequest.prototype.serializeBinary = function(
|
|
|
20606
20757
|
/**
|
|
20607
20758
|
* Serializes the given message to binary data (in protobuf wire
|
|
20608
20759
|
* format), writing to the given BinaryWriter.
|
|
20609
|
-
* @param {!proto.gateway.web.v1.
|
|
20760
|
+
* @param {!proto.gateway.web.v1.SpendForecastRequest} message
|
|
20610
20761
|
* @param {!jspb.BinaryWriter} writer
|
|
20611
20762
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20612
20763
|
*/
|
|
20613
|
-
proto.gateway.web.v1.
|
|
20764
|
+
proto.gateway.web.v1.SpendForecastRequest.serializeBinaryToWriter = function(message, writer) {
|
|
20614
20765
|
var f = undefined;
|
|
20615
20766
|
f = message.getOrganizationId();
|
|
20616
20767
|
if (f.length > 0) {
|
|
@@ -20626,18 +20777,12 @@ proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter = function(me
|
|
|
20626
20777
|
f
|
|
20627
20778
|
);
|
|
20628
20779
|
}
|
|
20629
|
-
f = message.
|
|
20630
|
-
if (f
|
|
20631
|
-
writer.
|
|
20780
|
+
f = message.getFilter();
|
|
20781
|
+
if (f != null) {
|
|
20782
|
+
writer.writeMessage(
|
|
20632
20783
|
3,
|
|
20633
|
-
f
|
|
20634
|
-
|
|
20635
|
-
}
|
|
20636
|
-
f = message.getTimeZone();
|
|
20637
|
-
if (f.length > 0) {
|
|
20638
|
-
writer.writeString(
|
|
20639
|
-
4,
|
|
20640
|
-
f
|
|
20784
|
+
f,
|
|
20785
|
+
proto.gateway.web.v1.SpendForecastFilter.serializeBinaryToWriter
|
|
20641
20786
|
);
|
|
20642
20787
|
}
|
|
20643
20788
|
};
|
|
@@ -20647,16 +20792,16 @@ proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter = function(me
|
|
|
20647
20792
|
* optional string organization_id = 1;
|
|
20648
20793
|
* @return {string}
|
|
20649
20794
|
*/
|
|
20650
|
-
proto.gateway.web.v1.
|
|
20795
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.getOrganizationId = function() {
|
|
20651
20796
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
20652
20797
|
};
|
|
20653
20798
|
|
|
20654
20799
|
|
|
20655
20800
|
/**
|
|
20656
20801
|
* @param {string} value
|
|
20657
|
-
* @return {!proto.gateway.web.v1.
|
|
20802
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest} returns this
|
|
20658
20803
|
*/
|
|
20659
|
-
proto.gateway.web.v1.
|
|
20804
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.setOrganizationId = function(value) {
|
|
20660
20805
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
20661
20806
|
};
|
|
20662
20807
|
|
|
@@ -20665,53 +20810,54 @@ proto.gateway.web.v1.ActivityRhythmRequest.prototype.setOrganizationId = functio
|
|
|
20665
20810
|
* optional string project_id = 2;
|
|
20666
20811
|
* @return {string}
|
|
20667
20812
|
*/
|
|
20668
|
-
proto.gateway.web.v1.
|
|
20813
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.getProjectId = function() {
|
|
20669
20814
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
20670
20815
|
};
|
|
20671
20816
|
|
|
20672
20817
|
|
|
20673
20818
|
/**
|
|
20674
20819
|
* @param {string} value
|
|
20675
|
-
* @return {!proto.gateway.web.v1.
|
|
20820
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest} returns this
|
|
20676
20821
|
*/
|
|
20677
|
-
proto.gateway.web.v1.
|
|
20822
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.setProjectId = function(value) {
|
|
20678
20823
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
20679
20824
|
};
|
|
20680
20825
|
|
|
20681
20826
|
|
|
20682
20827
|
/**
|
|
20683
|
-
* optional
|
|
20684
|
-
* @return {
|
|
20828
|
+
* optional SpendForecastFilter filter = 3;
|
|
20829
|
+
* @return {?proto.gateway.web.v1.SpendForecastFilter}
|
|
20685
20830
|
*/
|
|
20686
|
-
proto.gateway.web.v1.
|
|
20687
|
-
return /** @type
|
|
20831
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.getFilter = function() {
|
|
20832
|
+
return /** @type{?proto.gateway.web.v1.SpendForecastFilter} */ (
|
|
20833
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpendForecastFilter, 3));
|
|
20688
20834
|
};
|
|
20689
20835
|
|
|
20690
20836
|
|
|
20691
20837
|
/**
|
|
20692
|
-
* @param {
|
|
20693
|
-
* @return {!proto.gateway.web.v1.
|
|
20694
|
-
|
|
20695
|
-
proto.gateway.web.v1.
|
|
20696
|
-
return jspb.Message.
|
|
20838
|
+
* @param {?proto.gateway.web.v1.SpendForecastFilter|undefined} value
|
|
20839
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest} returns this
|
|
20840
|
+
*/
|
|
20841
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.setFilter = function(value) {
|
|
20842
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
20697
20843
|
};
|
|
20698
20844
|
|
|
20699
20845
|
|
|
20700
20846
|
/**
|
|
20701
|
-
*
|
|
20702
|
-
* @return {
|
|
20847
|
+
* Clears the message field making it undefined.
|
|
20848
|
+
* @return {!proto.gateway.web.v1.SpendForecastRequest} returns this
|
|
20703
20849
|
*/
|
|
20704
|
-
proto.gateway.web.v1.
|
|
20705
|
-
return
|
|
20850
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.clearFilter = function() {
|
|
20851
|
+
return this.setFilter(undefined);
|
|
20706
20852
|
};
|
|
20707
20853
|
|
|
20708
20854
|
|
|
20709
20855
|
/**
|
|
20710
|
-
*
|
|
20711
|
-
* @return {
|
|
20856
|
+
* Returns whether this field is set.
|
|
20857
|
+
* @return {boolean}
|
|
20712
20858
|
*/
|
|
20713
|
-
proto.gateway.web.v1.
|
|
20714
|
-
return jspb.Message.
|
|
20859
|
+
proto.gateway.web.v1.SpendForecastRequest.prototype.hasFilter = function() {
|
|
20860
|
+
return jspb.Message.getField(this, 3) != null;
|
|
20715
20861
|
};
|
|
20716
20862
|
|
|
20717
20863
|
|
|
@@ -20721,7 +20867,7 @@ proto.gateway.web.v1.ActivityRhythmRequest.prototype.setTimeZone = function(valu
|
|
|
20721
20867
|
* @private {!Array<number>}
|
|
20722
20868
|
* @const
|
|
20723
20869
|
*/
|
|
20724
|
-
proto.gateway.web.v1.
|
|
20870
|
+
proto.gateway.web.v1.SpendForecastFilter.repeatedFields_ = [1];
|
|
20725
20871
|
|
|
20726
20872
|
|
|
20727
20873
|
|
|
@@ -20738,8 +20884,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
20738
20884
|
* http://goto/soy-param-migration
|
|
20739
20885
|
* @return {!Object}
|
|
20740
20886
|
*/
|
|
20741
|
-
proto.gateway.web.v1.
|
|
20742
|
-
return proto.gateway.web.v1.
|
|
20887
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.toObject = function(opt_includeInstance) {
|
|
20888
|
+
return proto.gateway.web.v1.SpendForecastFilter.toObject(opt_includeInstance, this);
|
|
20743
20889
|
};
|
|
20744
20890
|
|
|
20745
20891
|
|
|
@@ -20748,18 +20894,13 @@ proto.gateway.web.v1.ActivityRhythm.prototype.toObject = function(opt_includeIns
|
|
|
20748
20894
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
20749
20895
|
* the JSPB instance for transitional soy proto support:
|
|
20750
20896
|
* http://goto/soy-param-migration
|
|
20751
|
-
* @param {!proto.gateway.web.v1.
|
|
20897
|
+
* @param {!proto.gateway.web.v1.SpendForecastFilter} msg The msg instance to transform.
|
|
20752
20898
|
* @return {!Object}
|
|
20753
20899
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20754
20900
|
*/
|
|
20755
|
-
proto.gateway.web.v1.
|
|
20901
|
+
proto.gateway.web.v1.SpendForecastFilter.toObject = function(includeInstance, msg) {
|
|
20756
20902
|
var f, obj = {
|
|
20757
|
-
|
|
20758
|
-
proto.gateway.web.v1.ActivityRhythmBucket.toObject, includeInstance),
|
|
20759
|
-
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
20760
|
-
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
20761
|
-
asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
20762
|
-
timeZone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
20903
|
+
fundingModesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
20763
20904
|
};
|
|
20764
20905
|
|
|
20765
20906
|
if (includeInstance) {
|
|
@@ -20773,23 +20914,23 @@ timeZone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
|
20773
20914
|
/**
|
|
20774
20915
|
* Deserializes binary data (in protobuf wire format).
|
|
20775
20916
|
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
20776
|
-
* @return {!proto.gateway.web.v1.
|
|
20917
|
+
* @return {!proto.gateway.web.v1.SpendForecastFilter}
|
|
20777
20918
|
*/
|
|
20778
|
-
proto.gateway.web.v1.
|
|
20919
|
+
proto.gateway.web.v1.SpendForecastFilter.deserializeBinary = function(bytes) {
|
|
20779
20920
|
var reader = new jspb.BinaryReader(bytes);
|
|
20780
|
-
var msg = new proto.gateway.web.v1.
|
|
20781
|
-
return proto.gateway.web.v1.
|
|
20921
|
+
var msg = new proto.gateway.web.v1.SpendForecastFilter;
|
|
20922
|
+
return proto.gateway.web.v1.SpendForecastFilter.deserializeBinaryFromReader(msg, reader);
|
|
20782
20923
|
};
|
|
20783
20924
|
|
|
20784
20925
|
|
|
20785
20926
|
/**
|
|
20786
20927
|
* Deserializes binary data (in protobuf wire format) from the
|
|
20787
20928
|
* given reader into the given message object.
|
|
20788
|
-
* @param {!proto.gateway.web.v1.
|
|
20929
|
+
* @param {!proto.gateway.web.v1.SpendForecastFilter} msg The message object to deserialize into.
|
|
20789
20930
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
20790
|
-
* @return {!proto.gateway.web.v1.
|
|
20931
|
+
* @return {!proto.gateway.web.v1.SpendForecastFilter}
|
|
20791
20932
|
*/
|
|
20792
|
-
proto.gateway.web.v1.
|
|
20933
|
+
proto.gateway.web.v1.SpendForecastFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
20793
20934
|
while (reader.nextField()) {
|
|
20794
20935
|
if (reader.isEndGroup()) {
|
|
20795
20936
|
break;
|
|
@@ -20797,28 +20938,7 @@ proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader = function(msg,
|
|
|
20797
20938
|
var field = reader.getFieldNumber();
|
|
20798
20939
|
switch (field) {
|
|
20799
20940
|
case 1:
|
|
20800
|
-
|
|
20801
|
-
reader.readMessage(value,proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader);
|
|
20802
|
-
msg.addBuckets(value);
|
|
20803
|
-
break;
|
|
20804
|
-
case 2:
|
|
20805
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
20806
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
20807
|
-
msg.setWindowStart(value);
|
|
20808
|
-
break;
|
|
20809
|
-
case 3:
|
|
20810
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
20811
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
20812
|
-
msg.setWindowEnd(value);
|
|
20813
|
-
break;
|
|
20814
|
-
case 4:
|
|
20815
|
-
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
20816
|
-
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
20817
|
-
msg.setAsOf(value);
|
|
20818
|
-
break;
|
|
20819
|
-
case 5:
|
|
20820
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
20821
|
-
msg.setTimeZone(value);
|
|
20941
|
+
reader.readPackableEnumInto(msg.getFundingModesList());
|
|
20822
20942
|
break;
|
|
20823
20943
|
default:
|
|
20824
20944
|
reader.skipField();
|
|
@@ -20833,9 +20953,9 @@ proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader = function(msg,
|
|
|
20833
20953
|
* Serializes the message to binary data (in protobuf wire format).
|
|
20834
20954
|
* @return {!Uint8Array}
|
|
20835
20955
|
*/
|
|
20836
|
-
proto.gateway.web.v1.
|
|
20956
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.serializeBinary = function() {
|
|
20837
20957
|
var writer = new jspb.BinaryWriter();
|
|
20838
|
-
proto.gateway.web.v1.
|
|
20958
|
+
proto.gateway.web.v1.SpendForecastFilter.serializeBinaryToWriter(this, writer);
|
|
20839
20959
|
return writer.getResultBuffer();
|
|
20840
20960
|
};
|
|
20841
20961
|
|
|
@@ -20843,48 +20963,16 @@ proto.gateway.web.v1.ActivityRhythm.prototype.serializeBinary = function() {
|
|
|
20843
20963
|
/**
|
|
20844
20964
|
* Serializes the given message to binary data (in protobuf wire
|
|
20845
20965
|
* format), writing to the given BinaryWriter.
|
|
20846
|
-
* @param {!proto.gateway.web.v1.
|
|
20966
|
+
* @param {!proto.gateway.web.v1.SpendForecastFilter} message
|
|
20847
20967
|
* @param {!jspb.BinaryWriter} writer
|
|
20848
20968
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
20849
20969
|
*/
|
|
20850
|
-
proto.gateway.web.v1.
|
|
20970
|
+
proto.gateway.web.v1.SpendForecastFilter.serializeBinaryToWriter = function(message, writer) {
|
|
20851
20971
|
var f = undefined;
|
|
20852
|
-
f = message.
|
|
20972
|
+
f = message.getFundingModesList();
|
|
20853
20973
|
if (f.length > 0) {
|
|
20854
|
-
writer.
|
|
20974
|
+
writer.writePackedEnum(
|
|
20855
20975
|
1,
|
|
20856
|
-
f,
|
|
20857
|
-
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter
|
|
20858
|
-
);
|
|
20859
|
-
}
|
|
20860
|
-
f = message.getWindowStart();
|
|
20861
|
-
if (f != null) {
|
|
20862
|
-
writer.writeMessage(
|
|
20863
|
-
2,
|
|
20864
|
-
f,
|
|
20865
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
20866
|
-
);
|
|
20867
|
-
}
|
|
20868
|
-
f = message.getWindowEnd();
|
|
20869
|
-
if (f != null) {
|
|
20870
|
-
writer.writeMessage(
|
|
20871
|
-
3,
|
|
20872
|
-
f,
|
|
20873
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
20874
|
-
);
|
|
20875
|
-
}
|
|
20876
|
-
f = message.getAsOf();
|
|
20877
|
-
if (f != null) {
|
|
20878
|
-
writer.writeMessage(
|
|
20879
|
-
4,
|
|
20880
|
-
f,
|
|
20881
|
-
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
20882
|
-
);
|
|
20883
|
-
}
|
|
20884
|
-
f = message.getTimeZone();
|
|
20885
|
-
if (f.length > 0) {
|
|
20886
|
-
writer.writeString(
|
|
20887
|
-
5,
|
|
20888
20976
|
f
|
|
20889
20977
|
);
|
|
20890
20978
|
}
|
|
@@ -20892,172 +20980,49 @@ proto.gateway.web.v1.ActivityRhythm.serializeBinaryToWriter = function(message,
|
|
|
20892
20980
|
|
|
20893
20981
|
|
|
20894
20982
|
/**
|
|
20895
|
-
* repeated
|
|
20896
|
-
* @return {!Array<!proto.gateway.web.v1.
|
|
20983
|
+
* repeated AIFundingMode funding_modes = 1;
|
|
20984
|
+
* @return {!Array<!proto.gateway.web.v1.AIFundingMode>}
|
|
20897
20985
|
*/
|
|
20898
|
-
proto.gateway.web.v1.
|
|
20899
|
-
return /** @type{!Array<!proto.gateway.web.v1.
|
|
20900
|
-
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ActivityRhythmBucket, 1));
|
|
20986
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.getFundingModesList = function() {
|
|
20987
|
+
return /** @type {!Array<!proto.gateway.web.v1.AIFundingMode>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
20901
20988
|
};
|
|
20902
20989
|
|
|
20903
20990
|
|
|
20904
20991
|
/**
|
|
20905
|
-
* @param {!Array<!proto.gateway.web.v1.
|
|
20906
|
-
* @return {!proto.gateway.web.v1.
|
|
20907
|
-
*/
|
|
20908
|
-
proto.gateway.web.v1.
|
|
20909
|
-
return jspb.Message.
|
|
20992
|
+
* @param {!Array<!proto.gateway.web.v1.AIFundingMode>} value
|
|
20993
|
+
* @return {!proto.gateway.web.v1.SpendForecastFilter} returns this
|
|
20994
|
+
*/
|
|
20995
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.setFundingModesList = function(value) {
|
|
20996
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
20910
20997
|
};
|
|
20911
20998
|
|
|
20912
20999
|
|
|
20913
21000
|
/**
|
|
20914
|
-
* @param {!proto.gateway.web.v1.
|
|
21001
|
+
* @param {!proto.gateway.web.v1.AIFundingMode} value
|
|
20915
21002
|
* @param {number=} opt_index
|
|
20916
|
-
* @return {!proto.gateway.web.v1.
|
|
21003
|
+
* @return {!proto.gateway.web.v1.SpendForecastFilter} returns this
|
|
20917
21004
|
*/
|
|
20918
|
-
proto.gateway.web.v1.
|
|
20919
|
-
return jspb.Message.
|
|
21005
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.addFundingModes = function(value, opt_index) {
|
|
21006
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
20920
21007
|
};
|
|
20921
21008
|
|
|
20922
21009
|
|
|
20923
21010
|
/**
|
|
20924
21011
|
* Clears the list making it empty but non-null.
|
|
20925
|
-
* @return {!proto.gateway.web.v1.
|
|
20926
|
-
*/
|
|
20927
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.clearBucketsList = function() {
|
|
20928
|
-
return this.setBucketsList([]);
|
|
20929
|
-
};
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
/**
|
|
20933
|
-
* optional google.protobuf.Timestamp window_start = 2;
|
|
20934
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
20935
|
-
*/
|
|
20936
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowStart = function() {
|
|
20937
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
20938
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
20939
|
-
};
|
|
20940
|
-
|
|
20941
|
-
|
|
20942
|
-
/**
|
|
20943
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
20944
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
20945
|
-
*/
|
|
20946
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowStart = function(value) {
|
|
20947
|
-
return jspb.Message.setWrapperField(this, 2, value);
|
|
20948
|
-
};
|
|
20949
|
-
|
|
20950
|
-
|
|
20951
|
-
/**
|
|
20952
|
-
* Clears the message field making it undefined.
|
|
20953
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
20954
|
-
*/
|
|
20955
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowStart = function() {
|
|
20956
|
-
return this.setWindowStart(undefined);
|
|
20957
|
-
};
|
|
20958
|
-
|
|
20959
|
-
|
|
20960
|
-
/**
|
|
20961
|
-
* Returns whether this field is set.
|
|
20962
|
-
* @return {boolean}
|
|
20963
|
-
*/
|
|
20964
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowStart = function() {
|
|
20965
|
-
return jspb.Message.getField(this, 2) != null;
|
|
20966
|
-
};
|
|
20967
|
-
|
|
20968
|
-
|
|
20969
|
-
/**
|
|
20970
|
-
* optional google.protobuf.Timestamp window_end = 3;
|
|
20971
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
20972
|
-
*/
|
|
20973
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowEnd = function() {
|
|
20974
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
20975
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
20976
|
-
};
|
|
20977
|
-
|
|
20978
|
-
|
|
20979
|
-
/**
|
|
20980
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
20981
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
20982
|
-
*/
|
|
20983
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowEnd = function(value) {
|
|
20984
|
-
return jspb.Message.setWrapperField(this, 3, value);
|
|
20985
|
-
};
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
/**
|
|
20989
|
-
* Clears the message field making it undefined.
|
|
20990
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
20991
|
-
*/
|
|
20992
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowEnd = function() {
|
|
20993
|
-
return this.setWindowEnd(undefined);
|
|
20994
|
-
};
|
|
20995
|
-
|
|
20996
|
-
|
|
20997
|
-
/**
|
|
20998
|
-
* Returns whether this field is set.
|
|
20999
|
-
* @return {boolean}
|
|
21000
|
-
*/
|
|
21001
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowEnd = function() {
|
|
21002
|
-
return jspb.Message.getField(this, 3) != null;
|
|
21003
|
-
};
|
|
21004
|
-
|
|
21005
|
-
|
|
21006
|
-
/**
|
|
21007
|
-
* optional google.protobuf.Timestamp as_of = 4;
|
|
21008
|
-
* @return {?proto.google.protobuf.Timestamp}
|
|
21009
|
-
*/
|
|
21010
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.getAsOf = function() {
|
|
21011
|
-
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
21012
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
21013
|
-
};
|
|
21014
|
-
|
|
21015
|
-
|
|
21016
|
-
/**
|
|
21017
|
-
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
21018
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
21019
|
-
*/
|
|
21020
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.setAsOf = function(value) {
|
|
21021
|
-
return jspb.Message.setWrapperField(this, 4, value);
|
|
21022
|
-
};
|
|
21023
|
-
|
|
21024
|
-
|
|
21025
|
-
/**
|
|
21026
|
-
* Clears the message field making it undefined.
|
|
21027
|
-
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
21028
|
-
*/
|
|
21029
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.clearAsOf = function() {
|
|
21030
|
-
return this.setAsOf(undefined);
|
|
21031
|
-
};
|
|
21032
|
-
|
|
21033
|
-
|
|
21034
|
-
/**
|
|
21035
|
-
* Returns whether this field is set.
|
|
21036
|
-
* @return {boolean}
|
|
21012
|
+
* @return {!proto.gateway.web.v1.SpendForecastFilter} returns this
|
|
21037
21013
|
*/
|
|
21038
|
-
proto.gateway.web.v1.
|
|
21039
|
-
return
|
|
21014
|
+
proto.gateway.web.v1.SpendForecastFilter.prototype.clearFundingModesList = function() {
|
|
21015
|
+
return this.setFundingModesList([]);
|
|
21040
21016
|
};
|
|
21041
21017
|
|
|
21042
21018
|
|
|
21043
|
-
/**
|
|
21044
|
-
* optional string time_zone = 5;
|
|
21045
|
-
* @return {string}
|
|
21046
|
-
*/
|
|
21047
|
-
proto.gateway.web.v1.ActivityRhythm.prototype.getTimeZone = function() {
|
|
21048
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
21049
|
-
};
|
|
21050
|
-
|
|
21051
21019
|
|
|
21052
21020
|
/**
|
|
21053
|
-
*
|
|
21054
|
-
* @
|
|
21021
|
+
* List of repeated fields within this message type.
|
|
21022
|
+
* @private {!Array<number>}
|
|
21023
|
+
* @const
|
|
21055
21024
|
*/
|
|
21056
|
-
proto.gateway.web.v1.
|
|
21057
|
-
return jspb.Message.setProto3StringField(this, 5, value);
|
|
21058
|
-
};
|
|
21059
|
-
|
|
21060
|
-
|
|
21025
|
+
proto.gateway.web.v1.SpendForecast.repeatedFields_ = [7];
|
|
21061
21026
|
|
|
21062
21027
|
|
|
21063
21028
|
|
|
@@ -21074,8 +21039,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
21074
21039
|
* http://goto/soy-param-migration
|
|
21075
21040
|
* @return {!Object}
|
|
21076
21041
|
*/
|
|
21077
|
-
proto.gateway.web.v1.
|
|
21078
|
-
return proto.gateway.web.v1.
|
|
21042
|
+
proto.gateway.web.v1.SpendForecast.prototype.toObject = function(opt_includeInstance) {
|
|
21043
|
+
return proto.gateway.web.v1.SpendForecast.toObject(opt_includeInstance, this);
|
|
21079
21044
|
};
|
|
21080
21045
|
|
|
21081
21046
|
|
|
@@ -21084,23 +21049,21 @@ proto.gateway.web.v1.ActivityRhythmBucket.prototype.toObject = function(opt_incl
|
|
|
21084
21049
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21085
21050
|
* the JSPB instance for transitional soy proto support:
|
|
21086
21051
|
* http://goto/soy-param-migration
|
|
21087
|
-
* @param {!proto.gateway.web.v1.
|
|
21052
|
+
* @param {!proto.gateway.web.v1.SpendForecast} msg The msg instance to transform.
|
|
21088
21053
|
* @return {!Object}
|
|
21089
21054
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21090
21055
|
*/
|
|
21091
|
-
proto.gateway.web.v1.
|
|
21056
|
+
proto.gateway.web.v1.SpendForecast.toObject = function(includeInstance, msg) {
|
|
21092
21057
|
var f, obj = {
|
|
21093
|
-
|
|
21094
|
-
|
|
21095
|
-
|
|
21096
|
-
|
|
21097
|
-
|
|
21098
|
-
|
|
21099
|
-
|
|
21100
|
-
|
|
21101
|
-
|
|
21102
|
-
activeUsers: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
21103
|
-
topTool: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
21058
|
+
periodStart: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
21059
|
+
periodEnd: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
21060
|
+
today: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
21061
|
+
coverageStart: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
21062
|
+
historyWeeks: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
21063
|
+
total: (f = msg.getTotal()) && proto.gateway.web.v1.SpendForecastMeasures.toObject(includeInstance, f),
|
|
21064
|
+
breakdownsList: jspb.Message.toObjectList(msg.getBreakdownsList(),
|
|
21065
|
+
proto.gateway.web.v1.SpendForecastBreakdown.toObject, includeInstance),
|
|
21066
|
+
asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
21104
21067
|
};
|
|
21105
21068
|
|
|
21106
21069
|
if (includeInstance) {
|
|
@@ -21114,23 +21077,23 @@ topTool: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
|
21114
21077
|
/**
|
|
21115
21078
|
* Deserializes binary data (in protobuf wire format).
|
|
21116
21079
|
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
21117
|
-
* @return {!proto.gateway.web.v1.
|
|
21080
|
+
* @return {!proto.gateway.web.v1.SpendForecast}
|
|
21118
21081
|
*/
|
|
21119
|
-
proto.gateway.web.v1.
|
|
21082
|
+
proto.gateway.web.v1.SpendForecast.deserializeBinary = function(bytes) {
|
|
21120
21083
|
var reader = new jspb.BinaryReader(bytes);
|
|
21121
|
-
var msg = new proto.gateway.web.v1.
|
|
21122
|
-
return proto.gateway.web.v1.
|
|
21084
|
+
var msg = new proto.gateway.web.v1.SpendForecast;
|
|
21085
|
+
return proto.gateway.web.v1.SpendForecast.deserializeBinaryFromReader(msg, reader);
|
|
21123
21086
|
};
|
|
21124
21087
|
|
|
21125
21088
|
|
|
21126
21089
|
/**
|
|
21127
21090
|
* Deserializes binary data (in protobuf wire format) from the
|
|
21128
21091
|
* given reader into the given message object.
|
|
21129
|
-
* @param {!proto.gateway.web.v1.
|
|
21092
|
+
* @param {!proto.gateway.web.v1.SpendForecast} msg The message object to deserialize into.
|
|
21130
21093
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
21131
|
-
* @return {!proto.gateway.web.v1.
|
|
21094
|
+
* @return {!proto.gateway.web.v1.SpendForecast}
|
|
21132
21095
|
*/
|
|
21133
|
-
proto.gateway.web.v1.
|
|
21096
|
+
proto.gateway.web.v1.SpendForecast.deserializeBinaryFromReader = function(msg, reader) {
|
|
21134
21097
|
while (reader.nextField()) {
|
|
21135
21098
|
if (reader.isEndGroup()) {
|
|
21136
21099
|
break;
|
|
@@ -21138,49 +21101,39 @@ proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader = function
|
|
|
21138
21101
|
var field = reader.getFieldNumber();
|
|
21139
21102
|
switch (field) {
|
|
21140
21103
|
case 1:
|
|
21141
|
-
var value = /** @type {
|
|
21142
|
-
msg.
|
|
21104
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21105
|
+
msg.setPeriodStart(value);
|
|
21143
21106
|
break;
|
|
21144
21107
|
case 2:
|
|
21145
|
-
var value = /** @type {
|
|
21146
|
-
msg.
|
|
21108
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21109
|
+
msg.setPeriodEnd(value);
|
|
21147
21110
|
break;
|
|
21148
21111
|
case 3:
|
|
21149
|
-
var value = /** @type {
|
|
21150
|
-
msg.
|
|
21112
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21113
|
+
msg.setToday(value);
|
|
21151
21114
|
break;
|
|
21152
21115
|
case 4:
|
|
21153
|
-
var value =
|
|
21154
|
-
|
|
21155
|
-
msg.setModelUsage(value);
|
|
21116
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21117
|
+
msg.setCoverageStart(value);
|
|
21156
21118
|
break;
|
|
21157
21119
|
case 5:
|
|
21158
|
-
var value = /** @type {number} */ (reader.
|
|
21159
|
-
msg.
|
|
21120
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
21121
|
+
msg.setHistoryWeeks(value);
|
|
21160
21122
|
break;
|
|
21161
21123
|
case 6:
|
|
21162
|
-
var value =
|
|
21163
|
-
|
|
21124
|
+
var value = new proto.gateway.web.v1.SpendForecastMeasures;
|
|
21125
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendForecastMeasures.deserializeBinaryFromReader);
|
|
21126
|
+
msg.setTotal(value);
|
|
21164
21127
|
break;
|
|
21165
21128
|
case 7:
|
|
21166
|
-
var value =
|
|
21167
|
-
|
|
21129
|
+
var value = new proto.gateway.web.v1.SpendForecastBreakdown;
|
|
21130
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendForecastBreakdown.deserializeBinaryFromReader);
|
|
21131
|
+
msg.addBreakdowns(value);
|
|
21168
21132
|
break;
|
|
21169
21133
|
case 8:
|
|
21170
|
-
var value =
|
|
21171
|
-
|
|
21172
|
-
|
|
21173
|
-
case 9:
|
|
21174
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
21175
|
-
msg.setSessions(value);
|
|
21176
|
-
break;
|
|
21177
|
-
case 10:
|
|
21178
|
-
var value = /** @type {number} */ (reader.readUint64());
|
|
21179
|
-
msg.setActiveUsers(value);
|
|
21180
|
-
break;
|
|
21181
|
-
case 11:
|
|
21182
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21183
|
-
msg.setTopTool(value);
|
|
21134
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
21135
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
21136
|
+
msg.setAsOf(value);
|
|
21184
21137
|
break;
|
|
21185
21138
|
default:
|
|
21186
21139
|
reader.skipField();
|
|
@@ -21195,9 +21148,9 @@ proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader = function
|
|
|
21195
21148
|
* Serializes the message to binary data (in protobuf wire format).
|
|
21196
21149
|
* @return {!Uint8Array}
|
|
21197
21150
|
*/
|
|
21198
|
-
proto.gateway.web.v1.
|
|
21151
|
+
proto.gateway.web.v1.SpendForecast.prototype.serializeBinary = function() {
|
|
21199
21152
|
var writer = new jspb.BinaryWriter();
|
|
21200
|
-
proto.gateway.web.v1.
|
|
21153
|
+
proto.gateway.web.v1.SpendForecast.serializeBinaryToWriter(this, writer);
|
|
21201
21154
|
return writer.getResultBuffer();
|
|
21202
21155
|
};
|
|
21203
21156
|
|
|
@@ -21205,38 +21158,1760 @@ proto.gateway.web.v1.ActivityRhythmBucket.prototype.serializeBinary = function()
|
|
|
21205
21158
|
/**
|
|
21206
21159
|
* Serializes the given message to binary data (in protobuf wire
|
|
21207
21160
|
* format), writing to the given BinaryWriter.
|
|
21208
|
-
* @param {!proto.gateway.web.v1.
|
|
21161
|
+
* @param {!proto.gateway.web.v1.SpendForecast} message
|
|
21209
21162
|
* @param {!jspb.BinaryWriter} writer
|
|
21210
21163
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21211
21164
|
*/
|
|
21212
|
-
proto.gateway.web.v1.
|
|
21165
|
+
proto.gateway.web.v1.SpendForecast.serializeBinaryToWriter = function(message, writer) {
|
|
21213
21166
|
var f = undefined;
|
|
21214
|
-
f = message.
|
|
21215
|
-
if (f
|
|
21216
|
-
writer.
|
|
21167
|
+
f = message.getPeriodStart();
|
|
21168
|
+
if (f.length > 0) {
|
|
21169
|
+
writer.writeString(
|
|
21217
21170
|
1,
|
|
21218
21171
|
f
|
|
21219
21172
|
);
|
|
21220
21173
|
}
|
|
21221
|
-
f = message.
|
|
21222
|
-
if (f
|
|
21223
|
-
writer.
|
|
21174
|
+
f = message.getPeriodEnd();
|
|
21175
|
+
if (f.length > 0) {
|
|
21176
|
+
writer.writeString(
|
|
21224
21177
|
2,
|
|
21225
21178
|
f
|
|
21226
21179
|
);
|
|
21227
21180
|
}
|
|
21228
|
-
f = message.
|
|
21229
|
-
if (f
|
|
21230
|
-
writer.
|
|
21181
|
+
f = message.getToday();
|
|
21182
|
+
if (f.length > 0) {
|
|
21183
|
+
writer.writeString(
|
|
21231
21184
|
3,
|
|
21232
21185
|
f
|
|
21233
21186
|
);
|
|
21234
21187
|
}
|
|
21235
|
-
f = message.
|
|
21236
|
-
if (f
|
|
21237
|
-
writer.
|
|
21238
|
-
4,
|
|
21239
|
-
f
|
|
21188
|
+
f = message.getCoverageStart();
|
|
21189
|
+
if (f.length > 0) {
|
|
21190
|
+
writer.writeString(
|
|
21191
|
+
4,
|
|
21192
|
+
f
|
|
21193
|
+
);
|
|
21194
|
+
}
|
|
21195
|
+
f = message.getHistoryWeeks();
|
|
21196
|
+
if (f !== 0) {
|
|
21197
|
+
writer.writeUint32(
|
|
21198
|
+
5,
|
|
21199
|
+
f
|
|
21200
|
+
);
|
|
21201
|
+
}
|
|
21202
|
+
f = message.getTotal();
|
|
21203
|
+
if (f != null) {
|
|
21204
|
+
writer.writeMessage(
|
|
21205
|
+
6,
|
|
21206
|
+
f,
|
|
21207
|
+
proto.gateway.web.v1.SpendForecastMeasures.serializeBinaryToWriter
|
|
21208
|
+
);
|
|
21209
|
+
}
|
|
21210
|
+
f = message.getBreakdownsList();
|
|
21211
|
+
if (f.length > 0) {
|
|
21212
|
+
writer.writeRepeatedMessage(
|
|
21213
|
+
7,
|
|
21214
|
+
f,
|
|
21215
|
+
proto.gateway.web.v1.SpendForecastBreakdown.serializeBinaryToWriter
|
|
21216
|
+
);
|
|
21217
|
+
}
|
|
21218
|
+
f = message.getAsOf();
|
|
21219
|
+
if (f != null) {
|
|
21220
|
+
writer.writeMessage(
|
|
21221
|
+
8,
|
|
21222
|
+
f,
|
|
21223
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
21224
|
+
);
|
|
21225
|
+
}
|
|
21226
|
+
};
|
|
21227
|
+
|
|
21228
|
+
|
|
21229
|
+
/**
|
|
21230
|
+
* optional string period_start = 1;
|
|
21231
|
+
* @return {string}
|
|
21232
|
+
*/
|
|
21233
|
+
proto.gateway.web.v1.SpendForecast.prototype.getPeriodStart = function() {
|
|
21234
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
21235
|
+
};
|
|
21236
|
+
|
|
21237
|
+
|
|
21238
|
+
/**
|
|
21239
|
+
* @param {string} value
|
|
21240
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21241
|
+
*/
|
|
21242
|
+
proto.gateway.web.v1.SpendForecast.prototype.setPeriodStart = function(value) {
|
|
21243
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
21244
|
+
};
|
|
21245
|
+
|
|
21246
|
+
|
|
21247
|
+
/**
|
|
21248
|
+
* optional string period_end = 2;
|
|
21249
|
+
* @return {string}
|
|
21250
|
+
*/
|
|
21251
|
+
proto.gateway.web.v1.SpendForecast.prototype.getPeriodEnd = function() {
|
|
21252
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
21253
|
+
};
|
|
21254
|
+
|
|
21255
|
+
|
|
21256
|
+
/**
|
|
21257
|
+
* @param {string} value
|
|
21258
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21259
|
+
*/
|
|
21260
|
+
proto.gateway.web.v1.SpendForecast.prototype.setPeriodEnd = function(value) {
|
|
21261
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
21262
|
+
};
|
|
21263
|
+
|
|
21264
|
+
|
|
21265
|
+
/**
|
|
21266
|
+
* optional string today = 3;
|
|
21267
|
+
* @return {string}
|
|
21268
|
+
*/
|
|
21269
|
+
proto.gateway.web.v1.SpendForecast.prototype.getToday = function() {
|
|
21270
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
21271
|
+
};
|
|
21272
|
+
|
|
21273
|
+
|
|
21274
|
+
/**
|
|
21275
|
+
* @param {string} value
|
|
21276
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21277
|
+
*/
|
|
21278
|
+
proto.gateway.web.v1.SpendForecast.prototype.setToday = function(value) {
|
|
21279
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
21280
|
+
};
|
|
21281
|
+
|
|
21282
|
+
|
|
21283
|
+
/**
|
|
21284
|
+
* optional string coverage_start = 4;
|
|
21285
|
+
* @return {string}
|
|
21286
|
+
*/
|
|
21287
|
+
proto.gateway.web.v1.SpendForecast.prototype.getCoverageStart = function() {
|
|
21288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
21289
|
+
};
|
|
21290
|
+
|
|
21291
|
+
|
|
21292
|
+
/**
|
|
21293
|
+
* @param {string} value
|
|
21294
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21295
|
+
*/
|
|
21296
|
+
proto.gateway.web.v1.SpendForecast.prototype.setCoverageStart = function(value) {
|
|
21297
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
21298
|
+
};
|
|
21299
|
+
|
|
21300
|
+
|
|
21301
|
+
/**
|
|
21302
|
+
* optional uint32 history_weeks = 5;
|
|
21303
|
+
* @return {number}
|
|
21304
|
+
*/
|
|
21305
|
+
proto.gateway.web.v1.SpendForecast.prototype.getHistoryWeeks = function() {
|
|
21306
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
21307
|
+
};
|
|
21308
|
+
|
|
21309
|
+
|
|
21310
|
+
/**
|
|
21311
|
+
* @param {number} value
|
|
21312
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21313
|
+
*/
|
|
21314
|
+
proto.gateway.web.v1.SpendForecast.prototype.setHistoryWeeks = function(value) {
|
|
21315
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
21316
|
+
};
|
|
21317
|
+
|
|
21318
|
+
|
|
21319
|
+
/**
|
|
21320
|
+
* optional SpendForecastMeasures total = 6;
|
|
21321
|
+
* @return {?proto.gateway.web.v1.SpendForecastMeasures}
|
|
21322
|
+
*/
|
|
21323
|
+
proto.gateway.web.v1.SpendForecast.prototype.getTotal = function() {
|
|
21324
|
+
return /** @type{?proto.gateway.web.v1.SpendForecastMeasures} */ (
|
|
21325
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpendForecastMeasures, 6));
|
|
21326
|
+
};
|
|
21327
|
+
|
|
21328
|
+
|
|
21329
|
+
/**
|
|
21330
|
+
* @param {?proto.gateway.web.v1.SpendForecastMeasures|undefined} value
|
|
21331
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21332
|
+
*/
|
|
21333
|
+
proto.gateway.web.v1.SpendForecast.prototype.setTotal = function(value) {
|
|
21334
|
+
return jspb.Message.setWrapperField(this, 6, value);
|
|
21335
|
+
};
|
|
21336
|
+
|
|
21337
|
+
|
|
21338
|
+
/**
|
|
21339
|
+
* Clears the message field making it undefined.
|
|
21340
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21341
|
+
*/
|
|
21342
|
+
proto.gateway.web.v1.SpendForecast.prototype.clearTotal = function() {
|
|
21343
|
+
return this.setTotal(undefined);
|
|
21344
|
+
};
|
|
21345
|
+
|
|
21346
|
+
|
|
21347
|
+
/**
|
|
21348
|
+
* Returns whether this field is set.
|
|
21349
|
+
* @return {boolean}
|
|
21350
|
+
*/
|
|
21351
|
+
proto.gateway.web.v1.SpendForecast.prototype.hasTotal = function() {
|
|
21352
|
+
return jspb.Message.getField(this, 6) != null;
|
|
21353
|
+
};
|
|
21354
|
+
|
|
21355
|
+
|
|
21356
|
+
/**
|
|
21357
|
+
* repeated SpendForecastBreakdown breakdowns = 7;
|
|
21358
|
+
* @return {!Array<!proto.gateway.web.v1.SpendForecastBreakdown>}
|
|
21359
|
+
*/
|
|
21360
|
+
proto.gateway.web.v1.SpendForecast.prototype.getBreakdownsList = function() {
|
|
21361
|
+
return /** @type{!Array<!proto.gateway.web.v1.SpendForecastBreakdown>} */ (
|
|
21362
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SpendForecastBreakdown, 7));
|
|
21363
|
+
};
|
|
21364
|
+
|
|
21365
|
+
|
|
21366
|
+
/**
|
|
21367
|
+
* @param {!Array<!proto.gateway.web.v1.SpendForecastBreakdown>} value
|
|
21368
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21369
|
+
*/
|
|
21370
|
+
proto.gateway.web.v1.SpendForecast.prototype.setBreakdownsList = function(value) {
|
|
21371
|
+
return jspb.Message.setRepeatedWrapperField(this, 7, value);
|
|
21372
|
+
};
|
|
21373
|
+
|
|
21374
|
+
|
|
21375
|
+
/**
|
|
21376
|
+
* @param {!proto.gateway.web.v1.SpendForecastBreakdown=} opt_value
|
|
21377
|
+
* @param {number=} opt_index
|
|
21378
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown}
|
|
21379
|
+
*/
|
|
21380
|
+
proto.gateway.web.v1.SpendForecast.prototype.addBreakdowns = function(opt_value, opt_index) {
|
|
21381
|
+
return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.gateway.web.v1.SpendForecastBreakdown, opt_index);
|
|
21382
|
+
};
|
|
21383
|
+
|
|
21384
|
+
|
|
21385
|
+
/**
|
|
21386
|
+
* Clears the list making it empty but non-null.
|
|
21387
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21388
|
+
*/
|
|
21389
|
+
proto.gateway.web.v1.SpendForecast.prototype.clearBreakdownsList = function() {
|
|
21390
|
+
return this.setBreakdownsList([]);
|
|
21391
|
+
};
|
|
21392
|
+
|
|
21393
|
+
|
|
21394
|
+
/**
|
|
21395
|
+
* optional google.protobuf.Timestamp as_of = 8;
|
|
21396
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
21397
|
+
*/
|
|
21398
|
+
proto.gateway.web.v1.SpendForecast.prototype.getAsOf = function() {
|
|
21399
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
21400
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 8));
|
|
21401
|
+
};
|
|
21402
|
+
|
|
21403
|
+
|
|
21404
|
+
/**
|
|
21405
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
21406
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21407
|
+
*/
|
|
21408
|
+
proto.gateway.web.v1.SpendForecast.prototype.setAsOf = function(value) {
|
|
21409
|
+
return jspb.Message.setWrapperField(this, 8, value);
|
|
21410
|
+
};
|
|
21411
|
+
|
|
21412
|
+
|
|
21413
|
+
/**
|
|
21414
|
+
* Clears the message field making it undefined.
|
|
21415
|
+
* @return {!proto.gateway.web.v1.SpendForecast} returns this
|
|
21416
|
+
*/
|
|
21417
|
+
proto.gateway.web.v1.SpendForecast.prototype.clearAsOf = function() {
|
|
21418
|
+
return this.setAsOf(undefined);
|
|
21419
|
+
};
|
|
21420
|
+
|
|
21421
|
+
|
|
21422
|
+
/**
|
|
21423
|
+
* Returns whether this field is set.
|
|
21424
|
+
* @return {boolean}
|
|
21425
|
+
*/
|
|
21426
|
+
proto.gateway.web.v1.SpendForecast.prototype.hasAsOf = function() {
|
|
21427
|
+
return jspb.Message.getField(this, 8) != null;
|
|
21428
|
+
};
|
|
21429
|
+
|
|
21430
|
+
|
|
21431
|
+
|
|
21432
|
+
/**
|
|
21433
|
+
* List of repeated fields within this message type.
|
|
21434
|
+
* @private {!Array<number>}
|
|
21435
|
+
* @const
|
|
21436
|
+
*/
|
|
21437
|
+
proto.gateway.web.v1.SpendForecastBreakdown.repeatedFields_ = [2];
|
|
21438
|
+
|
|
21439
|
+
|
|
21440
|
+
|
|
21441
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21442
|
+
/**
|
|
21443
|
+
* Creates an object representation of this proto.
|
|
21444
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
21445
|
+
* Optional fields that are not set will be set to undefined.
|
|
21446
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
21447
|
+
* For the list of reserved names please see:
|
|
21448
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
21449
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
21450
|
+
* JSPB instance for transitional soy proto support:
|
|
21451
|
+
* http://goto/soy-param-migration
|
|
21452
|
+
* @return {!Object}
|
|
21453
|
+
*/
|
|
21454
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.toObject = function(opt_includeInstance) {
|
|
21455
|
+
return proto.gateway.web.v1.SpendForecastBreakdown.toObject(opt_includeInstance, this);
|
|
21456
|
+
};
|
|
21457
|
+
|
|
21458
|
+
|
|
21459
|
+
/**
|
|
21460
|
+
* Static version of the {@see toObject} method.
|
|
21461
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21462
|
+
* the JSPB instance for transitional soy proto support:
|
|
21463
|
+
* http://goto/soy-param-migration
|
|
21464
|
+
* @param {!proto.gateway.web.v1.SpendForecastBreakdown} msg The msg instance to transform.
|
|
21465
|
+
* @return {!Object}
|
|
21466
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21467
|
+
*/
|
|
21468
|
+
proto.gateway.web.v1.SpendForecastBreakdown.toObject = function(includeInstance, msg) {
|
|
21469
|
+
var f, obj = {
|
|
21470
|
+
dimension: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
21471
|
+
groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
|
|
21472
|
+
proto.gateway.web.v1.SpendForecastGroup.toObject, includeInstance)
|
|
21473
|
+
};
|
|
21474
|
+
|
|
21475
|
+
if (includeInstance) {
|
|
21476
|
+
obj.$jspbMessageInstance = msg;
|
|
21477
|
+
}
|
|
21478
|
+
return obj;
|
|
21479
|
+
};
|
|
21480
|
+
}
|
|
21481
|
+
|
|
21482
|
+
|
|
21483
|
+
/**
|
|
21484
|
+
* Deserializes binary data (in protobuf wire format).
|
|
21485
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
21486
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown}
|
|
21487
|
+
*/
|
|
21488
|
+
proto.gateway.web.v1.SpendForecastBreakdown.deserializeBinary = function(bytes) {
|
|
21489
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
21490
|
+
var msg = new proto.gateway.web.v1.SpendForecastBreakdown;
|
|
21491
|
+
return proto.gateway.web.v1.SpendForecastBreakdown.deserializeBinaryFromReader(msg, reader);
|
|
21492
|
+
};
|
|
21493
|
+
|
|
21494
|
+
|
|
21495
|
+
/**
|
|
21496
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
21497
|
+
* given reader into the given message object.
|
|
21498
|
+
* @param {!proto.gateway.web.v1.SpendForecastBreakdown} msg The message object to deserialize into.
|
|
21499
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
21500
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown}
|
|
21501
|
+
*/
|
|
21502
|
+
proto.gateway.web.v1.SpendForecastBreakdown.deserializeBinaryFromReader = function(msg, reader) {
|
|
21503
|
+
while (reader.nextField()) {
|
|
21504
|
+
if (reader.isEndGroup()) {
|
|
21505
|
+
break;
|
|
21506
|
+
}
|
|
21507
|
+
var field = reader.getFieldNumber();
|
|
21508
|
+
switch (field) {
|
|
21509
|
+
case 1:
|
|
21510
|
+
var value = /** @type {!proto.gateway.web.v1.AISpendForecastDimension} */ (reader.readEnum());
|
|
21511
|
+
msg.setDimension(value);
|
|
21512
|
+
break;
|
|
21513
|
+
case 2:
|
|
21514
|
+
var value = new proto.gateway.web.v1.SpendForecastGroup;
|
|
21515
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendForecastGroup.deserializeBinaryFromReader);
|
|
21516
|
+
msg.addGroups(value);
|
|
21517
|
+
break;
|
|
21518
|
+
default:
|
|
21519
|
+
reader.skipField();
|
|
21520
|
+
break;
|
|
21521
|
+
}
|
|
21522
|
+
}
|
|
21523
|
+
return msg;
|
|
21524
|
+
};
|
|
21525
|
+
|
|
21526
|
+
|
|
21527
|
+
/**
|
|
21528
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
21529
|
+
* @return {!Uint8Array}
|
|
21530
|
+
*/
|
|
21531
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.serializeBinary = function() {
|
|
21532
|
+
var writer = new jspb.BinaryWriter();
|
|
21533
|
+
proto.gateway.web.v1.SpendForecastBreakdown.serializeBinaryToWriter(this, writer);
|
|
21534
|
+
return writer.getResultBuffer();
|
|
21535
|
+
};
|
|
21536
|
+
|
|
21537
|
+
|
|
21538
|
+
/**
|
|
21539
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
21540
|
+
* format), writing to the given BinaryWriter.
|
|
21541
|
+
* @param {!proto.gateway.web.v1.SpendForecastBreakdown} message
|
|
21542
|
+
* @param {!jspb.BinaryWriter} writer
|
|
21543
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21544
|
+
*/
|
|
21545
|
+
proto.gateway.web.v1.SpendForecastBreakdown.serializeBinaryToWriter = function(message, writer) {
|
|
21546
|
+
var f = undefined;
|
|
21547
|
+
f = message.getDimension();
|
|
21548
|
+
if (f !== 0.0) {
|
|
21549
|
+
writer.writeEnum(
|
|
21550
|
+
1,
|
|
21551
|
+
f
|
|
21552
|
+
);
|
|
21553
|
+
}
|
|
21554
|
+
f = message.getGroupsList();
|
|
21555
|
+
if (f.length > 0) {
|
|
21556
|
+
writer.writeRepeatedMessage(
|
|
21557
|
+
2,
|
|
21558
|
+
f,
|
|
21559
|
+
proto.gateway.web.v1.SpendForecastGroup.serializeBinaryToWriter
|
|
21560
|
+
);
|
|
21561
|
+
}
|
|
21562
|
+
};
|
|
21563
|
+
|
|
21564
|
+
|
|
21565
|
+
/**
|
|
21566
|
+
* optional AISpendForecastDimension dimension = 1;
|
|
21567
|
+
* @return {!proto.gateway.web.v1.AISpendForecastDimension}
|
|
21568
|
+
*/
|
|
21569
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.getDimension = function() {
|
|
21570
|
+
return /** @type {!proto.gateway.web.v1.AISpendForecastDimension} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
21571
|
+
};
|
|
21572
|
+
|
|
21573
|
+
|
|
21574
|
+
/**
|
|
21575
|
+
* @param {!proto.gateway.web.v1.AISpendForecastDimension} value
|
|
21576
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown} returns this
|
|
21577
|
+
*/
|
|
21578
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.setDimension = function(value) {
|
|
21579
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
21580
|
+
};
|
|
21581
|
+
|
|
21582
|
+
|
|
21583
|
+
/**
|
|
21584
|
+
* repeated SpendForecastGroup groups = 2;
|
|
21585
|
+
* @return {!Array<!proto.gateway.web.v1.SpendForecastGroup>}
|
|
21586
|
+
*/
|
|
21587
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.getGroupsList = function() {
|
|
21588
|
+
return /** @type{!Array<!proto.gateway.web.v1.SpendForecastGroup>} */ (
|
|
21589
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SpendForecastGroup, 2));
|
|
21590
|
+
};
|
|
21591
|
+
|
|
21592
|
+
|
|
21593
|
+
/**
|
|
21594
|
+
* @param {!Array<!proto.gateway.web.v1.SpendForecastGroup>} value
|
|
21595
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown} returns this
|
|
21596
|
+
*/
|
|
21597
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.setGroupsList = function(value) {
|
|
21598
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
21599
|
+
};
|
|
21600
|
+
|
|
21601
|
+
|
|
21602
|
+
/**
|
|
21603
|
+
* @param {!proto.gateway.web.v1.SpendForecastGroup=} opt_value
|
|
21604
|
+
* @param {number=} opt_index
|
|
21605
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup}
|
|
21606
|
+
*/
|
|
21607
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.addGroups = function(opt_value, opt_index) {
|
|
21608
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SpendForecastGroup, opt_index);
|
|
21609
|
+
};
|
|
21610
|
+
|
|
21611
|
+
|
|
21612
|
+
/**
|
|
21613
|
+
* Clears the list making it empty but non-null.
|
|
21614
|
+
* @return {!proto.gateway.web.v1.SpendForecastBreakdown} returns this
|
|
21615
|
+
*/
|
|
21616
|
+
proto.gateway.web.v1.SpendForecastBreakdown.prototype.clearGroupsList = function() {
|
|
21617
|
+
return this.setGroupsList([]);
|
|
21618
|
+
};
|
|
21619
|
+
|
|
21620
|
+
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
|
|
21624
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21625
|
+
/**
|
|
21626
|
+
* Creates an object representation of this proto.
|
|
21627
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
21628
|
+
* Optional fields that are not set will be set to undefined.
|
|
21629
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
21630
|
+
* For the list of reserved names please see:
|
|
21631
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
21632
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
21633
|
+
* JSPB instance for transitional soy proto support:
|
|
21634
|
+
* http://goto/soy-param-migration
|
|
21635
|
+
* @return {!Object}
|
|
21636
|
+
*/
|
|
21637
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.toObject = function(opt_includeInstance) {
|
|
21638
|
+
return proto.gateway.web.v1.SpendForecastGroup.toObject(opt_includeInstance, this);
|
|
21639
|
+
};
|
|
21640
|
+
|
|
21641
|
+
|
|
21642
|
+
/**
|
|
21643
|
+
* Static version of the {@see toObject} method.
|
|
21644
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21645
|
+
* the JSPB instance for transitional soy proto support:
|
|
21646
|
+
* http://goto/soy-param-migration
|
|
21647
|
+
* @param {!proto.gateway.web.v1.SpendForecastGroup} msg The msg instance to transform.
|
|
21648
|
+
* @return {!Object}
|
|
21649
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21650
|
+
*/
|
|
21651
|
+
proto.gateway.web.v1.SpendForecastGroup.toObject = function(includeInstance, msg) {
|
|
21652
|
+
var f, obj = {
|
|
21653
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
21654
|
+
measures: (f = msg.getMeasures()) && proto.gateway.web.v1.SpendForecastMeasures.toObject(includeInstance, f)
|
|
21655
|
+
};
|
|
21656
|
+
|
|
21657
|
+
if (includeInstance) {
|
|
21658
|
+
obj.$jspbMessageInstance = msg;
|
|
21659
|
+
}
|
|
21660
|
+
return obj;
|
|
21661
|
+
};
|
|
21662
|
+
}
|
|
21663
|
+
|
|
21664
|
+
|
|
21665
|
+
/**
|
|
21666
|
+
* Deserializes binary data (in protobuf wire format).
|
|
21667
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
21668
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup}
|
|
21669
|
+
*/
|
|
21670
|
+
proto.gateway.web.v1.SpendForecastGroup.deserializeBinary = function(bytes) {
|
|
21671
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
21672
|
+
var msg = new proto.gateway.web.v1.SpendForecastGroup;
|
|
21673
|
+
return proto.gateway.web.v1.SpendForecastGroup.deserializeBinaryFromReader(msg, reader);
|
|
21674
|
+
};
|
|
21675
|
+
|
|
21676
|
+
|
|
21677
|
+
/**
|
|
21678
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
21679
|
+
* given reader into the given message object.
|
|
21680
|
+
* @param {!proto.gateway.web.v1.SpendForecastGroup} msg The message object to deserialize into.
|
|
21681
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
21682
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup}
|
|
21683
|
+
*/
|
|
21684
|
+
proto.gateway.web.v1.SpendForecastGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
21685
|
+
while (reader.nextField()) {
|
|
21686
|
+
if (reader.isEndGroup()) {
|
|
21687
|
+
break;
|
|
21688
|
+
}
|
|
21689
|
+
var field = reader.getFieldNumber();
|
|
21690
|
+
switch (field) {
|
|
21691
|
+
case 1:
|
|
21692
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
21693
|
+
msg.setKey(value);
|
|
21694
|
+
break;
|
|
21695
|
+
case 2:
|
|
21696
|
+
var value = new proto.gateway.web.v1.SpendForecastMeasures;
|
|
21697
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendForecastMeasures.deserializeBinaryFromReader);
|
|
21698
|
+
msg.setMeasures(value);
|
|
21699
|
+
break;
|
|
21700
|
+
default:
|
|
21701
|
+
reader.skipField();
|
|
21702
|
+
break;
|
|
21703
|
+
}
|
|
21704
|
+
}
|
|
21705
|
+
return msg;
|
|
21706
|
+
};
|
|
21707
|
+
|
|
21708
|
+
|
|
21709
|
+
/**
|
|
21710
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
21711
|
+
* @return {!Uint8Array}
|
|
21712
|
+
*/
|
|
21713
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.serializeBinary = function() {
|
|
21714
|
+
var writer = new jspb.BinaryWriter();
|
|
21715
|
+
proto.gateway.web.v1.SpendForecastGroup.serializeBinaryToWriter(this, writer);
|
|
21716
|
+
return writer.getResultBuffer();
|
|
21717
|
+
};
|
|
21718
|
+
|
|
21719
|
+
|
|
21720
|
+
/**
|
|
21721
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
21722
|
+
* format), writing to the given BinaryWriter.
|
|
21723
|
+
* @param {!proto.gateway.web.v1.SpendForecastGroup} message
|
|
21724
|
+
* @param {!jspb.BinaryWriter} writer
|
|
21725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21726
|
+
*/
|
|
21727
|
+
proto.gateway.web.v1.SpendForecastGroup.serializeBinaryToWriter = function(message, writer) {
|
|
21728
|
+
var f = undefined;
|
|
21729
|
+
f = message.getKey();
|
|
21730
|
+
if (f.length > 0) {
|
|
21731
|
+
writer.writeString(
|
|
21732
|
+
1,
|
|
21733
|
+
f
|
|
21734
|
+
);
|
|
21735
|
+
}
|
|
21736
|
+
f = message.getMeasures();
|
|
21737
|
+
if (f != null) {
|
|
21738
|
+
writer.writeMessage(
|
|
21739
|
+
2,
|
|
21740
|
+
f,
|
|
21741
|
+
proto.gateway.web.v1.SpendForecastMeasures.serializeBinaryToWriter
|
|
21742
|
+
);
|
|
21743
|
+
}
|
|
21744
|
+
};
|
|
21745
|
+
|
|
21746
|
+
|
|
21747
|
+
/**
|
|
21748
|
+
* optional string key = 1;
|
|
21749
|
+
* @return {string}
|
|
21750
|
+
*/
|
|
21751
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.getKey = function() {
|
|
21752
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
21753
|
+
};
|
|
21754
|
+
|
|
21755
|
+
|
|
21756
|
+
/**
|
|
21757
|
+
* @param {string} value
|
|
21758
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup} returns this
|
|
21759
|
+
*/
|
|
21760
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.setKey = function(value) {
|
|
21761
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
21762
|
+
};
|
|
21763
|
+
|
|
21764
|
+
|
|
21765
|
+
/**
|
|
21766
|
+
* optional SpendForecastMeasures measures = 2;
|
|
21767
|
+
* @return {?proto.gateway.web.v1.SpendForecastMeasures}
|
|
21768
|
+
*/
|
|
21769
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.getMeasures = function() {
|
|
21770
|
+
return /** @type{?proto.gateway.web.v1.SpendForecastMeasures} */ (
|
|
21771
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpendForecastMeasures, 2));
|
|
21772
|
+
};
|
|
21773
|
+
|
|
21774
|
+
|
|
21775
|
+
/**
|
|
21776
|
+
* @param {?proto.gateway.web.v1.SpendForecastMeasures|undefined} value
|
|
21777
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup} returns this
|
|
21778
|
+
*/
|
|
21779
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.setMeasures = function(value) {
|
|
21780
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
21781
|
+
};
|
|
21782
|
+
|
|
21783
|
+
|
|
21784
|
+
/**
|
|
21785
|
+
* Clears the message field making it undefined.
|
|
21786
|
+
* @return {!proto.gateway.web.v1.SpendForecastGroup} returns this
|
|
21787
|
+
*/
|
|
21788
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.clearMeasures = function() {
|
|
21789
|
+
return this.setMeasures(undefined);
|
|
21790
|
+
};
|
|
21791
|
+
|
|
21792
|
+
|
|
21793
|
+
/**
|
|
21794
|
+
* Returns whether this field is set.
|
|
21795
|
+
* @return {boolean}
|
|
21796
|
+
*/
|
|
21797
|
+
proto.gateway.web.v1.SpendForecastGroup.prototype.hasMeasures = function() {
|
|
21798
|
+
return jspb.Message.getField(this, 2) != null;
|
|
21799
|
+
};
|
|
21800
|
+
|
|
21801
|
+
|
|
21802
|
+
|
|
21803
|
+
|
|
21804
|
+
|
|
21805
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21806
|
+
/**
|
|
21807
|
+
* Creates an object representation of this proto.
|
|
21808
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
21809
|
+
* Optional fields that are not set will be set to undefined.
|
|
21810
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
21811
|
+
* For the list of reserved names please see:
|
|
21812
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
21813
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
21814
|
+
* JSPB instance for transitional soy proto support:
|
|
21815
|
+
* http://goto/soy-param-migration
|
|
21816
|
+
* @return {!Object}
|
|
21817
|
+
*/
|
|
21818
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.toObject = function(opt_includeInstance) {
|
|
21819
|
+
return proto.gateway.web.v1.SpendForecastMeasures.toObject(opt_includeInstance, this);
|
|
21820
|
+
};
|
|
21821
|
+
|
|
21822
|
+
|
|
21823
|
+
/**
|
|
21824
|
+
* Static version of the {@see toObject} method.
|
|
21825
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21826
|
+
* the JSPB instance for transitional soy proto support:
|
|
21827
|
+
* http://goto/soy-param-migration
|
|
21828
|
+
* @param {!proto.gateway.web.v1.SpendForecastMeasures} msg The msg instance to transform.
|
|
21829
|
+
* @return {!Object}
|
|
21830
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21831
|
+
*/
|
|
21832
|
+
proto.gateway.web.v1.SpendForecastMeasures.toObject = function(includeInstance, msg) {
|
|
21833
|
+
var f, obj = {
|
|
21834
|
+
monthToDateUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
21835
|
+
projection: (f = msg.getProjection()) && proto.gateway.web.v1.SpendProjection.toObject(includeInstance, f)
|
|
21836
|
+
};
|
|
21837
|
+
|
|
21838
|
+
if (includeInstance) {
|
|
21839
|
+
obj.$jspbMessageInstance = msg;
|
|
21840
|
+
}
|
|
21841
|
+
return obj;
|
|
21842
|
+
};
|
|
21843
|
+
}
|
|
21844
|
+
|
|
21845
|
+
|
|
21846
|
+
/**
|
|
21847
|
+
* Deserializes binary data (in protobuf wire format).
|
|
21848
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
21849
|
+
* @return {!proto.gateway.web.v1.SpendForecastMeasures}
|
|
21850
|
+
*/
|
|
21851
|
+
proto.gateway.web.v1.SpendForecastMeasures.deserializeBinary = function(bytes) {
|
|
21852
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
21853
|
+
var msg = new proto.gateway.web.v1.SpendForecastMeasures;
|
|
21854
|
+
return proto.gateway.web.v1.SpendForecastMeasures.deserializeBinaryFromReader(msg, reader);
|
|
21855
|
+
};
|
|
21856
|
+
|
|
21857
|
+
|
|
21858
|
+
/**
|
|
21859
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
21860
|
+
* given reader into the given message object.
|
|
21861
|
+
* @param {!proto.gateway.web.v1.SpendForecastMeasures} msg The message object to deserialize into.
|
|
21862
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
21863
|
+
* @return {!proto.gateway.web.v1.SpendForecastMeasures}
|
|
21864
|
+
*/
|
|
21865
|
+
proto.gateway.web.v1.SpendForecastMeasures.deserializeBinaryFromReader = function(msg, reader) {
|
|
21866
|
+
while (reader.nextField()) {
|
|
21867
|
+
if (reader.isEndGroup()) {
|
|
21868
|
+
break;
|
|
21869
|
+
}
|
|
21870
|
+
var field = reader.getFieldNumber();
|
|
21871
|
+
switch (field) {
|
|
21872
|
+
case 1:
|
|
21873
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
21874
|
+
msg.setMonthToDateUsd(value);
|
|
21875
|
+
break;
|
|
21876
|
+
case 2:
|
|
21877
|
+
var value = new proto.gateway.web.v1.SpendProjection;
|
|
21878
|
+
reader.readMessage(value,proto.gateway.web.v1.SpendProjection.deserializeBinaryFromReader);
|
|
21879
|
+
msg.setProjection(value);
|
|
21880
|
+
break;
|
|
21881
|
+
default:
|
|
21882
|
+
reader.skipField();
|
|
21883
|
+
break;
|
|
21884
|
+
}
|
|
21885
|
+
}
|
|
21886
|
+
return msg;
|
|
21887
|
+
};
|
|
21888
|
+
|
|
21889
|
+
|
|
21890
|
+
/**
|
|
21891
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
21892
|
+
* @return {!Uint8Array}
|
|
21893
|
+
*/
|
|
21894
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.serializeBinary = function() {
|
|
21895
|
+
var writer = new jspb.BinaryWriter();
|
|
21896
|
+
proto.gateway.web.v1.SpendForecastMeasures.serializeBinaryToWriter(this, writer);
|
|
21897
|
+
return writer.getResultBuffer();
|
|
21898
|
+
};
|
|
21899
|
+
|
|
21900
|
+
|
|
21901
|
+
/**
|
|
21902
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
21903
|
+
* format), writing to the given BinaryWriter.
|
|
21904
|
+
* @param {!proto.gateway.web.v1.SpendForecastMeasures} message
|
|
21905
|
+
* @param {!jspb.BinaryWriter} writer
|
|
21906
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21907
|
+
*/
|
|
21908
|
+
proto.gateway.web.v1.SpendForecastMeasures.serializeBinaryToWriter = function(message, writer) {
|
|
21909
|
+
var f = undefined;
|
|
21910
|
+
f = message.getMonthToDateUsd();
|
|
21911
|
+
if (f !== 0.0) {
|
|
21912
|
+
writer.writeDouble(
|
|
21913
|
+
1,
|
|
21914
|
+
f
|
|
21915
|
+
);
|
|
21916
|
+
}
|
|
21917
|
+
f = message.getProjection();
|
|
21918
|
+
if (f != null) {
|
|
21919
|
+
writer.writeMessage(
|
|
21920
|
+
2,
|
|
21921
|
+
f,
|
|
21922
|
+
proto.gateway.web.v1.SpendProjection.serializeBinaryToWriter
|
|
21923
|
+
);
|
|
21924
|
+
}
|
|
21925
|
+
};
|
|
21926
|
+
|
|
21927
|
+
|
|
21928
|
+
/**
|
|
21929
|
+
* optional double month_to_date_usd = 1;
|
|
21930
|
+
* @return {number}
|
|
21931
|
+
*/
|
|
21932
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.getMonthToDateUsd = function() {
|
|
21933
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
21934
|
+
};
|
|
21935
|
+
|
|
21936
|
+
|
|
21937
|
+
/**
|
|
21938
|
+
* @param {number} value
|
|
21939
|
+
* @return {!proto.gateway.web.v1.SpendForecastMeasures} returns this
|
|
21940
|
+
*/
|
|
21941
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.setMonthToDateUsd = function(value) {
|
|
21942
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
21943
|
+
};
|
|
21944
|
+
|
|
21945
|
+
|
|
21946
|
+
/**
|
|
21947
|
+
* optional SpendProjection projection = 2;
|
|
21948
|
+
* @return {?proto.gateway.web.v1.SpendProjection}
|
|
21949
|
+
*/
|
|
21950
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.getProjection = function() {
|
|
21951
|
+
return /** @type{?proto.gateway.web.v1.SpendProjection} */ (
|
|
21952
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SpendProjection, 2));
|
|
21953
|
+
};
|
|
21954
|
+
|
|
21955
|
+
|
|
21956
|
+
/**
|
|
21957
|
+
* @param {?proto.gateway.web.v1.SpendProjection|undefined} value
|
|
21958
|
+
* @return {!proto.gateway.web.v1.SpendForecastMeasures} returns this
|
|
21959
|
+
*/
|
|
21960
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.setProjection = function(value) {
|
|
21961
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
21962
|
+
};
|
|
21963
|
+
|
|
21964
|
+
|
|
21965
|
+
/**
|
|
21966
|
+
* Clears the message field making it undefined.
|
|
21967
|
+
* @return {!proto.gateway.web.v1.SpendForecastMeasures} returns this
|
|
21968
|
+
*/
|
|
21969
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.clearProjection = function() {
|
|
21970
|
+
return this.setProjection(undefined);
|
|
21971
|
+
};
|
|
21972
|
+
|
|
21973
|
+
|
|
21974
|
+
/**
|
|
21975
|
+
* Returns whether this field is set.
|
|
21976
|
+
* @return {boolean}
|
|
21977
|
+
*/
|
|
21978
|
+
proto.gateway.web.v1.SpendForecastMeasures.prototype.hasProjection = function() {
|
|
21979
|
+
return jspb.Message.getField(this, 2) != null;
|
|
21980
|
+
};
|
|
21981
|
+
|
|
21982
|
+
|
|
21983
|
+
|
|
21984
|
+
|
|
21985
|
+
|
|
21986
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
21987
|
+
/**
|
|
21988
|
+
* Creates an object representation of this proto.
|
|
21989
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
21990
|
+
* Optional fields that are not set will be set to undefined.
|
|
21991
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
21992
|
+
* For the list of reserved names please see:
|
|
21993
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
21994
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
21995
|
+
* JSPB instance for transitional soy proto support:
|
|
21996
|
+
* http://goto/soy-param-migration
|
|
21997
|
+
* @return {!Object}
|
|
21998
|
+
*/
|
|
21999
|
+
proto.gateway.web.v1.SpendProjection.prototype.toObject = function(opt_includeInstance) {
|
|
22000
|
+
return proto.gateway.web.v1.SpendProjection.toObject(opt_includeInstance, this);
|
|
22001
|
+
};
|
|
22002
|
+
|
|
22003
|
+
|
|
22004
|
+
/**
|
|
22005
|
+
* Static version of the {@see toObject} method.
|
|
22006
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22007
|
+
* the JSPB instance for transitional soy proto support:
|
|
22008
|
+
* http://goto/soy-param-migration
|
|
22009
|
+
* @param {!proto.gateway.web.v1.SpendProjection} msg The msg instance to transform.
|
|
22010
|
+
* @return {!Object}
|
|
22011
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22012
|
+
*/
|
|
22013
|
+
proto.gateway.web.v1.SpendProjection.toObject = function(includeInstance, msg) {
|
|
22014
|
+
var f, obj = {
|
|
22015
|
+
expectedUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
22016
|
+
lowUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
|
|
22017
|
+
highUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
|
|
22018
|
+
};
|
|
22019
|
+
|
|
22020
|
+
if (includeInstance) {
|
|
22021
|
+
obj.$jspbMessageInstance = msg;
|
|
22022
|
+
}
|
|
22023
|
+
return obj;
|
|
22024
|
+
};
|
|
22025
|
+
}
|
|
22026
|
+
|
|
22027
|
+
|
|
22028
|
+
/**
|
|
22029
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22030
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22031
|
+
* @return {!proto.gateway.web.v1.SpendProjection}
|
|
22032
|
+
*/
|
|
22033
|
+
proto.gateway.web.v1.SpendProjection.deserializeBinary = function(bytes) {
|
|
22034
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22035
|
+
var msg = new proto.gateway.web.v1.SpendProjection;
|
|
22036
|
+
return proto.gateway.web.v1.SpendProjection.deserializeBinaryFromReader(msg, reader);
|
|
22037
|
+
};
|
|
22038
|
+
|
|
22039
|
+
|
|
22040
|
+
/**
|
|
22041
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22042
|
+
* given reader into the given message object.
|
|
22043
|
+
* @param {!proto.gateway.web.v1.SpendProjection} msg The message object to deserialize into.
|
|
22044
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22045
|
+
* @return {!proto.gateway.web.v1.SpendProjection}
|
|
22046
|
+
*/
|
|
22047
|
+
proto.gateway.web.v1.SpendProjection.deserializeBinaryFromReader = function(msg, reader) {
|
|
22048
|
+
while (reader.nextField()) {
|
|
22049
|
+
if (reader.isEndGroup()) {
|
|
22050
|
+
break;
|
|
22051
|
+
}
|
|
22052
|
+
var field = reader.getFieldNumber();
|
|
22053
|
+
switch (field) {
|
|
22054
|
+
case 1:
|
|
22055
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22056
|
+
msg.setExpectedUsd(value);
|
|
22057
|
+
break;
|
|
22058
|
+
case 2:
|
|
22059
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22060
|
+
msg.setLowUsd(value);
|
|
22061
|
+
break;
|
|
22062
|
+
case 3:
|
|
22063
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22064
|
+
msg.setHighUsd(value);
|
|
22065
|
+
break;
|
|
22066
|
+
default:
|
|
22067
|
+
reader.skipField();
|
|
22068
|
+
break;
|
|
22069
|
+
}
|
|
22070
|
+
}
|
|
22071
|
+
return msg;
|
|
22072
|
+
};
|
|
22073
|
+
|
|
22074
|
+
|
|
22075
|
+
/**
|
|
22076
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22077
|
+
* @return {!Uint8Array}
|
|
22078
|
+
*/
|
|
22079
|
+
proto.gateway.web.v1.SpendProjection.prototype.serializeBinary = function() {
|
|
22080
|
+
var writer = new jspb.BinaryWriter();
|
|
22081
|
+
proto.gateway.web.v1.SpendProjection.serializeBinaryToWriter(this, writer);
|
|
22082
|
+
return writer.getResultBuffer();
|
|
22083
|
+
};
|
|
22084
|
+
|
|
22085
|
+
|
|
22086
|
+
/**
|
|
22087
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22088
|
+
* format), writing to the given BinaryWriter.
|
|
22089
|
+
* @param {!proto.gateway.web.v1.SpendProjection} message
|
|
22090
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22091
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22092
|
+
*/
|
|
22093
|
+
proto.gateway.web.v1.SpendProjection.serializeBinaryToWriter = function(message, writer) {
|
|
22094
|
+
var f = undefined;
|
|
22095
|
+
f = message.getExpectedUsd();
|
|
22096
|
+
if (f !== 0.0) {
|
|
22097
|
+
writer.writeDouble(
|
|
22098
|
+
1,
|
|
22099
|
+
f
|
|
22100
|
+
);
|
|
22101
|
+
}
|
|
22102
|
+
f = message.getLowUsd();
|
|
22103
|
+
if (f !== 0.0) {
|
|
22104
|
+
writer.writeDouble(
|
|
22105
|
+
2,
|
|
22106
|
+
f
|
|
22107
|
+
);
|
|
22108
|
+
}
|
|
22109
|
+
f = message.getHighUsd();
|
|
22110
|
+
if (f !== 0.0) {
|
|
22111
|
+
writer.writeDouble(
|
|
22112
|
+
3,
|
|
22113
|
+
f
|
|
22114
|
+
);
|
|
22115
|
+
}
|
|
22116
|
+
};
|
|
22117
|
+
|
|
22118
|
+
|
|
22119
|
+
/**
|
|
22120
|
+
* optional double expected_usd = 1;
|
|
22121
|
+
* @return {number}
|
|
22122
|
+
*/
|
|
22123
|
+
proto.gateway.web.v1.SpendProjection.prototype.getExpectedUsd = function() {
|
|
22124
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 1, 0.0));
|
|
22125
|
+
};
|
|
22126
|
+
|
|
22127
|
+
|
|
22128
|
+
/**
|
|
22129
|
+
* @param {number} value
|
|
22130
|
+
* @return {!proto.gateway.web.v1.SpendProjection} returns this
|
|
22131
|
+
*/
|
|
22132
|
+
proto.gateway.web.v1.SpendProjection.prototype.setExpectedUsd = function(value) {
|
|
22133
|
+
return jspb.Message.setProto3FloatField(this, 1, value);
|
|
22134
|
+
};
|
|
22135
|
+
|
|
22136
|
+
|
|
22137
|
+
/**
|
|
22138
|
+
* optional double low_usd = 2;
|
|
22139
|
+
* @return {number}
|
|
22140
|
+
*/
|
|
22141
|
+
proto.gateway.web.v1.SpendProjection.prototype.getLowUsd = function() {
|
|
22142
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 2, 0.0));
|
|
22143
|
+
};
|
|
22144
|
+
|
|
22145
|
+
|
|
22146
|
+
/**
|
|
22147
|
+
* @param {number} value
|
|
22148
|
+
* @return {!proto.gateway.web.v1.SpendProjection} returns this
|
|
22149
|
+
*/
|
|
22150
|
+
proto.gateway.web.v1.SpendProjection.prototype.setLowUsd = function(value) {
|
|
22151
|
+
return jspb.Message.setProto3FloatField(this, 2, value);
|
|
22152
|
+
};
|
|
22153
|
+
|
|
22154
|
+
|
|
22155
|
+
/**
|
|
22156
|
+
* optional double high_usd = 3;
|
|
22157
|
+
* @return {number}
|
|
22158
|
+
*/
|
|
22159
|
+
proto.gateway.web.v1.SpendProjection.prototype.getHighUsd = function() {
|
|
22160
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
|
22161
|
+
};
|
|
22162
|
+
|
|
22163
|
+
|
|
22164
|
+
/**
|
|
22165
|
+
* @param {number} value
|
|
22166
|
+
* @return {!proto.gateway.web.v1.SpendProjection} returns this
|
|
22167
|
+
*/
|
|
22168
|
+
proto.gateway.web.v1.SpendProjection.prototype.setHighUsd = function(value) {
|
|
22169
|
+
return jspb.Message.setProto3FloatField(this, 3, value);
|
|
22170
|
+
};
|
|
22171
|
+
|
|
22172
|
+
|
|
22173
|
+
|
|
22174
|
+
|
|
22175
|
+
|
|
22176
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22177
|
+
/**
|
|
22178
|
+
* Creates an object representation of this proto.
|
|
22179
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22180
|
+
* Optional fields that are not set will be set to undefined.
|
|
22181
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22182
|
+
* For the list of reserved names please see:
|
|
22183
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22184
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22185
|
+
* JSPB instance for transitional soy proto support:
|
|
22186
|
+
* http://goto/soy-param-migration
|
|
22187
|
+
* @return {!Object}
|
|
22188
|
+
*/
|
|
22189
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.toObject = function(opt_includeInstance) {
|
|
22190
|
+
return proto.gateway.web.v1.ActivityRhythmRequest.toObject(opt_includeInstance, this);
|
|
22191
|
+
};
|
|
22192
|
+
|
|
22193
|
+
|
|
22194
|
+
/**
|
|
22195
|
+
* Static version of the {@see toObject} method.
|
|
22196
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22197
|
+
* the JSPB instance for transitional soy proto support:
|
|
22198
|
+
* http://goto/soy-param-migration
|
|
22199
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} msg The msg instance to transform.
|
|
22200
|
+
* @return {!Object}
|
|
22201
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22202
|
+
*/
|
|
22203
|
+
proto.gateway.web.v1.ActivityRhythmRequest.toObject = function(includeInstance, msg) {
|
|
22204
|
+
var f, obj = {
|
|
22205
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
22206
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
22207
|
+
timeWindow: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
22208
|
+
timeZone: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
22209
|
+
};
|
|
22210
|
+
|
|
22211
|
+
if (includeInstance) {
|
|
22212
|
+
obj.$jspbMessageInstance = msg;
|
|
22213
|
+
}
|
|
22214
|
+
return obj;
|
|
22215
|
+
};
|
|
22216
|
+
}
|
|
22217
|
+
|
|
22218
|
+
|
|
22219
|
+
/**
|
|
22220
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22221
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22222
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest}
|
|
22223
|
+
*/
|
|
22224
|
+
proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinary = function(bytes) {
|
|
22225
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22226
|
+
var msg = new proto.gateway.web.v1.ActivityRhythmRequest;
|
|
22227
|
+
return proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader(msg, reader);
|
|
22228
|
+
};
|
|
22229
|
+
|
|
22230
|
+
|
|
22231
|
+
/**
|
|
22232
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22233
|
+
* given reader into the given message object.
|
|
22234
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} msg The message object to deserialize into.
|
|
22235
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22236
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest}
|
|
22237
|
+
*/
|
|
22238
|
+
proto.gateway.web.v1.ActivityRhythmRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
22239
|
+
while (reader.nextField()) {
|
|
22240
|
+
if (reader.isEndGroup()) {
|
|
22241
|
+
break;
|
|
22242
|
+
}
|
|
22243
|
+
var field = reader.getFieldNumber();
|
|
22244
|
+
switch (field) {
|
|
22245
|
+
case 1:
|
|
22246
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22247
|
+
msg.setOrganizationId(value);
|
|
22248
|
+
break;
|
|
22249
|
+
case 2:
|
|
22250
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22251
|
+
msg.setProjectId(value);
|
|
22252
|
+
break;
|
|
22253
|
+
case 3:
|
|
22254
|
+
var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (reader.readEnum());
|
|
22255
|
+
msg.setTimeWindow(value);
|
|
22256
|
+
break;
|
|
22257
|
+
case 4:
|
|
22258
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22259
|
+
msg.setTimeZone(value);
|
|
22260
|
+
break;
|
|
22261
|
+
default:
|
|
22262
|
+
reader.skipField();
|
|
22263
|
+
break;
|
|
22264
|
+
}
|
|
22265
|
+
}
|
|
22266
|
+
return msg;
|
|
22267
|
+
};
|
|
22268
|
+
|
|
22269
|
+
|
|
22270
|
+
/**
|
|
22271
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22272
|
+
* @return {!Uint8Array}
|
|
22273
|
+
*/
|
|
22274
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.serializeBinary = function() {
|
|
22275
|
+
var writer = new jspb.BinaryWriter();
|
|
22276
|
+
proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter(this, writer);
|
|
22277
|
+
return writer.getResultBuffer();
|
|
22278
|
+
};
|
|
22279
|
+
|
|
22280
|
+
|
|
22281
|
+
/**
|
|
22282
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22283
|
+
* format), writing to the given BinaryWriter.
|
|
22284
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmRequest} message
|
|
22285
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22286
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22287
|
+
*/
|
|
22288
|
+
proto.gateway.web.v1.ActivityRhythmRequest.serializeBinaryToWriter = function(message, writer) {
|
|
22289
|
+
var f = undefined;
|
|
22290
|
+
f = message.getOrganizationId();
|
|
22291
|
+
if (f.length > 0) {
|
|
22292
|
+
writer.writeString(
|
|
22293
|
+
1,
|
|
22294
|
+
f
|
|
22295
|
+
);
|
|
22296
|
+
}
|
|
22297
|
+
f = message.getProjectId();
|
|
22298
|
+
if (f.length > 0) {
|
|
22299
|
+
writer.writeString(
|
|
22300
|
+
2,
|
|
22301
|
+
f
|
|
22302
|
+
);
|
|
22303
|
+
}
|
|
22304
|
+
f = message.getTimeWindow();
|
|
22305
|
+
if (f !== 0.0) {
|
|
22306
|
+
writer.writeEnum(
|
|
22307
|
+
3,
|
|
22308
|
+
f
|
|
22309
|
+
);
|
|
22310
|
+
}
|
|
22311
|
+
f = message.getTimeZone();
|
|
22312
|
+
if (f.length > 0) {
|
|
22313
|
+
writer.writeString(
|
|
22314
|
+
4,
|
|
22315
|
+
f
|
|
22316
|
+
);
|
|
22317
|
+
}
|
|
22318
|
+
};
|
|
22319
|
+
|
|
22320
|
+
|
|
22321
|
+
/**
|
|
22322
|
+
* optional string organization_id = 1;
|
|
22323
|
+
* @return {string}
|
|
22324
|
+
*/
|
|
22325
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getOrganizationId = function() {
|
|
22326
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22327
|
+
};
|
|
22328
|
+
|
|
22329
|
+
|
|
22330
|
+
/**
|
|
22331
|
+
* @param {string} value
|
|
22332
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
22333
|
+
*/
|
|
22334
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setOrganizationId = function(value) {
|
|
22335
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22336
|
+
};
|
|
22337
|
+
|
|
22338
|
+
|
|
22339
|
+
/**
|
|
22340
|
+
* optional string project_id = 2;
|
|
22341
|
+
* @return {string}
|
|
22342
|
+
*/
|
|
22343
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getProjectId = function() {
|
|
22344
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
22345
|
+
};
|
|
22346
|
+
|
|
22347
|
+
|
|
22348
|
+
/**
|
|
22349
|
+
* @param {string} value
|
|
22350
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
22351
|
+
*/
|
|
22352
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setProjectId = function(value) {
|
|
22353
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
22354
|
+
};
|
|
22355
|
+
|
|
22356
|
+
|
|
22357
|
+
/**
|
|
22358
|
+
* optional AnalyticsTimeWindow time_window = 3;
|
|
22359
|
+
* @return {!proto.gateway.web.v1.AnalyticsTimeWindow}
|
|
22360
|
+
*/
|
|
22361
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getTimeWindow = function() {
|
|
22362
|
+
return /** @type {!proto.gateway.web.v1.AnalyticsTimeWindow} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
22363
|
+
};
|
|
22364
|
+
|
|
22365
|
+
|
|
22366
|
+
/**
|
|
22367
|
+
* @param {!proto.gateway.web.v1.AnalyticsTimeWindow} value
|
|
22368
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
22369
|
+
*/
|
|
22370
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setTimeWindow = function(value) {
|
|
22371
|
+
return jspb.Message.setProto3EnumField(this, 3, value);
|
|
22372
|
+
};
|
|
22373
|
+
|
|
22374
|
+
|
|
22375
|
+
/**
|
|
22376
|
+
* optional string time_zone = 4;
|
|
22377
|
+
* @return {string}
|
|
22378
|
+
*/
|
|
22379
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.getTimeZone = function() {
|
|
22380
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
22381
|
+
};
|
|
22382
|
+
|
|
22383
|
+
|
|
22384
|
+
/**
|
|
22385
|
+
* @param {string} value
|
|
22386
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmRequest} returns this
|
|
22387
|
+
*/
|
|
22388
|
+
proto.gateway.web.v1.ActivityRhythmRequest.prototype.setTimeZone = function(value) {
|
|
22389
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
22390
|
+
};
|
|
22391
|
+
|
|
22392
|
+
|
|
22393
|
+
|
|
22394
|
+
/**
|
|
22395
|
+
* List of repeated fields within this message type.
|
|
22396
|
+
* @private {!Array<number>}
|
|
22397
|
+
* @const
|
|
22398
|
+
*/
|
|
22399
|
+
proto.gateway.web.v1.ActivityRhythm.repeatedFields_ = [1];
|
|
22400
|
+
|
|
22401
|
+
|
|
22402
|
+
|
|
22403
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22404
|
+
/**
|
|
22405
|
+
* Creates an object representation of this proto.
|
|
22406
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22407
|
+
* Optional fields that are not set will be set to undefined.
|
|
22408
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22409
|
+
* For the list of reserved names please see:
|
|
22410
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22411
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22412
|
+
* JSPB instance for transitional soy proto support:
|
|
22413
|
+
* http://goto/soy-param-migration
|
|
22414
|
+
* @return {!Object}
|
|
22415
|
+
*/
|
|
22416
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.toObject = function(opt_includeInstance) {
|
|
22417
|
+
return proto.gateway.web.v1.ActivityRhythm.toObject(opt_includeInstance, this);
|
|
22418
|
+
};
|
|
22419
|
+
|
|
22420
|
+
|
|
22421
|
+
/**
|
|
22422
|
+
* Static version of the {@see toObject} method.
|
|
22423
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22424
|
+
* the JSPB instance for transitional soy proto support:
|
|
22425
|
+
* http://goto/soy-param-migration
|
|
22426
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} msg The msg instance to transform.
|
|
22427
|
+
* @return {!Object}
|
|
22428
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22429
|
+
*/
|
|
22430
|
+
proto.gateway.web.v1.ActivityRhythm.toObject = function(includeInstance, msg) {
|
|
22431
|
+
var f, obj = {
|
|
22432
|
+
bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
|
|
22433
|
+
proto.gateway.web.v1.ActivityRhythmBucket.toObject, includeInstance),
|
|
22434
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22435
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22436
|
+
asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22437
|
+
timeZone: jspb.Message.getFieldWithDefault(msg, 5, "")
|
|
22438
|
+
};
|
|
22439
|
+
|
|
22440
|
+
if (includeInstance) {
|
|
22441
|
+
obj.$jspbMessageInstance = msg;
|
|
22442
|
+
}
|
|
22443
|
+
return obj;
|
|
22444
|
+
};
|
|
22445
|
+
}
|
|
22446
|
+
|
|
22447
|
+
|
|
22448
|
+
/**
|
|
22449
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22450
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22451
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm}
|
|
22452
|
+
*/
|
|
22453
|
+
proto.gateway.web.v1.ActivityRhythm.deserializeBinary = function(bytes) {
|
|
22454
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22455
|
+
var msg = new proto.gateway.web.v1.ActivityRhythm;
|
|
22456
|
+
return proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader(msg, reader);
|
|
22457
|
+
};
|
|
22458
|
+
|
|
22459
|
+
|
|
22460
|
+
/**
|
|
22461
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22462
|
+
* given reader into the given message object.
|
|
22463
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} msg The message object to deserialize into.
|
|
22464
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22465
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm}
|
|
22466
|
+
*/
|
|
22467
|
+
proto.gateway.web.v1.ActivityRhythm.deserializeBinaryFromReader = function(msg, reader) {
|
|
22468
|
+
while (reader.nextField()) {
|
|
22469
|
+
if (reader.isEndGroup()) {
|
|
22470
|
+
break;
|
|
22471
|
+
}
|
|
22472
|
+
var field = reader.getFieldNumber();
|
|
22473
|
+
switch (field) {
|
|
22474
|
+
case 1:
|
|
22475
|
+
var value = new proto.gateway.web.v1.ActivityRhythmBucket;
|
|
22476
|
+
reader.readMessage(value,proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader);
|
|
22477
|
+
msg.addBuckets(value);
|
|
22478
|
+
break;
|
|
22479
|
+
case 2:
|
|
22480
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22481
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22482
|
+
msg.setWindowStart(value);
|
|
22483
|
+
break;
|
|
22484
|
+
case 3:
|
|
22485
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22486
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22487
|
+
msg.setWindowEnd(value);
|
|
22488
|
+
break;
|
|
22489
|
+
case 4:
|
|
22490
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22491
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22492
|
+
msg.setAsOf(value);
|
|
22493
|
+
break;
|
|
22494
|
+
case 5:
|
|
22495
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22496
|
+
msg.setTimeZone(value);
|
|
22497
|
+
break;
|
|
22498
|
+
default:
|
|
22499
|
+
reader.skipField();
|
|
22500
|
+
break;
|
|
22501
|
+
}
|
|
22502
|
+
}
|
|
22503
|
+
return msg;
|
|
22504
|
+
};
|
|
22505
|
+
|
|
22506
|
+
|
|
22507
|
+
/**
|
|
22508
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22509
|
+
* @return {!Uint8Array}
|
|
22510
|
+
*/
|
|
22511
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.serializeBinary = function() {
|
|
22512
|
+
var writer = new jspb.BinaryWriter();
|
|
22513
|
+
proto.gateway.web.v1.ActivityRhythm.serializeBinaryToWriter(this, writer);
|
|
22514
|
+
return writer.getResultBuffer();
|
|
22515
|
+
};
|
|
22516
|
+
|
|
22517
|
+
|
|
22518
|
+
/**
|
|
22519
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22520
|
+
* format), writing to the given BinaryWriter.
|
|
22521
|
+
* @param {!proto.gateway.web.v1.ActivityRhythm} message
|
|
22522
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22523
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22524
|
+
*/
|
|
22525
|
+
proto.gateway.web.v1.ActivityRhythm.serializeBinaryToWriter = function(message, writer) {
|
|
22526
|
+
var f = undefined;
|
|
22527
|
+
f = message.getBucketsList();
|
|
22528
|
+
if (f.length > 0) {
|
|
22529
|
+
writer.writeRepeatedMessage(
|
|
22530
|
+
1,
|
|
22531
|
+
f,
|
|
22532
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter
|
|
22533
|
+
);
|
|
22534
|
+
}
|
|
22535
|
+
f = message.getWindowStart();
|
|
22536
|
+
if (f != null) {
|
|
22537
|
+
writer.writeMessage(
|
|
22538
|
+
2,
|
|
22539
|
+
f,
|
|
22540
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22541
|
+
);
|
|
22542
|
+
}
|
|
22543
|
+
f = message.getWindowEnd();
|
|
22544
|
+
if (f != null) {
|
|
22545
|
+
writer.writeMessage(
|
|
22546
|
+
3,
|
|
22547
|
+
f,
|
|
22548
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22549
|
+
);
|
|
22550
|
+
}
|
|
22551
|
+
f = message.getAsOf();
|
|
22552
|
+
if (f != null) {
|
|
22553
|
+
writer.writeMessage(
|
|
22554
|
+
4,
|
|
22555
|
+
f,
|
|
22556
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22557
|
+
);
|
|
22558
|
+
}
|
|
22559
|
+
f = message.getTimeZone();
|
|
22560
|
+
if (f.length > 0) {
|
|
22561
|
+
writer.writeString(
|
|
22562
|
+
5,
|
|
22563
|
+
f
|
|
22564
|
+
);
|
|
22565
|
+
}
|
|
22566
|
+
};
|
|
22567
|
+
|
|
22568
|
+
|
|
22569
|
+
/**
|
|
22570
|
+
* repeated ActivityRhythmBucket buckets = 1;
|
|
22571
|
+
* @return {!Array<!proto.gateway.web.v1.ActivityRhythmBucket>}
|
|
22572
|
+
*/
|
|
22573
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getBucketsList = function() {
|
|
22574
|
+
return /** @type{!Array<!proto.gateway.web.v1.ActivityRhythmBucket>} */ (
|
|
22575
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ActivityRhythmBucket, 1));
|
|
22576
|
+
};
|
|
22577
|
+
|
|
22578
|
+
|
|
22579
|
+
/**
|
|
22580
|
+
* @param {!Array<!proto.gateway.web.v1.ActivityRhythmBucket>} value
|
|
22581
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22582
|
+
*/
|
|
22583
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setBucketsList = function(value) {
|
|
22584
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
22585
|
+
};
|
|
22586
|
+
|
|
22587
|
+
|
|
22588
|
+
/**
|
|
22589
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket=} opt_value
|
|
22590
|
+
* @param {number=} opt_index
|
|
22591
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
22592
|
+
*/
|
|
22593
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.addBuckets = function(opt_value, opt_index) {
|
|
22594
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.ActivityRhythmBucket, opt_index);
|
|
22595
|
+
};
|
|
22596
|
+
|
|
22597
|
+
|
|
22598
|
+
/**
|
|
22599
|
+
* Clears the list making it empty but non-null.
|
|
22600
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22601
|
+
*/
|
|
22602
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearBucketsList = function() {
|
|
22603
|
+
return this.setBucketsList([]);
|
|
22604
|
+
};
|
|
22605
|
+
|
|
22606
|
+
|
|
22607
|
+
/**
|
|
22608
|
+
* optional google.protobuf.Timestamp window_start = 2;
|
|
22609
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22610
|
+
*/
|
|
22611
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowStart = function() {
|
|
22612
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22613
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
22614
|
+
};
|
|
22615
|
+
|
|
22616
|
+
|
|
22617
|
+
/**
|
|
22618
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22619
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22620
|
+
*/
|
|
22621
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowStart = function(value) {
|
|
22622
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
22623
|
+
};
|
|
22624
|
+
|
|
22625
|
+
|
|
22626
|
+
/**
|
|
22627
|
+
* Clears the message field making it undefined.
|
|
22628
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22629
|
+
*/
|
|
22630
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowStart = function() {
|
|
22631
|
+
return this.setWindowStart(undefined);
|
|
22632
|
+
};
|
|
22633
|
+
|
|
22634
|
+
|
|
22635
|
+
/**
|
|
22636
|
+
* Returns whether this field is set.
|
|
22637
|
+
* @return {boolean}
|
|
22638
|
+
*/
|
|
22639
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowStart = function() {
|
|
22640
|
+
return jspb.Message.getField(this, 2) != null;
|
|
22641
|
+
};
|
|
22642
|
+
|
|
22643
|
+
|
|
22644
|
+
/**
|
|
22645
|
+
* optional google.protobuf.Timestamp window_end = 3;
|
|
22646
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22647
|
+
*/
|
|
22648
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getWindowEnd = function() {
|
|
22649
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22650
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
22651
|
+
};
|
|
22652
|
+
|
|
22653
|
+
|
|
22654
|
+
/**
|
|
22655
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22656
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22657
|
+
*/
|
|
22658
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setWindowEnd = function(value) {
|
|
22659
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
22660
|
+
};
|
|
22661
|
+
|
|
22662
|
+
|
|
22663
|
+
/**
|
|
22664
|
+
* Clears the message field making it undefined.
|
|
22665
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22666
|
+
*/
|
|
22667
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearWindowEnd = function() {
|
|
22668
|
+
return this.setWindowEnd(undefined);
|
|
22669
|
+
};
|
|
22670
|
+
|
|
22671
|
+
|
|
22672
|
+
/**
|
|
22673
|
+
* Returns whether this field is set.
|
|
22674
|
+
* @return {boolean}
|
|
22675
|
+
*/
|
|
22676
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasWindowEnd = function() {
|
|
22677
|
+
return jspb.Message.getField(this, 3) != null;
|
|
22678
|
+
};
|
|
22679
|
+
|
|
22680
|
+
|
|
22681
|
+
/**
|
|
22682
|
+
* optional google.protobuf.Timestamp as_of = 4;
|
|
22683
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22684
|
+
*/
|
|
22685
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getAsOf = function() {
|
|
22686
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22687
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
22688
|
+
};
|
|
22689
|
+
|
|
22690
|
+
|
|
22691
|
+
/**
|
|
22692
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22693
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22694
|
+
*/
|
|
22695
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setAsOf = function(value) {
|
|
22696
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
22697
|
+
};
|
|
22698
|
+
|
|
22699
|
+
|
|
22700
|
+
/**
|
|
22701
|
+
* Clears the message field making it undefined.
|
|
22702
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22703
|
+
*/
|
|
22704
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.clearAsOf = function() {
|
|
22705
|
+
return this.setAsOf(undefined);
|
|
22706
|
+
};
|
|
22707
|
+
|
|
22708
|
+
|
|
22709
|
+
/**
|
|
22710
|
+
* Returns whether this field is set.
|
|
22711
|
+
* @return {boolean}
|
|
22712
|
+
*/
|
|
22713
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.hasAsOf = function() {
|
|
22714
|
+
return jspb.Message.getField(this, 4) != null;
|
|
22715
|
+
};
|
|
22716
|
+
|
|
22717
|
+
|
|
22718
|
+
/**
|
|
22719
|
+
* optional string time_zone = 5;
|
|
22720
|
+
* @return {string}
|
|
22721
|
+
*/
|
|
22722
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.getTimeZone = function() {
|
|
22723
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
22724
|
+
};
|
|
22725
|
+
|
|
22726
|
+
|
|
22727
|
+
/**
|
|
22728
|
+
* @param {string} value
|
|
22729
|
+
* @return {!proto.gateway.web.v1.ActivityRhythm} returns this
|
|
22730
|
+
*/
|
|
22731
|
+
proto.gateway.web.v1.ActivityRhythm.prototype.setTimeZone = function(value) {
|
|
22732
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
22733
|
+
};
|
|
22734
|
+
|
|
22735
|
+
|
|
22736
|
+
|
|
22737
|
+
|
|
22738
|
+
|
|
22739
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22740
|
+
/**
|
|
22741
|
+
* Creates an object representation of this proto.
|
|
22742
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22743
|
+
* Optional fields that are not set will be set to undefined.
|
|
22744
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22745
|
+
* For the list of reserved names please see:
|
|
22746
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22747
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22748
|
+
* JSPB instance for transitional soy proto support:
|
|
22749
|
+
* http://goto/soy-param-migration
|
|
22750
|
+
* @return {!Object}
|
|
22751
|
+
*/
|
|
22752
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.toObject = function(opt_includeInstance) {
|
|
22753
|
+
return proto.gateway.web.v1.ActivityRhythmBucket.toObject(opt_includeInstance, this);
|
|
22754
|
+
};
|
|
22755
|
+
|
|
22756
|
+
|
|
22757
|
+
/**
|
|
22758
|
+
* Static version of the {@see toObject} method.
|
|
22759
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22760
|
+
* the JSPB instance for transitional soy proto support:
|
|
22761
|
+
* http://goto/soy-param-migration
|
|
22762
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} msg The msg instance to transform.
|
|
22763
|
+
* @return {!Object}
|
|
22764
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22765
|
+
*/
|
|
22766
|
+
proto.gateway.web.v1.ActivityRhythmBucket.toObject = function(includeInstance, msg) {
|
|
22767
|
+
var f, obj = {
|
|
22768
|
+
dayOfWeek: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
22769
|
+
hourOfDay: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
22770
|
+
eventCount: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
22771
|
+
modelUsage: (f = msg.getModelUsage()) && proto.gateway.web.v1.TokenActivityMeasures.toObject(includeInstance, f),
|
|
22772
|
+
usageUnavailableCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
22773
|
+
costUnavailableCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
22774
|
+
toolCalls: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
22775
|
+
userMessages: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
22776
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 9, 0),
|
|
22777
|
+
activeUsers: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
22778
|
+
topTool: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
22779
|
+
};
|
|
22780
|
+
|
|
22781
|
+
if (includeInstance) {
|
|
22782
|
+
obj.$jspbMessageInstance = msg;
|
|
22783
|
+
}
|
|
22784
|
+
return obj;
|
|
22785
|
+
};
|
|
22786
|
+
}
|
|
22787
|
+
|
|
22788
|
+
|
|
22789
|
+
/**
|
|
22790
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22791
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22792
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
22793
|
+
*/
|
|
22794
|
+
proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinary = function(bytes) {
|
|
22795
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22796
|
+
var msg = new proto.gateway.web.v1.ActivityRhythmBucket;
|
|
22797
|
+
return proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader(msg, reader);
|
|
22798
|
+
};
|
|
22799
|
+
|
|
22800
|
+
|
|
22801
|
+
/**
|
|
22802
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22803
|
+
* given reader into the given message object.
|
|
22804
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} msg The message object to deserialize into.
|
|
22805
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22806
|
+
* @return {!proto.gateway.web.v1.ActivityRhythmBucket}
|
|
22807
|
+
*/
|
|
22808
|
+
proto.gateway.web.v1.ActivityRhythmBucket.deserializeBinaryFromReader = function(msg, reader) {
|
|
22809
|
+
while (reader.nextField()) {
|
|
22810
|
+
if (reader.isEndGroup()) {
|
|
22811
|
+
break;
|
|
22812
|
+
}
|
|
22813
|
+
var field = reader.getFieldNumber();
|
|
22814
|
+
switch (field) {
|
|
22815
|
+
case 1:
|
|
22816
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
22817
|
+
msg.setDayOfWeek(value);
|
|
22818
|
+
break;
|
|
22819
|
+
case 2:
|
|
22820
|
+
var value = /** @type {number} */ (reader.readUint32());
|
|
22821
|
+
msg.setHourOfDay(value);
|
|
22822
|
+
break;
|
|
22823
|
+
case 3:
|
|
22824
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22825
|
+
msg.setEventCount(value);
|
|
22826
|
+
break;
|
|
22827
|
+
case 4:
|
|
22828
|
+
var value = new proto.gateway.web.v1.TokenActivityMeasures;
|
|
22829
|
+
reader.readMessage(value,proto.gateway.web.v1.TokenActivityMeasures.deserializeBinaryFromReader);
|
|
22830
|
+
msg.setModelUsage(value);
|
|
22831
|
+
break;
|
|
22832
|
+
case 5:
|
|
22833
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22834
|
+
msg.setUsageUnavailableCount(value);
|
|
22835
|
+
break;
|
|
22836
|
+
case 6:
|
|
22837
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22838
|
+
msg.setCostUnavailableCount(value);
|
|
22839
|
+
break;
|
|
22840
|
+
case 7:
|
|
22841
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22842
|
+
msg.setToolCalls(value);
|
|
22843
|
+
break;
|
|
22844
|
+
case 8:
|
|
22845
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22846
|
+
msg.setUserMessages(value);
|
|
22847
|
+
break;
|
|
22848
|
+
case 9:
|
|
22849
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22850
|
+
msg.setSessions(value);
|
|
22851
|
+
break;
|
|
22852
|
+
case 10:
|
|
22853
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22854
|
+
msg.setActiveUsers(value);
|
|
22855
|
+
break;
|
|
22856
|
+
case 11:
|
|
22857
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22858
|
+
msg.setTopTool(value);
|
|
22859
|
+
break;
|
|
22860
|
+
default:
|
|
22861
|
+
reader.skipField();
|
|
22862
|
+
break;
|
|
22863
|
+
}
|
|
22864
|
+
}
|
|
22865
|
+
return msg;
|
|
22866
|
+
};
|
|
22867
|
+
|
|
22868
|
+
|
|
22869
|
+
/**
|
|
22870
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22871
|
+
* @return {!Uint8Array}
|
|
22872
|
+
*/
|
|
22873
|
+
proto.gateway.web.v1.ActivityRhythmBucket.prototype.serializeBinary = function() {
|
|
22874
|
+
var writer = new jspb.BinaryWriter();
|
|
22875
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter(this, writer);
|
|
22876
|
+
return writer.getResultBuffer();
|
|
22877
|
+
};
|
|
22878
|
+
|
|
22879
|
+
|
|
22880
|
+
/**
|
|
22881
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22882
|
+
* format), writing to the given BinaryWriter.
|
|
22883
|
+
* @param {!proto.gateway.web.v1.ActivityRhythmBucket} message
|
|
22884
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22885
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22886
|
+
*/
|
|
22887
|
+
proto.gateway.web.v1.ActivityRhythmBucket.serializeBinaryToWriter = function(message, writer) {
|
|
22888
|
+
var f = undefined;
|
|
22889
|
+
f = message.getDayOfWeek();
|
|
22890
|
+
if (f !== 0) {
|
|
22891
|
+
writer.writeUint32(
|
|
22892
|
+
1,
|
|
22893
|
+
f
|
|
22894
|
+
);
|
|
22895
|
+
}
|
|
22896
|
+
f = message.getHourOfDay();
|
|
22897
|
+
if (f !== 0) {
|
|
22898
|
+
writer.writeUint32(
|
|
22899
|
+
2,
|
|
22900
|
+
f
|
|
22901
|
+
);
|
|
22902
|
+
}
|
|
22903
|
+
f = message.getEventCount();
|
|
22904
|
+
if (f !== 0) {
|
|
22905
|
+
writer.writeUint64(
|
|
22906
|
+
3,
|
|
22907
|
+
f
|
|
22908
|
+
);
|
|
22909
|
+
}
|
|
22910
|
+
f = message.getModelUsage();
|
|
22911
|
+
if (f != null) {
|
|
22912
|
+
writer.writeMessage(
|
|
22913
|
+
4,
|
|
22914
|
+
f,
|
|
21240
22915
|
proto.gateway.web.v1.TokenActivityMeasures.serializeBinaryToWriter
|
|
21241
22916
|
);
|
|
21242
22917
|
}
|
|
@@ -37826,6 +39501,18 @@ proto.gateway.web.v1.AITokenActivityDimension = {
|
|
|
37826
39501
|
AI_TOKEN_ACTIVITY_DIMENSION_EFFORT: 6
|
|
37827
39502
|
};
|
|
37828
39503
|
|
|
39504
|
+
/**
|
|
39505
|
+
* @enum {number}
|
|
39506
|
+
*/
|
|
39507
|
+
proto.gateway.web.v1.AISpendForecastDimension = {
|
|
39508
|
+
AI_SPEND_FORECAST_DIMENSION_UNSPECIFIED: 0,
|
|
39509
|
+
AI_SPEND_FORECAST_DIMENSION_MODEL: 1,
|
|
39510
|
+
AI_SPEND_FORECAST_DIMENSION_PROVIDER: 2,
|
|
39511
|
+
AI_SPEND_FORECAST_DIMENSION_SOURCE_SYSTEM: 3,
|
|
39512
|
+
AI_SPEND_FORECAST_DIMENSION_USER: 4,
|
|
39513
|
+
AI_SPEND_FORECAST_DIMENSION_API_KEY: 5
|
|
39514
|
+
};
|
|
39515
|
+
|
|
37829
39516
|
/**
|
|
37830
39517
|
* @enum {number}
|
|
37831
39518
|
*/
|