@miradorlabs/web-grpc 2.50.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@miradorlabs/web-grpc",
3
- "version": "2.50.0",
3
+ "version": "2.51.0",
4
4
  "description": "Generated gRPC (grpc-js) client stubs for the Mirador web gateway.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -945,6 +945,26 @@ export interface ListModelPricesResponse {
945
945
  totalCount?: number | undefined;
946
946
  }
947
947
 
948
+ export interface ListModelPriceHistoryRequest {
949
+ organizationId: string;
950
+ projectId: string;
951
+ /** model is required; source and provider narrow it further. */
952
+ filter:
953
+ | AIModelPriceFilter
954
+ | undefined;
955
+ /** Half-open [start_time, end_time); either may be unset to read to that end. */
956
+ startTime: Date | undefined;
957
+ endTime: Date | undefined;
958
+ pageSize: number;
959
+ }
960
+
961
+ export interface ListModelPriceHistoryResponse {
962
+ status: ResponseStatus | undefined;
963
+ prices: AIModelPrice[];
964
+ /** page_size cut the series short — older observations exist beyond the last row. */
965
+ truncated: boolean;
966
+ }
967
+
948
968
  export interface AIModelPrice {
949
969
  source: string;
950
970
  provider: string;
@@ -8178,6 +8198,289 @@ export const ListModelPricesResponse: MessageFns<ListModelPricesResponse> = {
8178
8198
  },
8179
8199
  };
8180
8200
 
