@miradorlabs/web-grpc 3.38.1 → 3.40.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.
Files changed (31) hide show
  1. package/google/api/field_behavior.ts +1 -1
  2. package/google/protobuf/descriptor.ts +6 -3
  3. package/google/protobuf/duration.ts +6 -3
  4. package/google/protobuf/timestamp.ts +6 -3
  5. package/package.json +1 -1
  6. package/proto/gateway/common/v1/attribute_value.ts +6 -3
  7. package/proto/gateway/common/v1/status.ts +6 -3
  8. package/proto/gateway/common/v1/types.ts +6 -3
  9. package/proto/gateway/web/v1/account_gateway.ts +6 -3
  10. package/proto/gateway/web/v1/admin_gateway.ts +1189 -89
  11. package/proto/gateway/web/v1/admin_gateway_grpc_pb.js +36 -0
  12. package/proto/gateway/web/v1/admin_gateway_pb.js +1779 -57
  13. package/proto/gateway/web/v1/ai_gateway.ts +6 -3
  14. package/proto/gateway/web/v1/attribute_value.ts +6 -3
  15. package/proto/gateway/web/v1/beta_gateway.ts +6 -3
  16. package/proto/gateway/web/v1/chain_gateway.ts +6 -3
  17. package/proto/gateway/web/v1/common.ts +1 -1
  18. package/proto/gateway/web/v1/derived_metric_gateway.ts +6 -3
  19. package/proto/gateway/web/v1/github_connector.ts +6 -3
  20. package/proto/gateway/web/v1/integration_gateway.ts +6 -3
  21. package/proto/gateway/web/v1/log_gateway.ts +6 -3
  22. package/proto/gateway/web/v1/market_gateway.ts +6 -3
  23. package/proto/gateway/web/v1/metric_gateway.ts +6 -3
  24. package/proto/gateway/web/v1/oauth_gateway.ts +6 -3
  25. package/proto/gateway/web/v1/plan_gateway.ts +6 -3
  26. package/proto/gateway/web/v1/policy_gateway.ts +6 -3
  27. package/proto/gateway/web/v1/reference_gateway.ts +6 -3
  28. package/proto/gateway/web/v1/rule_gateway.ts +6 -3
  29. package/proto/gateway/web/v1/slo_gateway.ts +6 -3
  30. package/proto/gateway/web/v1/trace_gateway.ts +6 -3
  31. package/proto/gateway/web/v1/trace_measure_gateway.ts +6 -3
@@ -27,7 +27,13 @@ var proto_gateway_web_v1_beta_gateway_pb = require('../../../../proto/gateway/we
27
27
  goog.object.extend(proto, proto_gateway_web_v1_beta_gateway_pb);
28
28
  var proto_gateway_web_v1_reference_gateway_pb = require('../../../../proto/gateway/web/v1/reference_gateway_pb.js');
29
29
  goog.object.extend(proto, proto_gateway_web_v1_reference_gateway_pb);
30
+ var proto_gateway_web_v1_trace_gateway_pb = require('../../../../proto/gateway/web/v1/trace_gateway_pb.js');
31
+ goog.object.extend(proto, proto_gateway_web_v1_trace_gateway_pb);
30
32
  goog.exportSymbol('proto.gateway.web.v1.AdminRelayHeartbeat', null, global);
33
+ goog.exportSymbol('proto.gateway.web.v1.AdminUsageDimension', null, global);
34
+ goog.exportSymbol('proto.gateway.web.v1.AdminUsageGroup', null, global);
35
+ goog.exportSymbol('proto.gateway.web.v1.AdminUsageGroupFilter', null, global);
36
+ goog.exportSymbol('proto.gateway.web.v1.AdminUsageGroupSort', null, global);
31
37
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersRequest', null, global);
32
38
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIBillersResponse', null, global);
33
39
  goog.exportSymbol('proto.gateway.web.v1.ConfirmAIEffortsRequest', null, global);
@@ -43,6 +49,8 @@ goog.exportSymbol('proto.gateway.web.v1.GetAdminStatusResponse', null, global);
43
49
  goog.exportSymbol('proto.gateway.web.v1.InviteCode', null, global);
44
50
  goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsRequest', null, global);
45
51
  goog.exportSymbol('proto.gateway.web.v1.ListAdminRelayHeartbeatsResponse', null, global);
52
+ goog.exportSymbol('proto.gateway.web.v1.ListAdminUsageGroupsRequest', null, global);
53
+ goog.exportSymbol('proto.gateway.web.v1.ListAdminUsageGroupsResponse', null, global);
46
54
  goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesRequest', null, global);
47
55
  goog.exportSymbol('proto.gateway.web.v1.ListInviteCodesResponse', null, global);
48
56
  goog.exportSymbol('proto.gateway.web.v1.OrgDetails', null, global);
@@ -652,6 +660,90 @@ if (goog.DEBUG && !COMPILED) {
652
660
  */
653
661
  proto.gateway.web.v1.AdminRelayHeartbeat.displayName = 'proto.gateway.web.v1.AdminRelayHeartbeat';
654
662
  }
663
+ /**
664
+ * Generated by JsPbCodeGenerator.
665
+ * @param {Array=} opt_data Optional initial data array, typically from a
666
+ * server response, or constructed directly in Javascript. The array is used
667
+ * in place and becomes part of the constructed object. It is not cloned.
668
+ * If no data is provided, the constructed object will be empty, but still
669
+ * valid.
670
+ * @extends {jspb.Message}
671
+ * @constructor
672
+ */
673
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest = function(opt_data) {
674
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListAdminUsageGroupsRequest.repeatedFields_, null);
675
+ };
676
+ goog.inherits(proto.gateway.web.v1.ListAdminUsageGroupsRequest, jspb.Message);
677
+ if (goog.DEBUG && !COMPILED) {
678
+ /**
679
+ * @public
680
+ * @override
681
+ */
682
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.displayName = 'proto.gateway.web.v1.ListAdminUsageGroupsRequest';
683
+ }
684
+ /**
685
+ * Generated by JsPbCodeGenerator.
686
+ * @param {Array=} opt_data Optional initial data array, typically from a
687
+ * server response, or constructed directly in Javascript. The array is used
688
+ * in place and becomes part of the constructed object. It is not cloned.
689
+ * If no data is provided, the constructed object will be empty, but still
690
+ * valid.
691
+ * @extends {jspb.Message}
692
+ * @constructor
693
+ */
694
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse = function(opt_data) {
695
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListAdminUsageGroupsResponse.repeatedFields_, null);
696
+ };
697
+ goog.inherits(proto.gateway.web.v1.ListAdminUsageGroupsResponse, jspb.Message);
698
+ if (goog.DEBUG && !COMPILED) {
699
+ /**
700
+ * @public
701
+ * @override
702
+ */
703
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.displayName = 'proto.gateway.web.v1.ListAdminUsageGroupsResponse';
704
+ }
705
+ /**
706
+ * Generated by JsPbCodeGenerator.
707
+ * @param {Array=} opt_data Optional initial data array, typically from a
708
+ * server response, or constructed directly in Javascript. The array is used
709
+ * in place and becomes part of the constructed object. It is not cloned.
710
+ * If no data is provided, the constructed object will be empty, but still
711
+ * valid.
712
+ * @extends {jspb.Message}
713
+ * @constructor
714
+ */
715
+ proto.gateway.web.v1.AdminUsageGroupFilter = function(opt_data) {
716
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AdminUsageGroupFilter.repeatedFields_, null);
717
+ };
718
+ goog.inherits(proto.gateway.web.v1.AdminUsageGroupFilter, jspb.Message);
719
+ if (goog.DEBUG && !COMPILED) {
720
+ /**
721
+ * @public
722
+ * @override
723
+ */
724
+ proto.gateway.web.v1.AdminUsageGroupFilter.displayName = 'proto.gateway.web.v1.AdminUsageGroupFilter';
725
+ }
726
+ /**
727
+ * Generated by JsPbCodeGenerator.
728
+ * @param {Array=} opt_data Optional initial data array, typically from a
729
+ * server response, or constructed directly in Javascript. The array is used
730
+ * in place and becomes part of the constructed object. It is not cloned.
731
+ * If no data is provided, the constructed object will be empty, but still
732
+ * valid.
733
+ * @extends {jspb.Message}
734
+ * @constructor
735
+ */
736
+ proto.gateway.web.v1.AdminUsageGroup = function(opt_data) {
737
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
738
+ };
739
+ goog.inherits(proto.gateway.web.v1.AdminUsageGroup, jspb.Message);
740
+ if (goog.DEBUG && !COMPILED) {
741
+ /**
742
+ * @public
743
+ * @override
744
+ */
745
+ proto.gateway.web.v1.AdminUsageGroup.displayName = 'proto.gateway.web.v1.AdminUsageGroup';
746
+ }
655
747
  /**
656
748
  * Generated by JsPbCodeGenerator.
657
749
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6279,7 +6371,9 @@ launch: jspb.Message.getFieldWithDefault(msg, 8, ""),
6279
6371
  reason: jspb.Message.getFieldWithDefault(msg, 9, ""),
6280
6372
  exitReason: jspb.Message.getFieldWithDefault(msg, 10, ""),
6281
6373
  miradorApiKeyId: jspb.Message.getFieldWithDefault(msg, 11, ""),
6282
- countersMap: (f = msg.getCountersMap()) ? f.toObject(includeInstance, undefined) : []
6374
+ countersMap: (f = msg.getCountersMap()) ? f.toObject(includeInstance, undefined) : [],
6375
+ installMethod: jspb.Message.getFieldWithDefault(msg, 13, ""),
6376
+ updateAuto: jspb.Message.getFieldWithDefault(msg, 14, "")
6283
6377
  };
6284
6378
 
6285
6379
  if (includeInstance) {
@@ -6368,6 +6462,14 @@ proto.gateway.web.v1.AdminRelayHeartbeat.deserializeBinaryFromReader = function(
6368
6462
  jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readStringRequireUtf8, jspb.BinaryReader.prototype.readInt64, null, "", 0);
6369
6463
  });
6370
6464
  break;
6465
+ case 13:
6466
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6467
+ msg.setInstallMethod(value);
6468
+ break;
6469
+ case 14:
6470
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
6471
+ msg.setUpdateAuto(value);
6472
+ break;
6371
6473
  default:
6372
6474
  reader.skipField();
6373
6475
  break;
@@ -6485,6 +6587,20 @@ jspb.internal.public_for_gencode.serializeMapToBinary(
6485
6587
  jspb.BinaryWriter.prototype.writeString,
6486
6588
  jspb.BinaryWriter.prototype.writeInt64);
6487
6589
  }
6590
+ f = message.getInstallMethod();
6591
+ if (f.length > 0) {
6592
+ writer.writeString(
6593
+ 13,
6594
+ f
6595
+ );
6596
+ }
6597
+ f = message.getUpdateAuto();
6598
+ if (f.length > 0) {
6599
+ writer.writeString(
6600
+ 14,
6601
+ f
6602
+ );
6603
+ }
6488
6604
  };
6489
6605
 
6490
6606
 
@@ -6747,13 +6863,49 @@ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.clearCountersMap = function()
6747
6863
  };
6748
6864
 
6749
6865
 
6866
+ /**
6867
+ * optional string install_method = 13;
6868
+ * @return {string}
6869
+ */
6870
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getInstallMethod = function() {
6871
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
6872
+ };
6873
+
6874
+
6875
+ /**
6876
+ * @param {string} value
6877
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6878
+ */
6879
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setInstallMethod = function(value) {
6880
+ return jspb.Message.setProto3StringField(this, 13, value);
6881
+ };
6882
+
6883
+
6884
+ /**
6885
+ * optional string update_auto = 14;
6886
+ * @return {string}
6887
+ */
6888
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.getUpdateAuto = function() {
6889
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
6890
+ };
6891
+
6892
+
6893
+ /**
6894
+ * @param {string} value
6895
+ * @return {!proto.gateway.web.v1.AdminRelayHeartbeat} returns this
6896
+ */
6897
+ proto.gateway.web.v1.AdminRelayHeartbeat.prototype.setUpdateAuto = function(value) {
6898
+ return jspb.Message.setProto3StringField(this, 14, value);
6899
+ };
6900
+
6901
+
6750
6902
 
