Skip to main content

Class: FileDescriptorSet

google.protobuf.FileDescriptorSet

Represents a FileDescriptorSet.

Implements#

Constructors#

constructor#

new FileDescriptorSet(properties?)

Constructs a new FileDescriptorSet.

Parameters#

NameType
properties?IFileDescriptorSet

Properties#

file#

file: IFileDescriptorProto[]

FileDescriptorSet file.

Implementation of#

IFileDescriptorSet.file

Methods#

toJSON#

toJSON(): Object

Converts this FileDescriptorSet to JSON.

Returns#

Object

JSON object


decode#

Static decode(reader, length?): FileDescriptorSet

Decodes a FileDescriptorSet message from the specified reader or buffer.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?number-

Returns#

FileDescriptorSet

FileDescriptorSet


decodeDelimited#

Static decodeDelimited(reader): FileDescriptorSet

Decodes a FileDescriptorSet message from the specified reader or buffer, length delimited.

throws {Error} If the payload is not a reader or valid buffer

throws {$protobuf.util.ProtocolError} If required fields are missing

Parameters#

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns#

FileDescriptorSet

FileDescriptorSet


encode#

Static encode(message, writer?): Writer

Encodes the specified FileDescriptorSet message. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.

Parameters#

NameTypeDescription
messageIFileDescriptorSetFileDescriptorSet message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


encodeDelimited#

Static encodeDelimited(message, writer?): Writer

Encodes the specified FileDescriptorSet message, length delimited. Does not implicitly {@link google.protobuf.FileDescriptorSet.verify|verify} messages.

Parameters#

NameTypeDescription
messageIFileDescriptorSetFileDescriptorSet message or plain object to encode
writer?Writer-

Returns#

Writer

Writer


fromObject#

Static fromObject(object): FileDescriptorSet

Creates a FileDescriptorSet message from a plain object. Also converts values to their respective internal types.

Parameters#

NameTypeDescription
objectObjectPlain object

Returns#

FileDescriptorSet

FileDescriptorSet


toObject#

Static toObject(message, options?): Object

Creates a plain object from a FileDescriptorSet message. Also converts values to other types if specified.

Parameters#

NameTypeDescription
messageFileDescriptorSetFileDescriptorSet
options?IConversionOptions-

Returns#

Object

Plain object