marineparkclient/assets/common/net/pb/pbBase.d.ts
2023-08-15 11:09:12 +08:00

418 lines
16 KiB
TypeScript

import * as $protobuf from "protobufjs";
/** Namespace baseproto. */
export namespace baseproto {
/** ENUM_MAIN_ID enum. */
enum ENUM_MAIN_ID {
UNUSED = 0,
TOKEN_ID = 1,
LOGIN_ID = 2,
HALL_ID = 3,
GAME_ID = 4
}
/** ENUM_ERRO_ID enum. */
enum ENUM_ERRO_ID {
PACKAGE_ERRO = -1,
MAIN_SUB_ERRO = -2,
BODY_ERRO = -3,
DB_ERRO = -4
}
/** Properties of a Msg_Head. */
interface IMsg_Head {
/** Msg_Head wMainCmdID */
wMainCmdID?: (number|null);
/** Msg_Head wSubCmdID */
wSubCmdID?: (number|null);
/** Msg_Head msgBody */
msgBody?: (Uint8Array|null);
}
/** Represents a Msg_Head. */
class Msg_Head implements IMsg_Head {
/**
* Constructs a new Msg_Head.
* @param [properties] Properties to set
*/
constructor(properties?: baseproto.IMsg_Head);
/** Msg_Head wMainCmdID. */
public wMainCmdID: number;
/** Msg_Head wSubCmdID. */
public wSubCmdID: number;
/** Msg_Head msgBody. */
public msgBody: Uint8Array;
/**
* Creates a new Msg_Head instance using the specified properties.
* @param [properties] Properties to set
* @returns Msg_Head instance
*/
public static create(properties?: baseproto.IMsg_Head): baseproto.Msg_Head;
/**
* Encodes the specified Msg_Head message. Does not implicitly {@link baseproto.Msg_Head.verify|verify} messages.
* @param message Msg_Head message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: baseproto.IMsg_Head, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Msg_Head message, length delimited. Does not implicitly {@link baseproto.Msg_Head.verify|verify} messages.
* @param message Msg_Head message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: baseproto.IMsg_Head, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Msg_Head message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Msg_Head
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baseproto.Msg_Head;
/**
* Decodes a Msg_Head message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Msg_Head
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baseproto.Msg_Head;
/**
* Verifies a Msg_Head message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Msg_Head message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Msg_Head
*/
public static fromObject(object: { [k: string]: any }): baseproto.Msg_Head;
/**
* Creates a plain object from a Msg_Head message. Also converts values to other types if specified.
* @param message Msg_Head
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: baseproto.Msg_Head, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Msg_Head to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Msg_TokenBody. */
interface IMsg_TokenBody {
/** Msg_TokenBody strToken */
strToken?: (string|null);
/** Msg_TokenBody msgBody */
msgBody?: (Uint8Array|null);
}
/** Represents a Msg_TokenBody. */
class Msg_TokenBody implements IMsg_TokenBody {
/**
* Constructs a new Msg_TokenBody.
* @param [properties] Properties to set
*/
constructor(properties?: baseproto.IMsg_TokenBody);
/** Msg_TokenBody strToken. */
public strToken: string;
/** Msg_TokenBody msgBody. */
public msgBody: Uint8Array;
/**
* Creates a new Msg_TokenBody instance using the specified properties.
* @param [properties] Properties to set
* @returns Msg_TokenBody instance
*/
public static create(properties?: baseproto.IMsg_TokenBody): baseproto.Msg_TokenBody;
/**
* Encodes the specified Msg_TokenBody message. Does not implicitly {@link baseproto.Msg_TokenBody.verify|verify} messages.
* @param message Msg_TokenBody message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: baseproto.IMsg_TokenBody, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Msg_TokenBody message, length delimited. Does not implicitly {@link baseproto.Msg_TokenBody.verify|verify} messages.
* @param message Msg_TokenBody message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: baseproto.IMsg_TokenBody, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Msg_TokenBody message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Msg_TokenBody
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baseproto.Msg_TokenBody;
/**
* Decodes a Msg_TokenBody message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Msg_TokenBody
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baseproto.Msg_TokenBody;
/**
* Verifies a Msg_TokenBody message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Msg_TokenBody message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Msg_TokenBody
*/
public static fromObject(object: { [k: string]: any }): baseproto.Msg_TokenBody;
/**
* Creates a plain object from a Msg_TokenBody message. Also converts values to other types if specified.
* @param message Msg_TokenBody
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: baseproto.Msg_TokenBody, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Msg_TokenBody to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a Msg_Info. */
interface IMsg_Info {
/** Msg_Info cbDataKind */
cbDataKind?: (number|null);
/** Msg_Info wPacketSize */
wPacketSize?: (number|null);
/** Msg_Info msgBuff */
msgBuff?: (Uint8Array|null);
}
/** Represents a Msg_Info. */
class Msg_Info implements IMsg_Info {
/**
* Constructs a new Msg_Info.
* @param [properties] Properties to set
*/
constructor(properties?: baseproto.IMsg_Info);
/** Msg_Info cbDataKind. */
public cbDataKind: number;
/** Msg_Info wPacketSize. */
public wPacketSize: number;
/** Msg_Info msgBuff. */
public msgBuff: Uint8Array;
/**
* Creates a new Msg_Info instance using the specified properties.
* @param [properties] Properties to set
* @returns Msg_Info instance
*/
public static create(properties?: baseproto.IMsg_Info): baseproto.Msg_Info;
/**
* Encodes the specified Msg_Info message. Does not implicitly {@link baseproto.Msg_Info.verify|verify} messages.
* @param message Msg_Info message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: baseproto.IMsg_Info, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Msg_Info message, length delimited. Does not implicitly {@link baseproto.Msg_Info.verify|verify} messages.
* @param message Msg_Info message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: baseproto.IMsg_Info, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Msg_Info message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Msg_Info
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baseproto.Msg_Info;
/**
* Decodes a Msg_Info message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Msg_Info
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baseproto.Msg_Info;
/**
* Verifies a Msg_Info message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Msg_Info message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Msg_Info
*/
public static fromObject(object: { [k: string]: any }): baseproto.Msg_Info;
/**
* Creates a plain object from a Msg_Info message. Also converts values to other types if specified.
* @param message Msg_Info
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: baseproto.Msg_Info, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Msg_Info to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
/** Properties of a MsgBodyErro. */
interface IMsgBodyErro {
/** MsgBodyErro code */
code?: (number|null);
/** MsgBodyErro disp */
disp?: (string|null);
}
/** Represents a MsgBodyErro. */
class MsgBodyErro implements IMsgBodyErro {
/**
* Constructs a new MsgBodyErro.
* @param [properties] Properties to set
*/
constructor(properties?: baseproto.IMsgBodyErro);
/** MsgBodyErro code. */
public code: number;
/** MsgBodyErro disp. */
public disp: string;
/**
* Creates a new MsgBodyErro instance using the specified properties.
* @param [properties] Properties to set
* @returns MsgBodyErro instance
*/
public static create(properties?: baseproto.IMsgBodyErro): baseproto.MsgBodyErro;
/**
* Encodes the specified MsgBodyErro message. Does not implicitly {@link baseproto.MsgBodyErro.verify|verify} messages.
* @param message MsgBodyErro message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: baseproto.IMsgBodyErro, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified MsgBodyErro message, length delimited. Does not implicitly {@link baseproto.MsgBodyErro.verify|verify} messages.
* @param message MsgBodyErro message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: baseproto.IMsgBodyErro, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a MsgBodyErro message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns MsgBodyErro
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): baseproto.MsgBodyErro;
/**
* Decodes a MsgBodyErro message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns MsgBodyErro
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): baseproto.MsgBodyErro;
/**
* Verifies a MsgBodyErro message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a MsgBodyErro message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns MsgBodyErro
*/
public static fromObject(object: { [k: string]: any }): baseproto.MsgBodyErro;
/**
* Creates a plain object from a MsgBodyErro message. Also converts values to other types if specified.
* @param message MsgBodyErro
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: baseproto.MsgBodyErro, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this MsgBodyErro to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
}
}