// @generated by protoc-gen-es v1.10.0 with parameter "target=ts,import_extension=none" // @generated from file svc/product/v1/service.proto (package svc.product.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import { Cursor } from "../../../types/v1/cursor_pb"; import { Product, Product_Scope } from "../../../types/v1/product_pb"; import { Price } from "../../../types/v1/price_pb"; /** * @generated from message svc.product.v1.ListProductRequest */ export class ListProductRequest extends Message { /** * @generated from field: types.v1.Cursor cursor = 1; */ cursor?: Cursor; /** * @generated from field: int32 limit = 2; */ limit = 0; /** * @generated from field: string category = 3; */ category = ""; /** * filters * * @generated from field: optional types.v1.Product.Scope scope = 400; */ scope?: Product_Scope; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "svc.product.v1.ListProductRequest"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "cursor", kind: "message", T: Cursor }, { no: 2, name: "limit", kind: "scalar", T: 5 /* ScalarType.INT32 */ }, { no: 3, name: "category", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 400, name: "scope", kind: "enum", T: proto3.getEnumType(Product_Scope), opt: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListProductRequest { return new ListProductRequest().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListProductRequest { return new ListProductRequest().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListProductRequest { return new ListProductRequest().fromJsonString(jsonString, options); } static equals(a: ListProductRequest | PlainMessage | undefined, b: ListProductRequest | PlainMessage | undefined): boolean { return proto3.util.equals(ListProductRequest, a, b); } } /** * @generated from message svc.product.v1.ListProductResponse */ export class ListProductResponse extends Message { /** * @generated from field: types.v1.Cursor next = 1; */ next?: Cursor; /** * @generated from field: repeated svc.product.v1.ListProductResponse.ListItem items = 2; */ items: ListProductResponse_ListItem[] = []; /** * @generated from field: types.v1.Product default_product = 3; */ defaultProduct?: Product; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "svc.product.v1.ListProductResponse"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "next", kind: "message", T: Cursor }, { no: 2, name: "items", kind: "message", T: ListProductResponse_ListItem, repeated: true }, { no: 3, name: "default_product", kind: "message", T: Product }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListProductResponse { return new ListProductResponse().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListProductResponse { return new ListProductResponse().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListProductResponse { return new ListProductResponse().fromJsonString(jsonString, options); } static equals(a: ListProductResponse | PlainMessage | undefined, b: ListProductResponse | PlainMessage | undefined): boolean { return proto3.util.equals(ListProductResponse, a, b); } } /** * @generated from message svc.product.v1.ListProductResponse.ListItem */ export class ListProductResponse_ListItem extends Message { /** * @generated from field: types.v1.Product product = 1; */ product?: Product; /** * @generated from field: repeated types.v1.Price prices = 2; */ prices: Price[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "svc.product.v1.ListProductResponse.ListItem"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "product", kind: "message", T: Product }, { no: 2, name: "prices", kind: "message", T: Price, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): ListProductResponse_ListItem { return new ListProductResponse_ListItem().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): ListProductResponse_ListItem { return new ListProductResponse_ListItem().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): ListProductResponse_ListItem { return new ListProductResponse_ListItem().fromJsonString(jsonString, options); } static equals(a: ListProductResponse_ListItem | PlainMessage | undefined, b: ListProductResponse_ListItem | PlainMessage | undefined): boolean { return proto3.util.equals(ListProductResponse_ListItem, a, b); } }