@miradorlabs/web-grpc 4.34.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 +1073 -1
- package/proto/gateway/web/v1/ai_gateway_grpc_pb.js +36 -0
- package/proto/gateway/web/v1/ai_gateway_pb.js +1868 -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
|
@@ -122,6 +122,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisRequest', null, global
|
|
|
122
122
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisResponse', null, global);
|
|
123
123
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionIssuesRequest', null, global);
|
|
124
124
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionIssuesResponse', null, global);
|
|
125
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSessionPeriodTotalsRequest', null, global);
|
|
126
|
+
goog.exportSymbol('proto.gateway.web.v1.GetSessionPeriodTotalsResponse', null, global);
|
|
125
127
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreRubricCatalogRequest', null, global);
|
|
126
128
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreRubricCatalogResponse', null, global);
|
|
127
129
|
goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreTrendRequest', null, global);
|
|
@@ -205,6 +207,7 @@ goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
|
|
|
205
207
|
goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
|
|
206
208
|
goog.exportSymbol('proto.gateway.web.v1.ScoredSession', null, global);
|
|
207
209
|
goog.exportSymbol('proto.gateway.web.v1.SeatEntitlement', null, global);
|
|
210
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionActorUsage', null, global);
|
|
208
211
|
goog.exportSymbol('proto.gateway.web.v1.SessionAnalysisOverviewFilter', null, global);
|
|
209
212
|
goog.exportSymbol('proto.gateway.web.v1.SessionEventFilter', null, global);
|
|
210
213
|
goog.exportSymbol('proto.gateway.web.v1.SessionFileChange', null, global);
|
|
@@ -216,8 +219,10 @@ goog.exportSymbol('proto.gateway.web.v1.SessionIssueCost', null, global);
|
|
|
216
219
|
goog.exportSymbol('proto.gateway.web.v1.SessionIssueTotals', null, global);
|
|
217
220
|
goog.exportSymbol('proto.gateway.web.v1.SessionModelUsage', null, global);
|
|
218
221
|
goog.exportSymbol('proto.gateway.web.v1.SessionPagination', null, global);
|
|
222
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionPeriodTotals', null, global);
|
|
219
223
|
goog.exportSymbol('proto.gateway.web.v1.SessionPromptAnchor', null, global);
|
|
220
224
|
goog.exportSymbol('proto.gateway.web.v1.SessionPullRequest', null, global);
|
|
225
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionScoreCount', null, global);
|
|
221
226
|
goog.exportSymbol('proto.gateway.web.v1.SessionSort', null, global);
|
|
222
227
|
goog.exportSymbol('proto.gateway.web.v1.SessionTimelinePoint', null, global);
|
|
223
228
|
goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimeline', null, global);
|
|
@@ -226,6 +231,7 @@ goog.exportSymbol('proto.gateway.web.v1.SessionTotalsBucket', null, global);
|
|
|
226
231
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageBucket', null, global);
|
|
227
232
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global);
|
|
228
233
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
|
|
234
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionWorkSizeCount', null, global);
|
|
229
235
|
goog.exportSymbol('proto.gateway.web.v1.SessionWorkTypeCount', null, global);
|
|
230
236
|
goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
|
|
231
237
|
goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionRequest', null, global);
|
|
@@ -2984,6 +2990,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2984
2990
|
*/
|
|
2985
2991
|
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.displayName = 'proto.gateway.web.v1.GetSessionAnalysisOverviewResponse';
|
|
2986
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
|
+
}
|
|
2987
3014
|
/**
|
|
2988
3015
|
* Generated by JsPbCodeGenerator.
|
|
2989
3016
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -3026,6 +3053,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3026
3053
|
*/
|
|
3027
3054
|
proto.gateway.web.v1.ScoredSession.displayName = 'proto.gateway.web.v1.ScoredSession';
|
|
3028
3055
|
}
|
|
3056
|
+
/**
|
|
3057
|
+
* Generated by JsPbCodeGenerator.
|
|
3058
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3059
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3060
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3061
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3062
|
+
* valid.
|
|
3063
|
+
* @extends {jspb.Message}
|
|
3064
|
+
* @constructor
|
|
3065
|
+
*/
|
|
3066
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest = function(opt_data) {
|
|
3067
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3068
|
+
};
|
|
3069
|
+
goog.inherits(proto.gateway.web.v1.GetSessionPeriodTotalsRequest, jspb.Message);
|
|
3070
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3071
|
+
/**
|
|
3072
|
+
* @public
|
|
3073
|
+
* @override
|
|
3074
|
+
*/
|
|
3075
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.displayName = 'proto.gateway.web.v1.GetSessionPeriodTotalsRequest';
|
|
3076
|
+
}
|
|
3077
|
+
/**
|
|
3078
|
+
* Generated by JsPbCodeGenerator.
|
|
3079
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3080
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3081
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3082
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3083
|
+
* valid.
|
|
3084
|
+
* @extends {jspb.Message}
|
|
3085
|
+
* @constructor
|
|
3086
|
+
*/
|
|
3087
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse = function(opt_data) {
|
|
3088
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetSessionPeriodTotalsResponse.repeatedFields_, null);
|
|
3089
|
+
};
|
|
3090
|
+
goog.inherits(proto.gateway.web.v1.GetSessionPeriodTotalsResponse, jspb.Message);
|
|
3091
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3092
|
+
/**
|
|
3093
|
+
* @public
|
|
3094
|
+
* @override
|
|
3095
|
+
*/
|
|
3096
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.displayName = 'proto.gateway.web.v1.GetSessionPeriodTotalsResponse';
|
|
3097
|
+
}
|
|
3098
|
+
/**
|
|
3099
|
+
* Generated by JsPbCodeGenerator.
|
|
3100
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3101
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3102
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3103
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3104
|
+
* valid.
|
|
3105
|
+
* @extends {jspb.Message}
|
|
3106
|
+
* @constructor
|
|
3107
|
+
*/
|
|
3108
|
+
proto.gateway.web.v1.SessionPeriodTotals = function(opt_data) {
|
|
3109
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3110
|
+
};
|
|
3111
|
+
goog.inherits(proto.gateway.web.v1.SessionPeriodTotals, jspb.Message);
|
|
3112
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3113
|
+
/**
|
|
3114
|
+
* @public
|
|
3115
|
+
* @override
|
|
3116
|
+
*/
|
|
3117
|
+
proto.gateway.web.v1.SessionPeriodTotals.displayName = 'proto.gateway.web.v1.SessionPeriodTotals';
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Generated by JsPbCodeGenerator.
|
|
3121
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3122
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3123
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3124
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3125
|
+
* valid.
|
|
3126
|
+
* @extends {jspb.Message}
|
|
3127
|
+
* @constructor
|
|
3128
|
+
*/
|
|
3129
|
+
proto.gateway.web.v1.SessionActorUsage = function(opt_data) {
|
|
3130
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3131
|
+
};
|
|
3132
|
+
goog.inherits(proto.gateway.web.v1.SessionActorUsage, jspb.Message);
|
|
3133
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3134
|
+
/**
|
|
3135
|
+
* @public
|
|
3136
|
+
* @override
|
|
3137
|
+
*/
|
|
3138
|
+
proto.gateway.web.v1.SessionActorUsage.displayName = 'proto.gateway.web.v1.SessionActorUsage';
|
|
3139
|
+
}
|
|
3140
|
+
/**
|
|
3141
|
+
* Generated by JsPbCodeGenerator.
|
|
3142
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3143
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3144
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3145
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3146
|
+
* valid.
|
|
3147
|
+
* @extends {jspb.Message}
|
|
3148
|
+
* @constructor
|
|
3149
|
+
*/
|
|
3150
|
+
proto.gateway.web.v1.SessionWorkSizeCount = function(opt_data) {
|
|
3151
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3152
|
+
};
|
|
3153
|
+
goog.inherits(proto.gateway.web.v1.SessionWorkSizeCount, jspb.Message);
|
|
3154
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3155
|
+
/**
|
|
3156
|
+
* @public
|
|
3157
|
+
* @override
|
|
3158
|
+
*/
|
|
3159
|
+
proto.gateway.web.v1.SessionWorkSizeCount.displayName = 'proto.gateway.web.v1.SessionWorkSizeCount';
|
|
3160
|
+
}
|
|
3029
3161
|
/**
|
|
3030
3162
|
* Generated by JsPbCodeGenerator.
|
|
3031
3163
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -42814,7 +42946,7 @@ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.clearSourceSystemsL
|
|
|
42814
42946
|
* @private {!Array<number>}
|
|
42815
42947
|
* @const
|
|
42816
42948
|
*/
|
|
42817
|
-
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_ = [3,4];
|
|
42949
|
+
proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_ = [3,4,6];
|
|
42818
42950
|
|
|
42819
42951
|
|
|
42820
42952
|
|
|
@@ -42853,7 +42985,9 @@ workTypeCountsList: jspb.Message.toObjectList(msg.getWorkTypeCountsList(),
|
|
|
42853
42985
|
proto.gateway.web.v1.SessionWorkTypeCount.toObject, includeInstance),
|
|
42854
42986
|
scoredSessionsList: jspb.Message.toObjectList(msg.getScoredSessionsList(),
|
|
42855
42987
|
proto.gateway.web.v1.ScoredSession.toObject, includeInstance),
|
|
42856
|
-
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)
|
|
42857
42991
|
};
|
|
42858
42992
|
|
|
42859
42993
|
if (includeInstance) {
|
|
@@ -42913,6 +43047,11 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.deserializeBinaryFromRea
|
|
|
42913
43047
|
var value = /** @type {number} */ (reader.readUint64());
|
|
42914
43048
|
msg.setScoredSessionCount(value);
|
|
42915
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;
|
|
42916
43055
|
default:
|
|
42917
43056
|
reader.skipField();
|
|
42918
43057
|
break;
|
|
@@ -42980,6 +43119,14 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.serializeBinaryToWriter
|
|
|
42980
43119
|
f
|
|
42981
43120
|
);
|
|
42982
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
|
+
}
|
|
42983
43130
|
};
|
|
42984
43131
|
|
|
42985
43132
|
|
|
@@ -43132,6 +43279,204 @@ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setScoredSessi
|
|
|
43132
43279
|
};
|
|
43133
43280
|
|
|
43134
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
|
+
|
|
43135
43480
|
|
|
43136
43481
|
|
|
43137
43482
|
|
|
@@ -43703,6 +44048,1527 @@ proto.gateway.web.v1.ScoredSession.prototype.setSessionScoreRubric = function(va
|
|
|
43703
44048
|
|
|
43704
44049
|
|
|
43705
44050
|
|
|
44051
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44052
|
+
/**
|
|
44053
|
+
* Creates an object representation of this proto.
|
|
44054
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44055
|
+
* Optional fields that are not set will be set to undefined.
|
|
44056
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44057
|
+
* For the list of reserved names please see:
|
|
44058
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44059
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44060
|
+
* JSPB instance for transitional soy proto support:
|
|
44061
|
+
* http://goto/soy-param-migration
|
|
44062
|
+
* @return {!Object}
|
|
44063
|
+
*/
|
|
44064
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
44065
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsRequest.toObject(opt_includeInstance, this);
|
|
44066
|
+
};
|
|
44067
|
+
|
|
44068
|
+
|
|
44069
|
+
/**
|
|
44070
|
+
* Static version of the {@see toObject} method.
|
|
44071
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44072
|
+
* the JSPB instance for transitional soy proto support:
|
|
44073
|
+
* http://goto/soy-param-migration
|
|
44074
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} msg The msg instance to transform.
|
|
44075
|
+
* @return {!Object}
|
|
44076
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44077
|
+
*/
|
|
44078
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.toObject = function(includeInstance, msg) {
|
|
44079
|
+
var f, obj = {
|
|
44080
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
44081
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
44082
|
+
activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
44083
|
+
priorActiveAfter: (f = msg.getPriorActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
44084
|
+
};
|
|
44085
|
+
|
|
44086
|
+
if (includeInstance) {
|
|
44087
|
+
obj.$jspbMessageInstance = msg;
|
|
44088
|
+
}
|
|
44089
|
+
return obj;
|
|
44090
|
+
};
|
|
44091
|
+
}
|
|
44092
|
+
|
|
44093
|
+
|
|
44094
|
+
/**
|
|
44095
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44096
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44097
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest}
|
|
44098
|
+
*/
|
|
44099
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinary = function(bytes) {
|
|
44100
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44101
|
+
var msg = new proto.gateway.web.v1.GetSessionPeriodTotalsRequest;
|
|
44102
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinaryFromReader(msg, reader);
|
|
44103
|
+
};
|
|
44104
|
+
|
|
44105
|
+
|
|
44106
|
+
/**
|
|
44107
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44108
|
+
* given reader into the given message object.
|
|
44109
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} msg The message object to deserialize into.
|
|
44110
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44111
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest}
|
|
44112
|
+
*/
|
|
44113
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
44114
|
+
while (reader.nextField()) {
|
|
44115
|
+
if (reader.isEndGroup()) {
|
|
44116
|
+
break;
|
|
44117
|
+
}
|
|
44118
|
+
var field = reader.getFieldNumber();
|
|
44119
|
+
switch (field) {
|
|
44120
|
+
case 1:
|
|
44121
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
44122
|
+
msg.setOrganizationId(value);
|
|
44123
|
+
break;
|
|
44124
|
+
case 2:
|
|
44125
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
44126
|
+
msg.setProjectId(value);
|
|
44127
|
+
break;
|
|
44128
|
+
case 3:
|
|
44129
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
44130
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
44131
|
+
msg.setActiveAfter(value);
|
|
44132
|
+
break;
|
|
44133
|
+
case 4:
|
|
44134
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
44135
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
44136
|
+
msg.setPriorActiveAfter(value);
|
|
44137
|
+
break;
|
|
44138
|
+
default:
|
|
44139
|
+
reader.skipField();
|
|
44140
|
+
break;
|
|
44141
|
+
}
|
|
44142
|
+
}
|
|
44143
|
+
return msg;
|
|
44144
|
+
};
|
|
44145
|
+
|
|
44146
|
+
|
|
44147
|
+
/**
|
|
44148
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44149
|
+
* @return {!Uint8Array}
|
|
44150
|
+
*/
|
|
44151
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.serializeBinary = function() {
|
|
44152
|
+
var writer = new jspb.BinaryWriter();
|
|
44153
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.serializeBinaryToWriter(this, writer);
|
|
44154
|
+
return writer.getResultBuffer();
|
|
44155
|
+
};
|
|
44156
|
+
|
|
44157
|
+
|
|
44158
|
+
/**
|
|
44159
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44160
|
+
* format), writing to the given BinaryWriter.
|
|
44161
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} message
|
|
44162
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44163
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44164
|
+
*/
|
|
44165
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
44166
|
+
var f = undefined;
|
|
44167
|
+
f = message.getOrganizationId();
|
|
44168
|
+
if (f.length > 0) {
|
|
44169
|
+
writer.writeString(
|
|
44170
|
+
1,
|
|
44171
|
+
f
|
|
44172
|
+
);
|
|
44173
|
+
}
|
|
44174
|
+
f = message.getProjectId();
|
|
44175
|
+
if (f.length > 0) {
|
|
44176
|
+
writer.writeString(
|
|
44177
|
+
2,
|
|
44178
|
+
f
|
|
44179
|
+
);
|
|
44180
|
+
}
|
|
44181
|
+
f = message.getActiveAfter();
|
|
44182
|
+
if (f != null) {
|
|
44183
|
+
writer.writeMessage(
|
|
44184
|
+
3,
|
|
44185
|
+
f,
|
|
44186
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
44187
|
+
);
|
|
44188
|
+
}
|
|
44189
|
+
f = message.getPriorActiveAfter();
|
|
44190
|
+
if (f != null) {
|
|
44191
|
+
writer.writeMessage(
|
|
44192
|
+
4,
|
|
44193
|
+
f,
|
|
44194
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
44195
|
+
);
|
|
44196
|
+
}
|
|
44197
|
+
};
|
|
44198
|
+
|
|
44199
|
+
|
|
44200
|
+
/**
|
|
44201
|
+
* optional string organization_id = 1;
|
|
44202
|
+
* @return {string}
|
|
44203
|
+
*/
|
|
44204
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getOrganizationId = function() {
|
|
44205
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
44206
|
+
};
|
|
44207
|
+
|
|
44208
|
+
|
|
44209
|
+
/**
|
|
44210
|
+
* @param {string} value
|
|
44211
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44212
|
+
*/
|
|
44213
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setOrganizationId = function(value) {
|
|
44214
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
44215
|
+
};
|
|
44216
|
+
|
|
44217
|
+
|
|
44218
|
+
/**
|
|
44219
|
+
* optional string project_id = 2;
|
|
44220
|
+
* @return {string}
|
|
44221
|
+
*/
|
|
44222
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getProjectId = function() {
|
|
44223
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
44224
|
+
};
|
|
44225
|
+
|
|
44226
|
+
|
|
44227
|
+
/**
|
|
44228
|
+
* @param {string} value
|
|
44229
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44230
|
+
*/
|
|
44231
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setProjectId = function(value) {
|
|
44232
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
44233
|
+
};
|
|
44234
|
+
|
|
44235
|
+
|
|
44236
|
+
/**
|
|
44237
|
+
* optional google.protobuf.Timestamp active_after = 3;
|
|
44238
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44239
|
+
*/
|
|
44240
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getActiveAfter = function() {
|
|
44241
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
44242
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
44243
|
+
};
|
|
44244
|
+
|
|
44245
|
+
|
|
44246
|
+
/**
|
|
44247
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44248
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44249
|
+
*/
|
|
44250
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setActiveAfter = function(value) {
|
|
44251
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
44252
|
+
};
|
|
44253
|
+
|
|
44254
|
+
|
|
44255
|
+
/**
|
|
44256
|
+
* Clears the message field making it undefined.
|
|
44257
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44258
|
+
*/
|
|
44259
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.clearActiveAfter = function() {
|
|
44260
|
+
return this.setActiveAfter(undefined);
|
|
44261
|
+
};
|
|
44262
|
+
|
|
44263
|
+
|
|
44264
|
+
/**
|
|
44265
|
+
* Returns whether this field is set.
|
|
44266
|
+
* @return {boolean}
|
|
44267
|
+
*/
|
|
44268
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.hasActiveAfter = function() {
|
|
44269
|
+
return jspb.Message.getField(this, 3) != null;
|
|
44270
|
+
};
|
|
44271
|
+
|
|
44272
|
+
|
|
44273
|
+
/**
|
|
44274
|
+
* optional google.protobuf.Timestamp prior_active_after = 4;
|
|
44275
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44276
|
+
*/
|
|
44277
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getPriorActiveAfter = function() {
|
|
44278
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
44279
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
44280
|
+
};
|
|
44281
|
+
|
|
44282
|
+
|
|
44283
|
+
/**
|
|
44284
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44285
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44286
|
+
*/
|
|
44287
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setPriorActiveAfter = function(value) {
|
|
44288
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
44289
|
+
};
|
|
44290
|
+
|
|
44291
|
+
|
|
44292
|
+
/**
|
|
44293
|
+
* Clears the message field making it undefined.
|
|
44294
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44295
|
+
*/
|
|
44296
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.clearPriorActiveAfter = function() {
|
|
44297
|
+
return this.setPriorActiveAfter(undefined);
|
|
44298
|
+
};
|
|
44299
|
+
|
|
44300
|
+
|
|
44301
|
+
/**
|
|
44302
|
+
* Returns whether this field is set.
|
|
44303
|
+
* @return {boolean}
|
|
44304
|
+
*/
|
|
44305
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.hasPriorActiveAfter = function() {
|
|
44306
|
+
return jspb.Message.getField(this, 4) != null;
|
|
44307
|
+
};
|
|
44308
|
+
|
|
44309
|
+
|
|
44310
|
+
|
|
44311
|
+
/**
|
|
44312
|
+
* List of repeated fields within this message type.
|
|
44313
|
+
* @private {!Array<number>}
|
|
44314
|
+
* @const
|
|
44315
|
+
*/
|
|
44316
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.repeatedFields_ = [4,5,6];
|
|
44317
|
+
|
|
44318
|
+
|
|
44319
|
+
|
|
44320
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44321
|
+
/**
|
|
44322
|
+
* Creates an object representation of this proto.
|
|
44323
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44324
|
+
* Optional fields that are not set will be set to undefined.
|
|
44325
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44326
|
+
* For the list of reserved names please see:
|
|
44327
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44328
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44329
|
+
* JSPB instance for transitional soy proto support:
|
|
44330
|
+
* http://goto/soy-param-migration
|
|
44331
|
+
* @return {!Object}
|
|
44332
|
+
*/
|
|
44333
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
44334
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsResponse.toObject(opt_includeInstance, this);
|
|
44335
|
+
};
|
|
44336
|
+
|
|
44337
|
+
|
|
44338
|
+
/**
|
|
44339
|
+
* Static version of the {@see toObject} method.
|
|
44340
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44341
|
+
* the JSPB instance for transitional soy proto support:
|
|
44342
|
+
* http://goto/soy-param-migration
|
|
44343
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} msg The msg instance to transform.
|
|
44344
|
+
* @return {!Object}
|
|
44345
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44346
|
+
*/
|
|
44347
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.toObject = function(includeInstance, msg) {
|
|
44348
|
+
var f, obj = {
|
|
44349
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
44350
|
+
totals: (f = msg.getTotals()) && proto.gateway.web.v1.SessionPeriodTotals.toObject(includeInstance, f),
|
|
44351
|
+
priorTotals: (f = msg.getPriorTotals()) && proto.gateway.web.v1.SessionPeriodTotals.toObject(includeInstance, f),
|
|
44352
|
+
actorsList: jspb.Message.toObjectList(msg.getActorsList(),
|
|
44353
|
+
proto.gateway.web.v1.SessionActorUsage.toObject, includeInstance),
|
|
44354
|
+
workTypeCountsList: jspb.Message.toObjectList(msg.getWorkTypeCountsList(),
|
|
44355
|
+
proto.gateway.web.v1.SessionWorkTypeCount.toObject, includeInstance),
|
|
44356
|
+
workSizeCountsList: jspb.Message.toObjectList(msg.getWorkSizeCountsList(),
|
|
44357
|
+
proto.gateway.web.v1.SessionWorkSizeCount.toObject, includeInstance)
|
|
44358
|
+
};
|
|
44359
|
+
|
|
44360
|
+
if (includeInstance) {
|
|
44361
|
+
obj.$jspbMessageInstance = msg;
|
|
44362
|
+
}
|
|
44363
|
+
return obj;
|
|
44364
|
+
};
|
|
44365
|
+
}
|
|
44366
|
+
|
|
44367
|
+
|
|
44368
|
+
/**
|
|
44369
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44370
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44371
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse}
|
|
44372
|
+
*/
|
|
44373
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinary = function(bytes) {
|
|
44374
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44375
|
+
var msg = new proto.gateway.web.v1.GetSessionPeriodTotalsResponse;
|
|
44376
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinaryFromReader(msg, reader);
|
|
44377
|
+
};
|
|
44378
|
+
|
|
44379
|
+
|
|
44380
|
+
/**
|
|
44381
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44382
|
+
* given reader into the given message object.
|
|
44383
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} msg The message object to deserialize into.
|
|
44384
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44385
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse}
|
|
44386
|
+
*/
|
|
44387
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
44388
|
+
while (reader.nextField()) {
|
|
44389
|
+
if (reader.isEndGroup()) {
|
|
44390
|
+
break;
|
|
44391
|
+
}
|
|
44392
|
+
var field = reader.getFieldNumber();
|
|
44393
|
+
switch (field) {
|
|
44394
|
+
case 1:
|
|
44395
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
44396
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
44397
|
+
msg.setStatus(value);
|
|
44398
|
+
break;
|
|
44399
|
+
case 2:
|
|
44400
|
+
var value = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44401
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader);
|
|
44402
|
+
msg.setTotals(value);
|
|
44403
|
+
break;
|
|
44404
|
+
case 3:
|
|
44405
|
+
var value = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44406
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader);
|
|
44407
|
+
msg.setPriorTotals(value);
|
|
44408
|
+
break;
|
|
44409
|
+
case 4:
|
|
44410
|
+
var value = new proto.gateway.web.v1.SessionActorUsage;
|
|
44411
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader);
|
|
44412
|
+
msg.addActors(value);
|
|
44413
|
+
break;
|
|
44414
|
+
case 5:
|
|
44415
|
+
var value = new proto.gateway.web.v1.SessionWorkTypeCount;
|
|
44416
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinaryFromReader);
|
|
44417
|
+
msg.addWorkTypeCounts(value);
|
|
44418
|
+
break;
|
|
44419
|
+
case 6:
|
|
44420
|
+
var value = new proto.gateway.web.v1.SessionWorkSizeCount;
|
|
44421
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader);
|
|
44422
|
+
msg.addWorkSizeCounts(value);
|
|
44423
|
+
break;
|
|
44424
|
+
default:
|
|
44425
|
+
reader.skipField();
|
|
44426
|
+
break;
|
|
44427
|
+
}
|
|
44428
|
+
}
|
|
44429
|
+
return msg;
|
|
44430
|
+
};
|
|
44431
|
+
|
|
44432
|
+
|
|
44433
|
+
/**
|
|
44434
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44435
|
+
* @return {!Uint8Array}
|
|
44436
|
+
*/
|
|
44437
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.serializeBinary = function() {
|
|
44438
|
+
var writer = new jspb.BinaryWriter();
|
|
44439
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.serializeBinaryToWriter(this, writer);
|
|
44440
|
+
return writer.getResultBuffer();
|
|
44441
|
+
};
|
|
44442
|
+
|
|
44443
|
+
|
|
44444
|
+
/**
|
|
44445
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44446
|
+
* format), writing to the given BinaryWriter.
|
|
44447
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} message
|
|
44448
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44449
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44450
|
+
*/
|
|
44451
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
44452
|
+
var f = undefined;
|
|
44453
|
+
f = message.getStatus();
|
|
44454
|
+
if (f != null) {
|
|
44455
|
+
writer.writeMessage(
|
|
44456
|
+
1,
|
|
44457
|
+
f,
|
|
44458
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
44459
|
+
);
|
|
44460
|
+
}
|
|
44461
|
+
f = message.getTotals();
|
|
44462
|
+
if (f != null) {
|
|
44463
|
+
writer.writeMessage(
|
|
44464
|
+
2,
|
|
44465
|
+
f,
|
|
44466
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter
|
|
44467
|
+
);
|
|
44468
|
+
}
|
|
44469
|
+
f = message.getPriorTotals();
|
|
44470
|
+
if (f != null) {
|
|
44471
|
+
writer.writeMessage(
|
|
44472
|
+
3,
|
|
44473
|
+
f,
|
|
44474
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter
|
|
44475
|
+
);
|
|
44476
|
+
}
|
|
44477
|
+
f = message.getActorsList();
|
|
44478
|
+
if (f.length > 0) {
|
|
44479
|
+
writer.writeRepeatedMessage(
|
|
44480
|
+
4,
|
|
44481
|
+
f,
|
|
44482
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter
|
|
44483
|
+
);
|
|
44484
|
+
}
|
|
44485
|
+
f = message.getWorkTypeCountsList();
|
|
44486
|
+
if (f.length > 0) {
|
|
44487
|
+
writer.writeRepeatedMessage(
|
|
44488
|
+
5,
|
|
44489
|
+
f,
|
|
44490
|
+
proto.gateway.web.v1.SessionWorkTypeCount.serializeBinaryToWriter
|
|
44491
|
+
);
|
|
44492
|
+
}
|
|
44493
|
+
f = message.getWorkSizeCountsList();
|
|
44494
|
+
if (f.length > 0) {
|
|
44495
|
+
writer.writeRepeatedMessage(
|
|
44496
|
+
6,
|
|
44497
|
+
f,
|
|
44498
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter
|
|
44499
|
+
);
|
|
44500
|
+
}
|
|
44501
|
+
};
|
|
44502
|
+
|
|
44503
|
+
|
|
44504
|
+
/**
|
|
44505
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
44506
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
44507
|
+
*/
|
|
44508
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getStatus = function() {
|
|
44509
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
44510
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
44511
|
+
};
|
|
44512
|
+
|
|
44513
|
+
|
|
44514
|
+
/**
|
|
44515
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
44516
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44517
|
+
*/
|
|
44518
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setStatus = function(value) {
|
|
44519
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
44520
|
+
};
|
|
44521
|
+
|
|
44522
|
+
|
|
44523
|
+
/**
|
|
44524
|
+
* Clears the message field making it undefined.
|
|
44525
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44526
|
+
*/
|
|
44527
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearStatus = function() {
|
|
44528
|
+
return this.setStatus(undefined);
|
|
44529
|
+
};
|
|
44530
|
+
|
|
44531
|
+
|
|
44532
|
+
/**
|
|
44533
|
+
* Returns whether this field is set.
|
|
44534
|
+
* @return {boolean}
|
|
44535
|
+
*/
|
|
44536
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasStatus = function() {
|
|
44537
|
+
return jspb.Message.getField(this, 1) != null;
|
|
44538
|
+
};
|
|
44539
|
+
|
|
44540
|
+
|
|
44541
|
+
/**
|
|
44542
|
+
* optional SessionPeriodTotals totals = 2;
|
|
44543
|
+
* @return {?proto.gateway.web.v1.SessionPeriodTotals}
|
|
44544
|
+
*/
|
|
44545
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getTotals = function() {
|
|
44546
|
+
return /** @type{?proto.gateway.web.v1.SessionPeriodTotals} */ (
|
|
44547
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionPeriodTotals, 2));
|
|
44548
|
+
};
|
|
44549
|
+
|
|
44550
|
+
|
|
44551
|
+
/**
|
|
44552
|
+
* @param {?proto.gateway.web.v1.SessionPeriodTotals|undefined} value
|
|
44553
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44554
|
+
*/
|
|
44555
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setTotals = function(value) {
|
|
44556
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
44557
|
+
};
|
|
44558
|
+
|
|
44559
|
+
|
|
44560
|
+
/**
|
|
44561
|
+
* Clears the message field making it undefined.
|
|
44562
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44563
|
+
*/
|
|
44564
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearTotals = function() {
|
|
44565
|
+
return this.setTotals(undefined);
|
|
44566
|
+
};
|
|
44567
|
+
|
|
44568
|
+
|
|
44569
|
+
/**
|
|
44570
|
+
* Returns whether this field is set.
|
|
44571
|
+
* @return {boolean}
|
|
44572
|
+
*/
|
|
44573
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasTotals = function() {
|
|
44574
|
+
return jspb.Message.getField(this, 2) != null;
|
|
44575
|
+
};
|
|
44576
|
+
|
|
44577
|
+
|
|
44578
|
+
/**
|
|
44579
|
+
* optional SessionPeriodTotals prior_totals = 3;
|
|
44580
|
+
* @return {?proto.gateway.web.v1.SessionPeriodTotals}
|
|
44581
|
+
*/
|
|
44582
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getPriorTotals = function() {
|
|
44583
|
+
return /** @type{?proto.gateway.web.v1.SessionPeriodTotals} */ (
|
|
44584
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionPeriodTotals, 3));
|
|
44585
|
+
};
|
|
44586
|
+
|
|
44587
|
+
|
|
44588
|
+
/**
|
|
44589
|
+
* @param {?proto.gateway.web.v1.SessionPeriodTotals|undefined} value
|
|
44590
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44591
|
+
*/
|
|
44592
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setPriorTotals = function(value) {
|
|
44593
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
44594
|
+
};
|
|
44595
|
+
|
|
44596
|
+
|
|
44597
|
+
/**
|
|
44598
|
+
* Clears the message field making it undefined.
|
|
44599
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44600
|
+
*/
|
|
44601
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearPriorTotals = function() {
|
|
44602
|
+
return this.setPriorTotals(undefined);
|
|
44603
|
+
};
|
|
44604
|
+
|
|
44605
|
+
|
|
44606
|
+
/**
|
|
44607
|
+
* Returns whether this field is set.
|
|
44608
|
+
* @return {boolean}
|
|
44609
|
+
*/
|
|
44610
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasPriorTotals = function() {
|
|
44611
|
+
return jspb.Message.getField(this, 3) != null;
|
|
44612
|
+
};
|
|
44613
|
+
|
|
44614
|
+
|
|
44615
|
+
/**
|
|
44616
|
+
* repeated SessionActorUsage actors = 4;
|
|
44617
|
+
* @return {!Array<!proto.gateway.web.v1.SessionActorUsage>}
|
|
44618
|
+
*/
|
|
44619
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getActorsList = function() {
|
|
44620
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionActorUsage>} */ (
|
|
44621
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionActorUsage, 4));
|
|
44622
|
+
};
|
|
44623
|
+
|
|
44624
|
+
|
|
44625
|
+
/**
|
|
44626
|
+
* @param {!Array<!proto.gateway.web.v1.SessionActorUsage>} value
|
|
44627
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44628
|
+
*/
|
|
44629
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setActorsList = function(value) {
|
|
44630
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
44631
|
+
};
|
|
44632
|
+
|
|
44633
|
+
|
|
44634
|
+
/**
|
|
44635
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage=} opt_value
|
|
44636
|
+
* @param {number=} opt_index
|
|
44637
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
44638
|
+
*/
|
|
44639
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addActors = function(opt_value, opt_index) {
|
|
44640
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.SessionActorUsage, opt_index);
|
|
44641
|
+
};
|
|
44642
|
+
|
|
44643
|
+
|
|
44644
|
+
/**
|
|
44645
|
+
* Clears the list making it empty but non-null.
|
|
44646
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44647
|
+
*/
|
|
44648
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearActorsList = function() {
|
|
44649
|
+
return this.setActorsList([]);
|
|
44650
|
+
};
|
|
44651
|
+
|
|
44652
|
+
|
|
44653
|
+
/**
|
|
44654
|
+
* repeated SessionWorkTypeCount work_type_counts = 5;
|
|
44655
|
+
* @return {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>}
|
|
44656
|
+
*/
|
|
44657
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getWorkTypeCountsList = function() {
|
|
44658
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} */ (
|
|
44659
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionWorkTypeCount, 5));
|
|
44660
|
+
};
|
|
44661
|
+
|
|
44662
|
+
|
|
44663
|
+
/**
|
|
44664
|
+
* @param {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} value
|
|
44665
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44666
|
+
*/
|
|
44667
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setWorkTypeCountsList = function(value) {
|
|
44668
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
44669
|
+
};
|
|
44670
|
+
|
|
44671
|
+
|
|
44672
|
+
/**
|
|
44673
|
+
* @param {!proto.gateway.web.v1.SessionWorkTypeCount=} opt_value
|
|
44674
|
+
* @param {number=} opt_index
|
|
44675
|
+
* @return {!proto.gateway.web.v1.SessionWorkTypeCount}
|
|
44676
|
+
*/
|
|
44677
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addWorkTypeCounts = function(opt_value, opt_index) {
|
|
44678
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.SessionWorkTypeCount, opt_index);
|
|
44679
|
+
};
|
|
44680
|
+
|
|
44681
|
+
|
|
44682
|
+
/**
|
|
44683
|
+
* Clears the list making it empty but non-null.
|
|
44684
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44685
|
+
*/
|
|
44686
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearWorkTypeCountsList = function() {
|
|
44687
|
+
return this.setWorkTypeCountsList([]);
|
|
44688
|
+
};
|
|
44689
|
+
|
|
44690
|
+
|
|
44691
|
+
/**
|
|
44692
|
+
* repeated SessionWorkSizeCount work_size_counts = 6;
|
|
44693
|
+
* @return {!Array<!proto.gateway.web.v1.SessionWorkSizeCount>}
|
|
44694
|
+
*/
|
|
44695
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getWorkSizeCountsList = function() {
|
|
44696
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionWorkSizeCount>} */ (
|
|
44697
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionWorkSizeCount, 6));
|
|
44698
|
+
};
|
|
44699
|
+
|
|
44700
|
+
|
|
44701
|
+
/**
|
|
44702
|
+
* @param {!Array<!proto.gateway.web.v1.SessionWorkSizeCount>} value
|
|
44703
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44704
|
+
*/
|
|
44705
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setWorkSizeCountsList = function(value) {
|
|
44706
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
44707
|
+
};
|
|
44708
|
+
|
|
44709
|
+
|
|
44710
|
+
/**
|
|
44711
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount=} opt_value
|
|
44712
|
+
* @param {number=} opt_index
|
|
44713
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
44714
|
+
*/
|
|
44715
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addWorkSizeCounts = function(opt_value, opt_index) {
|
|
44716
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.SessionWorkSizeCount, opt_index);
|
|
44717
|
+
};
|
|
44718
|
+
|
|
44719
|
+
|
|
44720
|
+
/**
|
|
44721
|
+
* Clears the list making it empty but non-null.
|
|
44722
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44723
|
+
*/
|
|
44724
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearWorkSizeCountsList = function() {
|
|
44725
|
+
return this.setWorkSizeCountsList([]);
|
|
44726
|
+
};
|
|
44727
|
+
|
|
44728
|
+
|
|
44729
|
+
|
|
44730
|
+
|
|
44731
|
+
|
|
44732
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44733
|
+
/**
|
|
44734
|
+
* Creates an object representation of this proto.
|
|
44735
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44736
|
+
* Optional fields that are not set will be set to undefined.
|
|
44737
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44738
|
+
* For the list of reserved names please see:
|
|
44739
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44740
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44741
|
+
* JSPB instance for transitional soy proto support:
|
|
44742
|
+
* http://goto/soy-param-migration
|
|
44743
|
+
* @return {!Object}
|
|
44744
|
+
*/
|
|
44745
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.toObject = function(opt_includeInstance) {
|
|
44746
|
+
return proto.gateway.web.v1.SessionPeriodTotals.toObject(opt_includeInstance, this);
|
|
44747
|
+
};
|
|
44748
|
+
|
|
44749
|
+
|
|
44750
|
+
/**
|
|
44751
|
+
* Static version of the {@see toObject} method.
|
|
44752
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44753
|
+
* the JSPB instance for transitional soy proto support:
|
|
44754
|
+
* http://goto/soy-param-migration
|
|
44755
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} msg The msg instance to transform.
|
|
44756
|
+
* @return {!Object}
|
|
44757
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44758
|
+
*/
|
|
44759
|
+
proto.gateway.web.v1.SessionPeriodTotals.toObject = function(includeInstance, msg) {
|
|
44760
|
+
var f, obj = {
|
|
44761
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44762
|
+
sessionsWithCommits: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
44763
|
+
commits: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
44764
|
+
gitPushes: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
44765
|
+
pullRequestsCreated: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
44766
|
+
pullRequestsMerged: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
44767
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
44768
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
44769
|
+
unpricedTokens: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
44770
|
+
};
|
|
44771
|
+
|
|
44772
|
+
if (includeInstance) {
|
|
44773
|
+
obj.$jspbMessageInstance = msg;
|
|
44774
|
+
}
|
|
44775
|
+
return obj;
|
|
44776
|
+
};
|
|
44777
|
+
}
|
|
44778
|
+
|
|
44779
|
+
|
|
44780
|
+
/**
|
|
44781
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44782
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44783
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals}
|
|
44784
|
+
*/
|
|
44785
|
+
proto.gateway.web.v1.SessionPeriodTotals.deserializeBinary = function(bytes) {
|
|
44786
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44787
|
+
var msg = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44788
|
+
return proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader(msg, reader);
|
|
44789
|
+
};
|
|
44790
|
+
|
|
44791
|
+
|
|
44792
|
+
/**
|
|
44793
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44794
|
+
* given reader into the given message object.
|
|
44795
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} msg The message object to deserialize into.
|
|
44796
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44797
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals}
|
|
44798
|
+
*/
|
|
44799
|
+
proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader = function(msg, reader) {
|
|
44800
|
+
while (reader.nextField()) {
|
|
44801
|
+
if (reader.isEndGroup()) {
|
|
44802
|
+
break;
|
|
44803
|
+
}
|
|
44804
|
+
var field = reader.getFieldNumber();
|
|
44805
|
+
switch (field) {
|
|
44806
|
+
case 1:
|
|
44807
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44808
|
+
msg.setSessions(value);
|
|
44809
|
+
break;
|
|
44810
|
+
case 2:
|
|
44811
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44812
|
+
msg.setSessionsWithCommits(value);
|
|
44813
|
+
break;
|
|
44814
|
+
case 3:
|
|
44815
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44816
|
+
msg.setCommits(value);
|
|
44817
|
+
break;
|
|
44818
|
+
case 4:
|
|
44819
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44820
|
+
msg.setGitPushes(value);
|
|
44821
|
+
break;
|
|
44822
|
+
case 5:
|
|
44823
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44824
|
+
msg.setPullRequestsCreated(value);
|
|
44825
|
+
break;
|
|
44826
|
+
case 6:
|
|
44827
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44828
|
+
msg.setPullRequestsMerged(value);
|
|
44829
|
+
break;
|
|
44830
|
+
case 7:
|
|
44831
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44832
|
+
msg.setInputTokens(value);
|
|
44833
|
+
break;
|
|
44834
|
+
case 8:
|
|
44835
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44836
|
+
msg.setOutputTokens(value);
|
|
44837
|
+
break;
|
|
44838
|
+
case 9:
|
|
44839
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44840
|
+
msg.setUnpricedTokens(value);
|
|
44841
|
+
break;
|
|
44842
|
+
default:
|
|
44843
|
+
reader.skipField();
|
|
44844
|
+
break;
|
|
44845
|
+
}
|
|
44846
|
+
}
|
|
44847
|
+
return msg;
|
|
44848
|
+
};
|
|
44849
|
+
|
|
44850
|
+
|
|
44851
|
+
/**
|
|
44852
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44853
|
+
* @return {!Uint8Array}
|
|
44854
|
+
*/
|
|
44855
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.serializeBinary = function() {
|
|
44856
|
+
var writer = new jspb.BinaryWriter();
|
|
44857
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter(this, writer);
|
|
44858
|
+
return writer.getResultBuffer();
|
|
44859
|
+
};
|
|
44860
|
+
|
|
44861
|
+
|
|
44862
|
+
/**
|
|
44863
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44864
|
+
* format), writing to the given BinaryWriter.
|
|
44865
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} message
|
|
44866
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44867
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44868
|
+
*/
|
|
44869
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter = function(message, writer) {
|
|
44870
|
+
var f = undefined;
|
|
44871
|
+
f = message.getSessions();
|
|
44872
|
+
if (f !== 0) {
|
|
44873
|
+
writer.writeUint64(
|
|
44874
|
+
1,
|
|
44875
|
+
f
|
|
44876
|
+
);
|
|
44877
|
+
}
|
|
44878
|
+
f = message.getSessionsWithCommits();
|
|
44879
|
+
if (f !== 0) {
|
|
44880
|
+
writer.writeUint64(
|
|
44881
|
+
2,
|
|
44882
|
+
f
|
|
44883
|
+
);
|
|
44884
|
+
}
|
|
44885
|
+
f = message.getCommits();
|
|
44886
|
+
if (f !== 0) {
|
|
44887
|
+
writer.writeUint64(
|
|
44888
|
+
3,
|
|
44889
|
+
f
|
|
44890
|
+
);
|
|
44891
|
+
}
|
|
44892
|
+
f = message.getGitPushes();
|
|
44893
|
+
if (f !== 0) {
|
|
44894
|
+
writer.writeUint64(
|
|
44895
|
+
4,
|
|
44896
|
+
f
|
|
44897
|
+
);
|
|
44898
|
+
}
|
|
44899
|
+
f = message.getPullRequestsCreated();
|
|
44900
|
+
if (f !== 0) {
|
|
44901
|
+
writer.writeUint64(
|
|
44902
|
+
5,
|
|
44903
|
+
f
|
|
44904
|
+
);
|
|
44905
|
+
}
|
|
44906
|
+
f = message.getPullRequestsMerged();
|
|
44907
|
+
if (f !== 0) {
|
|
44908
|
+
writer.writeUint64(
|
|
44909
|
+
6,
|
|
44910
|
+
f
|
|
44911
|
+
);
|
|
44912
|
+
}
|
|
44913
|
+
f = message.getInputTokens();
|
|
44914
|
+
if (f !== 0) {
|
|
44915
|
+
writer.writeUint64(
|
|
44916
|
+
7,
|
|
44917
|
+
f
|
|
44918
|
+
);
|
|
44919
|
+
}
|
|
44920
|
+
f = message.getOutputTokens();
|
|
44921
|
+
if (f !== 0) {
|
|
44922
|
+
writer.writeUint64(
|
|
44923
|
+
8,
|
|
44924
|
+
f
|
|
44925
|
+
);
|
|
44926
|
+
}
|
|
44927
|
+
f = message.getUnpricedTokens();
|
|
44928
|
+
if (f !== 0) {
|
|
44929
|
+
writer.writeUint64(
|
|
44930
|
+
9,
|
|
44931
|
+
f
|
|
44932
|
+
);
|
|
44933
|
+
}
|
|
44934
|
+
};
|
|
44935
|
+
|
|
44936
|
+
|
|
44937
|
+
/**
|
|
44938
|
+
* optional uint64 sessions = 1;
|
|
44939
|
+
* @return {number}
|
|
44940
|
+
*/
|
|
44941
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getSessions = function() {
|
|
44942
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44943
|
+
};
|
|
44944
|
+
|
|
44945
|
+
|
|
44946
|
+
/**
|
|
44947
|
+
* @param {number} value
|
|
44948
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44949
|
+
*/
|
|
44950
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setSessions = function(value) {
|
|
44951
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44952
|
+
};
|
|
44953
|
+
|
|
44954
|
+
|
|
44955
|
+
/**
|
|
44956
|
+
* optional uint64 sessions_with_commits = 2;
|
|
44957
|
+
* @return {number}
|
|
44958
|
+
*/
|
|
44959
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getSessionsWithCommits = function() {
|
|
44960
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44961
|
+
};
|
|
44962
|
+
|
|
44963
|
+
|
|
44964
|
+
/**
|
|
44965
|
+
* @param {number} value
|
|
44966
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44967
|
+
*/
|
|
44968
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setSessionsWithCommits = function(value) {
|
|
44969
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44970
|
+
};
|
|
44971
|
+
|
|
44972
|
+
|
|
44973
|
+
/**
|
|
44974
|
+
* optional uint64 commits = 3;
|
|
44975
|
+
* @return {number}
|
|
44976
|
+
*/
|
|
44977
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getCommits = function() {
|
|
44978
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
44979
|
+
};
|
|
44980
|
+
|
|
44981
|
+
|
|
44982
|
+
/**
|
|
44983
|
+
* @param {number} value
|
|
44984
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44985
|
+
*/
|
|
44986
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setCommits = function(value) {
|
|
44987
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
44988
|
+
};
|
|
44989
|
+
|
|
44990
|
+
|
|
44991
|
+
/**
|
|
44992
|
+
* optional uint64 git_pushes = 4;
|
|
44993
|
+
* @return {number}
|
|
44994
|
+
*/
|
|
44995
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getGitPushes = function() {
|
|
44996
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
44997
|
+
};
|
|
44998
|
+
|
|
44999
|
+
|
|
45000
|
+
/**
|
|
45001
|
+
* @param {number} value
|
|
45002
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45003
|
+
*/
|
|
45004
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setGitPushes = function(value) {
|
|
45005
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
45006
|
+
};
|
|
45007
|
+
|
|
45008
|
+
|
|
45009
|
+
/**
|
|
45010
|
+
* optional uint64 pull_requests_created = 5;
|
|
45011
|
+
* @return {number}
|
|
45012
|
+
*/
|
|
45013
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getPullRequestsCreated = function() {
|
|
45014
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
45015
|
+
};
|
|
45016
|
+
|
|
45017
|
+
|
|
45018
|
+
/**
|
|
45019
|
+
* @param {number} value
|
|
45020
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45021
|
+
*/
|
|
45022
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setPullRequestsCreated = function(value) {
|
|
45023
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
45024
|
+
};
|
|
45025
|
+
|
|
45026
|
+
|
|
45027
|
+
/**
|
|
45028
|
+
* optional uint64 pull_requests_merged = 6;
|
|
45029
|
+
* @return {number}
|
|
45030
|
+
*/
|
|
45031
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getPullRequestsMerged = function() {
|
|
45032
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
45033
|
+
};
|
|
45034
|
+
|
|
45035
|
+
|
|
45036
|
+
/**
|
|
45037
|
+
* @param {number} value
|
|
45038
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45039
|
+
*/
|
|
45040
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setPullRequestsMerged = function(value) {
|
|
45041
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
45042
|
+
};
|
|
45043
|
+
|
|
45044
|
+
|
|
45045
|
+
/**
|
|
45046
|
+
* optional uint64 input_tokens = 7;
|
|
45047
|
+
* @return {number}
|
|
45048
|
+
*/
|
|
45049
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getInputTokens = function() {
|
|
45050
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
45051
|
+
};
|
|
45052
|
+
|
|
45053
|
+
|
|
45054
|
+
/**
|
|
45055
|
+
* @param {number} value
|
|
45056
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45057
|
+
*/
|
|
45058
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setInputTokens = function(value) {
|
|
45059
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
45060
|
+
};
|
|
45061
|
+
|
|
45062
|
+
|
|
45063
|
+
/**
|
|
45064
|
+
* optional uint64 output_tokens = 8;
|
|
45065
|
+
* @return {number}
|
|
45066
|
+
*/
|
|
45067
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getOutputTokens = function() {
|
|
45068
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
45069
|
+
};
|
|
45070
|
+
|
|
45071
|
+
|
|
45072
|
+
/**
|
|
45073
|
+
* @param {number} value
|
|
45074
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45075
|
+
*/
|
|
45076
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setOutputTokens = function(value) {
|
|
45077
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
45078
|
+
};
|
|
45079
|
+
|
|
45080
|
+
|
|
45081
|
+
/**
|
|
45082
|
+
* optional uint64 unpriced_tokens = 9;
|
|
45083
|
+
* @return {number}
|
|
45084
|
+
*/
|
|
45085
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getUnpricedTokens = function() {
|
|
45086
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
45087
|
+
};
|
|
45088
|
+
|
|
45089
|
+
|
|
45090
|
+
/**
|
|
45091
|
+
* @param {number} value
|
|
45092
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
45093
|
+
*/
|
|
45094
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setUnpricedTokens = function(value) {
|
|
45095
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
45096
|
+
};
|
|
45097
|
+
|
|
45098
|
+
|
|
45099
|
+
|
|
45100
|
+
|
|
45101
|
+
|
|
45102
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45103
|
+
/**
|
|
45104
|
+
* Creates an object representation of this proto.
|
|
45105
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45106
|
+
* Optional fields that are not set will be set to undefined.
|
|
45107
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45108
|
+
* For the list of reserved names please see:
|
|
45109
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45110
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45111
|
+
* JSPB instance for transitional soy proto support:
|
|
45112
|
+
* http://goto/soy-param-migration
|
|
45113
|
+
* @return {!Object}
|
|
45114
|
+
*/
|
|
45115
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.toObject = function(opt_includeInstance) {
|
|
45116
|
+
return proto.gateway.web.v1.SessionActorUsage.toObject(opt_includeInstance, this);
|
|
45117
|
+
};
|
|
45118
|
+
|
|
45119
|
+
|
|
45120
|
+
/**
|
|
45121
|
+
* Static version of the {@see toObject} method.
|
|
45122
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45123
|
+
* the JSPB instance for transitional soy proto support:
|
|
45124
|
+
* http://goto/soy-param-migration
|
|
45125
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} msg The msg instance to transform.
|
|
45126
|
+
* @return {!Object}
|
|
45127
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45128
|
+
*/
|
|
45129
|
+
proto.gateway.web.v1.SessionActorUsage.toObject = function(includeInstance, msg) {
|
|
45130
|
+
var f, obj = {
|
|
45131
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
45132
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
45133
|
+
apiKeyId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
45134
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
45135
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
45136
|
+
providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
45137
|
+
subscriptionFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
45138
|
+
};
|
|
45139
|
+
|
|
45140
|
+
if (includeInstance) {
|
|
45141
|
+
obj.$jspbMessageInstance = msg;
|
|
45142
|
+
}
|
|
45143
|
+
return obj;
|
|
45144
|
+
};
|
|
45145
|
+
}
|
|
45146
|
+
|
|
45147
|
+
|
|
45148
|
+
/**
|
|
45149
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45150
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
45151
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
45152
|
+
*/
|
|
45153
|
+
proto.gateway.web.v1.SessionActorUsage.deserializeBinary = function(bytes) {
|
|
45154
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45155
|
+
var msg = new proto.gateway.web.v1.SessionActorUsage;
|
|
45156
|
+
return proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader(msg, reader);
|
|
45157
|
+
};
|
|
45158
|
+
|
|
45159
|
+
|
|
45160
|
+
/**
|
|
45161
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45162
|
+
* given reader into the given message object.
|
|
45163
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} msg The message object to deserialize into.
|
|
45164
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45165
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
45166
|
+
*/
|
|
45167
|
+
proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader = function(msg, reader) {
|
|
45168
|
+
while (reader.nextField()) {
|
|
45169
|
+
if (reader.isEndGroup()) {
|
|
45170
|
+
break;
|
|
45171
|
+
}
|
|
45172
|
+
var field = reader.getFieldNumber();
|
|
45173
|
+
switch (field) {
|
|
45174
|
+
case 1:
|
|
45175
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
45176
|
+
msg.setSourceSystem(value);
|
|
45177
|
+
break;
|
|
45178
|
+
case 2:
|
|
45179
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
45180
|
+
msg.setUserId(value);
|
|
45181
|
+
break;
|
|
45182
|
+
case 3:
|
|
45183
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
45184
|
+
msg.setApiKeyId(value);
|
|
45185
|
+
break;
|
|
45186
|
+
case 4:
|
|
45187
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
45188
|
+
msg.setInputTokens(value);
|
|
45189
|
+
break;
|
|
45190
|
+
case 5:
|
|
45191
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
45192
|
+
msg.setOutputTokens(value);
|
|
45193
|
+
break;
|
|
45194
|
+
case 6:
|
|
45195
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
45196
|
+
msg.setProviderCostUsd(value);
|
|
45197
|
+
break;
|
|
45198
|
+
case 7:
|
|
45199
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
45200
|
+
msg.setSubscriptionFacilityUsd(value);
|
|
45201
|
+
break;
|
|
45202
|
+
default:
|
|
45203
|
+
reader.skipField();
|
|
45204
|
+
break;
|
|
45205
|
+
}
|
|
45206
|
+
}
|
|
45207
|
+
return msg;
|
|
45208
|
+
};
|
|
45209
|
+
|
|
45210
|
+
|
|
45211
|
+
/**
|
|
45212
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45213
|
+
* @return {!Uint8Array}
|
|
45214
|
+
*/
|
|
45215
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.serializeBinary = function() {
|
|
45216
|
+
var writer = new jspb.BinaryWriter();
|
|
45217
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter(this, writer);
|
|
45218
|
+
return writer.getResultBuffer();
|
|
45219
|
+
};
|
|
45220
|
+
|
|
45221
|
+
|
|
45222
|
+
/**
|
|
45223
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45224
|
+
* format), writing to the given BinaryWriter.
|
|
45225
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} message
|
|
45226
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45227
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45228
|
+
*/
|
|
45229
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter = function(message, writer) {
|
|
45230
|
+
var f = undefined;
|
|
45231
|
+
f = message.getSourceSystem();
|
|
45232
|
+
if (f.length > 0) {
|
|
45233
|
+
writer.writeString(
|
|
45234
|
+
1,
|
|
45235
|
+
f
|
|
45236
|
+
);
|
|
45237
|
+
}
|
|
45238
|
+
f = message.getUserId();
|
|
45239
|
+
if (f.length > 0) {
|
|
45240
|
+
writer.writeString(
|
|
45241
|
+
2,
|
|
45242
|
+
f
|
|
45243
|
+
);
|
|
45244
|
+
}
|
|
45245
|
+
f = message.getApiKeyId();
|
|
45246
|
+
if (f.length > 0) {
|
|
45247
|
+
writer.writeString(
|
|
45248
|
+
3,
|
|
45249
|
+
f
|
|
45250
|
+
);
|
|
45251
|
+
}
|
|
45252
|
+
f = message.getInputTokens();
|
|
45253
|
+
if (f !== 0) {
|
|
45254
|
+
writer.writeUint64(
|
|
45255
|
+
4,
|
|
45256
|
+
f
|
|
45257
|
+
);
|
|
45258
|
+
}
|
|
45259
|
+
f = message.getOutputTokens();
|
|
45260
|
+
if (f !== 0) {
|
|
45261
|
+
writer.writeUint64(
|
|
45262
|
+
5,
|
|
45263
|
+
f
|
|
45264
|
+
);
|
|
45265
|
+
}
|
|
45266
|
+
f = message.getProviderCostUsd();
|
|
45267
|
+
if (f !== 0.0) {
|
|
45268
|
+
writer.writeDouble(
|
|
45269
|
+
6,
|
|
45270
|
+
f
|
|
45271
|
+
);
|
|
45272
|
+
}
|
|
45273
|
+
f = message.getSubscriptionFacilityUsd();
|
|
45274
|
+
if (f !== 0.0) {
|
|
45275
|
+
writer.writeDouble(
|
|
45276
|
+
7,
|
|
45277
|
+
f
|
|
45278
|
+
);
|
|
45279
|
+
}
|
|
45280
|
+
};
|
|
45281
|
+
|
|
45282
|
+
|
|
45283
|
+
/**
|
|
45284
|
+
* optional string source_system = 1;
|
|
45285
|
+
* @return {string}
|
|
45286
|
+
*/
|
|
45287
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getSourceSystem = function() {
|
|
45288
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
45289
|
+
};
|
|
45290
|
+
|
|
45291
|
+
|
|
45292
|
+
/**
|
|
45293
|
+
* @param {string} value
|
|
45294
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45295
|
+
*/
|
|
45296
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setSourceSystem = function(value) {
|
|
45297
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
45298
|
+
};
|
|
45299
|
+
|
|
45300
|
+
|
|
45301
|
+
/**
|
|
45302
|
+
* optional string user_id = 2;
|
|
45303
|
+
* @return {string}
|
|
45304
|
+
*/
|
|
45305
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getUserId = function() {
|
|
45306
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
45307
|
+
};
|
|
45308
|
+
|
|
45309
|
+
|
|
45310
|
+
/**
|
|
45311
|
+
* @param {string} value
|
|
45312
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45313
|
+
*/
|
|
45314
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setUserId = function(value) {
|
|
45315
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
45316
|
+
};
|
|
45317
|
+
|
|
45318
|
+
|
|
45319
|
+
/**
|
|
45320
|
+
* optional string api_key_id = 3;
|
|
45321
|
+
* @return {string}
|
|
45322
|
+
*/
|
|
45323
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getApiKeyId = function() {
|
|
45324
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45325
|
+
};
|
|
45326
|
+
|
|
45327
|
+
|
|
45328
|
+
/**
|
|
45329
|
+
* @param {string} value
|
|
45330
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45331
|
+
*/
|
|
45332
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setApiKeyId = function(value) {
|
|
45333
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
45334
|
+
};
|
|
45335
|
+
|
|
45336
|
+
|
|
45337
|
+
/**
|
|
45338
|
+
* optional uint64 input_tokens = 4;
|
|
45339
|
+
* @return {number}
|
|
45340
|
+
*/
|
|
45341
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getInputTokens = function() {
|
|
45342
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
45343
|
+
};
|
|
45344
|
+
|
|
45345
|
+
|
|
45346
|
+
/**
|
|
45347
|
+
* @param {number} value
|
|
45348
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45349
|
+
*/
|
|
45350
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setInputTokens = function(value) {
|
|
45351
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
45352
|
+
};
|
|
45353
|
+
|
|
45354
|
+
|
|
45355
|
+
/**
|
|
45356
|
+
* optional uint64 output_tokens = 5;
|
|
45357
|
+
* @return {number}
|
|
45358
|
+
*/
|
|
45359
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getOutputTokens = function() {
|
|
45360
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
45361
|
+
};
|
|
45362
|
+
|
|
45363
|
+
|
|
45364
|
+
/**
|
|
45365
|
+
* @param {number} value
|
|
45366
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45367
|
+
*/
|
|
45368
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setOutputTokens = function(value) {
|
|
45369
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
45370
|
+
};
|
|
45371
|
+
|
|
45372
|
+
|
|
45373
|
+
/**
|
|
45374
|
+
* optional double provider_cost_usd = 6;
|
|
45375
|
+
* @return {number}
|
|
45376
|
+
*/
|
|
45377
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getProviderCostUsd = function() {
|
|
45378
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
45379
|
+
};
|
|
45380
|
+
|
|
45381
|
+
|
|
45382
|
+
/**
|
|
45383
|
+
* @param {number} value
|
|
45384
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45385
|
+
*/
|
|
45386
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setProviderCostUsd = function(value) {
|
|
45387
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
45388
|
+
};
|
|
45389
|
+
|
|
45390
|
+
|
|
45391
|
+
/**
|
|
45392
|
+
* optional double subscription_facility_usd = 7;
|
|
45393
|
+
* @return {number}
|
|
45394
|
+
*/
|
|
45395
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getSubscriptionFacilityUsd = function() {
|
|
45396
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
45397
|
+
};
|
|
45398
|
+
|
|
45399
|
+
|
|
45400
|
+
/**
|
|
45401
|
+
* @param {number} value
|
|
45402
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45403
|
+
*/
|
|
45404
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setSubscriptionFacilityUsd = function(value) {
|
|
45405
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
45406
|
+
};
|
|
45407
|
+
|
|
45408
|
+
|
|
45409
|
+
|
|
45410
|
+
|
|
45411
|
+
|
|
45412
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45413
|
+
/**
|
|
45414
|
+
* Creates an object representation of this proto.
|
|
45415
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45416
|
+
* Optional fields that are not set will be set to undefined.
|
|
45417
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45418
|
+
* For the list of reserved names please see:
|
|
45419
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45420
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45421
|
+
* JSPB instance for transitional soy proto support:
|
|
45422
|
+
* http://goto/soy-param-migration
|
|
45423
|
+
* @return {!Object}
|
|
45424
|
+
*/
|
|
45425
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.toObject = function(opt_includeInstance) {
|
|
45426
|
+
return proto.gateway.web.v1.SessionWorkSizeCount.toObject(opt_includeInstance, this);
|
|
45427
|
+
};
|
|
45428
|
+
|
|
45429
|
+
|
|
45430
|
+
/**
|
|
45431
|
+
* Static version of the {@see toObject} method.
|
|
45432
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45433
|
+
* the JSPB instance for transitional soy proto support:
|
|
45434
|
+
* http://goto/soy-param-migration
|
|
45435
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} msg The msg instance to transform.
|
|
45436
|
+
* @return {!Object}
|
|
45437
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45438
|
+
*/
|
|
45439
|
+
proto.gateway.web.v1.SessionWorkSizeCount.toObject = function(includeInstance, msg) {
|
|
45440
|
+
var f, obj = {
|
|
45441
|
+
workSize: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
45442
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
45443
|
+
};
|
|
45444
|
+
|
|
45445
|
+
if (includeInstance) {
|
|
45446
|
+
obj.$jspbMessageInstance = msg;
|
|
45447
|
+
}
|
|
45448
|
+
return obj;
|
|
45449
|
+
};
|
|
45450
|
+
}
|
|
45451
|
+
|
|
45452
|
+
|
|
45453
|
+
/**
|
|
45454
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45455
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
45456
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
45457
|
+
*/
|
|
45458
|
+
proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinary = function(bytes) {
|
|
45459
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45460
|
+
var msg = new proto.gateway.web.v1.SessionWorkSizeCount;
|
|
45461
|
+
return proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader(msg, reader);
|
|
45462
|
+
};
|
|
45463
|
+
|
|
45464
|
+
|
|
45465
|
+
/**
|
|
45466
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45467
|
+
* given reader into the given message object.
|
|
45468
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} msg The message object to deserialize into.
|
|
45469
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45470
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
45471
|
+
*/
|
|
45472
|
+
proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
45473
|
+
while (reader.nextField()) {
|
|
45474
|
+
if (reader.isEndGroup()) {
|
|
45475
|
+
break;
|
|
45476
|
+
}
|
|
45477
|
+
var field = reader.getFieldNumber();
|
|
45478
|
+
switch (field) {
|
|
45479
|
+
case 1:
|
|
45480
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
45481
|
+
msg.setWorkSize(value);
|
|
45482
|
+
break;
|
|
45483
|
+
case 2:
|
|
45484
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
45485
|
+
msg.setSessions(value);
|
|
45486
|
+
break;
|
|
45487
|
+
default:
|
|
45488
|
+
reader.skipField();
|
|
45489
|
+
break;
|
|
45490
|
+
}
|
|
45491
|
+
}
|
|
45492
|
+
return msg;
|
|
45493
|
+
};
|
|
45494
|
+
|
|
45495
|
+
|
|
45496
|
+
/**
|
|
45497
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45498
|
+
* @return {!Uint8Array}
|
|
45499
|
+
*/
|
|
45500
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.serializeBinary = function() {
|
|
45501
|
+
var writer = new jspb.BinaryWriter();
|
|
45502
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter(this, writer);
|
|
45503
|
+
return writer.getResultBuffer();
|
|
45504
|
+
};
|
|
45505
|
+
|
|
45506
|
+
|
|
45507
|
+
/**
|
|
45508
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45509
|
+
* format), writing to the given BinaryWriter.
|
|
45510
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} message
|
|
45511
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45512
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45513
|
+
*/
|
|
45514
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter = function(message, writer) {
|
|
45515
|
+
var f = undefined;
|
|
45516
|
+
f = message.getWorkSize();
|
|
45517
|
+
if (f.length > 0) {
|
|
45518
|
+
writer.writeString(
|
|
45519
|
+
1,
|
|
45520
|
+
f
|
|
45521
|
+
);
|
|
45522
|
+
}
|
|
45523
|
+
f = message.getSessions();
|
|
45524
|
+
if (f !== 0) {
|
|
45525
|
+
writer.writeUint64(
|
|
45526
|
+
2,
|
|
45527
|
+
f
|
|
45528
|
+
);
|
|
45529
|
+
}
|
|
45530
|
+
};
|
|
45531
|
+
|
|
45532
|
+
|
|
45533
|
+
/**
|
|
45534
|
+
* optional string work_size = 1;
|
|
45535
|
+
* @return {string}
|
|
45536
|
+
*/
|
|
45537
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.getWorkSize = function() {
|
|
45538
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
45539
|
+
};
|
|
45540
|
+
|
|
45541
|
+
|
|
45542
|
+
/**
|
|
45543
|
+
* @param {string} value
|
|
45544
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount} returns this
|
|
45545
|
+
*/
|
|
45546
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.setWorkSize = function(value) {
|
|
45547
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
45548
|
+
};
|
|
45549
|
+
|
|
45550
|
+
|
|
45551
|
+
/**
|
|
45552
|
+
* optional uint64 sessions = 2;
|
|
45553
|
+
* @return {number}
|
|
45554
|
+
*/
|
|
45555
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.getSessions = function() {
|
|
45556
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45557
|
+
};
|
|
45558
|
+
|
|
45559
|
+
|
|
45560
|
+
/**
|
|
45561
|
+
* @param {number} value
|
|
45562
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount} returns this
|
|
45563
|
+
*/
|
|
45564
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.setSessions = function(value) {
|
|
45565
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45566
|
+
};
|
|
45567
|
+
|
|
45568
|
+
|
|
45569
|
+
|
|
45570
|
+
|
|
45571
|
+
|
|
43706
45572
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43707
45573
|
/**
|
|
43708
45574
|
* Creates an object representation of this proto.
|