// @ts-nocheck /** * Generated by the protoc-gen-ts. DO NOT EDIT! * compiler version: 3.21.12 * source: config/chainmaker_server.proto * git: https://github.com/thesayyn/protoc-gen-ts */ import * as pb_1 from "google-protobuf"; export namespace config { export class ChainMakerVersionRequest extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | {}) { super(); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], this.#one_of_decls); if (!Array.isArray(data) && typeof data == "object") { } } static fromObject(data: any): ChainMakerVersionRequest { const message = new ChainMakerVersionRequest({}); return message; } toObject() { const data: {} = {}; 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 (!w) return writer.getResultBuffer(); } static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ChainMakerVersionRequest { const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ChainMakerVersionRequest(); while (reader.nextField()) { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { default: reader.skipField(); } } return message; } serializeBinary(): Uint8Array { return this.serialize(); } static deserializeBinary(bytes: Uint8Array): ChainMakerVersionRequest { return ChainMakerVersionRequest.deserialize(bytes); } } export class ChainMakerVersionResponse extends pb_1.Message { #one_of_decls: number[][] = []; constructor(data?: any[] | { code?: number; message?: string; version?: 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 ("code" in data && data.code != undefined) { this.code = data.code; } if ("message" in data && data.message != undefined) { this.message = data.message; } if ("version" in data && data.version != undefined) { this.version = data.version; } } } get code() { return pb_1.Message.getFieldWithDefault(this, 1, 0) as number; } set code(value: number) { pb_1.Message.setField(this, 1, value); } get message() { return pb_1.Message.getFieldWithDefault(this, 2, "") as string; } set message(value: string) { pb_1.Message.setField(this, 2, value); } get version() { return pb_1.Message.getFieldWithDefault(this, 3, "") as string; } set version(value: string) { pb_1.Message.setField(this, 3, value); } static fromObject(data: { code?: number; message?: string; version?: string; }): ChainMakerVersionResponse { const message = new ChainMakerVersionResponse({}); if (data.code != null) { message.code = data.code; } if (data.message != null) { message.message = data.message; } if (data.version != null) { message.version = data.version; } return message; } toObject() { const data: { code?: number; message?: string; version?: string; } = {}; if (this.code != null) { data.code = this.code; } if (this.message != null) { data.message = this.message; } if (this.version != null) { data.version = this.version; } 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.code != 0) writer.writeInt32(1, this.code); if (this.message.length) writer.writeString(2, this.message); if (this.version.length) writer.writeString(3, this.version); if (!w) return writer.getResultBuffer(); } static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ChainMakerVersionResponse { const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ChainMakerVersionResponse(); while (reader.nextField()) { if (reader.isEndGroup()) break; switch (reader.getFieldNumber()) { case 1: message.code = reader.readInt32(); break; case 2: message.message = reader.readString(); break; case 3: message.version = reader.readString(); break; default: reader.skipField(); } } return message; } serializeBinary(): Uint8Array { return this.serialize(); } static deserializeBinary(bytes: Uint8Array): ChainMakerVersionResponse { return ChainMakerVersionResponse.deserialize(bytes); } } }