@miradorlabs/web-grpc 4.32.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);
@@ -209,7 +211,9 @@ goog.exportSymbol('proto.gateway.web.v1.RelayHeartbeatSort', null, global);
209
211
  goog.exportSymbol('proto.gateway.web.v1.ResourceRanking', null, global);
210
212
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsRequest', null, global);
211
213
  goog.exportSymbol('proto.gateway.web.v1.ResourceRankingsResponse', null, global);
214
+ goog.exportSymbol('proto.gateway.web.v1.ScoredSession', null, global);
212
215
  goog.exportSymbol('proto.gateway.web.v1.SeatEntitlement', null, global);
216
+ goog.exportSymbol('proto.gateway.web.v1.SessionAnalysisOverviewFilter', null, global);
213
217
  goog.exportSymbol('proto.gateway.web.v1.SessionEventFilter', null, global);
214
218
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChange', null, global);
215
219
  goog.exportSymbol('proto.gateway.web.v1.SessionFileChanges', null, global);
@@ -233,6 +237,7 @@ goog.exportSymbol('proto.gateway.web.v1.SessionTotalsBucket', null, global);
233
237
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageBucket', null, global);
234
238
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendRequest', null, global);
235
239
  goog.exportSymbol('proto.gateway.web.v1.SessionUsageTrendResponse', null, global);
240
+ goog.exportSymbol('proto.gateway.web.v1.SessionWorkTypeCount', null, global);
236
241
  goog.exportSymbol('proto.gateway.web.v1.SessionsSnapshot', null, global);
237
242
  goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionRequest', null, global);
238
243
  goog.exportSymbol('proto.gateway.web.v1.SetReasoningTrendContributionResponse', null, global);
@@ -2927,6 +2932,111 @@ if (goog.DEBUG && !COMPILED) {
2927
2932
  */
2928
2933
  proto.gateway.web.v1.SessionTotalsBucket.displayName = 'proto.gateway.web.v1.SessionTotalsBucket';
2929
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
+ }
2930
3040
  /**
2931
3041
  * Generated by JsPbCodeGenerator.
2932
3042
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -42430,6 +42540,1369 @@ proto.gateway.web.v1.SessionTotalsBucket.prototype.setSubscriptionFacilityUsd =
42430
42540
 
42431
42541
 
42432
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
+
42433
43906
  if (jspb.Message.GENERATE_TO_OBJECT) {
42434
43907
  /**
42435
43908
  * Creates an object representation of this proto.