Skip to main content

Interface: IDeclaration

protobuf.ExtensionRangeOptions.IDeclaration

Properties of a Declaration.

Hierarchy​

Properties​

fullName​

• Optional fullName: null | string

The fully-qualified name of the extension field. There must be a leading dot in front of the full name.

Inherited from​

$Properties.fullName


number​

• Optional number: null | number

The extension number declared within the extension range.

Inherited from​

$Properties.number


repeated​

• Optional repeated: null | boolean

If true, indicates that the extension must be defined as repeated. Otherwise the extension must be defined as optional.

Inherited from​

$Properties.repeated


reserved​

• Optional reserved: null | boolean

If true, indicates that the number is reserved in the extension range, and any extension field with the number will fail to compile. Set this when a declared extension field is deleted.

Inherited from​

$Properties.reserved


type​

• Optional type: null | string

The fully-qualified type name of the extension field. Unlike Metadata.type, Declaration.type must have a leading dot for messages and enums.

Inherited from​

$Properties.type