@miradorlabs/web-grpc 2.54.0 → 2.57.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.
@@ -47,6 +47,10 @@ goog.exportSymbol('proto.gateway.web.v1.AISessionFilter', null, global);
47
47
  goog.exportSymbol('proto.gateway.web.v1.AISessionSummary', null, global);
48
48
  goog.exportSymbol('proto.gateway.web.v1.AITokenActivityDimension', null, global);
49
49
  goog.exportSymbol('proto.gateway.web.v1.AITokenUsage', null, global);
50
+ goog.exportSymbol('proto.gateway.web.v1.DailyActivity', null, global);
51
+ goog.exportSymbol('proto.gateway.web.v1.DailyActivityDay', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.DailyActivityMeasures', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.DailyActivityRequest', null, global);
50
54
  goog.exportSymbol('proto.gateway.web.v1.FileGroup', null, global);
51
55
  goog.exportSymbol('proto.gateway.web.v1.FileTierBucket', null, global);
52
56
  goog.exportSymbol('proto.gateway.web.v1.FileTiers', null, global);
@@ -1047,6 +1051,90 @@ if (goog.DEBUG && !COMPILED) {
1047
1051
  */
1048
1052
  proto.gateway.web.v1.TokenActivityMeasures.displayName = 'proto.gateway.web.v1.TokenActivityMeasures';
1049
1053
  }
1054
+ /**
1055
+ * Generated by JsPbCodeGenerator.
1056
+ * @param {Array=} opt_data Optional initial data array, typically from a
1057
+ * server response, or constructed directly in Javascript. The array is used
1058
+ * in place and becomes part of the constructed object. It is not cloned.
1059
+ * If no data is provided, the constructed object will be empty, but still
1060
+ * valid.
1061
+ * @extends {jspb.Message}
1062
+ * @constructor
1063
+ */
1064
+ proto.gateway.web.v1.DailyActivityRequest = function(opt_data) {
1065
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1066
+ };
1067
+ goog.inherits(proto.gateway.web.v1.DailyActivityRequest, jspb.Message);
1068
+ if (goog.DEBUG && !COMPILED) {
1069
+ /**
1070
+ * @public
1071
+ * @override
1072
+ */
1073
+ proto.gateway.web.v1.DailyActivityRequest.displayName = 'proto.gateway.web.v1.DailyActivityRequest';
1074
+ }
1075
+ /**
1076
+ * Generated by JsPbCodeGenerator.
1077
+ * @param {Array=} opt_data Optional initial data array, typically from a
1078
+ * server response, or constructed directly in Javascript. The array is used
1079
+ * in place and becomes part of the constructed object. It is not cloned.
1080
+ * If no data is provided, the constructed object will be empty, but still
1081
+ * valid.
1082
+ * @extends {jspb.Message}
1083
+ * @constructor
1084
+ */
1085
+ proto.gateway.web.v1.DailyActivity = function(opt_data) {
1086
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.DailyActivity.repeatedFields_, null);
1087
+ };
1088
+ goog.inherits(proto.gateway.web.v1.DailyActivity, jspb.Message);
1089
+ if (goog.DEBUG && !COMPILED) {
1090
+ /**
1091
+ * @public
1092
+ * @override
1093
+ */
1094
+ proto.gateway.web.v1.DailyActivity.displayName = 'proto.gateway.web.v1.DailyActivity';
1095
+ }
1096
+ /**
1097
+ * Generated by JsPbCodeGenerator.
1098
+ * @param {Array=} opt_data Optional initial data array, typically from a
1099
+ * server response, or constructed directly in Javascript. The array is used
1100
+ * in place and becomes part of the constructed object. It is not cloned.
1101
+ * If no data is provided, the constructed object will be empty, but still
1102
+ * valid.
1103
+ * @extends {jspb.Message}
1104
+ * @constructor
1105
+ */
1106
+ proto.gateway.web.v1.DailyActivityDay = function(opt_data) {
1107
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1108
+ };
1109
+ goog.inherits(proto.gateway.web.v1.DailyActivityDay, jspb.Message);
1110
+ if (goog.DEBUG && !COMPILED) {
1111
+ /**
1112
+ * @public
1113
+ * @override
1114
+ */
1115
+ proto.gateway.web.v1.DailyActivityDay.displayName = 'proto.gateway.web.v1.DailyActivityDay';
1116
+ }
1117
+ /**
1118
+ * Generated by JsPbCodeGenerator.
1119
+ * @param {Array=} opt_data Optional initial data array, typically from a
1120
+ * server response, or constructed directly in Javascript. The array is used
1121
+ * in place and becomes part of the constructed object. It is not cloned.
1122
+ * If no data is provided, the constructed object will be empty, but still
1123
+ * valid.
1124
+ * @extends {jspb.Message}
1125
+ * @constructor
1126
+ */
1127
+ proto.gateway.web.v1.DailyActivityMeasures = function(opt_data) {
1128
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1129
+ };
1130
+ goog.inherits(proto.gateway.web.v1.DailyActivityMeasures, jspb.Message);
1131
+ if (goog.DEBUG && !COMPILED) {
1132
+ /**
1133
+ * @public
1134
+ * @override
1135
+ */
1136
+ proto.gateway.web.v1.DailyActivityMeasures.displayName = 'proto.gateway.web.v1.DailyActivityMeasures';
1137
+ }
1050
1138
  /**
1051
1139
  * Generated by JsPbCodeGenerator.
1052
1140
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9577,7 +9665,8 @@ kind: jspb.Message.getFieldWithDefault(msg, 1, 0),
9577
9665
  id: jspb.Message.getFieldWithDefault(msg, 2, ""),
9578
9666
  name: jspb.Message.getFieldWithDefault(msg, 3, ""),
9579
9667
  sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
9580
- alias: jspb.Message.getFieldWithDefault(msg, 5, "")
9668
+ alias: jspb.Message.getFieldWithDefault(msg, 5, ""),
9669
+ accountUserId: jspb.Message.getFieldWithDefault(msg, 6, "")
9581
9670
  };
9582
9671
 
9583
9672
  if (includeInstance) {
@@ -9634,6 +9723,10 @@ proto.gateway.web.v1.AIPrincipal.deserializeBinaryFromReader = function(msg, rea
9634
9723
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
9635
9724
  msg.setAlias(value);
9636
9725
  break;
9726
+ case 6:
9727
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
9728
+ msg.setAccountUserId(value);
9729
+ break;
9637
9730
  default:
9638
9731
  reader.skipField();
9639
9732
  break;
@@ -9698,6 +9791,13 @@ proto.gateway.web.v1.AIPrincipal.serializeBinaryToWriter = function(message, wri
9698
9791
  f
9699
9792
  );
9700
9793
  }
9794
+ f = message.getAccountUserId();
9795
+ if (f.length > 0) {
9796
+ writer.writeString(
9797
+ 6,
9798
+ f
9799
+ );
9800
+ }
9701
9801
  };
9702
9802
 
9703
9803
 
@@ -9791,6 +9891,24 @@ proto.gateway.web.v1.AIPrincipal.prototype.setAlias = function(value) {
9791
9891
  };
9792
9892
 
9793
9893
 
9894
+ /**
9895
+ * optional string account_user_id = 6;
9896
+ * @return {string}
9897
+ */
9898
+ proto.gateway.web.v1.AIPrincipal.prototype.getAccountUserId = function() {
9899
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9900
+ };
9901
+
9902
+
9903
+ /**
9904
+ * @param {string} value
9905
+ * @return {!proto.gateway.web.v1.AIPrincipal} returns this
9906
+ */
9907
+ proto.gateway.web.v1.AIPrincipal.prototype.setAccountUserId = function(value) {
9908
+ return jspb.Message.setProto3StringField(this, 6, value);
9909
+ };
9910
+
9911
+
9794
9912
 