6751
6903
  /**
6752
6904
  * List of repeated fields within this message type.
6753
6905
  * @private {!Array<number>}
6754
6906
  * @const
6755
6907
  */
6756
- proto.gateway.web.v1.ResolveOrgDetailsRequest.repeatedFields_ = [1];
6908
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.repeatedFields_ = [3];
6757
6909
 
6758
6910
 
6759
6911
 
@@ -6770,8 +6922,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6770
6922
  * http://goto/soy-param-migration
6771
6923
  * @return {!Object}
6772
6924
  */
6773
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.toObject = function(opt_includeInstance) {
6774
- return proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject(opt_includeInstance, this);
6925
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.toObject = function(opt_includeInstance) {
6926
+ return proto.gateway.web.v1.ListAdminUsageGroupsRequest.toObject(opt_includeInstance, this);
6775
6927
  };
6776
6928
 
6777
6929
 
@@ -6780,13 +6932,19 @@ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.toObject = function(opt_
6780
6932
  * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6781
6933
  * the JSPB instance for transitional soy proto support:
6782
6934
  * http://goto/soy-param-migration
6783
- * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The msg instance to transform.
6935
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} msg The msg instance to transform.
6784
6936
  * @return {!Object}
6785
6937
  * @suppress {unusedLocalVariables} f is only used for nested messages
6786
6938
  */
6787
- proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject = function(includeInstance, msg) {
6939
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.toObject = function(includeInstance, msg) {
6788
6940
  var f, obj = {
6789
- organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
6941
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6942
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
6943
+ groupByList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
6944
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AdminUsageGroupFilter.toObject(includeInstance, f),
6945
+ sort: jspb.Message.getFieldWithDefault(msg, 5, 0),
6946
+ page: jspb.Message.getFieldWithDefault(msg, 6, 0),
6947
+ perPage: jspb.Message.getFieldWithDefault(msg, 7, 0)
6790
6948
  };
6791
6949
 
6792
6950
  if (includeInstance) {
@@ -6800,23 +6958,23 @@ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undef
6800
6958
  /**
6801
6959
  * Deserializes binary data (in protobuf wire format).
6802
6960
  * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
6803
- * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
6961
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest}
6804
6962
  */
6805
- proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinary = function(bytes) {
6963
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.deserializeBinary = function(bytes) {
6806
6964
  var reader = new jspb.BinaryReader(bytes);
6807
- var msg = new proto.gateway.web.v1.ResolveOrgDetailsRequest;
6808
- return proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader(msg, reader);
6965
+ var msg = new proto.gateway.web.v1.ListAdminUsageGroupsRequest;
6966
+ return proto.gateway.web.v1.ListAdminUsageGroupsRequest.deserializeBinaryFromReader(msg, reader);
6809
6967
  };
6810
6968
 
6811
6969
 
6812
6970
  /**
6813
6971
  * Deserializes binary data (in protobuf wire format) from the
6814
6972
  * given reader into the given message object.
6815
- * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The message object to deserialize into.
6973
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} msg The message object to deserialize into.
6816
6974
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6817
- * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
6975
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest}
6818
6976
  */
6819
- proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
6977
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.deserializeBinaryFromReader = function(msg, reader) {
6820
6978
  while (reader.nextField()) {
6821
6979
  if (reader.isEndGroup()) {
6822
6980
  break;
@@ -6824,8 +6982,34 @@ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader = func
6824
6982
  var field = reader.getFieldNumber();
6825
6983
  switch (field) {
6826
6984
  case 1:
6827
- var value = /** @type {string} */ (reader.readStringRequireUtf8());
6828
- msg.addOrganizationIds(value);
6985
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6986
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6987
+ msg.setStartTime(value);
6988
+ break;
6989
+ case 2:
6990
+ var value = new google_protobuf_timestamp_pb.Timestamp;
6991
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
6992
+ msg.setEndTime(value);
6993
+ break;
6994
+ case 3:
6995
+ reader.readPackableEnumInto(msg.getGroupByList());
6996
+ break;
6997
+ case 4:
6998
+ var value = new proto.gateway.web.v1.AdminUsageGroupFilter;
6999
+ reader.readMessage(value,proto.gateway.web.v1.AdminUsageGroupFilter.deserializeBinaryFromReader);
7000
+ msg.setFilter(value);
7001
+ break;
7002
+ case 5:
7003
+ var value = /** @type {!proto.gateway.web.v1.AdminUsageGroupSort} */ (reader.readEnum());
7004
+ msg.setSort(value);
7005
+ break;
7006
+ case 6:
7007
+ var value = /** @type {number} */ (reader.readInt32());
7008
+ msg.setPage(value);
7009
+ break;
7010
+ case 7:
7011
+ var value = /** @type {number} */ (reader.readInt32());
7012
+ msg.setPerPage(value);
6829
7013
  break;
6830
7014
  default:
6831
7015
  reader.skipField();
@@ -6840,9 +7024,9 @@ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader = func
6840
7024
  * Serializes the message to binary data (in protobuf wire format).
6841
7025
  * @return {!Uint8Array}
6842
7026
  */
6843
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.serializeBinary = function() {
7027
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.serializeBinary = function() {
6844
7028
  var writer = new jspb.BinaryWriter();
6845
- proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter(this, writer);
7029
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.serializeBinaryToWriter(this, writer);
6846
7030
  return writer.getResultBuffer();
6847
7031
  };
6848
7032
 
@@ -6850,16 +7034,61 @@ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.serializeBinary = functi
6850
7034
  /**
6851
7035
  * Serializes the given message to binary data (in protobuf wire
6852
7036
  * format), writing to the given BinaryWriter.
6853
- * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} message
7037
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} message
6854
7038
  * @param {!jspb.BinaryWriter} writer
6855
7039
  * @suppress {unusedLocalVariables} f is only used for nested messages
6856
7040
  */
6857
- proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter = function(message, writer) {
7041
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.serializeBinaryToWriter = function(message, writer) {
6858
7042
  var f = undefined;
6859
- f = message.getOrganizationIdsList();
6860
- if (f.length > 0) {
6861
- writer.writeRepeatedString(
7043
+ f = message.getStartTime();
7044
+ if (f != null) {
7045
+ writer.writeMessage(
6862
7046
  1,
7047
+ f,
7048
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
7049
+ );
7050
+ }
7051
+ f = message.getEndTime();
7052
+ if (f != null) {
7053
+ writer.writeMessage(
7054
+ 2,
7055
+ f,
7056
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
7057
+ );
7058
+ }
7059
+ f = message.getGroupByList();
7060
+ if (f.length > 0) {
7061
+ writer.writePackedEnum(
7062
+ 3,
7063
+ f
7064
+ );
7065
+ }
7066
+ f = message.getFilter();
7067
+ if (f != null) {
7068
+ writer.writeMessage(
7069
+ 4,
7070
+ f,
7071
+ proto.gateway.web.v1.AdminUsageGroupFilter.serializeBinaryToWriter
7072
+ );
7073
+ }
7074
+ f = message.getSort();
7075
+ if (f !== 0.0) {
7076
+ writer.writeEnum(
7077
+ 5,
7078
+ f
7079
+ );
7080
+ }
7081
+ f = message.getPage();
7082
+ if (f !== 0) {
7083
+ writer.writeInt32(
7084
+ 6,
7085
+ f
7086
+ );
7087
+ }
7088
+ f = message.getPerPage();
7089
+ if (f !== 0) {
7090
+ writer.writeInt32(
7091
+ 7,
6863
7092
  f
6864
7093
  );
6865
7094
  }
@@ -6867,67 +7096,1537 @@ proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter = function
6867
7096
 
6868
7097
 
6869
7098
  /**
6870
- * repeated string organization_ids = 1;
6871
- * @return {!Array<string>}
7099
+ * optional google.protobuf.Timestamp start_time = 1;
7100
+ * @return {?proto.google.protobuf.Timestamp}
6872
7101
  */
6873
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.getOrganizationIdsList = function() {
6874
- return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7102
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getStartTime = function() {
7103
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
7104
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 1));
6875
7105
  };
6876
7106
 
6877
7107
 
6878
7108
  /**
6879
- * @param {!Array<string>} value
6880
- * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
7109
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
7110
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7111
+ */
7112
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setStartTime = function(value) {
7113
+ return jspb.Message.setWrapperField(this, 1, value);
7114
+ };
7115
+
7116
+
7117
+ /**
7118
+ * Clears the message field making it undefined.
7119
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
6881
7120
  */
6882
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.setOrganizationIdsList = function(value) {
6883
- return jspb.Message.setField(this, 1, value || []);
7121
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.clearStartTime = function() {
7122
+ return this.setStartTime(undefined);
6884
7123
  };
6885
7124
 
6886
7125
 
6887
7126
  /**
6888
- * @param {string} value
6889
- * @param {number=} opt_index
6890
- * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
7127
+ * Returns whether this field is set.
7128
+ * @return {boolean}
6891
7129
  */
6892
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.addOrganizationIds = function(value, opt_index) {
6893
- return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7130
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.hasStartTime = function() {
7131
+ return jspb.Message.getField(this, 1) != null;
6894
7132
  };
6895
7133
 
6896
7134
 
6897
7135
  /**
6898
- * Clears the list making it empty but non-null.
6899
- * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
7136
+ * optional google.protobuf.Timestamp end_time = 2;
7137
+ * @return {?proto.google.protobuf.Timestamp}
6900
7138
  */
6901
- proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.clearOrganizationIdsList = function() {
6902
- return this.setOrganizationIdsList([]);
7139
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getEndTime = function() {
7140
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
7141
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 2));
6903
7142
  };
6904
7143
 
6905
7144
 
7145
+ /**
7146
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
7147
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7148
+ */
7149
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setEndTime = function(value) {
7150
+ return jspb.Message.setWrapperField(this, 2, value);
7151
+ };
7152
+
6906
7153
 
6907
7154
  /**
6908
- * List of repeated fields within this message type.
6909
- * @private {!Array<number>}
6910
- * @const
7155
+ * Clears the message field making it undefined.
7156
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
6911
7157
  */
6912
- proto.gateway.web.v1.ResolveOrgDetailsResponse.repeatedFields_ = [2];
7158
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.clearEndTime = function() {
7159
+ return this.setEndTime(undefined);
7160
+ };
6913
7161
 
6914
7162
 
7163
+ /**
7164
+ * Returns whether this field is set.
7165
+ * @return {boolean}
7166
+ */
7167
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.hasEndTime = function() {
7168
+ return jspb.Message.getField(this, 2) != null;
7169
+ };
7170
+
6915
7171
 
6916
- if (jspb.Message.GENERATE_TO_OBJECT) {
6917
7172
  /**
6918
- * Creates an object representation of this proto.
6919
- * Field names that are reserved in JavaScript and will be renamed to pb_name.
6920
- * Optional fields that are not set will be set to undefined.
6921
- * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6922
- * For the list of reserved names please see:
6923
- * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6924
- * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6925
- * JSPB instance for transitional soy proto support:
6926
- * http://goto/soy-param-migration
6927
- * @return {!Object}
7173
+ * repeated AdminUsageDimension group_by = 3;
7174
+ * @return {!Array<!proto.gateway.web.v1.AdminUsageDimension>}
6928
7175
  */
6929
- proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.toObject = function(opt_includeInstance) {
6930
- return proto.gateway.web.v1.ResolveOrgDetailsResponse.toObject(opt_includeInstance, this);
7176
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getGroupByList = function() {
7177
+ return /** @type {!Array<!proto.gateway.web.v1.AdminUsageDimension>} */ (jspb.Message.getRepeatedField(this, 3));
7178
+ };
7179
+
7180
+
7181
+ /**
7182
+ * @param {!Array<!proto.gateway.web.v1.AdminUsageDimension>} value
7183
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7184
+ */
7185
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setGroupByList = function(value) {
7186
+ return jspb.Message.setField(this, 3, value || []);
7187
+ };
7188
+
7189
+
7190
+ /**
7191
+ * @param {!proto.gateway.web.v1.AdminUsageDimension} value
7192
+ * @param {number=} opt_index
7193
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7194
+ */
7195
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.addGroupBy = function(value, opt_index) {
7196
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
7197
+ };
7198
+
7199
+
7200
+ /**
7201
+ * Clears the list making it empty but non-null.
7202
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7203
+ */
7204
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.clearGroupByList = function() {
7205
+ return this.setGroupByList([]);
7206
+ };
7207
+
7208
+
7209
+ /**
7210
+ * optional AdminUsageGroupFilter filter = 4;
7211
+ * @return {?proto.gateway.web.v1.AdminUsageGroupFilter}
7212
+ */
7213
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getFilter = function() {
7214
+ return /** @type{?proto.gateway.web.v1.AdminUsageGroupFilter} */ (
7215
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AdminUsageGroupFilter, 4));
7216
+ };
7217
+
7218
+
7219
+ /**
7220
+ * @param {?proto.gateway.web.v1.AdminUsageGroupFilter|undefined} value
7221
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7222
+ */
7223
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setFilter = function(value) {
7224
+ return jspb.Message.setWrapperField(this, 4, value);
7225
+ };
7226
+
7227
+
7228
+ /**
7229
+ * Clears the message field making it undefined.
7230
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7231
+ */
7232
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.clearFilter = function() {
7233
+ return this.setFilter(undefined);
7234
+ };
7235
+
7236
+
7237
+ /**
7238
+ * Returns whether this field is set.
7239
+ * @return {boolean}
7240
+ */
7241
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.hasFilter = function() {
7242
+ return jspb.Message.getField(this, 4) != null;
7243
+ };
7244
+
7245
+
7246
+ /**
7247
+ * optional AdminUsageGroupSort sort = 5;
7248
+ * @return {!proto.gateway.web.v1.AdminUsageGroupSort}
7249
+ */
7250
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getSort = function() {
7251
+ return /** @type {!proto.gateway.web.v1.AdminUsageGroupSort} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7252
+ };
7253
+
7254
+
7255
+ /**
7256
+ * @param {!proto.gateway.web.v1.AdminUsageGroupSort} value
7257
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7258
+ */
7259
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setSort = function(value) {
7260
+ return jspb.Message.setProto3EnumField(this, 5, value);
7261
+ };
7262
+
7263
+
7264
+ /**
7265
+ * optional int32 page = 6;
7266
+ * @return {number}
7267
+ */
7268
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getPage = function() {
7269
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
7270
+ };
7271
+
7272
+
7273
+ /**
7274
+ * @param {number} value
7275
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7276
+ */
7277
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setPage = function(value) {
7278
+ return jspb.Message.setProto3IntField(this, 6, value);
7279
+ };
7280
+
7281
+
7282
+ /**
7283
+ * optional int32 per_page = 7;
7284
+ * @return {number}
7285
+ */
7286
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.getPerPage = function() {
7287
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
7288
+ };
7289
+
7290
+
7291
+ /**
7292
+ * @param {number} value
7293
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsRequest} returns this
7294
+ */
7295
+ proto.gateway.web.v1.ListAdminUsageGroupsRequest.prototype.setPerPage = function(value) {
7296
+ return jspb.Message.setProto3IntField(this, 7, value);
7297
+ };
7298
+
7299
+
7300
+
7301
+ /**
7302
+ * List of repeated fields within this message type.
7303
+ * @private {!Array<number>}
7304
+ * @const
7305
+ */
7306
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.repeatedFields_ = [2];
7307
+
7308
+
7309
+
7310
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7311
+ /**
7312
+ * Creates an object representation of this proto.
7313
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7314
+ * Optional fields that are not set will be set to undefined.
7315
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7316
+ * For the list of reserved names please see:
7317
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7318
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7319
+ * JSPB instance for transitional soy proto support:
7320
+ * http://goto/soy-param-migration
7321
+ * @return {!Object}
7322
+ */
7323
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.toObject = function(opt_includeInstance) {
7324
+ return proto.gateway.web.v1.ListAdminUsageGroupsResponse.toObject(opt_includeInstance, this);
7325
+ };
7326
+
7327
+
7328
+ /**
7329
+ * Static version of the {@see toObject} method.
7330
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7331
+ * the JSPB instance for transitional soy proto support:
7332
+ * http://goto/soy-param-migration
7333
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} msg The msg instance to transform.
7334
+ * @return {!Object}
7335
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7336
+ */
7337
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.toObject = function(includeInstance, msg) {
7338
+ var f, obj = {
7339
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
7340
+ groupsList: jspb.Message.toObjectList(msg.getGroupsList(),
7341
+ proto.gateway.web.v1.AdminUsageGroup.toObject, includeInstance),
7342
+ pagination: (f = msg.getPagination()) && proto_gateway_web_v1_trace_gateway_pb.Pagination.toObject(includeInstance, f),
7343
+ refreshedAt: (f = msg.getRefreshedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
7344
+ };
7345
+
7346
+ if (includeInstance) {
7347
+ obj.$jspbMessageInstance = msg;
7348
+ }
7349
+ return obj;
7350
+ };
7351
+ }
7352
+
7353
+
7354
+ /**
7355
+ * Deserializes binary data (in protobuf wire format).
7356
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7357
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse}
7358
+ */
7359
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.deserializeBinary = function(bytes) {
7360
+ var reader = new jspb.BinaryReader(bytes);
7361
+ var msg = new proto.gateway.web.v1.ListAdminUsageGroupsResponse;
7362
+ return proto.gateway.web.v1.ListAdminUsageGroupsResponse.deserializeBinaryFromReader(msg, reader);
7363
+ };
7364
+
7365
+
7366
+ /**
7367
+ * Deserializes binary data (in protobuf wire format) from the
7368
+ * given reader into the given message object.
7369
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} msg The message object to deserialize into.
7370
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7371
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse}
7372
+ */
7373
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.deserializeBinaryFromReader = function(msg, reader) {
7374
+ while (reader.nextField()) {
7375
+ if (reader.isEndGroup()) {
7376
+ break;
7377
+ }
7378
+ var field = reader.getFieldNumber();
7379
+ switch (field) {
7380
+ case 1:
7381
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
7382
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
7383
+ msg.setStatus(value);
7384
+ break;
7385
+ case 2:
7386
+ var value = new proto.gateway.web.v1.AdminUsageGroup;
7387
+ reader.readMessage(value,proto.gateway.web.v1.AdminUsageGroup.deserializeBinaryFromReader);
7388
+ msg.addGroups(value);
7389
+ break;
7390
+ case 3:
7391
+ var value = new proto_gateway_web_v1_trace_gateway_pb.Pagination;
7392
+ reader.readMessage(value,proto_gateway_web_v1_trace_gateway_pb.Pagination.deserializeBinaryFromReader);
7393
+ msg.setPagination(value);
7394
+ break;
7395
+ case 4:
7396
+ var value = new google_protobuf_timestamp_pb.Timestamp;
7397
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
7398
+ msg.setRefreshedAt(value);
7399
+ break;
7400
+ default:
7401
+ reader.skipField();
7402
+ break;
7403
+ }
7404
+ }
7405
+ return msg;
7406
+ };
7407
+
7408
+
7409
+ /**
7410
+ * Serializes the message to binary data (in protobuf wire format).
7411
+ * @return {!Uint8Array}
7412
+ */
7413
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.serializeBinary = function() {
7414
+ var writer = new jspb.BinaryWriter();
7415
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.serializeBinaryToWriter(this, writer);
7416
+ return writer.getResultBuffer();
7417
+ };
7418
+
7419
+
7420
+ /**
7421
+ * Serializes the given message to binary data (in protobuf wire
7422
+ * format), writing to the given BinaryWriter.
7423
+ * @param {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} message
7424
+ * @param {!jspb.BinaryWriter} writer
7425
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7426
+ */
7427
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.serializeBinaryToWriter = function(message, writer) {
7428
+ var f = undefined;
7429
+ f = message.getStatus();
7430
+ if (f != null) {
7431
+ writer.writeMessage(
7432
+ 1,
7433
+ f,
7434
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
7435
+ );
7436
+ }
7437
+ f = message.getGroupsList();
7438
+ if (f.length > 0) {
7439
+ writer.writeRepeatedMessage(
7440
+ 2,
7441
+ f,
7442
+ proto.gateway.web.v1.AdminUsageGroup.serializeBinaryToWriter
7443
+ );
7444
+ }
7445
+ f = message.getPagination();
7446
+ if (f != null) {
7447
+ writer.writeMessage(
7448
+ 3,
7449
+ f,
7450
+ proto_gateway_web_v1_trace_gateway_pb.Pagination.serializeBinaryToWriter
7451
+ );
7452
+ }
7453
+ f = message.getRefreshedAt();
7454
+ if (f != null) {
7455
+ writer.writeMessage(
7456
+ 4,
7457
+ f,
7458
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
7459
+ );
7460
+ }
7461
+ };
7462
+
7463
+
7464
+ /**
7465
+ * optional gateway.common.v1.ResponseStatus status = 1;
7466
+ * @return {?proto.gateway.common.v1.ResponseStatus}
7467
+ */
7468
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.getStatus = function() {
7469
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
7470
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
7471
+ };
7472
+
7473
+
7474
+ /**
7475
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
7476
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7477
+ */
7478
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.setStatus = function(value) {
7479
+ return jspb.Message.setWrapperField(this, 1, value);
7480
+ };
7481
+
7482
+
7483
+ /**
7484
+ * Clears the message field making it undefined.
7485
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7486
+ */
7487
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.clearStatus = function() {
7488
+ return this.setStatus(undefined);
7489
+ };
7490
+
7491
+
7492
+ /**
7493
+ * Returns whether this field is set.
7494
+ * @return {boolean}
7495
+ */
7496
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.hasStatus = function() {
7497
+ return jspb.Message.getField(this, 1) != null;
7498
+ };
7499
+
7500
+
7501
+ /**
7502
+ * repeated AdminUsageGroup groups = 2;
7503
+ * @return {!Array<!proto.gateway.web.v1.AdminUsageGroup>}
7504
+ */
7505
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.getGroupsList = function() {
7506
+ return /** @type{!Array<!proto.gateway.web.v1.AdminUsageGroup>} */ (
7507
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AdminUsageGroup, 2));
7508
+ };
7509
+
7510
+
7511
+ /**
7512
+ * @param {!Array<!proto.gateway.web.v1.AdminUsageGroup>} value
7513
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7514
+ */
7515
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.setGroupsList = function(value) {
7516
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
7517
+ };
7518
+
7519
+
7520
+ /**
7521
+ * @param {!proto.gateway.web.v1.AdminUsageGroup=} opt_value
7522
+ * @param {number=} opt_index
7523
+ * @return {!proto.gateway.web.v1.AdminUsageGroup}
7524
+ */
7525
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.addGroups = function(opt_value, opt_index) {
7526
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AdminUsageGroup, opt_index);
7527
+ };
7528
+
7529
+
7530
+ /**
7531
+ * Clears the list making it empty but non-null.
7532
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7533
+ */
7534
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.clearGroupsList = function() {
7535
+ return this.setGroupsList([]);
7536
+ };
7537
+
7538
+
7539
+ /**
7540
+ * optional Pagination pagination = 3;
7541
+ * @return {?proto.gateway.web.v1.Pagination}
7542
+ */
7543
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.getPagination = function() {
7544
+ return /** @type{?proto.gateway.web.v1.Pagination} */ (
7545
+ jspb.Message.getWrapperField(this, proto_gateway_web_v1_trace_gateway_pb.Pagination, 3));
7546
+ };
7547
+
7548
+
7549
+ /**
7550
+ * @param {?proto.gateway.web.v1.Pagination|undefined} value
7551
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7552
+ */
7553
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.setPagination = function(value) {
7554
+ return jspb.Message.setWrapperField(this, 3, value);
7555
+ };
7556
+
7557
+
7558
+ /**
7559
+ * Clears the message field making it undefined.
7560
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7561
+ */
7562
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.clearPagination = function() {
7563
+ return this.setPagination(undefined);
7564
+ };
7565
+
7566
+
7567
+ /**
7568
+ * Returns whether this field is set.
7569
+ * @return {boolean}
7570
+ */
7571
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.hasPagination = function() {
7572
+ return jspb.Message.getField(this, 3) != null;
7573
+ };
7574
+
7575
+
7576
+ /**
7577
+ * optional google.protobuf.Timestamp refreshed_at = 4;
7578
+ * @return {?proto.google.protobuf.Timestamp}
7579
+ */
7580
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.getRefreshedAt = function() {
7581
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
7582
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
7583
+ };
7584
+
7585
+
7586
+ /**
7587
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
7588
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7589
+ */
7590
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.setRefreshedAt = function(value) {
7591
+ return jspb.Message.setWrapperField(this, 4, value);
7592
+ };
7593
+
7594
+
7595
+ /**
7596
+ * Clears the message field making it undefined.
7597
+ * @return {!proto.gateway.web.v1.ListAdminUsageGroupsResponse} returns this
7598
+ */
7599
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.clearRefreshedAt = function() {
7600
+ return this.setRefreshedAt(undefined);
7601
+ };
7602
+
7603
+
7604
+ /**
7605
+ * Returns whether this field is set.
7606
+ * @return {boolean}
7607
+ */
7608
+ proto.gateway.web.v1.ListAdminUsageGroupsResponse.prototype.hasRefreshedAt = function() {
7609
+ return jspb.Message.getField(this, 4) != null;
7610
+ };
7611
+
7612
+
7613
+
7614
+ /**
7615
+ * List of repeated fields within this message type.
7616
+ * @private {!Array<number>}
7617
+ * @const
7618
+ */
7619
+ proto.gateway.web.v1.AdminUsageGroupFilter.repeatedFields_ = [1,2];
7620
+
7621
+
7622
+
7623
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7624
+ /**
7625
+ * Creates an object representation of this proto.
7626
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7627
+ * Optional fields that are not set will be set to undefined.
7628
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7629
+ * For the list of reserved names please see:
7630
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7631
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7632
+ * JSPB instance for transitional soy proto support:
7633
+ * http://goto/soy-param-migration
7634
+ * @return {!Object}
7635
+ */
7636
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.toObject = function(opt_includeInstance) {
7637
+ return proto.gateway.web.v1.AdminUsageGroupFilter.toObject(opt_includeInstance, this);
7638
+ };
7639
+
7640
+
7641
+ /**
7642
+ * Static version of the {@see toObject} method.
7643
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7644
+ * the JSPB instance for transitional soy proto support:
7645
+ * http://goto/soy-param-migration
7646
+ * @param {!proto.gateway.web.v1.AdminUsageGroupFilter} msg The msg instance to transform.
7647
+ * @return {!Object}
7648
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7649
+ */
7650
+ proto.gateway.web.v1.AdminUsageGroupFilter.toObject = function(includeInstance, msg) {
7651
+ var f, obj = {
7652
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
7653
+ userIdsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f
7654
+ };
7655
+
7656
+ if (includeInstance) {
7657
+ obj.$jspbMessageInstance = msg;
7658
+ }
7659
+ return obj;
7660
+ };
7661
+ }
7662
+
7663
+
7664
+ /**
7665
+ * Deserializes binary data (in protobuf wire format).
7666
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7667
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter}
7668
+ */
7669
+ proto.gateway.web.v1.AdminUsageGroupFilter.deserializeBinary = function(bytes) {
7670
+ var reader = new jspb.BinaryReader(bytes);
7671
+ var msg = new proto.gateway.web.v1.AdminUsageGroupFilter;
7672
+ return proto.gateway.web.v1.AdminUsageGroupFilter.deserializeBinaryFromReader(msg, reader);
7673
+ };
7674
+
7675
+
7676
+ /**
7677
+ * Deserializes binary data (in protobuf wire format) from the
7678
+ * given reader into the given message object.
7679
+ * @param {!proto.gateway.web.v1.AdminUsageGroupFilter} msg The message object to deserialize into.
7680
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7681
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter}
7682
+ */
7683
+ proto.gateway.web.v1.AdminUsageGroupFilter.deserializeBinaryFromReader = function(msg, reader) {
7684
+ while (reader.nextField()) {
7685
+ if (reader.isEndGroup()) {
7686
+ break;
7687
+ }
7688
+ var field = reader.getFieldNumber();
7689
+ switch (field) {
7690
+ case 1:
7691
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7692
+ msg.addOrganizationIds(value);
7693
+ break;
7694
+ case 2:
7695
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7696
+ msg.addUserIds(value);
7697
+ break;
7698
+ default:
7699
+ reader.skipField();
7700
+ break;
7701
+ }
7702
+ }
7703
+ return msg;
7704
+ };
7705
+
7706
+
7707
+ /**
7708
+ * Serializes the message to binary data (in protobuf wire format).
7709
+ * @return {!Uint8Array}
7710
+ */
7711
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.serializeBinary = function() {
7712
+ var writer = new jspb.BinaryWriter();
7713
+ proto.gateway.web.v1.AdminUsageGroupFilter.serializeBinaryToWriter(this, writer);
7714
+ return writer.getResultBuffer();
7715
+ };
7716
+
7717
+
7718
+ /**
7719
+ * Serializes the given message to binary data (in protobuf wire
7720
+ * format), writing to the given BinaryWriter.
7721
+ * @param {!proto.gateway.web.v1.AdminUsageGroupFilter} message
7722
+ * @param {!jspb.BinaryWriter} writer
7723
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7724
+ */
7725
+ proto.gateway.web.v1.AdminUsageGroupFilter.serializeBinaryToWriter = function(message, writer) {
7726
+ var f = undefined;
7727
+ f = message.getOrganizationIdsList();
7728
+ if (f.length > 0) {
7729
+ writer.writeRepeatedString(
7730
+ 1,
7731
+ f
7732
+ );
7733
+ }
7734
+ f = message.getUserIdsList();
7735
+ if (f.length > 0) {
7736
+ writer.writeRepeatedString(
7737
+ 2,
7738
+ f
7739
+ );
7740
+ }
7741
+ };
7742
+
7743
+
7744
+ /**
7745
+ * repeated string organization_ids = 1;
7746
+ * @return {!Array<string>}
7747
+ */
7748
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.getOrganizationIdsList = function() {
7749
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7750
+ };
7751
+
7752
+
7753
+ /**
7754
+ * @param {!Array<string>} value
7755
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7756
+ */
7757
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.setOrganizationIdsList = function(value) {
7758
+ return jspb.Message.setField(this, 1, value || []);
7759
+ };
7760
+
7761
+
7762
+ /**
7763
+ * @param {string} value
7764
+ * @param {number=} opt_index
7765
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7766
+ */
7767
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.addOrganizationIds = function(value, opt_index) {
7768
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7769
+ };
7770
+
7771
+
7772
+ /**
7773
+ * Clears the list making it empty but non-null.
7774
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7775
+ */
7776
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.clearOrganizationIdsList = function() {
7777
+ return this.setOrganizationIdsList([]);
7778
+ };
7779
+
7780
+
7781
+ /**
7782
+ * repeated string user_ids = 2;
7783
+ * @return {!Array<string>}
7784
+ */
7785
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.getUserIdsList = function() {
7786
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
7787
+ };
7788
+
7789
+
7790
+ /**
7791
+ * @param {!Array<string>} value
7792
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7793
+ */
7794
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.setUserIdsList = function(value) {
7795
+ return jspb.Message.setField(this, 2, value || []);
7796
+ };
7797
+
7798
+
7799
+ /**
7800
+ * @param {string} value
7801
+ * @param {number=} opt_index
7802
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7803
+ */
7804
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.addUserIds = function(value, opt_index) {
7805
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
7806
+ };
7807
+
7808
+
7809
+ /**
7810
+ * Clears the list making it empty but non-null.
7811
+ * @return {!proto.gateway.web.v1.AdminUsageGroupFilter} returns this
7812
+ */
7813
+ proto.gateway.web.v1.AdminUsageGroupFilter.prototype.clearUserIdsList = function() {
7814
+ return this.setUserIdsList([]);
7815
+ };
7816
+
7817
+
7818
+
7819
+
7820
+
7821
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7822
+ /**
7823
+ * Creates an object representation of this proto.
7824
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7825
+ * Optional fields that are not set will be set to undefined.
7826
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7827
+ * For the list of reserved names please see:
7828
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7829
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7830
+ * JSPB instance for transitional soy proto support:
7831
+ * http://goto/soy-param-migration
7832
+ * @return {!Object}
7833
+ */
7834
+ proto.gateway.web.v1.AdminUsageGroup.prototype.toObject = function(opt_includeInstance) {
7835
+ return proto.gateway.web.v1.AdminUsageGroup.toObject(opt_includeInstance, this);
7836
+ };
7837
+
7838
+
7839
+ /**
7840
+ * Static version of the {@see toObject} method.
7841
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7842
+ * the JSPB instance for transitional soy proto support:
7843
+ * http://goto/soy-param-migration
7844
+ * @param {!proto.gateway.web.v1.AdminUsageGroup} msg The msg instance to transform.
7845
+ * @return {!Object}
7846
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7847
+ */
7848
+ proto.gateway.web.v1.AdminUsageGroup.toObject = function(includeInstance, msg) {
7849
+ var f, obj = {
7850
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
7851
+ principalKind: jspb.Message.getFieldWithDefault(msg, 2, 0),
7852
+ principalId: jspb.Message.getFieldWithDefault(msg, 3, ""),
7853
+ sourceSystem: jspb.Message.getFieldWithDefault(msg, 4, ""),
7854
+ model: jspb.Message.getFieldWithDefault(msg, 5, ""),
7855
+ day: (f = msg.getDay()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
7856
+ inputTokens: jspb.Message.getFieldWithDefault(msg, 7, 0),
7857
+ outputTokens: jspb.Message.getFieldWithDefault(msg, 8, 0),
7858
+ cacheReadTokens: jspb.Message.getFieldWithDefault(msg, 9, 0),
7859
+ cacheWriteTokens: jspb.Message.getFieldWithDefault(msg, 10, 0),
7860
+ costUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
7861
+ subscriptionCostUsd: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
7862
+ modelCalls: jspb.Message.getFieldWithDefault(msg, 13, 0),
7863
+ toolCalls: jspb.Message.getFieldWithDefault(msg, 14, 0),
7864
+ userMessages: jspb.Message.getFieldWithDefault(msg, 15, 0),
7865
+ sessions: jspb.Message.getFieldWithDefault(msg, 16, 0),
7866
+ userIdCount: jspb.Message.getFieldWithDefault(msg, 17, 0)
7867
+ };
7868
+
7869
+ if (includeInstance) {
7870
+ obj.$jspbMessageInstance = msg;
7871
+ }
7872
+ return obj;
7873
+ };
7874
+ }
7875
+
7876
+
7877
+ /**
7878
+ * Deserializes binary data (in protobuf wire format).
7879
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
7880
+ * @return {!proto.gateway.web.v1.AdminUsageGroup}
7881
+ */
7882
+ proto.gateway.web.v1.AdminUsageGroup.deserializeBinary = function(bytes) {
7883
+ var reader = new jspb.BinaryReader(bytes);
7884
+ var msg = new proto.gateway.web.v1.AdminUsageGroup;
7885
+ return proto.gateway.web.v1.AdminUsageGroup.deserializeBinaryFromReader(msg, reader);
7886
+ };
7887
+
7888
+
7889
+ /**
7890
+ * Deserializes binary data (in protobuf wire format) from the
7891
+ * given reader into the given message object.
7892
+ * @param {!proto.gateway.web.v1.AdminUsageGroup} msg The message object to deserialize into.
7893
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7894
+ * @return {!proto.gateway.web.v1.AdminUsageGroup}
7895
+ */
7896
+ proto.gateway.web.v1.AdminUsageGroup.deserializeBinaryFromReader = function(msg, reader) {
7897
+ while (reader.nextField()) {
7898
+ if (reader.isEndGroup()) {
7899
+ break;
7900
+ }
7901
+ var field = reader.getFieldNumber();
7902
+ switch (field) {
7903
+ case 1:
7904
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7905
+ msg.setOrganizationId(value);
7906
+ break;
7907
+ case 2:
7908
+ var value = /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (reader.readEnum());
7909
+ msg.setPrincipalKind(value);
7910
+ break;
7911
+ case 3:
7912
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7913
+ msg.setPrincipalId(value);
7914
+ break;
7915
+ case 4:
7916
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7917
+ msg.setSourceSystem(value);
7918
+ break;
7919
+ case 5:
7920
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
7921
+ msg.setModel(value);
7922
+ break;
7923
+ case 6:
7924
+ var value = new google_protobuf_timestamp_pb.Timestamp;
7925
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
7926
+ msg.setDay(value);
7927
+ break;
7928
+ case 7:
7929
+ var value = /** @type {number} */ (reader.readUint64());
7930
+ msg.setInputTokens(value);
7931
+ break;
7932
+ case 8:
7933
+ var value = /** @type {number} */ (reader.readUint64());
7934
+ msg.setOutputTokens(value);
7935
+ break;
7936
+ case 9:
7937
+ var value = /** @type {number} */ (reader.readUint64());
7938
+ msg.setCacheReadTokens(value);
7939
+ break;
7940
+ case 10:
7941
+ var value = /** @type {number} */ (reader.readUint64());
7942
+ msg.setCacheWriteTokens(value);
7943
+ break;
7944
+ case 11:
7945
+ var value = /** @type {number} */ (reader.readDouble());
7946
+ msg.setCostUsd(value);
7947
+ break;
7948
+ case 12:
7949
+ var value = /** @type {number} */ (reader.readDouble());
7950
+ msg.setSubscriptionCostUsd(value);
7951
+ break;
7952
+ case 13:
7953
+ var value = /** @type {number} */ (reader.readUint64());
7954
+ msg.setModelCalls(value);
7955
+ break;
7956
+ case 14:
7957
+ var value = /** @type {number} */ (reader.readUint64());
7958
+ msg.setToolCalls(value);
7959
+ break;
7960
+ case 15:
7961
+ var value = /** @type {number} */ (reader.readUint64());
7962
+ msg.setUserMessages(value);
7963
+ break;
7964
+ case 16:
7965
+ var value = /** @type {number} */ (reader.readUint64());
7966
+ msg.setSessions(value);
7967
+ break;
7968
+ case 17:
7969
+ var value = /** @type {number} */ (reader.readUint64());
7970
+ msg.setUserIdCount(value);
7971
+ break;
7972
+ default:
7973
+ reader.skipField();
7974
+ break;
7975
+ }
7976
+ }
7977
+ return msg;
7978
+ };
7979
+
7980
+
7981
+ /**
7982
+ * Serializes the message to binary data (in protobuf wire format).
7983
+ * @return {!Uint8Array}
7984
+ */
7985
+ proto.gateway.web.v1.AdminUsageGroup.prototype.serializeBinary = function() {
7986
+ var writer = new jspb.BinaryWriter();
7987
+ proto.gateway.web.v1.AdminUsageGroup.serializeBinaryToWriter(this, writer);
7988
+ return writer.getResultBuffer();
7989
+ };
7990
+
7991
+
7992
+ /**
7993
+ * Serializes the given message to binary data (in protobuf wire
7994
+ * format), writing to the given BinaryWriter.
7995
+ * @param {!proto.gateway.web.v1.AdminUsageGroup} message
7996
+ * @param {!jspb.BinaryWriter} writer
7997
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7998
+ */
7999
+ proto.gateway.web.v1.AdminUsageGroup.serializeBinaryToWriter = function(message, writer) {
8000
+ var f = undefined;
8001
+ f = message.getOrganizationId();
8002
+ if (f.length > 0) {
8003
+ writer.writeString(
8004
+ 1,
8005
+ f
8006
+ );
8007
+ }
8008
+ f = message.getPrincipalKind();
8009
+ if (f !== 0.0) {
8010
+ writer.writeEnum(
8011
+ 2,
8012
+ f
8013
+ );
8014
+ }
8015
+ f = message.getPrincipalId();
8016
+ if (f.length > 0) {
8017
+ writer.writeString(
8018
+ 3,
8019
+ f
8020
+ );
8021
+ }
8022
+ f = message.getSourceSystem();
8023
+ if (f.length > 0) {
8024
+ writer.writeString(
8025
+ 4,
8026
+ f
8027
+ );
8028
+ }
8029
+ f = message.getModel();
8030
+ if (f.length > 0) {
8031
+ writer.writeString(
8032
+ 5,
8033
+ f
8034
+ );
8035
+ }
8036
+ f = message.getDay();
8037
+ if (f != null) {
8038
+ writer.writeMessage(
8039
+ 6,
8040
+ f,
8041
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
8042
+ );
8043
+ }
8044
+ f = message.getInputTokens();
8045
+ if (f !== 0) {
8046
+ writer.writeUint64(
8047
+ 7,
8048
+ f
8049
+ );
8050
+ }
8051
+ f = message.getOutputTokens();
8052
+ if (f !== 0) {
8053
+ writer.writeUint64(
8054
+ 8,
8055
+ f
8056
+ );
8057
+ }
8058
+ f = message.getCacheReadTokens();
8059
+ if (f !== 0) {
8060
+ writer.writeUint64(
8061
+ 9,
8062
+ f
8063
+ );
8064
+ }
8065
+ f = message.getCacheWriteTokens();
8066
+ if (f !== 0) {
8067
+ writer.writeUint64(
8068
+ 10,
8069
+ f
8070
+ );
8071
+ }
8072
+ f = message.getCostUsd();
8073
+ if (f !== 0.0) {
8074
+ writer.writeDouble(
8075
+ 11,
8076
+ f
8077
+ );
8078
+ }
8079
+ f = message.getSubscriptionCostUsd();
8080
+ if (f !== 0.0) {
8081
+ writer.writeDouble(
8082
+ 12,
8083
+ f
8084
+ );
8085
+ }
8086
+ f = message.getModelCalls();
8087
+ if (f !== 0) {
8088
+ writer.writeUint64(
8089
+ 13,
8090
+ f
8091
+ );
8092
+ }
8093
+ f = message.getToolCalls();
8094
+ if (f !== 0) {
8095
+ writer.writeUint64(
8096
+ 14,
8097
+ f
8098
+ );
8099
+ }
8100
+ f = message.getUserMessages();
8101
+ if (f !== 0) {
8102
+ writer.writeUint64(
8103
+ 15,
8104
+ f
8105
+ );
8106
+ }
8107
+ f = message.getSessions();
8108
+ if (f !== 0) {
8109
+ writer.writeUint64(
8110
+ 16,
8111
+ f
8112
+ );
8113
+ }
8114
+ f = message.getUserIdCount();
8115
+ if (f !== 0) {
8116
+ writer.writeUint64(
8117
+ 17,
8118
+ f
8119
+ );
8120
+ }
8121
+ };
8122
+
8123
+
8124
+ /**
8125
+ * optional string organization_id = 1;
8126
+ * @return {string}
8127
+ */
8128
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getOrganizationId = function() {
8129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
8130
+ };
8131
+
8132
+
8133
+ /**
8134
+ * @param {string} value
8135
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8136
+ */
8137
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setOrganizationId = function(value) {
8138
+ return jspb.Message.setProto3StringField(this, 1, value);
8139
+ };
8140
+
8141
+
8142
+ /**
8143
+ * optional AIPrincipalKind principal_kind = 2;
8144
+ * @return {!proto.gateway.web.v1.AIPrincipalKind}
8145
+ */
8146
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getPrincipalKind = function() {
8147
+ return /** @type {!proto.gateway.web.v1.AIPrincipalKind} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8148
+ };
8149
+
8150
+
8151
+ /**
8152
+ * @param {!proto.gateway.web.v1.AIPrincipalKind} value
8153
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8154
+ */
8155
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setPrincipalKind = function(value) {
8156
+ return jspb.Message.setProto3EnumField(this, 2, value);
8157
+ };
8158
+
8159
+
8160
+ /**
8161
+ * optional string principal_id = 3;
8162
+ * @return {string}
8163
+ */
8164
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getPrincipalId = function() {
8165
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8166
+ };
8167
+
8168
+
8169
+ /**
8170
+ * @param {string} value
8171
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8172
+ */
8173
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setPrincipalId = function(value) {
8174
+ return jspb.Message.setProto3StringField(this, 3, value);
8175
+ };
8176
+
8177
+
8178
+ /**
8179
+ * optional string source_system = 4;
8180
+ * @return {string}
8181
+ */
8182
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getSourceSystem = function() {
8183
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
8184
+ };
8185
+
8186
+
8187
+ /**
8188
+ * @param {string} value
8189
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8190
+ */
8191
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setSourceSystem = function(value) {
8192
+ return jspb.Message.setProto3StringField(this, 4, value);
8193
+ };
8194
+
8195
+
8196
+ /**
8197
+ * optional string model = 5;
8198
+ * @return {string}
8199
+ */
8200
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getModel = function() {
8201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
8202
+ };
8203
+
8204
+
8205
+ /**
8206
+ * @param {string} value
8207
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8208
+ */
8209
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setModel = function(value) {
8210
+ return jspb.Message.setProto3StringField(this, 5, value);
8211
+ };
8212
+
8213
+
8214
+ /**
8215
+ * optional google.protobuf.Timestamp day = 6;
8216
+ * @return {?proto.google.protobuf.Timestamp}
8217
+ */
8218
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getDay = function() {
8219
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
8220
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
8221
+ };
8222
+
8223
+
8224
+ /**
8225
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
8226
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8227
+ */
8228
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setDay = function(value) {
8229
+ return jspb.Message.setWrapperField(this, 6, value);
8230
+ };
8231
+
8232
+
8233
+ /**
8234
+ * Clears the message field making it undefined.
8235
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8236
+ */
8237
+ proto.gateway.web.v1.AdminUsageGroup.prototype.clearDay = function() {
8238
+ return this.setDay(undefined);
8239
+ };
8240
+
8241
+
8242
+ /**
8243
+ * Returns whether this field is set.
8244
+ * @return {boolean}
8245
+ */
8246
+ proto.gateway.web.v1.AdminUsageGroup.prototype.hasDay = function() {
8247
+ return jspb.Message.getField(this, 6) != null;
8248
+ };
8249
+
8250
+
8251
+ /**
8252
+ * optional uint64 input_tokens = 7;
8253
+ * @return {number}
8254
+ */
8255
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getInputTokens = function() {
8256
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
8257
+ };
8258
+
8259
+
8260
+ /**
8261
+ * @param {number} value
8262
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8263
+ */
8264
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setInputTokens = function(value) {
8265
+ return jspb.Message.setProto3IntField(this, 7, value);
8266
+ };
8267
+
8268
+
8269
+ /**
8270
+ * optional uint64 output_tokens = 8;
8271
+ * @return {number}
8272
+ */
8273
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getOutputTokens = function() {
8274
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
8275
+ };
8276
+
8277
+
8278
+ /**
8279
+ * @param {number} value
8280
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8281
+ */
8282
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setOutputTokens = function(value) {
8283
+ return jspb.Message.setProto3IntField(this, 8, value);
8284
+ };
8285
+
8286
+
8287
+ /**
8288
+ * optional uint64 cache_read_tokens = 9;
8289
+ * @return {number}
8290
+ */
8291
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getCacheReadTokens = function() {
8292
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
8293
+ };
8294
+
8295
+
8296
+ /**
8297
+ * @param {number} value
8298
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8299
+ */
8300
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setCacheReadTokens = function(value) {
8301
+ return jspb.Message.setProto3IntField(this, 9, value);
8302
+ };
8303
+
8304
+
8305
+ /**
8306
+ * optional uint64 cache_write_tokens = 10;
8307
+ * @return {number}
8308
+ */
8309
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getCacheWriteTokens = function() {
8310
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
8311
+ };
8312
+
8313
+
8314
+ /**
8315
+ * @param {number} value
8316
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8317
+ */
8318
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setCacheWriteTokens = function(value) {
8319
+ return jspb.Message.setProto3IntField(this, 10, value);
8320
+ };
8321
+
8322
+
8323
+ /**
8324
+ * optional double cost_usd = 11;
8325
+ * @return {number}
8326
+ */
8327
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getCostUsd = function() {
8328
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
8329
+ };
8330
+
8331
+
8332
+ /**
8333
+ * @param {number} value
8334
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8335
+ */
8336
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setCostUsd = function(value) {
8337
+ return jspb.Message.setProto3FloatField(this, 11, value);
8338
+ };
8339
+
8340
+
8341
+ /**
8342
+ * optional double subscription_cost_usd = 12;
8343
+ * @return {number}
8344
+ */
8345
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getSubscriptionCostUsd = function() {
8346
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
8347
+ };
8348
+
8349
+
8350
+ /**
8351
+ * @param {number} value
8352
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8353
+ */
8354
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setSubscriptionCostUsd = function(value) {
8355
+ return jspb.Message.setProto3FloatField(this, 12, value);
8356
+ };
8357
+
8358
+
8359
+ /**
8360
+ * optional uint64 model_calls = 13;
8361
+ * @return {number}
8362
+ */
8363
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getModelCalls = function() {
8364
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
8365
+ };
8366
+
8367
+
8368
+ /**
8369
+ * @param {number} value
8370
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8371
+ */
8372
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setModelCalls = function(value) {
8373
+ return jspb.Message.setProto3IntField(this, 13, value);
8374
+ };
8375
+
8376
+
8377
+ /**
8378
+ * optional uint64 tool_calls = 14;
8379
+ * @return {number}
8380
+ */
8381
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getToolCalls = function() {
8382
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
8383
+ };
8384
+
8385
+
8386
+ /**
8387
+ * @param {number} value
8388
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8389
+ */
8390
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setToolCalls = function(value) {
8391
+ return jspb.Message.setProto3IntField(this, 14, value);
8392
+ };
8393
+
8394
+
8395
+ /**
8396
+ * optional uint64 user_messages = 15;
8397
+ * @return {number}
8398
+ */
8399
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getUserMessages = function() {
8400
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 15, 0));
8401
+ };
8402
+
8403
+
8404
+ /**
8405
+ * @param {number} value
8406
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8407
+ */
8408
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setUserMessages = function(value) {
8409
+ return jspb.Message.setProto3IntField(this, 15, value);
8410
+ };
8411
+
8412
+
8413
+ /**
8414
+ * optional uint64 sessions = 16;
8415
+ * @return {number}
8416
+ */
8417
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getSessions = function() {
8418
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 16, 0));
8419
+ };
8420
+
8421
+
8422
+ /**
8423
+ * @param {number} value
8424
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8425
+ */
8426
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setSessions = function(value) {
8427
+ return jspb.Message.setProto3IntField(this, 16, value);
8428
+ };
8429
+
8430
+
8431
+ /**
8432
+ * optional uint64 user_id_count = 17;
8433
+ * @return {number}
8434
+ */
8435
+ proto.gateway.web.v1.AdminUsageGroup.prototype.getUserIdCount = function() {
8436
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0));
8437
+ };
8438
+
8439
+
8440
+ /**
8441
+ * @param {number} value
8442
+ * @return {!proto.gateway.web.v1.AdminUsageGroup} returns this
8443
+ */
8444
+ proto.gateway.web.v1.AdminUsageGroup.prototype.setUserIdCount = function(value) {
8445
+ return jspb.Message.setProto3IntField(this, 17, value);
8446
+ };
8447
+
8448
+
8449
+
8450
+ /**
8451
+ * List of repeated fields within this message type.
8452
+ * @private {!Array<number>}
8453
+ * @const
8454
+ */
8455
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.repeatedFields_ = [1];
8456
+
8457
+
8458
+
8459
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8460
+ /**
8461
+ * Creates an object representation of this proto.
8462
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8463
+ * Optional fields that are not set will be set to undefined.
8464
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8465
+ * For the list of reserved names please see:
8466
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8467
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8468
+ * JSPB instance for transitional soy proto support:
8469
+ * http://goto/soy-param-migration
8470
+ * @return {!Object}
8471
+ */
8472
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.toObject = function(opt_includeInstance) {
8473
+ return proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject(opt_includeInstance, this);
8474
+ };
8475
+
8476
+
8477
+ /**
8478
+ * Static version of the {@see toObject} method.
8479
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8480
+ * the JSPB instance for transitional soy proto support:
8481
+ * http://goto/soy-param-migration
8482
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The msg instance to transform.
8483
+ * @return {!Object}
8484
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8485
+ */
8486
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.toObject = function(includeInstance, msg) {
8487
+ var f, obj = {
8488
+ organizationIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
8489
+ };
8490
+
8491
+ if (includeInstance) {
8492
+ obj.$jspbMessageInstance = msg;
8493
+ }
8494
+ return obj;
8495
+ };
8496
+ }
8497
+
8498
+
8499
+ /**
8500
+ * Deserializes binary data (in protobuf wire format).
8501
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
8502
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
8503
+ */
8504
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinary = function(bytes) {
8505
+ var reader = new jspb.BinaryReader(bytes);
8506
+ var msg = new proto.gateway.web.v1.ResolveOrgDetailsRequest;
8507
+ return proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader(msg, reader);
8508
+ };
8509
+
8510
+
8511
+ /**
8512
+ * Deserializes binary data (in protobuf wire format) from the
8513
+ * given reader into the given message object.
8514
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} msg The message object to deserialize into.
8515
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8516
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest}
8517
+ */
8518
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
8519
+ while (reader.nextField()) {
8520
+ if (reader.isEndGroup()) {
8521
+ break;
8522
+ }
8523
+ var field = reader.getFieldNumber();
8524
+ switch (field) {
8525
+ case 1:
8526
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
8527
+ msg.addOrganizationIds(value);
8528
+ break;
8529
+ default:
8530
+ reader.skipField();
8531
+ break;
8532
+ }
8533
+ }
8534
+ return msg;
8535
+ };
8536
+
8537
+
8538
+ /**
8539
+ * Serializes the message to binary data (in protobuf wire format).
8540
+ * @return {!Uint8Array}
8541
+ */
8542
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.serializeBinary = function() {
8543
+ var writer = new jspb.BinaryWriter();
8544
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter(this, writer);
8545
+ return writer.getResultBuffer();
8546
+ };
8547
+
8548
+
8549
+ /**
8550
+ * Serializes the given message to binary data (in protobuf wire
8551
+ * format), writing to the given BinaryWriter.
8552
+ * @param {!proto.gateway.web.v1.ResolveOrgDetailsRequest} message
8553
+ * @param {!jspb.BinaryWriter} writer
8554
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8555
+ */
8556
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.serializeBinaryToWriter = function(message, writer) {
8557
+ var f = undefined;
8558
+ f = message.getOrganizationIdsList();
8559
+ if (f.length > 0) {
8560
+ writer.writeRepeatedString(
8561
+ 1,
8562
+ f
8563
+ );
8564
+ }
8565
+ };
8566
+
8567
+
8568
+ /**
8569
+ * repeated string organization_ids = 1;
8570
+ * @return {!Array<string>}
8571
+ */
8572
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.getOrganizationIdsList = function() {
8573
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
8574
+ };
8575
+
8576
+
8577
+ /**
8578
+ * @param {!Array<string>} value
8579
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
8580
+ */
8581
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.setOrganizationIdsList = function(value) {
8582
+ return jspb.Message.setField(this, 1, value || []);
8583
+ };
8584
+
8585
+
8586
+ /**
8587
+ * @param {string} value
8588
+ * @param {number=} opt_index
8589
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
8590
+ */
8591
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.addOrganizationIds = function(value, opt_index) {
8592
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
8593
+ };
8594
+
8595
+
8596
+ /**
8597
+ * Clears the list making it empty but non-null.
8598
+ * @return {!proto.gateway.web.v1.ResolveOrgDetailsRequest} returns this
8599
+ */
8600
+ proto.gateway.web.v1.ResolveOrgDetailsRequest.prototype.clearOrganizationIdsList = function() {
8601
+ return this.setOrganizationIdsList([]);
8602
+ };
8603
+
8604
+
8605
+
8606
+ /**
8607
+ * List of repeated fields within this message type.
8608
+ * @private {!Array<number>}
8609
+ * @const
8610
+ */
8611
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.repeatedFields_ = [2];
8612
+
8613
+
8614
+
8615
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8616
+ /**
8617
+ * Creates an object representation of this proto.
8618
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8619
+ * Optional fields that are not set will be set to undefined.
8620
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8621
+ * For the list of reserved names please see:
8622
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8623
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8624
+ * JSPB instance for transitional soy proto support:
8625
+ * http://goto/soy-param-migration
8626
+ * @return {!Object}
8627
+ */
8628
+ proto.gateway.web.v1.ResolveOrgDetailsResponse.prototype.toObject = function(opt_includeInstance) {
8629
+ return proto.gateway.web.v1.ResolveOrgDetailsResponse.toObject(opt_includeInstance, this);
6931
8630
  };
6932
8631
 
6933
8632
 
@@ -8353,4 +10052,27 @@ proto.gateway.web.v1.UserDetails.prototype.setName = function(value) {
8353
10052
  };
8354
10053
 
8355
10054
 
10055
+ /**
10056
+ * @enum {number}
10057
+ */
10058
+ proto.gateway.web.v1.AdminUsageDimension = {
10059
+ ADMIN_USAGE_DIMENSION_UNSPECIFIED: 0,
10060
+ ADMIN_USAGE_DIMENSION_ORGANIZATION: 1,
10061
+ ADMIN_USAGE_DIMENSION_PRINCIPAL: 2,
10062
+ ADMIN_USAGE_DIMENSION_SOURCE: 3,
10063
+ ADMIN_USAGE_DIMENSION_MODEL: 4,
10064
+ ADMIN_USAGE_DIMENSION_DAY: 5
10065
+ };
10066
+
10067
+ /**
10068
+ * @enum {number}
10069
+ */
10070
+ proto.gateway.web.v1.AdminUsageGroupSort = {
10071
+ ADMIN_USAGE_GROUP_SORT_UNSPECIFIED: 0,
10072
+ ADMIN_USAGE_GROUP_SORT_COST_DESC: 1,
10073
+ ADMIN_USAGE_GROUP_SORT_TOKENS_DESC: 2,
10074
+ ADMIN_USAGE_GROUP_SORT_CALLS_DESC: 3,
10075
+ ADMIN_USAGE_GROUP_SORT_GROUP_ASC: 4
10076
+ };
10077
+
8356
10078
  goog.object.extend(exports, proto.gateway.web.v1);