@miradorlabs/web-grpc 4.34.0 → 4.35.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.
|
@@ -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,6 +219,7 @@ 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);
|
|
221
225
|
goog.exportSymbol('proto.gateway.web.v1.SessionSort', null, global);
|
|
@@ -226,6 +230,7 @@ goog.exportSymbol('proto.gateway.web.v1.SessionTotalsBucket', null, global);
|
|
|
226
230
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageBucket', null, global);
|
|
227
231
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global);
|
|
228
232
|
goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
|
|
233
|
+
goog.exportSymbol('proto.gateway.web.v1.SessionWorkSizeCount', null, global);
|
|
229
234
|
goog.exportSymbol('proto.gateway.web.v1.SessionWorkTypeCount', null, global);
|
|
230
235
|
goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
|
|
231
236
|
goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionRequest', null, global);
|
|
@@ -3026,6 +3031,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
3026
3031
|
*/
|
|
3027
3032
|
proto.gateway.web.v1.ScoredSession.displayName = 'proto.gateway.web.v1.ScoredSession';
|
|
3028
3033
|
}
|
|
3034
|
+
/**
|
|
3035
|
+
* Generated by JsPbCodeGenerator.
|
|
3036
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3037
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3038
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3039
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3040
|
+
* valid.
|
|
3041
|
+
* @extends {jspb.Message}
|
|
3042
|
+
* @constructor
|
|
3043
|
+
*/
|
|
3044
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest = function(opt_data) {
|
|
3045
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3046
|
+
};
|
|
3047
|
+
goog.inherits(proto.gateway.web.v1.GetSessionPeriodTotalsRequest, jspb.Message);
|
|
3048
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3049
|
+
/**
|
|
3050
|
+
* @public
|
|
3051
|
+
* @override
|
|
3052
|
+
*/
|
|
3053
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.displayName = 'proto.gateway.web.v1.GetSessionPeriodTotalsRequest';
|
|
3054
|
+
}
|
|
3055
|
+
/**
|
|
3056
|
+
* Generated by JsPbCodeGenerator.
|
|
3057
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3058
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3059
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3060
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3061
|
+
* valid.
|
|
3062
|
+
* @extends {jspb.Message}
|
|
3063
|
+
* @constructor
|
|
3064
|
+
*/
|
|
3065
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse = function(opt_data) {
|
|
3066
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetSessionPeriodTotalsResponse.repeatedFields_, null);
|
|
3067
|
+
};
|
|
3068
|
+
goog.inherits(proto.gateway.web.v1.GetSessionPeriodTotalsResponse, jspb.Message);
|
|
3069
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3070
|
+
/**
|
|
3071
|
+
* @public
|
|
3072
|
+
* @override
|
|
3073
|
+
*/
|
|
3074
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.displayName = 'proto.gateway.web.v1.GetSessionPeriodTotalsResponse';
|
|
3075
|
+
}
|
|
3076
|
+
/**
|
|
3077
|
+
* Generated by JsPbCodeGenerator.
|
|
3078
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3079
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3080
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3081
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3082
|
+
* valid.
|
|
3083
|
+
* @extends {jspb.Message}
|
|
3084
|
+
* @constructor
|
|
3085
|
+
*/
|
|
3086
|
+
proto.gateway.web.v1.SessionPeriodTotals = function(opt_data) {
|
|
3087
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3088
|
+
};
|
|
3089
|
+
goog.inherits(proto.gateway.web.v1.SessionPeriodTotals, jspb.Message);
|
|
3090
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3091
|
+
/**
|
|
3092
|
+
* @public
|
|
3093
|
+
* @override
|
|
3094
|
+
*/
|
|
3095
|
+
proto.gateway.web.v1.SessionPeriodTotals.displayName = 'proto.gateway.web.v1.SessionPeriodTotals';
|
|
3096
|
+
}
|
|
3097
|
+
/**
|
|
3098
|
+
* Generated by JsPbCodeGenerator.
|
|
3099
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3100
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3101
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3102
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3103
|
+
* valid.
|
|
3104
|
+
* @extends {jspb.Message}
|
|
3105
|
+
* @constructor
|
|
3106
|
+
*/
|
|
3107
|
+
proto.gateway.web.v1.SessionActorUsage = function(opt_data) {
|
|
3108
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3109
|
+
};
|
|
3110
|
+
goog.inherits(proto.gateway.web.v1.SessionActorUsage, jspb.Message);
|
|
3111
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3112
|
+
/**
|
|
3113
|
+
* @public
|
|
3114
|
+
* @override
|
|
3115
|
+
*/
|
|
3116
|
+
proto.gateway.web.v1.SessionActorUsage.displayName = 'proto.gateway.web.v1.SessionActorUsage';
|
|
3117
|
+
}
|
|
3118
|
+
/**
|
|
3119
|
+
* Generated by JsPbCodeGenerator.
|
|
3120
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
3121
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
3122
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
3123
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
3124
|
+
* valid.
|
|
3125
|
+
* @extends {jspb.Message}
|
|
3126
|
+
* @constructor
|
|
3127
|
+
*/
|
|
3128
|
+
proto.gateway.web.v1.SessionWorkSizeCount = function(opt_data) {
|
|
3129
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
3130
|
+
};
|
|
3131
|
+
goog.inherits(proto.gateway.web.v1.SessionWorkSizeCount, jspb.Message);
|
|
3132
|
+
if (goog.DEBUG && !COMPILED) {
|
|
3133
|
+
/**
|
|
3134
|
+
* @public
|
|
3135
|
+
* @override
|
|
3136
|
+
*/
|
|
3137
|
+
proto.gateway.web.v1.SessionWorkSizeCount.displayName = 'proto.gateway.web.v1.SessionWorkSizeCount';
|
|
3138
|
+
}
|
|
3029
3139
|
/**
|
|
3030
3140
|
* Generated by JsPbCodeGenerator.
|
|
3031
3141
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -43703,6 +43813,1527 @@ proto.gateway.web.v1.ScoredSession.prototype.setSessionScoreRubric = function(va
|
|
|
43703
43813
|
|
|
43704
43814
|
|
|
43705
43815
|
|
|
43816
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43817
|
+
/**
|
|
43818
|
+
* Creates an object representation of this proto.
|
|
43819
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
43820
|
+
* Optional fields that are not set will be set to undefined.
|
|
43821
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
43822
|
+
* For the list of reserved names please see:
|
|
43823
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
43824
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
43825
|
+
* JSPB instance for transitional soy proto support:
|
|
43826
|
+
* http://goto/soy-param-migration
|
|
43827
|
+
* @return {!Object}
|
|
43828
|
+
*/
|
|
43829
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
43830
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsRequest.toObject(opt_includeInstance, this);
|
|
43831
|
+
};
|
|
43832
|
+
|
|
43833
|
+
|
|
43834
|
+
/**
|
|
43835
|
+
* Static version of the {@see toObject} method.
|
|
43836
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
43837
|
+
* the JSPB instance for transitional soy proto support:
|
|
43838
|
+
* http://goto/soy-param-migration
|
|
43839
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} msg The msg instance to transform.
|
|
43840
|
+
* @return {!Object}
|
|
43841
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43842
|
+
*/
|
|
43843
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.toObject = function(includeInstance, msg) {
|
|
43844
|
+
var f, obj = {
|
|
43845
|
+
organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
43846
|
+
projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
43847
|
+
activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
|
43848
|
+
priorActiveAfter: (f = msg.getPriorActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
|
|
43849
|
+
};
|
|
43850
|
+
|
|
43851
|
+
if (includeInstance) {
|
|
43852
|
+
obj.$jspbMessageInstance = msg;
|
|
43853
|
+
}
|
|
43854
|
+
return obj;
|
|
43855
|
+
};
|
|
43856
|
+
}
|
|
43857
|
+
|
|
43858
|
+
|
|
43859
|
+
/**
|
|
43860
|
+
* Deserializes binary data (in protobuf wire format).
|
|
43861
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
43862
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest}
|
|
43863
|
+
*/
|
|
43864
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinary = function(bytes) {
|
|
43865
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
43866
|
+
var msg = new proto.gateway.web.v1.GetSessionPeriodTotalsRequest;
|
|
43867
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinaryFromReader(msg, reader);
|
|
43868
|
+
};
|
|
43869
|
+
|
|
43870
|
+
|
|
43871
|
+
/**
|
|
43872
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
43873
|
+
* given reader into the given message object.
|
|
43874
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} msg The message object to deserialize into.
|
|
43875
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
43876
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest}
|
|
43877
|
+
*/
|
|
43878
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
43879
|
+
while (reader.nextField()) {
|
|
43880
|
+
if (reader.isEndGroup()) {
|
|
43881
|
+
break;
|
|
43882
|
+
}
|
|
43883
|
+
var field = reader.getFieldNumber();
|
|
43884
|
+
switch (field) {
|
|
43885
|
+
case 1:
|
|
43886
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
43887
|
+
msg.setOrganizationId(value);
|
|
43888
|
+
break;
|
|
43889
|
+
case 2:
|
|
43890
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
43891
|
+
msg.setProjectId(value);
|
|
43892
|
+
break;
|
|
43893
|
+
case 3:
|
|
43894
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43895
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43896
|
+
msg.setActiveAfter(value);
|
|
43897
|
+
break;
|
|
43898
|
+
case 4:
|
|
43899
|
+
var value = new google_protobuf_timestamp_pb.Timestamp;
|
|
43900
|
+
reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
|
|
43901
|
+
msg.setPriorActiveAfter(value);
|
|
43902
|
+
break;
|
|
43903
|
+
default:
|
|
43904
|
+
reader.skipField();
|
|
43905
|
+
break;
|
|
43906
|
+
}
|
|
43907
|
+
}
|
|
43908
|
+
return msg;
|
|
43909
|
+
};
|
|
43910
|
+
|
|
43911
|
+
|
|
43912
|
+
/**
|
|
43913
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
43914
|
+
* @return {!Uint8Array}
|
|
43915
|
+
*/
|
|
43916
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.serializeBinary = function() {
|
|
43917
|
+
var writer = new jspb.BinaryWriter();
|
|
43918
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.serializeBinaryToWriter(this, writer);
|
|
43919
|
+
return writer.getResultBuffer();
|
|
43920
|
+
};
|
|
43921
|
+
|
|
43922
|
+
|
|
43923
|
+
/**
|
|
43924
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
43925
|
+
* format), writing to the given BinaryWriter.
|
|
43926
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} message
|
|
43927
|
+
* @param {!jspb.BinaryWriter} writer
|
|
43928
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
43929
|
+
*/
|
|
43930
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
43931
|
+
var f = undefined;
|
|
43932
|
+
f = message.getOrganizationId();
|
|
43933
|
+
if (f.length > 0) {
|
|
43934
|
+
writer.writeString(
|
|
43935
|
+
1,
|
|
43936
|
+
f
|
|
43937
|
+
);
|
|
43938
|
+
}
|
|
43939
|
+
f = message.getProjectId();
|
|
43940
|
+
if (f.length > 0) {
|
|
43941
|
+
writer.writeString(
|
|
43942
|
+
2,
|
|
43943
|
+
f
|
|
43944
|
+
);
|
|
43945
|
+
}
|
|
43946
|
+
f = message.getActiveAfter();
|
|
43947
|
+
if (f != null) {
|
|
43948
|
+
writer.writeMessage(
|
|
43949
|
+
3,
|
|
43950
|
+
f,
|
|
43951
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
43952
|
+
);
|
|
43953
|
+
}
|
|
43954
|
+
f = message.getPriorActiveAfter();
|
|
43955
|
+
if (f != null) {
|
|
43956
|
+
writer.writeMessage(
|
|
43957
|
+
4,
|
|
43958
|
+
f,
|
|
43959
|
+
google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
|
|
43960
|
+
);
|
|
43961
|
+
}
|
|
43962
|
+
};
|
|
43963
|
+
|
|
43964
|
+
|
|
43965
|
+
/**
|
|
43966
|
+
* optional string organization_id = 1;
|
|
43967
|
+
* @return {string}
|
|
43968
|
+
*/
|
|
43969
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getOrganizationId = function() {
|
|
43970
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
43971
|
+
};
|
|
43972
|
+
|
|
43973
|
+
|
|
43974
|
+
/**
|
|
43975
|
+
* @param {string} value
|
|
43976
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
43977
|
+
*/
|
|
43978
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setOrganizationId = function(value) {
|
|
43979
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
43980
|
+
};
|
|
43981
|
+
|
|
43982
|
+
|
|
43983
|
+
/**
|
|
43984
|
+
* optional string project_id = 2;
|
|
43985
|
+
* @return {string}
|
|
43986
|
+
*/
|
|
43987
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getProjectId = function() {
|
|
43988
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
43989
|
+
};
|
|
43990
|
+
|
|
43991
|
+
|
|
43992
|
+
/**
|
|
43993
|
+
* @param {string} value
|
|
43994
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
43995
|
+
*/
|
|
43996
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setProjectId = function(value) {
|
|
43997
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
43998
|
+
};
|
|
43999
|
+
|
|
44000
|
+
|
|
44001
|
+
/**
|
|
44002
|
+
* optional google.protobuf.Timestamp active_after = 3;
|
|
44003
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44004
|
+
*/
|
|
44005
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getActiveAfter = function() {
|
|
44006
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
44007
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
|
|
44008
|
+
};
|
|
44009
|
+
|
|
44010
|
+
|
|
44011
|
+
/**
|
|
44012
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44013
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44014
|
+
*/
|
|
44015
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setActiveAfter = function(value) {
|
|
44016
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
44017
|
+
};
|
|
44018
|
+
|
|
44019
|
+
|
|
44020
|
+
/**
|
|
44021
|
+
* Clears the message field making it undefined.
|
|
44022
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44023
|
+
*/
|
|
44024
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.clearActiveAfter = function() {
|
|
44025
|
+
return this.setActiveAfter(undefined);
|
|
44026
|
+
};
|
|
44027
|
+
|
|
44028
|
+
|
|
44029
|
+
/**
|
|
44030
|
+
* Returns whether this field is set.
|
|
44031
|
+
* @return {boolean}
|
|
44032
|
+
*/
|
|
44033
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.hasActiveAfter = function() {
|
|
44034
|
+
return jspb.Message.getField(this, 3) != null;
|
|
44035
|
+
};
|
|
44036
|
+
|
|
44037
|
+
|
|
44038
|
+
/**
|
|
44039
|
+
* optional google.protobuf.Timestamp prior_active_after = 4;
|
|
44040
|
+
* @return {?proto.google.protobuf.Timestamp}
|
|
44041
|
+
*/
|
|
44042
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.getPriorActiveAfter = function() {
|
|
44043
|
+
return /** @type{?proto.google.protobuf.Timestamp} */ (
|
|
44044
|
+
jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
|
|
44045
|
+
};
|
|
44046
|
+
|
|
44047
|
+
|
|
44048
|
+
/**
|
|
44049
|
+
* @param {?proto.google.protobuf.Timestamp|undefined} value
|
|
44050
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44051
|
+
*/
|
|
44052
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.setPriorActiveAfter = function(value) {
|
|
44053
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
|
44054
|
+
};
|
|
44055
|
+
|
|
44056
|
+
|
|
44057
|
+
/**
|
|
44058
|
+
* Clears the message field making it undefined.
|
|
44059
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsRequest} returns this
|
|
44060
|
+
*/
|
|
44061
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.clearPriorActiveAfter = function() {
|
|
44062
|
+
return this.setPriorActiveAfter(undefined);
|
|
44063
|
+
};
|
|
44064
|
+
|
|
44065
|
+
|
|
44066
|
+
/**
|
|
44067
|
+
* Returns whether this field is set.
|
|
44068
|
+
* @return {boolean}
|
|
44069
|
+
*/
|
|
44070
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsRequest.prototype.hasPriorActiveAfter = function() {
|
|
44071
|
+
return jspb.Message.getField(this, 4) != null;
|
|
44072
|
+
};
|
|
44073
|
+
|
|
44074
|
+
|
|
44075
|
+
|
|
44076
|
+
/**
|
|
44077
|
+
* List of repeated fields within this message type.
|
|
44078
|
+
* @private {!Array<number>}
|
|
44079
|
+
* @const
|
|
44080
|
+
*/
|
|
44081
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.repeatedFields_ = [4,5,6];
|
|
44082
|
+
|
|
44083
|
+
|
|
44084
|
+
|
|
44085
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44086
|
+
/**
|
|
44087
|
+
* Creates an object representation of this proto.
|
|
44088
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44089
|
+
* Optional fields that are not set will be set to undefined.
|
|
44090
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44091
|
+
* For the list of reserved names please see:
|
|
44092
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44093
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44094
|
+
* JSPB instance for transitional soy proto support:
|
|
44095
|
+
* http://goto/soy-param-migration
|
|
44096
|
+
* @return {!Object}
|
|
44097
|
+
*/
|
|
44098
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
44099
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsResponse.toObject(opt_includeInstance, this);
|
|
44100
|
+
};
|
|
44101
|
+
|
|
44102
|
+
|
|
44103
|
+
/**
|
|
44104
|
+
* Static version of the {@see toObject} method.
|
|
44105
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44106
|
+
* the JSPB instance for transitional soy proto support:
|
|
44107
|
+
* http://goto/soy-param-migration
|
|
44108
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} msg The msg instance to transform.
|
|
44109
|
+
* @return {!Object}
|
|
44110
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44111
|
+
*/
|
|
44112
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.toObject = function(includeInstance, msg) {
|
|
44113
|
+
var f, obj = {
|
|
44114
|
+
status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
|
|
44115
|
+
totals: (f = msg.getTotals()) && proto.gateway.web.v1.SessionPeriodTotals.toObject(includeInstance, f),
|
|
44116
|
+
priorTotals: (f = msg.getPriorTotals()) && proto.gateway.web.v1.SessionPeriodTotals.toObject(includeInstance, f),
|
|
44117
|
+
actorsList: jspb.Message.toObjectList(msg.getActorsList(),
|
|
44118
|
+
proto.gateway.web.v1.SessionActorUsage.toObject, includeInstance),
|
|
44119
|
+
workTypeCountsList: jspb.Message.toObjectList(msg.getWorkTypeCountsList(),
|
|
44120
|
+
proto.gateway.web.v1.SessionWorkTypeCount.toObject, includeInstance),
|
|
44121
|
+
workSizeCountsList: jspb.Message.toObjectList(msg.getWorkSizeCountsList(),
|
|
44122
|
+
proto.gateway.web.v1.SessionWorkSizeCount.toObject, includeInstance)
|
|
44123
|
+
};
|
|
44124
|
+
|
|
44125
|
+
if (includeInstance) {
|
|
44126
|
+
obj.$jspbMessageInstance = msg;
|
|
44127
|
+
}
|
|
44128
|
+
return obj;
|
|
44129
|
+
};
|
|
44130
|
+
}
|
|
44131
|
+
|
|
44132
|
+
|
|
44133
|
+
/**
|
|
44134
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44135
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44136
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse}
|
|
44137
|
+
*/
|
|
44138
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinary = function(bytes) {
|
|
44139
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44140
|
+
var msg = new proto.gateway.web.v1.GetSessionPeriodTotalsResponse;
|
|
44141
|
+
return proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinaryFromReader(msg, reader);
|
|
44142
|
+
};
|
|
44143
|
+
|
|
44144
|
+
|
|
44145
|
+
/**
|
|
44146
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44147
|
+
* given reader into the given message object.
|
|
44148
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} msg The message object to deserialize into.
|
|
44149
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44150
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse}
|
|
44151
|
+
*/
|
|
44152
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
44153
|
+
while (reader.nextField()) {
|
|
44154
|
+
if (reader.isEndGroup()) {
|
|
44155
|
+
break;
|
|
44156
|
+
}
|
|
44157
|
+
var field = reader.getFieldNumber();
|
|
44158
|
+
switch (field) {
|
|
44159
|
+
case 1:
|
|
44160
|
+
var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
|
|
44161
|
+
reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
|
|
44162
|
+
msg.setStatus(value);
|
|
44163
|
+
break;
|
|
44164
|
+
case 2:
|
|
44165
|
+
var value = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44166
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader);
|
|
44167
|
+
msg.setTotals(value);
|
|
44168
|
+
break;
|
|
44169
|
+
case 3:
|
|
44170
|
+
var value = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44171
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader);
|
|
44172
|
+
msg.setPriorTotals(value);
|
|
44173
|
+
break;
|
|
44174
|
+
case 4:
|
|
44175
|
+
var value = new proto.gateway.web.v1.SessionActorUsage;
|
|
44176
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader);
|
|
44177
|
+
msg.addActors(value);
|
|
44178
|
+
break;
|
|
44179
|
+
case 5:
|
|
44180
|
+
var value = new proto.gateway.web.v1.SessionWorkTypeCount;
|
|
44181
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinaryFromReader);
|
|
44182
|
+
msg.addWorkTypeCounts(value);
|
|
44183
|
+
break;
|
|
44184
|
+
case 6:
|
|
44185
|
+
var value = new proto.gateway.web.v1.SessionWorkSizeCount;
|
|
44186
|
+
reader.readMessage(value,proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader);
|
|
44187
|
+
msg.addWorkSizeCounts(value);
|
|
44188
|
+
break;
|
|
44189
|
+
default:
|
|
44190
|
+
reader.skipField();
|
|
44191
|
+
break;
|
|
44192
|
+
}
|
|
44193
|
+
}
|
|
44194
|
+
return msg;
|
|
44195
|
+
};
|
|
44196
|
+
|
|
44197
|
+
|
|
44198
|
+
/**
|
|
44199
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44200
|
+
* @return {!Uint8Array}
|
|
44201
|
+
*/
|
|
44202
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.serializeBinary = function() {
|
|
44203
|
+
var writer = new jspb.BinaryWriter();
|
|
44204
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.serializeBinaryToWriter(this, writer);
|
|
44205
|
+
return writer.getResultBuffer();
|
|
44206
|
+
};
|
|
44207
|
+
|
|
44208
|
+
|
|
44209
|
+
/**
|
|
44210
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44211
|
+
* format), writing to the given BinaryWriter.
|
|
44212
|
+
* @param {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} message
|
|
44213
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44214
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44215
|
+
*/
|
|
44216
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
44217
|
+
var f = undefined;
|
|
44218
|
+
f = message.getStatus();
|
|
44219
|
+
if (f != null) {
|
|
44220
|
+
writer.writeMessage(
|
|
44221
|
+
1,
|
|
44222
|
+
f,
|
|
44223
|
+
proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
|
|
44224
|
+
);
|
|
44225
|
+
}
|
|
44226
|
+
f = message.getTotals();
|
|
44227
|
+
if (f != null) {
|
|
44228
|
+
writer.writeMessage(
|
|
44229
|
+
2,
|
|
44230
|
+
f,
|
|
44231
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter
|
|
44232
|
+
);
|
|
44233
|
+
}
|
|
44234
|
+
f = message.getPriorTotals();
|
|
44235
|
+
if (f != null) {
|
|
44236
|
+
writer.writeMessage(
|
|
44237
|
+
3,
|
|
44238
|
+
f,
|
|
44239
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter
|
|
44240
|
+
);
|
|
44241
|
+
}
|
|
44242
|
+
f = message.getActorsList();
|
|
44243
|
+
if (f.length > 0) {
|
|
44244
|
+
writer.writeRepeatedMessage(
|
|
44245
|
+
4,
|
|
44246
|
+
f,
|
|
44247
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter
|
|
44248
|
+
);
|
|
44249
|
+
}
|
|
44250
|
+
f = message.getWorkTypeCountsList();
|
|
44251
|
+
if (f.length > 0) {
|
|
44252
|
+
writer.writeRepeatedMessage(
|
|
44253
|
+
5,
|
|
44254
|
+
f,
|
|
44255
|
+
proto.gateway.web.v1.SessionWorkTypeCount.serializeBinaryToWriter
|
|
44256
|
+
);
|
|
44257
|
+
}
|
|
44258
|
+
f = message.getWorkSizeCountsList();
|
|
44259
|
+
if (f.length > 0) {
|
|
44260
|
+
writer.writeRepeatedMessage(
|
|
44261
|
+
6,
|
|
44262
|
+
f,
|
|
44263
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter
|
|
44264
|
+
);
|
|
44265
|
+
}
|
|
44266
|
+
};
|
|
44267
|
+
|
|
44268
|
+
|
|
44269
|
+
/**
|
|
44270
|
+
* optional gateway.common.v1.ResponseStatus status = 1;
|
|
44271
|
+
* @return {?proto.gateway.common.v1.ResponseStatus}
|
|
44272
|
+
*/
|
|
44273
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getStatus = function() {
|
|
44274
|
+
return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
|
|
44275
|
+
jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
|
|
44276
|
+
};
|
|
44277
|
+
|
|
44278
|
+
|
|
44279
|
+
/**
|
|
44280
|
+
* @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
|
|
44281
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44282
|
+
*/
|
|
44283
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setStatus = function(value) {
|
|
44284
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
44285
|
+
};
|
|
44286
|
+
|
|
44287
|
+
|
|
44288
|
+
/**
|
|
44289
|
+
* Clears the message field making it undefined.
|
|
44290
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44291
|
+
*/
|
|
44292
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearStatus = function() {
|
|
44293
|
+
return this.setStatus(undefined);
|
|
44294
|
+
};
|
|
44295
|
+
|
|
44296
|
+
|
|
44297
|
+
/**
|
|
44298
|
+
* Returns whether this field is set.
|
|
44299
|
+
* @return {boolean}
|
|
44300
|
+
*/
|
|
44301
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasStatus = function() {
|
|
44302
|
+
return jspb.Message.getField(this, 1) != null;
|
|
44303
|
+
};
|
|
44304
|
+
|
|
44305
|
+
|
|
44306
|
+
/**
|
|
44307
|
+
* optional SessionPeriodTotals totals = 2;
|
|
44308
|
+
* @return {?proto.gateway.web.v1.SessionPeriodTotals}
|
|
44309
|
+
*/
|
|
44310
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getTotals = function() {
|
|
44311
|
+
return /** @type{?proto.gateway.web.v1.SessionPeriodTotals} */ (
|
|
44312
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionPeriodTotals, 2));
|
|
44313
|
+
};
|
|
44314
|
+
|
|
44315
|
+
|
|
44316
|
+
/**
|
|
44317
|
+
* @param {?proto.gateway.web.v1.SessionPeriodTotals|undefined} value
|
|
44318
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44319
|
+
*/
|
|
44320
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setTotals = function(value) {
|
|
44321
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
44322
|
+
};
|
|
44323
|
+
|
|
44324
|
+
|
|
44325
|
+
/**
|
|
44326
|
+
* Clears the message field making it undefined.
|
|
44327
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44328
|
+
*/
|
|
44329
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearTotals = function() {
|
|
44330
|
+
return this.setTotals(undefined);
|
|
44331
|
+
};
|
|
44332
|
+
|
|
44333
|
+
|
|
44334
|
+
/**
|
|
44335
|
+
* Returns whether this field is set.
|
|
44336
|
+
* @return {boolean}
|
|
44337
|
+
*/
|
|
44338
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasTotals = function() {
|
|
44339
|
+
return jspb.Message.getField(this, 2) != null;
|
|
44340
|
+
};
|
|
44341
|
+
|
|
44342
|
+
|
|
44343
|
+
/**
|
|
44344
|
+
* optional SessionPeriodTotals prior_totals = 3;
|
|
44345
|
+
* @return {?proto.gateway.web.v1.SessionPeriodTotals}
|
|
44346
|
+
*/
|
|
44347
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getPriorTotals = function() {
|
|
44348
|
+
return /** @type{?proto.gateway.web.v1.SessionPeriodTotals} */ (
|
|
44349
|
+
jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionPeriodTotals, 3));
|
|
44350
|
+
};
|
|
44351
|
+
|
|
44352
|
+
|
|
44353
|
+
/**
|
|
44354
|
+
* @param {?proto.gateway.web.v1.SessionPeriodTotals|undefined} value
|
|
44355
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44356
|
+
*/
|
|
44357
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setPriorTotals = function(value) {
|
|
44358
|
+
return jspb.Message.setWrapperField(this, 3, value);
|
|
44359
|
+
};
|
|
44360
|
+
|
|
44361
|
+
|
|
44362
|
+
/**
|
|
44363
|
+
* Clears the message field making it undefined.
|
|
44364
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44365
|
+
*/
|
|
44366
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearPriorTotals = function() {
|
|
44367
|
+
return this.setPriorTotals(undefined);
|
|
44368
|
+
};
|
|
44369
|
+
|
|
44370
|
+
|
|
44371
|
+
/**
|
|
44372
|
+
* Returns whether this field is set.
|
|
44373
|
+
* @return {boolean}
|
|
44374
|
+
*/
|
|
44375
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.hasPriorTotals = function() {
|
|
44376
|
+
return jspb.Message.getField(this, 3) != null;
|
|
44377
|
+
};
|
|
44378
|
+
|
|
44379
|
+
|
|
44380
|
+
/**
|
|
44381
|
+
* repeated SessionActorUsage actors = 4;
|
|
44382
|
+
* @return {!Array<!proto.gateway.web.v1.SessionActorUsage>}
|
|
44383
|
+
*/
|
|
44384
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getActorsList = function() {
|
|
44385
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionActorUsage>} */ (
|
|
44386
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionActorUsage, 4));
|
|
44387
|
+
};
|
|
44388
|
+
|
|
44389
|
+
|
|
44390
|
+
/**
|
|
44391
|
+
* @param {!Array<!proto.gateway.web.v1.SessionActorUsage>} value
|
|
44392
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44393
|
+
*/
|
|
44394
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setActorsList = function(value) {
|
|
44395
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
44396
|
+
};
|
|
44397
|
+
|
|
44398
|
+
|
|
44399
|
+
/**
|
|
44400
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage=} opt_value
|
|
44401
|
+
* @param {number=} opt_index
|
|
44402
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
44403
|
+
*/
|
|
44404
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addActors = function(opt_value, opt_index) {
|
|
44405
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.SessionActorUsage, opt_index);
|
|
44406
|
+
};
|
|
44407
|
+
|
|
44408
|
+
|
|
44409
|
+
/**
|
|
44410
|
+
* Clears the list making it empty but non-null.
|
|
44411
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44412
|
+
*/
|
|
44413
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearActorsList = function() {
|
|
44414
|
+
return this.setActorsList([]);
|
|
44415
|
+
};
|
|
44416
|
+
|
|
44417
|
+
|
|
44418
|
+
/**
|
|
44419
|
+
* repeated SessionWorkTypeCount work_type_counts = 5;
|
|
44420
|
+
* @return {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>}
|
|
44421
|
+
*/
|
|
44422
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getWorkTypeCountsList = function() {
|
|
44423
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} */ (
|
|
44424
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionWorkTypeCount, 5));
|
|
44425
|
+
};
|
|
44426
|
+
|
|
44427
|
+
|
|
44428
|
+
/**
|
|
44429
|
+
* @param {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} value
|
|
44430
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44431
|
+
*/
|
|
44432
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setWorkTypeCountsList = function(value) {
|
|
44433
|
+
return jspb.Message.setRepeatedWrapperField(this, 5, value);
|
|
44434
|
+
};
|
|
44435
|
+
|
|
44436
|
+
|
|
44437
|
+
/**
|
|
44438
|
+
* @param {!proto.gateway.web.v1.SessionWorkTypeCount=} opt_value
|
|
44439
|
+
* @param {number=} opt_index
|
|
44440
|
+
* @return {!proto.gateway.web.v1.SessionWorkTypeCount}
|
|
44441
|
+
*/
|
|
44442
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addWorkTypeCounts = function(opt_value, opt_index) {
|
|
44443
|
+
return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.gateway.web.v1.SessionWorkTypeCount, opt_index);
|
|
44444
|
+
};
|
|
44445
|
+
|
|
44446
|
+
|
|
44447
|
+
/**
|
|
44448
|
+
* Clears the list making it empty but non-null.
|
|
44449
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44450
|
+
*/
|
|
44451
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearWorkTypeCountsList = function() {
|
|
44452
|
+
return this.setWorkTypeCountsList([]);
|
|
44453
|
+
};
|
|
44454
|
+
|
|
44455
|
+
|
|
44456
|
+
/**
|
|
44457
|
+
* repeated SessionWorkSizeCount work_size_counts = 6;
|
|
44458
|
+
* @return {!Array<!proto.gateway.web.v1.SessionWorkSizeCount>}
|
|
44459
|
+
*/
|
|
44460
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.getWorkSizeCountsList = function() {
|
|
44461
|
+
return /** @type{!Array<!proto.gateway.web.v1.SessionWorkSizeCount>} */ (
|
|
44462
|
+
jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionWorkSizeCount, 6));
|
|
44463
|
+
};
|
|
44464
|
+
|
|
44465
|
+
|
|
44466
|
+
/**
|
|
44467
|
+
* @param {!Array<!proto.gateway.web.v1.SessionWorkSizeCount>} value
|
|
44468
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44469
|
+
*/
|
|
44470
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.setWorkSizeCountsList = function(value) {
|
|
44471
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
44472
|
+
};
|
|
44473
|
+
|
|
44474
|
+
|
|
44475
|
+
/**
|
|
44476
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount=} opt_value
|
|
44477
|
+
* @param {number=} opt_index
|
|
44478
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
44479
|
+
*/
|
|
44480
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.addWorkSizeCounts = function(opt_value, opt_index) {
|
|
44481
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.gateway.web.v1.SessionWorkSizeCount, opt_index);
|
|
44482
|
+
};
|
|
44483
|
+
|
|
44484
|
+
|
|
44485
|
+
/**
|
|
44486
|
+
* Clears the list making it empty but non-null.
|
|
44487
|
+
* @return {!proto.gateway.web.v1.GetSessionPeriodTotalsResponse} returns this
|
|
44488
|
+
*/
|
|
44489
|
+
proto.gateway.web.v1.GetSessionPeriodTotalsResponse.prototype.clearWorkSizeCountsList = function() {
|
|
44490
|
+
return this.setWorkSizeCountsList([]);
|
|
44491
|
+
};
|
|
44492
|
+
|
|
44493
|
+
|
|
44494
|
+
|
|
44495
|
+
|
|
44496
|
+
|
|
44497
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44498
|
+
/**
|
|
44499
|
+
* Creates an object representation of this proto.
|
|
44500
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44501
|
+
* Optional fields that are not set will be set to undefined.
|
|
44502
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44503
|
+
* For the list of reserved names please see:
|
|
44504
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44505
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44506
|
+
* JSPB instance for transitional soy proto support:
|
|
44507
|
+
* http://goto/soy-param-migration
|
|
44508
|
+
* @return {!Object}
|
|
44509
|
+
*/
|
|
44510
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.toObject = function(opt_includeInstance) {
|
|
44511
|
+
return proto.gateway.web.v1.SessionPeriodTotals.toObject(opt_includeInstance, this);
|
|
44512
|
+
};
|
|
44513
|
+
|
|
44514
|
+
|
|
44515
|
+
/**
|
|
44516
|
+
* Static version of the {@see toObject} method.
|
|
44517
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44518
|
+
* the JSPB instance for transitional soy proto support:
|
|
44519
|
+
* http://goto/soy-param-migration
|
|
44520
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} msg The msg instance to transform.
|
|
44521
|
+
* @return {!Object}
|
|
44522
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44523
|
+
*/
|
|
44524
|
+
proto.gateway.web.v1.SessionPeriodTotals.toObject = function(includeInstance, msg) {
|
|
44525
|
+
var f, obj = {
|
|
44526
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
44527
|
+
sessionsWithCommits: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
44528
|
+
commits: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
44529
|
+
gitPushes: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
44530
|
+
pullRequestsCreated: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
44531
|
+
pullRequestsMerged: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
|
44532
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
44533
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
44534
|
+
unpricedTokens: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
|
44535
|
+
};
|
|
44536
|
+
|
|
44537
|
+
if (includeInstance) {
|
|
44538
|
+
obj.$jspbMessageInstance = msg;
|
|
44539
|
+
}
|
|
44540
|
+
return obj;
|
|
44541
|
+
};
|
|
44542
|
+
}
|
|
44543
|
+
|
|
44544
|
+
|
|
44545
|
+
/**
|
|
44546
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44547
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44548
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals}
|
|
44549
|
+
*/
|
|
44550
|
+
proto.gateway.web.v1.SessionPeriodTotals.deserializeBinary = function(bytes) {
|
|
44551
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44552
|
+
var msg = new proto.gateway.web.v1.SessionPeriodTotals;
|
|
44553
|
+
return proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader(msg, reader);
|
|
44554
|
+
};
|
|
44555
|
+
|
|
44556
|
+
|
|
44557
|
+
/**
|
|
44558
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44559
|
+
* given reader into the given message object.
|
|
44560
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} msg The message object to deserialize into.
|
|
44561
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44562
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals}
|
|
44563
|
+
*/
|
|
44564
|
+
proto.gateway.web.v1.SessionPeriodTotals.deserializeBinaryFromReader = function(msg, reader) {
|
|
44565
|
+
while (reader.nextField()) {
|
|
44566
|
+
if (reader.isEndGroup()) {
|
|
44567
|
+
break;
|
|
44568
|
+
}
|
|
44569
|
+
var field = reader.getFieldNumber();
|
|
44570
|
+
switch (field) {
|
|
44571
|
+
case 1:
|
|
44572
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44573
|
+
msg.setSessions(value);
|
|
44574
|
+
break;
|
|
44575
|
+
case 2:
|
|
44576
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44577
|
+
msg.setSessionsWithCommits(value);
|
|
44578
|
+
break;
|
|
44579
|
+
case 3:
|
|
44580
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44581
|
+
msg.setCommits(value);
|
|
44582
|
+
break;
|
|
44583
|
+
case 4:
|
|
44584
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44585
|
+
msg.setGitPushes(value);
|
|
44586
|
+
break;
|
|
44587
|
+
case 5:
|
|
44588
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44589
|
+
msg.setPullRequestsCreated(value);
|
|
44590
|
+
break;
|
|
44591
|
+
case 6:
|
|
44592
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44593
|
+
msg.setPullRequestsMerged(value);
|
|
44594
|
+
break;
|
|
44595
|
+
case 7:
|
|
44596
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44597
|
+
msg.setInputTokens(value);
|
|
44598
|
+
break;
|
|
44599
|
+
case 8:
|
|
44600
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44601
|
+
msg.setOutputTokens(value);
|
|
44602
|
+
break;
|
|
44603
|
+
case 9:
|
|
44604
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44605
|
+
msg.setUnpricedTokens(value);
|
|
44606
|
+
break;
|
|
44607
|
+
default:
|
|
44608
|
+
reader.skipField();
|
|
44609
|
+
break;
|
|
44610
|
+
}
|
|
44611
|
+
}
|
|
44612
|
+
return msg;
|
|
44613
|
+
};
|
|
44614
|
+
|
|
44615
|
+
|
|
44616
|
+
/**
|
|
44617
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44618
|
+
* @return {!Uint8Array}
|
|
44619
|
+
*/
|
|
44620
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.serializeBinary = function() {
|
|
44621
|
+
var writer = new jspb.BinaryWriter();
|
|
44622
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter(this, writer);
|
|
44623
|
+
return writer.getResultBuffer();
|
|
44624
|
+
};
|
|
44625
|
+
|
|
44626
|
+
|
|
44627
|
+
/**
|
|
44628
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44629
|
+
* format), writing to the given BinaryWriter.
|
|
44630
|
+
* @param {!proto.gateway.web.v1.SessionPeriodTotals} message
|
|
44631
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44632
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44633
|
+
*/
|
|
44634
|
+
proto.gateway.web.v1.SessionPeriodTotals.serializeBinaryToWriter = function(message, writer) {
|
|
44635
|
+
var f = undefined;
|
|
44636
|
+
f = message.getSessions();
|
|
44637
|
+
if (f !== 0) {
|
|
44638
|
+
writer.writeUint64(
|
|
44639
|
+
1,
|
|
44640
|
+
f
|
|
44641
|
+
);
|
|
44642
|
+
}
|
|
44643
|
+
f = message.getSessionsWithCommits();
|
|
44644
|
+
if (f !== 0) {
|
|
44645
|
+
writer.writeUint64(
|
|
44646
|
+
2,
|
|
44647
|
+
f
|
|
44648
|
+
);
|
|
44649
|
+
}
|
|
44650
|
+
f = message.getCommits();
|
|
44651
|
+
if (f !== 0) {
|
|
44652
|
+
writer.writeUint64(
|
|
44653
|
+
3,
|
|
44654
|
+
f
|
|
44655
|
+
);
|
|
44656
|
+
}
|
|
44657
|
+
f = message.getGitPushes();
|
|
44658
|
+
if (f !== 0) {
|
|
44659
|
+
writer.writeUint64(
|
|
44660
|
+
4,
|
|
44661
|
+
f
|
|
44662
|
+
);
|
|
44663
|
+
}
|
|
44664
|
+
f = message.getPullRequestsCreated();
|
|
44665
|
+
if (f !== 0) {
|
|
44666
|
+
writer.writeUint64(
|
|
44667
|
+
5,
|
|
44668
|
+
f
|
|
44669
|
+
);
|
|
44670
|
+
}
|
|
44671
|
+
f = message.getPullRequestsMerged();
|
|
44672
|
+
if (f !== 0) {
|
|
44673
|
+
writer.writeUint64(
|
|
44674
|
+
6,
|
|
44675
|
+
f
|
|
44676
|
+
);
|
|
44677
|
+
}
|
|
44678
|
+
f = message.getInputTokens();
|
|
44679
|
+
if (f !== 0) {
|
|
44680
|
+
writer.writeUint64(
|
|
44681
|
+
7,
|
|
44682
|
+
f
|
|
44683
|
+
);
|
|
44684
|
+
}
|
|
44685
|
+
f = message.getOutputTokens();
|
|
44686
|
+
if (f !== 0) {
|
|
44687
|
+
writer.writeUint64(
|
|
44688
|
+
8,
|
|
44689
|
+
f
|
|
44690
|
+
);
|
|
44691
|
+
}
|
|
44692
|
+
f = message.getUnpricedTokens();
|
|
44693
|
+
if (f !== 0) {
|
|
44694
|
+
writer.writeUint64(
|
|
44695
|
+
9,
|
|
44696
|
+
f
|
|
44697
|
+
);
|
|
44698
|
+
}
|
|
44699
|
+
};
|
|
44700
|
+
|
|
44701
|
+
|
|
44702
|
+
/**
|
|
44703
|
+
* optional uint64 sessions = 1;
|
|
44704
|
+
* @return {number}
|
|
44705
|
+
*/
|
|
44706
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getSessions = function() {
|
|
44707
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
44708
|
+
};
|
|
44709
|
+
|
|
44710
|
+
|
|
44711
|
+
/**
|
|
44712
|
+
* @param {number} value
|
|
44713
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44714
|
+
*/
|
|
44715
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setSessions = function(value) {
|
|
44716
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
44717
|
+
};
|
|
44718
|
+
|
|
44719
|
+
|
|
44720
|
+
/**
|
|
44721
|
+
* optional uint64 sessions_with_commits = 2;
|
|
44722
|
+
* @return {number}
|
|
44723
|
+
*/
|
|
44724
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getSessionsWithCommits = function() {
|
|
44725
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
44726
|
+
};
|
|
44727
|
+
|
|
44728
|
+
|
|
44729
|
+
/**
|
|
44730
|
+
* @param {number} value
|
|
44731
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44732
|
+
*/
|
|
44733
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setSessionsWithCommits = function(value) {
|
|
44734
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
44735
|
+
};
|
|
44736
|
+
|
|
44737
|
+
|
|
44738
|
+
/**
|
|
44739
|
+
* optional uint64 commits = 3;
|
|
44740
|
+
* @return {number}
|
|
44741
|
+
*/
|
|
44742
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getCommits = function() {
|
|
44743
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
44744
|
+
};
|
|
44745
|
+
|
|
44746
|
+
|
|
44747
|
+
/**
|
|
44748
|
+
* @param {number} value
|
|
44749
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44750
|
+
*/
|
|
44751
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setCommits = function(value) {
|
|
44752
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
44753
|
+
};
|
|
44754
|
+
|
|
44755
|
+
|
|
44756
|
+
/**
|
|
44757
|
+
* optional uint64 git_pushes = 4;
|
|
44758
|
+
* @return {number}
|
|
44759
|
+
*/
|
|
44760
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getGitPushes = function() {
|
|
44761
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
44762
|
+
};
|
|
44763
|
+
|
|
44764
|
+
|
|
44765
|
+
/**
|
|
44766
|
+
* @param {number} value
|
|
44767
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44768
|
+
*/
|
|
44769
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setGitPushes = function(value) {
|
|
44770
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
44771
|
+
};
|
|
44772
|
+
|
|
44773
|
+
|
|
44774
|
+
/**
|
|
44775
|
+
* optional uint64 pull_requests_created = 5;
|
|
44776
|
+
* @return {number}
|
|
44777
|
+
*/
|
|
44778
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getPullRequestsCreated = function() {
|
|
44779
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
44780
|
+
};
|
|
44781
|
+
|
|
44782
|
+
|
|
44783
|
+
/**
|
|
44784
|
+
* @param {number} value
|
|
44785
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44786
|
+
*/
|
|
44787
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setPullRequestsCreated = function(value) {
|
|
44788
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
44789
|
+
};
|
|
44790
|
+
|
|
44791
|
+
|
|
44792
|
+
/**
|
|
44793
|
+
* optional uint64 pull_requests_merged = 6;
|
|
44794
|
+
* @return {number}
|
|
44795
|
+
*/
|
|
44796
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getPullRequestsMerged = function() {
|
|
44797
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
|
44798
|
+
};
|
|
44799
|
+
|
|
44800
|
+
|
|
44801
|
+
/**
|
|
44802
|
+
* @param {number} value
|
|
44803
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44804
|
+
*/
|
|
44805
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setPullRequestsMerged = function(value) {
|
|
44806
|
+
return jspb.Message.setProto3IntField(this, 6, value);
|
|
44807
|
+
};
|
|
44808
|
+
|
|
44809
|
+
|
|
44810
|
+
/**
|
|
44811
|
+
* optional uint64 input_tokens = 7;
|
|
44812
|
+
* @return {number}
|
|
44813
|
+
*/
|
|
44814
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getInputTokens = function() {
|
|
44815
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
44816
|
+
};
|
|
44817
|
+
|
|
44818
|
+
|
|
44819
|
+
/**
|
|
44820
|
+
* @param {number} value
|
|
44821
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44822
|
+
*/
|
|
44823
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setInputTokens = function(value) {
|
|
44824
|
+
return jspb.Message.setProto3IntField(this, 7, value);
|
|
44825
|
+
};
|
|
44826
|
+
|
|
44827
|
+
|
|
44828
|
+
/**
|
|
44829
|
+
* optional uint64 output_tokens = 8;
|
|
44830
|
+
* @return {number}
|
|
44831
|
+
*/
|
|
44832
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getOutputTokens = function() {
|
|
44833
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
44834
|
+
};
|
|
44835
|
+
|
|
44836
|
+
|
|
44837
|
+
/**
|
|
44838
|
+
* @param {number} value
|
|
44839
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44840
|
+
*/
|
|
44841
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setOutputTokens = function(value) {
|
|
44842
|
+
return jspb.Message.setProto3IntField(this, 8, value);
|
|
44843
|
+
};
|
|
44844
|
+
|
|
44845
|
+
|
|
44846
|
+
/**
|
|
44847
|
+
* optional uint64 unpriced_tokens = 9;
|
|
44848
|
+
* @return {number}
|
|
44849
|
+
*/
|
|
44850
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.getUnpricedTokens = function() {
|
|
44851
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
|
44852
|
+
};
|
|
44853
|
+
|
|
44854
|
+
|
|
44855
|
+
/**
|
|
44856
|
+
* @param {number} value
|
|
44857
|
+
* @return {!proto.gateway.web.v1.SessionPeriodTotals} returns this
|
|
44858
|
+
*/
|
|
44859
|
+
proto.gateway.web.v1.SessionPeriodTotals.prototype.setUnpricedTokens = function(value) {
|
|
44860
|
+
return jspb.Message.setProto3IntField(this, 9, value);
|
|
44861
|
+
};
|
|
44862
|
+
|
|
44863
|
+
|
|
44864
|
+
|
|
44865
|
+
|
|
44866
|
+
|
|
44867
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
44868
|
+
/**
|
|
44869
|
+
* Creates an object representation of this proto.
|
|
44870
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
44871
|
+
* Optional fields that are not set will be set to undefined.
|
|
44872
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
44873
|
+
* For the list of reserved names please see:
|
|
44874
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
44875
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
44876
|
+
* JSPB instance for transitional soy proto support:
|
|
44877
|
+
* http://goto/soy-param-migration
|
|
44878
|
+
* @return {!Object}
|
|
44879
|
+
*/
|
|
44880
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.toObject = function(opt_includeInstance) {
|
|
44881
|
+
return proto.gateway.web.v1.SessionActorUsage.toObject(opt_includeInstance, this);
|
|
44882
|
+
};
|
|
44883
|
+
|
|
44884
|
+
|
|
44885
|
+
/**
|
|
44886
|
+
* Static version of the {@see toObject} method.
|
|
44887
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
44888
|
+
* the JSPB instance for transitional soy proto support:
|
|
44889
|
+
* http://goto/soy-param-migration
|
|
44890
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} msg The msg instance to transform.
|
|
44891
|
+
* @return {!Object}
|
|
44892
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44893
|
+
*/
|
|
44894
|
+
proto.gateway.web.v1.SessionActorUsage.toObject = function(includeInstance, msg) {
|
|
44895
|
+
var f, obj = {
|
|
44896
|
+
sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
44897
|
+
userId: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
44898
|
+
apiKeyId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
44899
|
+
inputTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
|
44900
|
+
outputTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
|
44901
|
+
providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
44902
|
+
subscriptionFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0)
|
|
44903
|
+
};
|
|
44904
|
+
|
|
44905
|
+
if (includeInstance) {
|
|
44906
|
+
obj.$jspbMessageInstance = msg;
|
|
44907
|
+
}
|
|
44908
|
+
return obj;
|
|
44909
|
+
};
|
|
44910
|
+
}
|
|
44911
|
+
|
|
44912
|
+
|
|
44913
|
+
/**
|
|
44914
|
+
* Deserializes binary data (in protobuf wire format).
|
|
44915
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
44916
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
44917
|
+
*/
|
|
44918
|
+
proto.gateway.web.v1.SessionActorUsage.deserializeBinary = function(bytes) {
|
|
44919
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
44920
|
+
var msg = new proto.gateway.web.v1.SessionActorUsage;
|
|
44921
|
+
return proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader(msg, reader);
|
|
44922
|
+
};
|
|
44923
|
+
|
|
44924
|
+
|
|
44925
|
+
/**
|
|
44926
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
44927
|
+
* given reader into the given message object.
|
|
44928
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} msg The message object to deserialize into.
|
|
44929
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
44930
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage}
|
|
44931
|
+
*/
|
|
44932
|
+
proto.gateway.web.v1.SessionActorUsage.deserializeBinaryFromReader = function(msg, reader) {
|
|
44933
|
+
while (reader.nextField()) {
|
|
44934
|
+
if (reader.isEndGroup()) {
|
|
44935
|
+
break;
|
|
44936
|
+
}
|
|
44937
|
+
var field = reader.getFieldNumber();
|
|
44938
|
+
switch (field) {
|
|
44939
|
+
case 1:
|
|
44940
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
44941
|
+
msg.setSourceSystem(value);
|
|
44942
|
+
break;
|
|
44943
|
+
case 2:
|
|
44944
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
44945
|
+
msg.setUserId(value);
|
|
44946
|
+
break;
|
|
44947
|
+
case 3:
|
|
44948
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
44949
|
+
msg.setApiKeyId(value);
|
|
44950
|
+
break;
|
|
44951
|
+
case 4:
|
|
44952
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44953
|
+
msg.setInputTokens(value);
|
|
44954
|
+
break;
|
|
44955
|
+
case 5:
|
|
44956
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
44957
|
+
msg.setOutputTokens(value);
|
|
44958
|
+
break;
|
|
44959
|
+
case 6:
|
|
44960
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
44961
|
+
msg.setProviderCostUsd(value);
|
|
44962
|
+
break;
|
|
44963
|
+
case 7:
|
|
44964
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
44965
|
+
msg.setSubscriptionFacilityUsd(value);
|
|
44966
|
+
break;
|
|
44967
|
+
default:
|
|
44968
|
+
reader.skipField();
|
|
44969
|
+
break;
|
|
44970
|
+
}
|
|
44971
|
+
}
|
|
44972
|
+
return msg;
|
|
44973
|
+
};
|
|
44974
|
+
|
|
44975
|
+
|
|
44976
|
+
/**
|
|
44977
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
44978
|
+
* @return {!Uint8Array}
|
|
44979
|
+
*/
|
|
44980
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.serializeBinary = function() {
|
|
44981
|
+
var writer = new jspb.BinaryWriter();
|
|
44982
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter(this, writer);
|
|
44983
|
+
return writer.getResultBuffer();
|
|
44984
|
+
};
|
|
44985
|
+
|
|
44986
|
+
|
|
44987
|
+
/**
|
|
44988
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
44989
|
+
* format), writing to the given BinaryWriter.
|
|
44990
|
+
* @param {!proto.gateway.web.v1.SessionActorUsage} message
|
|
44991
|
+
* @param {!jspb.BinaryWriter} writer
|
|
44992
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
44993
|
+
*/
|
|
44994
|
+
proto.gateway.web.v1.SessionActorUsage.serializeBinaryToWriter = function(message, writer) {
|
|
44995
|
+
var f = undefined;
|
|
44996
|
+
f = message.getSourceSystem();
|
|
44997
|
+
if (f.length > 0) {
|
|
44998
|
+
writer.writeString(
|
|
44999
|
+
1,
|
|
45000
|
+
f
|
|
45001
|
+
);
|
|
45002
|
+
}
|
|
45003
|
+
f = message.getUserId();
|
|
45004
|
+
if (f.length > 0) {
|
|
45005
|
+
writer.writeString(
|
|
45006
|
+
2,
|
|
45007
|
+
f
|
|
45008
|
+
);
|
|
45009
|
+
}
|
|
45010
|
+
f = message.getApiKeyId();
|
|
45011
|
+
if (f.length > 0) {
|
|
45012
|
+
writer.writeString(
|
|
45013
|
+
3,
|
|
45014
|
+
f
|
|
45015
|
+
);
|
|
45016
|
+
}
|
|
45017
|
+
f = message.getInputTokens();
|
|
45018
|
+
if (f !== 0) {
|
|
45019
|
+
writer.writeUint64(
|
|
45020
|
+
4,
|
|
45021
|
+
f
|
|
45022
|
+
);
|
|
45023
|
+
}
|
|
45024
|
+
f = message.getOutputTokens();
|
|
45025
|
+
if (f !== 0) {
|
|
45026
|
+
writer.writeUint64(
|
|
45027
|
+
5,
|
|
45028
|
+
f
|
|
45029
|
+
);
|
|
45030
|
+
}
|
|
45031
|
+
f = message.getProviderCostUsd();
|
|
45032
|
+
if (f !== 0.0) {
|
|
45033
|
+
writer.writeDouble(
|
|
45034
|
+
6,
|
|
45035
|
+
f
|
|
45036
|
+
);
|
|
45037
|
+
}
|
|
45038
|
+
f = message.getSubscriptionFacilityUsd();
|
|
45039
|
+
if (f !== 0.0) {
|
|
45040
|
+
writer.writeDouble(
|
|
45041
|
+
7,
|
|
45042
|
+
f
|
|
45043
|
+
);
|
|
45044
|
+
}
|
|
45045
|
+
};
|
|
45046
|
+
|
|
45047
|
+
|
|
45048
|
+
/**
|
|
45049
|
+
* optional string source_system = 1;
|
|
45050
|
+
* @return {string}
|
|
45051
|
+
*/
|
|
45052
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getSourceSystem = function() {
|
|
45053
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
45054
|
+
};
|
|
45055
|
+
|
|
45056
|
+
|
|
45057
|
+
/**
|
|
45058
|
+
* @param {string} value
|
|
45059
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45060
|
+
*/
|
|
45061
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setSourceSystem = function(value) {
|
|
45062
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
45063
|
+
};
|
|
45064
|
+
|
|
45065
|
+
|
|
45066
|
+
/**
|
|
45067
|
+
* optional string user_id = 2;
|
|
45068
|
+
* @return {string}
|
|
45069
|
+
*/
|
|
45070
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getUserId = function() {
|
|
45071
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
45072
|
+
};
|
|
45073
|
+
|
|
45074
|
+
|
|
45075
|
+
/**
|
|
45076
|
+
* @param {string} value
|
|
45077
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45078
|
+
*/
|
|
45079
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setUserId = function(value) {
|
|
45080
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
45081
|
+
};
|
|
45082
|
+
|
|
45083
|
+
|
|
45084
|
+
/**
|
|
45085
|
+
* optional string api_key_id = 3;
|
|
45086
|
+
* @return {string}
|
|
45087
|
+
*/
|
|
45088
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getApiKeyId = function() {
|
|
45089
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
45090
|
+
};
|
|
45091
|
+
|
|
45092
|
+
|
|
45093
|
+
/**
|
|
45094
|
+
* @param {string} value
|
|
45095
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45096
|
+
*/
|
|
45097
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setApiKeyId = function(value) {
|
|
45098
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
45099
|
+
};
|
|
45100
|
+
|
|
45101
|
+
|
|
45102
|
+
/**
|
|
45103
|
+
* optional uint64 input_tokens = 4;
|
|
45104
|
+
* @return {number}
|
|
45105
|
+
*/
|
|
45106
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getInputTokens = function() {
|
|
45107
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
|
45108
|
+
};
|
|
45109
|
+
|
|
45110
|
+
|
|
45111
|
+
/**
|
|
45112
|
+
* @param {number} value
|
|
45113
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45114
|
+
*/
|
|
45115
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setInputTokens = function(value) {
|
|
45116
|
+
return jspb.Message.setProto3IntField(this, 4, value);
|
|
45117
|
+
};
|
|
45118
|
+
|
|
45119
|
+
|
|
45120
|
+
/**
|
|
45121
|
+
* optional uint64 output_tokens = 5;
|
|
45122
|
+
* @return {number}
|
|
45123
|
+
*/
|
|
45124
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getOutputTokens = function() {
|
|
45125
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
45126
|
+
};
|
|
45127
|
+
|
|
45128
|
+
|
|
45129
|
+
/**
|
|
45130
|
+
* @param {number} value
|
|
45131
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45132
|
+
*/
|
|
45133
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setOutputTokens = function(value) {
|
|
45134
|
+
return jspb.Message.setProto3IntField(this, 5, value);
|
|
45135
|
+
};
|
|
45136
|
+
|
|
45137
|
+
|
|
45138
|
+
/**
|
|
45139
|
+
* optional double provider_cost_usd = 6;
|
|
45140
|
+
* @return {number}
|
|
45141
|
+
*/
|
|
45142
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getProviderCostUsd = function() {
|
|
45143
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
45144
|
+
};
|
|
45145
|
+
|
|
45146
|
+
|
|
45147
|
+
/**
|
|
45148
|
+
* @param {number} value
|
|
45149
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45150
|
+
*/
|
|
45151
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setProviderCostUsd = function(value) {
|
|
45152
|
+
return jspb.Message.setProto3FloatField(this, 6, value);
|
|
45153
|
+
};
|
|
45154
|
+
|
|
45155
|
+
|
|
45156
|
+
/**
|
|
45157
|
+
* optional double subscription_facility_usd = 7;
|
|
45158
|
+
* @return {number}
|
|
45159
|
+
*/
|
|
45160
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.getSubscriptionFacilityUsd = function() {
|
|
45161
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
45162
|
+
};
|
|
45163
|
+
|
|
45164
|
+
|
|
45165
|
+
/**
|
|
45166
|
+
* @param {number} value
|
|
45167
|
+
* @return {!proto.gateway.web.v1.SessionActorUsage} returns this
|
|
45168
|
+
*/
|
|
45169
|
+
proto.gateway.web.v1.SessionActorUsage.prototype.setSubscriptionFacilityUsd = function(value) {
|
|
45170
|
+
return jspb.Message.setProto3FloatField(this, 7, value);
|
|
45171
|
+
};
|
|
45172
|
+
|
|
45173
|
+
|
|
45174
|
+
|
|
45175
|
+
|
|
45176
|
+
|
|
45177
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45178
|
+
/**
|
|
45179
|
+
* Creates an object representation of this proto.
|
|
45180
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
45181
|
+
* Optional fields that are not set will be set to undefined.
|
|
45182
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
45183
|
+
* For the list of reserved names please see:
|
|
45184
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
45185
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
45186
|
+
* JSPB instance for transitional soy proto support:
|
|
45187
|
+
* http://goto/soy-param-migration
|
|
45188
|
+
* @return {!Object}
|
|
45189
|
+
*/
|
|
45190
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.toObject = function(opt_includeInstance) {
|
|
45191
|
+
return proto.gateway.web.v1.SessionWorkSizeCount.toObject(opt_includeInstance, this);
|
|
45192
|
+
};
|
|
45193
|
+
|
|
45194
|
+
|
|
45195
|
+
/**
|
|
45196
|
+
* Static version of the {@see toObject} method.
|
|
45197
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
45198
|
+
* the JSPB instance for transitional soy proto support:
|
|
45199
|
+
* http://goto/soy-param-migration
|
|
45200
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} msg The msg instance to transform.
|
|
45201
|
+
* @return {!Object}
|
|
45202
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45203
|
+
*/
|
|
45204
|
+
proto.gateway.web.v1.SessionWorkSizeCount.toObject = function(includeInstance, msg) {
|
|
45205
|
+
var f, obj = {
|
|
45206
|
+
workSize: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
45207
|
+
sessions: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
45208
|
+
};
|
|
45209
|
+
|
|
45210
|
+
if (includeInstance) {
|
|
45211
|
+
obj.$jspbMessageInstance = msg;
|
|
45212
|
+
}
|
|
45213
|
+
return obj;
|
|
45214
|
+
};
|
|
45215
|
+
}
|
|
45216
|
+
|
|
45217
|
+
|
|
45218
|
+
/**
|
|
45219
|
+
* Deserializes binary data (in protobuf wire format).
|
|
45220
|
+
* @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
|
|
45221
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
45222
|
+
*/
|
|
45223
|
+
proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinary = function(bytes) {
|
|
45224
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
45225
|
+
var msg = new proto.gateway.web.v1.SessionWorkSizeCount;
|
|
45226
|
+
return proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader(msg, reader);
|
|
45227
|
+
};
|
|
45228
|
+
|
|
45229
|
+
|
|
45230
|
+
/**
|
|
45231
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
45232
|
+
* given reader into the given message object.
|
|
45233
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} msg The message object to deserialize into.
|
|
45234
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
45235
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount}
|
|
45236
|
+
*/
|
|
45237
|
+
proto.gateway.web.v1.SessionWorkSizeCount.deserializeBinaryFromReader = function(msg, reader) {
|
|
45238
|
+
while (reader.nextField()) {
|
|
45239
|
+
if (reader.isEndGroup()) {
|
|
45240
|
+
break;
|
|
45241
|
+
}
|
|
45242
|
+
var field = reader.getFieldNumber();
|
|
45243
|
+
switch (field) {
|
|
45244
|
+
case 1:
|
|
45245
|
+
var value = /** @type {string} */ (reader.readStringRequireUtf8());
|
|
45246
|
+
msg.setWorkSize(value);
|
|
45247
|
+
break;
|
|
45248
|
+
case 2:
|
|
45249
|
+
var value = /** @type {number} */ (reader.readUint64());
|
|
45250
|
+
msg.setSessions(value);
|
|
45251
|
+
break;
|
|
45252
|
+
default:
|
|
45253
|
+
reader.skipField();
|
|
45254
|
+
break;
|
|
45255
|
+
}
|
|
45256
|
+
}
|
|
45257
|
+
return msg;
|
|
45258
|
+
};
|
|
45259
|
+
|
|
45260
|
+
|
|
45261
|
+
/**
|
|
45262
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
45263
|
+
* @return {!Uint8Array}
|
|
45264
|
+
*/
|
|
45265
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.serializeBinary = function() {
|
|
45266
|
+
var writer = new jspb.BinaryWriter();
|
|
45267
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter(this, writer);
|
|
45268
|
+
return writer.getResultBuffer();
|
|
45269
|
+
};
|
|
45270
|
+
|
|
45271
|
+
|
|
45272
|
+
/**
|
|
45273
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
45274
|
+
* format), writing to the given BinaryWriter.
|
|
45275
|
+
* @param {!proto.gateway.web.v1.SessionWorkSizeCount} message
|
|
45276
|
+
* @param {!jspb.BinaryWriter} writer
|
|
45277
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
45278
|
+
*/
|
|
45279
|
+
proto.gateway.web.v1.SessionWorkSizeCount.serializeBinaryToWriter = function(message, writer) {
|
|
45280
|
+
var f = undefined;
|
|
45281
|
+
f = message.getWorkSize();
|
|
45282
|
+
if (f.length > 0) {
|
|
45283
|
+
writer.writeString(
|
|
45284
|
+
1,
|
|
45285
|
+
f
|
|
45286
|
+
);
|
|
45287
|
+
}
|
|
45288
|
+
f = message.getSessions();
|
|
45289
|
+
if (f !== 0) {
|
|
45290
|
+
writer.writeUint64(
|
|
45291
|
+
2,
|
|
45292
|
+
f
|
|
45293
|
+
);
|
|
45294
|
+
}
|
|
45295
|
+
};
|
|
45296
|
+
|
|
45297
|
+
|
|
45298
|
+
/**
|
|
45299
|
+
* optional string work_size = 1;
|
|
45300
|
+
* @return {string}
|
|
45301
|
+
*/
|
|
45302
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.getWorkSize = function() {
|
|
45303
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
45304
|
+
};
|
|
45305
|
+
|
|
45306
|
+
|
|
45307
|
+
/**
|
|
45308
|
+
* @param {string} value
|
|
45309
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount} returns this
|
|
45310
|
+
*/
|
|
45311
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.setWorkSize = function(value) {
|
|
45312
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
45313
|
+
};
|
|
45314
|
+
|
|
45315
|
+
|
|
45316
|
+
/**
|
|
45317
|
+
* optional uint64 sessions = 2;
|
|
45318
|
+
* @return {number}
|
|
45319
|
+
*/
|
|
45320
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.getSessions = function() {
|
|
45321
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
45322
|
+
};
|
|
45323
|
+
|
|
45324
|
+
|
|
45325
|
+
/**
|
|
45326
|
+
* @param {number} value
|
|
45327
|
+
* @return {!proto.gateway.web.v1.SessionWorkSizeCount} returns this
|
|
45328
|
+
*/
|
|
45329
|
+
proto.gateway.web.v1.SessionWorkSizeCount.prototype.setSessions = function(value) {
|
|
45330
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
45331
|
+
};
|
|
45332
|
+
|
|
45333
|
+
|
|
45334
|
+
|
|
45335
|
+
|
|
45336
|
+
|
|
43706
45337
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
43707
45338
|
/**
|
|
43708
45339
|
* Creates an object representation of this proto.
|