futu-sdk
Version:
futu-api 的高性能精简易用版;基于*.proto静态编译,提供高性能的多层封装但层层开放的易用接口,获取最原始最完整的量化数据;相较于Python, nodejs更接近Web, 从而轻而易举搭建一个可视化交易站点,这是进行可控量化交易的不二选择。
1,278 lines (1,056 loc) • 1.65 MB
text/typescript
import * as $protobuf from 'protobufjs';
import Long from 'long';
/** Namespace Common. */
declare namespace Common {
/** RetType enum. */
enum RetType {
RetType_Succeed = 0,
RetType_Failed = -1,
RetType_TimeOut = -100,
RetType_DisConnect = -200,
RetType_Unknown = -400,
RetType_Invalid = -500
}
/** PacketEncAlgo enum. */
enum PacketEncAlgo {
PacketEncAlgo_FTAES_ECB = 0,
PacketEncAlgo_None = -1,
PacketEncAlgo_AES_ECB = 1,
PacketEncAlgo_AES_CBC = 2
}
/** Properties of a PacketID. */
interface IPacketID {
/** PacketID connID */
connID: (number|Long);
/** PacketID serialNo */
serialNo: number;
}
/** Represents a PacketID. */
class PacketID implements IPacketID {
/**
* Constructs a new PacketID.
* @param [properties] Properties to set
*/
constructor(properties?: Common.IPacketID);
/** PacketID connID. */
public connID: (number|Long);
/** PacketID serialNo. */
public serialNo: number;
/**
* Creates a new PacketID instance using the specified properties.
* @param [properties] Properties to set
* @returns PacketID instance
*/
public static create(properties?: Common.IPacketID): Common.PacketID;
/**
* Encodes the specified PacketID message. Does not implicitly {@link Common.PacketID.verify|verify} messages.
* @param message PacketID message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: Common.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PacketID message, length delimited. Does not implicitly {@link Common.PacketID.verify|verify} messages.
* @param message PacketID message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: Common.IPacketID, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PacketID message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PacketID
* @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): Common.PacketID;
/**
* Decodes a PacketID message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PacketID
* @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)): Common.PacketID;
/**
* Verifies a PacketID 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 PacketID message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PacketID
*/
public static fromObject(object: { [k: string]: any }): Common.PacketID;
/**
* Creates a plain object from a PacketID message. Also converts values to other types if specified.
* @param message PacketID
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Common.PacketID, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PacketID to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PacketID
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** ProtoFmt enum. */
enum ProtoFmt {
ProtoFmt_Protobuf = 0,
ProtoFmt_Json = 1
}
/** UserAttribution enum. */
enum UserAttribution {
UserAttribution_Unknown = 0,
UserAttribution_NN = 1,
UserAttribution_MM = 2,
UserAttribution_SG = 3,
UserAttribution_AU = 4,
UserAttribution_JP = 5,
UserAttribution_HK = 6
}
/** ProgramStatusType enum. */
enum ProgramStatusType {
ProgramStatusType_None = 0,
ProgramStatusType_Loaded = 1,
ProgramStatusType_Loging = 2,
ProgramStatusType_NeedPicVerifyCode = 3,
ProgramStatusType_NeedPhoneVerifyCode = 4,
ProgramStatusType_LoginFailed = 5,
ProgramStatusType_ForceUpdate = 6,
ProgramStatusType_NessaryDataPreparing = 7,
ProgramStatusType_NessaryDataMissing = 8,
ProgramStatusType_UnAgreeDisclaimer = 9,
ProgramStatusType_Ready = 10,
ProgramStatusType_ForceLogout = 11,
ProgramStatusType_DisclaimerPullFailed = 12
}
/** Properties of a ProgramStatus. */
interface IProgramStatus {
/** ProgramStatus type */
type: Common.ProgramStatusType;
/** ProgramStatus strExtDesc */
strExtDesc?: (string|null);
}
/** Represents a ProgramStatus. */
class ProgramStatus implements IProgramStatus {
/**
* Constructs a new ProgramStatus.
* @param [properties] Properties to set
*/
constructor(properties?: Common.IProgramStatus);
/** ProgramStatus type. */
public type: Common.ProgramStatusType;
/** ProgramStatus strExtDesc. */
public strExtDesc: string;
/**
* Creates a new ProgramStatus instance using the specified properties.
* @param [properties] Properties to set
* @returns ProgramStatus instance
*/
public static create(properties?: Common.IProgramStatus): Common.ProgramStatus;
/**
* Encodes the specified ProgramStatus message. Does not implicitly {@link Common.ProgramStatus.verify|verify} messages.
* @param message ProgramStatus message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: Common.IProgramStatus, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ProgramStatus message, length delimited. Does not implicitly {@link Common.ProgramStatus.verify|verify} messages.
* @param message ProgramStatus message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: Common.IProgramStatus, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ProgramStatus message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ProgramStatus
* @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): Common.ProgramStatus;
/**
* Decodes a ProgramStatus message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ProgramStatus
* @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)): Common.ProgramStatus;
/**
* Verifies a ProgramStatus 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 ProgramStatus message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ProgramStatus
*/
public static fromObject(object: { [k: string]: any }): Common.ProgramStatus;
/**
* Creates a plain object from a ProgramStatus message. Also converts values to other types if specified.
* @param message ProgramStatus
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: Common.ProgramStatus, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ProgramStatus to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ProgramStatus
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Namespace GetDelayStatistics. */
declare namespace GetDelayStatistics {
/** DelayStatisticsType enum. */
enum DelayStatisticsType {
DelayStatisticsType_Unkonw = 0,
DelayStatisticsType_QotPush = 1,
DelayStatisticsType_ReqReply = 2,
DelayStatisticsType_PlaceOrder = 3
}
/** QotPushStage enum. */
enum QotPushStage {
QotPushStage_Unkonw = 0,
QotPushStage_SR2SS = 1,
QotPushStage_SS2CR = 2,
QotPushStage_CR2CS = 3,
QotPushStage_SS2CS = 4,
QotPushStage_SR2CS = 5
}
/** QotPushType enum. */
enum QotPushType {
QotPushType_Unkonw = 0,
QotPushType_Price = 1,
QotPushType_Ticker = 2,
QotPushType_OrderBook = 3,
QotPushType_Broker = 4
}
/** Properties of a C2S. */
interface IC2S {
/** C2S typeList */
typeList?: (number[]|null);
/** C2S qotPushStage */
qotPushStage?: (number|null);
/** C2S segmentList */
segmentList?: (number[]|null);
}
/** Represents a C2S. */
class C2S implements IC2S {
/**
* Constructs a new C2S.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IC2S);
/** C2S typeList. */
public typeList: number[];
/** C2S qotPushStage. */
public qotPushStage: number;
/** C2S segmentList. */
public segmentList: number[];
/**
* Creates a new C2S instance using the specified properties.
* @param [properties] Properties to set
* @returns C2S instance
*/
public static create(properties?: GetDelayStatistics.IC2S): GetDelayStatistics.C2S;
/**
* Encodes the specified C2S message. Does not implicitly {@link GetDelayStatistics.C2S.verify|verify} messages.
* @param message C2S message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IC2S, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified C2S message, length delimited. Does not implicitly {@link GetDelayStatistics.C2S.verify|verify} messages.
* @param message C2S message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IC2S, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a C2S message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns C2S
* @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): GetDelayStatistics.C2S;
/**
* Decodes a C2S message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns C2S
* @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)): GetDelayStatistics.C2S;
/**
* Verifies a C2S 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 C2S message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns C2S
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.C2S;
/**
* Creates a plain object from a C2S message. Also converts values to other types if specified.
* @param message C2S
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.C2S, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this C2S to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for C2S
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DelayStatisticsItem. */
interface IDelayStatisticsItem {
/** DelayStatisticsItem begin */
begin: number;
/** DelayStatisticsItem end */
end: number;
/** DelayStatisticsItem count */
count: number;
/** DelayStatisticsItem proportion */
proportion: number;
/** DelayStatisticsItem cumulativeRatio */
cumulativeRatio: number;
}
/** Represents a DelayStatisticsItem. */
class DelayStatisticsItem implements IDelayStatisticsItem {
/**
* Constructs a new DelayStatisticsItem.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IDelayStatisticsItem);
/** DelayStatisticsItem begin. */
public begin: number;
/** DelayStatisticsItem end. */
public end: number;
/** DelayStatisticsItem count. */
public count: number;
/** DelayStatisticsItem proportion. */
public proportion: number;
/** DelayStatisticsItem cumulativeRatio. */
public cumulativeRatio: number;
/**
* Creates a new DelayStatisticsItem instance using the specified properties.
* @param [properties] Properties to set
* @returns DelayStatisticsItem instance
*/
public static create(properties?: GetDelayStatistics.IDelayStatisticsItem): GetDelayStatistics.DelayStatisticsItem;
/**
* Encodes the specified DelayStatisticsItem message. Does not implicitly {@link GetDelayStatistics.DelayStatisticsItem.verify|verify} messages.
* @param message DelayStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IDelayStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DelayStatisticsItem message, length delimited. Does not implicitly {@link GetDelayStatistics.DelayStatisticsItem.verify|verify} messages.
* @param message DelayStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IDelayStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DelayStatisticsItem message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DelayStatisticsItem
* @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): GetDelayStatistics.DelayStatisticsItem;
/**
* Decodes a DelayStatisticsItem message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DelayStatisticsItem
* @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)): GetDelayStatistics.DelayStatisticsItem;
/**
* Verifies a DelayStatisticsItem 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 DelayStatisticsItem message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DelayStatisticsItem
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.DelayStatisticsItem;
/**
* Creates a plain object from a DelayStatisticsItem message. Also converts values to other types if specified.
* @param message DelayStatisticsItem
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.DelayStatisticsItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DelayStatisticsItem to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DelayStatisticsItem
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DelayStatistics. */
interface IDelayStatistics {
/** DelayStatistics qotPushType */
qotPushType: number;
/** DelayStatistics itemList */
itemList?: (GetDelayStatistics.IDelayStatisticsItem[]|null);
/** DelayStatistics delayAvg */
delayAvg: number;
/** DelayStatistics count */
count: number;
}
/** Represents a DelayStatistics. */
class DelayStatistics implements IDelayStatistics {
/**
* Constructs a new DelayStatistics.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IDelayStatistics);
/** DelayStatistics qotPushType. */
public qotPushType: number;
/** DelayStatistics itemList. */
public itemList: GetDelayStatistics.IDelayStatisticsItem[];
/** DelayStatistics delayAvg. */
public delayAvg: number;
/** DelayStatistics count. */
public count: number;
/**
* Creates a new DelayStatistics instance using the specified properties.
* @param [properties] Properties to set
* @returns DelayStatistics instance
*/
public static create(properties?: GetDelayStatistics.IDelayStatistics): GetDelayStatistics.DelayStatistics;
/**
* Encodes the specified DelayStatistics message. Does not implicitly {@link GetDelayStatistics.DelayStatistics.verify|verify} messages.
* @param message DelayStatistics message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IDelayStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DelayStatistics message, length delimited. Does not implicitly {@link GetDelayStatistics.DelayStatistics.verify|verify} messages.
* @param message DelayStatistics message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IDelayStatistics, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DelayStatistics message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DelayStatistics
* @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): GetDelayStatistics.DelayStatistics;
/**
* Decodes a DelayStatistics message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DelayStatistics
* @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)): GetDelayStatistics.DelayStatistics;
/**
* Verifies a DelayStatistics 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 DelayStatistics message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DelayStatistics
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.DelayStatistics;
/**
* Creates a plain object from a DelayStatistics message. Also converts values to other types if specified.
* @param message DelayStatistics
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.DelayStatistics, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DelayStatistics to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DelayStatistics
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ReqReplyStatisticsItem. */
interface IReqReplyStatisticsItem {
/** ReqReplyStatisticsItem protoID */
protoID: number;
/** ReqReplyStatisticsItem count */
count: number;
/** ReqReplyStatisticsItem totalCostAvg */
totalCostAvg: number;
/** ReqReplyStatisticsItem openDCostAvg */
openDCostAvg: number;
/** ReqReplyStatisticsItem netDelayAvg */
netDelayAvg: number;
/** ReqReplyStatisticsItem isLocalReply */
isLocalReply: boolean;
}
/** Represents a ReqReplyStatisticsItem. */
class ReqReplyStatisticsItem implements IReqReplyStatisticsItem {
/**
* Constructs a new ReqReplyStatisticsItem.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IReqReplyStatisticsItem);
/** ReqReplyStatisticsItem protoID. */
public protoID: number;
/** ReqReplyStatisticsItem count. */
public count: number;
/** ReqReplyStatisticsItem totalCostAvg. */
public totalCostAvg: number;
/** ReqReplyStatisticsItem openDCostAvg. */
public openDCostAvg: number;
/** ReqReplyStatisticsItem netDelayAvg. */
public netDelayAvg: number;
/** ReqReplyStatisticsItem isLocalReply. */
public isLocalReply: boolean;
/**
* Creates a new ReqReplyStatisticsItem instance using the specified properties.
* @param [properties] Properties to set
* @returns ReqReplyStatisticsItem instance
*/
public static create(properties?: GetDelayStatistics.IReqReplyStatisticsItem): GetDelayStatistics.ReqReplyStatisticsItem;
/**
* Encodes the specified ReqReplyStatisticsItem message. Does not implicitly {@link GetDelayStatistics.ReqReplyStatisticsItem.verify|verify} messages.
* @param message ReqReplyStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IReqReplyStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ReqReplyStatisticsItem message, length delimited. Does not implicitly {@link GetDelayStatistics.ReqReplyStatisticsItem.verify|verify} messages.
* @param message ReqReplyStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IReqReplyStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ReqReplyStatisticsItem message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ReqReplyStatisticsItem
* @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): GetDelayStatistics.ReqReplyStatisticsItem;
/**
* Decodes a ReqReplyStatisticsItem message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ReqReplyStatisticsItem
* @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)): GetDelayStatistics.ReqReplyStatisticsItem;
/**
* Verifies a ReqReplyStatisticsItem 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 ReqReplyStatisticsItem message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ReqReplyStatisticsItem
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.ReqReplyStatisticsItem;
/**
* Creates a plain object from a ReqReplyStatisticsItem message. Also converts values to other types if specified.
* @param message ReqReplyStatisticsItem
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.ReqReplyStatisticsItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ReqReplyStatisticsItem to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ReqReplyStatisticsItem
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PlaceOrderStatisticsItem. */
interface IPlaceOrderStatisticsItem {
/** PlaceOrderStatisticsItem orderID */
orderID: string;
/** PlaceOrderStatisticsItem totalCost */
totalCost: number;
/** PlaceOrderStatisticsItem openDCost */
openDCost: number;
/** PlaceOrderStatisticsItem netDelay */
netDelay: number;
/** PlaceOrderStatisticsItem updateCost */
updateCost: number;
}
/** Represents a PlaceOrderStatisticsItem. */
class PlaceOrderStatisticsItem implements IPlaceOrderStatisticsItem {
/**
* Constructs a new PlaceOrderStatisticsItem.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IPlaceOrderStatisticsItem);
/** PlaceOrderStatisticsItem orderID. */
public orderID: string;
/** PlaceOrderStatisticsItem totalCost. */
public totalCost: number;
/** PlaceOrderStatisticsItem openDCost. */
public openDCost: number;
/** PlaceOrderStatisticsItem netDelay. */
public netDelay: number;
/** PlaceOrderStatisticsItem updateCost. */
public updateCost: number;
/**
* Creates a new PlaceOrderStatisticsItem instance using the specified properties.
* @param [properties] Properties to set
* @returns PlaceOrderStatisticsItem instance
*/
public static create(properties?: GetDelayStatistics.IPlaceOrderStatisticsItem): GetDelayStatistics.PlaceOrderStatisticsItem;
/**
* Encodes the specified PlaceOrderStatisticsItem message. Does not implicitly {@link GetDelayStatistics.PlaceOrderStatisticsItem.verify|verify} messages.
* @param message PlaceOrderStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IPlaceOrderStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PlaceOrderStatisticsItem message, length delimited. Does not implicitly {@link GetDelayStatistics.PlaceOrderStatisticsItem.verify|verify} messages.
* @param message PlaceOrderStatisticsItem message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IPlaceOrderStatisticsItem, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PlaceOrderStatisticsItem message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PlaceOrderStatisticsItem
* @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): GetDelayStatistics.PlaceOrderStatisticsItem;
/**
* Decodes a PlaceOrderStatisticsItem message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PlaceOrderStatisticsItem
* @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)): GetDelayStatistics.PlaceOrderStatisticsItem;
/**
* Verifies a PlaceOrderStatisticsItem 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 PlaceOrderStatisticsItem message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PlaceOrderStatisticsItem
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.PlaceOrderStatisticsItem;
/**
* Creates a plain object from a PlaceOrderStatisticsItem message. Also converts values to other types if specified.
* @param message PlaceOrderStatisticsItem
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.PlaceOrderStatisticsItem, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PlaceOrderStatisticsItem to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PlaceOrderStatisticsItem
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a S2C. */
interface IS2C {
/** S2C qotPushStatisticsList */
qotPushStatisticsList?: (GetDelayStatistics.IDelayStatistics[]|null);
/** S2C reqReplyStatisticsList */
reqReplyStatisticsList?: (GetDelayStatistics.IReqReplyStatisticsItem[]|null);
/** S2C placeOrderStatisticsList */
placeOrderStatisticsList?: (GetDelayStatistics.IPlaceOrderStatisticsItem[]|null);
}
/** Represents a S2C. */
class S2C implements IS2C {
/**
* Constructs a new S2C.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IS2C);
/** S2C qotPushStatisticsList. */
public qotPushStatisticsList: GetDelayStatistics.IDelayStatistics[];
/** S2C reqReplyStatisticsList. */
public reqReplyStatisticsList: GetDelayStatistics.IReqReplyStatisticsItem[];
/** S2C placeOrderStatisticsList. */
public placeOrderStatisticsList: GetDelayStatistics.IPlaceOrderStatisticsItem[];
/**
* Creates a new S2C instance using the specified properties.
* @param [properties] Properties to set
* @returns S2C instance
*/
public static create(properties?: GetDelayStatistics.IS2C): GetDelayStatistics.S2C;
/**
* Encodes the specified S2C message. Does not implicitly {@link GetDelayStatistics.S2C.verify|verify} messages.
* @param message S2C message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IS2C, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified S2C message, length delimited. Does not implicitly {@link GetDelayStatistics.S2C.verify|verify} messages.
* @param message S2C message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IS2C, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a S2C message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns S2C
* @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): GetDelayStatistics.S2C;
/**
* Decodes a S2C message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns S2C
* @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)): GetDelayStatistics.S2C;
/**
* Verifies a S2C 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 S2C message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns S2C
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.S2C;
/**
* Creates a plain object from a S2C message. Also converts values to other types if specified.
* @param message S2C
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.S2C, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this S2C to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for S2C
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Request. */
interface IRequest {
/** Request c2s */
c2s: GetDelayStatistics.IC2S;
}
/** Represents a Request. */
class Request implements IRequest {
/**
* Constructs a new Request.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IRequest);
/** Request c2s. */
public c2s: GetDelayStatistics.IC2S;
/**
* Creates a new Request instance using the specified properties.
* @param [properties] Properties to set
* @returns Request instance
*/
public static create(properties?: GetDelayStatistics.IRequest): GetDelayStatistics.Request;
/**
* Encodes the specified Request message. Does not implicitly {@link GetDelayStatistics.Request.verify|verify} messages.
* @param message Request message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Request message, length delimited. Does not implicitly {@link GetDelayStatistics.Request.verify|verify} messages.
* @param message Request message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Request message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Request
* @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): GetDelayStatistics.Request;
/**
* Decodes a Request message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Request
* @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)): GetDelayStatistics.Request;
/**
* Verifies a Request 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 Request message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Request
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.Request;
/**
* Creates a plain object from a Request message. Also converts values to other types if specified.
* @param message Request
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.Request, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Request to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Request
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a Response. */
interface IResponse {
/** Response retType */
retType: number;
/** Response retMsg */
retMsg?: (string|null);
/** Response errCode */
errCode?: (number|null);
/** Response s2c */
s2c?: (GetDelayStatistics.IS2C|null);
}
/** Represents a Response. */
class Response implements IResponse {
/**
* Constructs a new Response.
* @param [properties] Properties to set
*/
constructor(properties?: GetDelayStatistics.IResponse);
/** Response retType. */
public retType: number;
/** Response retMsg. */
public retMsg: string;
/** Response errCode. */
public errCode: number;
/** Response s2c. */
public s2c?: (GetDelayStatistics.IS2C|null);
/**
* Creates a new Response instance using the specified properties.
* @param [properties] Properties to set
* @returns Response instance
*/
public static create(properties?: GetDelayStatistics.IResponse): GetDelayStatistics.Response;
/**
* Encodes the specified Response message. Does not implicitly {@link GetDelayStatistics.Response.verify|verify} messages.
* @param message Response message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetDelayStatistics.IResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Response message, length delimited. Does not implicitly {@link GetDelayStatistics.Response.verify|verify} messages.
* @param message Response message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetDelayStatistics.IResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Response message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Response
* @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): GetDelayStatistics.Response;
/**
* Decodes a Response message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Response
* @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)): GetDelayStatistics.Response;
/**
* Verifies a Response 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 Response message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Response
*/
public static fromObject(object: { [k: string]: any }): GetDelayStatistics.Response;
/**
* Creates a plain object from a Response message. Also converts values to other types if specified.
* @param message Response
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: GetDelayStatistics.Response, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Response to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Response
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
}
/** Namespace GetGlobalState. */
declare namespace GetGlobalState {
/** Properties of a C2S. */
interface IC2S {
/** C2S userID */
userID: (number|Long);
}
/** Represents a C2S. */
class C2S implements IC2S {
/**
* Constructs a new C2S.
* @param [properties] Properties to set
*/
constructor(properties?: GetGlobalState.IC2S);
/** C2S userID. */
public userID: (number|Long);
/**
* Creates a new C2S instance using the specified properties.
* @param [properties] Properties to set
* @returns C2S instance
*/
public static create(properties?: GetGlobalState.IC2S): GetGlobalState.C2S;
/**
* Encodes the specified C2S message. Does not implicitly {@link GetGlobalState.C2S.verify|verify} messages.
* @param message C2S message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: GetGlobalState.IC2S, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified C2S message, length delimited. Does not implicitly {@link GetGlobalState.C2S.verify|verify} messages.
* @param message C2S message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: GetGlobalState.IC2S, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a C2S message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns C2S
* @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): GetGlobalState.C2S;
/**
* Decodes a C2S message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns C2S
* @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)): GetGlobalState.C2S;
/**
* Verifies a C2S message.
* @param message Plain object to verify
* @returns `null` if vali