Skip to main content

Class: ExtensionRangeOptions

Represents an ExtensionRangeOptions.

Properties​

declaration​

declaration: $Properties[]

For external users: DO NOT USE. We are in the process of open sourcing extension declaration and executing internal cleanups before it can be used externally.


features?​

optional features?: $Properties | null

Any features defined in the specific edition.


uninterpretedOption​

uninterpretedOption: $Properties[]

The parser stores options it doesn't recognize here. See above.


verification​

verification: VerificationState

The verification state of the range. TODO: flip the default to DECLARATION once all empty ranges are marked as UNVERIFIED.

Methods​

toJSON()​

toJSON(): object

Converts this ExtensionRangeOptions to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): ExtensionRangeOptions & $Properties

Creates a new ExtensionRangeOptions instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ExtensionRangeOptions & $Properties

ExtensionRangeOptions instance

Call Signature​

static create(properties?): ExtensionRangeOptions

Creates a new ExtensionRangeOptions instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

ExtensionRangeOptions

ExtensionRangeOptions instance


decode()​

static decode(reader, length?): ExtensionRangeOptions & $Properties

Decodes an ExtensionRangeOptions message from the specified reader or buffer.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

length?​

number

Message length if known beforehand

Returns​

ExtensionRangeOptions & $Properties

ExtensionRangeOptions

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): ExtensionRangeOptions & $Properties

Decodes an ExtensionRangeOptions message from the specified reader or buffer, length delimited.

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

ExtensionRangeOptions & $Properties

ExtensionRangeOptions

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


encode()​

static encode(message, writer?): Writer

Encodes the specified ExtensionRangeOptions message. Does not implicitly google.protobuf.ExtensionRangeOptions.verify|verify messages.

Parameters​

message​

$Properties

ExtensionRangeOptions message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

Encodes the specified ExtensionRangeOptions message, length delimited. Does not implicitly google.protobuf.ExtensionRangeOptions.verify|verify messages.

Parameters​

message​

$Properties

ExtensionRangeOptions message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): ExtensionRangeOptions

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

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

ExtensionRangeOptions

ExtensionRangeOptions


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

ExtensionRangeOptions

ExtensionRangeOptions

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object