protobuf.js/tests/data/comments.d.ts
Kairlec 8aad1dd994
feat: allow message.getTypeUrl provide custom typeUrlPrefix (#1762)
* feat: allow message.getTypeUrl provide custom tyepUrlPrefix

* Update static.js

* test: added tests, regenerated test files

Co-authored-by: Alexander Fenster <fenster@google.com>
2022-07-07 14:10:58 -07:00

49 lines
2.0 KiB
TypeScript

import * as $protobuf from "../..";
export interface ITest1 {
field1?: (string|null);
field2?: (number|null);
field3?: (boolean|null);
}
export class Test1 implements ITest1 {
constructor(properties?: ITest1);
public field1: string;
public field2: number;
public field3: boolean;
public static create(properties?: ITest1): Test1;
public static encode(message: ITest1, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: ITest1, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Test1;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Test1;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): Test1;
public static toObject(message: Test1, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
public static getTypeUrl(typeUrlPrefix?: string): string;
}
export interface ITest2 {
}
export class Test2 implements ITest2 {
constructor(properties?: ITest2);
public static create(properties?: ITest2): Test2;
public static encode(message: ITest2, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: ITest2, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): Test2;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): Test2;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): Test2;
public static toObject(message: Test2, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
public static getTypeUrl(typeUrlPrefix?: string): string;
}
export enum Test3 {
ONE = 1,
TWO = 2,
THREE = 3,
FOUR = 4,
FIVE = 5
}