9795
9913
 
9796
9914
 
@@ -9828,7 +9946,8 @@ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
9828
9946
  kind: jspb.Message.getFieldWithDefault(msg, 3, 0),
9829
9947
  id: jspb.Message.getFieldWithDefault(msg, 4, ""),
9830
9948
  sourceSystem: jspb.Message.getFieldWithDefault(msg, 5, ""),
9831
- alias: jspb.Message.getFieldWithDefault(msg, 6, "")
9949
+ alias: (f = jspb.Message.getField(msg, 6)) == null ? undefined : f,
9950
+ accountUserId: (f = jspb.Message.getField(msg, 7)) == null ? undefined : f
9832
9951
  };
9833
9952
 
9834
9953
  if (includeInstance) {
@@ -9889,6 +10008,10 @@ proto.gateway.web.v1.UpdatePrincipalRequest.deserializeBinaryFromReader = functi
9889
10008
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
9890
10009
  msg.setAlias(value);
9891
10010
  break;
10011
+ case 7:
10012
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
10013
+ msg.setAccountUserId(value);
10014
+ break;
9892
10015
  default:
9893
10016
  reader.skipField();
9894
10017
  break;
@@ -9953,13 +10076,20 @@ proto.gateway.web.v1.UpdatePrincipalRequest.serializeBinaryToWriter = function(m
9953
10076
  f
9954
10077
  );
9955
10078
  }
9956
- f = message.getAlias();
9957
- if (f.length > 0) {
10079
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
10080
+ if (f != null) {
9958
10081
  writer.writeString(
9959
10082
  6,
9960
10083
  f
9961
10084
  );
9962
10085
  }
10086
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
10087
+ if (f != null) {
10088
+ writer.writeString(
10089
+ 7,
10090
+ f
10091
+ );
10092
+ }
9963
10093
  };
9964
10094
 
9965
10095
 
