/**
 * Generated by the protoc-gen-ts.  DO NOT EDIT!
 * compiler version: 0.0.0
 * source: store.proto
 * git: https://github.com/thesayyn/protoc-gen-ts */
import * as dependency_1 from "./blocks";
import * as pb_1 from "google-protobuf";
import * as grpc_1 from "@grpc/grpc-js";
export namespace mall {
    export class SettingRequest extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            identity?: string;
            configs?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("identity" in data && data.identity != undefined) {
                    this.identity = data.identity;
                }
                if ("configs" in data && data.configs != undefined) {
                    this.configs = data.configs;
                }
            }
        }
        get identity() {
            return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
        }
        set identity(value: string) {
            pb_1.Message.setField(this, 1, value);
        }
        get configs() {
            return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
        }
        set configs(value: string) {
            pb_1.Message.setField(this, 2, value);
        }
        static fromObject(data: {
            identity?: string;
            configs?: string;
        }): SettingRequest {
            const message = new SettingRequest({});
            if (data.identity != null) {
                message.identity = data.identity;
            }
            if (data.configs != null) {
                message.configs = data.configs;
            }
            return message;
        }
        toObject() {
            const data: {
                identity?: string;
                configs?: string;
            } = {};
            if (this.identity != null) {
                data.identity = this.identity;
            }
            if (this.configs != null) {
                data.configs = this.configs;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.identity.length)
                writer.writeString(1, this.identity);
            if (this.configs.length)
                writer.writeString(2, this.configs);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SettingRequest {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SettingRequest();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.identity = reader.readString();
                        break;
                    case 2:
                        message.configs = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): SettingRequest {
            return SettingRequest.deserialize(bytes);
        }
    }
    export class ConfigsReply extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            configs?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("configs" in data && data.configs != undefined) {
                    this.configs = data.configs;
                }
            }
        }
        get configs() {
            return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
        }
        set configs(value: string) {
            pb_1.Message.setField(this, 1, value);
        }
        static fromObject(data: {
            configs?: string;
        }): ConfigsReply {
            const message = new ConfigsReply({});
            if (data.configs != null) {
                message.configs = data.configs;
            }
            return message;
        }
        toObject() {
            const data: {
                configs?: string;
            } = {};
            if (this.configs != null) {
                data.configs = this.configs;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.configs.length)
                writer.writeString(1, this.configs);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ConfigsReply {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ConfigsReply();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.configs = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): ConfigsReply {
            return ConfigsReply.deserialize(bytes);
        }
    }
    export class ApplyJoinRequest extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            logo?: string;
            title?: string;
            intro?: string;
            template?: string;
            configs?: string;
            subdomain?: string;
            apply_remarks?: string;
            name?: string;
            account?: string;
            phone?: string;
            email?: string;
            password?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("logo" in data && data.logo != undefined) {
                    this.logo = data.logo;
                }
                if ("title" in data && data.title != undefined) {
                    this.title = data.title;
                }
                if ("intro" in data && data.intro != undefined) {
                    this.intro = data.intro;
                }
                if ("template" in data && data.template != undefined) {
                    this.template = data.template;
                }
                if ("configs" in data && data.configs != undefined) {
                    this.configs = data.configs;
                }
                if ("subdomain" in data && data.subdomain != undefined) {
                    this.subdomain = data.subdomain;
                }
                if ("apply_remarks" in data && data.apply_remarks != undefined) {
                    this.apply_remarks = data.apply_remarks;
                }
                if ("name" in data && data.name != undefined) {
                    this.name = data.name;
                }
                if ("account" in data && data.account != undefined) {
                    this.account = data.account;
                }
                if ("phone" in data && data.phone != undefined) {
                    this.phone = data.phone;
                }
                if ("email" in data && data.email != undefined) {
                    this.email = data.email;
                }
                if ("password" in data && data.password != undefined) {
                    this.password = data.password;
                }
            }
        }
        get logo() {
            return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
        }
        set logo(value: string) {
            pb_1.Message.setField(this, 1, value);
        }
        get title() {
            return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
        }
        set title(value: string) {
            pb_1.Message.setField(this, 2, value);
        }
        get intro() {
            return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
        }
        set intro(value: string) {
            pb_1.Message.setField(this, 3, value);
        }
        get template() {
            return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
        }
        set template(value: string) {
            pb_1.Message.setField(this, 4, value);
        }
        get configs() {
            return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
        }
        set configs(value: string) {
            pb_1.Message.setField(this, 5, value);
        }
        get subdomain() {
            return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
        }
        set subdomain(value: string) {
            pb_1.Message.setField(this, 6, value);
        }
        get apply_remarks() {
            return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
        }
        set apply_remarks(value: string) {
            pb_1.Message.setField(this, 7, value);
        }
        get name() {
            return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
        }
        set name(value: string) {
            pb_1.Message.setField(this, 8, value);
        }
        get account() {
            return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
        }
        set account(value: string) {
            pb_1.Message.setField(this, 9, value);
        }
        get phone() {
            return pb_1.Message.getFieldWithDefault(this, 10, "") as string;
        }
        set phone(value: string) {
            pb_1.Message.setField(this, 10, value);
        }
        get email() {
            return pb_1.Message.getFieldWithDefault(this, 11, "") as string;
        }
        set email(value: string) {
            pb_1.Message.setField(this, 11, value);
        }
        get password() {
            return pb_1.Message.getFieldWithDefault(this, 12, "") as string;
        }
        set password(value: string) {
            pb_1.Message.setField(this, 12, value);
        }
        static fromObject(data: {
            logo?: string;
            title?: string;
            intro?: string;
            template?: string;
            configs?: string;
            subdomain?: string;
            apply_remarks?: string;
            name?: string;
            account?: string;
            phone?: string;
            email?: string;
            password?: string;
        }): ApplyJoinRequest {
            const message = new ApplyJoinRequest({});
            if (data.logo != null) {
                message.logo = data.logo;
            }
            if (data.title != null) {
                message.title = data.title;
            }
            if (data.intro != null) {
                message.intro = data.intro;
            }
            if (data.template != null) {
                message.template = data.template;
            }
            if (data.configs != null) {
                message.configs = data.configs;
            }
            if (data.subdomain != null) {
                message.subdomain = data.subdomain;
            }
            if (data.apply_remarks != null) {
                message.apply_remarks = data.apply_remarks;
            }
            if (data.name != null) {
                message.name = data.name;
            }
            if (data.account != null) {
                message.account = data.account;
            }
            if (data.phone != null) {
                message.phone = data.phone;
            }
            if (data.email != null) {
                message.email = data.email;
            }
            if (data.password != null) {
                message.password = data.password;
            }
            return message;
        }
        toObject() {
            const data: {
                logo?: string;
                title?: string;
                intro?: string;
                template?: string;
                configs?: string;
                subdomain?: string;
                apply_remarks?: string;
                name?: string;
                account?: string;
                phone?: string;
                email?: string;
                password?: string;
            } = {};
            if (this.logo != null) {
                data.logo = this.logo;
            }
            if (this.title != null) {
                data.title = this.title;
            }
            if (this.intro != null) {
                data.intro = this.intro;
            }
            if (this.template != null) {
                data.template = this.template;
            }
            if (this.configs != null) {
                data.configs = this.configs;
            }
            if (this.subdomain != null) {
                data.subdomain = this.subdomain;
            }
            if (this.apply_remarks != null) {
                data.apply_remarks = this.apply_remarks;
            }
            if (this.name != null) {
                data.name = this.name;
            }
            if (this.account != null) {
                data.account = this.account;
            }
            if (this.phone != null) {
                data.phone = this.phone;
            }
            if (this.email != null) {
                data.email = this.email;
            }
            if (this.password != null) {
                data.password = this.password;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.logo.length)
                writer.writeString(1, this.logo);
            if (this.title.length)
                writer.writeString(2, this.title);
            if (this.intro.length)
                writer.writeString(3, this.intro);
            if (this.template.length)
                writer.writeString(4, this.template);
            if (this.configs.length)
                writer.writeString(5, this.configs);
            if (this.subdomain.length)
                writer.writeString(6, this.subdomain);
            if (this.apply_remarks.length)
                writer.writeString(7, this.apply_remarks);
            if (this.name.length)
                writer.writeString(8, this.name);
            if (this.account.length)
                writer.writeString(9, this.account);
            if (this.phone.length)
                writer.writeString(10, this.phone);
            if (this.email.length)
                writer.writeString(11, this.email);
            if (this.password.length)
                writer.writeString(12, this.password);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ApplyJoinRequest {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ApplyJoinRequest();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.logo = reader.readString();
                        break;
                    case 2:
                        message.title = reader.readString();
                        break;
                    case 3:
                        message.intro = reader.readString();
                        break;
                    case 4:
                        message.template = reader.readString();
                        break;
                    case 5:
                        message.configs = reader.readString();
                        break;
                    case 6:
                        message.subdomain = reader.readString();
                        break;
                    case 7:
                        message.apply_remarks = reader.readString();
                        break;
                    case 8:
                        message.name = reader.readString();
                        break;
                    case 9:
                        message.account = reader.readString();
                        break;
                    case 10:
                        message.phone = reader.readString();
                        break;
                    case 11:
                        message.email = reader.readString();
                        break;
                    case 12:
                        message.password = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): ApplyJoinRequest {
            return ApplyJoinRequest.deserialize(bytes);
        }
    }
    export class StoreBasic extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            id?: number;
            identity?: string;
            logo?: string;
            title?: string;
            intro?: string;
            template?: string;
            configs?: string;
            subdomain?: string;
            created_at?: string;
            status?: number;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("id" in data && data.id != undefined) {
                    this.id = data.id;
                }
                if ("identity" in data && data.identity != undefined) {
                    this.identity = data.identity;
                }
                if ("logo" in data && data.logo != undefined) {
                    this.logo = data.logo;
                }
                if ("title" in data && data.title != undefined) {
                    this.title = data.title;
                }
                if ("intro" in data && data.intro != undefined) {
                    this.intro = data.intro;
                }
                if ("template" in data && data.template != undefined) {
                    this.template = data.template;
                }
                if ("configs" in data && data.configs != undefined) {
                    this.configs = data.configs;
                }
                if ("subdomain" in data && data.subdomain != undefined) {
                    this.subdomain = data.subdomain;
                }
                if ("created_at" in data && data.created_at != undefined) {
                    this.created_at = data.created_at;
                }
                if ("status" in data && data.status != undefined) {
                    this.status = data.status;
                }
            }
        }
        get id() {
            return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
        }
        set id(value: number) {
            pb_1.Message.setField(this, 1, value);
        }
        get identity() {
            return pb_1.Message.getFieldWithDefault(this, 2, "") as string;
        }
        set identity(value: string) {
            pb_1.Message.setField(this, 2, value);
        }
        get logo() {
            return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
        }
        set logo(value: string) {
            pb_1.Message.setField(this, 3, value);
        }
        get title() {
            return pb_1.Message.getFieldWithDefault(this, 4, "") as string;
        }
        set title(value: string) {
            pb_1.Message.setField(this, 4, value);
        }
        get intro() {
            return pb_1.Message.getFieldWithDefault(this, 5, "") as string;
        }
        set intro(value: string) {
            pb_1.Message.setField(this, 5, value);
        }
        get template() {
            return pb_1.Message.getFieldWithDefault(this, 6, "") as string;
        }
        set template(value: string) {
            pb_1.Message.setField(this, 6, value);
        }
        get configs() {
            return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
        }
        set configs(value: string) {
            pb_1.Message.setField(this, 7, value);
        }
        get subdomain() {
            return pb_1.Message.getFieldWithDefault(this, 8, "") as string;
        }
        set subdomain(value: string) {
            pb_1.Message.setField(this, 8, value);
        }
        get created_at() {
            return pb_1.Message.getFieldWithDefault(this, 9, "") as string;
        }
        set created_at(value: string) {
            pb_1.Message.setField(this, 9, value);
        }
        get status() {
            return pb_1.Message.getFieldWithDefault(this, 10, 0) as number;
        }
        set status(value: number) {
            pb_1.Message.setField(this, 10, value);
        }
        static fromObject(data: {
            id?: number;
            identity?: string;
            logo?: string;
            title?: string;
            intro?: string;
            template?: string;
            configs?: string;
            subdomain?: string;
            created_at?: string;
            status?: number;
        }): StoreBasic {
            const message = new StoreBasic({});
            if (data.id != null) {
                message.id = data.id;
            }
            if (data.identity != null) {
                message.identity = data.identity;
            }
            if (data.logo != null) {
                message.logo = data.logo;
            }
            if (data.title != null) {
                message.title = data.title;
            }
            if (data.intro != null) {
                message.intro = data.intro;
            }
            if (data.template != null) {
                message.template = data.template;
            }
            if (data.configs != null) {
                message.configs = data.configs;
            }
            if (data.subdomain != null) {
                message.subdomain = data.subdomain;
            }
            if (data.created_at != null) {
                message.created_at = data.created_at;
            }
            if (data.status != null) {
                message.status = data.status;
            }
            return message;
        }
        toObject() {
            const data: {
                id?: number;
                identity?: string;
                logo?: string;
                title?: string;
                intro?: string;
                template?: string;
                configs?: string;
                subdomain?: string;
                created_at?: string;
                status?: number;
            } = {};
            if (this.id != null) {
                data.id = this.id;
            }
            if (this.identity != null) {
                data.identity = this.identity;
            }
            if (this.logo != null) {
                data.logo = this.logo;
            }
            if (this.title != null) {
                data.title = this.title;
            }
            if (this.intro != null) {
                data.intro = this.intro;
            }
            if (this.template != null) {
                data.template = this.template;
            }
            if (this.configs != null) {
                data.configs = this.configs;
            }
            if (this.subdomain != null) {
                data.subdomain = this.subdomain;
            }
            if (this.created_at != null) {
                data.created_at = this.created_at;
            }
            if (this.status != null) {
                data.status = this.status;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.id != 0)
                writer.writeInt64(1, this.id);
            if (this.identity.length)
                writer.writeString(2, this.identity);
            if (this.logo.length)
                writer.writeString(3, this.logo);
            if (this.title.length)
                writer.writeString(4, this.title);
            if (this.intro.length)
                writer.writeString(5, this.intro);
            if (this.template.length)
                writer.writeString(6, this.template);
            if (this.configs.length)
                writer.writeString(7, this.configs);
            if (this.subdomain.length)
                writer.writeString(8, this.subdomain);
            if (this.created_at.length)
                writer.writeString(9, this.created_at);
            if (this.status != 0)
                writer.writeInt32(10, this.status);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StoreBasic {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StoreBasic();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.id = reader.readInt64();
                        break;
                    case 2:
                        message.identity = reader.readString();
                        break;
                    case 3:
                        message.logo = reader.readString();
                        break;
                    case 4:
                        message.title = reader.readString();
                        break;
                    case 5:
                        message.intro = reader.readString();
                        break;
                    case 6:
                        message.template = reader.readString();
                        break;
                    case 7:
                        message.configs = reader.readString();
                        break;
                    case 8:
                        message.subdomain = reader.readString();
                        break;
                    case 9:
                        message.created_at = reader.readString();
                        break;
                    case 10:
                        message.status = reader.readInt32();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): StoreBasic {
            return StoreBasic.deserialize(bytes);
        }
    }
    export class MiniCodeRequest extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            types?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("types" in data && data.types != undefined) {
                    this.types = data.types;
                }
            }
        }
        get types() {
            return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
        }
        set types(value: string) {
            pb_1.Message.setField(this, 1, value);
        }
        static fromObject(data: {
            types?: string;
        }): MiniCodeRequest {
            const message = new MiniCodeRequest({});
            if (data.types != null) {
                message.types = data.types;
            }
            return message;
        }
        toObject() {
            const data: {
                types?: string;
            } = {};
            if (this.types != null) {
                data.types = this.types;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.types.length)
                writer.writeString(1, this.types);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MiniCodeRequest {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MiniCodeRequest();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.types = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): MiniCodeRequest {
            return MiniCodeRequest.deserialize(bytes);
        }
    }
    export class MiniCodeReply extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            img?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("img" in data && data.img != undefined) {
                    this.img = data.img;
                }
            }
        }
        get img() {
            return pb_1.Message.getFieldWithDefault(this, 1, "") as string;
        }
        set img(value: string) {
            pb_1.Message.setField(this, 1, value);
        }
        static fromObject(data: {
            img?: string;
        }): MiniCodeReply {
            const message = new MiniCodeReply({});
            if (data.img != null) {
                message.img = data.img;
            }
            return message;
        }
        toObject() {
            const data: {
                img?: string;
            } = {};
            if (this.img != null) {
                data.img = this.img;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.img.length)
                writer.writeString(1, this.img);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MiniCodeReply {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MiniCodeReply();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.img = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): MiniCodeReply {
            return MiniCodeReply.deserialize(bytes);
        }
    }
    export class MallSearchRequest extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            page_no?: number;
            page_size?: number;
            keyword?: string;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("page_no" in data && data.page_no != undefined) {
                    this.page_no = data.page_no;
                }
                if ("page_size" in data && data.page_size != undefined) {
                    this.page_size = data.page_size;
                }
                if ("keyword" in data && data.keyword != undefined) {
                    this.keyword = data.keyword;
                }
            }
        }
        get page_no() {
            return pb_1.Message.getFieldWithDefault(this, 1, 0) as number;
        }
        set page_no(value: number) {
            pb_1.Message.setField(this, 1, value);
        }
        get page_size() {
            return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
        }
        set page_size(value: number) {
            pb_1.Message.setField(this, 2, value);
        }
        get keyword() {
            return pb_1.Message.getFieldWithDefault(this, 3, "") as string;
        }
        set keyword(value: string) {
            pb_1.Message.setField(this, 3, value);
        }
        static fromObject(data: {
            page_no?: number;
            page_size?: number;
            keyword?: string;
        }): MallSearchRequest {
            const message = new MallSearchRequest({});
            if (data.page_no != null) {
                message.page_no = data.page_no;
            }
            if (data.page_size != null) {
                message.page_size = data.page_size;
            }
            if (data.keyword != null) {
                message.keyword = data.keyword;
            }
            return message;
        }
        toObject() {
            const data: {
                page_no?: number;
                page_size?: number;
                keyword?: string;
            } = {};
            if (this.page_no != null) {
                data.page_no = this.page_no;
            }
            if (this.page_size != null) {
                data.page_size = this.page_size;
            }
            if (this.keyword != null) {
                data.keyword = this.keyword;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.page_no != 0)
                writer.writeInt64(1, this.page_no);
            if (this.page_size != 0)
                writer.writeInt64(2, this.page_size);
            if (this.keyword.length)
                writer.writeString(3, this.keyword);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MallSearchRequest {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MallSearchRequest();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        message.page_no = reader.readInt64();
                        break;
                    case 2:
                        message.page_size = reader.readInt64();
                        break;
                    case 3:
                        message.keyword = reader.readString();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): MallSearchRequest {
            return MallSearchRequest.deserialize(bytes);
        }
    }
    export class MallSearchReply extends pb_1.Message {
        #one_of_decls: number[][] = [];
        constructor(data?: any[] | {
            list?: StoreBasic[];
            count?: number;
        }) {
            super();
            pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], this.#one_of_decls);
            if (!Array.isArray(data) && typeof data == "object") {
                if ("list" in data && data.list != undefined) {
                    this.list = data.list;
                }
                if ("count" in data && data.count != undefined) {
                    this.count = data.count;
                }
            }
        }
        get list() {
            return pb_1.Message.getRepeatedWrapperField(this, StoreBasic, 1) as StoreBasic[];
        }
        set list(value: StoreBasic[]) {
            pb_1.Message.setRepeatedWrapperField(this, 1, value);
        }
        get count() {
            return pb_1.Message.getFieldWithDefault(this, 2, 0) as number;
        }
        set count(value: number) {
            pb_1.Message.setField(this, 2, value);
        }
        static fromObject(data: {
            list?: ReturnType<typeof StoreBasic.prototype.toObject>[];
            count?: number;
        }): MallSearchReply {
            const message = new MallSearchReply({});
            if (data.list != null) {
                message.list = data.list.map(item => StoreBasic.fromObject(item));
            }
            if (data.count != null) {
                message.count = data.count;
            }
            return message;
        }
        toObject() {
            const data: {
                list?: ReturnType<typeof StoreBasic.prototype.toObject>[];
                count?: number;
            } = {};
            if (this.list != null) {
                data.list = this.list.map((item: StoreBasic) => item.toObject());
            }
            if (this.count != null) {
                data.count = this.count;
            }
            return data;
        }
        serialize(): Uint8Array;
        serialize(w: pb_1.BinaryWriter): void;
        serialize(w?: pb_1.BinaryWriter): Uint8Array | void {
            const writer = w || new pb_1.BinaryWriter();
            if (this.list.length)
                writer.writeRepeatedMessage(1, this.list, (item: StoreBasic) => item.serialize(writer));
            if (this.count != 0)
                writer.writeInt64(2, this.count);
            if (!w)
                return writer.getResultBuffer();
        }
        static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MallSearchReply {
            const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MallSearchReply();
            while (reader.nextField()) {
                if (reader.isEndGroup())
                    break;
                switch (reader.getFieldNumber()) {
                    case 1:
                        reader.readMessage(message.list, () => pb_1.Message.addToRepeatedWrapperField(message, 1, StoreBasic.deserialize(reader), StoreBasic));
                        break;
                    case 2:
                        message.count = reader.readInt64();
                        break;
                    default: reader.skipField();
                }
            }
            return message;
        }
        serializeBinary(): Uint8Array {
            return this.serialize();
        }
        static deserializeBinary(bytes: Uint8Array): MallSearchReply {
            return MallSearchReply.deserialize(bytes);
        }
    }
    interface GrpcUnaryServiceInterface<P, R> {
        (message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
        (message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
        (message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
        (message: P, callback: grpc_1.requestCallback<R>): grpc_1.ClientUnaryCall;
    }
    interface GrpcStreamServiceInterface<P, R> {
        (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
        (message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream<R>;
    }
    interface GrpWritableServiceInterface<P, R> {
        (metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
        (metadata: grpc_1.Metadata, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
        (options: grpc_1.CallOptions, callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
        (callback: grpc_1.requestCallback<R>): grpc_1.ClientWritableStream<P>;
    }
    interface GrpcChunkServiceInterface<P, R> {
        (metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
        (options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream<P, R>;
    }
    interface GrpcPromiseServiceInterface<P, R> {
        (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
        (message: P, options?: grpc_1.CallOptions): Promise<R>;
    }
    export abstract class UnimplementedStoreService {
        static definition = {
            ApplyJoin: {
                path: "/mall.Store/ApplyJoin",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: ApplyJoinRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => ApplyJoinRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: dependency_1.mall.StatusReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => dependency_1.mall.StatusReply.deserialize(new Uint8Array(bytes))
            },
            GetSetting: {
                path: "/mall.Store/GetSetting",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: dependency_1.mall.IdentRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => dependency_1.mall.IdentRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: StoreBasic) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => StoreBasic.deserialize(new Uint8Array(bytes))
            },
            SetSetting: {
                path: "/mall.Store/SetSetting",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: StoreBasic) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => StoreBasic.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: dependency_1.mall.StatusReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => dependency_1.mall.StatusReply.deserialize(new Uint8Array(bytes))
            },
            SetPayment: {
                path: "/mall.Store/SetPayment",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: SettingRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => SettingRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: dependency_1.mall.StatusReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => dependency_1.mall.StatusReply.deserialize(new Uint8Array(bytes))
            },
            SetEmail: {
                path: "/mall.Store/SetEmail",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: SettingRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => SettingRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: dependency_1.mall.StatusReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => dependency_1.mall.StatusReply.deserialize(new Uint8Array(bytes))
            },
            GetPayment: {
                path: "/mall.Store/GetPayment",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: dependency_1.mall.IdentRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => dependency_1.mall.IdentRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: ConfigsReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => ConfigsReply.deserialize(new Uint8Array(bytes))
            },
            GetEmail: {
                path: "/mall.Store/GetEmail",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: dependency_1.mall.IdentRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => dependency_1.mall.IdentRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: ConfigsReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => ConfigsReply.deserialize(new Uint8Array(bytes))
            },
            MiniCode: {
                path: "/mall.Store/MiniCode",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: MiniCodeRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => MiniCodeRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: MiniCodeReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => MiniCodeReply.deserialize(new Uint8Array(bytes))
            },
            Search: {
                path: "/mall.Store/Search",
                requestStream: false,
                responseStream: false,
                requestSerialize: (message: MallSearchRequest) => Buffer.from(message.serialize()),
                requestDeserialize: (bytes: Buffer) => MallSearchRequest.deserialize(new Uint8Array(bytes)),
                responseSerialize: (message: MallSearchReply) => Buffer.from(message.serialize()),
                responseDeserialize: (bytes: Buffer) => MallSearchReply.deserialize(new Uint8Array(bytes))
            }
        };
        [method: string]: grpc_1.UntypedHandleCall;
        abstract ApplyJoin(call: grpc_1.ServerUnaryCall<ApplyJoinRequest, dependency_1.mall.StatusReply>, callback: grpc_1.sendUnaryData<dependency_1.mall.StatusReply>): void;
        abstract GetSetting(call: grpc_1.ServerUnaryCall<dependency_1.mall.IdentRequest, StoreBasic>, callback: grpc_1.sendUnaryData<StoreBasic>): void;
        abstract SetSetting(call: grpc_1.ServerUnaryCall<StoreBasic, dependency_1.mall.StatusReply>, callback: grpc_1.sendUnaryData<dependency_1.mall.StatusReply>): void;
        abstract SetPayment(call: grpc_1.ServerUnaryCall<SettingRequest, dependency_1.mall.StatusReply>, callback: grpc_1.sendUnaryData<dependency_1.mall.StatusReply>): void;
        abstract SetEmail(call: grpc_1.ServerUnaryCall<SettingRequest, dependency_1.mall.StatusReply>, callback: grpc_1.sendUnaryData<dependency_1.mall.StatusReply>): void;
        abstract GetPayment(call: grpc_1.ServerUnaryCall<dependency_1.mall.IdentRequest, ConfigsReply>, callback: grpc_1.sendUnaryData<ConfigsReply>): void;
        abstract GetEmail(call: grpc_1.ServerUnaryCall<dependency_1.mall.IdentRequest, ConfigsReply>, callback: grpc_1.sendUnaryData<ConfigsReply>): void;
        abstract MiniCode(call: grpc_1.ServerUnaryCall<MiniCodeRequest, MiniCodeReply>, callback: grpc_1.sendUnaryData<MiniCodeReply>): void;
        abstract Search(call: grpc_1.ServerUnaryCall<MallSearchRequest, MallSearchReply>, callback: grpc_1.sendUnaryData<MallSearchReply>): void;
    }
    export class StoreClient extends grpc_1.makeGenericClientConstructor(UnimplementedStoreService.definition, "Store", {}) {
        constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>) {
            super(address, credentials, options);
        }
        ApplyJoin: GrpcUnaryServiceInterface<ApplyJoinRequest, dependency_1.mall.StatusReply> = (message: ApplyJoinRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, callback?: grpc_1.requestCallback<dependency_1.mall.StatusReply>): grpc_1.ClientUnaryCall => {
            return super.ApplyJoin(message, metadata, options, callback);
        };
        GetSetting: GrpcUnaryServiceInterface<dependency_1.mall.IdentRequest, StoreBasic> = (message: dependency_1.mall.IdentRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<StoreBasic>, options?: grpc_1.CallOptions | grpc_1.requestCallback<StoreBasic>, callback?: grpc_1.requestCallback<StoreBasic>): grpc_1.ClientUnaryCall => {
            return super.GetSetting(message, metadata, options, callback);
        };
        SetSetting: GrpcUnaryServiceInterface<StoreBasic, dependency_1.mall.StatusReply> = (message: StoreBasic, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, callback?: grpc_1.requestCallback<dependency_1.mall.StatusReply>): grpc_1.ClientUnaryCall => {
            return super.SetSetting(message, metadata, options, callback);
        };
        SetPayment: GrpcUnaryServiceInterface<SettingRequest, dependency_1.mall.StatusReply> = (message: SettingRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, callback?: grpc_1.requestCallback<dependency_1.mall.StatusReply>): grpc_1.ClientUnaryCall => {
            return super.SetPayment(message, metadata, options, callback);
        };
        SetEmail: GrpcUnaryServiceInterface<SettingRequest, dependency_1.mall.StatusReply> = (message: SettingRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<dependency_1.mall.StatusReply>, callback?: grpc_1.requestCallback<dependency_1.mall.StatusReply>): grpc_1.ClientUnaryCall => {
            return super.SetEmail(message, metadata, options, callback);
        };
        GetPayment: GrpcUnaryServiceInterface<dependency_1.mall.IdentRequest, ConfigsReply> = (message: dependency_1.mall.IdentRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<ConfigsReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<ConfigsReply>, callback?: grpc_1.requestCallback<ConfigsReply>): grpc_1.ClientUnaryCall => {
            return super.GetPayment(message, metadata, options, callback);
        };
        GetEmail: GrpcUnaryServiceInterface<dependency_1.mall.IdentRequest, ConfigsReply> = (message: dependency_1.mall.IdentRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<ConfigsReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<ConfigsReply>, callback?: grpc_1.requestCallback<ConfigsReply>): grpc_1.ClientUnaryCall => {
            return super.GetEmail(message, metadata, options, callback);
        };
        MiniCode: GrpcUnaryServiceInterface<MiniCodeRequest, MiniCodeReply> = (message: MiniCodeRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<MiniCodeReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<MiniCodeReply>, callback?: grpc_1.requestCallback<MiniCodeReply>): grpc_1.ClientUnaryCall => {
            return super.MiniCode(message, metadata, options, callback);
        };
        Search: GrpcUnaryServiceInterface<MallSearchRequest, MallSearchReply> = (message: MallSearchRequest, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback<MallSearchReply>, options?: grpc_1.CallOptions | grpc_1.requestCallback<MallSearchReply>, callback?: grpc_1.requestCallback<MallSearchReply>): grpc_1.ClientUnaryCall => {
            return super.Search(message, metadata, options, callback);
        };
    }
}
