@miradorlabs/web-grpc 3.1.0 → 3.2.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.
- package/package.json +1 -1
- package/proto/gateway/web/v1/admin_gateway.ts +930 -0
- package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +253 -0
- package/proto/gateway/web/v1/admin_gateway_pb.js +1650 -0
- package/proto/gateway/web/v1/ai_gateway.ts +1312 -209
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +37 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +2254 -177
- package/proto/gateway/web/v1/beta_gateway.ts +1 -606
- package/proto/gateway/web/v1/beta_gateway_grpc_pb.js +1 -67
- package/proto/gateway/web/v1/beta_gateway_pb.js +309 -1607
- package/proto/gateway/web/v1/reference_gateway.ts +65 -87
- package/proto/gateway/web/v1/reference_gateway_grpc_pb.js +4 -69
- package/proto/gateway/web/v1/reference_gateway_pb.js +134 -71
|
@@ -21,6 +21,8 @@ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/time
|
|
|
21
21
|
goog.object.extend(proto, google_protobuf_timestamp_pb);
|
|
22
22
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
23
23
|
goog.object.extend(proto, proto_gateway_common_v1_status_pb);
|
|
24
|
+
var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
|
|
25
|
+
goog.object.extend(proto, proto_gateway_web_v1_reference_gateway_pb);
|
|
24
26
|
var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
|
|
25
27
|
goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
|
|
26
28
|
goog.exportSymbol('proto.gateway.web.v1.AIContentPart', null, global);
|
|
@@ -46,6 +48,7 @@ goog.exportSymbol('proto.gateway.web.v1.AISessionEventEnvelope', null, global);
|
|
|
46
48
|
goog.exportSymbol('proto.gateway.web.v1.AISessionEventEnvelope.FrameCase', null, global);
|
|
47
49
|
goog.exportSymbol('proto.gateway.web.v1.AISessionEventKind', null, global);
|
|
48
50
|
goog.exportSymbol('proto.gateway.web.v1.AISessionFilter', null, global);
|
|
51
|
+
goog.exportSymbol('proto.gateway.web.v1.AISessionRef', null, global);
|
|
49
52
|
goog.exportSymbol('proto.gateway.web.v1.AISessionSummary', null, global);
|
|
50
53
|
goog.exportSymbol('proto.gateway.web.v1.AITokenActivityDimension', null, global);
|
|
51
54
|
goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
|
|
@@ -90,6 +93,11 @@ goog.exportSymbol('proto.gateway.web.v1.ListSessionEventsRequest', null, global)
|
|
|
90
93
|
goog.exportSymbol('proto.gateway.web.v1.ListSessionEventsResponse', null, global);
|
|
91
94
|
goog.exportSymbol('proto.gateway.web.v1.ListSessionsRequest', null, global);
|
|
92
95
|
goog.exportSymbol('proto.gateway.web.v1.ListSessionsResponse', null, global);
|
|
96
|
+
goog.exportSymbol('proto.gateway.web.v1.ModelActivity', null, global);
|
|
97
|
+
goog.exportSymbol('proto.gateway.web.v1.ModelActivityGroup', null, global);
|
|
98
|
+
goog.exportSymbol('proto.gateway.web.v1.ModelActivityPrincipal', null, global);
|
|
99
|
+
goog.exportSymbol('proto.gateway.web.v1.ModelActivityRequest', null, global);
|
|
100
|
+
goog.exportSymbol('proto.gateway.web.v1.ModelActivityResponse', null, global);
|
|
93
101
|
goog.exportSymbol('proto.gateway.web.v1.ProjectOverview', null, global);
|
|
94
102
|
goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewRequest', null, global);
|
|
95
103
|
goog.exportSymbol('proto.gateway.web.v1.ProjectOverviewSlice', null, global);
|
|
@@ -1401,6 +1409,132 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1401
1409
|
*/
|
|
1402
1410
|
proto.gateway.web.v1.ResourceRanking.displayName = 'proto.gateway.web.v1.ResourceRanking';
|
|
1403
1411
|
}
|
|
1412
|
+
/**
|
|
1413
|
+
* Generated by JsPbCodeGenerator.
|
|
1414
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1415
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1416
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1417
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1418
|
+
* valid.
|
|
1419
|
+
* @extends {jspb.Message}
|
|
1420
|
+
* @constructor
|
|
1421
|
+
*/
|
|
1422
|
+
proto.gateway.web.v1.ModelActivityRequest = function(opt_data) {
|
|
1423
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ModelActivityRequest.repeatedFields_, null);
|
|
1424
|
+
};
|
|
1425
|
+
goog.inherits(proto.gateway.web.v1.ModelActivityRequest, jspb.Message);
|
|
1426
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1427
|
+
/**
|
|
1428
|
+
* @public
|
|
1429
|
+
* @override
|
|
1430
|
+
*/
|
|
1431
|
+
proto.gateway.web.v1.ModelActivityRequest.displayName = 'proto.gateway.web.v1.ModelActivityRequest';
|
|
1432
|
+
}
|
|
1433
|
+
/**
|
|
1434
|
+
* Generated by JsPbCodeGenerator.
|
|
1435
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1436
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1437
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1438
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1439
|
+
* valid.
|
|
1440
|
+
* @extends {jspb.Message}
|
|
1441
|
+
* @constructor
|
|
1442
|
+
*/
|
|
1443
|
+
proto.gateway.web.v1.ModelActivityGroup = function(opt_data) {
|
|
1444
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ModelActivityGroup.repeatedFields_, null);
|
|
1445
|
+
};
|
|
1446
|
+
goog.inherits(proto.gateway.web.v1.ModelActivityGroup, jspb.Message);
|
|
1447
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1448
|
+
/**
|
|
1449
|
+
* @public
|
|
1450
|
+
* @override
|
|
1451
|
+
*/
|
|
1452
|
+
proto.gateway.web.v1.ModelActivityGroup.displayName = 'proto.gateway.web.v1.ModelActivityGroup';
|
|
1453
|
+
}
|
|
1454
|
+
/**
|
|
1455
|
+
* Generated by JsPbCodeGenerator.
|
|
1456
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1457
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1458
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1459
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1460
|
+
* valid.
|
|
1461
|
+
* @extends {jspb.Message}
|
|
1462
|
+
* @constructor
|
|
1463
|
+
*/
|
|
1464
|
+
proto.gateway.web.v1.ModelActivityResponse = function(opt_data) {
|
|
1465
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ModelActivityResponse.repeatedFields_, null);
|
|
1466
|
+
};
|
|
1467
|
+
goog.inherits(proto.gateway.web.v1.ModelActivityResponse, jspb.Message);
|
|
1468
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1469
|
+
/**
|
|
1470
|
+
* @public
|
|
1471
|
+
* @override
|
|
1472
|
+
*/
|
|
1473
|
+
proto.gateway.web.v1.ModelActivityResponse.displayName = 'proto.gateway.web.v1.ModelActivityResponse';
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Generated by JsPbCodeGenerator.
|
|
1477
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1478
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1479
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1480
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1481
|
+
* valid.
|
|
1482
|
+
* @extends {jspb.Message}
|
|
1483
|
+
* @constructor
|
|
1484
|
+
*/
|
|
1485
|
+
proto.gateway.web.v1.ModelActivity = function(opt_data) {
|
|
1486
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ModelActivity.repeatedFields_, null);
|
|
1487
|
+
};
|
|
1488
|
+
goog.inherits(proto.gateway.web.v1.ModelActivity, jspb.Message);
|
|
1489
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1490
|
+
/**
|
|
1491
|
+
* @public
|
|
1492
|
+
* @override
|
|
1493
|
+
*/
|
|
1494
|
+
proto.gateway.web.v1.ModelActivity.displayName = 'proto.gateway.web.v1.ModelActivity';
|
|
1495
|
+
}
|
|
1496
|
+
/**
|
|
1497
|
+
* Generated by JsPbCodeGenerator.
|
|
1498
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1499
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1500
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1501
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1502
|
+
* valid.
|
|
1503
|
+
* @extends {jspb.Message}
|
|
1504
|
+
* @constructor
|
|
1505
|
+
*/
|
|
1506
|
+
proto.gateway.web.v1.ModelActivityPrincipal = function(opt_data) {
|
|
1507
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1508
|
+
};
|
|
1509
|
+
goog.inherits(proto.gateway.web.v1.ModelActivityPrincipal, jspb.Message);
|
|
1510
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1511
|
+
/**
|
|
1512
|
+
* @public
|
|
1513
|
+
* @override
|
|
1514
|
+
*/
|
|
1515
|
+
proto.gateway.web.v1.ModelActivityPrincipal.displayName = 'proto.gateway.web.v1.ModelActivityPrincipal';
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Generated by JsPbCodeGenerator.
|
|
1519
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1520
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1521
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1522
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1523
|
+
* valid.
|
|
1524
|
+
* @extends {jspb.Message}
|
|
1525
|
+
* @constructor
|
|
1526
|
+
*/
|
|
1527
|
+
proto.gateway.web.v1.AISessionRef = function(opt_data) {
|
|
1528
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1529
|
+
};
|
|
1530
|
+
goog.inherits(proto.gateway.web.v1.AISessionRef, jspb.Message);
|
|
1531
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1532
|
+
/**
|
|
1533
|
+
* @public
|
|
1534
|
+
* @override
|
|
1535
|
+
*/
|
|
1536
|
+
proto.gateway.web.v1.AISessionRef.displayName = 'proto.gateway.web.v1.AISessionRef';
|
|
1537
|
+
}
|
|
1404
1538
|
/**
|
|
1405
1539
|
* Generated by JsPbCodeGenerator.
|
|
1406
1540
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -9987,7 +10121,7 @@ proto.gateway.web.v1.SessionTimelinePoint.prototype.setEffort = function(value)
|
|
|
9987
10121
|
* @private {!Array<number>}
|
|
9988
10122
|
* @const
|
|
9989
10123
|
*/
|
|
9990
|
-
proto.gateway.web.v1.AIGitActivityFilter.repeatedFields_ = [1
|
|
10124
|
+
proto.gateway.web.v1.AIGitActivityFilter.repeatedFields_ = [1];
|
|
9991
10125
|
|
|
9992
10126
|
|
|
9993
10127
|
|
|
@@ -10020,8 +10154,8 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.toObject = function(opt_inclu
|
|
|
10020
10154
|
*/
|
|
10021
10155
|
proto.gateway.web.v1.AIGitActivityFilter.toObject = function(includeInstance, msg) {
|
|
10022
10156
|
var f, obj = {
|
|
10023
|
-
|
|
10024
|
-
|
|
10157
|
+
sessionList: jspb.Message.toObjectList(msg.getSessionList(),
|
|
10158
|
+
proto.gateway.web.v1.AISessionRef.toObject, includeInstance),
|
|
10025
10159
|
eventTimeAfter: (f = msg.getEventTimeAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
10026
10160
|
eventTimeBefore: (f = msg.getEventTimeBefore()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
10027
10161
|
};
|
|
@@ -10061,19 +10195,16 @@ proto.gateway.web.v1.AIGitActivityFilter.deserializeBinaryFromReader = function(
|
|
|
10061
10195
|
var field = reader.getFieldNumber();
|
|
10062
10196
|
switch (field) {
|
|
10063
10197
|
case 1:
|
|
10064
|
-
var value =
|
|
10065
|
-
|
|
10198
|
+
var value = new proto.gateway.web.v1.AISessionRef;
|
|
10199
|
+
reader.readMessage(value,proto.gateway.web.v1.AISessionRef.deserializeBinaryFromReader);
|
|
10200
|
+
msg.addSession(value);
|
|
10066
10201
|
break;
|
|
10067
10202
|
case 2:
|
|
10068
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
10069
|
-
msg.addSourceSystem(value);
|
|
10070
|
-
break;
|
|
10071
|
-
case 3:
|
|
10072
10203
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
10073
10204
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
10074
10205
|
msg.setEventTimeAfter(value);
|
|
10075
10206
|
break;
|
|
10076
|
-
case
|
|
10207
|
+
case 3:
|
|
10077
10208
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
10078
10209
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
10079
10210
|
msg.setEventTimeBefore(value);
|
|
@@ -10107,24 +10238,18 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.serializeBinary = function()
|
|
|
10107
10238
|
*/
|
|
10108
10239
|
proto.gateway.web.v1.AIGitActivityFilter.serializeBinaryToWriter = function(message, writer) {
|
|
10109
10240
|
var f = undefined;
|
|
10110
|
-
f = message.
|
|
10241
|
+
f = message.getSessionList();
|
|
10111
10242
|
if (f.length > 0) {
|
|
10112
|
-
writer.
|
|
10243
|
+
writer.writeRepeatedMessage(
|
|
10113
10244
|
1,
|
|
10114
|
-
f
|
|
10115
|
-
|
|
10116
|
-
}
|
|
10117
|
-
f = message.getSourceSystemList();
|
|
10118
|
-
if (f.length > 0) {
|
|
10119
|
-
writer.writeRepeatedString(
|
|
10120
|
-
2,
|
|
10121
|
-
f
|
|
10245
|
+
f,
|
|
10246
|
+
proto.gateway.web.v1.AISessionRef.serializeBinaryToWriter
|
|
10122
10247
|
);
|
|
10123
10248
|
}
|
|
10124
10249
|
f = message.getEventTimeAfter();
|
|
10125
10250
|
if (f != null) {
|
|
10126
10251
|
writer.writeMessage(
|
|
10127
|
-
|
|
10252
|
+
2,
|
|
10128
10253
|
f,
|
|
10129
10254
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
10130
10255
|
);
|
|
@@ -10132,7 +10257,7 @@ proto.gateway.web.v1.AIGitActivityFilter.serializeBinaryToWriter = function(mess
|
|
|
10132
10257
|
f = message.getEventTimeBefore();
|
|
10133
10258
|
if (f != null) {
|
|
10134
10259
|
writer.writeMessage(
|
|
10135
|
-
|
|
10260
|
+
3,
|
|
10136
10261
|
f,
|
|
10137
10262
|
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
10138
10263
|
);
|
|
@@ -10141,67 +10266,31 @@ proto.gateway.web.v1.AIGitActivityFilter.serializeBinaryToWriter = function(mess
|
|
|
10141
10266
|
|
|
10142
10267
|
|
|
10143
10268
|
/**
|
|
10144
|
-
* repeated
|
|
10145
|
-
* @return {!Array
|
|
10146
|
-
*/
|
|
10147
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.getSessionIdList = function() {
|
|
10148
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
10149
|
-
};
|
|
10150
|
-
|
|
10151
|
-
|
|
10152
|
-
/**
|
|
10153
|
-
* @param {!Array<string>} value
|
|
10154
|
-
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10155
|
-
*/
|
|
10156
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.setSessionIdList = function(value) {
|
|
10157
|
-
return jspb.Message.setField(this, 1, value || []);
|
|
10158
|
-
};
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
/**
|
|
10162
|
-
* @param {string} value
|
|
10163
|
-
* @param {number=} opt_index
|
|
10164
|
-
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10165
|
-
*/
|
|
10166
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.addSessionId = function(value, opt_index) {
|
|
10167
|
-
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
10168
|
-
};
|
|
10169
|
-
|
|
10170
|
-
|
|
10171
|
-
/**
|
|
10172
|
-
* Clears the list making it empty but non-null.
|
|
10173
|
-
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10174
|
-
*/
|
|
10175
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.clearSessionIdList = function() {
|
|
10176
|
-
return this.setSessionIdList([]);
|
|
10177
|
-
};
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
/**
|
|
10181
|
-
* repeated string source_system = 2;
|
|
10182
|
-
* @return {!Array<string>}
|
|
10269
|
+
* repeated AISessionRef session = 1;
|
|
10270
|
+
* @return {!Array<!proto.gateway.web.v1.AISessionRef>}
|
|
10183
10271
|
*/
|
|
10184
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.
|
|
10185
|
-
return /** @type
|
|
10272
|
+
proto.gateway.web.v1.AIGitActivityFilter.prototype.getSessionList = function() {
|
|
10273
|
+
return /** @type{!Array<!proto.gateway.web.v1.AISessionRef>} */ (
|
|
10274
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionRef, 1));
|
|
10186
10275
|
};
|
|
10187
10276
|
|
|
10188
10277
|
|
|
10189
10278
|
/**
|
|
10190
|
-
* @param {!Array
|
|
10279
|
+
* @param {!Array<!proto.gateway.web.v1.AISessionRef>} value
|
|
10191
10280
|
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10192
|
-
|
|
10193
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.
|
|
10194
|
-
return jspb.Message.
|
|
10281
|
+
*/
|
|
10282
|
+
proto.gateway.web.v1.AIGitActivityFilter.prototype.setSessionList = function(value) {
|
|
10283
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
10195
10284
|
};
|
|
10196
10285
|
|
|
10197
10286
|
|
|
10198
10287
|
/**
|
|
10199
|
-
* @param {
|
|
10288
|
+
* @param {!proto.gateway.web.v1.AISessionRef=} opt_value
|
|
10200
10289
|
* @param {number=} opt_index
|
|
10201
|
-
* @return {!proto.gateway.web.v1.
|
|
10290
|
+
* @return {!proto.gateway.web.v1.AISessionRef}
|
|
10202
10291
|
*/
|
|
10203
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.
|
|
10204
|
-
return jspb.Message.
|
|
10292
|
+
proto.gateway.web.v1.AIGitActivityFilter.prototype.addSession = function(opt_value, opt_index) {
|
|
10293
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.AISessionRef, opt_index);
|
|
10205
10294
|
};
|
|
10206
10295
|
|
|
10207
10296
|
|
|
@@ -10209,18 +10298,18 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.addSourceSystem = function(va
|
|
|
10209
10298
|
* Clears the list making it empty but non-null.
|
|
10210
10299
|
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10211
10300
|
*/
|
|
10212
|
-
proto.gateway.web.v1.AIGitActivityFilter.prototype.
|
|
10213
|
-
return this.
|
|
10301
|
+
proto.gateway.web.v1.AIGitActivityFilter.prototype.clearSessionList = function() {
|
|
10302
|
+
return this.setSessionList([]);
|
|
10214
10303
|
};
|
|
10215
10304
|
|
|
10216
10305
|
|
|
10217
10306
|
/**
|
|
10218
|
-
* optional google.protobuf.Timestamp event_time_after =
|
|
10307
|
+
* optional google.protobuf.Timestamp event_time_after = 2;
|
|
10219
10308
|
* @return {?proto.google.protobuf.Timestamp}
|
|
10220
10309
|
*/
|
|
10221
10310
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.getEventTimeAfter = function() {
|
|
10222
10311
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
10223
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
10312
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
|
|
10224
10313
|
};
|
|
10225
10314
|
|
|
10226
10315
|
|
|
@@ -10229,7 +10318,7 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.getEventTimeAfter = function(
|
|
|
10229
10318
|
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10230
10319
|
*/
|
|
10231
10320
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.setEventTimeAfter = function(value) {
|
|
10232
|
-
return jspb.Message.setWrapperField(this,
|
|
10321
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
10233
10322
|
};
|
|
10234
10323
|
|
|
10235
10324
|
|
|
@@ -10247,17 +10336,17 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.clearEventTimeAfter = functio
|
|
|
10247
10336
|
* @return {boolean}
|
|
10248
10337
|
*/
|
|
10249
10338
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.hasEventTimeAfter = function() {
|
|
10250
|
-
return jspb.Message.getField(this,
|
|
10339
|
+
return jspb.Message.getField(this, 2) != null;
|
|
10251
10340
|
};
|
|
10252
10341
|
|
|
10253
10342
|
|
|
10254
10343
|
/**
|
|
10255
|
-
* optional google.protobuf.Timestamp event_time_before =
|
|
10344
|
+
* optional google.protobuf.Timestamp event_time_before = 3;
|
|
10256
10345
|
* @return {?proto.google.protobuf.Timestamp}
|
|
10257
10346
|
*/
|
|
10258
10347
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.getEventTimeBefore = function() {
|
|
10259
10348
|
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
10260
|
-
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp,
|
|
10349
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
10261
10350
|
};
|
|
10262
10351
|
|
|
10263
10352
|
|
|
@@ -10266,7 +10355,7 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.getEventTimeBefore = function
|
|
|
10266
10355
|
* @return {!proto.gateway.web.v1.AIGitActivityFilter} returns this
|
|
10267
10356
|
*/
|
|
10268
10357
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.setEventTimeBefore = function(value) {
|
|
10269
|
-
return jspb.Message.setWrapperField(this,
|
|
10358
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
10270
10359
|
};
|
|
10271
10360
|
|
|
10272
10361
|
|
|
@@ -10284,7 +10373,7 @@ proto.gateway.web.v1.AIGitActivityFilter.prototype.clearEventTimeBefore = functi
|
|
|
10284
10373
|
* @return {boolean}
|
|
10285
10374
|
*/
|
|
10286
10375
|
proto.gateway.web.v1.AIGitActivityFilter.prototype.hasEventTimeBefore = function() {
|
|
10287
|
-
return jspb.Message.getField(this,
|
|
10376
|
+
return jspb.Message.getField(this, 3) != null;
|
|
10288
10377
|
};
|
|
10289
10378
|
|
|
10290
10379
|
|
|
@@ -21964,7 +22053,7 @@ proto.gateway.web.v1.ResourceRanking.prototype.setSessionCount = function(value)
|
|
|
21964
22053
|
* @private {!Array<number>}
|
|
21965
22054
|
* @const
|
|
21966
22055
|
*/
|
|
21967
|
-
proto.gateway.web.v1.
|
|
22056
|
+
proto.gateway.web.v1.ModelActivityRequest.repeatedFields_ = [3];
|
|
21968
22057
|
|
|
21969
22058
|
|
|
21970
22059
|
|
|
@@ -21981,8 +22070,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
21981
22070
|
* http://goto/soy-param-migration
|
|
21982
22071
|
* @return {!Object}
|
|
21983
22072
|
*/
|
|
21984
|
-
proto.gateway.web.v1.
|
|
21985
|
-
return proto.gateway.web.v1.
|
|
22073
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.toObject = function(opt_includeInstance) {
|
|
22074
|
+
return proto.gateway.web.v1.ModelActivityRequest.toObject(opt_includeInstance, this);
|
|
21986
22075
|
};
|
|
21987
22076
|
|
|
21988
22077
|
|
|
@@ -21991,21 +22080,18 @@ proto.gateway.web.v1.AIFileFilter.prototype.toObject = function(opt_includeInsta
|
|
|
21991
22080
|
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
21992
22081
|
* the JSPB instance for transitional soy proto support:
|
|
21993
22082
|
* http://goto/soy-param-migration
|
|
21994
|
-
* @param {!proto.gateway.web.v1.
|
|
22083
|
+
* @param {!proto.gateway.web.v1.ModelActivityRequest} msg The msg instance to transform.
|
|
21995
22084
|
* @return {!Object}
|
|
21996
22085
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
21997
22086
|
*/
|
|
21998
|
-
proto.gateway.web.v1.
|
|
22087
|
+
proto.gateway.web.v1.ModelActivityRequest.toObject = function(includeInstance, msg) {
|
|
21999
22088
|
var f, obj = {
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
|
|
22003
|
-
|
|
22004
|
-
|
|
22005
|
-
|
|
22006
|
-
activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22007
|
-
activeBefore: (f = msg.getActiveBefore()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22008
|
-
abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
|
|
22089
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
22090
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
22091
|
+
groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
|
|
22092
|
+
proto.gateway.web.v1.ModelActivityGroup.toObject, includeInstance),
|
|
22093
|
+
startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22094
|
+
endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
22009
22095
|
};
|
|
22010
22096
|
|
|
22011
22097
|
if (includeInstance) {
|
|
@@ -22019,23 +22105,23 @@ abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb
|
|
|
22019
22105
|
/**
|
|
22020
22106
|
* Deserializes binary data (in protobuf wire format).
|
|
22021
22107
|
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22022
|
-
* @return {!proto.gateway.web.v1.
|
|
22108
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest}
|
|
22023
22109
|
*/
|
|
22024
|
-
proto.gateway.web.v1.
|
|
22110
|
+
proto.gateway.web.v1.ModelActivityRequest.deserializeBinary = function(bytes) {
|
|
22025
22111
|
var reader = new jspb.BinaryReader(bytes);
|
|
22026
|
-
var msg = new proto.gateway.web.v1.
|
|
22027
|
-
return proto.gateway.web.v1.
|
|
22112
|
+
var msg = new proto.gateway.web.v1.ModelActivityRequest;
|
|
22113
|
+
return proto.gateway.web.v1.ModelActivityRequest.deserializeBinaryFromReader(msg, reader);
|
|
22028
22114
|
};
|
|
22029
22115
|
|
|
22030
22116
|
|
|
22031
22117
|
/**
|
|
22032
22118
|
* Deserializes binary data (in protobuf wire format) from the
|
|
22033
22119
|
* given reader into the given message object.
|
|
22034
|
-
* @param {!proto.gateway.web.v1.
|
|
22120
|
+
* @param {!proto.gateway.web.v1.ModelActivityRequest} msg The message object to deserialize into.
|
|
22035
22121
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22036
|
-
* @return {!proto.gateway.web.v1.
|
|
22122
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest}
|
|
22037
22123
|
*/
|
|
22038
|
-
proto.gateway.web.v1.
|
|
22124
|
+
proto.gateway.web.v1.ModelActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
22039
22125
|
while (reader.nextField()) {
|
|
22040
22126
|
if (reader.isEndGroup()) {
|
|
22041
22127
|
break;
|
|
@@ -22044,41 +22130,26 @@ proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader = function(msg, re
|
|
|
22044
22130
|
switch (field) {
|
|
22045
22131
|
case 1:
|
|
22046
22132
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22047
|
-
msg.
|
|
22133
|
+
msg.setOrganizationId(value);
|
|
22048
22134
|
break;
|
|
22049
22135
|
case 2:
|
|
22050
22136
|
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22051
|
-
msg.
|
|
22137
|
+
msg.setProjectId(value);
|
|
22052
22138
|
break;
|
|
22053
22139
|
case 3:
|
|
22054
|
-
|
|
22140
|
+
var value = new proto.gateway.web.v1.ModelActivityGroup;
|
|
22141
|
+
reader.readMessage(value,proto.gateway.web.v1.ModelActivityGroup.deserializeBinaryFromReader);
|
|
22142
|
+
msg.addGroups(value);
|
|
22055
22143
|
break;
|
|
22056
22144
|
case 4:
|
|
22057
|
-
reader.readPackableEnumInto(msg.getTierList());
|
|
22058
|
-
break;
|
|
22059
|
-
case 5:
|
|
22060
|
-
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22061
|
-
msg.addSessionId(value);
|
|
22062
|
-
break;
|
|
22063
|
-
case 6:
|
|
22064
|
-
var value = new google_protobuf_duration_pb.Duration;
|
|
22065
|
-
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
22066
|
-
msg.setMinAge(value);
|
|
22067
|
-
break;
|
|
22068
|
-
case 7:
|
|
22069
22145
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22070
22146
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22071
|
-
msg.
|
|
22147
|
+
msg.setStartTime(value);
|
|
22072
22148
|
break;
|
|
22073
|
-
case
|
|
22149
|
+
case 5:
|
|
22074
22150
|
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22075
22151
|
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22076
|
-
msg.
|
|
22077
|
-
break;
|
|
22078
|
-
case 9:
|
|
22079
|
-
var value = new google_protobuf_duration_pb.Duration;
|
|
22080
|
-
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
22081
|
-
msg.setAbandonedHorizon(value);
|
|
22152
|
+
msg.setEndTime(value);
|
|
22082
22153
|
break;
|
|
22083
22154
|
default:
|
|
22084
22155
|
reader.skipField();
|
|
@@ -22093,9 +22164,9 @@ proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader = function(msg, re
|
|
|
22093
22164
|
* Serializes the message to binary data (in protobuf wire format).
|
|
22094
22165
|
* @return {!Uint8Array}
|
|
22095
22166
|
*/
|
|
22096
|
-
proto.gateway.web.v1.
|
|
22167
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.serializeBinary = function() {
|
|
22097
22168
|
var writer = new jspb.BinaryWriter();
|
|
22098
|
-
proto.gateway.web.v1.
|
|
22169
|
+
proto.gateway.web.v1.ModelActivityRequest.serializeBinaryToWriter(this, writer);
|
|
22099
22170
|
return writer.getResultBuffer();
|
|
22100
22171
|
};
|
|
22101
22172
|
|
|
@@ -22103,47 +22174,2048 @@ proto.gateway.web.v1.AIFileFilter.prototype.serializeBinary = function() {
|
|
|
22103
22174
|
/**
|
|
22104
22175
|
* Serializes the given message to binary data (in protobuf wire
|
|
22105
22176
|
* format), writing to the given BinaryWriter.
|
|
22106
|
-
* @param {!proto.gateway.web.v1.
|
|
22177
|
+
* @param {!proto.gateway.web.v1.ModelActivityRequest} message
|
|
22107
22178
|
* @param {!jspb.BinaryWriter} writer
|
|
22108
22179
|
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22109
22180
|
*/
|
|
22110
|
-
proto.gateway.web.v1.
|
|
22181
|
+
proto.gateway.web.v1.ModelActivityRequest.serializeBinaryToWriter = function(message, writer) {
|
|
22111
22182
|
var f = undefined;
|
|
22112
|
-
f = message.
|
|
22183
|
+
f = message.getOrganizationId();
|
|
22113
22184
|
if (f.length > 0) {
|
|
22114
|
-
writer.
|
|
22185
|
+
writer.writeString(
|
|
22115
22186
|
1,
|
|
22116
22187
|
f
|
|
22117
22188
|
);
|
|
22118
22189
|
}
|
|
22119
|
-
f = message.
|
|
22190
|
+
f = message.getProjectId();
|
|
22120
22191
|
if (f.length > 0) {
|
|
22121
|
-
writer.
|
|
22192
|
+
writer.writeString(
|
|
22122
22193
|
2,
|
|
22123
22194
|
f
|
|
22124
22195
|
);
|
|
22125
22196
|
}
|
|
22126
|
-
f = message.
|
|
22197
|
+
f = message.getGroupsList();
|
|
22127
22198
|
if (f.length > 0) {
|
|
22128
|
-
writer.
|
|
22199
|
+
writer.writeRepeatedMessage(
|
|
22129
22200
|
3,
|
|
22130
|
-
f
|
|
22201
|
+
f,
|
|
22202
|
+
proto.gateway.web.v1.ModelActivityGroup.serializeBinaryToWriter
|
|
22131
22203
|
);
|
|
22132
22204
|
}
|
|
22133
|
-
f = message.
|
|
22134
|
-
if (f
|
|
22135
|
-
writer.
|
|
22136
|
-
4,
|
|
22137
|
-
f
|
|
22205
|
+
f = message.getStartTime();
|
|
22206
|
+
if (f != null) {
|
|
22207
|
+
writer.writeMessage(
|
|
22208
|
+
4,
|
|
22209
|
+
f,
|
|
22210
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22211
|
+
);
|
|
22212
|
+
}
|
|
22213
|
+
f = message.getEndTime();
|
|
22214
|
+
if (f != null) {
|
|
22215
|
+
writer.writeMessage(
|
|
22216
|
+
5,
|
|
22217
|
+
f,
|
|
22218
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22219
|
+
);
|
|
22220
|
+
}
|
|
22221
|
+
};
|
|
22222
|
+
|
|
22223
|
+
|
|
22224
|
+
/**
|
|
22225
|
+
* optional string organization_id = 1;
|
|
22226
|
+
* @return {string}
|
|
22227
|
+
*/
|
|
22228
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.getOrganizationId = function() {
|
|
22229
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22230
|
+
};
|
|
22231
|
+
|
|
22232
|
+
|
|
22233
|
+
/**
|
|
22234
|
+
* @param {string} value
|
|
22235
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22236
|
+
*/
|
|
22237
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.setOrganizationId = function(value) {
|
|
22238
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22239
|
+
};
|
|
22240
|
+
|
|
22241
|
+
|
|
22242
|
+
/**
|
|
22243
|
+
* optional string project_id = 2;
|
|
22244
|
+
* @return {string}
|
|
22245
|
+
*/
|
|
22246
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.getProjectId = function() {
|
|
22247
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
22248
|
+
};
|
|
22249
|
+
|
|
22250
|
+
|
|
22251
|
+
/**
|
|
22252
|
+
* @param {string} value
|
|
22253
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22254
|
+
*/
|
|
22255
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.setProjectId = function(value) {
|
|
22256
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
22257
|
+
};
|
|
22258
|
+
|
|
22259
|
+
|
|
22260
|
+
/**
|
|
22261
|
+
* repeated ModelActivityGroup groups = 3;
|
|
22262
|
+
* @return {!Array<!proto.gateway.web.v1.ModelActivityGroup>}
|
|
22263
|
+
*/
|
|
22264
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.getGroupsList = function() {
|
|
22265
|
+
return /** @type{!Array<!proto.gateway.web.v1.ModelActivityGroup>} */ (
|
|
22266
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelActivityGroup, 3));
|
|
22267
|
+
};
|
|
22268
|
+
|
|
22269
|
+
|
|
22270
|
+
/**
|
|
22271
|
+
* @param {!Array<!proto.gateway.web.v1.ModelActivityGroup>} value
|
|
22272
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22273
|
+
*/
|
|
22274
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.setGroupsList = function(value) {
|
|
22275
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
22276
|
+
};
|
|
22277
|
+
|
|
22278
|
+
|
|
22279
|
+
/**
|
|
22280
|
+
* @param {!proto.gateway.web.v1.ModelActivityGroup=} opt_value
|
|
22281
|
+
* @param {number=} opt_index
|
|
22282
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup}
|
|
22283
|
+
*/
|
|
22284
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.addGroups = function(opt_value, opt_index) {
|
|
22285
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.ModelActivityGroup, opt_index);
|
|
22286
|
+
};
|
|
22287
|
+
|
|
22288
|
+
|
|
22289
|
+
/**
|
|
22290
|
+
* Clears the list making it empty but non-null.
|
|
22291
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22292
|
+
*/
|
|
22293
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.clearGroupsList = function() {
|
|
22294
|
+
return this.setGroupsList([]);
|
|
22295
|
+
};
|
|
22296
|
+
|
|
22297
|
+
|
|
22298
|
+
/**
|
|
22299
|
+
* optional google.protobuf.Timestamp start_time = 4;
|
|
22300
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22301
|
+
*/
|
|
22302
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.getStartTime = function() {
|
|
22303
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22304
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
22305
|
+
};
|
|
22306
|
+
|
|
22307
|
+
|
|
22308
|
+
/**
|
|
22309
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22310
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22311
|
+
*/
|
|
22312
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.setStartTime = function(value) {
|
|
22313
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
22314
|
+
};
|
|
22315
|
+
|
|
22316
|
+
|
|
22317
|
+
/**
|
|
22318
|
+
* Clears the message field making it undefined.
|
|
22319
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22320
|
+
*/
|
|
22321
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.clearStartTime = function() {
|
|
22322
|
+
return this.setStartTime(undefined);
|
|
22323
|
+
};
|
|
22324
|
+
|
|
22325
|
+
|
|
22326
|
+
/**
|
|
22327
|
+
* Returns whether this field is set.
|
|
22328
|
+
* @return {boolean}
|
|
22329
|
+
*/
|
|
22330
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.hasStartTime = function() {
|
|
22331
|
+
return jspb.Message.getField(this, 4) != null;
|
|
22332
|
+
};
|
|
22333
|
+
|
|
22334
|
+
|
|
22335
|
+
/**
|
|
22336
|
+
* optional google.protobuf.Timestamp end_time = 5;
|
|
22337
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22338
|
+
*/
|
|
22339
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.getEndTime = function() {
|
|
22340
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22341
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
|
|
22342
|
+
};
|
|
22343
|
+
|
|
22344
|
+
|
|
22345
|
+
/**
|
|
22346
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22347
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22348
|
+
*/
|
|
22349
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.setEndTime = function(value) {
|
|
22350
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
|
22351
|
+
};
|
|
22352
|
+
|
|
22353
|
+
|
|
22354
|
+
/**
|
|
22355
|
+
* Clears the message field making it undefined.
|
|
22356
|
+
* @return {!proto.gateway.web.v1.ModelActivityRequest} returns this
|
|
22357
|
+
*/
|
|
22358
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.clearEndTime = function() {
|
|
22359
|
+
return this.setEndTime(undefined);
|
|
22360
|
+
};
|
|
22361
|
+
|
|
22362
|
+
|
|
22363
|
+
/**
|
|
22364
|
+
* Returns whether this field is set.
|
|
22365
|
+
* @return {boolean}
|
|
22366
|
+
*/
|
|
22367
|
+
proto.gateway.web.v1.ModelActivityRequest.prototype.hasEndTime = function() {
|
|
22368
|
+
return jspb.Message.getField(this, 5) != null;
|
|
22369
|
+
};
|
|
22370
|
+
|
|
22371
|
+
|
|
22372
|
+
|
|
22373
|
+
/**
|
|
22374
|
+
* List of repeated fields within this message type.
|
|
22375
|
+
* @private {!Array<number>}
|
|
22376
|
+
* @const
|
|
22377
|
+
*/
|
|
22378
|
+
proto.gateway.web.v1.ModelActivityGroup.repeatedFields_ = [2];
|
|
22379
|
+
|
|
22380
|
+
|
|
22381
|
+
|
|
22382
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22383
|
+
/**
|
|
22384
|
+
* Creates an object representation of this proto.
|
|
22385
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22386
|
+
* Optional fields that are not set will be set to undefined.
|
|
22387
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22388
|
+
* For the list of reserved names please see:
|
|
22389
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22390
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22391
|
+
* JSPB instance for transitional soy proto support:
|
|
22392
|
+
* http://goto/soy-param-migration
|
|
22393
|
+
* @return {!Object}
|
|
22394
|
+
*/
|
|
22395
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.toObject = function(opt_includeInstance) {
|
|
22396
|
+
return proto.gateway.web.v1.ModelActivityGroup.toObject(opt_includeInstance, this);
|
|
22397
|
+
};
|
|
22398
|
+
|
|
22399
|
+
|
|
22400
|
+
/**
|
|
22401
|
+
* Static version of the {@see toObject} method.
|
|
22402
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22403
|
+
* the JSPB instance for transitional soy proto support:
|
|
22404
|
+
* http://goto/soy-param-migration
|
|
22405
|
+
* @param {!proto.gateway.web.v1.ModelActivityGroup} msg The msg instance to transform.
|
|
22406
|
+
* @return {!Object}
|
|
22407
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22408
|
+
*/
|
|
22409
|
+
proto.gateway.web.v1.ModelActivityGroup.toObject = function(includeInstance, msg) {
|
|
22410
|
+
var f, obj = {
|
|
22411
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
22412
|
+
modelNamesList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
|
|
22413
|
+
};
|
|
22414
|
+
|
|
22415
|
+
if (includeInstance) {
|
|
22416
|
+
obj.$jspbMessageInstance = msg;
|
|
22417
|
+
}
|
|
22418
|
+
return obj;
|
|
22419
|
+
};
|
|
22420
|
+
}
|
|
22421
|
+
|
|
22422
|
+
|
|
22423
|
+
/**
|
|
22424
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22425
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22426
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup}
|
|
22427
|
+
*/
|
|
22428
|
+
proto.gateway.web.v1.ModelActivityGroup.deserializeBinary = function(bytes) {
|
|
22429
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22430
|
+
var msg = new proto.gateway.web.v1.ModelActivityGroup;
|
|
22431
|
+
return proto.gateway.web.v1.ModelActivityGroup.deserializeBinaryFromReader(msg, reader);
|
|
22432
|
+
};
|
|
22433
|
+
|
|
22434
|
+
|
|
22435
|
+
/**
|
|
22436
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22437
|
+
* given reader into the given message object.
|
|
22438
|
+
* @param {!proto.gateway.web.v1.ModelActivityGroup} msg The message object to deserialize into.
|
|
22439
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22440
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup}
|
|
22441
|
+
*/
|
|
22442
|
+
proto.gateway.web.v1.ModelActivityGroup.deserializeBinaryFromReader = function(msg, reader) {
|
|
22443
|
+
while (reader.nextField()) {
|
|
22444
|
+
if (reader.isEndGroup()) {
|
|
22445
|
+
break;
|
|
22446
|
+
}
|
|
22447
|
+
var field = reader.getFieldNumber();
|
|
22448
|
+
switch (field) {
|
|
22449
|
+
case 1:
|
|
22450
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22451
|
+
msg.setKey(value);
|
|
22452
|
+
break;
|
|
22453
|
+
case 2:
|
|
22454
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22455
|
+
msg.addModelNames(value);
|
|
22456
|
+
break;
|
|
22457
|
+
default:
|
|
22458
|
+
reader.skipField();
|
|
22459
|
+
break;
|
|
22460
|
+
}
|
|
22461
|
+
}
|
|
22462
|
+
return msg;
|
|
22463
|
+
};
|
|
22464
|
+
|
|
22465
|
+
|
|
22466
|
+
/**
|
|
22467
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22468
|
+
* @return {!Uint8Array}
|
|
22469
|
+
*/
|
|
22470
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.serializeBinary = function() {
|
|
22471
|
+
var writer = new jspb.BinaryWriter();
|
|
22472
|
+
proto.gateway.web.v1.ModelActivityGroup.serializeBinaryToWriter(this, writer);
|
|
22473
|
+
return writer.getResultBuffer();
|
|
22474
|
+
};
|
|
22475
|
+
|
|
22476
|
+
|
|
22477
|
+
/**
|
|
22478
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22479
|
+
* format), writing to the given BinaryWriter.
|
|
22480
|
+
* @param {!proto.gateway.web.v1.ModelActivityGroup} message
|
|
22481
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22482
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22483
|
+
*/
|
|
22484
|
+
proto.gateway.web.v1.ModelActivityGroup.serializeBinaryToWriter = function(message, writer) {
|
|
22485
|
+
var f = undefined;
|
|
22486
|
+
f = message.getKey();
|
|
22487
|
+
if (f.length > 0) {
|
|
22488
|
+
writer.writeString(
|
|
22489
|
+
1,
|
|
22490
|
+
f
|
|
22491
|
+
);
|
|
22492
|
+
}
|
|
22493
|
+
f = message.getModelNamesList();
|
|
22494
|
+
if (f.length > 0) {
|
|
22495
|
+
writer.writeRepeatedString(
|
|
22496
|
+
2,
|
|
22497
|
+
f
|
|
22498
|
+
);
|
|
22499
|
+
}
|
|
22500
|
+
};
|
|
22501
|
+
|
|
22502
|
+
|
|
22503
|
+
/**
|
|
22504
|
+
* optional string key = 1;
|
|
22505
|
+
* @return {string}
|
|
22506
|
+
*/
|
|
22507
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.getKey = function() {
|
|
22508
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
22509
|
+
};
|
|
22510
|
+
|
|
22511
|
+
|
|
22512
|
+
/**
|
|
22513
|
+
* @param {string} value
|
|
22514
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup} returns this
|
|
22515
|
+
*/
|
|
22516
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.setKey = function(value) {
|
|
22517
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
22518
|
+
};
|
|
22519
|
+
|
|
22520
|
+
|
|
22521
|
+
/**
|
|
22522
|
+
* repeated string model_names = 2;
|
|
22523
|
+
* @return {!Array<string>}
|
|
22524
|
+
*/
|
|
22525
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.getModelNamesList = function() {
|
|
22526
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
|
|
22527
|
+
};
|
|
22528
|
+
|
|
22529
|
+
|
|
22530
|
+
/**
|
|
22531
|
+
* @param {!Array<string>} value
|
|
22532
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup} returns this
|
|
22533
|
+
*/
|
|
22534
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.setModelNamesList = function(value) {
|
|
22535
|
+
return jspb.Message.setField(this, 2, value || []);
|
|
22536
|
+
};
|
|
22537
|
+
|
|
22538
|
+
|
|
22539
|
+
/**
|
|
22540
|
+
* @param {string} value
|
|
22541
|
+
* @param {number=} opt_index
|
|
22542
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup} returns this
|
|
22543
|
+
*/
|
|
22544
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.addModelNames = function(value, opt_index) {
|
|
22545
|
+
return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
|
|
22546
|
+
};
|
|
22547
|
+
|
|
22548
|
+
|
|
22549
|
+
/**
|
|
22550
|
+
* Clears the list making it empty but non-null.
|
|
22551
|
+
* @return {!proto.gateway.web.v1.ModelActivityGroup} returns this
|
|
22552
|
+
*/
|
|
22553
|
+
proto.gateway.web.v1.ModelActivityGroup.prototype.clearModelNamesList = function() {
|
|
22554
|
+
return this.setModelNamesList([]);
|
|
22555
|
+
};
|
|
22556
|
+
|
|
22557
|
+
|
|
22558
|
+
|
|
22559
|
+
/**
|
|
22560
|
+
* List of repeated fields within this message type.
|
|
22561
|
+
* @private {!Array<number>}
|
|
22562
|
+
* @const
|
|
22563
|
+
*/
|
|
22564
|
+
proto.gateway.web.v1.ModelActivityResponse.repeatedFields_ = [2];
|
|
22565
|
+
|
|
22566
|
+
|
|
22567
|
+
|
|
22568
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22569
|
+
/**
|
|
22570
|
+
* Creates an object representation of this proto.
|
|
22571
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22572
|
+
* Optional fields that are not set will be set to undefined.
|
|
22573
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22574
|
+
* For the list of reserved names please see:
|
|
22575
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22576
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22577
|
+
* JSPB instance for transitional soy proto support:
|
|
22578
|
+
* http://goto/soy-param-migration
|
|
22579
|
+
* @return {!Object}
|
|
22580
|
+
*/
|
|
22581
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.toObject = function(opt_includeInstance) {
|
|
22582
|
+
return proto.gateway.web.v1.ModelActivityResponse.toObject(opt_includeInstance, this);
|
|
22583
|
+
};
|
|
22584
|
+
|
|
22585
|
+
|
|
22586
|
+
/**
|
|
22587
|
+
* Static version of the {@see toObject} method.
|
|
22588
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22589
|
+
* the JSPB instance for transitional soy proto support:
|
|
22590
|
+
* http://goto/soy-param-migration
|
|
22591
|
+
* @param {!proto.gateway.web.v1.ModelActivityResponse} msg The msg instance to transform.
|
|
22592
|
+
* @return {!Object}
|
|
22593
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22594
|
+
*/
|
|
22595
|
+
proto.gateway.web.v1.ModelActivityResponse.toObject = function(includeInstance, msg) {
|
|
22596
|
+
var f, obj = {
|
|
22597
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
22598
|
+
modelsList: jspb.Message.toObjectList(msg.getModelsList(),
|
|
22599
|
+
proto.gateway.web.v1.ModelActivity.toObject, includeInstance),
|
|
22600
|
+
windowStart: (f = msg.getWindowStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
22601
|
+
windowEnd: (f = msg.getWindowEnd()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
22602
|
+
};
|
|
22603
|
+
|
|
22604
|
+
if (includeInstance) {
|
|
22605
|
+
obj.$jspbMessageInstance = msg;
|
|
22606
|
+
}
|
|
22607
|
+
return obj;
|
|
22608
|
+
};
|
|
22609
|
+
}
|
|
22610
|
+
|
|
22611
|
+
|
|
22612
|
+
/**
|
|
22613
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22614
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22615
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse}
|
|
22616
|
+
*/
|
|
22617
|
+
proto.gateway.web.v1.ModelActivityResponse.deserializeBinary = function(bytes) {
|
|
22618
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22619
|
+
var msg = new proto.gateway.web.v1.ModelActivityResponse;
|
|
22620
|
+
return proto.gateway.web.v1.ModelActivityResponse.deserializeBinaryFromReader(msg, reader);
|
|
22621
|
+
};
|
|
22622
|
+
|
|
22623
|
+
|
|
22624
|
+
/**
|
|
22625
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22626
|
+
* given reader into the given message object.
|
|
22627
|
+
* @param {!proto.gateway.web.v1.ModelActivityResponse} msg The message object to deserialize into.
|
|
22628
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22629
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse}
|
|
22630
|
+
*/
|
|
22631
|
+
proto.gateway.web.v1.ModelActivityResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
22632
|
+
while (reader.nextField()) {
|
|
22633
|
+
if (reader.isEndGroup()) {
|
|
22634
|
+
break;
|
|
22635
|
+
}
|
|
22636
|
+
var field = reader.getFieldNumber();
|
|
22637
|
+
switch (field) {
|
|
22638
|
+
case 1:
|
|
22639
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
22640
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
22641
|
+
msg.setStatus(value);
|
|
22642
|
+
break;
|
|
22643
|
+
case 2:
|
|
22644
|
+
var value = new proto.gateway.web.v1.ModelActivity;
|
|
22645
|
+
reader.readMessage(value,proto.gateway.web.v1.ModelActivity.deserializeBinaryFromReader);
|
|
22646
|
+
msg.addModels(value);
|
|
22647
|
+
break;
|
|
22648
|
+
case 3:
|
|
22649
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22650
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22651
|
+
msg.setWindowStart(value);
|
|
22652
|
+
break;
|
|
22653
|
+
case 4:
|
|
22654
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
22655
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
22656
|
+
msg.setWindowEnd(value);
|
|
22657
|
+
break;
|
|
22658
|
+
default:
|
|
22659
|
+
reader.skipField();
|
|
22660
|
+
break;
|
|
22661
|
+
}
|
|
22662
|
+
}
|
|
22663
|
+
return msg;
|
|
22664
|
+
};
|
|
22665
|
+
|
|
22666
|
+
|
|
22667
|
+
/**
|
|
22668
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
22669
|
+
* @return {!Uint8Array}
|
|
22670
|
+
*/
|
|
22671
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.serializeBinary = function() {
|
|
22672
|
+
var writer = new jspb.BinaryWriter();
|
|
22673
|
+
proto.gateway.web.v1.ModelActivityResponse.serializeBinaryToWriter(this, writer);
|
|
22674
|
+
return writer.getResultBuffer();
|
|
22675
|
+
};
|
|
22676
|
+
|
|
22677
|
+
|
|
22678
|
+
/**
|
|
22679
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
22680
|
+
* format), writing to the given BinaryWriter.
|
|
22681
|
+
* @param {!proto.gateway.web.v1.ModelActivityResponse} message
|
|
22682
|
+
* @param {!jspb.BinaryWriter} writer
|
|
22683
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22684
|
+
*/
|
|
22685
|
+
proto.gateway.web.v1.ModelActivityResponse.serializeBinaryToWriter = function(message, writer) {
|
|
22686
|
+
var f = undefined;
|
|
22687
|
+
f = message.getStatus();
|
|
22688
|
+
if (f != null) {
|
|
22689
|
+
writer.writeMessage(
|
|
22690
|
+
1,
|
|
22691
|
+
f,
|
|
22692
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
22693
|
+
);
|
|
22694
|
+
}
|
|
22695
|
+
f = message.getModelsList();
|
|
22696
|
+
if (f.length > 0) {
|
|
22697
|
+
writer.writeRepeatedMessage(
|
|
22698
|
+
2,
|
|
22699
|
+
f,
|
|
22700
|
+
proto.gateway.web.v1.ModelActivity.serializeBinaryToWriter
|
|
22701
|
+
);
|
|
22702
|
+
}
|
|
22703
|
+
f = message.getWindowStart();
|
|
22704
|
+
if (f != null) {
|
|
22705
|
+
writer.writeMessage(
|
|
22706
|
+
3,
|
|
22707
|
+
f,
|
|
22708
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22709
|
+
);
|
|
22710
|
+
}
|
|
22711
|
+
f = message.getWindowEnd();
|
|
22712
|
+
if (f != null) {
|
|
22713
|
+
writer.writeMessage(
|
|
22714
|
+
4,
|
|
22715
|
+
f,
|
|
22716
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
22717
|
+
);
|
|
22718
|
+
}
|
|
22719
|
+
};
|
|
22720
|
+
|
|
22721
|
+
|
|
22722
|
+
/**
|
|
22723
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
22724
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
22725
|
+
*/
|
|
22726
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.getStatus = function() {
|
|
22727
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
22728
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
22729
|
+
};
|
|
22730
|
+
|
|
22731
|
+
|
|
22732
|
+
/**
|
|
22733
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
22734
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22735
|
+
*/
|
|
22736
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.setStatus = function(value) {
|
|
22737
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
22738
|
+
};
|
|
22739
|
+
|
|
22740
|
+
|
|
22741
|
+
/**
|
|
22742
|
+
* Clears the message field making it undefined.
|
|
22743
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22744
|
+
*/
|
|
22745
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.clearStatus = function() {
|
|
22746
|
+
return this.setStatus(undefined);
|
|
22747
|
+
};
|
|
22748
|
+
|
|
22749
|
+
|
|
22750
|
+
/**
|
|
22751
|
+
* Returns whether this field is set.
|
|
22752
|
+
* @return {boolean}
|
|
22753
|
+
*/
|
|
22754
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.hasStatus = function() {
|
|
22755
|
+
return jspb.Message.getField(this, 1) != null;
|
|
22756
|
+
};
|
|
22757
|
+
|
|
22758
|
+
|
|
22759
|
+
/**
|
|
22760
|
+
* repeated ModelActivity models = 2;
|
|
22761
|
+
* @return {!Array<!proto.gateway.web.v1.ModelActivity>}
|
|
22762
|
+
*/
|
|
22763
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.getModelsList = function() {
|
|
22764
|
+
return /** @type{!Array<!proto.gateway.web.v1.ModelActivity>} */ (
|
|
22765
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelActivity, 2));
|
|
22766
|
+
};
|
|
22767
|
+
|
|
22768
|
+
|
|
22769
|
+
/**
|
|
22770
|
+
* @param {!Array<!proto.gateway.web.v1.ModelActivity>} value
|
|
22771
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22772
|
+
*/
|
|
22773
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.setModelsList = function(value) {
|
|
22774
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
22775
|
+
};
|
|
22776
|
+
|
|
22777
|
+
|
|
22778
|
+
/**
|
|
22779
|
+
* @param {!proto.gateway.web.v1.ModelActivity=} opt_value
|
|
22780
|
+
* @param {number=} opt_index
|
|
22781
|
+
* @return {!proto.gateway.web.v1.ModelActivity}
|
|
22782
|
+
*/
|
|
22783
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.addModels = function(opt_value, opt_index) {
|
|
22784
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.ModelActivity, opt_index);
|
|
22785
|
+
};
|
|
22786
|
+
|
|
22787
|
+
|
|
22788
|
+
/**
|
|
22789
|
+
* Clears the list making it empty but non-null.
|
|
22790
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22791
|
+
*/
|
|
22792
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.clearModelsList = function() {
|
|
22793
|
+
return this.setModelsList([]);
|
|
22794
|
+
};
|
|
22795
|
+
|
|
22796
|
+
|
|
22797
|
+
/**
|
|
22798
|
+
* optional google.protobuf.Timestamp window_start = 3;
|
|
22799
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22800
|
+
*/
|
|
22801
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.getWindowStart = function() {
|
|
22802
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22803
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
22804
|
+
};
|
|
22805
|
+
|
|
22806
|
+
|
|
22807
|
+
/**
|
|
22808
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22809
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22810
|
+
*/
|
|
22811
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.setWindowStart = function(value) {
|
|
22812
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
22813
|
+
};
|
|
22814
|
+
|
|
22815
|
+
|
|
22816
|
+
/**
|
|
22817
|
+
* Clears the message field making it undefined.
|
|
22818
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22819
|
+
*/
|
|
22820
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.clearWindowStart = function() {
|
|
22821
|
+
return this.setWindowStart(undefined);
|
|
22822
|
+
};
|
|
22823
|
+
|
|
22824
|
+
|
|
22825
|
+
/**
|
|
22826
|
+
* Returns whether this field is set.
|
|
22827
|
+
* @return {boolean}
|
|
22828
|
+
*/
|
|
22829
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.hasWindowStart = function() {
|
|
22830
|
+
return jspb.Message.getField(this, 3) != null;
|
|
22831
|
+
};
|
|
22832
|
+
|
|
22833
|
+
|
|
22834
|
+
/**
|
|
22835
|
+
* optional google.protobuf.Timestamp window_end = 4;
|
|
22836
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
22837
|
+
*/
|
|
22838
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.getWindowEnd = function() {
|
|
22839
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
22840
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
22841
|
+
};
|
|
22842
|
+
|
|
22843
|
+
|
|
22844
|
+
/**
|
|
22845
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
22846
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22847
|
+
*/
|
|
22848
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.setWindowEnd = function(value) {
|
|
22849
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
22850
|
+
};
|
|
22851
|
+
|
|
22852
|
+
|
|
22853
|
+
/**
|
|
22854
|
+
* Clears the message field making it undefined.
|
|
22855
|
+
* @return {!proto.gateway.web.v1.ModelActivityResponse} returns this
|
|
22856
|
+
*/
|
|
22857
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.clearWindowEnd = function() {
|
|
22858
|
+
return this.setWindowEnd(undefined);
|
|
22859
|
+
};
|
|
22860
|
+
|
|
22861
|
+
|
|
22862
|
+
/**
|
|
22863
|
+
* Returns whether this field is set.
|
|
22864
|
+
* @return {boolean}
|
|
22865
|
+
*/
|
|
22866
|
+
proto.gateway.web.v1.ModelActivityResponse.prototype.hasWindowEnd = function() {
|
|
22867
|
+
return jspb.Message.getField(this, 4) != null;
|
|
22868
|
+
};
|
|
22869
|
+
|
|
22870
|
+
|
|
22871
|
+
|
|
22872
|
+
/**
|
|
22873
|
+
* List of repeated fields within this message type.
|
|
22874
|
+
* @private {!Array<number>}
|
|
22875
|
+
* @const
|
|
22876
|
+
*/
|
|
22877
|
+
proto.gateway.web.v1.ModelActivity.repeatedFields_ = [16,17];
|
|
22878
|
+
|
|
22879
|
+
|
|
22880
|
+
|
|
22881
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
22882
|
+
/**
|
|
22883
|
+
* Creates an object representation of this proto.
|
|
22884
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
22885
|
+
* Optional fields that are not set will be set to undefined.
|
|
22886
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
22887
|
+
* For the list of reserved names please see:
|
|
22888
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
22889
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
22890
|
+
* JSPB instance for transitional soy proto support:
|
|
22891
|
+
* http://goto/soy-param-migration
|
|
22892
|
+
* @return {!Object}
|
|
22893
|
+
*/
|
|
22894
|
+
proto.gateway.web.v1.ModelActivity.prototype.toObject = function(opt_includeInstance) {
|
|
22895
|
+
return proto.gateway.web.v1.ModelActivity.toObject(opt_includeInstance, this);
|
|
22896
|
+
};
|
|
22897
|
+
|
|
22898
|
+
|
|
22899
|
+
/**
|
|
22900
|
+
* Static version of the {@see toObject} method.
|
|
22901
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
22902
|
+
* the JSPB instance for transitional soy proto support:
|
|
22903
|
+
* http://goto/soy-param-migration
|
|
22904
|
+
* @param {!proto.gateway.web.v1.ModelActivity} msg The msg instance to transform.
|
|
22905
|
+
* @return {!Object}
|
|
22906
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
22907
|
+
*/
|
|
22908
|
+
proto.gateway.web.v1.ModelActivity.toObject = function(includeInstance, msg) {
|
|
22909
|
+
var f, obj = {
|
|
22910
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
22911
|
+
modelCalls: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
22912
|
+
failedCalls: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
22913
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
22914
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
22915
|
+
cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
22916
|
+
cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
22917
|
+
costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
|
|
22918
|
+
subscriptionCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
|
|
22919
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 10, 0),
|
|
22920
|
+
toolCalls: jspb.Message.getFieldWithDefault(msg, 11, 0),
|
|
22921
|
+
compactions: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
|
22922
|
+
subagentRuns: jspb.Message.getFieldWithDefault(msg, 13, 0),
|
|
22923
|
+
ttftMsSum: jspb.Message.getFieldWithDefault(msg, 14, 0),
|
|
22924
|
+
ttftCalls: jspb.Message.getFieldWithDefault(msg, 15, 0),
|
|
22925
|
+
providersList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f,
|
|
22926
|
+
principalsList: jspb.Message.toObjectList(msg.getPrincipalsList(),
|
|
22927
|
+
proto.gateway.web.v1.ModelActivityPrincipal.toObject, includeInstance)
|
|
22928
|
+
};
|
|
22929
|
+
|
|
22930
|
+
if (includeInstance) {
|
|
22931
|
+
obj.$jspbMessageInstance = msg;
|
|
22932
|
+
}
|
|
22933
|
+
return obj;
|
|
22934
|
+
};
|
|
22935
|
+
}
|
|
22936
|
+
|
|
22937
|
+
|
|
22938
|
+
/**
|
|
22939
|
+
* Deserializes binary data (in protobuf wire format).
|
|
22940
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
22941
|
+
* @return {!proto.gateway.web.v1.ModelActivity}
|
|
22942
|
+
*/
|
|
22943
|
+
proto.gateway.web.v1.ModelActivity.deserializeBinary = function(bytes) {
|
|
22944
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
22945
|
+
var msg = new proto.gateway.web.v1.ModelActivity;
|
|
22946
|
+
return proto.gateway.web.v1.ModelActivity.deserializeBinaryFromReader(msg, reader);
|
|
22947
|
+
};
|
|
22948
|
+
|
|
22949
|
+
|
|
22950
|
+
/**
|
|
22951
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
22952
|
+
* given reader into the given message object.
|
|
22953
|
+
* @param {!proto.gateway.web.v1.ModelActivity} msg The message object to deserialize into.
|
|
22954
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
22955
|
+
* @return {!proto.gateway.web.v1.ModelActivity}
|
|
22956
|
+
*/
|
|
22957
|
+
proto.gateway.web.v1.ModelActivity.deserializeBinaryFromReader = function(msg, reader) {
|
|
22958
|
+
while (reader.nextField()) {
|
|
22959
|
+
if (reader.isEndGroup()) {
|
|
22960
|
+
break;
|
|
22961
|
+
}
|
|
22962
|
+
var field = reader.getFieldNumber();
|
|
22963
|
+
switch (field) {
|
|
22964
|
+
case 1:
|
|
22965
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
22966
|
+
msg.setKey(value);
|
|
22967
|
+
break;
|
|
22968
|
+
case 2:
|
|
22969
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22970
|
+
msg.setModelCalls(value);
|
|
22971
|
+
break;
|
|
22972
|
+
case 3:
|
|
22973
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22974
|
+
msg.setFailedCalls(value);
|
|
22975
|
+
break;
|
|
22976
|
+
case 4:
|
|
22977
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22978
|
+
msg.setInputTokens(value);
|
|
22979
|
+
break;
|
|
22980
|
+
case 5:
|
|
22981
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22982
|
+
msg.setOutputTokens(value);
|
|
22983
|
+
break;
|
|
22984
|
+
case 6:
|
|
22985
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22986
|
+
msg.setCacheReadTokens(value);
|
|
22987
|
+
break;
|
|
22988
|
+
case 7:
|
|
22989
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
22990
|
+
msg.setCacheWriteTokens(value);
|
|
22991
|
+
break;
|
|
22992
|
+
case 8:
|
|
22993
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22994
|
+
msg.setCostUsd(value);
|
|
22995
|
+
break;
|
|
22996
|
+
case 9:
|
|
22997
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
22998
|
+
msg.setSubscriptionCostUsd(value);
|
|
22999
|
+
break;
|
|
23000
|
+
case 10:
|
|
23001
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23002
|
+
msg.setSessions(value);
|
|
23003
|
+
break;
|
|
23004
|
+
case 11:
|
|
23005
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23006
|
+
msg.setToolCalls(value);
|
|
23007
|
+
break;
|
|
23008
|
+
case 12:
|
|
23009
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23010
|
+
msg.setCompactions(value);
|
|
23011
|
+
break;
|
|
23012
|
+
case 13:
|
|
23013
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23014
|
+
msg.setSubagentRuns(value);
|
|
23015
|
+
break;
|
|
23016
|
+
case 14:
|
|
23017
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23018
|
+
msg.setTtftMsSum(value);
|
|
23019
|
+
break;
|
|
23020
|
+
case 15:
|
|
23021
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23022
|
+
msg.setTtftCalls(value);
|
|
23023
|
+
break;
|
|
23024
|
+
case 16:
|
|
23025
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
23026
|
+
msg.addProviders(value);
|
|
23027
|
+
break;
|
|
23028
|
+
case 17:
|
|
23029
|
+
var value = new proto.gateway.web.v1.ModelActivityPrincipal;
|
|
23030
|
+
reader.readMessage(value,proto.gateway.web.v1.ModelActivityPrincipal.deserializeBinaryFromReader);
|
|
23031
|
+
msg.addPrincipals(value);
|
|
23032
|
+
break;
|
|
23033
|
+
default:
|
|
23034
|
+
reader.skipField();
|
|
23035
|
+
break;
|
|
23036
|
+
}
|
|
23037
|
+
}
|
|
23038
|
+
return msg;
|
|
23039
|
+
};
|
|
23040
|
+
|
|
23041
|
+
|
|
23042
|
+
/**
|
|
23043
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23044
|
+
* @return {!Uint8Array}
|
|
23045
|
+
*/
|
|
23046
|
+
proto.gateway.web.v1.ModelActivity.prototype.serializeBinary = function() {
|
|
23047
|
+
var writer = new jspb.BinaryWriter();
|
|
23048
|
+
proto.gateway.web.v1.ModelActivity.serializeBinaryToWriter(this, writer);
|
|
23049
|
+
return writer.getResultBuffer();
|
|
23050
|
+
};
|
|
23051
|
+
|
|
23052
|
+
|
|
23053
|
+
/**
|
|
23054
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23055
|
+
* format), writing to the given BinaryWriter.
|
|
23056
|
+
* @param {!proto.gateway.web.v1.ModelActivity} message
|
|
23057
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23058
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23059
|
+
*/
|
|
23060
|
+
proto.gateway.web.v1.ModelActivity.serializeBinaryToWriter = function(message, writer) {
|
|
23061
|
+
var f = undefined;
|
|
23062
|
+
f = message.getKey();
|
|
23063
|
+
if (f.length > 0) {
|
|
23064
|
+
writer.writeString(
|
|
23065
|
+
1,
|
|
23066
|
+
f
|
|
23067
|
+
);
|
|
23068
|
+
}
|
|
23069
|
+
f = message.getModelCalls();
|
|
23070
|
+
if (f !== 0) {
|
|
23071
|
+
writer.writeUint64(
|
|
23072
|
+
2,
|
|
23073
|
+
f
|
|
23074
|
+
);
|
|
23075
|
+
}
|
|
23076
|
+
f = message.getFailedCalls();
|
|
23077
|
+
if (f !== 0) {
|
|
23078
|
+
writer.writeUint64(
|
|
23079
|
+
3,
|
|
23080
|
+
f
|
|
23081
|
+
);
|
|
23082
|
+
}
|
|
23083
|
+
f = message.getInputTokens();
|
|
23084
|
+
if (f !== 0) {
|
|
23085
|
+
writer.writeUint64(
|
|
23086
|
+
4,
|
|
23087
|
+
f
|
|
23088
|
+
);
|
|
23089
|
+
}
|
|
23090
|
+
f = message.getOutputTokens();
|
|
23091
|
+
if (f !== 0) {
|
|
23092
|
+
writer.writeUint64(
|
|
23093
|
+
5,
|
|
23094
|
+
f
|
|
23095
|
+
);
|
|
23096
|
+
}
|
|
23097
|
+
f = message.getCacheReadTokens();
|
|
23098
|
+
if (f !== 0) {
|
|
23099
|
+
writer.writeUint64(
|
|
23100
|
+
6,
|
|
23101
|
+
f
|
|
23102
|
+
);
|
|
23103
|
+
}
|
|
23104
|
+
f = message.getCacheWriteTokens();
|
|
23105
|
+
if (f !== 0) {
|
|
23106
|
+
writer.writeUint64(
|
|
23107
|
+
7,
|
|
23108
|
+
f
|
|
23109
|
+
);
|
|
23110
|
+
}
|
|
23111
|
+
f = message.getCostUsd();
|
|
23112
|
+
if (f !== 0.0) {
|
|
23113
|
+
writer.writeDouble(
|
|
23114
|
+
8,
|
|
23115
|
+
f
|
|
23116
|
+
);
|
|
23117
|
+
}
|
|
23118
|
+
f = message.getSubscriptionCostUsd();
|
|
23119
|
+
if (f !== 0.0) {
|
|
23120
|
+
writer.writeDouble(
|
|
23121
|
+
9,
|
|
23122
|
+
f
|
|
23123
|
+
);
|
|
23124
|
+
}
|
|
23125
|
+
f = message.getSessions();
|
|
23126
|
+
if (f !== 0) {
|
|
23127
|
+
writer.writeUint64(
|
|
23128
|
+
10,
|
|
23129
|
+
f
|
|
23130
|
+
);
|
|
23131
|
+
}
|
|
23132
|
+
f = message.getToolCalls();
|
|
23133
|
+
if (f !== 0) {
|
|
23134
|
+
writer.writeUint64(
|
|
23135
|
+
11,
|
|
23136
|
+
f
|
|
23137
|
+
);
|
|
23138
|
+
}
|
|
23139
|
+
f = message.getCompactions();
|
|
23140
|
+
if (f !== 0) {
|
|
23141
|
+
writer.writeUint64(
|
|
23142
|
+
12,
|
|
23143
|
+
f
|
|
23144
|
+
);
|
|
23145
|
+
}
|
|
23146
|
+
f = message.getSubagentRuns();
|
|
23147
|
+
if (f !== 0) {
|
|
23148
|
+
writer.writeUint64(
|
|
23149
|
+
13,
|
|
23150
|
+
f
|
|
23151
|
+
);
|
|
23152
|
+
}
|
|
23153
|
+
f = message.getTtftMsSum();
|
|
23154
|
+
if (f !== 0) {
|
|
23155
|
+
writer.writeUint64(
|
|
23156
|
+
14,
|
|
23157
|
+
f
|
|
23158
|
+
);
|
|
23159
|
+
}
|
|
23160
|
+
f = message.getTtftCalls();
|
|
23161
|
+
if (f !== 0) {
|
|
23162
|
+
writer.writeUint64(
|
|
23163
|
+
15,
|
|
23164
|
+
f
|
|
23165
|
+
);
|
|
23166
|
+
}
|
|
23167
|
+
f = message.getProvidersList();
|
|
23168
|
+
if (f.length > 0) {
|
|
23169
|
+
writer.writeRepeatedString(
|
|
23170
|
+
16,
|
|
23171
|
+
f
|
|
23172
|
+
);
|
|
23173
|
+
}
|
|
23174
|
+
f = message.getPrincipalsList();
|
|
23175
|
+
if (f.length > 0) {
|
|
23176
|
+
writer.writeRepeatedMessage(
|
|
23177
|
+
17,
|
|
23178
|
+
f,
|
|
23179
|
+
proto.gateway.web.v1.ModelActivityPrincipal.serializeBinaryToWriter
|
|
23180
|
+
);
|
|
23181
|
+
}
|
|
23182
|
+
};
|
|
23183
|
+
|
|
23184
|
+
|
|
23185
|
+
/**
|
|
23186
|
+
* optional string key = 1;
|
|
23187
|
+
* @return {string}
|
|
23188
|
+
*/
|
|
23189
|
+
proto.gateway.web.v1.ModelActivity.prototype.getKey = function() {
|
|
23190
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
23191
|
+
};
|
|
23192
|
+
|
|
23193
|
+
|
|
23194
|
+
/**
|
|
23195
|
+
* @param {string} value
|
|
23196
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23197
|
+
*/
|
|
23198
|
+
proto.gateway.web.v1.ModelActivity.prototype.setKey = function(value) {
|
|
23199
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
23200
|
+
};
|
|
23201
|
+
|
|
23202
|
+
|
|
23203
|
+
/**
|
|
23204
|
+
* optional uint64 model_calls = 2;
|
|
23205
|
+
* @return {number}
|
|
23206
|
+
*/
|
|
23207
|
+
proto.gateway.web.v1.ModelActivity.prototype.getModelCalls = function() {
|
|
23208
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
23209
|
+
};
|
|
23210
|
+
|
|
23211
|
+
|
|
23212
|
+
/**
|
|
23213
|
+
* @param {number} value
|
|
23214
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23215
|
+
*/
|
|
23216
|
+
proto.gateway.web.v1.ModelActivity.prototype.setModelCalls = function(value) {
|
|
23217
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
23218
|
+
};
|
|
23219
|
+
|
|
23220
|
+
|
|
23221
|
+
/**
|
|
23222
|
+
* optional uint64 failed_calls = 3;
|
|
23223
|
+
* @return {number}
|
|
23224
|
+
*/
|
|
23225
|
+
proto.gateway.web.v1.ModelActivity.prototype.getFailedCalls = function() {
|
|
23226
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
23227
|
+
};
|
|
23228
|
+
|
|
23229
|
+
|
|
23230
|
+
/**
|
|
23231
|
+
* @param {number} value
|
|
23232
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23233
|
+
*/
|
|
23234
|
+
proto.gateway.web.v1.ModelActivity.prototype.setFailedCalls = function(value) {
|
|
23235
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
23236
|
+
};
|
|
23237
|
+
|
|
23238
|
+
|
|
23239
|
+
/**
|
|
23240
|
+
* optional uint64 input_tokens = 4;
|
|
23241
|
+
* @return {number}
|
|
23242
|
+
*/
|
|
23243
|
+
proto.gateway.web.v1.ModelActivity.prototype.getInputTokens = function() {
|
|
23244
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
23245
|
+
};
|
|
23246
|
+
|
|
23247
|
+
|
|
23248
|
+
/**
|
|
23249
|
+
* @param {number} value
|
|
23250
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23251
|
+
*/
|
|
23252
|
+
proto.gateway.web.v1.ModelActivity.prototype.setInputTokens = function(value) {
|
|
23253
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
23254
|
+
};
|
|
23255
|
+
|
|
23256
|
+
|
|
23257
|
+
/**
|
|
23258
|
+
* optional uint64 output_tokens = 5;
|
|
23259
|
+
* @return {number}
|
|
23260
|
+
*/
|
|
23261
|
+
proto.gateway.web.v1.ModelActivity.prototype.getOutputTokens = function() {
|
|
23262
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
23263
|
+
};
|
|
23264
|
+
|
|
23265
|
+
|
|
23266
|
+
/**
|
|
23267
|
+
* @param {number} value
|
|
23268
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23269
|
+
*/
|
|
23270
|
+
proto.gateway.web.v1.ModelActivity.prototype.setOutputTokens = function(value) {
|
|
23271
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
23272
|
+
};
|
|
23273
|
+
|
|
23274
|
+
|
|
23275
|
+
/**
|
|
23276
|
+
* optional uint64 cache_read_tokens = 6;
|
|
23277
|
+
* @return {number}
|
|
23278
|
+
*/
|
|
23279
|
+
proto.gateway.web.v1.ModelActivity.prototype.getCacheReadTokens = function() {
|
|
23280
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
23281
|
+
};
|
|
23282
|
+
|
|
23283
|
+
|
|
23284
|
+
/**
|
|
23285
|
+
* @param {number} value
|
|
23286
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23287
|
+
*/
|
|
23288
|
+
proto.gateway.web.v1.ModelActivity.prototype.setCacheReadTokens = function(value) {
|
|
23289
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
23290
|
+
};
|
|
23291
|
+
|
|
23292
|
+
|
|
23293
|
+
/**
|
|
23294
|
+
* optional uint64 cache_write_tokens = 7;
|
|
23295
|
+
* @return {number}
|
|
23296
|
+
*/
|
|
23297
|
+
proto.gateway.web.v1.ModelActivity.prototype.getCacheWriteTokens = function() {
|
|
23298
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
23299
|
+
};
|
|
23300
|
+
|
|
23301
|
+
|
|
23302
|
+
/**
|
|
23303
|
+
* @param {number} value
|
|
23304
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23305
|
+
*/
|
|
23306
|
+
proto.gateway.web.v1.ModelActivity.prototype.setCacheWriteTokens = function(value) {
|
|
23307
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
23308
|
+
};
|
|
23309
|
+
|
|
23310
|
+
|
|
23311
|
+
/**
|
|
23312
|
+
* optional double cost_usd = 8;
|
|
23313
|
+
* @return {number}
|
|
23314
|
+
*/
|
|
23315
|
+
proto.gateway.web.v1.ModelActivity.prototype.getCostUsd = function() {
|
|
23316
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
23317
|
+
};
|
|
23318
|
+
|
|
23319
|
+
|
|
23320
|
+
/**
|
|
23321
|
+
* @param {number} value
|
|
23322
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23323
|
+
*/
|
|
23324
|
+
proto.gateway.web.v1.ModelActivity.prototype.setCostUsd = function(value) {
|
|
23325
|
+
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
23326
|
+
};
|
|
23327
|
+
|
|
23328
|
+
|
|
23329
|
+
/**
|
|
23330
|
+
* optional double subscription_cost_usd = 9;
|
|
23331
|
+
* @return {number}
|
|
23332
|
+
*/
|
|
23333
|
+
proto.gateway.web.v1.ModelActivity.prototype.getSubscriptionCostUsd = function() {
|
|
23334
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
|
|
23335
|
+
};
|
|
23336
|
+
|
|
23337
|
+
|
|
23338
|
+
/**
|
|
23339
|
+
* @param {number} value
|
|
23340
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23341
|
+
*/
|
|
23342
|
+
proto.gateway.web.v1.ModelActivity.prototype.setSubscriptionCostUsd = function(value) {
|
|
23343
|
+
return jspb.Message.setProto3FloatField(this, 9, value);
|
|
23344
|
+
};
|
|
23345
|
+
|
|
23346
|
+
|
|
23347
|
+
/**
|
|
23348
|
+
* optional uint64 sessions = 10;
|
|
23349
|
+
* @return {number}
|
|
23350
|
+
*/
|
|
23351
|
+
proto.gateway.web.v1.ModelActivity.prototype.getSessions = function() {
|
|
23352
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
|
|
23353
|
+
};
|
|
23354
|
+
|
|
23355
|
+
|
|
23356
|
+
/**
|
|
23357
|
+
* @param {number} value
|
|
23358
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23359
|
+
*/
|
|
23360
|
+
proto.gateway.web.v1.ModelActivity.prototype.setSessions = function(value) {
|
|
23361
|
+
return jspb.Message.setProto3IntField(this, 10, value);
|
|
23362
|
+
};
|
|
23363
|
+
|
|
23364
|
+
|
|
23365
|
+
/**
|
|
23366
|
+
* optional uint64 tool_calls = 11;
|
|
23367
|
+
* @return {number}
|
|
23368
|
+
*/
|
|
23369
|
+
proto.gateway.web.v1.ModelActivity.prototype.getToolCalls = function() {
|
|
23370
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
|
|
23371
|
+
};
|
|
23372
|
+
|
|
23373
|
+
|
|
23374
|
+
/**
|
|
23375
|
+
* @param {number} value
|
|
23376
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23377
|
+
*/
|
|
23378
|
+
proto.gateway.web.v1.ModelActivity.prototype.setToolCalls = function(value) {
|
|
23379
|
+
return jspb.Message.setProto3IntField(this, 11, value);
|
|
23380
|
+
};
|
|
23381
|
+
|
|
23382
|
+
|
|
23383
|
+
/**
|
|
23384
|
+
* optional uint64 compactions = 12;
|
|
23385
|
+
* @return {number}
|
|
23386
|
+
*/
|
|
23387
|
+
proto.gateway.web.v1.ModelActivity.prototype.getCompactions = function() {
|
|
23388
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
|
|
23389
|
+
};
|
|
23390
|
+
|
|
23391
|
+
|
|
23392
|
+
/**
|
|
23393
|
+
* @param {number} value
|
|
23394
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23395
|
+
*/
|
|
23396
|
+
proto.gateway.web.v1.ModelActivity.prototype.setCompactions = function(value) {
|
|
23397
|
+
return jspb.Message.setProto3IntField(this, 12, value);
|
|
23398
|
+
};
|
|
23399
|
+
|
|
23400
|
+
|
|
23401
|
+
/**
|
|
23402
|
+
* optional uint64 subagent_runs = 13;
|
|
23403
|
+
* @return {number}
|
|
23404
|
+
*/
|
|
23405
|
+
proto.gateway.web.v1.ModelActivity.prototype.getSubagentRuns = function() {
|
|
23406
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
|
|
23407
|
+
};
|
|
23408
|
+
|
|
23409
|
+
|
|
23410
|
+
/**
|
|
23411
|
+
* @param {number} value
|
|
23412
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23413
|
+
*/
|
|
23414
|
+
proto.gateway.web.v1.ModelActivity.prototype.setSubagentRuns = function(value) {
|
|
23415
|
+
return jspb.Message.setProto3IntField(this, 13, value);
|
|
23416
|
+
};
|
|
23417
|
+
|
|
23418
|
+
|
|
23419
|
+
/**
|
|
23420
|
+
* optional uint64 ttft_ms_sum = 14;
|
|
23421
|
+
* @return {number}
|
|
23422
|
+
*/
|
|
23423
|
+
proto.gateway.web.v1.ModelActivity.prototype.getTtftMsSum = function() {
|
|
23424
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
|
|
23425
|
+
};
|
|
23426
|
+
|
|
23427
|
+
|
|
23428
|
+
/**
|
|
23429
|
+
* @param {number} value
|
|
23430
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23431
|
+
*/
|
|
23432
|
+
proto.gateway.web.v1.ModelActivity.prototype.setTtftMsSum = function(value) {
|
|
23433
|
+
return jspb.Message.setProto3IntField(this, 14, value);
|
|
23434
|
+
};
|
|
23435
|
+
|
|
23436
|
+
|
|
23437
|
+
/**
|
|
23438
|
+
* optional uint64 ttft_calls = 15;
|
|
23439
|
+
* @return {number}
|
|
23440
|
+
*/
|
|
23441
|
+
proto.gateway.web.v1.ModelActivity.prototype.getTtftCalls = function() {
|
|
23442
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
|
|
23443
|
+
};
|
|
23444
|
+
|
|
23445
|
+
|
|
23446
|
+
/**
|
|
23447
|
+
* @param {number} value
|
|
23448
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23449
|
+
*/
|
|
23450
|
+
proto.gateway.web.v1.ModelActivity.prototype.setTtftCalls = function(value) {
|
|
23451
|
+
return jspb.Message.setProto3IntField(this, 15, value);
|
|
23452
|
+
};
|
|
23453
|
+
|
|
23454
|
+
|
|
23455
|
+
/**
|
|
23456
|
+
* repeated string providers = 16;
|
|
23457
|
+
* @return {!Array<string>}
|
|
23458
|
+
*/
|
|
23459
|
+
proto.gateway.web.v1.ModelActivity.prototype.getProvidersList = function() {
|
|
23460
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
|
|
23461
|
+
};
|
|
23462
|
+
|
|
23463
|
+
|
|
23464
|
+
/**
|
|
23465
|
+
* @param {!Array<string>} value
|
|
23466
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23467
|
+
*/
|
|
23468
|
+
proto.gateway.web.v1.ModelActivity.prototype.setProvidersList = function(value) {
|
|
23469
|
+
return jspb.Message.setField(this, 16, value || []);
|
|
23470
|
+
};
|
|
23471
|
+
|
|
23472
|
+
|
|
23473
|
+
/**
|
|
23474
|
+
* @param {string} value
|
|
23475
|
+
* @param {number=} opt_index
|
|
23476
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23477
|
+
*/
|
|
23478
|
+
proto.gateway.web.v1.ModelActivity.prototype.addProviders = function(value, opt_index) {
|
|
23479
|
+
return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
|
|
23480
|
+
};
|
|
23481
|
+
|
|
23482
|
+
|
|
23483
|
+
/**
|
|
23484
|
+
* Clears the list making it empty but non-null.
|
|
23485
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23486
|
+
*/
|
|
23487
|
+
proto.gateway.web.v1.ModelActivity.prototype.clearProvidersList = function() {
|
|
23488
|
+
return this.setProvidersList([]);
|
|
23489
|
+
};
|
|
23490
|
+
|
|
23491
|
+
|
|
23492
|
+
/**
|
|
23493
|
+
* repeated ModelActivityPrincipal principals = 17;
|
|
23494
|
+
* @return {!Array<!proto.gateway.web.v1.ModelActivityPrincipal>}
|
|
23495
|
+
*/
|
|
23496
|
+
proto.gateway.web.v1.ModelActivity.prototype.getPrincipalsList = function() {
|
|
23497
|
+
return /** @type{!Array<!proto.gateway.web.v1.ModelActivityPrincipal>} */ (
|
|
23498
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ModelActivityPrincipal, 17));
|
|
23499
|
+
};
|
|
23500
|
+
|
|
23501
|
+
|
|
23502
|
+
/**
|
|
23503
|
+
* @param {!Array<!proto.gateway.web.v1.ModelActivityPrincipal>} value
|
|
23504
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23505
|
+
*/
|
|
23506
|
+
proto.gateway.web.v1.ModelActivity.prototype.setPrincipalsList = function(value) {
|
|
23507
|
+
return jspb.Message.setRepeatedWrapperField(this, 17, value);
|
|
23508
|
+
};
|
|
23509
|
+
|
|
23510
|
+
|
|
23511
|
+
/**
|
|
23512
|
+
* @param {!proto.gateway.web.v1.ModelActivityPrincipal=} opt_value
|
|
23513
|
+
* @param {number=} opt_index
|
|
23514
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal}
|
|
23515
|
+
*/
|
|
23516
|
+
proto.gateway.web.v1.ModelActivity.prototype.addPrincipals = function(opt_value, opt_index) {
|
|
23517
|
+
return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.gateway.web.v1.ModelActivityPrincipal, opt_index);
|
|
23518
|
+
};
|
|
23519
|
+
|
|
23520
|
+
|
|
23521
|
+
/**
|
|
23522
|
+
* Clears the list making it empty but non-null.
|
|
23523
|
+
* @return {!proto.gateway.web.v1.ModelActivity} returns this
|
|
23524
|
+
*/
|
|
23525
|
+
proto.gateway.web.v1.ModelActivity.prototype.clearPrincipalsList = function() {
|
|
23526
|
+
return this.setPrincipalsList([]);
|
|
23527
|
+
};
|
|
23528
|
+
|
|
23529
|
+
|
|
23530
|
+
|
|
23531
|
+
|
|
23532
|
+
|
|
23533
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23534
|
+
/**
|
|
23535
|
+
* Creates an object representation of this proto.
|
|
23536
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23537
|
+
* Optional fields that are not set will be set to undefined.
|
|
23538
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23539
|
+
* For the list of reserved names please see:
|
|
23540
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23541
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23542
|
+
* JSPB instance for transitional soy proto support:
|
|
23543
|
+
* http://goto/soy-param-migration
|
|
23544
|
+
* @return {!Object}
|
|
23545
|
+
*/
|
|
23546
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.toObject = function(opt_includeInstance) {
|
|
23547
|
+
return proto.gateway.web.v1.ModelActivityPrincipal.toObject(opt_includeInstance, this);
|
|
23548
|
+
};
|
|
23549
|
+
|
|
23550
|
+
|
|
23551
|
+
/**
|
|
23552
|
+
* Static version of the {@see toObject} method.
|
|
23553
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23554
|
+
* the JSPB instance for transitional soy proto support:
|
|
23555
|
+
* http://goto/soy-param-migration
|
|
23556
|
+
* @param {!proto.gateway.web.v1.ModelActivityPrincipal} msg The msg instance to transform.
|
|
23557
|
+
* @return {!Object}
|
|
23558
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23559
|
+
*/
|
|
23560
|
+
proto.gateway.web.v1.ModelActivityPrincipal.toObject = function(includeInstance, msg) {
|
|
23561
|
+
var f, obj = {
|
|
23562
|
+
kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
23563
|
+
id: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
23564
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
23565
|
+
modelCalls: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
23566
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
23567
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
23568
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
23569
|
+
costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
|
|
23570
|
+
};
|
|
23571
|
+
|
|
23572
|
+
if (includeInstance) {
|
|
23573
|
+
obj.$jspbMessageInstance = msg;
|
|
23574
|
+
}
|
|
23575
|
+
return obj;
|
|
23576
|
+
};
|
|
23577
|
+
}
|
|
23578
|
+
|
|
23579
|
+
|
|
23580
|
+
/**
|
|
23581
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23582
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
23583
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal}
|
|
23584
|
+
*/
|
|
23585
|
+
proto.gateway.web.v1.ModelActivityPrincipal.deserializeBinary = function(bytes) {
|
|
23586
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23587
|
+
var msg = new proto.gateway.web.v1.ModelActivityPrincipal;
|
|
23588
|
+
return proto.gateway.web.v1.ModelActivityPrincipal.deserializeBinaryFromReader(msg, reader);
|
|
23589
|
+
};
|
|
23590
|
+
|
|
23591
|
+
|
|
23592
|
+
/**
|
|
23593
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23594
|
+
* given reader into the given message object.
|
|
23595
|
+
* @param {!proto.gateway.web.v1.ModelActivityPrincipal} msg The message object to deserialize into.
|
|
23596
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23597
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal}
|
|
23598
|
+
*/
|
|
23599
|
+
proto.gateway.web.v1.ModelActivityPrincipal.deserializeBinaryFromReader = function(msg, reader) {
|
|
23600
|
+
while (reader.nextField()) {
|
|
23601
|
+
if (reader.isEndGroup()) {
|
|
23602
|
+
break;
|
|
23603
|
+
}
|
|
23604
|
+
var field = reader.getFieldNumber();
|
|
23605
|
+
switch (field) {
|
|
23606
|
+
case 1:
|
|
23607
|
+
var value = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (reader.readEnum());
|
|
23608
|
+
msg.setKind(value);
|
|
23609
|
+
break;
|
|
23610
|
+
case 2:
|
|
23611
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
23612
|
+
msg.setId(value);
|
|
23613
|
+
break;
|
|
23614
|
+
case 3:
|
|
23615
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
23616
|
+
msg.setSourceSystem(value);
|
|
23617
|
+
break;
|
|
23618
|
+
case 4:
|
|
23619
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23620
|
+
msg.setModelCalls(value);
|
|
23621
|
+
break;
|
|
23622
|
+
case 5:
|
|
23623
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23624
|
+
msg.setSessions(value);
|
|
23625
|
+
break;
|
|
23626
|
+
case 6:
|
|
23627
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23628
|
+
msg.setInputTokens(value);
|
|
23629
|
+
break;
|
|
23630
|
+
case 7:
|
|
23631
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
23632
|
+
msg.setOutputTokens(value);
|
|
23633
|
+
break;
|
|
23634
|
+
case 8:
|
|
23635
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
23636
|
+
msg.setCostUsd(value);
|
|
23637
|
+
break;
|
|
23638
|
+
default:
|
|
23639
|
+
reader.skipField();
|
|
23640
|
+
break;
|
|
23641
|
+
}
|
|
23642
|
+
}
|
|
23643
|
+
return msg;
|
|
23644
|
+
};
|
|
23645
|
+
|
|
23646
|
+
|
|
23647
|
+
/**
|
|
23648
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23649
|
+
* @return {!Uint8Array}
|
|
23650
|
+
*/
|
|
23651
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.serializeBinary = function() {
|
|
23652
|
+
var writer = new jspb.BinaryWriter();
|
|
23653
|
+
proto.gateway.web.v1.ModelActivityPrincipal.serializeBinaryToWriter(this, writer);
|
|
23654
|
+
return writer.getResultBuffer();
|
|
23655
|
+
};
|
|
23656
|
+
|
|
23657
|
+
|
|
23658
|
+
/**
|
|
23659
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23660
|
+
* format), writing to the given BinaryWriter.
|
|
23661
|
+
* @param {!proto.gateway.web.v1.ModelActivityPrincipal} message
|
|
23662
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23663
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23664
|
+
*/
|
|
23665
|
+
proto.gateway.web.v1.ModelActivityPrincipal.serializeBinaryToWriter = function(message, writer) {
|
|
23666
|
+
var f = undefined;
|
|
23667
|
+
f = message.getKind();
|
|
23668
|
+
if (f !== 0.0) {
|
|
23669
|
+
writer.writeEnum(
|
|
23670
|
+
1,
|
|
23671
|
+
f
|
|
23672
|
+
);
|
|
23673
|
+
}
|
|
23674
|
+
f = message.getId();
|
|
23675
|
+
if (f.length > 0) {
|
|
23676
|
+
writer.writeString(
|
|
23677
|
+
2,
|
|
23678
|
+
f
|
|
23679
|
+
);
|
|
23680
|
+
}
|
|
23681
|
+
f = message.getSourceSystem();
|
|
23682
|
+
if (f.length > 0) {
|
|
23683
|
+
writer.writeString(
|
|
23684
|
+
3,
|
|
23685
|
+
f
|
|
23686
|
+
);
|
|
23687
|
+
}
|
|
23688
|
+
f = message.getModelCalls();
|
|
23689
|
+
if (f !== 0) {
|
|
23690
|
+
writer.writeUint64(
|
|
23691
|
+
4,
|
|
23692
|
+
f
|
|
23693
|
+
);
|
|
23694
|
+
}
|
|
23695
|
+
f = message.getSessions();
|
|
23696
|
+
if (f !== 0) {
|
|
23697
|
+
writer.writeUint64(
|
|
23698
|
+
5,
|
|
23699
|
+
f
|
|
23700
|
+
);
|
|
23701
|
+
}
|
|
23702
|
+
f = message.getInputTokens();
|
|
23703
|
+
if (f !== 0) {
|
|
23704
|
+
writer.writeUint64(
|
|
23705
|
+
6,
|
|
23706
|
+
f
|
|
23707
|
+
);
|
|
23708
|
+
}
|
|
23709
|
+
f = message.getOutputTokens();
|
|
23710
|
+
if (f !== 0) {
|
|
23711
|
+
writer.writeUint64(
|
|
23712
|
+
7,
|
|
23713
|
+
f
|
|
23714
|
+
);
|
|
23715
|
+
}
|
|
23716
|
+
f = message.getCostUsd();
|
|
23717
|
+
if (f !== 0.0) {
|
|
23718
|
+
writer.writeDouble(
|
|
23719
|
+
8,
|
|
23720
|
+
f
|
|
23721
|
+
);
|
|
23722
|
+
}
|
|
23723
|
+
};
|
|
23724
|
+
|
|
23725
|
+
|
|
23726
|
+
/**
|
|
23727
|
+
* optional AIPrincipalKind kind = 1;
|
|
23728
|
+
* @return {!proto.gateway.web.v1.AIPrincipalKind}
|
|
23729
|
+
*/
|
|
23730
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getKind = function() {
|
|
23731
|
+
return /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
23732
|
+
};
|
|
23733
|
+
|
|
23734
|
+
|
|
23735
|
+
/**
|
|
23736
|
+
* @param {!proto.gateway.web.v1.AIPrincipalKind} value
|
|
23737
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23738
|
+
*/
|
|
23739
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setKind = function(value) {
|
|
23740
|
+
return jspb.Message.setProto3EnumField(this, 1, value);
|
|
23741
|
+
};
|
|
23742
|
+
|
|
23743
|
+
|
|
23744
|
+
/**
|
|
23745
|
+
* optional string id = 2;
|
|
23746
|
+
* @return {string}
|
|
23747
|
+
*/
|
|
23748
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getId = function() {
|
|
23749
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
23750
|
+
};
|
|
23751
|
+
|
|
23752
|
+
|
|
23753
|
+
/**
|
|
23754
|
+
* @param {string} value
|
|
23755
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23756
|
+
*/
|
|
23757
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setId = function(value) {
|
|
23758
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
23759
|
+
};
|
|
23760
|
+
|
|
23761
|
+
|
|
23762
|
+
/**
|
|
23763
|
+
* optional string source_system = 3;
|
|
23764
|
+
* @return {string}
|
|
23765
|
+
*/
|
|
23766
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getSourceSystem = function() {
|
|
23767
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
23768
|
+
};
|
|
23769
|
+
|
|
23770
|
+
|
|
23771
|
+
/**
|
|
23772
|
+
* @param {string} value
|
|
23773
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23774
|
+
*/
|
|
23775
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setSourceSystem = function(value) {
|
|
23776
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
23777
|
+
};
|
|
23778
|
+
|
|
23779
|
+
|
|
23780
|
+
/**
|
|
23781
|
+
* optional uint64 model_calls = 4;
|
|
23782
|
+
* @return {number}
|
|
23783
|
+
*/
|
|
23784
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getModelCalls = function() {
|
|
23785
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
23786
|
+
};
|
|
23787
|
+
|
|
23788
|
+
|
|
23789
|
+
/**
|
|
23790
|
+
* @param {number} value
|
|
23791
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23792
|
+
*/
|
|
23793
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setModelCalls = function(value) {
|
|
23794
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
23795
|
+
};
|
|
23796
|
+
|
|
23797
|
+
|
|
23798
|
+
/**
|
|
23799
|
+
* optional uint64 sessions = 5;
|
|
23800
|
+
* @return {number}
|
|
23801
|
+
*/
|
|
23802
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getSessions = function() {
|
|
23803
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
23804
|
+
};
|
|
23805
|
+
|
|
23806
|
+
|
|
23807
|
+
/**
|
|
23808
|
+
* @param {number} value
|
|
23809
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23810
|
+
*/
|
|
23811
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setSessions = function(value) {
|
|
23812
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
23813
|
+
};
|
|
23814
|
+
|
|
23815
|
+
|
|
23816
|
+
/**
|
|
23817
|
+
* optional uint64 input_tokens = 6;
|
|
23818
|
+
* @return {number}
|
|
23819
|
+
*/
|
|
23820
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getInputTokens = function() {
|
|
23821
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
23822
|
+
};
|
|
23823
|
+
|
|
23824
|
+
|
|
23825
|
+
/**
|
|
23826
|
+
* @param {number} value
|
|
23827
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23828
|
+
*/
|
|
23829
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setInputTokens = function(value) {
|
|
23830
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
23831
|
+
};
|
|
23832
|
+
|
|
23833
|
+
|
|
23834
|
+
/**
|
|
23835
|
+
* optional uint64 output_tokens = 7;
|
|
23836
|
+
* @return {number}
|
|
23837
|
+
*/
|
|
23838
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getOutputTokens = function() {
|
|
23839
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
23840
|
+
};
|
|
23841
|
+
|
|
23842
|
+
|
|
23843
|
+
/**
|
|
23844
|
+
* @param {number} value
|
|
23845
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23846
|
+
*/
|
|
23847
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setOutputTokens = function(value) {
|
|
23848
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
23849
|
+
};
|
|
23850
|
+
|
|
23851
|
+
|
|
23852
|
+
/**
|
|
23853
|
+
* optional double cost_usd = 8;
|
|
23854
|
+
* @return {number}
|
|
23855
|
+
*/
|
|
23856
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.getCostUsd = function() {
|
|
23857
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
|
|
23858
|
+
};
|
|
23859
|
+
|
|
23860
|
+
|
|
23861
|
+
/**
|
|
23862
|
+
* @param {number} value
|
|
23863
|
+
* @return {!proto.gateway.web.v1.ModelActivityPrincipal} returns this
|
|
23864
|
+
*/
|
|
23865
|
+
proto.gateway.web.v1.ModelActivityPrincipal.prototype.setCostUsd = function(value) {
|
|
23866
|
+
return jspb.Message.setProto3FloatField(this, 8, value);
|
|
23867
|
+
};
|
|
23868
|
+
|
|
23869
|
+
|
|
23870
|
+
|
|
23871
|
+
|
|
23872
|
+
|
|
23873
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
23874
|
+
/**
|
|
23875
|
+
* Creates an object representation of this proto.
|
|
23876
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
23877
|
+
* Optional fields that are not set will be set to undefined.
|
|
23878
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
23879
|
+
* For the list of reserved names please see:
|
|
23880
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
23881
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
23882
|
+
* JSPB instance for transitional soy proto support:
|
|
23883
|
+
* http://goto/soy-param-migration
|
|
23884
|
+
* @return {!Object}
|
|
23885
|
+
*/
|
|
23886
|
+
proto.gateway.web.v1.AISessionRef.prototype.toObject = function(opt_includeInstance) {
|
|
23887
|
+
return proto.gateway.web.v1.AISessionRef.toObject(opt_includeInstance, this);
|
|
23888
|
+
};
|
|
23889
|
+
|
|
23890
|
+
|
|
23891
|
+
/**
|
|
23892
|
+
* Static version of the {@see toObject} method.
|
|
23893
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
23894
|
+
* the JSPB instance for transitional soy proto support:
|
|
23895
|
+
* http://goto/soy-param-migration
|
|
23896
|
+
* @param {!proto.gateway.web.v1.AISessionRef} msg The msg instance to transform.
|
|
23897
|
+
* @return {!Object}
|
|
23898
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23899
|
+
*/
|
|
23900
|
+
proto.gateway.web.v1.AISessionRef.toObject = function(includeInstance, msg) {
|
|
23901
|
+
var f, obj = {
|
|
23902
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
23903
|
+
sessionId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
23904
|
+
};
|
|
23905
|
+
|
|
23906
|
+
if (includeInstance) {
|
|
23907
|
+
obj.$jspbMessageInstance = msg;
|
|
23908
|
+
}
|
|
23909
|
+
return obj;
|
|
23910
|
+
};
|
|
23911
|
+
}
|
|
23912
|
+
|
|
23913
|
+
|
|
23914
|
+
/**
|
|
23915
|
+
* Deserializes binary data (in protobuf wire format).
|
|
23916
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
23917
|
+
* @return {!proto.gateway.web.v1.AISessionRef}
|
|
23918
|
+
*/
|
|
23919
|
+
proto.gateway.web.v1.AISessionRef.deserializeBinary = function(bytes) {
|
|
23920
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
23921
|
+
var msg = new proto.gateway.web.v1.AISessionRef;
|
|
23922
|
+
return proto.gateway.web.v1.AISessionRef.deserializeBinaryFromReader(msg, reader);
|
|
23923
|
+
};
|
|
23924
|
+
|
|
23925
|
+
|
|
23926
|
+
/**
|
|
23927
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
23928
|
+
* given reader into the given message object.
|
|
23929
|
+
* @param {!proto.gateway.web.v1.AISessionRef} msg The message object to deserialize into.
|
|
23930
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
23931
|
+
* @return {!proto.gateway.web.v1.AISessionRef}
|
|
23932
|
+
*/
|
|
23933
|
+
proto.gateway.web.v1.AISessionRef.deserializeBinaryFromReader = function(msg, reader) {
|
|
23934
|
+
while (reader.nextField()) {
|
|
23935
|
+
if (reader.isEndGroup()) {
|
|
23936
|
+
break;
|
|
23937
|
+
}
|
|
23938
|
+
var field = reader.getFieldNumber();
|
|
23939
|
+
switch (field) {
|
|
23940
|
+
case 1:
|
|
23941
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
23942
|
+
msg.setSourceSystem(value);
|
|
23943
|
+
break;
|
|
23944
|
+
case 2:
|
|
23945
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
23946
|
+
msg.setSessionId(value);
|
|
23947
|
+
break;
|
|
23948
|
+
default:
|
|
23949
|
+
reader.skipField();
|
|
23950
|
+
break;
|
|
23951
|
+
}
|
|
23952
|
+
}
|
|
23953
|
+
return msg;
|
|
23954
|
+
};
|
|
23955
|
+
|
|
23956
|
+
|
|
23957
|
+
/**
|
|
23958
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
23959
|
+
* @return {!Uint8Array}
|
|
23960
|
+
*/
|
|
23961
|
+
proto.gateway.web.v1.AISessionRef.prototype.serializeBinary = function() {
|
|
23962
|
+
var writer = new jspb.BinaryWriter();
|
|
23963
|
+
proto.gateway.web.v1.AISessionRef.serializeBinaryToWriter(this, writer);
|
|
23964
|
+
return writer.getResultBuffer();
|
|
23965
|
+
};
|
|
23966
|
+
|
|
23967
|
+
|
|
23968
|
+
/**
|
|
23969
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
23970
|
+
* format), writing to the given BinaryWriter.
|
|
23971
|
+
* @param {!proto.gateway.web.v1.AISessionRef} message
|
|
23972
|
+
* @param {!jspb.BinaryWriter} writer
|
|
23973
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
23974
|
+
*/
|
|
23975
|
+
proto.gateway.web.v1.AISessionRef.serializeBinaryToWriter = function(message, writer) {
|
|
23976
|
+
var f = undefined;
|
|
23977
|
+
f = message.getSourceSystem();
|
|
23978
|
+
if (f.length > 0) {
|
|
23979
|
+
writer.writeString(
|
|
23980
|
+
1,
|
|
23981
|
+
f
|
|
23982
|
+
);
|
|
23983
|
+
}
|
|
23984
|
+
f = message.getSessionId();
|
|
23985
|
+
if (f.length > 0) {
|
|
23986
|
+
writer.writeString(
|
|
23987
|
+
2,
|
|
23988
|
+
f
|
|
23989
|
+
);
|
|
23990
|
+
}
|
|
23991
|
+
};
|
|
23992
|
+
|
|
23993
|
+
|
|
23994
|
+
/**
|
|
23995
|
+
* optional string source_system = 1;
|
|
23996
|
+
* @return {string}
|
|
23997
|
+
*/
|
|
23998
|
+
proto.gateway.web.v1.AISessionRef.prototype.getSourceSystem = function() {
|
|
23999
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
24000
|
+
};
|
|
24001
|
+
|
|
24002
|
+
|
|
24003
|
+
/**
|
|
24004
|
+
* @param {string} value
|
|
24005
|
+
* @return {!proto.gateway.web.v1.AISessionRef} returns this
|
|
24006
|
+
*/
|
|
24007
|
+
proto.gateway.web.v1.AISessionRef.prototype.setSourceSystem = function(value) {
|
|
24008
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
24009
|
+
};
|
|
24010
|
+
|
|
24011
|
+
|
|
24012
|
+
/**
|
|
24013
|
+
* optional string session_id = 2;
|
|
24014
|
+
* @return {string}
|
|
24015
|
+
*/
|
|
24016
|
+
proto.gateway.web.v1.AISessionRef.prototype.getSessionId = function() {
|
|
24017
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
24018
|
+
};
|
|
24019
|
+
|
|
24020
|
+
|
|
24021
|
+
/**
|
|
24022
|
+
* @param {string} value
|
|
24023
|
+
* @return {!proto.gateway.web.v1.AISessionRef} returns this
|
|
24024
|
+
*/
|
|
24025
|
+
proto.gateway.web.v1.AISessionRef.prototype.setSessionId = function(value) {
|
|
24026
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
24027
|
+
};
|
|
24028
|
+
|
|
24029
|
+
|
|
24030
|
+
|
|
24031
|
+
/**
|
|
24032
|
+
* List of repeated fields within this message type.
|
|
24033
|
+
* @private {!Array<number>}
|
|
24034
|
+
* @const
|
|
24035
|
+
*/
|
|
24036
|
+
proto.gateway.web.v1.AIFileFilter.repeatedFields_ = [1,2,3,4,5];
|
|
24037
|
+
|
|
24038
|
+
|
|
24039
|
+
|
|
24040
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24041
|
+
/**
|
|
24042
|
+
* Creates an object representation of this proto.
|
|
24043
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
24044
|
+
* Optional fields that are not set will be set to undefined.
|
|
24045
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
24046
|
+
* For the list of reserved names please see:
|
|
24047
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
24048
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
24049
|
+
* JSPB instance for transitional soy proto support:
|
|
24050
|
+
* http://goto/soy-param-migration
|
|
24051
|
+
* @return {!Object}
|
|
24052
|
+
*/
|
|
24053
|
+
proto.gateway.web.v1.AIFileFilter.prototype.toObject = function(opt_includeInstance) {
|
|
24054
|
+
return proto.gateway.web.v1.AIFileFilter.toObject(opt_includeInstance, this);
|
|
24055
|
+
};
|
|
24056
|
+
|
|
24057
|
+
|
|
24058
|
+
/**
|
|
24059
|
+
* Static version of the {@see toObject} method.
|
|
24060
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24061
|
+
* the JSPB instance for transitional soy proto support:
|
|
24062
|
+
* http://goto/soy-param-migration
|
|
24063
|
+
* @param {!proto.gateway.web.v1.AIFileFilter} msg The msg instance to transform.
|
|
24064
|
+
* @return {!Object}
|
|
24065
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24066
|
+
*/
|
|
24067
|
+
proto.gateway.web.v1.AIFileFilter.toObject = function(includeInstance, msg) {
|
|
24068
|
+
var f, obj = {
|
|
24069
|
+
repositoryKeyList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
|
|
24070
|
+
refList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
|
|
24071
|
+
stateList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
|
24072
|
+
tierList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
24073
|
+
sessionList: jspb.Message.toObjectList(msg.getSessionList(),
|
|
24074
|
+
proto.gateway.web.v1.AISessionRef.toObject, includeInstance),
|
|
24075
|
+
minAge: (f = msg.getMinAge()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f),
|
|
24076
|
+
activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
24077
|
+
activeBefore: (f = msg.getActiveBefore()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
24078
|
+
abandonedHorizon: (f = msg.getAbandonedHorizon()) && google_protobuf_duration_pb.Duration.toObject(includeInstance, f)
|
|
24079
|
+
};
|
|
24080
|
+
|
|
24081
|
+
if (includeInstance) {
|
|
24082
|
+
obj.$jspbMessageInstance = msg;
|
|
24083
|
+
}
|
|
24084
|
+
return obj;
|
|
24085
|
+
};
|
|
24086
|
+
}
|
|
24087
|
+
|
|
24088
|
+
|
|
24089
|
+
/**
|
|
24090
|
+
* Deserializes binary data (in protobuf wire format).
|
|
24091
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
24092
|
+
* @return {!proto.gateway.web.v1.AIFileFilter}
|
|
24093
|
+
*/
|
|
24094
|
+
proto.gateway.web.v1.AIFileFilter.deserializeBinary = function(bytes) {
|
|
24095
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
24096
|
+
var msg = new proto.gateway.web.v1.AIFileFilter;
|
|
24097
|
+
return proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader(msg, reader);
|
|
24098
|
+
};
|
|
24099
|
+
|
|
24100
|
+
|
|
24101
|
+
/**
|
|
24102
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
24103
|
+
* given reader into the given message object.
|
|
24104
|
+
* @param {!proto.gateway.web.v1.AIFileFilter} msg The message object to deserialize into.
|
|
24105
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24106
|
+
* @return {!proto.gateway.web.v1.AIFileFilter}
|
|
24107
|
+
*/
|
|
24108
|
+
proto.gateway.web.v1.AIFileFilter.deserializeBinaryFromReader = function(msg, reader) {
|
|
24109
|
+
while (reader.nextField()) {
|
|
24110
|
+
if (reader.isEndGroup()) {
|
|
24111
|
+
break;
|
|
24112
|
+
}
|
|
24113
|
+
var field = reader.getFieldNumber();
|
|
24114
|
+
switch (field) {
|
|
24115
|
+
case 1:
|
|
24116
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
24117
|
+
msg.addRepositoryKey(value);
|
|
24118
|
+
break;
|
|
24119
|
+
case 2:
|
|
24120
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
24121
|
+
msg.addRef(value);
|
|
24122
|
+
break;
|
|
24123
|
+
case 3:
|
|
24124
|
+
reader.readPackableEnumInto(msg.getStateList());
|
|
24125
|
+
break;
|
|
24126
|
+
case 4:
|
|
24127
|
+
reader.readPackableEnumInto(msg.getTierList());
|
|
24128
|
+
break;
|
|
24129
|
+
case 5:
|
|
24130
|
+
var value = new proto.gateway.web.v1.AISessionRef;
|
|
24131
|
+
reader.readMessage(value,proto.gateway.web.v1.AISessionRef.deserializeBinaryFromReader);
|
|
24132
|
+
msg.addSession(value);
|
|
24133
|
+
break;
|
|
24134
|
+
case 6:
|
|
24135
|
+
var value = new google_protobuf_duration_pb.Duration;
|
|
24136
|
+
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
24137
|
+
msg.setMinAge(value);
|
|
24138
|
+
break;
|
|
24139
|
+
case 7:
|
|
24140
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
24141
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
24142
|
+
msg.setActiveAfter(value);
|
|
24143
|
+
break;
|
|
24144
|
+
case 8:
|
|
24145
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
24146
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
24147
|
+
msg.setActiveBefore(value);
|
|
24148
|
+
break;
|
|
24149
|
+
case 9:
|
|
24150
|
+
var value = new google_protobuf_duration_pb.Duration;
|
|
24151
|
+
reader.readMessage(value,google_protobuf_duration_pb.Duration.deserializeBinaryFromReader);
|
|
24152
|
+
msg.setAbandonedHorizon(value);
|
|
24153
|
+
break;
|
|
24154
|
+
default:
|
|
24155
|
+
reader.skipField();
|
|
24156
|
+
break;
|
|
24157
|
+
}
|
|
24158
|
+
}
|
|
24159
|
+
return msg;
|
|
24160
|
+
};
|
|
24161
|
+
|
|
24162
|
+
|
|
24163
|
+
/**
|
|
24164
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
24165
|
+
* @return {!Uint8Array}
|
|
24166
|
+
*/
|
|
24167
|
+
proto.gateway.web.v1.AIFileFilter.prototype.serializeBinary = function() {
|
|
24168
|
+
var writer = new jspb.BinaryWriter();
|
|
24169
|
+
proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter(this, writer);
|
|
24170
|
+
return writer.getResultBuffer();
|
|
24171
|
+
};
|
|
24172
|
+
|
|
24173
|
+
|
|
24174
|
+
/**
|
|
24175
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
24176
|
+
* format), writing to the given BinaryWriter.
|
|
24177
|
+
* @param {!proto.gateway.web.v1.AIFileFilter} message
|
|
24178
|
+
* @param {!jspb.BinaryWriter} writer
|
|
24179
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24180
|
+
*/
|
|
24181
|
+
proto.gateway.web.v1.AIFileFilter.serializeBinaryToWriter = function(message, writer) {
|
|
24182
|
+
var f = undefined;
|
|
24183
|
+
f = message.getRepositoryKeyList();
|
|
24184
|
+
if (f.length > 0) {
|
|
24185
|
+
writer.writeRepeatedString(
|
|
24186
|
+
1,
|
|
24187
|
+
f
|
|
22138
24188
|
);
|
|
22139
24189
|
}
|
|
22140
|
-
f = message.
|
|
24190
|
+
f = message.getRefList();
|
|
22141
24191
|
if (f.length > 0) {
|
|
22142
24192
|
writer.writeRepeatedString(
|
|
22143
|
-
|
|
24193
|
+
2,
|
|
24194
|
+
f
|
|
24195
|
+
);
|
|
24196
|
+
}
|
|
24197
|
+
f = message.getStateList();
|
|
24198
|
+
if (f.length > 0) {
|
|
24199
|
+
writer.writePackedEnum(
|
|
24200
|
+
3,
|
|
24201
|
+
f
|
|
24202
|
+
);
|
|
24203
|
+
}
|
|
24204
|
+
f = message.getTierList();
|
|
24205
|
+
if (f.length > 0) {
|
|
24206
|
+
writer.writePackedEnum(
|
|
24207
|
+
4,
|
|
22144
24208
|
f
|
|
22145
24209
|
);
|
|
22146
24210
|
}
|
|
24211
|
+
f = message.getSessionList();
|
|
24212
|
+
if (f.length > 0) {
|
|
24213
|
+
writer.writeRepeatedMessage(
|
|
24214
|
+
5,
|
|
24215
|
+
f,
|
|
24216
|
+
proto.gateway.web.v1.AISessionRef.serializeBinaryToWriter
|
|
24217
|
+
);
|
|
24218
|
+
}
|
|
22147
24219
|
f = message.getMinAge();
|
|
22148
24220
|
if (f != null) {
|
|
22149
24221
|
writer.writeMessage(
|
|
@@ -22328,30 +24400,31 @@ proto.gateway.web.v1.AIFileFilter.prototype.clearTierList = function() {
|
|
|
22328
24400
|
|
|
22329
24401
|
|
|
22330
24402
|
/**
|
|
22331
|
-
* repeated
|
|
22332
|
-
* @return {!Array
|
|
24403
|
+
* repeated AISessionRef session = 5;
|
|
24404
|
+
* @return {!Array<!proto.gateway.web.v1.AISessionRef>}
|
|
22333
24405
|
*/
|
|
22334
|
-
proto.gateway.web.v1.AIFileFilter.prototype.
|
|
22335
|
-
return /** @type
|
|
24406
|
+
proto.gateway.web.v1.AIFileFilter.prototype.getSessionList = function() {
|
|
24407
|
+
return /** @type{!Array<!proto.gateway.web.v1.AISessionRef>} */ (
|
|
24408
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionRef, 5));
|
|
22336
24409
|
};
|
|
22337
24410
|
|
|
22338
24411
|
|
|
22339
24412
|
/**
|
|
22340
|
-
* @param {!Array
|
|
24413
|
+
* @param {!Array<!proto.gateway.web.v1.AISessionRef>} value
|
|
22341
24414
|
* @return {!proto.gateway.web.v1.AIFileFilter} returns this
|
|
22342
|
-
|
|
22343
|
-
proto.gateway.web.v1.AIFileFilter.prototype.
|
|
22344
|
-
return jspb.Message.
|
|
24415
|
+
*/
|
|
24416
|
+
proto.gateway.web.v1.AIFileFilter.prototype.setSessionList = function(value) {
|
|
24417
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
22345
24418
|
};
|
|
22346
24419
|
|
|
22347
24420
|
|
|
22348
24421
|
/**
|
|
22349
|
-
* @param {
|
|
24422
|
+
* @param {!proto.gateway.web.v1.AISessionRef=} opt_value
|
|
22350
24423
|
* @param {number=} opt_index
|
|
22351
|
-
* @return {!proto.gateway.web.v1.
|
|
24424
|
+
* @return {!proto.gateway.web.v1.AISessionRef}
|
|
22352
24425
|
*/
|
|
22353
|
-
proto.gateway.web.v1.AIFileFilter.prototype.
|
|
22354
|
-
return jspb.Message.
|
|
24426
|
+
proto.gateway.web.v1.AIFileFilter.prototype.addSession = function(opt_value, opt_index) {
|
|
24427
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.AISessionRef, opt_index);
|
|
22355
24428
|
};
|
|
22356
24429
|
|
|
22357
24430
|
|
|
@@ -22359,8 +24432,8 @@ proto.gateway.web.v1.AIFileFilter.prototype.addSessionId = function(value, opt_i
|
|
|
22359
24432
|
* Clears the list making it empty but non-null.
|
|
22360
24433
|
* @return {!proto.gateway.web.v1.AIFileFilter} returns this
|
|
22361
24434
|
*/
|
|
22362
|
-
proto.gateway.web.v1.AIFileFilter.prototype.
|
|
22363
|
-
return this.
|
|
24435
|
+
proto.gateway.web.v1.AIFileFilter.prototype.clearSessionList = function() {
|
|
24436
|
+
return this.setSessionList([]);
|
|
22364
24437
|
};
|
|
22365
24438
|
|
|
22366
24439
|
|
|
@@ -23079,7 +25152,8 @@ lastPushedAt: (f = msg.getLastPushedAt()) && google_protobuf_timestamp_pb.Timest
|
|
|
23079
25152
|
discardedAt: (f = msg.getDiscardedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
23080
25153
|
discardReason: jspb.Message.getFieldWithDefault(msg, 15, ""),
|
|
23081
25154
|
editCount: jspb.Message.getFieldWithDefault(msg, 16, 0),
|
|
23082
|
-
|
|
25155
|
+
sessionsList: jspb.Message.toObjectList(msg.getSessionsList(),
|
|
25156
|
+
proto.gateway.web.v1.AISessionRef.toObject, includeInstance),
|
|
23083
25157
|
unlandedCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 18, 0.0),
|
|
23084
25158
|
unlandedOutputTokens: jspb.Message.getFieldWithDefault(msg, 19, 0),
|
|
23085
25159
|
totalCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 20, 0.0),
|
|
@@ -23192,8 +25266,9 @@ proto.gateway.web.v1.AIFileRow.deserializeBinaryFromReader = function(msg, reade
|
|
|
23192
25266
|
msg.setEditCount(value);
|
|
23193
25267
|
break;
|
|
23194
25268
|
case 17:
|
|
23195
|
-
var value =
|
|
23196
|
-
|
|
25269
|
+
var value = new proto.gateway.web.v1.AISessionRef;
|
|
25270
|
+
reader.readMessage(value,proto.gateway.web.v1.AISessionRef.deserializeBinaryFromReader);
|
|
25271
|
+
msg.addSessions(value);
|
|
23197
25272
|
break;
|
|
23198
25273
|
case 18:
|
|
23199
25274
|
var value = /** @type {number} */ (reader.readDouble());
|
|
@@ -23362,11 +25437,12 @@ proto.gateway.web.v1.AIFileRow.serializeBinaryToWriter = function(message, write
|
|
|
23362
25437
|
f
|
|
23363
25438
|
);
|
|
23364
25439
|
}
|
|
23365
|
-
f = message.
|
|
25440
|
+
f = message.getSessionsList();
|
|
23366
25441
|
if (f.length > 0) {
|
|
23367
|
-
writer.
|
|
25442
|
+
writer.writeRepeatedMessage(
|
|
23368
25443
|
17,
|
|
23369
|
-
f
|
|
25444
|
+
f,
|
|
25445
|
+
proto.gateway.web.v1.AISessionRef.serializeBinaryToWriter
|
|
23370
25446
|
);
|
|
23371
25447
|
}
|
|
23372
25448
|
f = message.getUnlandedCostUsd();
|
|
@@ -23810,30 +25886,31 @@ proto.gateway.web.v1.AIFileRow.prototype.setEditCount = function(value) {
|
|
|
23810
25886
|
|
|
23811
25887
|
|
|
23812
25888
|
/**
|
|
23813
|
-
* repeated
|
|
23814
|
-
* @return {!Array
|
|
25889
|
+
* repeated AISessionRef sessions = 17;
|
|
25890
|
+
* @return {!Array<!proto.gateway.web.v1.AISessionRef>}
|
|
23815
25891
|
*/
|
|
23816
|
-
proto.gateway.web.v1.AIFileRow.prototype.
|
|
23817
|
-
return /** @type
|
|
25892
|
+
proto.gateway.web.v1.AIFileRow.prototype.getSessionsList = function() {
|
|
25893
|
+
return /** @type{!Array<!proto.gateway.web.v1.AISessionRef>} */ (
|
|
25894
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AISessionRef, 17));
|
|
23818
25895
|
};
|
|
23819
25896
|
|
|
23820
25897
|
|
|
23821
25898
|
/**
|
|
23822
|
-
* @param {!Array
|
|
25899
|
+
* @param {!Array<!proto.gateway.web.v1.AISessionRef>} value
|
|
23823
25900
|
* @return {!proto.gateway.web.v1.AIFileRow} returns this
|
|
23824
|
-
|
|
23825
|
-
proto.gateway.web.v1.AIFileRow.prototype.
|
|
23826
|
-
return jspb.Message.
|
|
25901
|
+
*/
|
|
25902
|
+
proto.gateway.web.v1.AIFileRow.prototype.setSessionsList = function(value) {
|
|
25903
|
+
return jspb.Message.setRepeatedWrapperField(this, 17, value);
|
|
23827
25904
|
};
|
|
23828
25905
|
|
|
23829
25906
|
|
|
23830
25907
|
/**
|
|
23831
|
-
* @param {
|
|
25908
|
+
* @param {!proto.gateway.web.v1.AISessionRef=} opt_value
|
|
23832
25909
|
* @param {number=} opt_index
|
|
23833
|
-
* @return {!proto.gateway.web.v1.
|
|
25910
|
+
* @return {!proto.gateway.web.v1.AISessionRef}
|
|
23834
25911
|
*/
|
|
23835
|
-
proto.gateway.web.v1.AIFileRow.prototype.
|
|
23836
|
-
return jspb.Message.
|
|
25912
|
+
proto.gateway.web.v1.AIFileRow.prototype.addSessions = function(opt_value, opt_index) {
|
|
25913
|
+
return jspb.Message.addToRepeatedWrapperField(this, 17, opt_value, proto.gateway.web.v1.AISessionRef, opt_index);
|
|
23837
25914
|
};
|
|
23838
25915
|
|
|
23839
25916
|
|
|
@@ -23841,8 +25918,8 @@ proto.gateway.web.v1.AIFileRow.prototype.addSessionId = function(value, opt_inde
|
|
|
23841
25918
|
* Clears the list making it empty but non-null.
|
|
23842
25919
|
* @return {!proto.gateway.web.v1.AIFileRow} returns this
|
|
23843
25920
|
*/
|
|
23844
|
-
proto.gateway.web.v1.AIFileRow.prototype.
|
|
23845
|
-
return this.
|
|
25921
|
+
proto.gateway.web.v1.AIFileRow.prototype.clearSessionsList = function() {
|
|
25922
|
+
return this.setSessionsList([]);
|
|
23846
25923
|
};
|
|
23847
25924
|
|
|
23848
25925
|
|