@miradorlabs/web-grpc 2.48.0 → 2.50.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.
@@ -35,6 +35,8 @@ goog.exportSymbol('proto.gateway.web.v1.AIGitActivity', null, global);
35
35
  goog.exportSymbol('proto.gateway.web.v1.AIGitActivityDimension', null, global);
36
36
  goog.exportSymbol('proto.gateway.web.v1.AIGitActivityFilter', null, global);
37
37
  goog.exportSymbol('proto.gateway.web.v1.AIGitOutcome', null, global);
38
+ goog.exportSymbol('proto.gateway.web.v1.AIModelPrice', null, global);
39
+ goog.exportSymbol('proto.gateway.web.v1.AIModelPriceFilter', null, global);
38
40
  goog.exportSymbol('proto.gateway.web.v1.AIPrincipal', null, global);
39
41
  goog.exportSymbol('proto.gateway.web.v1.AIPrincipalKind', null, global);
40
42
  goog.exportSymbol('proto.gateway.web.v1.AISession', null, global);
@@ -63,6 +65,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListFileStatesRequest', null, global);
63
65
  goog.exportSymbol('proto.gateway.web.v1.ListFileStatesResponse', null, global);
64
66
  goog.exportSymbol('proto.gateway.web.v1.ListGitActivitiesRequest', null, global);
65
67
  goog.exportSymbol('proto.gateway.web.v1.ListGitActivitiesResponse', null, global);
68
+ goog.exportSymbol('proto.gateway.web.v1.ListModelPricesRequest', null, global);
69
+ goog.exportSymbol('proto.gateway.web.v1.ListModelPricesResponse', null, global);
66
70
  goog.exportSymbol('proto.gateway.web.v1.ListPrincipalsRequest', null, global);
67
71
  goog.exportSymbol('proto.gateway.web.v1.ListPrincipalsResponse', null, global);
68
72
  goog.exportSymbol('proto.gateway.web.v1.ListSessionEventsRequest', null, global);
@@ -960,6 +964,90 @@ if (goog.DEBUG && !COMPILED) {
960
964
  */
961
965
  proto.gateway.web.v1.FileStateGroup.displayName = 'proto.gateway.web.v1.FileStateGroup';
962
966
  }
