@miradorlabs/web-grpc 2.49.0 → 2.51.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.
@@ -65,6 +65,8 @@ goog.exportSymbol('proto.gateway.web.v1.ListFileStatesRequest', null, global);
65
65
  goog.exportSymbol('proto.gateway.web.v1.ListFileStatesResponse', null, global);
66
66
  goog.exportSymbol('proto.gateway.web.v1.ListGitActivitiesRequest', null, global);
67
67
  goog.exportSymbol('proto.gateway.web.v1.ListGitActivitiesResponse', null, global);
68
+ goog.exportSymbol('proto.gateway.web.v1.ListModelPriceHistoryRequest', null, global);
69
+ goog.exportSymbol('proto.gateway.web.v1.ListModelPriceHistoryResponse', null, global);
68
70
  goog.exportSymbol('proto.gateway.web.v1.ListModelPricesRequest', null, global);
69
71
  goog.exportSymbol('proto.gateway.web.v1.ListModelPricesResponse', null, global);
70
72
  goog.exportSymbol('proto.gateway.web.v1.ListPrincipalsRequest', null, global);
@@ -1027,6 +1029,48 @@ if (goog.DEBUG && !COMPILED) {
1027
1029
  */
1028
1030
  proto.gateway.web.v1.ListModelPricesResponse.displayName = 'proto.gateway.web.v1.ListModelPricesResponse';
1029
1031
  }
