@miradorlabs/web-grpc 4.31.0 → 4.33.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -120,6 +120,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetPromptLabelTrendRequest', null, globa
120
120
  goog.exportSymbol('proto.gateway.web.v1.GetPromptLabelTrendResponse', null, global);
121
121
  goog.exportSymbol('proto.gateway.web.v1.GetReasoningTrendContributionRequest', null, global);
122
122
  goog.exportSymbol('proto.gateway.web.v1.GetReasoningTrendContributionResponse', null, global);
123
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisOverviewRequest', null, global);
124
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisOverviewResponse', null, global);
123
125
  goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisRequest', null, global);
124
126
  goog.exportSymbol('proto.gateway.web.v1.GetSessionAnalysisResponse', null, global);
125
127
  goog.exportSymbol('proto.gateway.web.v1.GetSessionIssuesRequest', null, global);
@@ -129,6 +131,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreRubricCatalogResponse', n
129
131
  goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreTrendRequest', null, global);
130
132
  goog.exportSymbol('proto.gateway.web.v1.GetSessionScoreTrendResponse', null, global);
131
133
  goog.exportSymbol('proto.gateway.web.v1.GetSessionSummaryRequest', null, global);
134
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionTotalsTrendRequest', null, global);
135
+ goog.exportSymbol('proto.gateway.web.v1.GetSessionTotalsTrendResponse', null, global);
132
136
  goog.exportSymbol('proto.gateway.web.v1.GitActivitiesSnapshotCompleted', null, global);
133
137
  goog.exportSymbol('proto.gateway.web.v1.GitActivityFrame', null, global);
134
138
  goog.exportSymbol('proto.gateway.web.v1.GitActivityFrame.FrameCase', null, global);
@@ -207,7 +211,9 @@ goog.exportSymbol('proto.gateway.web.v1.RelayHeartbeatSort', null, global);
207
211
  goog.exportSymbol('proto.gateway.web.v1.ResourceRanking', null, global);
208
212
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
209
213
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
214
+ goog.exportSymbol('proto.gateway.web.v1.ScoredSession', null, global);
210
215
  goog.exportSymbol('proto.gateway.web.v1.SeatEntitlement', null, global);
216
+ goog.exportSymbol('proto.gateway.web.v1.SessionAnalysisOverviewFilter', null, global);
211
217
  goog.exportSymbol('proto.gateway.web.v1.SessionEventFilter', null, global);
212
218
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChange', null, global);
213
219
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChanges', null, global);
@@ -227,9 +233,11 @@ goog.exportSymbol('proto.gateway.web.v1.SessionSort', null, global);
227
233
  goog.exportSymbol('proto.gateway.web.v1.SessionTimelinePoint', null, global);
228
234
  goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimeline', null, global);
229
235
  goog.exportSymbol('proto.gateway.web.v1.SessionTokenTimelineRequest', null, global);
236
+ goog.exportSymbol('proto.gateway.web.v1.SessionTotalsBucket', null, global);
230
237
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageBucket', null, global);
231
238
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global);
232
239
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
240
+ goog.exportSymbol('proto.gateway.web.v1.SessionWorkTypeCount', null, global);
233
241
  goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
234
242
  goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionRequest', null, global);
235
243
  goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionResponse', null, global);
@@ -2861,6 +2869,174 @@ if (goog.DEBUG && !COMPILED) {
2861
2869
  */
2862
2870
  proto.gateway.web.v1.SessionGitBucket.displayName = 'proto.gateway.web.v1.SessionGitBucket';
2863
2871
  }
