// @generated by protoc-gen-es v1.10.1 with parameter "target=ts" // @generated from file common/v1/query.proto (package common.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; /** * @generated from message common.v1.PaginatedQuery */ export class PaginatedQuery extends Message { /** * to be removed * * @generated from field: string query = 1 [deprecated = true]; * @deprecated */ query = ""; /** * @generated from field: int32 limit = 2; */ limit = 0; /** * @generated from field: int32 page = 3; */ page = 0; /** * @generated from field: string sort_by = 4; */ sortBy = ""; /** * @generated from field: string sort_by_direction = 5; */ sortByDirection = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.PaginatedQuery"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "query", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 4, name: "sort_by", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "sort_by_direction", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PaginatedQuery { return new PaginatedQuery().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PaginatedQuery { return new PaginatedQuery().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PaginatedQuery { return new PaginatedQuery().fromJsonString(jsonString, options); } static equals(a: PaginatedQuery | PlainMessage | undefined, b: PaginatedQuery | PlainMessage | undefined): boolean { return proto3.util.equals(PaginatedQuery, a, b); } } /** * @generated from message common.v1.PaginatedResponse */ export class PaginatedResponse extends Message { /** * @generated from field: int32 page = 1; */ page = 0; /** * @generated from field: int32 limit = 2; */ limit = 0; /** * @generated from field: int32 count = 3; */ count = 0; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "common.v1.PaginatedResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "page", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "count", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): PaginatedResponse { return new PaginatedResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): PaginatedResponse { return new PaginatedResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): PaginatedResponse { return new PaginatedResponse().fromJsonString(jsonString, options); } static equals(a: PaginatedResponse | PlainMessage | undefined, b: PaginatedResponse | PlainMessage | undefined): boolean { return proto3.util.equals(PaginatedResponse, a, b); } }