1032
+ /**
1033
+ * Generated by JsPbCodeGenerator.
1034
+ * @param {Array=} opt_data Optional initial data array, typically from a
1035
+ * server response, or constructed directly in Javascript. The array is used
1036
+ * in place and becomes part of the constructed object. It is not cloned.
1037
+ * If no data is provided, the constructed object will be empty, but still
1038
+ * valid.
1039
+ * @extends {jspb.Message}
1040
+ * @constructor
1041
+ */
1042
+ proto.gateway.web.v1.ListModelPriceHistoryRequest = function(opt_data) {
1043
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1044
+ };
1045
+ goog.inherits(proto.gateway.web.v1.ListModelPriceHistoryRequest, jspb.Message);
1046
+ if (goog.DEBUG && !COMPILED) {
1047
+ /**
1048
+ * @public
1049
+ * @override
1050
+ */
1051
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.displayName = 'proto.gateway.web.v1.ListModelPriceHistoryRequest';
1052
+ }
1053
+ /**
1054
+ * Generated by JsPbCodeGenerator.
1055
+ * @param {Array=} opt_data Optional initial data array, typically from a
1056
+ * server response, or constructed directly in Javascript. The array is used
1057
+ * in place and becomes part of the constructed object. It is not cloned.
1058
+ * If no data is provided, the constructed object will be empty, but still
1059
+ * valid.
1060
+ * @extends {jspb.Message}
1061
+ * @constructor
1062
+ */
1063
+ proto.gateway.web.v1.ListModelPriceHistoryResponse = function(opt_data) {
1064
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.gateway.web.v1.ListModelPriceHistoryResponse.repeatedFields_, null);
1065
+ };
1066
+ goog.inherits(proto.gateway.web.v1.ListModelPriceHistoryResponse, jspb.Message);
1067
+ if (goog.DEBUG && !COMPILED) {
1068
+ /**
1069
+ * @public
1070
+ * @override
1071
+ */
1072
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.displayName = 'proto.gateway.web.v1.ListModelPriceHistoryResponse';
1073
+ }
1030
1074
  /**
1031
1075
  * Generated by JsPbCodeGenerator.
1032
1076
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -15239,6 +15283,590 @@ proto.gateway.web.v1.ListModelPricesResponse.prototype.hasTotalCount = function(
15239
15283
 
15240
15284
 
15241
15285
 
15286
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15287
+ /**
15288
+ * Creates an object representation of this proto.
15289
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15290
+ * Optional fields that are not set will be set to undefined.
15291
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15292
+ * For the list of reserved names please see:
15293
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15294
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15295
+ * JSPB instance for transitional soy proto support:
15296
+ * http://goto/soy-param-migration
15297
+ * @return {!Object}
15298
+ */
15299
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.toObject = function(opt_includeInstance) {
15300
+ return proto.gateway.web.v1.ListModelPriceHistoryRequest.toObject(opt_includeInstance, this);
15301
+ };
15302
+
15303
+
15304
+ /**
15305
+ * Static version of the {@see toObject} method.
15306
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15307
+ * the JSPB instance for transitional soy proto support:
15308
+ * http://goto/soy-param-migration
15309
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryRequest} msg The msg instance to transform.
15310
+ * @return {!Object}
15311
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15312
+ */
15313
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.toObject = function(includeInstance, msg) {
15314
+ var f, obj = {
15315
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
15316
+ projectId: jspb.Message.getFieldWithDefault(msg, 2, ""),
15317
+ filter: (f = msg.getFilter()) && proto.gateway.web.v1.AIModelPriceFilter.toObject(includeInstance, f),
15318
+ startTime: (f = msg.getStartTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
15319
+ endTime: (f = msg.getEndTime()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
15320
+ pageSize: jspb.Message.getFieldWithDefault(msg, 6, 0)
15321
+ };
15322
+
15323
+ if (includeInstance) {
15324
+ obj.$jspbMessageInstance = msg;
15325
+ }
15326
+ return obj;
15327
+ };
15328
+ }
15329
+
15330
+
15331
+ /**
15332
+ * Deserializes binary data (in protobuf wire format).
15333
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15334
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest}
15335
+ */
15336
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.deserializeBinary = function(bytes) {
15337
+ var reader = new jspb.BinaryReader(bytes);
15338
+ var msg = new proto.gateway.web.v1.ListModelPriceHistoryRequest;
15339
+ return proto.gateway.web.v1.ListModelPriceHistoryRequest.deserializeBinaryFromReader(msg, reader);
15340
+ };
15341
+
15342
+
15343
+ /**
15344
+ * Deserializes binary data (in protobuf wire format) from the
15345
+ * given reader into the given message object.
15346
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryRequest} msg The message object to deserialize into.
15347
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15348
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest}
15349
+ */
15350
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
15351
+ while (reader.nextField()) {
15352
+ if (reader.isEndGroup()) {
15353
+ break;
15354
+ }
15355
+ var field = reader.getFieldNumber();
15356
+ switch (field) {
15357
+ case 1:
15358
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15359
+ msg.setOrganizationId(value);
15360
+ break;
15361
+ case 2:
15362
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
15363
+ msg.setProjectId(value);
15364
+ break;
15365
+ case 3:
15366
+ var value = new proto.gateway.web.v1.AIModelPriceFilter;
15367
+ reader.readMessage(value,proto.gateway.web.v1.AIModelPriceFilter.deserializeBinaryFromReader);
15368
+ msg.setFilter(value);
15369
+ break;
15370
+ case 4:
15371
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15372
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15373
+ msg.setStartTime(value);
15374
+ break;
15375
+ case 5:
15376
+ var value = new google_protobuf_timestamp_pb.Timestamp;
15377
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
15378
+ msg.setEndTime(value);
15379
+ break;
15380
+ case 6:
15381
+ var value = /** @type {number} */ (reader.readInt32());
15382
+ msg.setPageSize(value);
15383
+ break;
15384
+ default:
15385
+ reader.skipField();
15386
+ break;
15387
+ }
15388
+ }
15389
+ return msg;
15390
+ };
15391
+
15392
+
15393
+ /**
15394
+ * Serializes the message to binary data (in protobuf wire format).
15395
+ * @return {!Uint8Array}
15396
+ */
15397
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.serializeBinary = function() {
15398
+ var writer = new jspb.BinaryWriter();
15399
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.serializeBinaryToWriter(this, writer);
15400
+ return writer.getResultBuffer();
15401
+ };
15402
+
15403
+
15404
+ /**
15405
+ * Serializes the given message to binary data (in protobuf wire
15406
+ * format), writing to the given BinaryWriter.
15407
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryRequest} message
15408
+ * @param {!jspb.BinaryWriter} writer
15409
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15410
+ */
15411
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.serializeBinaryToWriter = function(message, writer) {
15412
+ var f = undefined;
15413
+ f = message.getOrganizationId();
15414
+ if (f.length > 0) {
15415
+ writer.writeString(
15416
+ 1,
15417
+ f
15418
+ );
15419
+ }
15420
+ f = message.getProjectId();
15421
+ if (f.length > 0) {
15422
+ writer.writeString(
15423
+ 2,
15424
+ f
15425
+ );
15426
+ }
15427
+ f = message.getFilter();
15428
+ if (f != null) {
15429
+ writer.writeMessage(
15430
+ 3,
15431
+ f,
15432
+ proto.gateway.web.v1.AIModelPriceFilter.serializeBinaryToWriter
15433
+ );
15434
+ }
15435
+ f = message.getStartTime();
15436
+ if (f != null) {
15437
+ writer.writeMessage(
15438
+ 4,
15439
+ f,
15440
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15441
+ );
15442
+ }
15443
+ f = message.getEndTime();
15444
+ if (f != null) {
15445
+ writer.writeMessage(
15446
+ 5,
15447
+ f,
15448
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
15449
+ );
15450
+ }
15451
+ f = message.getPageSize();
15452
+ if (f !== 0) {
15453
+ writer.writeInt32(
15454
+ 6,
15455
+ f
15456
+ );
15457
+ }
15458
+ };
15459
+
15460
+
15461
+ /**
15462
+ * optional string organization_id = 1;
15463
+ * @return {string}
15464
+ */
15465
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getOrganizationId = function() {
15466
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
15467
+ };
15468
+
15469
+
15470
+ /**
15471
+ * @param {string} value
15472
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15473
+ */
15474
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setOrganizationId = function(value) {
15475
+ return jspb.Message.setProto3StringField(this, 1, value);
15476
+ };
15477
+
15478
+
15479
+ /**
15480
+ * optional string project_id = 2;
15481
+ * @return {string}
15482
+ */
15483
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getProjectId = function() {
15484
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
15485
+ };
15486
+
15487
+
15488
+ /**
15489
+ * @param {string} value
15490
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15491
+ */
15492
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setProjectId = function(value) {
15493
+ return jspb.Message.setProto3StringField(this, 2, value);
15494
+ };
15495
+
15496
+
15497
+ /**
15498
+ * optional AIModelPriceFilter filter = 3;
15499
+ * @return {?proto.gateway.web.v1.AIModelPriceFilter}
15500
+ */
15501
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getFilter = function() {
15502
+ return /** @type{?proto.gateway.web.v1.AIModelPriceFilter} */ (
15503
+ jspb.Message.getWrapperField(this, proto.gateway.web.v1.AIModelPriceFilter, 3));
15504
+ };
15505
+
15506
+
15507
+ /**
15508
+ * @param {?proto.gateway.web.v1.AIModelPriceFilter|undefined} value
15509
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15510
+ */
15511
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setFilter = function(value) {
15512
+ return jspb.Message.setWrapperField(this, 3, value);
15513
+ };
15514
+
15515
+
15516
+ /**
15517
+ * Clears the message field making it undefined.
15518
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15519
+ */
15520
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.clearFilter = function() {
15521
+ return this.setFilter(undefined);
15522
+ };
15523
+
15524
+
15525
+ /**
15526
+ * Returns whether this field is set.
15527
+ * @return {boolean}
15528
+ */
15529
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.hasFilter = function() {
15530
+ return jspb.Message.getField(this, 3) != null;
15531
+ };
15532
+
15533
+
15534
+ /**
15535
+ * optional google.protobuf.Timestamp start_time = 4;
15536
+ * @return {?proto.google.protobuf.Timestamp}
15537
+ */
15538
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getStartTime = function() {
15539
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15540
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 4));
15541
+ };
15542
+
15543
+
15544
+ /**
15545
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15546
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15547
+ */
15548
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setStartTime = function(value) {
15549
+ return jspb.Message.setWrapperField(this, 4, value);
15550
+ };
15551
+
15552
+
15553
+ /**
15554
+ * Clears the message field making it undefined.
15555
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15556
+ */
15557
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.clearStartTime = function() {
15558
+ return this.setStartTime(undefined);
15559
+ };
15560
+
15561
+
15562
+ /**
15563
+ * Returns whether this field is set.
15564
+ * @return {boolean}
15565
+ */
15566
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.hasStartTime = function() {
15567
+ return jspb.Message.getField(this, 4) != null;
15568
+ };
15569
+
15570
+
15571
+ /**
15572
+ * optional google.protobuf.Timestamp end_time = 5;
15573
+ * @return {?proto.google.protobuf.Timestamp}
15574
+ */
15575
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getEndTime = function() {
15576
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
15577
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 5));
15578
+ };
15579
+
15580
+
15581
+ /**
15582
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
15583
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15584
+ */
15585
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setEndTime = function(value) {
15586
+ return jspb.Message.setWrapperField(this, 5, value);
15587
+ };
15588
+
15589
+
15590
+ /**
15591
+ * Clears the message field making it undefined.
15592
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15593
+ */
15594
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.clearEndTime = function() {
15595
+ return this.setEndTime(undefined);
15596
+ };
15597
+
15598
+
15599
+ /**
15600
+ * Returns whether this field is set.
15601
+ * @return {boolean}
15602
+ */
15603
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.hasEndTime = function() {
15604
+ return jspb.Message.getField(this, 5) != null;
15605
+ };
15606
+
15607
+
15608
+ /**
15609
+ * optional int32 page_size = 6;
15610
+ * @return {number}
15611
+ */
15612
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.getPageSize = function() {
15613
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
15614
+ };
15615
+
15616
+
15617
+ /**
15618
+ * @param {number} value
15619
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryRequest} returns this
15620
+ */
15621
+ proto.gateway.web.v1.ListModelPriceHistoryRequest.prototype.setPageSize = function(value) {
15622
+ return jspb.Message.setProto3IntField(this, 6, value);
15623
+ };
15624
+
15625
+
15626
+
15627
+ /**
15628
+ * List of repeated fields within this message type.
15629
+ * @private {!Array<number>}
15630
+ * @const
15631
+ */
15632
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.repeatedFields_ = [2];
15633
+
15634
+
15635
+
15636
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15637
+ /**
15638
+ * Creates an object representation of this proto.
15639
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15640
+ * Optional fields that are not set will be set to undefined.
15641
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15642
+ * For the list of reserved names please see:
15643
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
15644
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
15645
+ * JSPB instance for transitional soy proto support:
15646
+ * http://goto/soy-param-migration
15647
+ * @return {!Object}
15648
+ */
15649
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.toObject = function(opt_includeInstance) {
15650
+ return proto.gateway.web.v1.ListModelPriceHistoryResponse.toObject(opt_includeInstance, this);
15651
+ };
15652
+
15653
+
15654
+ /**
15655
+ * Static version of the {@see toObject} method.
15656
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
15657
+ * the JSPB instance for transitional soy proto support:
15658
+ * http://goto/soy-param-migration
15659
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryResponse} msg The msg instance to transform.
15660
+ * @return {!Object}
15661
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15662
+ */
15663
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.toObject = function(includeInstance, msg) {
15664
+ var f, obj = {
15665
+ status: (f = msg.getStatus()) && proto_gateway_common_v1_status_pb.ResponseStatus.toObject(includeInstance, f),
15666
+ pricesList: jspb.Message.toObjectList(msg.getPricesList(),
15667
+ proto.gateway.web.v1.AIModelPrice.toObject, includeInstance),
15668
+ truncated: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
15669
+ };
15670
+
15671
+ if (includeInstance) {
15672
+ obj.$jspbMessageInstance = msg;
15673
+ }
15674
+ return obj;
15675
+ };
15676
+ }
15677
+
15678
+
15679
+ /**
15680
+ * Deserializes binary data (in protobuf wire format).
15681
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
15682
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse}
15683
+ */
15684
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.deserializeBinary = function(bytes) {
15685
+ var reader = new jspb.BinaryReader(bytes);
15686
+ var msg = new proto.gateway.web.v1.ListModelPriceHistoryResponse;
15687
+ return proto.gateway.web.v1.ListModelPriceHistoryResponse.deserializeBinaryFromReader(msg, reader);
15688
+ };
15689
+
15690
+
15691
+ /**
15692
+ * Deserializes binary data (in protobuf wire format) from the
15693
+ * given reader into the given message object.
15694
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryResponse} msg The message object to deserialize into.
15695
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15696
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse}
15697
+ */
15698
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
15699
+ while (reader.nextField()) {
15700
+ if (reader.isEndGroup()) {
15701
+ break;
15702
+ }
15703
+ var field = reader.getFieldNumber();
15704
+ switch (field) {
15705
+ case 1:
15706
+ var value = new proto_gateway_common_v1_status_pb.ResponseStatus;
15707
+ reader.readMessage(value,proto_gateway_common_v1_status_pb.ResponseStatus.deserializeBinaryFromReader);
15708
+ msg.setStatus(value);
15709
+ break;
15710
+ case 2:
15711
+ var value = new proto.gateway.web.v1.AIModelPrice;
15712
+ reader.readMessage(value,proto.gateway.web.v1.AIModelPrice.deserializeBinaryFromReader);
15713
+ msg.addPrices(value);
15714
+ break;
15715
+ case 3:
15716
+ var value = /** @type {boolean} */ (reader.readBool());
15717
+ msg.setTruncated(value);
15718
+ break;
15719
+ default:
15720
+ reader.skipField();
15721
+ break;
15722
+ }
15723
+ }
15724
+ return msg;
15725
+ };
15726
+
15727
+
15728
+ /**
15729
+ * Serializes the message to binary data (in protobuf wire format).
15730
+ * @return {!Uint8Array}
15731
+ */
15732
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.serializeBinary = function() {
15733
+ var writer = new jspb.BinaryWriter();
15734
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.serializeBinaryToWriter(this, writer);
15735
+ return writer.getResultBuffer();
15736
+ };
15737
+
15738
+
15739
+ /**
15740
+ * Serializes the given message to binary data (in protobuf wire
15741
+ * format), writing to the given BinaryWriter.
15742
+ * @param {!proto.gateway.web.v1.ListModelPriceHistoryResponse} message
15743
+ * @param {!jspb.BinaryWriter} writer
15744
+ * @suppress {unusedLocalVariables} f is only used for nested messages
15745
+ */
15746
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.serializeBinaryToWriter = function(message, writer) {
15747
+ var f = undefined;
15748
+ f = message.getStatus();
15749
+ if (f != null) {
15750
+ writer.writeMessage(
15751
+ 1,
15752
+ f,
15753
+ proto_gateway_common_v1_status_pb.ResponseStatus.serializeBinaryToWriter
15754
+ );
15755
+ }
15756
+ f = message.getPricesList();
15757
+ if (f.length > 0) {
15758
+ writer.writeRepeatedMessage(
15759
+ 2,
15760
+ f,
15761
+ proto.gateway.web.v1.AIModelPrice.serializeBinaryToWriter
15762
+ );
15763
+ }
15764
+ f = message.getTruncated();
15765
+ if (f) {
15766
+ writer.writeBool(
15767
+ 3,
15768
+ f
15769
+ );
15770
+ }
15771
+ };
15772
+
15773
+
15774
+ /**
15775
+ * optional gateway.common.v1.ResponseStatus status = 1;
15776
+ * @return {?proto.gateway.common.v1.ResponseStatus}
15777
+ */
15778
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.getStatus = function() {
15779
+ return /** @type{?proto.gateway.common.v1.ResponseStatus} */ (
15780
+ jspb.Message.getWrapperField(this, proto_gateway_common_v1_status_pb.ResponseStatus, 1));
15781
+ };
15782
+
15783
+
15784
+ /**
15785
+ * @param {?proto.gateway.common.v1.ResponseStatus|undefined} value
15786
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse} returns this
15787
+ */
15788
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.setStatus = function(value) {
15789
+ return jspb.Message.setWrapperField(this, 1, value);
15790
+ };
15791
+
15792
+
15793
+ /**
15794
+ * Clears the message field making it undefined.
15795
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse} returns this
15796
+ */
15797
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.clearStatus = function() {
15798
+ return this.setStatus(undefined);
15799
+ };
15800
+
15801
+
15802
+ /**
15803
+ * Returns whether this field is set.
15804
+ * @return {boolean}
15805
+ */
15806
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.hasStatus = function() {
15807
+ return jspb.Message.getField(this, 1) != null;
15808
+ };
15809
+
15810
+
15811
+ /**
15812
+ * repeated AIModelPrice prices = 2;
15813
+ * @return {!Array<!proto.gateway.web.v1.AIModelPrice>}
15814
+ */
15815
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.getPricesList = function() {
15816
+ return /** @type{!Array<!proto.gateway.web.v1.AIModelPrice>} */ (
15817
+ jspb.Message.getRepeatedWrapperField(this, proto.gateway.web.v1.AIModelPrice, 2));
15818
+ };
15819
+
15820
+
15821
+ /**
15822
+ * @param {!Array<!proto.gateway.web.v1.AIModelPrice>} value
15823
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse} returns this
15824
+ */
15825
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.setPricesList = function(value) {
15826
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
15827
+ };
15828
+
15829
+
15830
+ /**
15831
+ * @param {!proto.gateway.web.v1.AIModelPrice=} opt_value
15832
+ * @param {number=} opt_index
15833
+ * @return {!proto.gateway.web.v1.AIModelPrice}
15834
+ */
15835
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.addPrices = function(opt_value, opt_index) {
15836
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.gateway.web.v1.AIModelPrice, opt_index);
15837
+ };
15838
+
15839
+
15840
+ /**
15841
+ * Clears the list making it empty but non-null.
15842
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse} returns this
15843
+ */
15844
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.clearPricesList = function() {
15845
+ return this.setPricesList([]);
15846
+ };
15847
+
15848
+
15849
+ /**
15850
+ * optional bool truncated = 3;
15851
+ * @return {boolean}
15852
+ */
15853
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.getTruncated = function() {
15854
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
15855
+ };
15856
+
15857
+
15858
+ /**
15859
+ * @param {boolean} value
15860
+ * @return {!proto.gateway.web.v1.ListModelPriceHistoryResponse} returns this
15861
+ */
15862
+ proto.gateway.web.v1.ListModelPriceHistoryResponse.prototype.setTruncated = function(value) {
15863
+ return jspb.Message.setProto3BooleanField(this, 3, value);
15864
+ };
15865
+
15866
+
15867
+
15868
+
15869
+
15242
15870
  if (jspb.Message.GENERATE_TO_OBJECT) {
15243
15871
  /**
15244
15872
  * Creates an object representation of this proto.