@miradorlabs/web-grpc 4.35.0 → 4.36.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/ai_gateway.ts +125 -1
- package/proto/gateway/web/v1/ai_gateway_pb.js +237 -2
- package/proto/gateway/web/v1/ai_insights_gateway.ts +470 -1
- package/proto/gateway/web/v1/ai_insights_gateway_grpc_pb.js +36 -0
- package/proto/gateway/web/v1/ai_insights_gateway_pb.js +904 -0
package/package.json
CHANGED
|
@@ -3253,6 +3253,18 @@ export interface GetSessionAnalysisOverviewResponse {
|
|
|
3253
3253
|
scoredSessions: ScoredSession[];
|
|
3254
3254
|
/** How many of the sessions carry a score; scored_sessions holds the first 20 of them. */
|
|
3255
3255
|
scoredSessionCount: number;
|
|
3256
|
+
/**
|
|
3257
|
+
* One row per distinct session_score (0-100) among the window's filtered sessions that carry one, ordered by
|
|
3258
|
+
* score descending: the rows add up to scored_session_count, so a client bands them however it likes.
|
|
3259
|
+
*/
|
|
3260
|
+
sessionScoreCounts: SessionScoreCount[];
|
|
3261
|
+
}
|
|
3262
|
+
|
|
3263
|
+
/** SessionScoreCount is how many sessions carry one score (AISessionSummary.session_score). */
|
|
3264
|
+
export interface SessionScoreCount {
|
|
3265
|
+
/** 0-100. */
|
|
3266
|
+
score: number;
|
|
3267
|
+
sessions: number;
|
|
3256
3268
|
}
|
|
3257
3269
|
|
|
3258
3270
|
/** SessionWorkTypeCount is how many sessions carry one work type (AISessionSummary.work_type) as their latest label. */
|
|
@@ -24353,7 +24365,14 @@ export const SessionAnalysisOverviewFilter: MessageFns<SessionAnalysisOverviewFi
|
|
|
24353
24365
|
};
|
|
24354
24366
|
|
|
24355
24367
|
function createBaseGetSessionAnalysisOverviewResponse(): GetSessionAnalysisOverviewResponse {
|
|
24356
|
-
return {
|
|
24368
|
+
return {
|
|
24369
|
+
status: undefined,
|
|
24370
|
+
sessions: 0,
|
|
24371
|
+
workTypeCounts: [],
|
|
24372
|
+
scoredSessions: [],
|
|
24373
|
+
scoredSessionCount: 0,
|
|
24374
|
+
sessionScoreCounts: [],
|
|
24375
|
+
};
|
|
24357
24376
|
}
|
|
24358
24377
|
|
|
24359
24378
|
export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOverviewResponse> = {
|
|
@@ -24373,6 +24392,9 @@ export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOv
|
|
|
24373
24392
|
if (message.scoredSessionCount !== 0) {
|
|
24374
24393
|
writer.uint32(40).uint64(message.scoredSessionCount);
|
|
24375
24394
|
}
|
|
24395
|
+
for (const v of message.sessionScoreCounts) {
|
|
24396
|
+
SessionScoreCount.encode(v!, writer.uint32(50).fork()).join();
|
|
24397
|
+
}
|
|
24376
24398
|
return writer;
|
|
24377
24399
|
},
|
|
24378
24400
|
|
|
@@ -24429,6 +24451,14 @@ export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOv
|
|
|
24429
24451
|
message.scoredSessionCount = longToNumber(reader.uint64());
|
|
24430
24452
|
continue;
|
|
24431
24453
|
}
|
|
24454
|
+
case 6: {
|
|
24455
|
+
if (tag !== 50) {
|
|
24456
|
+
break;
|
|
24457
|
+
}
|
|
24458
|
+
|
|
24459
|
+
message.sessionScoreCounts.push(SessionScoreCount.decode(reader, reader.uint32()));
|
|
24460
|
+
continue;
|
|
24461
|
+
}
|
|
24432
24462
|
}
|
|
24433
24463
|
if ((tag & 7) === 4 || tag === 0) {
|
|
24434
24464
|
break;
|
|
@@ -24460,6 +24490,11 @@ export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOv
|
|
|
24460
24490
|
: isSet(object.scored_session_count)
|
|
24461
24491
|
? globalThis.Number(object.scored_session_count)
|
|
24462
24492
|
: 0,
|
|
24493
|
+
sessionScoreCounts: globalThis.Array.isArray(object?.sessionScoreCounts)
|
|
24494
|
+
? object.sessionScoreCounts.map((e: any) => SessionScoreCount.fromJSON(e))
|
|
24495
|
+
: globalThis.Array.isArray(object?.session_score_counts)
|
|
24496
|
+
? object.session_score_counts.map((e: any) => SessionScoreCount.fromJSON(e))
|
|
24497
|
+
: [],
|
|
24463
24498
|
};
|
|
24464
24499
|
},
|
|
24465
24500
|
|
|
@@ -24480,6 +24515,9 @@ export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOv
|
|
|
24480
24515
|
if (message.scoredSessionCount !== 0) {
|
|
24481
24516
|
obj.scoredSessionCount = Math.round(message.scoredSessionCount);
|
|
24482
24517
|
}
|
|
24518
|
+
if (message.sessionScoreCounts?.length) {
|
|
24519
|
+
obj.sessionScoreCounts = message.sessionScoreCounts.map((e) => SessionScoreCount.toJSON(e));
|
|
24520
|
+
}
|
|
24483
24521
|
return obj;
|
|
24484
24522
|
},
|
|
24485
24523
|
|
|
@@ -24499,6 +24537,92 @@ export const GetSessionAnalysisOverviewResponse: MessageFns<GetSessionAnalysisOv
|
|
|
24499
24537
|
message.workTypeCounts = object.workTypeCounts?.map((e) => SessionWorkTypeCount.fromPartial(e)) || [];
|
|
24500
24538
|
message.scoredSessions = object.scoredSessions?.map((e) => ScoredSession.fromPartial(e)) || [];
|
|
24501
24539
|
message.scoredSessionCount = object.scoredSessionCount ?? 0;
|
|
24540
|
+
message.sessionScoreCounts = object.sessionScoreCounts?.map((e) => SessionScoreCount.fromPartial(e)) || [];
|
|
24541
|
+
return message;
|
|
24542
|
+
},
|
|
24543
|
+
};
|
|
24544
|
+
|
|
24545
|
+
function createBaseSessionScoreCount(): SessionScoreCount {
|
|
24546
|
+
return { score: 0, sessions: 0 };
|
|
24547
|
+
}
|
|
24548
|
+
|
|
24549
|
+
export const SessionScoreCount: MessageFns<SessionScoreCount> = {
|
|
24550
|
+
encode(message: SessionScoreCount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
24551
|
+
if (message.score !== 0) {
|
|
24552
|
+
writer.uint32(8).int32(message.score);
|
|
24553
|
+
}
|
|
24554
|
+
if (message.sessions !== 0) {
|
|
24555
|
+
writer.uint32(16).uint64(message.sessions);
|
|
24556
|
+
}
|
|
24557
|
+
return writer;
|
|
24558
|
+
},
|
|
24559
|
+
|
|
24560
|
+
decode(input: BinaryReader | Uint8Array, length?: number): SessionScoreCount {
|
|
24561
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
24562
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
24563
|
+
if (previousRecursionDepth >= 100) {
|
|
24564
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
24565
|
+
}
|
|
24566
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
24567
|
+
try {
|
|
24568
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
24569
|
+
const message = createBaseSessionScoreCount();
|
|
24570
|
+
while (reader.pos < end) {
|
|
24571
|
+
const tag = reader.uint32();
|
|
24572
|
+
switch (tag >>> 3) {
|
|
24573
|
+
case 1: {
|
|
24574
|
+
if (tag !== 8) {
|
|
24575
|
+
break;
|
|
24576
|
+
}
|
|
24577
|
+
|
|
24578
|
+
message.score = reader.int32();
|
|
24579
|
+
continue;
|
|
24580
|
+
}
|
|
24581
|
+
case 2: {
|
|
24582
|
+
if (tag !== 16) {
|
|
24583
|
+
break;
|
|
24584
|
+
}
|
|
24585
|
+
|
|
24586
|
+
message.sessions = longToNumber(reader.uint64());
|
|
24587
|
+
continue;
|
|
24588
|
+
}
|
|
24589
|
+
}
|
|
24590
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
24591
|
+
break;
|
|
24592
|
+
}
|
|
24593
|
+
reader.skip(tag & 7);
|
|
24594
|
+
}
|
|
24595
|
+
return message;
|
|
24596
|
+
} finally {
|
|
24597
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
24598
|
+
}
|
|
24599
|
+
},
|
|
24600
|
+
|
|
24601
|
+
fromJSON(object: any): SessionScoreCount {
|
|
24602
|
+
return {
|
|
24603
|
+
score: isSet(object.score) ? globalThis.Number(object.score) : 0,
|
|
24604
|
+
sessions: isSet(object.sessions) ? globalThis.Number(object.sessions) : 0,
|
|
24605
|
+
};
|
|
24606
|
+
},
|
|
24607
|
+
|
|
24608
|
+
toJSON(message: SessionScoreCount): unknown {
|
|
24609
|
+
const obj: any = {};
|
|
24610
|
+
if (message.score !== 0) {
|
|
24611
|
+
obj.score = Math.round(message.score);
|
|
24612
|
+
}
|
|
24613
|
+
if (message.sessions !== 0) {
|
|
24614
|
+
obj.sessions = Math.round(message.sessions);
|
|
24615
|
+
}
|
|
24616
|
+
return obj;
|
|
24617
|
+
},
|
|
24618
|
+
|
|
24619
|
+
create<I extends Exact<DeepPartial<SessionScoreCount>, I>>(base?: I): SessionScoreCount {
|
|
24620
|
+
return SessionScoreCount.fromPartial(base ?? ({} as any));
|
|
24621
|
+
},
|
|
24622
|
+
fromPartial<I extends Exact<DeepPartial<SessionScoreCount>, I>>(object: I): SessionScoreCount {
|
|
24623
|
+
const message = createBaseSessionScoreCount();
|
|
24624
|
+
message.score = object.score ?? 0;
|
|
24625
|
+
message.sessions = object.sessions ?? 0;
|
|
24502
24626
|
return message;
|
|
24503
24627
|
},
|
|
24504
24628
|
};
|
|
@@ -222,6 +222,7 @@ goog.exportSymbol('proto.gateway.web.v1.SessionPagination', null, global);
|
|
|
222
222
|
goog.exportSymbol('proto.gateway.web.v1.SessionPeriodTotals', null, global);
|
|
223
223
|
goog.exportSymbol('proto.gateway.web.v1.SessionPromptAnchor', null, global);
|
|
224
224
|
goog.exportSymbol('proto.gateway.web.v1.SessionPullRequest', null, global);
|
|
225
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionScoreCount', null, global);
|
|
225
226
|
goog.exportSymbol('proto.gateway.web.v1.SessionSort', null, global);
|
|
226
227
|
goog.exportSymbol('proto.gateway.web.v1.SessionTimelinePoint', null, global);
|
|
227
228
|
goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimeline', null, global);
|
|
@@ -2989,6 +2990,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2989
2990
|
*/
|
|
2990
2991
|
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.displayName = 'proto.gateway.web.v1.GetSessionAnalysisOverviewResponse';
|
|
2991
2992
|
}
|
|
2993
|
+
/**
|
|
2994
|
+
* Generated by JsPbCodeGenerator.
|
|
2995
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2996
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2997
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2998
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2999
|
+
* valid.
|
|
3000
|
+
* @extends {jspb.Message}
|
|
3001
|
+
* @constructor
|
|
3002
|
+
*/
|
|
3003
|
+
proto.gateway.web.v1.SessionScoreCount = function(opt_data) {
|
|
3004
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3005
|
+
};
|
|
3006
|
+
goog.inherits(proto.gateway.web.v1.SessionScoreCount, jspb.Message);
|
|
3007
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3008
|
+
/**
|
|
3009
|
+
* @public
|
|
3010
|
+
* @override
|
|
3011
|
+
*/
|
|
3012
|
+
proto.gateway.web.v1.SessionScoreCount.displayName = 'proto.gateway.web.v1.SessionScoreCount';
|
|
3013
|
+
}
|
|
2992
3014
|
/**
|
|
2993
3015
|
* Generated by JsPbCodeGenerator.
|
|
2994
3016
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -42924,7 +42946,7 @@ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.clearSourceSystemsL
|
|
|
42924
42946
|
* @private {!Array<number>}
|
|
42925
42947
|
* @const
|
|
42926
42948
|
*/
|
|
42927
|
-
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_ = [3,4];
|
|
42949
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_ = [3,4,6];
|
|
42928
42950
|
|
|
42929
42951
|
|
|
42930
42952
|
|
|
@@ -42963,7 +42985,9 @@ workTypeCountsList: jspb.Message.toObjectList(msg.getWorkTypeCountsList(),
|
|
|
42963
42985
|
proto.gateway.web.v1.SessionWorkTypeCount.toObject, includeInstance),
|
|
42964
42986
|
scoredSessionsList: jspb.Message.toObjectList(msg.getScoredSessionsList(),
|
|
42965
42987
|
proto.gateway.web.v1.ScoredSession.toObject, includeInstance),
|
|
42966
|
-
scoredSessionCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
42988
|
+
scoredSessionCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
42989
|
+
sessionScoreCountsList: jspb.Message.toObjectList(msg.getSessionScoreCountsList(),
|
|
42990
|
+
proto.gateway.web.v1.SessionScoreCount.toObject, includeInstance)
|
|
42967
42991
|
};
|
|
42968
42992
|
|
|
42969
42993
|
if (includeInstance) {
|
|
@@ -43023,6 +43047,11 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.deserializeBinaryFromRea
|
|
|
43023
43047
|
var value = /** @type {number} */ (reader.readUint64());
|
|
43024
43048
|
msg.setScoredSessionCount(value);
|
|
43025
43049
|
break;
|
|
43050
|
+
case 6:
|
|
43051
|
+
var value = new proto.gateway.web.v1.SessionScoreCount;
|
|
43052
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionScoreCount.deserializeBinaryFromReader);
|
|
43053
|
+
msg.addSessionScoreCounts(value);
|
|
43054
|
+
break;
|
|
43026
43055
|
default:
|
|
43027
43056
|
reader.skipField();
|
|
43028
43057
|
break;
|
|
@@ -43090,6 +43119,14 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.serializeBinaryToWriter
|
|
|
43090
43119
|
f
|
|
43091
43120
|
);
|
|
43092
43121
|
}
|
|
43122
|
+
f = message.getSessionScoreCountsList();
|
|
43123
|
+
if (f.length > 0) {
|
|
43124
|
+
writer.writeRepeatedMessage(
|
|
43125
|
+
6,
|
|
43126
|
+
f,
|
|
43127
|
+
proto.gateway.web.v1.SessionScoreCount.serializeBinaryToWriter
|
|
43128
|
+
);
|
|
43129
|
+
}
|
|
43093
43130
|
};
|
|
43094
43131
|
|
|
43095
43132
|
|
|
@@ -43242,6 +43279,204 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setScoredSessi
|
|
|
43242
43279
|
};
|
|
43243
43280
|
|
|
43244
43281
|
|
|
43282
|
+
/**
|
|
43283
|
+
* repeated SessionScoreCount session_score_counts = 6;
|
|
43284
|
+
* @return {!Array<!proto.gateway.web.v1.SessionScoreCount>}
|
|
43285
|
+
*/
|
|
43286
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getSessionScoreCountsList = function() {
|
|
43287
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionScoreCount>} */ (
|
|
43288
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionScoreCount, 6));
|
|
43289
|
+
};
|
|
43290
|
+
|
|
43291
|
+
|
|
43292
|
+
/**
|
|
43293
|
+
* @param {!Array<!proto.gateway.web.v1.SessionScoreCount>} value
|
|
43294
|
+
* @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
|
|
43295
|
+
*/
|
|
43296
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setSessionScoreCountsList = function(value) {
|
|
43297
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
43298
|
+
};
|
|
43299
|
+
|
|
43300
|
+
|
|
43301
|
+
/**
|
|
43302
|
+
* @param {!proto.gateway.web.v1.SessionScoreCount=} opt_value
|
|
43303
|
+
* @param {number=} opt_index
|
|
43304
|
+
* @return {!proto.gateway.web.v1.SessionScoreCount}
|
|
43305
|
+
*/
|
|
43306
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.addSessionScoreCounts = function(opt_value, opt_index) {
|
|
43307
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.SessionScoreCount, opt_index);
|
|
43308
|
+
};
|
|
43309
|
+
|
|
43310
|
+
|
|
43311
|
+
/**
|
|
43312
|
+
* Clears the list making it empty but non-null.
|
|
43313
|
+
* @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
|
|
43314
|
+
*/
|
|
43315
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.clearSessionScoreCountsList = function() {
|
|
43316
|
+
return this.setSessionScoreCountsList([]);
|
|
43317
|
+
};
|
|
43318
|
+
|
|
43319
|
+
|
|
43320
|
+
|
|
43321
|
+
|
|
43322
|
+
|
|
43323
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43324
|
+
/**
|
|
43325
|
+
* Creates an object representation of this proto.
|
|
43326
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43327
|
+
* Optional fields that are not set will be set to undefined.
|
|
43328
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43329
|
+
* For the list of reserved names please see:
|
|
43330
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43331
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43332
|
+
* JSPB instance for transitional soy proto support:
|
|
43333
|
+
* http://goto/soy-param-migration
|
|
43334
|
+
* @return {!Object}
|
|
43335
|
+
*/
|
|
43336
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.toObject = function(opt_includeInstance) {
|
|
43337
|
+
return proto.gateway.web.v1.SessionScoreCount.toObject(opt_includeInstance, this);
|
|
43338
|
+
};
|
|
43339
|
+
|
|
43340
|
+
|
|
43341
|
+
/**
|
|
43342
|
+
* Static version of the {@see toObject} method.
|
|
43343
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43344
|
+
* the JSPB instance for transitional soy proto support:
|
|
43345
|
+
* http://goto/soy-param-migration
|
|
43346
|
+
* @param {!proto.gateway.web.v1.SessionScoreCount} msg The msg instance to transform.
|
|
43347
|
+
* @return {!Object}
|
|
43348
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43349
|
+
*/
|
|
43350
|
+
proto.gateway.web.v1.SessionScoreCount.toObject = function(includeInstance, msg) {
|
|
43351
|
+
var f, obj = {
|
|
43352
|
+
score: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
43353
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
43354
|
+
};
|
|
43355
|
+
|
|
43356
|
+
if (includeInstance) {
|
|
43357
|
+
obj.$jspbMessageInstance = msg;
|
|
43358
|
+
}
|
|
43359
|
+
return obj;
|
|
43360
|
+
};
|
|
43361
|
+
}
|
|
43362
|
+
|
|
43363
|
+
|
|
43364
|
+
/**
|
|
43365
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43366
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
43367
|
+
* @return {!proto.gateway.web.v1.SessionScoreCount}
|
|
43368
|
+
*/
|
|
43369
|
+
proto.gateway.web.v1.SessionScoreCount.deserializeBinary = function(bytes) {
|
|
43370
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43371
|
+
var msg = new proto.gateway.web.v1.SessionScoreCount;
|
|
43372
|
+
return proto.gateway.web.v1.SessionScoreCount.deserializeBinaryFromReader(msg, reader);
|
|
43373
|
+
};
|
|
43374
|
+
|
|
43375
|
+
|
|
43376
|
+
/**
|
|
43377
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43378
|
+
* given reader into the given message object.
|
|
43379
|
+
* @param {!proto.gateway.web.v1.SessionScoreCount} msg The message object to deserialize into.
|
|
43380
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43381
|
+
* @return {!proto.gateway.web.v1.SessionScoreCount}
|
|
43382
|
+
*/
|
|
43383
|
+
proto.gateway.web.v1.SessionScoreCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
43384
|
+
while (reader.nextField()) {
|
|
43385
|
+
if (reader.isEndGroup()) {
|
|
43386
|
+
break;
|
|
43387
|
+
}
|
|
43388
|
+
var field = reader.getFieldNumber();
|
|
43389
|
+
switch (field) {
|
|
43390
|
+
case 1:
|
|
43391
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
43392
|
+
msg.setScore(value);
|
|
43393
|
+
break;
|
|
43394
|
+
case 2:
|
|
43395
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
43396
|
+
msg.setSessions(value);
|
|
43397
|
+
break;
|
|
43398
|
+
default:
|
|
43399
|
+
reader.skipField();
|
|
43400
|
+
break;
|
|
43401
|
+
}
|
|
43402
|
+
}
|
|
43403
|
+
return msg;
|
|
43404
|
+
};
|
|
43405
|
+
|
|
43406
|
+
|
|
43407
|
+
/**
|
|
43408
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43409
|
+
* @return {!Uint8Array}
|
|
43410
|
+
*/
|
|
43411
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.serializeBinary = function() {
|
|
43412
|
+
var writer = new jspb.BinaryWriter();
|
|
43413
|
+
proto.gateway.web.v1.SessionScoreCount.serializeBinaryToWriter(this, writer);
|
|
43414
|
+
return writer.getResultBuffer();
|
|
43415
|
+
};
|
|
43416
|
+
|
|
43417
|
+
|
|
43418
|
+
/**
|
|
43419
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43420
|
+
* format), writing to the given BinaryWriter.
|
|
43421
|
+
* @param {!proto.gateway.web.v1.SessionScoreCount} message
|
|
43422
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43423
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43424
|
+
*/
|
|
43425
|
+
proto.gateway.web.v1.SessionScoreCount.serializeBinaryToWriter = function(message, writer) {
|
|
43426
|
+
var f = undefined;
|
|
43427
|
+
f = message.getScore();
|
|
43428
|
+
if (f !== 0) {
|
|
43429
|
+
writer.writeInt32(
|
|
43430
|
+
1,
|
|
43431
|
+
f
|
|
43432
|
+
);
|
|
43433
|
+
}
|
|
43434
|
+
f = message.getSessions();
|
|
43435
|
+
if (f !== 0) {
|
|
43436
|
+
writer.writeUint64(
|
|
43437
|
+
2,
|
|
43438
|
+
f
|
|
43439
|
+
);
|
|
43440
|
+
}
|
|
43441
|
+
};
|
|
43442
|
+
|
|
43443
|
+
|
|
43444
|
+
/**
|
|
43445
|
+
* optional int32 score = 1;
|
|
43446
|
+
* @return {number}
|
|
43447
|
+
*/
|
|
43448
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.getScore = function() {
|
|
43449
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
43450
|
+
};
|
|
43451
|
+
|
|
43452
|
+
|
|
43453
|
+
/**
|
|
43454
|
+
* @param {number} value
|
|
43455
|
+
* @return {!proto.gateway.web.v1.SessionScoreCount} returns this
|
|
43456
|
+
*/
|
|
43457
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.setScore = function(value) {
|
|
43458
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
43459
|
+
};
|
|
43460
|
+
|
|
43461
|
+
|
|
43462
|
+
/**
|
|
43463
|
+
* optional uint64 sessions = 2;
|
|
43464
|
+
* @return {number}
|
|
43465
|
+
*/
|
|
43466
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.getSessions = function() {
|
|
43467
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
43468
|
+
};
|
|
43469
|
+
|
|
43470
|
+
|
|
43471
|
+
/**
|
|
43472
|
+
* @param {number} value
|
|
43473
|
+
* @return {!proto.gateway.web.v1.SessionScoreCount} returns this
|
|
43474
|
+
*/
|
|
43475
|
+
proto.gateway.web.v1.SessionScoreCount.prototype.setSessions = function(value) {
|
|
43476
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
43477
|
+
};
|
|
43478
|
+
|
|
43479
|
+
|
|
43245
43480
|
|
|
43246
43481
|
|
|
43247
43482
|
|