967
+ /**
968
+ * Generated by JsPbCodeGenerator.
969
+ * @param {Array=} opt_data Optional initial data array, typically from a
970
+ * server response, or constructed directly in Javascript. The array is used
971
+ * in place and becomes part of the constructed object. It is not cloned.
972
+ * If no data is provided, the constructed object will be empty, but still
973
+ * valid.
974
+ * @extends {jspb.Message}
975
+ * @constructor
976
+ */
977
+ proto.gateway.web.v1.ListModelPricesRequest = function(opt_data) {
978
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
979
+ };
980
+ goog.inherits(proto.gateway.web.v1.ListModelPricesRequest, jspb.Message);
981
+ if (goog.DEBUG && !COMPILED) {
982
+ /**
983
+ * @public
984
+ * @override
985
+ */
986
+ proto.gateway.web.v1.ListModelPricesRequest.displayName = 'proto.gateway.web.v1.ListModelPricesRequest';
987
+ }
988
+ /**
989
+ * Generated by JsPbCodeGenerator.
990
+ * @param {Array=} opt_data Optional initial data array, typically from a
991
+ * server response, or constructed directly in Javascript. The array is used
992
+ * in place and becomes part of the constructed object. It is not cloned.
993
+ * If no data is provided, the constructed object will be empty, but still
994
+ * valid.
995
+ * @extends {jspb.Message}
996
+ * @constructor
997
+ */
998
+ proto.gateway.web.v1.AIModelPriceFilter = function(opt_data) {
999
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.AIModelPriceFilter.repeatedFields_, null);
1000
+ };
1001
+ goog.inherits(proto.gateway.web.v1.AIModelPriceFilter, jspb.Message);
1002
+ if (goog.DEBUG && !COMPILED) {
1003
+ /**
1004
+ * @public
1005
+ * @override
1006
+ */
1007
+ proto.gateway.web.v1.AIModelPriceFilter.displayName = 'proto.gateway.web.v1.AIModelPriceFilter';
1008
+ }
1009
+ /**
1010
+ * Generated by JsPbCodeGenerator.
1011
+ * @param {Array=} opt_data Optional initial data array, typically from a
1012
+ * server response, or constructed directly in Javascript. The array is used
1013
+ * in place and becomes part of the constructed object. It is not cloned.
1014
+ * If no data is provided, the constructed object will be empty, but still
1015
+ * valid.
1016
+ * @extends {jspb.Message}
1017
+ * @constructor
1018
+ */
1019
+ proto.gateway.web.v1.ListModelPricesResponse = function(opt_data) {
1020
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListModelPricesResponse.repeatedFields_, null);
1021
+ };
1022
+ goog.inherits(proto.gateway.web.v1.ListModelPricesResponse, jspb.Message);
1023
+ if (goog.DEBUG && !COMPILED) {
1024
+ /**
1025
+ * @public
1026
+ * @override
1027
+ */
1028
+ proto.gateway.web.v1.ListModelPricesResponse.displayName = 'proto.gateway.web.v1.ListModelPricesResponse';
1029
+ }
1030
+ /**
1031
+ * Generated by JsPbCodeGenerator.
1032
+ * @param {Array=} opt_data Optional initial data array, typically from a
1033
+ * server response, or constructed directly in Javascript. The array is used
1034
+ * in place and becomes part of the constructed object. It is not cloned.
1035
+ * If no data is provided, the constructed object will be empty, but still
1036
+ * valid.
1037
+ * @extends {jspb.Message}
1038
+ * @constructor
1039
+ */
1040
+ proto.gateway.web.v1.AIModelPrice = function(opt_data) {
1041
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1042
+ };
1043
+ goog.inherits(proto.gateway.web.v1.AIModelPrice, jspb.Message);
1044
+ if (goog.DEBUG && !COMPILED) {
1045
+ /**
1046
+ * @public
1047
+ * @override
1048
+ */
1049
+ proto.gateway.web.v1.AIModelPrice.displayName = 'proto.gateway.web.v1.AIModelPrice';
1050
+ }
963
1051
  /**
964
1052
  * Generated by JsPbCodeGenerator.
965
1053
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -14337,6 +14425,1181 @@ proto.gateway.web.v1.FileStateGroup.prototype.hasTiers = function() {
14337
14425
 
14338
14426
 
14339
14427
 
14428
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14429
+ /**
14430
+ * Creates an object representation of this proto.
14431
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14432
+ * Optional fields that are not set will be set to undefined.
14433
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14434
+ * For the list of reserved names please see:
14435
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14436
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14437
+ * JSPB instance for transitional soy proto support:
14438
+ * http://goto/soy-param-migration
14439
+ * @return {!Object}
14440
+ */
14441
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.toObject = function(opt_includeInstance) {
14442
+ return proto.gateway.web.v1.ListModelPricesRequest.toObject(opt_includeInstance, this);
14443
+ };
14444
+
14445
+
14446
+ /**
14447
+ * Static version of the {@see toObject} method.
14448
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14449
+ * the JSPB instance for transitional soy proto support:
14450
+ * http://goto/soy-param-migration
14451
+ * @param {!proto.gateway.web.v1.ListModelPricesRequest} msg The msg instance to transform.
14452
+ * @return {!Object}
14453
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14454
+ */
14455
+ proto.gateway.web.v1.ListModelPricesRequest.toObject = function(includeInstance, msg) {
14456
+ var f, obj = {
14457
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
14458
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
14459
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIModelPriceFilter.toObject(includeInstance, f),
14460
+ pageSize: jspb.Message.getFieldWithDefault(msg, 4, 0),
14461
+ pageToken: jspb.Message.getFieldWithDefault(msg, 5, "")
14462
+ };
14463
+
14464
+ if (includeInstance) {
14465
+ obj.$jspbMessageInstance = msg;
14466
+ }
14467
+ return obj;
14468
+ };
14469
+ }
14470
+
14471
+
14472
+ /**
14473
+ * Deserializes binary data (in protobuf wire format).
14474
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14475
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest}
14476
+ */
14477
+ proto.gateway.web.v1.ListModelPricesRequest.deserializeBinary = function(bytes) {
14478
+ var reader = new jspb.BinaryReader(bytes);
14479
+ var msg = new proto.gateway.web.v1.ListModelPricesRequest;
14480
+ return proto.gateway.web.v1.ListModelPricesRequest.deserializeBinaryFromReader(msg, reader);
14481
+ };
14482
+
14483
+
14484
+ /**
14485
+ * Deserializes binary data (in protobuf wire format) from the
14486
+ * given reader into the given message object.
14487
+ * @param {!proto.gateway.web.v1.ListModelPricesRequest} msg The message object to deserialize into.
14488
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14489
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest}
14490
+ */
14491
+ proto.gateway.web.v1.ListModelPricesRequest.deserializeBinaryFromReader = function(msg, reader) {
14492
+ while (reader.nextField()) {
14493
+ if (reader.isEndGroup()) {
14494
+ break;
14495
+ }
14496
+ var field = reader.getFieldNumber();
14497
+ switch (field) {
14498
+ case 1:
14499
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14500
+ msg.setOrganizationId(value);
14501
+ break;
14502
+ case 2:
14503
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14504
+ msg.setProjectId(value);
14505
+ break;
14506
+ case 3:
14507
+ var value = new proto.gateway.web.v1.AIModelPriceFilter;
14508
+ reader.readMessage(value,proto.gateway.web.v1.AIModelPriceFilter.deserializeBinaryFromReader);
14509
+ msg.setFilter(value);
14510
+ break;
14511
+ case 4:
14512
+ var value = /** @type {number} */ (reader.readInt32());
14513
+ msg.setPageSize(value);
14514
+ break;
14515
+ case 5:
14516
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14517
+ msg.setPageToken(value);
14518
+ break;
14519
+ default:
14520
+ reader.skipField();
14521
+ break;
14522
+ }
14523
+ }
14524
+ return msg;
14525
+ };
14526
+
14527
+
14528
+ /**
14529
+ * Serializes the message to binary data (in protobuf wire format).
14530
+ * @return {!Uint8Array}
14531
+ */
14532
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.serializeBinary = function() {
14533
+ var writer = new jspb.BinaryWriter();
14534
+ proto.gateway.web.v1.ListModelPricesRequest.serializeBinaryToWriter(this, writer);
14535
+ return writer.getResultBuffer();
14536
+ };
14537
+
14538
+
14539
+ /**
14540
+ * Serializes the given message to binary data (in protobuf wire
14541
+ * format), writing to the given BinaryWriter.
14542
+ * @param {!proto.gateway.web.v1.ListModelPricesRequest} message
14543
+ * @param {!jspb.BinaryWriter} writer
14544
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14545
+ */
14546
+ proto.gateway.web.v1.ListModelPricesRequest.serializeBinaryToWriter = function(message, writer) {
14547
+ var f = undefined;
14548
+ f = message.getOrganizationId();
14549
+ if (f.length > 0) {
14550
+ writer.writeString(
14551
+ 1,
14552
+ f
14553
+ );
14554
+ }
14555
+ f = message.getProjectId();
14556
+ if (f.length > 0) {
14557
+ writer.writeString(
14558
+ 2,
14559
+ f
14560
+ );
14561
+ }
14562
+ f = message.getFilter();
14563
+ if (f != null) {
14564
+ writer.writeMessage(
14565
+ 3,
14566
+ f,
14567
+ proto.gateway.web.v1.AIModelPriceFilter.serializeBinaryToWriter
14568
+ );
14569
+ }
14570
+ f = message.getPageSize();
14571
+ if (f !== 0) {
14572
+ writer.writeInt32(
14573
+ 4,
14574
+ f
14575
+ );
14576
+ }
14577
+ f = message.getPageToken();
14578
+ if (f.length > 0) {
14579
+ writer.writeString(
14580
+ 5,
14581
+ f
14582
+ );
14583
+ }
14584
+ };
14585
+
14586
+
14587
+ /**
14588
+ * optional string organization_id = 1;
14589
+ * @return {string}
14590
+ */
14591
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.getOrganizationId = function() {
14592
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
14593
+ };
14594
+
14595
+
14596
+ /**
14597
+ * @param {string} value
14598
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14599
+ */
14600
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.setOrganizationId = function(value) {
14601
+ return jspb.Message.setProto3StringField(this, 1, value);
14602
+ };
14603
+
14604
+
14605
+ /**
14606
+ * optional string project_id = 2;
14607
+ * @return {string}
14608
+ */
14609
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.getProjectId = function() {
14610
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
14611
+ };
14612
+
14613
+
14614
+ /**
14615
+ * @param {string} value
14616
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14617
+ */
14618
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.setProjectId = function(value) {
14619
+ return jspb.Message.setProto3StringField(this, 2, value);
14620
+ };
14621
+
14622
+
14623
+ /**
14624
+ * optional AIModelPriceFilter filter = 3;
14625
+ * @return {?proto.gateway.web.v1.AIModelPriceFilter}
14626
+ */
14627
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.getFilter = function() {
14628
+ return /** @type{?proto.gateway.web.v1.AIModelPriceFilter} */ (
14629
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIModelPriceFilter, 3));
14630
+ };
14631
+
14632
+
14633
+ /**
14634
+ * @param {?proto.gateway.web.v1.AIModelPriceFilter|undefined} value
14635
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14636
+ */
14637
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.setFilter = function(value) {
14638
+ return jspb.Message.setWrapperField(this, 3, value);
14639
+ };
14640
+
14641
+
14642
+ /**
14643
+ * Clears the message field making it undefined.
14644
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14645
+ */
14646
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.clearFilter = function() {
14647
+ return this.setFilter(undefined);
14648
+ };
14649
+
14650
+
14651
+ /**
14652
+ * Returns whether this field is set.
14653
+ * @return {boolean}
14654
+ */
14655
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.hasFilter = function() {
14656
+ return jspb.Message.getField(this, 3) != null;
14657
+ };
14658
+
14659
+
14660
+ /**
14661
+ * optional int32 page_size = 4;
14662
+ * @return {number}
14663
+ */
14664
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.getPageSize = function() {
14665
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
14666
+ };
14667
+
14668
+
14669
+ /**
14670
+ * @param {number} value
14671
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14672
+ */
14673
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.setPageSize = function(value) {
14674
+ return jspb.Message.setProto3IntField(this, 4, value);
14675
+ };
14676
+
14677
+
14678
+ /**
14679
+ * optional string page_token = 5;
14680
+ * @return {string}
14681
+ */
14682
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.getPageToken = function() {
14683
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
14684
+ };
14685
+
14686
+
14687
+ /**
14688
+ * @param {string} value
14689
+ * @return {!proto.gateway.web.v1.ListModelPricesRequest} returns this
14690
+ */
14691
+ proto.gateway.web.v1.ListModelPricesRequest.prototype.setPageToken = function(value) {
14692
+ return jspb.Message.setProto3StringField(this, 5, value);
14693
+ };
14694
+
14695
+
14696
+
14697
+ /**
14698
+ * List of repeated fields within this message type.
14699
+ * @private {!Array<number>}
14700
+ * @const
14701
+ */
14702
+ proto.gateway.web.v1.AIModelPriceFilter.repeatedFields_ = [1,2,3];
14703
+
14704
+
14705
+
14706
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14707
+ /**
14708
+ * Creates an object representation of this proto.
14709
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14710
+ * Optional fields that are not set will be set to undefined.
14711
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14712
+ * For the list of reserved names please see:
14713
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14714
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14715
+ * JSPB instance for transitional soy proto support:
14716
+ * http://goto/soy-param-migration
14717
+ * @return {!Object}
14718
+ */
14719
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.toObject = function(opt_includeInstance) {
14720
+ return proto.gateway.web.v1.AIModelPriceFilter.toObject(opt_includeInstance, this);
14721
+ };
14722
+
14723
+
14724
+ /**
14725
+ * Static version of the {@see toObject} method.
14726
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14727
+ * the JSPB instance for transitional soy proto support:
14728
+ * http://goto/soy-param-migration
14729
+ * @param {!proto.gateway.web.v1.AIModelPriceFilter} msg The msg instance to transform.
14730
+ * @return {!Object}
14731
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14732
+ */
14733
+ proto.gateway.web.v1.AIModelPriceFilter.toObject = function(includeInstance, msg) {
14734
+ var f, obj = {
14735
+ sourceList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
14736
+ providerList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
14737
+ modelList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
14738
+ };
14739
+
14740
+ if (includeInstance) {
14741
+ obj.$jspbMessageInstance = msg;
14742
+ }
14743
+ return obj;
14744
+ };
14745
+ }
14746
+
14747
+
14748
+ /**
14749
+ * Deserializes binary data (in protobuf wire format).
14750
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
14751
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter}
14752
+ */
14753
+ proto.gateway.web.v1.AIModelPriceFilter.deserializeBinary = function(bytes) {
14754
+ var reader = new jspb.BinaryReader(bytes);
14755
+ var msg = new proto.gateway.web.v1.AIModelPriceFilter;
14756
+ return proto.gateway.web.v1.AIModelPriceFilter.deserializeBinaryFromReader(msg, reader);
14757
+ };
14758
+
14759
+
14760
+ /**
14761
+ * Deserializes binary data (in protobuf wire format) from the
14762
+ * given reader into the given message object.
14763
+ * @param {!proto.gateway.web.v1.AIModelPriceFilter} msg The message object to deserialize into.
14764
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
14765
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter}
14766
+ */
14767
+ proto.gateway.web.v1.AIModelPriceFilter.deserializeBinaryFromReader = function(msg, reader) {
14768
+ while (reader.nextField()) {
14769
+ if (reader.isEndGroup()) {
14770
+ break;
14771
+ }
14772
+ var field = reader.getFieldNumber();
14773
+ switch (field) {
14774
+ case 1:
14775
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14776
+ msg.addSource(value);
14777
+ break;
14778
+ case 2:
14779
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14780
+ msg.addProvider(value);
14781
+ break;
14782
+ case 3:
14783
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
14784
+ msg.addModel(value);
14785
+ break;
14786
+ default:
14787
+ reader.skipField();
14788
+ break;
14789
+ }
14790
+ }
14791
+ return msg;
14792
+ };
14793
+
14794
+
14795
+ /**
14796
+ * Serializes the message to binary data (in protobuf wire format).
14797
+ * @return {!Uint8Array}
14798
+ */
14799
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.serializeBinary = function() {
14800
+ var writer = new jspb.BinaryWriter();
14801
+ proto.gateway.web.v1.AIModelPriceFilter.serializeBinaryToWriter(this, writer);
14802
+ return writer.getResultBuffer();
14803
+ };
14804
+
14805
+
14806
+ /**
14807
+ * Serializes the given message to binary data (in protobuf wire
14808
+ * format), writing to the given BinaryWriter.
14809
+ * @param {!proto.gateway.web.v1.AIModelPriceFilter} message
14810
+ * @param {!jspb.BinaryWriter} writer
14811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14812
+ */
14813
+ proto.gateway.web.v1.AIModelPriceFilter.serializeBinaryToWriter = function(message, writer) {
14814
+ var f = undefined;
14815
+ f = message.getSourceList();
14816
+ if (f.length > 0) {
14817
+ writer.writeRepeatedString(
14818
+ 1,
14819
+ f
14820
+ );
14821
+ }
14822
+ f = message.getProviderList();
14823
+ if (f.length > 0) {
14824
+ writer.writeRepeatedString(
14825
+ 2,
14826
+ f
14827
+ );
14828
+ }
14829
+ f = message.getModelList();
14830
+ if (f.length > 0) {
14831
+ writer.writeRepeatedString(
14832
+ 3,
14833
+ f
14834
+ );
14835
+ }
14836
+ };
14837
+
14838
+
14839
+ /**
14840
+ * repeated string source = 1;
14841
+ * @return {!Array<string>}
14842
+ */
14843
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.getSourceList = function() {
14844
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
14845
+ };
14846
+
14847
+
14848
+ /**
14849
+ * @param {!Array<string>} value
14850
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14851
+ */
14852
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.setSourceList = function(value) {
14853
+ return jspb.Message.setField(this, 1, value || []);
14854
+ };
14855
+
14856
+
14857
+ /**
14858
+ * @param {string} value
14859
+ * @param {number=} opt_index
14860
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14861
+ */
14862
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.addSource = function(value, opt_index) {
14863
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
14864
+ };
14865
+
14866
+
14867
+ /**
14868
+ * Clears the list making it empty but non-null.
14869
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14870
+ */
14871
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.clearSourceList = function() {
14872
+ return this.setSourceList([]);
14873
+ };
14874
+
14875
+
14876
+ /**
14877
+ * repeated string provider = 2;
14878
+ * @return {!Array<string>}
14879
+ */
14880
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.getProviderList = function() {
14881
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 2));
14882
+ };
14883
+
14884
+
14885
+ /**
14886
+ * @param {!Array<string>} value
14887
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14888
+ */
14889
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.setProviderList = function(value) {
14890
+ return jspb.Message.setField(this, 2, value || []);
14891
+ };
14892
+
14893
+
14894
+ /**
14895
+ * @param {string} value
14896
+ * @param {number=} opt_index
14897
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14898
+ */
14899
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.addProvider = function(value, opt_index) {
14900
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
14901
+ };
14902
+
14903
+
14904
+ /**
14905
+ * Clears the list making it empty but non-null.
14906
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14907
+ */
14908
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.clearProviderList = function() {
14909
+ return this.setProviderList([]);
14910
+ };
14911
+
14912
+
14913
+ /**
14914
+ * repeated string model = 3;
14915
+ * @return {!Array<string>}
14916
+ */
14917
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.getModelList = function() {
14918
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
14919
+ };
14920
+
14921
+
14922
+ /**
14923
+ * @param {!Array<string>} value
14924
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14925
+ */
14926
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.setModelList = function(value) {
14927
+ return jspb.Message.setField(this, 3, value || []);
14928
+ };
14929
+
14930
+
14931
+ /**
14932
+ * @param {string} value
14933
+ * @param {number=} opt_index
14934
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14935
+ */
14936
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.addModel = function(value, opt_index) {
14937
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
14938
+ };
14939
+
14940
+
14941
+ /**
14942
+ * Clears the list making it empty but non-null.
14943
+ * @return {!proto.gateway.web.v1.AIModelPriceFilter} returns this
14944
+ */
14945
+ proto.gateway.web.v1.AIModelPriceFilter.prototype.clearModelList = function() {
14946
+ return this.setModelList([]);
14947
+ };
14948
+
14949
+
14950
+
14951
+ /**
14952
+ * List of repeated fields within this message type.
14953
+ * @private {!Array<number>}
14954
+ * @const
14955
+ */
14956
+ proto.gateway.web.v1.ListModelPricesResponse.repeatedFields_ = [2];
14957
+
14958
+
14959
+
14960
+ if (jspb.Message.GENERATE_TO_OBJECT) {
14961
+ /**
14962
+ * Creates an object representation of this proto.
14963
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
14964
+ * Optional fields that are not set will be set to undefined.
14965
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
14966
+ * For the list of reserved names please see:
14967
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
14968
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
14969
+ * JSPB instance for transitional soy proto support:
14970
+ * http://goto/soy-param-migration
14971
+ * @return {!Object}
14972
+ */
14973
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.toObject = function(opt_includeInstance) {
14974
+ return proto.gateway.web.v1.ListModelPricesResponse.toObject(opt_includeInstance, this);
14975
+ };
14976
+
14977
+
14978
+ /**
14979
+ * Static version of the {@see toObject} method.
14980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
14981
+ * the JSPB instance for transitional soy proto support:
14982
+ * http://goto/soy-param-migration
14983
+ * @param {!proto.gateway.web.v1.ListModelPricesResponse} msg The msg instance to transform.
14984
+ * @return {!Object}
14985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
14986
+ */
14987
+ proto.gateway.web.v1.ListModelPricesResponse.toObject = function(includeInstance, msg) {
14988
+ var f, obj = {
14989
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
14990
+ pricesList: jspb.Message.toObjectList(msg.getPricesList(),
14991
+ proto.gateway.web.v1.AIModelPrice.toObject, includeInstance),
14992
+ nextPageToken: jspb.Message.getFieldWithDefault(msg, 3, ""),
14993
+ totalCount: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
14994
+ };
14995
+
14996
+ if (includeInstance) {
14997
+ obj.$jspbMessageInstance = msg;
14998
+ }
14999
+ return obj;
15000
+ };
15001
+ }
15002
+
15003
+
15004
+ /**
15005
+ * Deserializes binary data (in protobuf wire format).
15006
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15007
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse}
15008
+ */
15009
+ proto.gateway.web.v1.ListModelPricesResponse.deserializeBinary = function(bytes) {
15010
+ var reader = new jspb.BinaryReader(bytes);
15011
+ var msg = new proto.gateway.web.v1.ListModelPricesResponse;
15012
+ return proto.gateway.web.v1.ListModelPricesResponse.deserializeBinaryFromReader(msg, reader);
15013
+ };
15014
+
15015
+
15016
+ /**
15017
+ * Deserializes binary data (in protobuf wire format) from the
15018
+ * given reader into the given message object.
15019
+ * @param {!proto.gateway.web.v1.ListModelPricesResponse} msg The message object to deserialize into.
15020
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15021
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse}
15022
+ */
15023
+ proto.gateway.web.v1.ListModelPricesResponse.deserializeBinaryFromReader = function(msg, reader) {
15024
+ while (reader.nextField()) {
15025
+ if (reader.isEndGroup()) {
15026
+ break;
15027
+ }
15028
+ var field = reader.getFieldNumber();
15029
+ switch (field) {
15030
+ case 1:
15031
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
15032
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
15033
+ msg.setStatus(value);
15034
+ break;
15035
+ case 2:
15036
+ var value = new proto.gateway.web.v1.AIModelPrice;
15037
+ reader.readMessage(value,proto.gateway.web.v1.AIModelPrice.deserializeBinaryFromReader);
15038
+ msg.addPrices(value);
15039
+ break;
15040
+ case 3:
15041
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15042
+ msg.setNextPageToken(value);
15043
+ break;
15044
+ case 4:
15045
+ var value = /** @type {number} */ (reader.readInt64());
15046
+ msg.setTotalCount(value);
15047
+ break;
15048
+ default:
15049
+ reader.skipField();
15050
+ break;
15051
+ }
15052
+ }
15053
+ return msg;
15054
+ };
15055
+
15056
+
15057
+ /**
15058
+ * Serializes the message to binary data (in protobuf wire format).
15059
+ * @return {!Uint8Array}
15060
+ */
15061
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.serializeBinary = function() {
15062
+ var writer = new jspb.BinaryWriter();
15063
+ proto.gateway.web.v1.ListModelPricesResponse.serializeBinaryToWriter(this, writer);
15064
+ return writer.getResultBuffer();
15065
+ };
15066
+
15067
+
15068
+ /**
15069
+ * Serializes the given message to binary data (in protobuf wire
15070
+ * format), writing to the given BinaryWriter.
15071
+ * @param {!proto.gateway.web.v1.ListModelPricesResponse} message
15072
+ * @param {!jspb.BinaryWriter} writer
15073
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15074
+ */
15075
+ proto.gateway.web.v1.ListModelPricesResponse.serializeBinaryToWriter = function(message, writer) {
15076
+ var f = undefined;
15077
+ f = message.getStatus();
15078
+ if (f != null) {
15079
+ writer.writeMessage(
15080
+ 1,
15081
+ f,
15082
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
15083
+ );
15084
+ }
15085
+ f = message.getPricesList();
15086
+ if (f.length > 0) {
15087
+ writer.writeRepeatedMessage(
15088
+ 2,
15089
+ f,
15090
+ proto.gateway.web.v1.AIModelPrice.serializeBinaryToWriter
15091
+ );
15092
+ }
15093
+ f = message.getNextPageToken();
15094
+ if (f.length > 0) {
15095
+ writer.writeString(
15096
+ 3,
15097
+ f
15098
+ );
15099
+ }
15100
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
15101
+ if (f != null) {
15102
+ writer.writeInt64(
15103
+ 4,
15104
+ f
15105
+ );
15106
+ }
15107
+ };
15108
+
15109
+
15110
+ /**
15111
+ * optional gateway.common.v1.ResponseStatus status = 1;
15112
+ * @return {?proto.gateway.common.v1.ResponseStatus}
15113
+ */
15114
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.getStatus = function() {
15115
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
15116
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
15117
+ };
15118
+
15119
+
15120
+ /**
15121
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
15122
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15123
+ */
15124
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.setStatus = function(value) {
15125
+ return jspb.Message.setWrapperField(this, 1, value);
15126
+ };
15127
+
15128
+
15129
+ /**
15130
+ * Clears the message field making it undefined.
15131
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15132
+ */
15133
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.clearStatus = function() {
15134
+ return this.setStatus(undefined);
15135
+ };
15136
+
15137
+
15138
+ /**
15139
+ * Returns whether this field is set.
15140
+ * @return {boolean}
15141
+ */
15142
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.hasStatus = function() {
15143
+ return jspb.Message.getField(this, 1) != null;
15144
+ };
15145
+
15146
+
15147
+ /**
15148
+ * repeated AIModelPrice prices = 2;
15149
+ * @return {!Array<!proto.gateway.web.v1.AIModelPrice>}
15150
+ */
15151
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.getPricesList = function() {
15152
+ return /** @type{!Array<!proto.gateway.web.v1.AIModelPrice>} */ (
15153
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIModelPrice, 2));
15154
+ };
15155
+
15156
+
15157
+ /**
15158
+ * @param {!Array<!proto.gateway.web.v1.AIModelPrice>} value
15159
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15160
+ */
15161
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.setPricesList = function(value) {
15162
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
15163
+ };
15164
+
15165
+
15166
+ /**
15167
+ * @param {!proto.gateway.web.v1.AIModelPrice=} opt_value
15168
+ * @param {number=} opt_index
15169
+ * @return {!proto.gateway.web.v1.AIModelPrice}
15170
+ */
15171
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.addPrices = function(opt_value, opt_index) {
15172
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AIModelPrice, opt_index);
15173
+ };
15174
+
15175
+
15176
+ /**
15177
+ * Clears the list making it empty but non-null.
15178
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15179
+ */
15180
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.clearPricesList = function() {
15181
+ return this.setPricesList([]);
15182
+ };
15183
+
15184
+
15185
+ /**
15186
+ * optional string next_page_token = 3;
15187
+ * @return {string}
15188
+ */
15189
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.getNextPageToken = function() {
15190
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15191
+ };
15192
+
15193
+
15194
+ /**
15195
+ * @param {string} value
15196
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15197
+ */
15198
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.setNextPageToken = function(value) {
15199
+ return jspb.Message.setProto3StringField(this, 3, value);
15200
+ };
15201
+
15202
+
15203
+ /**
15204
+ * optional int64 total_count = 4;
15205
+ * @return {number}
15206
+ */
15207
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.getTotalCount = function() {
15208
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15209
+ };
15210
+
15211
+
15212
+ /**
15213
+ * @param {number} value
15214
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15215
+ */
15216
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.setTotalCount = function(value) {
15217
+ return jspb.Message.setField(this, 4, value);
15218
+ };
15219
+
15220
+
15221
+ /**
15222
+ * Clears the field making it undefined.
15223
+ * @return {!proto.gateway.web.v1.ListModelPricesResponse} returns this
15224
+ */
15225
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.clearTotalCount = function() {
15226
+ return jspb.Message.setField(this, 4, undefined);
15227
+ };
15228
+
15229
+
15230
+ /**
15231
+ * Returns whether this field is set.
15232
+ * @return {boolean}
15233
+ */
15234
+ proto.gateway.web.v1.ListModelPricesResponse.prototype.hasTotalCount = function() {
15235
+ return jspb.Message.getField(this, 4) != null;
15236
+ };
15237
+
15238
+
15239
+
15240
+
15241
+
15242
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15243
+ /**
15244
+ * Creates an object representation of this proto.
15245
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15246
+ * Optional fields that are not set will be set to undefined.
15247
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15248
+ * For the list of reserved names please see:
15249
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15250
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15251
+ * JSPB instance for transitional soy proto support:
15252
+ * http://goto/soy-param-migration
15253
+ * @return {!Object}
15254
+ */
15255
+ proto.gateway.web.v1.AIModelPrice.prototype.toObject = function(opt_includeInstance) {
15256
+ return proto.gateway.web.v1.AIModelPrice.toObject(opt_includeInstance, this);
15257
+ };
15258
+
15259
+
15260
+ /**
15261
+ * Static version of the {@see toObject} method.
15262
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15263
+ * the JSPB instance for transitional soy proto support:
15264
+ * http://goto/soy-param-migration
15265
+ * @param {!proto.gateway.web.v1.AIModelPrice} msg The msg instance to transform.
15266
+ * @return {!Object}
15267
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15268
+ */
15269
+ proto.gateway.web.v1.AIModelPrice.toObject = function(includeInstance, msg) {
15270
+ var f, obj = {
15271
+ source: jspb.Message.getFieldWithDefault(msg, 1, ""),
15272
+ provider: jspb.Message.getFieldWithDefault(msg, 2, ""),
15273
+ model: jspb.Message.getFieldWithDefault(msg, 3, ""),
15274
+ scrapedAt: (f = msg.getScrapedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
15275
+ inputUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
15276
+ outputUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
15277
+ cacheReadUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
15278
+ cacheWriteUsdPerMtok: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
15279
+ };
15280
+
15281
+ if (includeInstance) {
15282
+ obj.$jspbMessageInstance = msg;
15283
+ }
15284
+ return obj;
15285
+ };
15286
+ }
15287
+
15288
+
15289
+ /**
15290
+ * Deserializes binary data (in protobuf wire format).
15291
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15292
+ * @return {!proto.gateway.web.v1.AIModelPrice}
15293
+ */
15294
+ proto.gateway.web.v1.AIModelPrice.deserializeBinary = function(bytes) {
15295
+ var reader = new jspb.BinaryReader(bytes);
15296
+ var msg = new proto.gateway.web.v1.AIModelPrice;
15297
+ return proto.gateway.web.v1.AIModelPrice.deserializeBinaryFromReader(msg, reader);
15298
+ };
15299
+
15300
+
15301
+ /**
15302
+ * Deserializes binary data (in protobuf wire format) from the
15303
+ * given reader into the given message object.
15304
+ * @param {!proto.gateway.web.v1.AIModelPrice} msg The message object to deserialize into.
15305
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15306
+ * @return {!proto.gateway.web.v1.AIModelPrice}
15307
+ */
15308
+ proto.gateway.web.v1.AIModelPrice.deserializeBinaryFromReader = function(msg, reader) {
15309
+ while (reader.nextField()) {
15310
+ if (reader.isEndGroup()) {
15311
+ break;
15312
+ }
15313
+ var field = reader.getFieldNumber();
15314
+ switch (field) {
15315
+ case 1:
15316
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15317
+ msg.setSource(value);
15318
+ break;
15319
+ case 2:
15320
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15321
+ msg.setProvider(value);
15322
+ break;
15323
+ case 3:
15324
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15325
+ msg.setModel(value);
15326
+ break;
15327
+ case 4:
15328
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15329
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15330
+ msg.setScrapedAt(value);
15331
+ break;
15332
+ case 5:
15333
+ var value = /** @type {number} */ (reader.readDouble());
15334
+ msg.setInputUsdPerMtok(value);
15335
+ break;
15336
+ case 6:
15337
+ var value = /** @type {number} */ (reader.readDouble());
15338
+ msg.setOutputUsdPerMtok(value);
15339
+ break;
15340
+ case 7:
15341
+ var value = /** @type {number} */ (reader.readDouble());
15342
+ msg.setCacheReadUsdPerMtok(value);
15343
+ break;
15344
+ case 8:
15345
+ var value = /** @type {number} */ (reader.readDouble());
15346
+ msg.setCacheWriteUsdPerMtok(value);
15347
+ break;
15348
+ default:
15349
+ reader.skipField();
15350
+ break;
15351
+ }
15352
+ }
15353
+ return msg;
15354
+ };
15355
+
15356
+
15357
+ /**
15358
+ * Serializes the message to binary data (in protobuf wire format).
15359
+ * @return {!Uint8Array}
15360
+ */
15361
+ proto.gateway.web.v1.AIModelPrice.prototype.serializeBinary = function() {
15362
+ var writer = new jspb.BinaryWriter();
15363
+ proto.gateway.web.v1.AIModelPrice.serializeBinaryToWriter(this, writer);
15364
+ return writer.getResultBuffer();
15365
+ };
15366
+
15367
+
15368
+ /**
15369
+ * Serializes the given message to binary data (in protobuf wire
15370
+ * format), writing to the given BinaryWriter.
15371
+ * @param {!proto.gateway.web.v1.AIModelPrice} message
15372
+ * @param {!jspb.BinaryWriter} writer
15373
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15374
+ */
15375
+ proto.gateway.web.v1.AIModelPrice.serializeBinaryToWriter = function(message, writer) {
15376
+ var f = undefined;
15377
+ f = message.getSource();
15378
+ if (f.length > 0) {
15379
+ writer.writeString(
15380
+ 1,
15381
+ f
15382
+ );
15383
+ }
15384
+ f = message.getProvider();
15385
+ if (f.length > 0) {
15386
+ writer.writeString(
15387
+ 2,
15388
+ f
15389
+ );
15390
+ }
15391
+ f = message.getModel();
15392
+ if (f.length > 0) {
15393
+ writer.writeString(
15394
+ 3,
15395
+ f
15396
+ );
15397
+ }
15398
+ f = message.getScrapedAt();
15399
+ if (f != null) {
15400
+ writer.writeMessage(
15401
+ 4,
15402
+ f,
15403
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15404
+ );
15405
+ }
15406
+ f = message.getInputUsdPerMtok();
15407
+ if (f !== 0.0) {
15408
+ writer.writeDouble(
15409
+ 5,
15410
+ f
15411
+ );
15412
+ }
15413
+ f = message.getOutputUsdPerMtok();
15414
+ if (f !== 0.0) {
15415
+ writer.writeDouble(
15416
+ 6,
15417
+ f
15418
+ );
15419
+ }
15420
+ f = message.getCacheReadUsdPerMtok();
15421
+ if (f !== 0.0) {
15422
+ writer.writeDouble(
15423
+ 7,
15424
+ f
15425
+ );
15426
+ }
15427
+ f = message.getCacheWriteUsdPerMtok();
15428
+ if (f !== 0.0) {
15429
+ writer.writeDouble(
15430
+ 8,
15431
+ f
15432
+ );
15433
+ }
15434
+ };
15435
+
15436
+
15437
+ /**
15438
+ * optional string source = 1;
15439
+ * @return {string}
15440
+ */
15441
+ proto.gateway.web.v1.AIModelPrice.prototype.getSource = function() {
15442
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15443
+ };
15444
+
15445
+
15446
+ /**
15447
+ * @param {string} value
15448
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15449
+ */
15450
+ proto.gateway.web.v1.AIModelPrice.prototype.setSource = function(value) {
15451
+ return jspb.Message.setProto3StringField(this, 1, value);
15452
+ };
15453
+
15454
+
15455
+ /**
15456
+ * optional string provider = 2;
15457
+ * @return {string}
15458
+ */
15459
+ proto.gateway.web.v1.AIModelPrice.prototype.getProvider = function() {
15460
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15461
+ };
15462
+
15463
+
15464
+ /**
15465
+ * @param {string} value
15466
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15467
+ */
15468
+ proto.gateway.web.v1.AIModelPrice.prototype.setProvider = function(value) {
15469
+ return jspb.Message.setProto3StringField(this, 2, value);
15470
+ };
15471
+
15472
+
15473
+ /**
15474
+ * optional string model = 3;
15475
+ * @return {string}
15476
+ */
15477
+ proto.gateway.web.v1.AIModelPrice.prototype.getModel = function() {
15478
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
15479
+ };
15480
+
15481
+
15482
+ /**
15483
+ * @param {string} value
15484
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15485
+ */
15486
+ proto.gateway.web.v1.AIModelPrice.prototype.setModel = function(value) {
15487
+ return jspb.Message.setProto3StringField(this, 3, value);
15488
+ };
15489
+
15490
+
15491
+ /**
15492
+ * optional google.protobuf.Timestamp scraped_at = 4;
15493
+ * @return {?proto.google.protobuf.Timestamp}
15494
+ */
15495
+ proto.gateway.web.v1.AIModelPrice.prototype.getScrapedAt = function() {
15496
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15497
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
15498
+ };
15499
+
15500
+
15501
+ /**
15502
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15503
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15504
+ */
15505
+ proto.gateway.web.v1.AIModelPrice.prototype.setScrapedAt = function(value) {
15506
+ return jspb.Message.setWrapperField(this, 4, value);
15507
+ };
15508
+
15509
+
15510
+ /**
15511
+ * Clears the message field making it undefined.
15512
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15513
+ */
15514
+ proto.gateway.web.v1.AIModelPrice.prototype.clearScrapedAt = function() {
15515
+ return this.setScrapedAt(undefined);
15516
+ };
15517
+
15518
+
15519
+ /**
15520
+ * Returns whether this field is set.
15521
+ * @return {boolean}
15522
+ */
15523
+ proto.gateway.web.v1.AIModelPrice.prototype.hasScrapedAt = function() {
15524
+ return jspb.Message.getField(this, 4) != null;
15525
+ };
15526
+
15527
+
15528
+ /**
15529
+ * optional double input_usd_per_mtok = 5;
15530
+ * @return {number}
15531
+ */
15532
+ proto.gateway.web.v1.AIModelPrice.prototype.getInputUsdPerMtok = function() {
15533
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
15534
+ };
15535
+
15536
+
15537
+ /**
15538
+ * @param {number} value
15539
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15540
+ */
15541
+ proto.gateway.web.v1.AIModelPrice.prototype.setInputUsdPerMtok = function(value) {
15542
+ return jspb.Message.setProto3FloatField(this, 5, value);
15543
+ };
15544
+
15545
+
15546
+ /**
15547
+ * optional double output_usd_per_mtok = 6;
15548
+ * @return {number}
15549
+ */
15550
+ proto.gateway.web.v1.AIModelPrice.prototype.getOutputUsdPerMtok = function() {
15551
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
15552
+ };
15553
+
15554
+
15555
+ /**
15556
+ * @param {number} value
15557
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15558
+ */
15559
+ proto.gateway.web.v1.AIModelPrice.prototype.setOutputUsdPerMtok = function(value) {
15560
+ return jspb.Message.setProto3FloatField(this, 6, value);
15561
+ };
15562
+
15563
+
15564
+ /**
15565
+ * optional double cache_read_usd_per_mtok = 7;
15566
+ * @return {number}
15567
+ */
15568
+ proto.gateway.web.v1.AIModelPrice.prototype.getCacheReadUsdPerMtok = function() {
15569
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
15570
+ };
15571
+
15572
+
15573
+ /**
15574
+ * @param {number} value
15575
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15576
+ */
15577
+ proto.gateway.web.v1.AIModelPrice.prototype.setCacheReadUsdPerMtok = function(value) {
15578
+ return jspb.Message.setProto3FloatField(this, 7, value);
15579
+ };
15580
+
15581
+
15582
+ /**
15583
+ * optional double cache_write_usd_per_mtok = 8;
15584
+ * @return {number}
15585
+ */
15586
+ proto.gateway.web.v1.AIModelPrice.prototype.getCacheWriteUsdPerMtok = function() {
15587
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
15588
+ };
15589
+
15590
+
15591
+ /**
15592
+ * @param {number} value
15593
+ * @return {!proto.gateway.web.v1.AIModelPrice} returns this
15594
+ */
15595
+ proto.gateway.web.v1.AIModelPrice.prototype.setCacheWriteUsdPerMtok = function(value) {
15596
+ return jspb.Message.setProto3FloatField(this, 8, value);
15597
+ };
15598
+
15599
+
15600
+
15601
+
15602
+
14340
15603
  if (jspb.Message.GENERATE_TO_OBJECT) {
14341
15604
  /**
14342
15605
  * Creates an object representation of this proto.