Skip to content

FileDescription

FileDescription holds a map of all types and enum values declared within a proto file.

new FileDescription(nameValue, descValue, typesValue, enumsValue): FileDescription

string

DescFile

Map<string, TypeDescription>

Map<string, EnumValueDescription>

FileDescription

copy(extensions): FileDescription

Copy creates a copy of the FileDescription with updated Db references within its types.

extensionMap

FileDescription


fileDescriptor(): DescFile

FileDescriptor returns the proto file descriptor associated with the file representation.

DescFile


getEnumDescription(enumName): [EnumValueDescription | undefined, boolean]

GetEnumDescription returns an EnumDescription for a qualified enum value name declared within the file.

string

[EnumValueDescription | undefined, boolean]


getEnumNames(): string[]

GetEnumNames returns the string names of all enum values in the file.

string[]


getName(): string

GetName returns the fully qualified file path for the file.

string


getTypeDescription(typeName): [TypeDescription | undefined, boolean]

GetTypeDescription returns a TypeDescription for a qualified protobuf message type name declared within the file.

string

[TypeDescription | undefined, boolean]


getTypeNames(): string[]

GetTypeNames returns the list of all type names contained within the file.

string[]