ts-proto
Version:
> `ts-proto` transforms your `.proto` files into strongly-typed, idiomatic TypeScript files!
803 lines (728 loc) • 55.1 kB
TypeScript
import * as $protobuf from "protobufjs";
export namespace google {
namespace protobuf {
interface IFileDescriptorSet {
file?: (google.protobuf.FileDescriptorProto[]|null);
}
class FileDescriptorSet implements IFileDescriptorSet {
constructor(properties?: google.protobuf.IFileDescriptorSet);
public file: google.protobuf.FileDescriptorProto[];
public static create(properties?: google.protobuf.IFileDescriptorSet): google.protobuf.FileDescriptorSet;
public static encode(message: google.protobuf.FileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.FileDescriptorSet, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorSet;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorSet;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorSet;
public static toObject(message: google.protobuf.FileDescriptorSet, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IFileDescriptorProto {
name?: (string|null);
"package"?: (string|null);
dependency?: (string[]|null);
publicDependency?: (number[]|null);
weakDependency?: (number[]|null);
messageType?: (google.protobuf.DescriptorProto[]|null);
enumType?: (google.protobuf.EnumDescriptorProto[]|null);
service?: (google.protobuf.ServiceDescriptorProto[]|null);
extension?: (google.protobuf.FieldDescriptorProto[]|null);
options?: (google.protobuf.FileOptions|null);
sourceCodeInfo?: (google.protobuf.SourceCodeInfo|null);
syntax?: (string|null);
}
class FileDescriptorProto implements IFileDescriptorProto {
constructor(properties?: google.protobuf.IFileDescriptorProto);
public name: string;
public package: string;
public dependency: string[];
public publicDependency: number[];
public weakDependency: number[];
public messageType: google.protobuf.DescriptorProto[];
public enumType: google.protobuf.EnumDescriptorProto[];
public service: google.protobuf.ServiceDescriptorProto[];
public extension: google.protobuf.FieldDescriptorProto[];
public options?: (google.protobuf.FileOptions|null);
public sourceCodeInfo?: (google.protobuf.SourceCodeInfo|null);
public syntax: string;
public static create(properties?: google.protobuf.IFileDescriptorProto): google.protobuf.FileDescriptorProto;
public static encode(message: google.protobuf.FileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.FileDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.FileDescriptorProto;
public static toObject(message: google.protobuf.FileDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IDescriptorProto {
name?: (string|null);
field?: (google.protobuf.FieldDescriptorProto[]|null);
extension?: (google.protobuf.FieldDescriptorProto[]|null);
nestedType?: (google.protobuf.DescriptorProto[]|null);
enumType?: (google.protobuf.EnumDescriptorProto[]|null);
extensionRange?: (google.protobuf.DescriptorProto.ExtensionRange[]|null);
oneofDecl?: (google.protobuf.OneofDescriptorProto[]|null);
options?: (google.protobuf.MessageOptions|null);
reservedRange?: (google.protobuf.DescriptorProto.ReservedRange[]|null);
reservedName?: (string[]|null);
}
class DescriptorProto implements IDescriptorProto {
constructor(properties?: google.protobuf.IDescriptorProto);
public name: string;
public field: google.protobuf.FieldDescriptorProto[];
public extension: google.protobuf.FieldDescriptorProto[];
public nestedType: google.protobuf.DescriptorProto[];
public enumType: google.protobuf.EnumDescriptorProto[];
public extensionRange: google.protobuf.DescriptorProto.ExtensionRange[];
public oneofDecl: google.protobuf.OneofDescriptorProto[];
public options?: (google.protobuf.MessageOptions|null);
public reservedRange: google.protobuf.DescriptorProto.ReservedRange[];
public reservedName: string[];
public static create(properties?: google.protobuf.IDescriptorProto): google.protobuf.DescriptorProto;
public static encode(message: google.protobuf.DescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.DescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto;
public static toObject(message: google.protobuf.DescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace DescriptorProto {
interface IExtensionRange {
start?: (number|null);
end?: (number|null);
options?: (google.protobuf.ExtensionRangeOptions|null);
}
class ExtensionRange implements IExtensionRange {
constructor(properties?: google.protobuf.DescriptorProto.IExtensionRange);
public start: number;
public end: number;
public options?: (google.protobuf.ExtensionRangeOptions|null);
public static create(properties?: google.protobuf.DescriptorProto.IExtensionRange): google.protobuf.DescriptorProto.ExtensionRange;
public static encode(message: google.protobuf.DescriptorProto.ExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.DescriptorProto.ExtensionRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ExtensionRange;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ExtensionRange;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ExtensionRange;
public static toObject(message: google.protobuf.DescriptorProto.ExtensionRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IReservedRange {
start?: (number|null);
end?: (number|null);
}
class ReservedRange implements IReservedRange {
constructor(properties?: google.protobuf.DescriptorProto.IReservedRange);
public start: number;
public end: number;
public static create(properties?: google.protobuf.DescriptorProto.IReservedRange): google.protobuf.DescriptorProto.ReservedRange;
public static encode(message: google.protobuf.DescriptorProto.ReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.DescriptorProto.ReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.DescriptorProto.ReservedRange;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.DescriptorProto.ReservedRange;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.DescriptorProto.ReservedRange;
public static toObject(message: google.protobuf.DescriptorProto.ReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
}
interface IExtensionRangeOptions {
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class ExtensionRangeOptions implements IExtensionRangeOptions {
constructor(properties?: google.protobuf.IExtensionRangeOptions);
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IExtensionRangeOptions): google.protobuf.ExtensionRangeOptions;
public static encode(message: google.protobuf.ExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.ExtensionRangeOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ExtensionRangeOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ExtensionRangeOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.ExtensionRangeOptions;
public static toObject(message: google.protobuf.ExtensionRangeOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IFieldDescriptorProto {
name?: (string|null);
number?: (number|null);
label?: (google.protobuf.FieldDescriptorProto.Label|null);
type?: (google.protobuf.FieldDescriptorProto.Type|null);
typeName?: (string|null);
extendee?: (string|null);
defaultValue?: (string|null);
oneofIndex?: (number|null);
jsonName?: (string|null);
options?: (google.protobuf.FieldOptions|null);
proto3Optional?: (boolean|null);
}
class FieldDescriptorProto implements IFieldDescriptorProto {
constructor(properties?: google.protobuf.IFieldDescriptorProto);
public name: string;
public number: number;
public label: google.protobuf.FieldDescriptorProto.Label;
public type: google.protobuf.FieldDescriptorProto.Type;
public typeName: string;
public extendee: string;
public defaultValue: string;
public oneofIndex: number;
public jsonName: string;
public options?: (google.protobuf.FieldOptions|null);
public proto3Optional: boolean;
public static create(properties?: google.protobuf.IFieldDescriptorProto): google.protobuf.FieldDescriptorProto;
public static encode(message: google.protobuf.FieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.FieldDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.FieldDescriptorProto;
public static toObject(message: google.protobuf.FieldDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace FieldDescriptorProto {
enum Type {
TYPE_DOUBLE = 1,
TYPE_FLOAT = 2,
TYPE_INT64 = 3,
TYPE_UINT64 = 4,
TYPE_INT32 = 5,
TYPE_FIXED64 = 6,
TYPE_FIXED32 = 7,
TYPE_BOOL = 8,
TYPE_STRING = 9,
TYPE_GROUP = 10,
TYPE_MESSAGE = 11,
TYPE_BYTES = 12,
TYPE_UINT32 = 13,
TYPE_ENUM = 14,
TYPE_SFIXED32 = 15,
TYPE_SFIXED64 = 16,
TYPE_SINT32 = 17,
TYPE_SINT64 = 18
}
enum Label {
LABEL_OPTIONAL = 1,
LABEL_REQUIRED = 2,
LABEL_REPEATED = 3
}
}
interface IOneofDescriptorProto {
name?: (string|null);
options?: (google.protobuf.OneofOptions|null);
}
class OneofDescriptorProto implements IOneofDescriptorProto {
constructor(properties?: google.protobuf.IOneofDescriptorProto);
public name: string;
public options?: (google.protobuf.OneofOptions|null);
public static create(properties?: google.protobuf.IOneofDescriptorProto): google.protobuf.OneofDescriptorProto;
public static encode(message: google.protobuf.OneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.OneofDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.OneofDescriptorProto;
public static toObject(message: google.protobuf.OneofDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IEnumDescriptorProto {
name?: (string|null);
value?: (google.protobuf.EnumValueDescriptorProto[]|null);
options?: (google.protobuf.EnumOptions|null);
reservedRange?: (google.protobuf.EnumDescriptorProto.EnumReservedRange[]|null);
reservedName?: (string[]|null);
}
class EnumDescriptorProto implements IEnumDescriptorProto {
constructor(properties?: google.protobuf.IEnumDescriptorProto);
public name: string;
public value: google.protobuf.EnumValueDescriptorProto[];
public options?: (google.protobuf.EnumOptions|null);
public reservedRange: google.protobuf.EnumDescriptorProto.EnumReservedRange[];
public reservedName: string[];
public static create(properties?: google.protobuf.IEnumDescriptorProto): google.protobuf.EnumDescriptorProto;
public static encode(message: google.protobuf.EnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.EnumDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto;
public static toObject(message: google.protobuf.EnumDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace EnumDescriptorProto {
interface IEnumReservedRange {
start?: (number|null);
end?: (number|null);
}
class EnumReservedRange implements IEnumReservedRange {
constructor(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange);
public start: number;
public end: number;
public static create(properties?: google.protobuf.EnumDescriptorProto.IEnumReservedRange): google.protobuf.EnumDescriptorProto.EnumReservedRange;
public static encode(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumDescriptorProto.EnumReservedRange;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumDescriptorProto.EnumReservedRange;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.EnumDescriptorProto.EnumReservedRange;
public static toObject(message: google.protobuf.EnumDescriptorProto.EnumReservedRange, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
}
interface IEnumValueDescriptorProto {
name?: (string|null);
number?: (number|null);
options?: (google.protobuf.EnumValueOptions|null);
}
class EnumValueDescriptorProto implements IEnumValueDescriptorProto {
constructor(properties?: google.protobuf.IEnumValueDescriptorProto);
public name: string;
public number: number;
public options?: (google.protobuf.EnumValueOptions|null);
public static create(properties?: google.protobuf.IEnumValueDescriptorProto): google.protobuf.EnumValueDescriptorProto;
public static encode(message: google.protobuf.EnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.EnumValueDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueDescriptorProto;
public static toObject(message: google.protobuf.EnumValueDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IServiceDescriptorProto {
name?: (string|null);
method?: (google.protobuf.MethodDescriptorProto[]|null);
options?: (google.protobuf.ServiceOptions|null);
}
class ServiceDescriptorProto implements IServiceDescriptorProto {
constructor(properties?: google.protobuf.IServiceDescriptorProto);
public name: string;
public method: google.protobuf.MethodDescriptorProto[];
public options?: (google.protobuf.ServiceOptions|null);
public static create(properties?: google.protobuf.IServiceDescriptorProto): google.protobuf.ServiceDescriptorProto;
public static encode(message: google.protobuf.ServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.ServiceDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceDescriptorProto;
public static toObject(message: google.protobuf.ServiceDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IMethodDescriptorProto {
name?: (string|null);
inputType?: (string|null);
outputType?: (string|null);
options?: (google.protobuf.MethodOptions|null);
clientStreaming?: (boolean|null);
serverStreaming?: (boolean|null);
}
class MethodDescriptorProto implements IMethodDescriptorProto {
constructor(properties?: google.protobuf.IMethodDescriptorProto);
public name: string;
public inputType: string;
public outputType: string;
public options?: (google.protobuf.MethodOptions|null);
public clientStreaming: boolean;
public serverStreaming: boolean;
public static create(properties?: google.protobuf.IMethodDescriptorProto): google.protobuf.MethodDescriptorProto;
public static encode(message: google.protobuf.MethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.MethodDescriptorProto, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodDescriptorProto;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodDescriptorProto;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.MethodDescriptorProto;
public static toObject(message: google.protobuf.MethodDescriptorProto, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IFileOptions {
javaPackage?: (string|null);
javaOuterClassname?: (string|null);
javaMultipleFiles?: (boolean|null);
javaGenerateEqualsAndHash?: (boolean|null);
javaStringCheckUtf8?: (boolean|null);
optimizeFor?: (google.protobuf.FileOptions.OptimizeMode|null);
goPackage?: (string|null);
ccGenericServices?: (boolean|null);
javaGenericServices?: (boolean|null);
pyGenericServices?: (boolean|null);
phpGenericServices?: (boolean|null);
deprecated?: (boolean|null);
ccEnableArenas?: (boolean|null);
objcClassPrefix?: (string|null);
csharpNamespace?: (string|null);
swiftPrefix?: (string|null);
phpClassPrefix?: (string|null);
phpNamespace?: (string|null);
phpMetadataNamespace?: (string|null);
rubyPackage?: (string|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class FileOptions implements IFileOptions {
constructor(properties?: google.protobuf.IFileOptions);
public javaPackage: string;
public javaOuterClassname: string;
public javaMultipleFiles: boolean;
public javaGenerateEqualsAndHash: boolean;
public javaStringCheckUtf8: boolean;
public optimizeFor: google.protobuf.FileOptions.OptimizeMode;
public goPackage: string;
public ccGenericServices: boolean;
public javaGenericServices: boolean;
public pyGenericServices: boolean;
public phpGenericServices: boolean;
public deprecated: boolean;
public ccEnableArenas: boolean;
public objcClassPrefix: string;
public csharpNamespace: string;
public swiftPrefix: string;
public phpClassPrefix: string;
public phpNamespace: string;
public phpMetadataNamespace: string;
public rubyPackage: string;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IFileOptions): google.protobuf.FileOptions;
public static encode(message: google.protobuf.FileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.FileOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FileOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FileOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.FileOptions;
public static toObject(message: google.protobuf.FileOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace FileOptions {
enum OptimizeMode {
SPEED = 1,
CODE_SIZE = 2,
LITE_RUNTIME = 3
}
}
interface IMessageOptions {
messageSetWireFormat?: (boolean|null);
noStandardDescriptorAccessor?: (boolean|null);
deprecated?: (boolean|null);
mapEntry?: (boolean|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class MessageOptions implements IMessageOptions {
constructor(properties?: google.protobuf.IMessageOptions);
public messageSetWireFormat: boolean;
public noStandardDescriptorAccessor: boolean;
public deprecated: boolean;
public mapEntry: boolean;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IMessageOptions): google.protobuf.MessageOptions;
public static encode(message: google.protobuf.MessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.MessageOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MessageOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MessageOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.MessageOptions;
public static toObject(message: google.protobuf.MessageOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IFieldOptions {
ctype?: (google.protobuf.FieldOptions.CType|null);
packed?: (boolean|null);
jstype?: (google.protobuf.FieldOptions.JSType|null);
lazy?: (boolean|null);
deprecated?: (boolean|null);
weak?: (boolean|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class FieldOptions implements IFieldOptions {
constructor(properties?: google.protobuf.IFieldOptions);
public ctype: google.protobuf.FieldOptions.CType;
public packed: boolean;
public jstype: google.protobuf.FieldOptions.JSType;
public lazy: boolean;
public deprecated: boolean;
public weak: boolean;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IFieldOptions): google.protobuf.FieldOptions;
public static encode(message: google.protobuf.FieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.FieldOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.FieldOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.FieldOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.FieldOptions;
public static toObject(message: google.protobuf.FieldOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace FieldOptions {
enum CType {
STRING = 0,
CORD = 1,
STRING_PIECE = 2
}
enum JSType {
JS_NORMAL = 0,
JS_STRING = 1,
JS_NUMBER = 2
}
}
interface IOneofOptions {
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class OneofOptions implements IOneofOptions {
constructor(properties?: google.protobuf.IOneofOptions);
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IOneofOptions): google.protobuf.OneofOptions;
public static encode(message: google.protobuf.OneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.OneofOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.OneofOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.OneofOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.OneofOptions;
public static toObject(message: google.protobuf.OneofOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IEnumOptions {
allowAlias?: (boolean|null);
deprecated?: (boolean|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class EnumOptions implements IEnumOptions {
constructor(properties?: google.protobuf.IEnumOptions);
public allowAlias: boolean;
public deprecated: boolean;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IEnumOptions): google.protobuf.EnumOptions;
public static encode(message: google.protobuf.EnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.EnumOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.EnumOptions;
public static toObject(message: google.protobuf.EnumOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IEnumValueOptions {
deprecated?: (boolean|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class EnumValueOptions implements IEnumValueOptions {
constructor(properties?: google.protobuf.IEnumValueOptions);
public deprecated: boolean;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IEnumValueOptions): google.protobuf.EnumValueOptions;
public static encode(message: google.protobuf.EnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.EnumValueOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.EnumValueOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.EnumValueOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.EnumValueOptions;
public static toObject(message: google.protobuf.EnumValueOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IServiceOptions {
deprecated?: (boolean|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class ServiceOptions implements IServiceOptions {
constructor(properties?: google.protobuf.IServiceOptions);
public deprecated: boolean;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IServiceOptions): google.protobuf.ServiceOptions;
public static encode(message: google.protobuf.ServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.ServiceOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.ServiceOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.ServiceOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.ServiceOptions;
public static toObject(message: google.protobuf.ServiceOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface IMethodOptions {
deprecated?: (boolean|null);
idempotencyLevel?: (google.protobuf.MethodOptions.IdempotencyLevel|null);
uninterpretedOption?: (google.protobuf.UninterpretedOption[]|null);
}
class MethodOptions implements IMethodOptions {
constructor(properties?: google.protobuf.IMethodOptions);
public deprecated: boolean;
public idempotencyLevel: google.protobuf.MethodOptions.IdempotencyLevel;
public uninterpretedOption: google.protobuf.UninterpretedOption[];
public static create(properties?: google.protobuf.IMethodOptions): google.protobuf.MethodOptions;
public static encode(message: google.protobuf.MethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.MethodOptions, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.MethodOptions;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.MethodOptions;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.MethodOptions;
public static toObject(message: google.protobuf.MethodOptions, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace MethodOptions {
enum IdempotencyLevel {
IDEMPOTENCY_UNKNOWN = 0,
NO_SIDE_EFFECTS = 1,
IDEMPOTENT = 2
}
}
interface IUninterpretedOption {
name?: (google.protobuf.UninterpretedOption.NamePart[]|null);
identifierValue?: (string|null);
positiveIntValue?: (number|Long|null);
negativeIntValue?: (number|Long|null);
doubleValue?: (number|null);
stringValue?: (Uint8Array|null);
aggregateValue?: (string|null);
}
class UninterpretedOption implements IUninterpretedOption {
constructor(properties?: google.protobuf.IUninterpretedOption);
public name: google.protobuf.UninterpretedOption.NamePart[];
public identifierValue: string;
public positiveIntValue: (number|Long);
public negativeIntValue: (number|Long);
public doubleValue: number;
public stringValue: Uint8Array;
public aggregateValue: string;
public static create(properties?: google.protobuf.IUninterpretedOption): google.protobuf.UninterpretedOption;
public static encode(message: google.protobuf.UninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.UninterpretedOption, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption;
public static toObject(message: google.protobuf.UninterpretedOption, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace UninterpretedOption {
interface INamePart {
namePart: string;
isExtension: boolean;
}
class NamePart implements INamePart {
constructor(properties?: google.protobuf.UninterpretedOption.INamePart);
public namePart: string;
public isExtension: boolean;
public static create(properties?: google.protobuf.UninterpretedOption.INamePart): google.protobuf.UninterpretedOption.NamePart;
public static encode(message: google.protobuf.UninterpretedOption.NamePart, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.UninterpretedOption.NamePart, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.UninterpretedOption.NamePart;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.UninterpretedOption.NamePart;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.UninterpretedOption.NamePart;
public static toObject(message: google.protobuf.UninterpretedOption.NamePart, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
}
interface ISourceCodeInfo {
location?: (google.protobuf.SourceCodeInfo.Location[]|null);
}
class SourceCodeInfo implements ISourceCodeInfo {
constructor(properties?: google.protobuf.ISourceCodeInfo);
public location: google.protobuf.SourceCodeInfo.Location[];
public static create(properties?: google.protobuf.ISourceCodeInfo): google.protobuf.SourceCodeInfo;
public static encode(message: google.protobuf.SourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.SourceCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo;
public static toObject(message: google.protobuf.SourceCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace SourceCodeInfo {
interface ILocation {
path?: (number[]|null);
span?: (number[]|null);
leadingComments?: (string|null);
trailingComments?: (string|null);
leadingDetachedComments?: (string[]|null);
}
class Location implements ILocation {
constructor(properties?: google.protobuf.SourceCodeInfo.ILocation);
public path: number[];
public span: number[];
public leadingComments: string;
public trailingComments: string;
public leadingDetachedComments: string[];
public static create(properties?: google.protobuf.SourceCodeInfo.ILocation): google.protobuf.SourceCodeInfo.Location;
public static encode(message: google.protobuf.SourceCodeInfo.Location, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.SourceCodeInfo.Location, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.SourceCodeInfo.Location;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.SourceCodeInfo.Location;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.SourceCodeInfo.Location;
public static toObject(message: google.protobuf.SourceCodeInfo.Location, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
}
interface IGeneratedCodeInfo {
annotation?: (google.protobuf.GeneratedCodeInfo.Annotation[]|null);
}
class GeneratedCodeInfo implements IGeneratedCodeInfo {
constructor(properties?: google.protobuf.IGeneratedCodeInfo);
public annotation: google.protobuf.GeneratedCodeInfo.Annotation[];
public static create(properties?: google.protobuf.IGeneratedCodeInfo): google.protobuf.GeneratedCodeInfo;
public static encode(message: google.protobuf.GeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo;
public static toObject(message: google.protobuf.GeneratedCodeInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
namespace GeneratedCodeInfo {
interface IAnnotation {
path?: (number[]|null);
sourceFile?: (string|null);
begin?: (number|null);
end?: (number|null);
}
class Annotation implements IAnnotation {
constructor(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation);
public path: number[];
public sourceFile: string;
public begin: number;
public end: number;
public static create(properties?: google.protobuf.GeneratedCodeInfo.IAnnotation): google.protobuf.GeneratedCodeInfo.Annotation;
public static encode(message: google.protobuf.GeneratedCodeInfo.Annotation, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.GeneratedCodeInfo.Annotation, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.GeneratedCodeInfo.Annotation;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.GeneratedCodeInfo.Annotation;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.GeneratedCodeInfo.Annotation;
public static toObject(message: google.protobuf.GeneratedCodeInfo.Annotation, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
}
namespace compiler {
interface IVersion {
major?: (number|null);
minor?: (number|null);
patch?: (number|null);
suffix?: (string|null);
}
class Version implements IVersion {
constructor(properties?: google.protobuf.compiler.IVersion);
public major: number;
public minor: number;
public patch: number;
public suffix: string;
public static create(properties?: google.protobuf.compiler.IVersion): google.protobuf.compiler.Version;
public static encode(message: google.protobuf.compiler.Version, writer?: $protobuf.Writer): $protobuf.Writer;
public static encodeDelimited(message: google.protobuf.compiler.Version, writer?: $protobuf.Writer): $protobuf.Writer;
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.protobuf.compiler.Version;
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.protobuf.compiler.Version;
public static verify(message: { [k: string]: any }): (string|null);
public static fromObject(object: { [k: string]: any }): google.protobuf.compiler.Version;
public static toObject(message: google.protobuf.compiler.Version, options?: $protobuf.IConversionOptions): { [k: string]: any };
public toJSON(): { [k: string]: any };
}
interface ICodeGeneratorRequest {
fileToGenerate?: (string[]|null);
parameter?: (string|null);
protoFile?: (google.protobuf.FileDescriptorProto[]|null);
compilerVersion?: (google.protobuf.compiler.Version|null);
}
class CodeGeneratorRequest implements ICodeGeneratorRequest {
constructor(properties?: google.protobuf.compiler.ICodeGeneratorRequest);
public fileToGenerate: string[];
public parameter: string;
public protoFile: google.