2872
+ /**
2873
+ * Generated by JsPbCodeGenerator.
2874
+ * @param {Array=} opt_data Optional initial data array, typically from a
2875
+ * server response, or constructed directly in Javascript. The array is used
2876
+ * in place and becomes part of the constructed object. It is not cloned.
2877
+ * If no data is provided, the constructed object will be empty, but still
2878
+ * valid.
2879
+ * @extends {jspb.Message}
2880
+ * @constructor
2881
+ */
2882
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest = function(opt_data) {
2883
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2884
+ };
2885
+ goog.inherits(proto.gateway.web.v1.GetSessionTotalsTrendRequest, jspb.Message);
2886
+ if (goog.DEBUG && !COMPILED) {
2887
+ /**
2888
+ * @public
2889
+ * @override
2890
+ */
2891
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.displayName = 'proto.gateway.web.v1.GetSessionTotalsTrendRequest';
2892
+ }
2893
+ /**
2894
+ * Generated by JsPbCodeGenerator.
2895
+ * @param {Array=} opt_data Optional initial data array, typically from a
2896
+ * server response, or constructed directly in Javascript. The array is used
2897
+ * in place and becomes part of the constructed object. It is not cloned.
2898
+ * If no data is provided, the constructed object will be empty, but still
2899
+ * valid.
2900
+ * @extends {jspb.Message}
2901
+ * @constructor
2902
+ */
2903
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse = function(opt_data) {
2904
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetSessionTotalsTrendResponse.repeatedFields_, null);
2905
+ };
2906
+ goog.inherits(proto.gateway.web.v1.GetSessionTotalsTrendResponse, jspb.Message);
2907
+ if (goog.DEBUG && !COMPILED) {
2908
+ /**
2909
+ * @public
2910
+ * @override
2911
+ */
2912
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.displayName = 'proto.gateway.web.v1.GetSessionTotalsTrendResponse';
2913
+ }
2914
+ /**
2915
+ * Generated by JsPbCodeGenerator.
2916
+ * @param {Array=} opt_data Optional initial data array, typically from a
2917
+ * server response, or constructed directly in Javascript. The array is used
2918
+ * in place and becomes part of the constructed object. It is not cloned.
2919
+ * If no data is provided, the constructed object will be empty, but still
2920
+ * valid.
2921
+ * @extends {jspb.Message}
2922
+ * @constructor
2923
+ */
2924
+ proto.gateway.web.v1.SessionTotalsBucket = function(opt_data) {
2925
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2926
+ };
2927
+ goog.inherits(proto.gateway.web.v1.SessionTotalsBucket, jspb.Message);
2928
+ if (goog.DEBUG && !COMPILED) {
2929
+ /**
2930
+ * @public
2931
+ * @override
2932
+ */
2933
+ proto.gateway.web.v1.SessionTotalsBucket.displayName = 'proto.gateway.web.v1.SessionTotalsBucket';
2934
+ }
2935
+ /**
2936
+ * Generated by JsPbCodeGenerator.
2937
+ * @param {Array=} opt_data Optional initial data array, typically from a
2938
+ * server response, or constructed directly in Javascript. The array is used
2939
+ * in place and becomes part of the constructed object. It is not cloned.
2940
+ * If no data is provided, the constructed object will be empty, but still
2941
+ * valid.
2942
+ * @extends {jspb.Message}
2943
+ * @constructor
2944
+ */
2945
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest = function(opt_data) {
2946
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2947
+ };
2948
+ goog.inherits(proto.gateway.web.v1.GetSessionAnalysisOverviewRequest, jspb.Message);
2949
+ if (goog.DEBUG && !COMPILED) {
2950
+ /**
2951
+ * @public
2952
+ * @override
2953
+ */
2954
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.displayName = 'proto.gateway.web.v1.GetSessionAnalysisOverviewRequest';
2955
+ }
2956
+ /**
2957
+ * Generated by JsPbCodeGenerator.
2958
+ * @param {Array=} opt_data Optional initial data array, typically from a
2959
+ * server response, or constructed directly in Javascript. The array is used
2960
+ * in place and becomes part of the constructed object. It is not cloned.
2961
+ * If no data is provided, the constructed object will be empty, but still
2962
+ * valid.
2963
+ * @extends {jspb.Message}
2964
+ * @constructor
2965
+ */
2966
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter = function(opt_data) {
2967
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.SessionAnalysisOverviewFilter.repeatedFields_, null);
2968
+ };
2969
+ goog.inherits(proto.gateway.web.v1.SessionAnalysisOverviewFilter, jspb.Message);
2970
+ if (goog.DEBUG && !COMPILED) {
2971
+ /**
2972
+ * @public
2973
+ * @override
2974
+ */
2975
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.displayName = 'proto.gateway.web.v1.SessionAnalysisOverviewFilter';
2976
+ }
2977
+ /**
2978
+ * Generated by JsPbCodeGenerator.
2979
+ * @param {Array=} opt_data Optional initial data array, typically from a
2980
+ * server response, or constructed directly in Javascript. The array is used
2981
+ * in place and becomes part of the constructed object. It is not cloned.
2982
+ * If no data is provided, the constructed object will be empty, but still
2983
+ * valid.
2984
+ * @extends {jspb.Message}
2985
+ * @constructor
2986
+ */
2987
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse = function(opt_data) {
2988
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_, null);
2989
+ };
2990
+ goog.inherits(proto.gateway.web.v1.GetSessionAnalysisOverviewResponse, jspb.Message);
2991
+ if (goog.DEBUG && !COMPILED) {
2992
+ /**
2993
+ * @public
2994
+ * @override
2995
+ */
2996
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.displayName = 'proto.gateway.web.v1.GetSessionAnalysisOverviewResponse';
2997
+ }
2998
+ /**
2999
+ * Generated by JsPbCodeGenerator.
3000
+ * @param {Array=} opt_data Optional initial data array, typically from a
3001
+ * server response, or constructed directly in Javascript. The array is used
3002
+ * in place and becomes part of the constructed object. It is not cloned.
3003
+ * If no data is provided, the constructed object will be empty, but still
3004
+ * valid.
3005
+ * @extends {jspb.Message}
3006
+ * @constructor
3007
+ */
3008
+ proto.gateway.web.v1.SessionWorkTypeCount = function(opt_data) {
3009
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3010
+ };
3011
+ goog.inherits(proto.gateway.web.v1.SessionWorkTypeCount, jspb.Message);
3012
+ if (goog.DEBUG && !COMPILED) {
3013
+ /**
3014
+ * @public
3015
+ * @override
3016
+ */
3017
+ proto.gateway.web.v1.SessionWorkTypeCount.displayName = 'proto.gateway.web.v1.SessionWorkTypeCount';
3018
+ }
3019
+ /**
3020
+ * Generated by JsPbCodeGenerator.
3021
+ * @param {Array=} opt_data Optional initial data array, typically from a
3022
+ * server response, or constructed directly in Javascript. The array is used
3023
+ * in place and becomes part of the constructed object. It is not cloned.
3024
+ * If no data is provided, the constructed object will be empty, but still
3025
+ * valid.
3026
+ * @extends {jspb.Message}
3027
+ * @constructor
3028
+ */
3029
+ proto.gateway.web.v1.ScoredSession = function(opt_data) {
3030
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ScoredSession.repeatedFields_, null);
3031
+ };
3032
+ goog.inherits(proto.gateway.web.v1.ScoredSession, jspb.Message);
3033
+ if (goog.DEBUG && !COMPILED) {
3034
+ /**
3035
+ * @public
3036
+ * @override
3037
+ */
3038
+ proto.gateway.web.v1.ScoredSession.displayName = 'proto.gateway.web.v1.ScoredSession';
3039
+ }
2864
3040
  /**
2865
3041
  * Generated by JsPbCodeGenerator.
2866
3042
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -41491,6 +41667,2242 @@ proto.gateway.web.v1.SessionGitBucket.prototype.setCount = function(value) {
41491
41667
 
41492
41668
 
41493
41669
 
41670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41671
+ /**
41672
+ * Creates an object representation of this proto.
41673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41674
+ * Optional fields that are not set will be set to undefined.
41675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41676
+ * For the list of reserved names please see:
41677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41679
+ * JSPB instance for transitional soy proto support:
41680
+ * http://goto/soy-param-migration
41681
+ * @return {!Object}
41682
+ */
41683
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.toObject = function(opt_includeInstance) {
41684
+ return proto.gateway.web.v1.GetSessionTotalsTrendRequest.toObject(opt_includeInstance, this);
41685
+ };
41686
+
41687
+
41688
+ /**
41689
+ * Static version of the {@see toObject} method.
41690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41691
+ * the JSPB instance for transitional soy proto support:
41692
+ * http://goto/soy-param-migration
41693
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} msg The msg instance to transform.
41694
+ * @return {!Object}
41695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41696
+ */
41697
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.toObject = function(includeInstance, msg) {
41698
+ var f, obj = {
41699
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
41700
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
41701
+ activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
41702
+ timeInterval: jspb.Message.getFieldWithDefault(msg, 4, 0),
41703
+ timeZone: jspb.Message.getFieldWithDefault(msg, 5, "")
41704
+ };
41705
+
41706
+ if (includeInstance) {
41707
+ obj.$jspbMessageInstance = msg;
41708
+ }
41709
+ return obj;
41710
+ };
41711
+ }
41712
+
41713
+
41714
+ /**
41715
+ * Deserializes binary data (in protobuf wire format).
41716
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
41717
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest}
41718
+ */
41719
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.deserializeBinary = function(bytes) {
41720
+ var reader = new jspb.BinaryReader(bytes);
41721
+ var msg = new proto.gateway.web.v1.GetSessionTotalsTrendRequest;
41722
+ return proto.gateway.web.v1.GetSessionTotalsTrendRequest.deserializeBinaryFromReader(msg, reader);
41723
+ };
41724
+
41725
+
41726
+ /**
41727
+ * Deserializes binary data (in protobuf wire format) from the
41728
+ * given reader into the given message object.
41729
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} msg The message object to deserialize into.
41730
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
41731
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest}
41732
+ */
41733
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.deserializeBinaryFromReader = function(msg, reader) {
41734
+ while (reader.nextField()) {
41735
+ if (reader.isEndGroup()) {
41736
+ break;
41737
+ }
41738
+ var field = reader.getFieldNumber();
41739
+ switch (field) {
41740
+ case 1:
41741
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
41742
+ msg.setOrganizationId(value);
41743
+ break;
41744
+ case 2:
41745
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
41746
+ msg.setProjectId(value);
41747
+ break;
41748
+ case 3:
41749
+ var value = new google_protobuf_timestamp_pb.Timestamp;
41750
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
41751
+ msg.setActiveAfter(value);
41752
+ break;
41753
+ case 4:
41754
+ var value = /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (reader.readEnum());
41755
+ msg.setTimeInterval(value);
41756
+ break;
41757
+ case 5:
41758
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
41759
+ msg.setTimeZone(value);
41760
+ break;
41761
+ default:
41762
+ reader.skipField();
41763
+ break;
41764
+ }
41765
+ }
41766
+ return msg;
41767
+ };
41768
+
41769
+
41770
+ /**
41771
+ * Serializes the message to binary data (in protobuf wire format).
41772
+ * @return {!Uint8Array}
41773
+ */
41774
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.serializeBinary = function() {
41775
+ var writer = new jspb.BinaryWriter();
41776
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.serializeBinaryToWriter(this, writer);
41777
+ return writer.getResultBuffer();
41778
+ };
41779
+
41780
+
41781
+ /**
41782
+ * Serializes the given message to binary data (in protobuf wire
41783
+ * format), writing to the given BinaryWriter.
41784
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} message
41785
+ * @param {!jspb.BinaryWriter} writer
41786
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41787
+ */
41788
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.serializeBinaryToWriter = function(message, writer) {
41789
+ var f = undefined;
41790
+ f = message.getOrganizationId();
41791
+ if (f.length > 0) {
41792
+ writer.writeString(
41793
+ 1,
41794
+ f
41795
+ );
41796
+ }
41797
+ f = message.getProjectId();
41798
+ if (f.length > 0) {
41799
+ writer.writeString(
41800
+ 2,
41801
+ f
41802
+ );
41803
+ }
41804
+ f = message.getActiveAfter();
41805
+ if (f != null) {
41806
+ writer.writeMessage(
41807
+ 3,
41808
+ f,
41809
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
41810
+ );
41811
+ }
41812
+ f = message.getTimeInterval();
41813
+ if (f !== 0.0) {
41814
+ writer.writeEnum(
41815
+ 4,
41816
+ f
41817
+ );
41818
+ }
41819
+ f = message.getTimeZone();
41820
+ if (f.length > 0) {
41821
+ writer.writeString(
41822
+ 5,
41823
+ f
41824
+ );
41825
+ }
41826
+ };
41827
+
41828
+
41829
+ /**
41830
+ * optional string organization_id = 1;
41831
+ * @return {string}
41832
+ */
41833
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.getOrganizationId = function() {
41834
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
41835
+ };
41836
+
41837
+
41838
+ /**
41839
+ * @param {string} value
41840
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41841
+ */
41842
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.setOrganizationId = function(value) {
41843
+ return jspb.Message.setProto3StringField(this, 1, value);
41844
+ };
41845
+
41846
+
41847
+ /**
41848
+ * optional string project_id = 2;
41849
+ * @return {string}
41850
+ */
41851
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.getProjectId = function() {
41852
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
41853
+ };
41854
+
41855
+
41856
+ /**
41857
+ * @param {string} value
41858
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41859
+ */
41860
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.setProjectId = function(value) {
41861
+ return jspb.Message.setProto3StringField(this, 2, value);
41862
+ };
41863
+
41864
+
41865
+ /**
41866
+ * optional google.protobuf.Timestamp active_after = 3;
41867
+ * @return {?proto.google.protobuf.Timestamp}
41868
+ */
41869
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.getActiveAfter = function() {
41870
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
41871
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
41872
+ };
41873
+
41874
+
41875
+ /**
41876
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
41877
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41878
+ */
41879
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.setActiveAfter = function(value) {
41880
+ return jspb.Message.setWrapperField(this, 3, value);
41881
+ };
41882
+
41883
+
41884
+ /**
41885
+ * Clears the message field making it undefined.
41886
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41887
+ */
41888
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.clearActiveAfter = function() {
41889
+ return this.setActiveAfter(undefined);
41890
+ };
41891
+
41892
+
41893
+ /**
41894
+ * Returns whether this field is set.
41895
+ * @return {boolean}
41896
+ */
41897
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.hasActiveAfter = function() {
41898
+ return jspb.Message.getField(this, 3) != null;
41899
+ };
41900
+
41901
+
41902
+ /**
41903
+ * optional AnalyticsTimeInterval time_interval = 4;
41904
+ * @return {!proto.gateway.web.v1.AnalyticsTimeInterval}
41905
+ */
41906
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.getTimeInterval = function() {
41907
+ return /** @type {!proto.gateway.web.v1.AnalyticsTimeInterval} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
41908
+ };
41909
+
41910
+
41911
+ /**
41912
+ * @param {!proto.gateway.web.v1.AnalyticsTimeInterval} value
41913
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41914
+ */
41915
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.setTimeInterval = function(value) {
41916
+ return jspb.Message.setProto3EnumField(this, 4, value);
41917
+ };
41918
+
41919
+
41920
+ /**
41921
+ * optional string time_zone = 5;
41922
+ * @return {string}
41923
+ */
41924
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.getTimeZone = function() {
41925
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
41926
+ };
41927
+
41928
+
41929
+ /**
41930
+ * @param {string} value
41931
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendRequest} returns this
41932
+ */
41933
+ proto.gateway.web.v1.GetSessionTotalsTrendRequest.prototype.setTimeZone = function(value) {
41934
+ return jspb.Message.setProto3StringField(this, 5, value);
41935
+ };
41936
+
41937
+
41938
+
41939
+ /**
41940
+ * List of repeated fields within this message type.
41941
+ * @private {!Array<number>}
41942
+ * @const
41943
+ */
41944
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.repeatedFields_ = [2];
41945
+
41946
+
41947
+
41948
+ if (jspb.Message.GENERATE_TO_OBJECT) {
41949
+ /**
41950
+ * Creates an object representation of this proto.
41951
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
41952
+ * Optional fields that are not set will be set to undefined.
41953
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
41954
+ * For the list of reserved names please see:
41955
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
41956
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
41957
+ * JSPB instance for transitional soy proto support:
41958
+ * http://goto/soy-param-migration
41959
+ * @return {!Object}
41960
+ */
41961
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.toObject = function(opt_includeInstance) {
41962
+ return proto.gateway.web.v1.GetSessionTotalsTrendResponse.toObject(opt_includeInstance, this);
41963
+ };
41964
+
41965
+
41966
+ /**
41967
+ * Static version of the {@see toObject} method.
41968
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
41969
+ * the JSPB instance for transitional soy proto support:
41970
+ * http://goto/soy-param-migration
41971
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} msg The msg instance to transform.
41972
+ * @return {!Object}
41973
+ * @suppress {unusedLocalVariables} f is only used for nested messages
41974
+ */
41975
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.toObject = function(includeInstance, msg) {
41976
+ var f, obj = {
41977
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
41978
+ bucketsList: jspb.Message.toObjectList(msg.getBucketsList(),
41979
+ proto.gateway.web.v1.SessionTotalsBucket.toObject, includeInstance),
41980
+ timeZone: jspb.Message.getFieldWithDefault(msg, 3, "")
41981
+ };
41982
+
41983
+ if (includeInstance) {
41984
+ obj.$jspbMessageInstance = msg;
41985
+ }
41986
+ return obj;
41987
+ };
41988
+ }
41989
+
41990
+
41991
+ /**
41992
+ * Deserializes binary data (in protobuf wire format).
41993
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
41994
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse}
41995
+ */
41996
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.deserializeBinary = function(bytes) {
41997
+ var reader = new jspb.BinaryReader(bytes);
41998
+ var msg = new proto.gateway.web.v1.GetSessionTotalsTrendResponse;
41999
+ return proto.gateway.web.v1.GetSessionTotalsTrendResponse.deserializeBinaryFromReader(msg, reader);
42000
+ };
42001
+
42002
+
42003
+ /**
42004
+ * Deserializes binary data (in protobuf wire format) from the
42005
+ * given reader into the given message object.
42006
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} msg The message object to deserialize into.
42007
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42008
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse}
42009
+ */
42010
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.deserializeBinaryFromReader = function(msg, reader) {
42011
+ while (reader.nextField()) {
42012
+ if (reader.isEndGroup()) {
42013
+ break;
42014
+ }
42015
+ var field = reader.getFieldNumber();
42016
+ switch (field) {
42017
+ case 1:
42018
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
42019
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
42020
+ msg.setStatus(value);
42021
+ break;
42022
+ case 2:
42023
+ var value = new proto.gateway.web.v1.SessionTotalsBucket;
42024
+ reader.readMessage(value,proto.gateway.web.v1.SessionTotalsBucket.deserializeBinaryFromReader);
42025
+ msg.addBuckets(value);
42026
+ break;
42027
+ case 3:
42028
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
42029
+ msg.setTimeZone(value);
42030
+ break;
42031
+ default:
42032
+ reader.skipField();
42033
+ break;
42034
+ }
42035
+ }
42036
+ return msg;
42037
+ };
42038
+
42039
+
42040
+ /**
42041
+ * Serializes the message to binary data (in protobuf wire format).
42042
+ * @return {!Uint8Array}
42043
+ */
42044
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.serializeBinary = function() {
42045
+ var writer = new jspb.BinaryWriter();
42046
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.serializeBinaryToWriter(this, writer);
42047
+ return writer.getResultBuffer();
42048
+ };
42049
+
42050
+
42051
+ /**
42052
+ * Serializes the given message to binary data (in protobuf wire
42053
+ * format), writing to the given BinaryWriter.
42054
+ * @param {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} message
42055
+ * @param {!jspb.BinaryWriter} writer
42056
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42057
+ */
42058
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.serializeBinaryToWriter = function(message, writer) {
42059
+ var f = undefined;
42060
+ f = message.getStatus();
42061
+ if (f != null) {
42062
+ writer.writeMessage(
42063
+ 1,
42064
+ f,
42065
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
42066
+ );
42067
+ }
42068
+ f = message.getBucketsList();
42069
+ if (f.length > 0) {
42070
+ writer.writeRepeatedMessage(
42071
+ 2,
42072
+ f,
42073
+ proto.gateway.web.v1.SessionTotalsBucket.serializeBinaryToWriter
42074
+ );
42075
+ }
42076
+ f = message.getTimeZone();
42077
+ if (f.length > 0) {
42078
+ writer.writeString(
42079
+ 3,
42080
+ f
42081
+ );
42082
+ }
42083
+ };
42084
+
42085
+
42086
+ /**
42087
+ * optional gateway.common.v1.ResponseStatus status = 1;
42088
+ * @return {?proto.gateway.common.v1.ResponseStatus}
42089
+ */
42090
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.getStatus = function() {
42091
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
42092
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
42093
+ };
42094
+
42095
+
42096
+ /**
42097
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
42098
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} returns this
42099
+ */
42100
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.setStatus = function(value) {
42101
+ return jspb.Message.setWrapperField(this, 1, value);
42102
+ };
42103
+
42104
+
42105
+ /**
42106
+ * Clears the message field making it undefined.
42107
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} returns this
42108
+ */
42109
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.clearStatus = function() {
42110
+ return this.setStatus(undefined);
42111
+ };
42112
+
42113
+
42114
+ /**
42115
+ * Returns whether this field is set.
42116
+ * @return {boolean}
42117
+ */
42118
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.hasStatus = function() {
42119
+ return jspb.Message.getField(this, 1) != null;
42120
+ };
42121
+
42122
+
42123
+ /**
42124
+ * repeated SessionTotalsBucket buckets = 2;
42125
+ * @return {!Array<!proto.gateway.web.v1.SessionTotalsBucket>}
42126
+ */
42127
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.getBucketsList = function() {
42128
+ return /** @type{!Array<!proto.gateway.web.v1.SessionTotalsBucket>} */ (
42129
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionTotalsBucket, 2));
42130
+ };
42131
+
42132
+
42133
+ /**
42134
+ * @param {!Array<!proto.gateway.web.v1.SessionTotalsBucket>} value
42135
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} returns this
42136
+ */
42137
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.setBucketsList = function(value) {
42138
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
42139
+ };
42140
+
42141
+
42142
+ /**
42143
+ * @param {!proto.gateway.web.v1.SessionTotalsBucket=} opt_value
42144
+ * @param {number=} opt_index
42145
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket}
42146
+ */
42147
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.addBuckets = function(opt_value, opt_index) {
42148
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.SessionTotalsBucket, opt_index);
42149
+ };
42150
+
42151
+
42152
+ /**
42153
+ * Clears the list making it empty but non-null.
42154
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} returns this
42155
+ */
42156
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.clearBucketsList = function() {
42157
+ return this.setBucketsList([]);
42158
+ };
42159
+
42160
+
42161
+ /**
42162
+ * optional string time_zone = 3;
42163
+ * @return {string}
42164
+ */
42165
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.getTimeZone = function() {
42166
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
42167
+ };
42168
+
42169
+
42170
+ /**
42171
+ * @param {string} value
42172
+ * @return {!proto.gateway.web.v1.GetSessionTotalsTrendResponse} returns this
42173
+ */
42174
+ proto.gateway.web.v1.GetSessionTotalsTrendResponse.prototype.setTimeZone = function(value) {
42175
+ return jspb.Message.setProto3StringField(this, 3, value);
42176
+ };
42177
+
42178
+
42179
+
42180
+
42181
+
42182
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42183
+ /**
42184
+ * Creates an object representation of this proto.
42185
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42186
+ * Optional fields that are not set will be set to undefined.
42187
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42188
+ * For the list of reserved names please see:
42189
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42190
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42191
+ * JSPB instance for transitional soy proto support:
42192
+ * http://goto/soy-param-migration
42193
+ * @return {!Object}
42194
+ */
42195
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.toObject = function(opt_includeInstance) {
42196
+ return proto.gateway.web.v1.SessionTotalsBucket.toObject(opt_includeInstance, this);
42197
+ };
42198
+
42199
+
42200
+ /**
42201
+ * Static version of the {@see toObject} method.
42202
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42203
+ * the JSPB instance for transitional soy proto support:
42204
+ * http://goto/soy-param-migration
42205
+ * @param {!proto.gateway.web.v1.SessionTotalsBucket} msg The msg instance to transform.
42206
+ * @return {!Object}
42207
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42208
+ */
42209
+ proto.gateway.web.v1.SessionTotalsBucket.toObject = function(includeInstance, msg) {
42210
+ var f, obj = {
42211
+ bucketStart: (f = msg.getBucketStart()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42212
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 2, ""),
42213
+ sessions: jspb.Message.getFieldWithDefault(msg, 3, 0),
42214
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 4, 0),
42215
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 5, 0),
42216
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 6, 0),
42217
+ providerCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
42218
+ subscriptionFacilityUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
42219
+ };
42220
+
42221
+ if (includeInstance) {
42222
+ obj.$jspbMessageInstance = msg;
42223
+ }
42224
+ return obj;
42225
+ };
42226
+ }
42227
+
42228
+
42229
+ /**
42230
+ * Deserializes binary data (in protobuf wire format).
42231
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
42232
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket}
42233
+ */
42234
+ proto.gateway.web.v1.SessionTotalsBucket.deserializeBinary = function(bytes) {
42235
+ var reader = new jspb.BinaryReader(bytes);
42236
+ var msg = new proto.gateway.web.v1.SessionTotalsBucket;
42237
+ return proto.gateway.web.v1.SessionTotalsBucket.deserializeBinaryFromReader(msg, reader);
42238
+ };
42239
+
42240
+
42241
+ /**
42242
+ * Deserializes binary data (in protobuf wire format) from the
42243
+ * given reader into the given message object.
42244
+ * @param {!proto.gateway.web.v1.SessionTotalsBucket} msg The message object to deserialize into.
42245
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42246
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket}
42247
+ */
42248
+ proto.gateway.web.v1.SessionTotalsBucket.deserializeBinaryFromReader = function(msg, reader) {
42249
+ while (reader.nextField()) {
42250
+ if (reader.isEndGroup()) {
42251
+ break;
42252
+ }
42253
+ var field = reader.getFieldNumber();
42254
+ switch (field) {
42255
+ case 1:
42256
+ var value = new google_protobuf_timestamp_pb.Timestamp;
42257
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
42258
+ msg.setBucketStart(value);
42259
+ break;
42260
+ case 2:
42261
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
42262
+ msg.setSourceSystem(value);
42263
+ break;
42264
+ case 3:
42265
+ var value = /** @type {number} */ (reader.readUint64());
42266
+ msg.setSessions(value);
42267
+ break;
42268
+ case 4:
42269
+ var value = /** @type {number} */ (reader.readUint64());
42270
+ msg.setModelCalls(value);
42271
+ break;
42272
+ case 5:
42273
+ var value = /** @type {number} */ (reader.readUint64());
42274
+ msg.setInputTokens(value);
42275
+ break;
42276
+ case 6:
42277
+ var value = /** @type {number} */ (reader.readUint64());
42278
+ msg.setOutputTokens(value);
42279
+ break;
42280
+ case 7:
42281
+ var value = /** @type {number} */ (reader.readDouble());
42282
+ msg.setProviderCostUsd(value);
42283
+ break;
42284
+ case 8:
42285
+ var value = /** @type {number} */ (reader.readDouble());
42286
+ msg.setSubscriptionFacilityUsd(value);
42287
+ break;
42288
+ default:
42289
+ reader.skipField();
42290
+ break;
42291
+ }
42292
+ }
42293
+ return msg;
42294
+ };
42295
+
42296
+
42297
+ /**
42298
+ * Serializes the message to binary data (in protobuf wire format).
42299
+ * @return {!Uint8Array}
42300
+ */
42301
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.serializeBinary = function() {
42302
+ var writer = new jspb.BinaryWriter();
42303
+ proto.gateway.web.v1.SessionTotalsBucket.serializeBinaryToWriter(this, writer);
42304
+ return writer.getResultBuffer();
42305
+ };
42306
+
42307
+
42308
+ /**
42309
+ * Serializes the given message to binary data (in protobuf wire
42310
+ * format), writing to the given BinaryWriter.
42311
+ * @param {!proto.gateway.web.v1.SessionTotalsBucket} message
42312
+ * @param {!jspb.BinaryWriter} writer
42313
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42314
+ */
42315
+ proto.gateway.web.v1.SessionTotalsBucket.serializeBinaryToWriter = function(message, writer) {
42316
+ var f = undefined;
42317
+ f = message.getBucketStart();
42318
+ if (f != null) {
42319
+ writer.writeMessage(
42320
+ 1,
42321
+ f,
42322
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
42323
+ );
42324
+ }
42325
+ f = message.getSourceSystem();
42326
+ if (f.length > 0) {
42327
+ writer.writeString(
42328
+ 2,
42329
+ f
42330
+ );
42331
+ }
42332
+ f = message.getSessions();
42333
+ if (f !== 0) {
42334
+ writer.writeUint64(
42335
+ 3,
42336
+ f
42337
+ );
42338
+ }
42339
+ f = message.getModelCalls();
42340
+ if (f !== 0) {
42341
+ writer.writeUint64(
42342
+ 4,
42343
+ f
42344
+ );
42345
+ }
42346
+ f = message.getInputTokens();
42347
+ if (f !== 0) {
42348
+ writer.writeUint64(
42349
+ 5,
42350
+ f
42351
+ );
42352
+ }
42353
+ f = message.getOutputTokens();
42354
+ if (f !== 0) {
42355
+ writer.writeUint64(
42356
+ 6,
42357
+ f
42358
+ );
42359
+ }
42360
+ f = message.getProviderCostUsd();
42361
+ if (f !== 0.0) {
42362
+ writer.writeDouble(
42363
+ 7,
42364
+ f
42365
+ );
42366
+ }
42367
+ f = message.getSubscriptionFacilityUsd();
42368
+ if (f !== 0.0) {
42369
+ writer.writeDouble(
42370
+ 8,
42371
+ f
42372
+ );
42373
+ }
42374
+ };
42375
+
42376
+
42377
+ /**
42378
+ * optional google.protobuf.Timestamp bucket_start = 1;
42379
+ * @return {?proto.google.protobuf.Timestamp}
42380
+ */
42381
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getBucketStart = function() {
42382
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
42383
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
42384
+ };
42385
+
42386
+
42387
+ /**
42388
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
42389
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42390
+ */
42391
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setBucketStart = function(value) {
42392
+ return jspb.Message.setWrapperField(this, 1, value);
42393
+ };
42394
+
42395
+
42396
+ /**
42397
+ * Clears the message field making it undefined.
42398
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42399
+ */
42400
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.clearBucketStart = function() {
42401
+ return this.setBucketStart(undefined);
42402
+ };
42403
+
42404
+
42405
+ /**
42406
+ * Returns whether this field is set.
42407
+ * @return {boolean}
42408
+ */
42409
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.hasBucketStart = function() {
42410
+ return jspb.Message.getField(this, 1) != null;
42411
+ };
42412
+
42413
+
42414
+ /**
42415
+ * optional string source_system = 2;
42416
+ * @return {string}
42417
+ */
42418
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getSourceSystem = function() {
42419
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
42420
+ };
42421
+
42422
+
42423
+ /**
42424
+ * @param {string} value
42425
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42426
+ */
42427
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setSourceSystem = function(value) {
42428
+ return jspb.Message.setProto3StringField(this, 2, value);
42429
+ };
42430
+
42431
+
42432
+ /**
42433
+ * optional uint64 sessions = 3;
42434
+ * @return {number}
42435
+ */
42436
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getSessions = function() {
42437
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
42438
+ };
42439
+
42440
+
42441
+ /**
42442
+ * @param {number} value
42443
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42444
+ */
42445
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setSessions = function(value) {
42446
+ return jspb.Message.setProto3IntField(this, 3, value);
42447
+ };
42448
+
42449
+
42450
+ /**
42451
+ * optional uint64 model_calls = 4;
42452
+ * @return {number}
42453
+ */
42454
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getModelCalls = function() {
42455
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
42456
+ };
42457
+
42458
+
42459
+ /**
42460
+ * @param {number} value
42461
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42462
+ */
42463
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setModelCalls = function(value) {
42464
+ return jspb.Message.setProto3IntField(this, 4, value);
42465
+ };
42466
+
42467
+
42468
+ /**
42469
+ * optional uint64 input_tokens = 5;
42470
+ * @return {number}
42471
+ */
42472
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getInputTokens = function() {
42473
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
42474
+ };
42475
+
42476
+
42477
+ /**
42478
+ * @param {number} value
42479
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42480
+ */
42481
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setInputTokens = function(value) {
42482
+ return jspb.Message.setProto3IntField(this, 5, value);
42483
+ };
42484
+
42485
+
42486
+ /**
42487
+ * optional uint64 output_tokens = 6;
42488
+ * @return {number}
42489
+ */
42490
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getOutputTokens = function() {
42491
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
42492
+ };
42493
+
42494
+
42495
+ /**
42496
+ * @param {number} value
42497
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42498
+ */
42499
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setOutputTokens = function(value) {
42500
+ return jspb.Message.setProto3IntField(this, 6, value);
42501
+ };
42502
+
42503
+
42504
+ /**
42505
+ * optional double provider_cost_usd = 7;
42506
+ * @return {number}
42507
+ */
42508
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getProviderCostUsd = function() {
42509
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
42510
+ };
42511
+
42512
+
42513
+ /**
42514
+ * @param {number} value
42515
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42516
+ */
42517
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setProviderCostUsd = function(value) {
42518
+ return jspb.Message.setProto3FloatField(this, 7, value);
42519
+ };
42520
+
42521
+
42522
+ /**
42523
+ * optional double subscription_facility_usd = 8;
42524
+ * @return {number}
42525
+ */
42526
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.getSubscriptionFacilityUsd = function() {
42527
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
42528
+ };
42529
+
42530
+
42531
+ /**
42532
+ * @param {number} value
42533
+ * @return {!proto.gateway.web.v1.SessionTotalsBucket} returns this
42534
+ */
42535
+ proto.gateway.web.v1.SessionTotalsBucket.prototype.setSubscriptionFacilityUsd = function(value) {
42536
+ return jspb.Message.setProto3FloatField(this, 8, value);
42537
+ };
42538
+
42539
+
42540
+
42541
+
42542
+
42543
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42544
+ /**
42545
+ * Creates an object representation of this proto.
42546
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42547
+ * Optional fields that are not set will be set to undefined.
42548
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42549
+ * For the list of reserved names please see:
42550
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42551
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42552
+ * JSPB instance for transitional soy proto support:
42553
+ * http://goto/soy-param-migration
42554
+ * @return {!Object}
42555
+ */
42556
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.toObject = function(opt_includeInstance) {
42557
+ return proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.toObject(opt_includeInstance, this);
42558
+ };
42559
+
42560
+
42561
+ /**
42562
+ * Static version of the {@see toObject} method.
42563
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42564
+ * the JSPB instance for transitional soy proto support:
42565
+ * http://goto/soy-param-migration
42566
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} msg The msg instance to transform.
42567
+ * @return {!Object}
42568
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42569
+ */
42570
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.toObject = function(includeInstance, msg) {
42571
+ var f, obj = {
42572
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
42573
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
42574
+ activeAfter: (f = msg.getActiveAfter()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
42575
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.SessionAnalysisOverviewFilter.toObject(includeInstance, f)
42576
+ };
42577
+
42578
+ if (includeInstance) {
42579
+ obj.$jspbMessageInstance = msg;
42580
+ }
42581
+ return obj;
42582
+ };
42583
+ }
42584
+
42585
+
42586
+ /**
42587
+ * Deserializes binary data (in protobuf wire format).
42588
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
42589
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest}
42590
+ */
42591
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.deserializeBinary = function(bytes) {
42592
+ var reader = new jspb.BinaryReader(bytes);
42593
+ var msg = new proto.gateway.web.v1.GetSessionAnalysisOverviewRequest;
42594
+ return proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.deserializeBinaryFromReader(msg, reader);
42595
+ };
42596
+
42597
+
42598
+ /**
42599
+ * Deserializes binary data (in protobuf wire format) from the
42600
+ * given reader into the given message object.
42601
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} msg The message object to deserialize into.
42602
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42603
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest}
42604
+ */
42605
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.deserializeBinaryFromReader = function(msg, reader) {
42606
+ while (reader.nextField()) {
42607
+ if (reader.isEndGroup()) {
42608
+ break;
42609
+ }
42610
+ var field = reader.getFieldNumber();
42611
+ switch (field) {
42612
+ case 1:
42613
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
42614
+ msg.setOrganizationId(value);
42615
+ break;
42616
+ case 2:
42617
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
42618
+ msg.setProjectId(value);
42619
+ break;
42620
+ case 3:
42621
+ var value = new google_protobuf_timestamp_pb.Timestamp;
42622
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
42623
+ msg.setActiveAfter(value);
42624
+ break;
42625
+ case 4:
42626
+ var value = new proto.gateway.web.v1.SessionAnalysisOverviewFilter;
42627
+ reader.readMessage(value,proto.gateway.web.v1.SessionAnalysisOverviewFilter.deserializeBinaryFromReader);
42628
+ msg.setFilter(value);
42629
+ break;
42630
+ default:
42631
+ reader.skipField();
42632
+ break;
42633
+ }
42634
+ }
42635
+ return msg;
42636
+ };
42637
+
42638
+
42639
+ /**
42640
+ * Serializes the message to binary data (in protobuf wire format).
42641
+ * @return {!Uint8Array}
42642
+ */
42643
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.serializeBinary = function() {
42644
+ var writer = new jspb.BinaryWriter();
42645
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.serializeBinaryToWriter(this, writer);
42646
+ return writer.getResultBuffer();
42647
+ };
42648
+
42649
+
42650
+ /**
42651
+ * Serializes the given message to binary data (in protobuf wire
42652
+ * format), writing to the given BinaryWriter.
42653
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} message
42654
+ * @param {!jspb.BinaryWriter} writer
42655
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42656
+ */
42657
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.serializeBinaryToWriter = function(message, writer) {
42658
+ var f = undefined;
42659
+ f = message.getOrganizationId();
42660
+ if (f.length > 0) {
42661
+ writer.writeString(
42662
+ 1,
42663
+ f
42664
+ );
42665
+ }
42666
+ f = message.getProjectId();
42667
+ if (f.length > 0) {
42668
+ writer.writeString(
42669
+ 2,
42670
+ f
42671
+ );
42672
+ }
42673
+ f = message.getActiveAfter();
42674
+ if (f != null) {
42675
+ writer.writeMessage(
42676
+ 3,
42677
+ f,
42678
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
42679
+ );
42680
+ }
42681
+ f = message.getFilter();
42682
+ if (f != null) {
42683
+ writer.writeMessage(
42684
+ 4,
42685
+ f,
42686
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.serializeBinaryToWriter
42687
+ );
42688
+ }
42689
+ };
42690
+
42691
+
42692
+ /**
42693
+ * optional string organization_id = 1;
42694
+ * @return {string}
42695
+ */
42696
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.getOrganizationId = function() {
42697
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
42698
+ };
42699
+
42700
+
42701
+ /**
42702
+ * @param {string} value
42703
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42704
+ */
42705
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.setOrganizationId = function(value) {
42706
+ return jspb.Message.setProto3StringField(this, 1, value);
42707
+ };
42708
+
42709
+
42710
+ /**
42711
+ * optional string project_id = 2;
42712
+ * @return {string}
42713
+ */
42714
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.getProjectId = function() {
42715
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
42716
+ };
42717
+
42718
+
42719
+ /**
42720
+ * @param {string} value
42721
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42722
+ */
42723
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.setProjectId = function(value) {
42724
+ return jspb.Message.setProto3StringField(this, 2, value);
42725
+ };
42726
+
42727
+
42728
+ /**
42729
+ * optional google.protobuf.Timestamp active_after = 3;
42730
+ * @return {?proto.google.protobuf.Timestamp}
42731
+ */
42732
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.getActiveAfter = function() {
42733
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
42734
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
42735
+ };
42736
+
42737
+
42738
+ /**
42739
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
42740
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42741
+ */
42742
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.setActiveAfter = function(value) {
42743
+ return jspb.Message.setWrapperField(this, 3, value);
42744
+ };
42745
+
42746
+
42747
+ /**
42748
+ * Clears the message field making it undefined.
42749
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42750
+ */
42751
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.clearActiveAfter = function() {
42752
+ return this.setActiveAfter(undefined);
42753
+ };
42754
+
42755
+
42756
+ /**
42757
+ * Returns whether this field is set.
42758
+ * @return {boolean}
42759
+ */
42760
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.hasActiveAfter = function() {
42761
+ return jspb.Message.getField(this, 3) != null;
42762
+ };
42763
+
42764
+
42765
+ /**
42766
+ * optional SessionAnalysisOverviewFilter filter = 4;
42767
+ * @return {?proto.gateway.web.v1.SessionAnalysisOverviewFilter}
42768
+ */
42769
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.getFilter = function() {
42770
+ return /** @type{?proto.gateway.web.v1.SessionAnalysisOverviewFilter} */ (
42771
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.SessionAnalysisOverviewFilter, 4));
42772
+ };
42773
+
42774
+
42775
+ /**
42776
+ * @param {?proto.gateway.web.v1.SessionAnalysisOverviewFilter|undefined} value
42777
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42778
+ */
42779
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.setFilter = function(value) {
42780
+ return jspb.Message.setWrapperField(this, 4, value);
42781
+ };
42782
+
42783
+
42784
+ /**
42785
+ * Clears the message field making it undefined.
42786
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewRequest} returns this
42787
+ */
42788
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.clearFilter = function() {
42789
+ return this.setFilter(undefined);
42790
+ };
42791
+
42792
+
42793
+ /**
42794
+ * Returns whether this field is set.
42795
+ * @return {boolean}
42796
+ */
42797
+ proto.gateway.web.v1.GetSessionAnalysisOverviewRequest.prototype.hasFilter = function() {
42798
+ return jspb.Message.getField(this, 4) != null;
42799
+ };
42800
+
42801
+
42802
+
42803
+ /**
42804
+ * List of repeated fields within this message type.
42805
+ * @private {!Array<number>}
42806
+ * @const
42807
+ */
42808
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.repeatedFields_ = [1,2];
42809
+
42810
+
42811
+
42812
+ if (jspb.Message.GENERATE_TO_OBJECT) {
42813
+ /**
42814
+ * Creates an object representation of this proto.
42815
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
42816
+ * Optional fields that are not set will be set to undefined.
42817
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
42818
+ * For the list of reserved names please see:
42819
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
42820
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
42821
+ * JSPB instance for transitional soy proto support:
42822
+ * http://goto/soy-param-migration
42823
+ * @return {!Object}
42824
+ */
42825
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.toObject = function(opt_includeInstance) {
42826
+ return proto.gateway.web.v1.SessionAnalysisOverviewFilter.toObject(opt_includeInstance, this);
42827
+ };
42828
+
42829
+
42830
+ /**
42831
+ * Static version of the {@see toObject} method.
42832
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
42833
+ * the JSPB instance for transitional soy proto support:
42834
+ * http://goto/soy-param-migration
42835
+ * @param {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} msg The msg instance to transform.
42836
+ * @return {!Object}
42837
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42838
+ */
42839
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.toObject = function(includeInstance, msg) {
42840
+ var f, obj = {
42841
+ principalsList: jspb.Message.toObjectList(msg.getPrincipalsList(),
42842
+ proto.gateway.web.v1.DailyActivityPrincipal.toObject, includeInstance),
42843
+ sourceSystemsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
42844
+ };
42845
+
42846
+ if (includeInstance) {
42847
+ obj.$jspbMessageInstance = msg;
42848
+ }
42849
+ return obj;
42850
+ };
42851
+ }
42852
+
42853
+
42854
+ /**
42855
+ * Deserializes binary data (in protobuf wire format).
42856
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
42857
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter}
42858
+ */
42859
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.deserializeBinary = function(bytes) {
42860
+ var reader = new jspb.BinaryReader(bytes);
42861
+ var msg = new proto.gateway.web.v1.SessionAnalysisOverviewFilter;
42862
+ return proto.gateway.web.v1.SessionAnalysisOverviewFilter.deserializeBinaryFromReader(msg, reader);
42863
+ };
42864
+
42865
+
42866
+ /**
42867
+ * Deserializes binary data (in protobuf wire format) from the
42868
+ * given reader into the given message object.
42869
+ * @param {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} msg The message object to deserialize into.
42870
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
42871
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter}
42872
+ */
42873
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.deserializeBinaryFromReader = function(msg, reader) {
42874
+ while (reader.nextField()) {
42875
+ if (reader.isEndGroup()) {
42876
+ break;
42877
+ }
42878
+ var field = reader.getFieldNumber();
42879
+ switch (field) {
42880
+ case 1:
42881
+ var value = new proto.gateway.web.v1.DailyActivityPrincipal;
42882
+ reader.readMessage(value,proto.gateway.web.v1.DailyActivityPrincipal.deserializeBinaryFromReader);
42883
+ msg.addPrincipals(value);
42884
+ break;
42885
+ case 2:
42886
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
42887
+ msg.addSourceSystems(value);
42888
+ break;
42889
+ default:
42890
+ reader.skipField();
42891
+ break;
42892
+ }
42893
+ }
42894
+ return msg;
42895
+ };
42896
+
42897
+
42898
+ /**
42899
+ * Serializes the message to binary data (in protobuf wire format).
42900
+ * @return {!Uint8Array}
42901
+ */
42902
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.serializeBinary = function() {
42903
+ var writer = new jspb.BinaryWriter();
42904
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.serializeBinaryToWriter(this, writer);
42905
+ return writer.getResultBuffer();
42906
+ };
42907
+
42908
+
42909
+ /**
42910
+ * Serializes the given message to binary data (in protobuf wire
42911
+ * format), writing to the given BinaryWriter.
42912
+ * @param {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} message
42913
+ * @param {!jspb.BinaryWriter} writer
42914
+ * @suppress {unusedLocalVariables} f is only used for nested messages
42915
+ */
42916
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.serializeBinaryToWriter = function(message, writer) {
42917
+ var f = undefined;
42918
+ f = message.getPrincipalsList();
42919
+ if (f.length > 0) {
42920
+ writer.writeRepeatedMessage(
42921
+ 1,
42922
+ f,
42923
+ proto.gateway.web.v1.DailyActivityPrincipal.serializeBinaryToWriter
42924
+ );
42925
+ }
42926
+ f = message.getSourceSystemsList();
42927
+ if (f.length > 0) {
42928
+ writer.writeRepeatedString(
42929
+ 2,
42930
+ f
42931
+ );
42932
+ }
42933
+ };
42934
+
42935
+
42936
+ /**
42937
+ * repeated DailyActivityPrincipal principals = 1;
42938
+ * @return {!Array<!proto.gateway.web.v1.DailyActivityPrincipal>}
42939
+ */
42940
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.getPrincipalsList = function() {
42941
+ return /** @type{!Array<!proto.gateway.web.v1.DailyActivityPrincipal>} */ (
42942
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.DailyActivityPrincipal, 1));
42943
+ };
42944
+
42945
+
42946
+ /**
42947
+ * @param {!Array<!proto.gateway.web.v1.DailyActivityPrincipal>} value
42948
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} returns this
42949
+ */
42950
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.setPrincipalsList = function(value) {
42951
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
42952
+ };
42953
+
42954
+
42955
+ /**
42956
+ * @param {!proto.gateway.web.v1.DailyActivityPrincipal=} opt_value
42957
+ * @param {number=} opt_index
42958
+ * @return {!proto.gateway.web.v1.DailyActivityPrincipal}
42959
+ */
42960
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.addPrincipals = function(opt_value, opt_index) {
42961
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.DailyActivityPrincipal, opt_index);
42962
+ };
42963
+
42964
+
42965
+ /**
42966
+ * Clears the list making it empty but non-null.
42967
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} returns this
42968
+ */
42969
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.clearPrincipalsList = function() {
42970
+ return this.setPrincipalsList([]);
42971
+ };
42972
+
42973
+
42974
+ /**
42975
+ * repeated string source_systems = 2;
42976
+ * @return {!Array<string>}
42977
+ */
42978
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.getSourceSystemsList = function() {
42979
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
42980
+ };
42981
+
42982
+
42983
+ /**
42984
+ * @param {!Array<string>} value
42985
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} returns this
42986
+ */
42987
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.setSourceSystemsList = function(value) {
42988
+ return jspb.Message.setField(this, 2, value || []);
42989
+ };
42990
+
42991
+
42992
+ /**
42993
+ * @param {string} value
42994
+ * @param {number=} opt_index
42995
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} returns this
42996
+ */
42997
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.addSourceSystems = function(value, opt_index) {
42998
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
42999
+ };
43000
+
43001
+
43002
+ /**
43003
+ * Clears the list making it empty but non-null.
43004
+ * @return {!proto.gateway.web.v1.SessionAnalysisOverviewFilter} returns this
43005
+ */
43006
+ proto.gateway.web.v1.SessionAnalysisOverviewFilter.prototype.clearSourceSystemsList = function() {
43007
+ return this.setSourceSystemsList([]);
43008
+ };
43009
+
43010
+
43011
+
43012
+ /**
43013
+ * List of repeated fields within this message type.
43014
+ * @private {!Array<number>}
43015
+ * @const
43016
+ */
43017
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.repeatedFields_ = [3,4];
43018
+
43019
+
43020
+
43021
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43022
+ /**
43023
+ * Creates an object representation of this proto.
43024
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43025
+ * Optional fields that are not set will be set to undefined.
43026
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43027
+ * For the list of reserved names please see:
43028
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43029
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43030
+ * JSPB instance for transitional soy proto support:
43031
+ * http://goto/soy-param-migration
43032
+ * @return {!Object}
43033
+ */
43034
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.toObject = function(opt_includeInstance) {
43035
+ return proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.toObject(opt_includeInstance, this);
43036
+ };
43037
+
43038
+
43039
+ /**
43040
+ * Static version of the {@see toObject} method.
43041
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43042
+ * the JSPB instance for transitional soy proto support:
43043
+ * http://goto/soy-param-migration
43044
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} msg The msg instance to transform.
43045
+ * @return {!Object}
43046
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43047
+ */
43048
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.toObject = function(includeInstance, msg) {
43049
+ var f, obj = {
43050
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
43051
+ sessions: jspb.Message.getFieldWithDefault(msg, 2, 0),
43052
+ workTypeCountsList: jspb.Message.toObjectList(msg.getWorkTypeCountsList(),
43053
+ proto.gateway.web.v1.SessionWorkTypeCount.toObject, includeInstance),
43054
+ scoredSessionsList: jspb.Message.toObjectList(msg.getScoredSessionsList(),
43055
+ proto.gateway.web.v1.ScoredSession.toObject, includeInstance),
43056
+ scoredSessionCount: jspb.Message.getFieldWithDefault(msg, 5, 0)
43057
+ };
43058
+
43059
+ if (includeInstance) {
43060
+ obj.$jspbMessageInstance = msg;
43061
+ }
43062
+ return obj;
43063
+ };
43064
+ }
43065
+
43066
+
43067
+ /**
43068
+ * Deserializes binary data (in protobuf wire format).
43069
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
43070
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse}
43071
+ */
43072
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.deserializeBinary = function(bytes) {
43073
+ var reader = new jspb.BinaryReader(bytes);
43074
+ var msg = new proto.gateway.web.v1.GetSessionAnalysisOverviewResponse;
43075
+ return proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.deserializeBinaryFromReader(msg, reader);
43076
+ };
43077
+
43078
+
43079
+ /**
43080
+ * Deserializes binary data (in protobuf wire format) from the
43081
+ * given reader into the given message object.
43082
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} msg The message object to deserialize into.
43083
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43084
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse}
43085
+ */
43086
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.deserializeBinaryFromReader = function(msg, reader) {
43087
+ while (reader.nextField()) {
43088
+ if (reader.isEndGroup()) {
43089
+ break;
43090
+ }
43091
+ var field = reader.getFieldNumber();
43092
+ switch (field) {
43093
+ case 1:
43094
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
43095
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
43096
+ msg.setStatus(value);
43097
+ break;
43098
+ case 2:
43099
+ var value = /** @type {number} */ (reader.readUint64());
43100
+ msg.setSessions(value);
43101
+ break;
43102
+ case 3:
43103
+ var value = new proto.gateway.web.v1.SessionWorkTypeCount;
43104
+ reader.readMessage(value,proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinaryFromReader);
43105
+ msg.addWorkTypeCounts(value);
43106
+ break;
43107
+ case 4:
43108
+ var value = new proto.gateway.web.v1.ScoredSession;
43109
+ reader.readMessage(value,proto.gateway.web.v1.ScoredSession.deserializeBinaryFromReader);
43110
+ msg.addScoredSessions(value);
43111
+ break;
43112
+ case 5:
43113
+ var value = /** @type {number} */ (reader.readUint64());
43114
+ msg.setScoredSessionCount(value);
43115
+ break;
43116
+ default:
43117
+ reader.skipField();
43118
+ break;
43119
+ }
43120
+ }
43121
+ return msg;
43122
+ };
43123
+
43124
+
43125
+ /**
43126
+ * Serializes the message to binary data (in protobuf wire format).
43127
+ * @return {!Uint8Array}
43128
+ */
43129
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.serializeBinary = function() {
43130
+ var writer = new jspb.BinaryWriter();
43131
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.serializeBinaryToWriter(this, writer);
43132
+ return writer.getResultBuffer();
43133
+ };
43134
+
43135
+
43136
+ /**
43137
+ * Serializes the given message to binary data (in protobuf wire
43138
+ * format), writing to the given BinaryWriter.
43139
+ * @param {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} message
43140
+ * @param {!jspb.BinaryWriter} writer
43141
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43142
+ */
43143
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.serializeBinaryToWriter = function(message, writer) {
43144
+ var f = undefined;
43145
+ f = message.getStatus();
43146
+ if (f != null) {
43147
+ writer.writeMessage(
43148
+ 1,
43149
+ f,
43150
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
43151
+ );
43152
+ }
43153
+ f = message.getSessions();
43154
+ if (f !== 0) {
43155
+ writer.writeUint64(
43156
+ 2,
43157
+ f
43158
+ );
43159
+ }
43160
+ f = message.getWorkTypeCountsList();
43161
+ if (f.length > 0) {
43162
+ writer.writeRepeatedMessage(
43163
+ 3,
43164
+ f,
43165
+ proto.gateway.web.v1.SessionWorkTypeCount.serializeBinaryToWriter
43166
+ );
43167
+ }
43168
+ f = message.getScoredSessionsList();
43169
+ if (f.length > 0) {
43170
+ writer.writeRepeatedMessage(
43171
+ 4,
43172
+ f,
43173
+ proto.gateway.web.v1.ScoredSession.serializeBinaryToWriter
43174
+ );
43175
+ }
43176
+ f = message.getScoredSessionCount();
43177
+ if (f !== 0) {
43178
+ writer.writeUint64(
43179
+ 5,
43180
+ f
43181
+ );
43182
+ }
43183
+ };
43184
+
43185
+
43186
+ /**
43187
+ * optional gateway.common.v1.ResponseStatus status = 1;
43188
+ * @return {?proto.gateway.common.v1.ResponseStatus}
43189
+ */
43190
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getStatus = function() {
43191
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
43192
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
43193
+ };
43194
+
43195
+
43196
+ /**
43197
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
43198
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43199
+ */
43200
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setStatus = function(value) {
43201
+ return jspb.Message.setWrapperField(this, 1, value);
43202
+ };
43203
+
43204
+
43205
+ /**
43206
+ * Clears the message field making it undefined.
43207
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43208
+ */
43209
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.clearStatus = function() {
43210
+ return this.setStatus(undefined);
43211
+ };
43212
+
43213
+
43214
+ /**
43215
+ * Returns whether this field is set.
43216
+ * @return {boolean}
43217
+ */
43218
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.hasStatus = function() {
43219
+ return jspb.Message.getField(this, 1) != null;
43220
+ };
43221
+
43222
+
43223
+ /**
43224
+ * optional uint64 sessions = 2;
43225
+ * @return {number}
43226
+ */
43227
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getSessions = function() {
43228
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43229
+ };
43230
+
43231
+
43232
+ /**
43233
+ * @param {number} value
43234
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43235
+ */
43236
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setSessions = function(value) {
43237
+ return jspb.Message.setProto3IntField(this, 2, value);
43238
+ };
43239
+
43240
+
43241
+ /**
43242
+ * repeated SessionWorkTypeCount work_type_counts = 3;
43243
+ * @return {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>}
43244
+ */
43245
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getWorkTypeCountsList = function() {
43246
+ return /** @type{!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} */ (
43247
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.SessionWorkTypeCount, 3));
43248
+ };
43249
+
43250
+
43251
+ /**
43252
+ * @param {!Array<!proto.gateway.web.v1.SessionWorkTypeCount>} value
43253
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43254
+ */
43255
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setWorkTypeCountsList = function(value) {
43256
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
43257
+ };
43258
+
43259
+
43260
+ /**
43261
+ * @param {!proto.gateway.web.v1.SessionWorkTypeCount=} opt_value
43262
+ * @param {number=} opt_index
43263
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount}
43264
+ */
43265
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.addWorkTypeCounts = function(opt_value, opt_index) {
43266
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.gateway.web.v1.SessionWorkTypeCount, opt_index);
43267
+ };
43268
+
43269
+
43270
+ /**
43271
+ * Clears the list making it empty but non-null.
43272
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43273
+ */
43274
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.clearWorkTypeCountsList = function() {
43275
+ return this.setWorkTypeCountsList([]);
43276
+ };
43277
+
43278
+
43279
+ /**
43280
+ * repeated ScoredSession scored_sessions = 4;
43281
+ * @return {!Array<!proto.gateway.web.v1.ScoredSession>}
43282
+ */
43283
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getScoredSessionsList = function() {
43284
+ return /** @type{!Array<!proto.gateway.web.v1.ScoredSession>} */ (
43285
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.ScoredSession, 4));
43286
+ };
43287
+
43288
+
43289
+ /**
43290
+ * @param {!Array<!proto.gateway.web.v1.ScoredSession>} value
43291
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43292
+ */
43293
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setScoredSessionsList = function(value) {
43294
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
43295
+ };
43296
+
43297
+
43298
+ /**
43299
+ * @param {!proto.gateway.web.v1.ScoredSession=} opt_value
43300
+ * @param {number=} opt_index
43301
+ * @return {!proto.gateway.web.v1.ScoredSession}
43302
+ */
43303
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.addScoredSessions = function(opt_value, opt_index) {
43304
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.gateway.web.v1.ScoredSession, opt_index);
43305
+ };
43306
+
43307
+
43308
+ /**
43309
+ * Clears the list making it empty but non-null.
43310
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43311
+ */
43312
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.clearScoredSessionsList = function() {
43313
+ return this.setScoredSessionsList([]);
43314
+ };
43315
+
43316
+
43317
+ /**
43318
+ * optional uint64 scored_session_count = 5;
43319
+ * @return {number}
43320
+ */
43321
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.getScoredSessionCount = function() {
43322
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
43323
+ };
43324
+
43325
+
43326
+ /**
43327
+ * @param {number} value
43328
+ * @return {!proto.gateway.web.v1.GetSessionAnalysisOverviewResponse} returns this
43329
+ */
43330
+ proto.gateway.web.v1.GetSessionAnalysisOverviewResponse.prototype.setScoredSessionCount = function(value) {
43331
+ return jspb.Message.setProto3IntField(this, 5, value);
43332
+ };
43333
+
43334
+
43335
+
43336
+
43337
+
43338
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43339
+ /**
43340
+ * Creates an object representation of this proto.
43341
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43342
+ * Optional fields that are not set will be set to undefined.
43343
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43344
+ * For the list of reserved names please see:
43345
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43346
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43347
+ * JSPB instance for transitional soy proto support:
43348
+ * http://goto/soy-param-migration
43349
+ * @return {!Object}
43350
+ */
43351
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.toObject = function(opt_includeInstance) {
43352
+ return proto.gateway.web.v1.SessionWorkTypeCount.toObject(opt_includeInstance, this);
43353
+ };
43354
+
43355
+
43356
+ /**
43357
+ * Static version of the {@see toObject} method.
43358
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43359
+ * the JSPB instance for transitional soy proto support:
43360
+ * http://goto/soy-param-migration
43361
+ * @param {!proto.gateway.web.v1.SessionWorkTypeCount} msg The msg instance to transform.
43362
+ * @return {!Object}
43363
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43364
+ */
43365
+ proto.gateway.web.v1.SessionWorkTypeCount.toObject = function(includeInstance, msg) {
43366
+ var f, obj = {
43367
+ workType: jspb.Message.getFieldWithDefault(msg, 1, ""),
43368
+ sessions: jspb.Message.getFieldWithDefault(msg, 2, 0),
43369
+ lastActivityAt: (f = msg.getLastActivityAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
43370
+ };
43371
+
43372
+ if (includeInstance) {
43373
+ obj.$jspbMessageInstance = msg;
43374
+ }
43375
+ return obj;
43376
+ };
43377
+ }
43378
+
43379
+
43380
+ /**
43381
+ * Deserializes binary data (in protobuf wire format).
43382
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
43383
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount}
43384
+ */
43385
+ proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinary = function(bytes) {
43386
+ var reader = new jspb.BinaryReader(bytes);
43387
+ var msg = new proto.gateway.web.v1.SessionWorkTypeCount;
43388
+ return proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinaryFromReader(msg, reader);
43389
+ };
43390
+
43391
+
43392
+ /**
43393
+ * Deserializes binary data (in protobuf wire format) from the
43394
+ * given reader into the given message object.
43395
+ * @param {!proto.gateway.web.v1.SessionWorkTypeCount} msg The message object to deserialize into.
43396
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43397
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount}
43398
+ */
43399
+ proto.gateway.web.v1.SessionWorkTypeCount.deserializeBinaryFromReader = function(msg, reader) {
43400
+ while (reader.nextField()) {
43401
+ if (reader.isEndGroup()) {
43402
+ break;
43403
+ }
43404
+ var field = reader.getFieldNumber();
43405
+ switch (field) {
43406
+ case 1:
43407
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
43408
+ msg.setWorkType(value);
43409
+ break;
43410
+ case 2:
43411
+ var value = /** @type {number} */ (reader.readUint64());
43412
+ msg.setSessions(value);
43413
+ break;
43414
+ case 3:
43415
+ var value = new google_protobuf_timestamp_pb.Timestamp;
43416
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
43417
+ msg.setLastActivityAt(value);
43418
+ break;
43419
+ default:
43420
+ reader.skipField();
43421
+ break;
43422
+ }
43423
+ }
43424
+ return msg;
43425
+ };
43426
+
43427
+
43428
+ /**
43429
+ * Serializes the message to binary data (in protobuf wire format).
43430
+ * @return {!Uint8Array}
43431
+ */
43432
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.serializeBinary = function() {
43433
+ var writer = new jspb.BinaryWriter();
43434
+ proto.gateway.web.v1.SessionWorkTypeCount.serializeBinaryToWriter(this, writer);
43435
+ return writer.getResultBuffer();
43436
+ };
43437
+
43438
+
43439
+ /**
43440
+ * Serializes the given message to binary data (in protobuf wire
43441
+ * format), writing to the given BinaryWriter.
43442
+ * @param {!proto.gateway.web.v1.SessionWorkTypeCount} message
43443
+ * @param {!jspb.BinaryWriter} writer
43444
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43445
+ */
43446
+ proto.gateway.web.v1.SessionWorkTypeCount.serializeBinaryToWriter = function(message, writer) {
43447
+ var f = undefined;
43448
+ f = message.getWorkType();
43449
+ if (f.length > 0) {
43450
+ writer.writeString(
43451
+ 1,
43452
+ f
43453
+ );
43454
+ }
43455
+ f = message.getSessions();
43456
+ if (f !== 0) {
43457
+ writer.writeUint64(
43458
+ 2,
43459
+ f
43460
+ );
43461
+ }
43462
+ f = message.getLastActivityAt();
43463
+ if (f != null) {
43464
+ writer.writeMessage(
43465
+ 3,
43466
+ f,
43467
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
43468
+ );
43469
+ }
43470
+ };
43471
+
43472
+
43473
+ /**
43474
+ * optional string work_type = 1;
43475
+ * @return {string}
43476
+ */
43477
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.getWorkType = function() {
43478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43479
+ };
43480
+
43481
+
43482
+ /**
43483
+ * @param {string} value
43484
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount} returns this
43485
+ */
43486
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.setWorkType = function(value) {
43487
+ return jspb.Message.setProto3StringField(this, 1, value);
43488
+ };
43489
+
43490
+
43491
+ /**
43492
+ * optional uint64 sessions = 2;
43493
+ * @return {number}
43494
+ */
43495
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.getSessions = function() {
43496
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
43497
+ };
43498
+
43499
+
43500
+ /**
43501
+ * @param {number} value
43502
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount} returns this
43503
+ */
43504
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.setSessions = function(value) {
43505
+ return jspb.Message.setProto3IntField(this, 2, value);
43506
+ };
43507
+
43508
+
43509
+ /**
43510
+ * optional google.protobuf.Timestamp last_activity_at = 3;
43511
+ * @return {?proto.google.protobuf.Timestamp}
43512
+ */
43513
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.getLastActivityAt = function() {
43514
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
43515
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
43516
+ };
43517
+
43518
+
43519
+ /**
43520
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
43521
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount} returns this
43522
+ */
43523
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.setLastActivityAt = function(value) {
43524
+ return jspb.Message.setWrapperField(this, 3, value);
43525
+ };
43526
+
43527
+
43528
+ /**
43529
+ * Clears the message field making it undefined.
43530
+ * @return {!proto.gateway.web.v1.SessionWorkTypeCount} returns this
43531
+ */
43532
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.clearLastActivityAt = function() {
43533
+ return this.setLastActivityAt(undefined);
43534
+ };
43535
+
43536
+
43537
+ /**
43538
+ * Returns whether this field is set.
43539
+ * @return {boolean}
43540
+ */
43541
+ proto.gateway.web.v1.SessionWorkTypeCount.prototype.hasLastActivityAt = function() {
43542
+ return jspb.Message.getField(this, 3) != null;
43543
+ };
43544
+
43545
+
43546
+
43547
+ /**
43548
+ * List of repeated fields within this message type.
43549
+ * @private {!Array<number>}
43550
+ * @const
43551
+ */
43552
+ proto.gateway.web.v1.ScoredSession.repeatedFields_ = [5];
43553
+
43554
+
43555
+
43556
+ if (jspb.Message.GENERATE_TO_OBJECT) {
43557
+ /**
43558
+ * Creates an object representation of this proto.
43559
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
43560
+ * Optional fields that are not set will be set to undefined.
43561
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
43562
+ * For the list of reserved names please see:
43563
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
43564
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
43565
+ * JSPB instance for transitional soy proto support:
43566
+ * http://goto/soy-param-migration
43567
+ * @return {!Object}
43568
+ */
43569
+ proto.gateway.web.v1.ScoredSession.prototype.toObject = function(opt_includeInstance) {
43570
+ return proto.gateway.web.v1.ScoredSession.toObject(opt_includeInstance, this);
43571
+ };
43572
+
43573
+
43574
+ /**
43575
+ * Static version of the {@see toObject} method.
43576
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
43577
+ * the JSPB instance for transitional soy proto support:
43578
+ * http://goto/soy-param-migration
43579
+ * @param {!proto.gateway.web.v1.ScoredSession} msg The msg instance to transform.
43580
+ * @return {!Object}
43581
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43582
+ */
43583
+ proto.gateway.web.v1.ScoredSession.toObject = function(includeInstance, msg) {
43584
+ var f, obj = {
43585
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 1, ""),
43586
+ sessionId: jspb.Message.getFieldWithDefault(msg, 2, ""),
43587
+ lastActivityAt: (f = msg.getLastActivityAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
43588
+ title: jspb.Message.getFieldWithDefault(msg, 4, ""),
43589
+ clientsList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
43590
+ sessionScore: jspb.Message.getFieldWithDefault(msg, 6, 0),
43591
+ sessionScoreRubric: jspb.Message.getFieldWithDefault(msg, 7, 0)
43592
+ };
43593
+
43594
+ if (includeInstance) {
43595
+ obj.$jspbMessageInstance = msg;
43596
+ }
43597
+ return obj;
43598
+ };
43599
+ }
43600
+
43601
+
43602
+ /**
43603
+ * Deserializes binary data (in protobuf wire format).
43604
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
43605
+ * @return {!proto.gateway.web.v1.ScoredSession}
43606
+ */
43607
+ proto.gateway.web.v1.ScoredSession.deserializeBinary = function(bytes) {
43608
+ var reader = new jspb.BinaryReader(bytes);
43609
+ var msg = new proto.gateway.web.v1.ScoredSession;
43610
+ return proto.gateway.web.v1.ScoredSession.deserializeBinaryFromReader(msg, reader);
43611
+ };
43612
+
43613
+
43614
+ /**
43615
+ * Deserializes binary data (in protobuf wire format) from the
43616
+ * given reader into the given message object.
43617
+ * @param {!proto.gateway.web.v1.ScoredSession} msg The message object to deserialize into.
43618
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
43619
+ * @return {!proto.gateway.web.v1.ScoredSession}
43620
+ */
43621
+ proto.gateway.web.v1.ScoredSession.deserializeBinaryFromReader = function(msg, reader) {
43622
+ while (reader.nextField()) {
43623
+ if (reader.isEndGroup()) {
43624
+ break;
43625
+ }
43626
+ var field = reader.getFieldNumber();
43627
+ switch (field) {
43628
+ case 1:
43629
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
43630
+ msg.setSourceSystem(value);
43631
+ break;
43632
+ case 2:
43633
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
43634
+ msg.setSessionId(value);
43635
+ break;
43636
+ case 3:
43637
+ var value = new google_protobuf_timestamp_pb.Timestamp;
43638
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
43639
+ msg.setLastActivityAt(value);
43640
+ break;
43641
+ case 4:
43642
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
43643
+ msg.setTitle(value);
43644
+ break;
43645
+ case 5:
43646
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
43647
+ msg.addClients(value);
43648
+ break;
43649
+ case 6:
43650
+ var value = /** @type {number} */ (reader.readInt32());
43651
+ msg.setSessionScore(value);
43652
+ break;
43653
+ case 7:
43654
+ var value = /** @type {!proto.gateway.web.v1.AISessionScoreRubric} */ (reader.readEnum());
43655
+ msg.setSessionScoreRubric(value);
43656
+ break;
43657
+ default:
43658
+ reader.skipField();
43659
+ break;
43660
+ }
43661
+ }
43662
+ return msg;
43663
+ };
43664
+
43665
+
43666
+ /**
43667
+ * Serializes the message to binary data (in protobuf wire format).
43668
+ * @return {!Uint8Array}
43669
+ */
43670
+ proto.gateway.web.v1.ScoredSession.prototype.serializeBinary = function() {
43671
+ var writer = new jspb.BinaryWriter();
43672
+ proto.gateway.web.v1.ScoredSession.serializeBinaryToWriter(this, writer);
43673
+ return writer.getResultBuffer();
43674
+ };
43675
+
43676
+
43677
+ /**
43678
+ * Serializes the given message to binary data (in protobuf wire
43679
+ * format), writing to the given BinaryWriter.
43680
+ * @param {!proto.gateway.web.v1.ScoredSession} message
43681
+ * @param {!jspb.BinaryWriter} writer
43682
+ * @suppress {unusedLocalVariables} f is only used for nested messages
43683
+ */
43684
+ proto.gateway.web.v1.ScoredSession.serializeBinaryToWriter = function(message, writer) {
43685
+ var f = undefined;
43686
+ f = message.getSourceSystem();
43687
+ if (f.length > 0) {
43688
+ writer.writeString(
43689
+ 1,
43690
+ f
43691
+ );
43692
+ }
43693
+ f = message.getSessionId();
43694
+ if (f.length > 0) {
43695
+ writer.writeString(
43696
+ 2,
43697
+ f
43698
+ );
43699
+ }
43700
+ f = message.getLastActivityAt();
43701
+ if (f != null) {
43702
+ writer.writeMessage(
43703
+ 3,
43704
+ f,
43705
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
43706
+ );
43707
+ }
43708
+ f = message.getTitle();
43709
+ if (f.length > 0) {
43710
+ writer.writeString(
43711
+ 4,
43712
+ f
43713
+ );
43714
+ }
43715
+ f = message.getClientsList();
43716
+ if (f.length > 0) {
43717
+ writer.writeRepeatedString(
43718
+ 5,
43719
+ f
43720
+ );
43721
+ }
43722
+ f = message.getSessionScore();
43723
+ if (f !== 0) {
43724
+ writer.writeInt32(
43725
+ 6,
43726
+ f
43727
+ );
43728
+ }
43729
+ f = message.getSessionScoreRubric();
43730
+ if (f !== 0.0) {
43731
+ writer.writeEnum(
43732
+ 7,
43733
+ f
43734
+ );
43735
+ }
43736
+ };
43737
+
43738
+
43739
+ /**
43740
+ * optional string source_system = 1;
43741
+ * @return {string}
43742
+ */
43743
+ proto.gateway.web.v1.ScoredSession.prototype.getSourceSystem = function() {
43744
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
43745
+ };
43746
+
43747
+
43748
+ /**
43749
+ * @param {string} value
43750
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43751
+ */
43752
+ proto.gateway.web.v1.ScoredSession.prototype.setSourceSystem = function(value) {
43753
+ return jspb.Message.setProto3StringField(this, 1, value);
43754
+ };
43755
+
43756
+
43757
+ /**
43758
+ * optional string session_id = 2;
43759
+ * @return {string}
43760
+ */
43761
+ proto.gateway.web.v1.ScoredSession.prototype.getSessionId = function() {
43762
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
43763
+ };
43764
+
43765
+
43766
+ /**
43767
+ * @param {string} value
43768
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43769
+ */
43770
+ proto.gateway.web.v1.ScoredSession.prototype.setSessionId = function(value) {
43771
+ return jspb.Message.setProto3StringField(this, 2, value);
43772
+ };
43773
+
43774
+
43775
+ /**
43776
+ * optional google.protobuf.Timestamp last_activity_at = 3;
43777
+ * @return {?proto.google.protobuf.Timestamp}
43778
+ */
43779
+ proto.gateway.web.v1.ScoredSession.prototype.getLastActivityAt = function() {
43780
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
43781
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 3));
43782
+ };
43783
+
43784
+
43785
+ /**
43786
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
43787
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43788
+ */
43789
+ proto.gateway.web.v1.ScoredSession.prototype.setLastActivityAt = function(value) {
43790
+ return jspb.Message.setWrapperField(this, 3, value);
43791
+ };
43792
+
43793
+
43794
+ /**
43795
+ * Clears the message field making it undefined.
43796
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43797
+ */
43798
+ proto.gateway.web.v1.ScoredSession.prototype.clearLastActivityAt = function() {
43799
+ return this.setLastActivityAt(undefined);
43800
+ };
43801
+
43802
+
43803
+ /**
43804
+ * Returns whether this field is set.
43805
+ * @return {boolean}
43806
+ */
43807
+ proto.gateway.web.v1.ScoredSession.prototype.hasLastActivityAt = function() {
43808
+ return jspb.Message.getField(this, 3) != null;
43809
+ };
43810
+
43811
+
43812
+ /**
43813
+ * optional string title = 4;
43814
+ * @return {string}
43815
+ */
43816
+ proto.gateway.web.v1.ScoredSession.prototype.getTitle = function() {
43817
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
43818
+ };
43819
+
43820
+
43821
+ /**
43822
+ * @param {string} value
43823
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43824
+ */
43825
+ proto.gateway.web.v1.ScoredSession.prototype.setTitle = function(value) {
43826
+ return jspb.Message.setProto3StringField(this, 4, value);
43827
+ };
43828
+
43829
+
43830
+ /**
43831
+ * repeated string clients = 5;
43832
+ * @return {!Array<string>}
43833
+ */
43834
+ proto.gateway.web.v1.ScoredSession.prototype.getClientsList = function() {
43835
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
43836
+ };
43837
+
43838
+
43839
+ /**
43840
+ * @param {!Array<string>} value
43841
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43842
+ */
43843
+ proto.gateway.web.v1.ScoredSession.prototype.setClientsList = function(value) {
43844
+ return jspb.Message.setField(this, 5, value || []);
43845
+ };
43846
+
43847
+
43848
+ /**
43849
+ * @param {string} value
43850
+ * @param {number=} opt_index
43851
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43852
+ */
43853
+ proto.gateway.web.v1.ScoredSession.prototype.addClients = function(value, opt_index) {
43854
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
43855
+ };
43856
+
43857
+
43858
+ /**
43859
+ * Clears the list making it empty but non-null.
43860
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43861
+ */
43862
+ proto.gateway.web.v1.ScoredSession.prototype.clearClientsList = function() {
43863
+ return this.setClientsList([]);
43864
+ };
43865
+
43866
+
43867
+ /**
43868
+ * optional int32 session_score = 6;
43869
+ * @return {number}
43870
+ */
43871
+ proto.gateway.web.v1.ScoredSession.prototype.getSessionScore = function() {
43872
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
43873
+ };
43874
+
43875
+
43876
+ /**
43877
+ * @param {number} value
43878
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43879
+ */
43880
+ proto.gateway.web.v1.ScoredSession.prototype.setSessionScore = function(value) {
43881
+ return jspb.Message.setProto3IntField(this, 6, value);
43882
+ };
43883
+
43884
+
43885
+ /**
43886
+ * optional AISessionScoreRubric session_score_rubric = 7;
43887
+ * @return {!proto.gateway.web.v1.AISessionScoreRubric}
43888
+ */
43889
+ proto.gateway.web.v1.ScoredSession.prototype.getSessionScoreRubric = function() {
43890
+ return /** @type {!proto.gateway.web.v1.AISessionScoreRubric} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
43891
+ };
43892
+
43893
+
43894
+ /**
43895
+ * @param {!proto.gateway.web.v1.AISessionScoreRubric} value
43896
+ * @return {!proto.gateway.web.v1.ScoredSession} returns this
43897
+ */
43898
+ proto.gateway.web.v1.ScoredSession.prototype.setSessionScoreRubric = function(value) {
43899
+ return jspb.Message.setProto3EnumField(this, 7, value);
43900
+ };
43901
+
43902
+
43903
+
43904
+
43905
+
41494
43906
  if (jspb.Message.GENERATE_TO_OBJECT) {
41495
43907
  /**
41496
43908
  * Creates an object representation of this proto.