8201
+ function createBaseListModelPriceHistoryRequest(): ListModelPriceHistoryRequest {
8202
+ return {
8203
+ organizationId: "",
8204
+ projectId: "",
8205
+ filter: undefined,
8206
+ startTime: undefined,
8207
+ endTime: undefined,
8208
+ pageSize: 0,
8209
+ };
8210
+ }
8211
+
8212
+ export const ListModelPriceHistoryRequest: MessageFns<ListModelPriceHistoryRequest> = {
8213
+ encode(message: ListModelPriceHistoryRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
8214
+ if (message.organizationId !== "") {
8215
+ writer.uint32(10).string(message.organizationId);
8216
+ }
8217
+ if (message.projectId !== "") {
8218
+ writer.uint32(18).string(message.projectId);
8219
+ }
8220
+ if (message.filter !== undefined) {
8221
+ AIModelPriceFilter.encode(message.filter, writer.uint32(26).fork()).join();
8222
+ }
8223
+ if (message.startTime !== undefined) {
8224
+ Timestamp.encode(toTimestamp(message.startTime), writer.uint32(34).fork()).join();
8225
+ }
8226
+ if (message.endTime !== undefined) {
8227
+ Timestamp.encode(toTimestamp(message.endTime), writer.uint32(42).fork()).join();
8228
+ }
8229
+ if (message.pageSize !== 0) {
8230
+ writer.uint32(48).int32(message.pageSize);
8231
+ }
8232
+ return writer;
8233
+ },
8234
+
8235
+ decode(input: BinaryReader | Uint8Array, length?: number): ListModelPriceHistoryRequest {
8236
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8237
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
8238
+ if (previousRecursionDepth >= 100) {
8239
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
8240
+ }
8241
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
8242
+ try {
8243
+ const end = length === undefined ? reader.len : reader.pos + length;
8244
+ const message = createBaseListModelPriceHistoryRequest();
8245
+ while (reader.pos < end) {
8246
+ const tag = reader.uint32();
8247
+ switch (tag >>> 3) {
8248
+ case 1: {
8249
+ if (tag !== 10) {
8250
+ break;
8251
+ }
8252
+
8253
+ message.organizationId = reader.string();
8254
+ continue;
8255
+ }
8256
+ case 2: {
8257
+ if (tag !== 18) {
8258
+ break;
8259
+ }
8260
+
8261
+ message.projectId = reader.string();
8262
+ continue;
8263
+ }
8264
+ case 3: {
8265
+ if (tag !== 26) {
8266
+ break;
8267
+ }
8268
+
8269
+ message.filter = AIModelPriceFilter.decode(reader, reader.uint32());
8270
+ continue;
8271
+ }
8272
+ case 4: {
8273
+ if (tag !== 34) {
8274
+ break;
8275
+ }
8276
+
8277
+ message.startTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8278
+ continue;
8279
+ }
8280
+ case 5: {
8281
+ if (tag !== 42) {
8282
+ break;
8283
+ }
8284
+
8285
+ message.endTime = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
8286
+ continue;
8287
+ }
8288
+ case 6: {
8289
+ if (tag !== 48) {
8290
+ break;
8291
+ }
8292
+
8293
+ message.pageSize = reader.int32();
8294
+ continue;
8295
+ }
8296
+ }
8297
+ if ((tag & 7) === 4 || tag === 0) {
8298
+ break;
8299
+ }
8300
+ reader.skip(tag & 7);
8301
+ }
8302
+ return message;
8303
+ } finally {
8304
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
8305
+ }
8306
+ },
8307
+
8308
+ fromJSON(object: any): ListModelPriceHistoryRequest {
8309
+ return {
8310
+ organizationId: isSet(object.organizationId)
8311
+ ? globalThis.String(object.organizationId)
8312
+ : isSet(object.organization_id)
8313
+ ? globalThis.String(object.organization_id)
8314
+ : "",
8315
+ projectId: isSet(object.projectId)
8316
+ ? globalThis.String(object.projectId)
8317
+ : isSet(object.project_id)
8318
+ ? globalThis.String(object.project_id)
8319
+ : "",
8320
+ filter: isSet(object.filter) ? AIModelPriceFilter.fromJSON(object.filter) : undefined,
8321
+ startTime: isSet(object.startTime)
8322
+ ? fromJsonTimestamp(object.startTime)
8323
+ : isSet(object.start_time)
8324
+ ? fromJsonTimestamp(object.start_time)
8325
+ : undefined,
8326
+ endTime: isSet(object.endTime)
8327
+ ? fromJsonTimestamp(object.endTime)
8328
+ : isSet(object.end_time)
8329
+ ? fromJsonTimestamp(object.end_time)
8330
+ : undefined,
8331
+ pageSize: isSet(object.pageSize)
8332
+ ? globalThis.Number(object.pageSize)
8333
+ : isSet(object.page_size)
8334
+ ? globalThis.Number(object.page_size)
8335
+ : 0,
8336
+ };
8337
+ },
8338
+
8339
+ toJSON(message: ListModelPriceHistoryRequest): unknown {
8340
+ const obj: any = {};
8341
+ if (message.organizationId !== "") {
8342
+ obj.organizationId = message.organizationId;
8343
+ }
8344
+ if (message.projectId !== "") {
8345
+ obj.projectId = message.projectId;
8346
+ }
8347
+ if (message.filter !== undefined) {
8348
+ obj.filter = AIModelPriceFilter.toJSON(message.filter);
8349
+ }
8350
+ if (message.startTime !== undefined) {
8351
+ obj.startTime = message.startTime.toISOString();
8352
+ }
8353
+ if (message.endTime !== undefined) {
8354
+ obj.endTime = message.endTime.toISOString();
8355
+ }
8356
+ if (message.pageSize !== 0) {
8357
+ obj.pageSize = Math.round(message.pageSize);
8358
+ }
8359
+ return obj;
8360
+ },
8361
+
8362
+ create<I extends Exact<DeepPartial<ListModelPriceHistoryRequest>, I>>(base?: I): ListModelPriceHistoryRequest {
8363
+ return ListModelPriceHistoryRequest.fromPartial(base ?? ({} as any));
8364
+ },
8365
+ fromPartial<I extends Exact<DeepPartial<ListModelPriceHistoryRequest>, I>>(object: I): ListModelPriceHistoryRequest {
8366
+ const message = createBaseListModelPriceHistoryRequest();
8367
+ message.organizationId = object.organizationId ?? "";
8368
+ message.projectId = object.projectId ?? "";
8369
+ message.filter = (object.filter !== undefined && object.filter !== null)
8370
+ ? AIModelPriceFilter.fromPartial(object.filter)
8371
+ : undefined;
8372
+ message.startTime = object.startTime ?? undefined;
8373
+ message.endTime = object.endTime ?? undefined;
8374
+ message.pageSize = object.pageSize ?? 0;
8375
+ return message;
8376
+ },
8377
+ };
8378
+
8379
+ function createBaseListModelPriceHistoryResponse(): ListModelPriceHistoryResponse {
8380
+ return { status: undefined, prices: [], truncated: false };
8381
+ }
8382
+
8383
+ export const ListModelPriceHistoryResponse: MessageFns<ListModelPriceHistoryResponse> = {
8384
+ encode(message: ListModelPriceHistoryResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
8385
+ if (message.status !== undefined) {
8386
+ ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
8387
+ }
8388
+ for (const v of message.prices) {
8389
+ AIModelPrice.encode(v!, writer.uint32(18).fork()).join();
8390
+ }
8391
+ if (message.truncated !== false) {
8392
+ writer.uint32(24).bool(message.truncated);
8393
+ }
8394
+ return writer;
8395
+ },
8396
+
8397
+ decode(input: BinaryReader | Uint8Array, length?: number): ListModelPriceHistoryResponse {
8398
+ const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
8399
+ const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
8400
+ if (previousRecursionDepth >= 100) {
8401
+ throw new globalThis.Error("protobuf decode recursion limit exceeded");
8402
+ }
8403
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
8404
+ try {
8405
+ const end = length === undefined ? reader.len : reader.pos + length;
8406
+ const message = createBaseListModelPriceHistoryResponse();
8407
+ while (reader.pos < end) {
8408
+ const tag = reader.uint32();
8409
+ switch (tag >>> 3) {
8410
+ case 1: {
8411
+ if (tag !== 10) {
8412
+ break;
8413
+ }
8414
+
8415
+ message.status = ResponseStatus.decode(reader, reader.uint32());
8416
+ continue;
8417
+ }
8418
+ case 2: {
8419
+ if (tag !== 18) {
8420
+ break;
8421
+ }
8422
+
8423
+ message.prices.push(AIModelPrice.decode(reader, reader.uint32()));
8424
+ continue;
8425
+ }
8426
+ case 3: {
8427
+ if (tag !== 24) {
8428
+ break;
8429
+ }
8430
+
8431
+ message.truncated = reader.bool();
8432
+ continue;
8433
+ }
8434
+ }
8435
+ if ((tag & 7) === 4 || tag === 0) {
8436
+ break;
8437
+ }
8438
+ reader.skip(tag & 7);
8439
+ }
8440
+ return message;
8441
+ } finally {
8442
+ (reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
8443
+ }
8444
+ },
8445
+
8446
+ fromJSON(object: any): ListModelPriceHistoryResponse {
8447
+ return {
8448
+ status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
8449
+ prices: globalThis.Array.isArray(object?.prices) ? object.prices.map((e: any) => AIModelPrice.fromJSON(e)) : [],
8450
+ truncated: isSet(object.truncated) ? globalThis.Boolean(object.truncated) : false,
8451
+ };
8452
+ },
8453
+
8454
+ toJSON(message: ListModelPriceHistoryResponse): unknown {
8455
+ const obj: any = {};
8456
+ if (message.status !== undefined) {
8457
+ obj.status = ResponseStatus.toJSON(message.status);
8458
+ }
8459
+ if (message.prices?.length) {
8460
+ obj.prices = message.prices.map((e) => AIModelPrice.toJSON(e));
8461
+ }
8462
+ if (message.truncated !== false) {
8463
+ obj.truncated = message.truncated;
8464
+ }
8465
+ return obj;
8466
+ },
8467
+
8468
+ create<I extends Exact<DeepPartial<ListModelPriceHistoryResponse>, I>>(base?: I): ListModelPriceHistoryResponse {
8469
+ return ListModelPriceHistoryResponse.fromPartial(base ?? ({} as any));
8470
+ },
8471
+ fromPartial<I extends Exact<DeepPartial<ListModelPriceHistoryResponse>, I>>(
8472
+ object: I,
8473
+ ): ListModelPriceHistoryResponse {
8474
+ const message = createBaseListModelPriceHistoryResponse();
8475
+ message.status = (object.status !== undefined && object.status !== null)
8476
+ ? ResponseStatus.fromPartial(object.status)
8477
+ : undefined;
8478
+ message.prices = object.prices?.map((e) => AIModelPrice.fromPartial(e)) || [];
8479
+ message.truncated = object.truncated ?? false;
8480
+ return message;
8481
+ },
8482
+ };
8483
+
8181
8484
  function createBaseAIModelPrice(): AIModelPrice {
8182
8485
  return {
8183
8486
  source: "",
@@ -8590,6 +8893,14 @@ export interface AIGatewayService {
8590
8893
  StreamFileStateSummary(request: FileStateSummaryRequest, metadata?: Metadata): Observable<FileStateSummary>;
8591
8894
  /** Latest observed list price per (source, provider, model) from the global catalog. */
8592
8895
  ListModelPrices(request: ListModelPricesRequest, metadata?: Metadata): Promise<ListModelPricesResponse>;
8896
+ /**
8897
+ * Every stored observation for the filtered models over a time range, oldest first —
8898
+ * the rows ListModelPrices collapses. filter.model is required.
8899
+ */
8900
+ ListModelPriceHistory(
8901
+ request: ListModelPriceHistoryRequest,
8902
+ metadata?: Metadata,
8903
+ ): Promise<ListModelPriceHistoryResponse>;
8593
8904
  }
8594
8905
 
8595
8906
  export const AIGatewayServiceServiceName = "gateway.web.v1.AIGatewayService";
@@ -8613,6 +8924,7 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
8613
8924
  this.GetFileStateSummary = this.GetFileStateSummary.bind(this);
8614
8925
  this.StreamFileStateSummary = this.StreamFileStateSummary.bind(this);
8615
8926
  this.ListModelPrices = this.ListModelPrices.bind(this);
8927
+ this.ListModelPriceHistory = this.ListModelPriceHistory.bind(this);
8616
8928
  }
8617
8929
  ListSessions(request: ListSessionsRequest, metadata?: Metadata): Promise<ListSessionsResponse> {
8618
8930
  const data = ListSessionsRequest.encode(request).finish();
@@ -8700,6 +9012,15 @@ export class AIGatewayServiceClientImpl implements AIGatewayService {
8700
9012
  const promise = this.rpc.request(this.service, "ListModelPrices", data, metadata);
8701
9013
  return promise.then((data) => ListModelPricesResponse.decode(new BinaryReader(data)));
8702
9014
  }
9015
+
9016
+ ListModelPriceHistory(
9017
+ request: ListModelPriceHistoryRequest,
9018
+ metadata?: Metadata,
9019
+ ): Promise<ListModelPriceHistoryResponse> {
9020
+ const data = ListModelPriceHistoryRequest.encode(request).finish();
9021
+ const promise = this.rpc.request(this.service, "ListModelPriceHistory", data, metadata);
9022
+ return promise.then((data) => ListModelPriceHistoryResponse.decode(new BinaryReader(data)));
9023
+ }
8703
9024
  }
8704
9025
 
8705
9026
  interface Rpc {
@@ -140,6 +140,28 @@ function deserialize_gateway_web_v1_ListGitActivitiesResponse(buffer_arg) {
140
140
  return proto_gateway_web_v1_ai_gateway_pb.ListGitActivitiesResponse.deserializeBinary(new Uint8Array(buffer_arg));
141
141
  }
142
142
 
143
+ function serialize_gateway_web_v1_ListModelPriceHistoryRequest(arg) {
144
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryRequest)) {
145
+ throw new Error('Expected argument of type gateway.web.v1.ListModelPriceHistoryRequest');
146
+ }
147
+ return Buffer.from(arg.serializeBinary());
148
+ }
149
+
150
+ function deserialize_gateway_web_v1_ListModelPriceHistoryRequest(buffer_arg) {
151
+ return proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryRequest.deserializeBinary(new Uint8Array(buffer_arg));
152
+ }
153
+
154
+ function serialize_gateway_web_v1_ListModelPriceHistoryResponse(arg) {
155
+ if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryResponse)) {
156
+ throw new Error('Expected argument of type gateway.web.v1.ListModelPriceHistoryResponse');
157
+ }
158
+ return Buffer.from(arg.serializeBinary());
159
+ }
160
+
161
+ function deserialize_gateway_web_v1_ListModelPriceHistoryResponse(buffer_arg) {
162
+ return proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
163
+ }
164
+
143
165
  function serialize_gateway_web_v1_ListModelPricesRequest(arg) {
144
166
  if (!(arg instanceof proto_gateway_web_v1_ai_gateway_pb.ListModelPricesRequest)) {
145
167
  throw new Error('Expected argument of type gateway.web.v1.ListModelPricesRequest');
@@ -473,6 +495,19 @@ listModelPrices: {
473
495
  responseSerialize: serialize_gateway_web_v1_ListModelPricesResponse,
474
496
  responseDeserialize: deserialize_gateway_web_v1_ListModelPricesResponse,
475
497
  },
498
+ // Every stored observation for the filtered models over a time range, oldest first —
499
+ // the rows ListModelPrices collapses. filter.model is required.
500
+ listModelPriceHistory: {
501
+ path: '/gateway.web.v1.AIGatewayService/ListModelPriceHistory',
502
+ requestStream: false,
503
+ responseStream: false,
504
+ requestType: proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryRequest,
505
+ responseType: proto_gateway_web_v1_ai_gateway_pb.ListModelPriceHistoryResponse,
506
+ requestSerialize: serialize_gateway_web_v1_ListModelPriceHistoryRequest,
507
+ requestDeserialize: deserialize_gateway_web_v1_ListModelPriceHistoryRequest,
508
+ responseSerialize: serialize_gateway_web_v1_ListModelPriceHistoryResponse,
509
+ responseDeserialize: deserialize_gateway_web_v1_ListModelPriceHistoryResponse,
510
+ },
476
511
  };
477
512
 
478
513
  exports.AIGatewayServiceClient = grpc.makeGenericClientConstructor(AIGatewayServiceService, 'AIGatewayService');
@@ -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.