@@ -10067,7 +10197,61 @@ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.getAlias = function() {
10067
10197
  * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10068
10198
  */
10069
10199
  proto.gateway.web.v1.UpdatePrincipalRequest.prototype.setAlias = function(value) {
10070
- return jspb.Message.setProto3StringField(this, 6, value);
10200
+ return jspb.Message.setField(this, 6, value);
10201
+ };
10202
+
10203
+
10204
+ /**
10205
+ * Clears the field making it undefined.
10206
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10207
+ */
10208
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.clearAlias = function() {
10209
+ return jspb.Message.setField(this, 6, undefined);
10210
+ };
10211
+
10212
+
10213
+ /**
10214
+ * Returns whether this field is set.
10215
+ * @return {boolean}
10216
+ */
10217
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.hasAlias = function() {
10218
+ return jspb.Message.getField(this, 6) != null;
10219
+ };
10220
+
10221
+
10222
+ /**
10223
+ * optional string account_user_id = 7;
10224
+ * @return {string}
10225
+ */
10226
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.getAccountUserId = function() {
10227
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
10228
+ };
10229
+
10230
+
10231
+ /**
10232
+ * @param {string} value
10233
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10234
+ */
10235
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.setAccountUserId = function(value) {
10236
+ return jspb.Message.setField(this, 7, value);
10237
+ };
10238
+
10239
+
10240
+ /**
10241
+ * Clears the field making it undefined.
10242
+ * @return {!proto.gateway.web.v1.UpdatePrincipalRequest} returns this
10243
+ */
10244
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.clearAccountUserId = function() {
10245
+ return jspb.Message.setField(this, 7, undefined);
10246
+ };
10247
+
10248
+
10249
+ /**
10250
+ * Returns whether this field is set.
10251
+ * @return {boolean}
10252
+ */
10253
+ proto.gateway.web.v1.UpdatePrincipalRequest.prototype.hasAccountUserId = function() {
10254
+ return jspb.Message.getField(this, 7) != null;
10071
10255
  };
10072
10256
 
10073
10257
 
@@ -15464,6 +15648,1288 @@ proto.gateway.web.v1.TokenActivityMeasures.prototype.setModelCalls = function(va
15464
15648
 
15465
15649
 
15466
15650
 
15651
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15652
+ /**
15653
+ * Creates an object representation of this proto.
15654
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15655
+ * Optional fields that are not set will be set to undefined.
15656
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15657
+ * For the list of reserved names please see:
15658
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15659
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15660
+ * JSPB instance for transitional soy proto support:
15661
+ * http://goto/soy-param-migration
15662
+ * @return {!Object}
15663
+ */
15664
+ proto.gateway.web.v1.DailyActivityRequest.prototype.toObject = function(opt_includeInstance) {
15665
+ return proto.gateway.web.v1.DailyActivityRequest.toObject(opt_includeInstance, this);
15666
+ };
15667
+
15668
+
15669
+ /**
15670
+ * Static version of the {@see toObject} method.
15671
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15672
+ * the JSPB instance for transitional soy proto support:
15673
+ * http://goto/soy-param-migration
15674
+ * @param {!proto.gateway.web.v1.DailyActivityRequest} msg The msg instance to transform.
15675
+ * @return {!Object}
15676
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15677
+ */
15678
+ proto.gateway.web.v1.DailyActivityRequest.toObject = function(includeInstance, msg) {
15679
+ var f, obj = {
15680
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15681
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
15682
+ startDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
15683
+ endDate: jspb.Message.getFieldWithDefault(msg, 4, "")
15684
+ };
15685
+
15686
+ if (includeInstance) {
15687
+ obj.$jspbMessageInstance = msg;
15688
+ }
15689
+ return obj;
15690
+ };
15691
+ }
15692
+
15693
+
15694
+ /**
15695
+ * Deserializes binary data (in protobuf wire format).
15696
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15697
+ * @return {!proto.gateway.web.v1.DailyActivityRequest}
15698
+ */
15699
+ proto.gateway.web.v1.DailyActivityRequest.deserializeBinary = function(bytes) {
15700
+ var reader = new jspb.BinaryReader(bytes);
15701
+ var msg = new proto.gateway.web.v1.DailyActivityRequest;
15702
+ return proto.gateway.web.v1.DailyActivityRequest.deserializeBinaryFromReader(msg, reader);
15703
+ };
15704
+
15705
+
15706
+ /**
15707
+ * Deserializes binary data (in protobuf wire format) from the
15708
+ * given reader into the given message object.
15709
+ * @param {!proto.gateway.web.v1.DailyActivityRequest} msg The message object to deserialize into.
15710
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15711
+ * @return {!proto.gateway.web.v1.DailyActivityRequest}
15712
+ */
15713
+ proto.gateway.web.v1.DailyActivityRequest.deserializeBinaryFromReader = function(msg, reader) {
15714
+ while (reader.nextField()) {
15715
+ if (reader.isEndGroup()) {
15716
+ break;
15717
+ }
15718
+ var field = reader.getFieldNumber();
15719
+ switch (field) {
15720
+ case 1:
15721
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15722
+ msg.setOrganizationId(value);
15723
+ break;
15724
+ case 2:
15725
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15726
+ msg.setProjectId(value);
15727
+ break;
15728
+ case 3:
15729
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15730
+ msg.setStartDate(value);
15731
+ break;
15732
+ case 4:
15733
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15734
+ msg.setEndDate(value);
15735
+ break;
15736
+ default:
15737
+ reader.skipField();
15738
+ break;
15739
+ }
15740
+ }
15741
+ return msg;
15742
+ };
15743
+
15744
+
15745
+ /**
15746
+ * Serializes the message to binary data (in protobuf wire format).
15747
+ * @return {!Uint8Array}
15748
+ */
15749
+ proto.gateway.web.v1.DailyActivityRequest.prototype.serializeBinary = function() {
15750
+ var writer = new jspb.BinaryWriter();
15751
+ proto.gateway.web.v1.DailyActivityRequest.serializeBinaryToWriter(this, writer);
15752
+ return writer.getResultBuffer();
15753
+ };
15754
+
15755
+
15756
+ /**
15757
+ * Serializes the given message to binary data (in protobuf wire
15758
+ * format), writing to the given BinaryWriter.
15759
+ * @param {!proto.gateway.web.v1.DailyActivityRequest} message
15760
+ * @param {!jspb.BinaryWriter} writer
15761
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15762
+ */
15763
+ proto.gateway.web.v1.DailyActivityRequest.serializeBinaryToWriter = function(message, writer) {
15764
+ var f = undefined;
15765
+ f = message.getOrganizationId();
15766
+ if (f.length > 0) {
15767
+ writer.writeString(
15768
+ 1,
15769
+ f
15770
+ );
15771
+ }
15772
+ f = message.getProjectId();
15773
+ if (f.length > 0) {
15774
+ writer.writeString(
15775
+ 2,
15776
+ f
15777
+ );
15778
+ }
15779
+ f = message.getStartDate();
15780
+ if (f.length > 0) {
15781
+ writer.writeString(
15782
+ 3,
15783
+ f
15784
+ );
15785
+ }
15786
+ f = message.getEndDate();
15787
+ if (f.length > 0) {
15788
+ writer.writeString(
15789
+ 4,
15790
+ f
15791
+ );
15792
+ }
15793
+ };
15794
+
15795
+
15796
+ /**
15797
+ * optional string organization_id = 1;
15798
+ * @return {string}
15799
+ */
15800
+ proto.gateway.web.v1.DailyActivityRequest.prototype.getOrganizationId = function() {
15801
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15802
+ };
15803
+
15804
+
15805
+ /**
15806
+ * @param {string} value
15807
+ * @return {!proto.gateway.web.v1.DailyActivityRequest} returns this
15808
+ */
15809
+ proto.gateway.web.v1.DailyActivityRequest.prototype.setOrganizationId = function(value) {
15810
+ return jspb.Message.setProto3StringField(this, 1, value);
15811
+ };
15812
+
15813
+
15814
+ /**
15815
+ * optional string project_id = 2;
15816
+ * @return {string}
15817
+ */
15818
+ proto.gateway.web.v1.DailyActivityRequest.prototype.getProjectId = function() {
15819
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15820
+ };
15821
+
15822
+
15823
+ /**
15824
+ * @param {string} value
15825
+ * @return {!proto.gateway.web.v1.DailyActivityRequest} returns this
15826
+ */
15827
+ proto.gateway.web.v1.DailyActivityRequest.prototype.setProjectId = function(value) {
15828
+ return jspb.Message.setProto3StringField(this, 2, value);
15829
+ };
15830
+
15831
+
15832
+ /**
15833
+ * optional string start_date = 3;
15834
+ * @return {string}
15835
+ */
15836
+ proto.gateway.web.v1.DailyActivityRequest.prototype.getStartDate = function() {
15837
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15838
+ };
15839
+
15840
+
15841
+ /**
15842
+ * @param {string} value
15843
+ * @return {!proto.gateway.web.v1.DailyActivityRequest} returns this
15844
+ */
15845
+ proto.gateway.web.v1.DailyActivityRequest.prototype.setStartDate = function(value) {
15846
+ return jspb.Message.setProto3StringField(this, 3, value);
15847
+ };
15848
+
15849
+
15850
+ /**
15851
+ * optional string end_date = 4;
15852
+ * @return {string}
15853
+ */
15854
+ proto.gateway.web.v1.DailyActivityRequest.prototype.getEndDate = function() {
15855
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
15856
+ };
15857
+
15858
+
15859
+ /**
15860
+ * @param {string} value
15861
+ * @return {!proto.gateway.web.v1.DailyActivityRequest} returns this
15862
+ */
15863
+ proto.gateway.web.v1.DailyActivityRequest.prototype.setEndDate = function(value) {
15864
+ return jspb.Message.setProto3StringField(this, 4, value);
15865
+ };
15866
+
15867
+
15868
+
15869
+ /**
15870
+ * List of repeated fields within this message type.
15871
+ * @private {!Array<number>}
15872
+ * @const
15873
+ */
15874
+ proto.gateway.web.v1.DailyActivity.repeatedFields_ = [1];
15875
+
15876
+
15877
+
15878
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15879
+ /**
15880
+ * Creates an object representation of this proto.
15881
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15882
+ * Optional fields that are not set will be set to undefined.
15883
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15884
+ * For the list of reserved names please see:
15885
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15886
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15887
+ * JSPB instance for transitional soy proto support:
15888
+ * http://goto/soy-param-migration
15889
+ * @return {!Object}
15890
+ */
15891
+ proto.gateway.web.v1.DailyActivity.prototype.toObject = function(opt_includeInstance) {
15892
+ return proto.gateway.web.v1.DailyActivity.toObject(opt_includeInstance, this);
15893
+ };
15894
+
15895
+
15896
+ /**
15897
+ * Static version of the {@see toObject} method.
15898
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15899
+ * the JSPB instance for transitional soy proto support:
15900
+ * http://goto/soy-param-migration
15901
+ * @param {!proto.gateway.web.v1.DailyActivity} msg The msg instance to transform.
15902
+ * @return {!Object}
15903
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15904
+ */
15905
+ proto.gateway.web.v1.DailyActivity.toObject = function(includeInstance, msg) {
15906
+ var f, obj = {
15907
+ daysList: jspb.Message.toObjectList(msg.getDaysList(),
15908
+ proto.gateway.web.v1.DailyActivityDay.toObject, includeInstance),
15909
+ startDate: jspb.Message.getFieldWithDefault(msg, 2, ""),
15910
+ endDate: jspb.Message.getFieldWithDefault(msg, 3, ""),
15911
+ coverageStart: jspb.Message.getFieldWithDefault(msg, 4, ""),
15912
+ today: jspb.Message.getFieldWithDefault(msg, 5, ""),
15913
+ asOf: (f = msg.getAsOf()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
15914
+ };
15915
+
15916
+ if (includeInstance) {
15917
+ obj.$jspbMessageInstance = msg;
15918
+ }
15919
+ return obj;
15920
+ };
15921
+ }
15922
+
15923
+
15924
+ /**
15925
+ * Deserializes binary data (in protobuf wire format).
15926
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15927
+ * @return {!proto.gateway.web.v1.DailyActivity}
15928
+ */
15929
+ proto.gateway.web.v1.DailyActivity.deserializeBinary = function(bytes) {
15930
+ var reader = new jspb.BinaryReader(bytes);
15931
+ var msg = new proto.gateway.web.v1.DailyActivity;
15932
+ return proto.gateway.web.v1.DailyActivity.deserializeBinaryFromReader(msg, reader);
15933
+ };
15934
+
15935
+
15936
+ /**
15937
+ * Deserializes binary data (in protobuf wire format) from the
15938
+ * given reader into the given message object.
15939
+ * @param {!proto.gateway.web.v1.DailyActivity} msg The message object to deserialize into.
15940
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15941
+ * @return {!proto.gateway.web.v1.DailyActivity}
15942
+ */
15943
+ proto.gateway.web.v1.DailyActivity.deserializeBinaryFromReader = function(msg, reader) {
15944
+ while (reader.nextField()) {
15945
+ if (reader.isEndGroup()) {
15946
+ break;
15947
+ }
15948
+ var field = reader.getFieldNumber();
15949
+ switch (field) {
15950
+ case 1:
15951
+ var value = new proto.gateway.web.v1.DailyActivityDay;
15952
+ reader.readMessage(value,proto.gateway.web.v1.DailyActivityDay.deserializeBinaryFromReader);
15953
+ msg.addDays(value);
15954
+ break;
15955
+ case 2:
15956
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15957
+ msg.setStartDate(value);
15958
+ break;
15959
+ case 3:
15960
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15961
+ msg.setEndDate(value);
15962
+ break;
15963
+ case 4:
15964
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15965
+ msg.setCoverageStart(value);
15966
+ break;
15967
+ case 5:
15968
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15969
+ msg.setToday(value);
15970
+ break;
15971
+ case 6:
15972
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15973
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15974
+ msg.setAsOf(value);
15975
+ break;
15976
+ default:
15977
+ reader.skipField();
15978
+ break;
15979
+ }
15980
+ }
15981
+ return msg;
15982
+ };
15983
+
15984
+
15985
+ /**
15986
+ * Serializes the message to binary data (in protobuf wire format).
15987
+ * @return {!Uint8Array}
15988
+ */
15989
+ proto.gateway.web.v1.DailyActivity.prototype.serializeBinary = function() {
15990
+ var writer = new jspb.BinaryWriter();
15991
+ proto.gateway.web.v1.DailyActivity.serializeBinaryToWriter(this, writer);
15992
+ return writer.getResultBuffer();
15993
+ };
15994
+
15995
+
15996
+ /**
15997
+ * Serializes the given message to binary data (in protobuf wire
15998
+ * format), writing to the given BinaryWriter.
15999
+ * @param {!proto.gateway.web.v1.DailyActivity} message
16000
+ * @param {!jspb.BinaryWriter} writer
16001
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16002
+ */
16003
+ proto.gateway.web.v1.DailyActivity.serializeBinaryToWriter = function(message, writer) {
16004
+ var f = undefined;
16005
+ f = message.getDaysList();
16006
+ if (f.length > 0) {
16007
+ writer.writeRepeatedMessage(
16008
+ 1,
16009
+ f,
16010
+ proto.gateway.web.v1.DailyActivityDay.serializeBinaryToWriter
16011
+ );
16012
+ }
16013
+ f = message.getStartDate();
16014
+ if (f.length > 0) {
16015
+ writer.writeString(
16016
+ 2,
16017
+ f
16018
+ );
16019
+ }
16020
+ f = message.getEndDate();
16021
+ if (f.length > 0) {
16022
+ writer.writeString(
16023
+ 3,
16024
+ f
16025
+ );
16026
+ }
16027
+ f = message.getCoverageStart();
16028
+ if (f.length > 0) {
16029
+ writer.writeString(
16030
+ 4,
16031
+ f
16032
+ );
16033
+ }
16034
+ f = message.getToday();
16035
+ if (f.length > 0) {
16036
+ writer.writeString(
16037
+ 5,
16038
+ f
16039
+ );
16040
+ }
16041
+ f = message.getAsOf();
16042
+ if (f != null) {
16043
+ writer.writeMessage(
16044
+ 6,
16045
+ f,
16046
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
16047
+ );
16048
+ }
16049
+ };
16050
+
16051
+
16052
+ /**
16053
+ * repeated DailyActivityDay days = 1;
16054
+ * @return {!Array<!proto.gateway.web.v1.DailyActivityDay>}
16055
+ */
16056
+ proto.gateway.web.v1.DailyActivity.prototype.getDaysList = function() {
16057
+ return /** @type{!Array<!proto.gateway.web.v1.DailyActivityDay>} */ (
16058
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.DailyActivityDay, 1));
16059
+ };
16060
+
16061
+
16062
+ /**
16063
+ * @param {!Array<!proto.gateway.web.v1.DailyActivityDay>} value
16064
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16065
+ */
16066
+ proto.gateway.web.v1.DailyActivity.prototype.setDaysList = function(value) {
16067
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
16068
+ };
16069
+
16070
+
16071
+ /**
16072
+ * @param {!proto.gateway.web.v1.DailyActivityDay=} opt_value
16073
+ * @param {number=} opt_index
16074
+ * @return {!proto.gateway.web.v1.DailyActivityDay}
16075
+ */
16076
+ proto.gateway.web.v1.DailyActivity.prototype.addDays = function(opt_value, opt_index) {
16077
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.gateway.web.v1.DailyActivityDay, opt_index);
16078
+ };
16079
+
16080
+
16081
+ /**
16082
+ * Clears the list making it empty but non-null.
16083
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16084
+ */
16085
+ proto.gateway.web.v1.DailyActivity.prototype.clearDaysList = function() {
16086
+ return this.setDaysList([]);
16087
+ };
16088
+
16089
+
16090
+ /**
16091
+ * optional string start_date = 2;
16092
+ * @return {string}
16093
+ */
16094
+ proto.gateway.web.v1.DailyActivity.prototype.getStartDate = function() {
16095
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
16096
+ };
16097
+
16098
+
16099
+ /**
16100
+ * @param {string} value
16101
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16102
+ */
16103
+ proto.gateway.web.v1.DailyActivity.prototype.setStartDate = function(value) {
16104
+ return jspb.Message.setProto3StringField(this, 2, value);
16105
+ };
16106
+
16107
+
16108
+ /**
16109
+ * optional string end_date = 3;
16110
+ * @return {string}
16111
+ */
16112
+ proto.gateway.web.v1.DailyActivity.prototype.getEndDate = function() {
16113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
16114
+ };
16115
+
16116
+
16117
+ /**
16118
+ * @param {string} value
16119
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16120
+ */
16121
+ proto.gateway.web.v1.DailyActivity.prototype.setEndDate = function(value) {
16122
+ return jspb.Message.setProto3StringField(this, 3, value);
16123
+ };
16124
+
16125
+
16126
+ /**
16127
+ * optional string coverage_start = 4;
16128
+ * @return {string}
16129
+ */
16130
+ proto.gateway.web.v1.DailyActivity.prototype.getCoverageStart = function() {
16131
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
16132
+ };
16133
+
16134
+
16135
+ /**
16136
+ * @param {string} value
16137
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16138
+ */
16139
+ proto.gateway.web.v1.DailyActivity.prototype.setCoverageStart = function(value) {
16140
+ return jspb.Message.setProto3StringField(this, 4, value);
16141
+ };
16142
+
16143
+
16144
+ /**
16145
+ * optional string today = 5;
16146
+ * @return {string}
16147
+ */
16148
+ proto.gateway.web.v1.DailyActivity.prototype.getToday = function() {
16149
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
16150
+ };
16151
+
16152
+
16153
+ /**
16154
+ * @param {string} value
16155
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16156
+ */
16157
+ proto.gateway.web.v1.DailyActivity.prototype.setToday = function(value) {
16158
+ return jspb.Message.setProto3StringField(this, 5, value);
16159
+ };
16160
+
16161
+
16162
+ /**
16163
+ * optional google.protobuf.Timestamp as_of = 6;
16164
+ * @return {?proto.google.protobuf.Timestamp}
16165
+ */
16166
+ proto.gateway.web.v1.DailyActivity.prototype.getAsOf = function() {
16167
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
16168
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
16169
+ };
16170
+
16171
+
16172
+ /**
16173
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
16174
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16175
+ */
16176
+ proto.gateway.web.v1.DailyActivity.prototype.setAsOf = function(value) {
16177
+ return jspb.Message.setWrapperField(this, 6, value);
16178
+ };
16179
+
16180
+
16181
+ /**
16182
+ * Clears the message field making it undefined.
16183
+ * @return {!proto.gateway.web.v1.DailyActivity} returns this
16184
+ */
16185
+ proto.gateway.web.v1.DailyActivity.prototype.clearAsOf = function() {
16186
+ return this.setAsOf(undefined);
16187
+ };
16188
+
16189
+
16190
+ /**
16191
+ * Returns whether this field is set.
16192
+ * @return {boolean}
16193
+ */
16194
+ proto.gateway.web.v1.DailyActivity.prototype.hasAsOf = function() {
16195
+ return jspb.Message.getField(this, 6) != null;
16196
+ };
16197
+
16198
+
16199
+
16200
+
16201
+
16202
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16203
+ /**
16204
+ * Creates an object representation of this proto.
16205
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16206
+ * Optional fields that are not set will be set to undefined.
16207
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16208
+ * For the list of reserved names please see:
16209
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16210
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16211
+ * JSPB instance for transitional soy proto support:
16212
+ * http://goto/soy-param-migration
16213
+ * @return {!Object}
16214
+ */
16215
+ proto.gateway.web.v1.DailyActivityDay.prototype.toObject = function(opt_includeInstance) {
16216
+ return proto.gateway.web.v1.DailyActivityDay.toObject(opt_includeInstance, this);
16217
+ };
16218
+
16219
+
16220
+ /**
16221
+ * Static version of the {@see toObject} method.
16222
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16223
+ * the JSPB instance for transitional soy proto support:
16224
+ * http://goto/soy-param-migration
16225
+ * @param {!proto.gateway.web.v1.DailyActivityDay} msg The msg instance to transform.
16226
+ * @return {!Object}
16227
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16228
+ */
16229
+ proto.gateway.web.v1.DailyActivityDay.toObject = function(includeInstance, msg) {
16230
+ var f, obj = {
16231
+ day: jspb.Message.getFieldWithDefault(msg, 1, ""),
16232
+ measures: (f = msg.getMeasures()) && proto.gateway.web.v1.DailyActivityMeasures.toObject(includeInstance, f),
16233
+ provisional: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
16234
+ };
16235
+
16236
+ if (includeInstance) {
16237
+ obj.$jspbMessageInstance = msg;
16238
+ }
16239
+ return obj;
16240
+ };
16241
+ }
16242
+
16243
+
16244
+ /**
16245
+ * Deserializes binary data (in protobuf wire format).
16246
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16247
+ * @return {!proto.gateway.web.v1.DailyActivityDay}
16248
+ */
16249
+ proto.gateway.web.v1.DailyActivityDay.deserializeBinary = function(bytes) {
16250
+ var reader = new jspb.BinaryReader(bytes);
16251
+ var msg = new proto.gateway.web.v1.DailyActivityDay;
16252
+ return proto.gateway.web.v1.DailyActivityDay.deserializeBinaryFromReader(msg, reader);
16253
+ };
16254
+
16255
+
16256
+ /**
16257
+ * Deserializes binary data (in protobuf wire format) from the
16258
+ * given reader into the given message object.
16259
+ * @param {!proto.gateway.web.v1.DailyActivityDay} msg The message object to deserialize into.
16260
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16261
+ * @return {!proto.gateway.web.v1.DailyActivityDay}
16262
+ */
16263
+ proto.gateway.web.v1.DailyActivityDay.deserializeBinaryFromReader = function(msg, reader) {
16264
+ while (reader.nextField()) {
16265
+ if (reader.isEndGroup()) {
16266
+ break;
16267
+ }
16268
+ var field = reader.getFieldNumber();
16269
+ switch (field) {
16270
+ case 1:
16271
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
16272
+ msg.setDay(value);
16273
+ break;
16274
+ case 2:
16275
+ var value = new proto.gateway.web.v1.DailyActivityMeasures;
16276
+ reader.readMessage(value,proto.gateway.web.v1.DailyActivityMeasures.deserializeBinaryFromReader);
16277
+ msg.setMeasures(value);
16278
+ break;
16279
+ case 3:
16280
+ var value = /** @type {boolean} */ (reader.readBool());
16281
+ msg.setProvisional(value);
16282
+ break;
16283
+ default:
16284
+ reader.skipField();
16285
+ break;
16286
+ }
16287
+ }
16288
+ return msg;
16289
+ };
16290
+
16291
+
16292
+ /**
16293
+ * Serializes the message to binary data (in protobuf wire format).
16294
+ * @return {!Uint8Array}
16295
+ */
16296
+ proto.gateway.web.v1.DailyActivityDay.prototype.serializeBinary = function() {
16297
+ var writer = new jspb.BinaryWriter();
16298
+ proto.gateway.web.v1.DailyActivityDay.serializeBinaryToWriter(this, writer);
16299
+ return writer.getResultBuffer();
16300
+ };
16301
+
16302
+
16303
+ /**
16304
+ * Serializes the given message to binary data (in protobuf wire
16305
+ * format), writing to the given BinaryWriter.
16306
+ * @param {!proto.gateway.web.v1.DailyActivityDay} message
16307
+ * @param {!jspb.BinaryWriter} writer
16308
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16309
+ */
16310
+ proto.gateway.web.v1.DailyActivityDay.serializeBinaryToWriter = function(message, writer) {
16311
+ var f = undefined;
16312
+ f = message.getDay();
16313
+ if (f.length > 0) {
16314
+ writer.writeString(
16315
+ 1,
16316
+ f
16317
+ );
16318
+ }
16319
+ f = message.getMeasures();
16320
+ if (f != null) {
16321
+ writer.writeMessage(
16322
+ 2,
16323
+ f,
16324
+ proto.gateway.web.v1.DailyActivityMeasures.serializeBinaryToWriter
16325
+ );
16326
+ }
16327
+ f = message.getProvisional();
16328
+ if (f) {
16329
+ writer.writeBool(
16330
+ 3,
16331
+ f
16332
+ );
16333
+ }
16334
+ };
16335
+
16336
+
16337
+ /**
16338
+ * optional string day = 1;
16339
+ * @return {string}
16340
+ */
16341
+ proto.gateway.web.v1.DailyActivityDay.prototype.getDay = function() {
16342
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
16343
+ };
16344
+
16345
+
16346
+ /**
16347
+ * @param {string} value
16348
+ * @return {!proto.gateway.web.v1.DailyActivityDay} returns this
16349
+ */
16350
+ proto.gateway.web.v1.DailyActivityDay.prototype.setDay = function(value) {
16351
+ return jspb.Message.setProto3StringField(this, 1, value);
16352
+ };
16353
+
16354
+
16355
+ /**
16356
+ * optional DailyActivityMeasures measures = 2;
16357
+ * @return {?proto.gateway.web.v1.DailyActivityMeasures}
16358
+ */
16359
+ proto.gateway.web.v1.DailyActivityDay.prototype.getMeasures = function() {
16360
+ return /** @type{?proto.gateway.web.v1.DailyActivityMeasures} */ (
16361
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.DailyActivityMeasures, 2));
16362
+ };
16363
+
16364
+
16365
+ /**
16366
+ * @param {?proto.gateway.web.v1.DailyActivityMeasures|undefined} value
16367
+ * @return {!proto.gateway.web.v1.DailyActivityDay} returns this
16368
+ */
16369
+ proto.gateway.web.v1.DailyActivityDay.prototype.setMeasures = function(value) {
16370
+ return jspb.Message.setWrapperField(this, 2, value);
16371
+ };
16372
+
16373
+
16374
+ /**
16375
+ * Clears the message field making it undefined.
16376
+ * @return {!proto.gateway.web.v1.DailyActivityDay} returns this
16377
+ */
16378
+ proto.gateway.web.v1.DailyActivityDay.prototype.clearMeasures = function() {
16379
+ return this.setMeasures(undefined);
16380
+ };
16381
+
16382
+
16383
+ /**
16384
+ * Returns whether this field is set.
16385
+ * @return {boolean}
16386
+ */
16387
+ proto.gateway.web.v1.DailyActivityDay.prototype.hasMeasures = function() {
16388
+ return jspb.Message.getField(this, 2) != null;
16389
+ };
16390
+
16391
+
16392
+ /**
16393
+ * optional bool provisional = 3;
16394
+ * @return {boolean}
16395
+ */
16396
+ proto.gateway.web.v1.DailyActivityDay.prototype.getProvisional = function() {
16397
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
16398
+ };
16399
+
16400
+
16401
+ /**
16402
+ * @param {boolean} value
16403
+ * @return {!proto.gateway.web.v1.DailyActivityDay} returns this
16404
+ */
16405
+ proto.gateway.web.v1.DailyActivityDay.prototype.setProvisional = function(value) {
16406
+ return jspb.Message.setProto3BooleanField(this, 3, value);
16407
+ };
16408
+
16409
+
16410
+
16411
+
16412
+
16413
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16414
+ /**
16415
+ * Creates an object representation of this proto.
16416
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16417
+ * Optional fields that are not set will be set to undefined.
16418
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16419
+ * For the list of reserved names please see:
16420
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
16421
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
16422
+ * JSPB instance for transitional soy proto support:
16423
+ * http://goto/soy-param-migration
16424
+ * @return {!Object}
16425
+ */
16426
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.toObject = function(opt_includeInstance) {
16427
+ return proto.gateway.web.v1.DailyActivityMeasures.toObject(opt_includeInstance, this);
16428
+ };
16429
+
16430
+
16431
+ /**
16432
+ * Static version of the {@see toObject} method.
16433
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
16434
+ * the JSPB instance for transitional soy proto support:
16435
+ * http://goto/soy-param-migration
16436
+ * @param {!proto.gateway.web.v1.DailyActivityMeasures} msg The msg instance to transform.
16437
+ * @return {!Object}
16438
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16439
+ */
16440
+ proto.gateway.web.v1.DailyActivityMeasures.toObject = function(includeInstance, msg) {
16441
+ var f, obj = {
16442
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 1, 0),
16443
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 2, 0),
16444
+ cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 3, 0),
16445
+ cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 4, 0),
16446
+ costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
16447
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 6, 0),
16448
+ toolCalls: jspb.Message.getFieldWithDefault(msg, 7, 0),
16449
+ userMessages: jspb.Message.getFieldWithDefault(msg, 8, 0),
16450
+ filesTouched: jspb.Message.getFieldWithDefault(msg, 9, 0),
16451
+ commits: jspb.Message.getFieldWithDefault(msg, 10, 0),
16452
+ gitPushes: jspb.Message.getFieldWithDefault(msg, 11, 0),
16453
+ pullRequestsCreated: jspb.Message.getFieldWithDefault(msg, 12, 0),
16454
+ pullRequestsMerged: jspb.Message.getFieldWithDefault(msg, 13, 0),
16455
+ branchesCreated: jspb.Message.getFieldWithDefault(msg, 14, 0)
16456
+ };
16457
+
16458
+ if (includeInstance) {
16459
+ obj.$jspbMessageInstance = msg;
16460
+ }
16461
+ return obj;
16462
+ };
16463
+ }
16464
+
16465
+
16466
+ /**
16467
+ * Deserializes binary data (in protobuf wire format).
16468
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
16469
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures}
16470
+ */
16471
+ proto.gateway.web.v1.DailyActivityMeasures.deserializeBinary = function(bytes) {
16472
+ var reader = new jspb.BinaryReader(bytes);
16473
+ var msg = new proto.gateway.web.v1.DailyActivityMeasures;
16474
+ return proto.gateway.web.v1.DailyActivityMeasures.deserializeBinaryFromReader(msg, reader);
16475
+ };
16476
+
16477
+
16478
+ /**
16479
+ * Deserializes binary data (in protobuf wire format) from the
16480
+ * given reader into the given message object.
16481
+ * @param {!proto.gateway.web.v1.DailyActivityMeasures} msg The message object to deserialize into.
16482
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16483
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures}
16484
+ */
16485
+ proto.gateway.web.v1.DailyActivityMeasures.deserializeBinaryFromReader = function(msg, reader) {
16486
+ while (reader.nextField()) {
16487
+ if (reader.isEndGroup()) {
16488
+ break;
16489
+ }
16490
+ var field = reader.getFieldNumber();
16491
+ switch (field) {
16492
+ case 1:
16493
+ var value = /** @type {number} */ (reader.readUint64());
16494
+ msg.setInputTokens(value);
16495
+ break;
16496
+ case 2:
16497
+ var value = /** @type {number} */ (reader.readUint64());
16498
+ msg.setOutputTokens(value);
16499
+ break;
16500
+ case 3:
16501
+ var value = /** @type {number} */ (reader.readUint64());
16502
+ msg.setCacheReadTokens(value);
16503
+ break;
16504
+ case 4:
16505
+ var value = /** @type {number} */ (reader.readUint64());
16506
+ msg.setCacheWriteTokens(value);
16507
+ break;
16508
+ case 5:
16509
+ var value = /** @type {number} */ (reader.readDouble());
16510
+ msg.setCostUsd(value);
16511
+ break;
16512
+ case 6:
16513
+ var value = /** @type {number} */ (reader.readUint64());
16514
+ msg.setModelCalls(value);
16515
+ break;
16516
+ case 7:
16517
+ var value = /** @type {number} */ (reader.readUint64());
16518
+ msg.setToolCalls(value);
16519
+ break;
16520
+ case 8:
16521
+ var value = /** @type {number} */ (reader.readUint64());
16522
+ msg.setUserMessages(value);
16523
+ break;
16524
+ case 9:
16525
+ var value = /** @type {number} */ (reader.readUint64());
16526
+ msg.setFilesTouched(value);
16527
+ break;
16528
+ case 10:
16529
+ var value = /** @type {number} */ (reader.readUint64());
16530
+ msg.setCommits(value);
16531
+ break;
16532
+ case 11:
16533
+ var value = /** @type {number} */ (reader.readUint64());
16534
+ msg.setGitPushes(value);
16535
+ break;
16536
+ case 12:
16537
+ var value = /** @type {number} */ (reader.readUint64());
16538
+ msg.setPullRequestsCreated(value);
16539
+ break;
16540
+ case 13:
16541
+ var value = /** @type {number} */ (reader.readUint64());
16542
+ msg.setPullRequestsMerged(value);
16543
+ break;
16544
+ case 14:
16545
+ var value = /** @type {number} */ (reader.readUint64());
16546
+ msg.setBranchesCreated(value);
16547
+ break;
16548
+ default:
16549
+ reader.skipField();
16550
+ break;
16551
+ }
16552
+ }
16553
+ return msg;
16554
+ };
16555
+
16556
+
16557
+ /**
16558
+ * Serializes the message to binary data (in protobuf wire format).
16559
+ * @return {!Uint8Array}
16560
+ */
16561
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.serializeBinary = function() {
16562
+ var writer = new jspb.BinaryWriter();
16563
+ proto.gateway.web.v1.DailyActivityMeasures.serializeBinaryToWriter(this, writer);
16564
+ return writer.getResultBuffer();
16565
+ };
16566
+
16567
+
16568
+ /**
16569
+ * Serializes the given message to binary data (in protobuf wire
16570
+ * format), writing to the given BinaryWriter.
16571
+ * @param {!proto.gateway.web.v1.DailyActivityMeasures} message
16572
+ * @param {!jspb.BinaryWriter} writer
16573
+ * @suppress {unusedLocalVariables} f is only used for nested messages
16574
+ */
16575
+ proto.gateway.web.v1.DailyActivityMeasures.serializeBinaryToWriter = function(message, writer) {
16576
+ var f = undefined;
16577
+ f = message.getInputTokens();
16578
+ if (f !== 0) {
16579
+ writer.writeUint64(
16580
+ 1,
16581
+ f
16582
+ );
16583
+ }
16584
+ f = message.getOutputTokens();
16585
+ if (f !== 0) {
16586
+ writer.writeUint64(
16587
+ 2,
16588
+ f
16589
+ );
16590
+ }
16591
+ f = message.getCacheReadTokens();
16592
+ if (f !== 0) {
16593
+ writer.writeUint64(
16594
+ 3,
16595
+ f
16596
+ );
16597
+ }
16598
+ f = message.getCacheWriteTokens();
16599
+ if (f !== 0) {
16600
+ writer.writeUint64(
16601
+ 4,
16602
+ f
16603
+ );
16604
+ }
16605
+ f = message.getCostUsd();
16606
+ if (f !== 0.0) {
16607
+ writer.writeDouble(
16608
+ 5,
16609
+ f
16610
+ );
16611
+ }
16612
+ f = message.getModelCalls();
16613
+ if (f !== 0) {
16614
+ writer.writeUint64(
16615
+ 6,
16616
+ f
16617
+ );
16618
+ }
16619
+ f = message.getToolCalls();
16620
+ if (f !== 0) {
16621
+ writer.writeUint64(
16622
+ 7,
16623
+ f
16624
+ );
16625
+ }
16626
+ f = message.getUserMessages();
16627
+ if (f !== 0) {
16628
+ writer.writeUint64(
16629
+ 8,
16630
+ f
16631
+ );
16632
+ }
16633
+ f = message.getFilesTouched();
16634
+ if (f !== 0) {
16635
+ writer.writeUint64(
16636
+ 9,
16637
+ f
16638
+ );
16639
+ }
16640
+ f = message.getCommits();
16641
+ if (f !== 0) {
16642
+ writer.writeUint64(
16643
+ 10,
16644
+ f
16645
+ );
16646
+ }
16647
+ f = message.getGitPushes();
16648
+ if (f !== 0) {
16649
+ writer.writeUint64(
16650
+ 11,
16651
+ f
16652
+ );
16653
+ }
16654
+ f = message.getPullRequestsCreated();
16655
+ if (f !== 0) {
16656
+ writer.writeUint64(
16657
+ 12,
16658
+ f
16659
+ );
16660
+ }
16661
+ f = message.getPullRequestsMerged();
16662
+ if (f !== 0) {
16663
+ writer.writeUint64(
16664
+ 13,
16665
+ f
16666
+ );
16667
+ }
16668
+ f = message.getBranchesCreated();
16669
+ if (f !== 0) {
16670
+ writer.writeUint64(
16671
+ 14,
16672
+ f
16673
+ );
16674
+ }
16675
+ };
16676
+
16677
+
16678
+ /**
16679
+ * optional uint64 input_tokens = 1;
16680
+ * @return {number}
16681
+ */
16682
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getInputTokens = function() {
16683
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
16684
+ };
16685
+
16686
+
16687
+ /**
16688
+ * @param {number} value
16689
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16690
+ */
16691
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setInputTokens = function(value) {
16692
+ return jspb.Message.setProto3IntField(this, 1, value);
16693
+ };
16694
+
16695
+
16696
+ /**
16697
+ * optional uint64 output_tokens = 2;
16698
+ * @return {number}
16699
+ */
16700
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getOutputTokens = function() {
16701
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
16702
+ };
16703
+
16704
+
16705
+ /**
16706
+ * @param {number} value
16707
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16708
+ */
16709
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setOutputTokens = function(value) {
16710
+ return jspb.Message.setProto3IntField(this, 2, value);
16711
+ };
16712
+
16713
+
16714
+ /**
16715
+ * optional uint64 cache_read_tokens = 3;
16716
+ * @return {number}
16717
+ */
16718
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getCacheReadTokens = function() {
16719
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
16720
+ };
16721
+
16722
+
16723
+ /**
16724
+ * @param {number} value
16725
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16726
+ */
16727
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setCacheReadTokens = function(value) {
16728
+ return jspb.Message.setProto3IntField(this, 3, value);
16729
+ };
16730
+
16731
+
16732
+ /**
16733
+ * optional uint64 cache_write_tokens = 4;
16734
+ * @return {number}
16735
+ */
16736
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getCacheWriteTokens = function() {
16737
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
16738
+ };
16739
+
16740
+
16741
+ /**
16742
+ * @param {number} value
16743
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16744
+ */
16745
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setCacheWriteTokens = function(value) {
16746
+ return jspb.Message.setProto3IntField(this, 4, value);
16747
+ };
16748
+
16749
+
16750
+ /**
16751
+ * optional double cost_usd = 5;
16752
+ * @return {number}
16753
+ */
16754
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getCostUsd = function() {
16755
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
16756
+ };
16757
+
16758
+
16759
+ /**
16760
+ * @param {number} value
16761
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16762
+ */
16763
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setCostUsd = function(value) {
16764
+ return jspb.Message.setProto3FloatField(this, 5, value);
16765
+ };
16766
+
16767
+
16768
+ /**
16769
+ * optional uint64 model_calls = 6;
16770
+ * @return {number}
16771
+ */
16772
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getModelCalls = function() {
16773
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
16774
+ };
16775
+
16776
+
16777
+ /**
16778
+ * @param {number} value
16779
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16780
+ */
16781
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setModelCalls = function(value) {
16782
+ return jspb.Message.setProto3IntField(this, 6, value);
16783
+ };
16784
+
16785
+
16786
+ /**
16787
+ * optional uint64 tool_calls = 7;
16788
+ * @return {number}
16789
+ */
16790
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getToolCalls = function() {
16791
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
16792
+ };
16793
+
16794
+
16795
+ /**
16796
+ * @param {number} value
16797
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16798
+ */
16799
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setToolCalls = function(value) {
16800
+ return jspb.Message.setProto3IntField(this, 7, value);
16801
+ };
16802
+
16803
+
16804
+ /**
16805
+ * optional uint64 user_messages = 8;
16806
+ * @return {number}
16807
+ */
16808
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getUserMessages = function() {
16809
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
16810
+ };
16811
+
16812
+
16813
+ /**
16814
+ * @param {number} value
16815
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16816
+ */
16817
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setUserMessages = function(value) {
16818
+ return jspb.Message.setProto3IntField(this, 8, value);
16819
+ };
16820
+
16821
+
16822
+ /**
16823
+ * optional uint64 files_touched = 9;
16824
+ * @return {number}
16825
+ */
16826
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getFilesTouched = function() {
16827
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
16828
+ };
16829
+
16830
+
16831
+ /**
16832
+ * @param {number} value
16833
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16834
+ */
16835
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setFilesTouched = function(value) {
16836
+ return jspb.Message.setProto3IntField(this, 9, value);
16837
+ };
16838
+
16839
+
16840
+ /**
16841
+ * optional uint64 commits = 10;
16842
+ * @return {number}
16843
+ */
16844
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getCommits = function() {
16845
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
16846
+ };
16847
+
16848
+
16849
+ /**
16850
+ * @param {number} value
16851
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16852
+ */
16853
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setCommits = function(value) {
16854
+ return jspb.Message.setProto3IntField(this, 10, value);
16855
+ };
16856
+
16857
+
16858
+ /**
16859
+ * optional uint64 git_pushes = 11;
16860
+ * @return {number}
16861
+ */
16862
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getGitPushes = function() {
16863
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
16864
+ };
16865
+
16866
+
16867
+ /**
16868
+ * @param {number} value
16869
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16870
+ */
16871
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setGitPushes = function(value) {
16872
+ return jspb.Message.setProto3IntField(this, 11, value);
16873
+ };
16874
+
16875
+
16876
+ /**
16877
+ * optional uint64 pull_requests_created = 12;
16878
+ * @return {number}
16879
+ */
16880
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getPullRequestsCreated = function() {
16881
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
16882
+ };
16883
+
16884
+
16885
+ /**
16886
+ * @param {number} value
16887
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16888
+ */
16889
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setPullRequestsCreated = function(value) {
16890
+ return jspb.Message.setProto3IntField(this, 12, value);
16891
+ };
16892
+
16893
+
16894
+ /**
16895
+ * optional uint64 pull_requests_merged = 13;
16896
+ * @return {number}
16897
+ */
16898
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getPullRequestsMerged = function() {
16899
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
16900
+ };
16901
+
16902
+
16903
+ /**
16904
+ * @param {number} value
16905
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16906
+ */
16907
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setPullRequestsMerged = function(value) {
16908
+ return jspb.Message.setProto3IntField(this, 13, value);
16909
+ };
16910
+
16911
+
16912
+ /**
16913
+ * optional uint64 branches_created = 14;
16914
+ * @return {number}
16915
+ */
16916
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.getBranchesCreated = function() {
16917
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
16918
+ };
16919
+
16920
+
16921
+ /**
16922
+ * @param {number} value
16923
+ * @return {!proto.gateway.web.v1.DailyActivityMeasures} returns this
16924
+ */
16925
+ proto.gateway.web.v1.DailyActivityMeasures.prototype.setBranchesCreated = function(value) {
16926
+ return jspb.Message.setProto3IntField(this, 14, value);
16927
+ };
16928
+
16929
+
16930
+
16931
+
16932
+
15467
16933
  if (jspb.Message.GENERATE_TO_OBJECT) {
15468
16934
  /**
15469
16935
  * Creates an object representation of this proto.