Declaration

interface Declaration(source)

Properties

Link copied to clipboard
abstract val fullName: String

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

Link copied to clipboard

Returns the value of the fullName field if present, otherwise null.

Link copied to clipboard
abstract val number: Int

The extension number declared within the extension range.

Link copied to clipboard

Returns the value of the number field if present, otherwise null.

Link copied to clipboard
Link copied to clipboard
abstract val repeated: Boolean

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

Link copied to clipboard

Returns the value of the repeated field if present, otherwise null.

Link copied to clipboard
abstract val reserved: 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.

Link copied to clipboard

Returns the value of the reserved field if present, otherwise null.

Link copied to clipboard
abstract val type: String

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

Link copied to clipboard

Returns the value of the type field if present, otherwise null.

Functions

Link copied to clipboard
fun ExtensionRangeOptions.Declaration.copy(body: ERROR CLASS: Symbol not found for ExtensionRangeOptions.Declaration.Builder.() -> Unit = {}): ExtensionRangeOptions.Declaration

Copies the original message, including unknown fields.