Skip to main content

Class: ExtensionRangeOptions

google.protobuf.ExtensionRangeOptions

Represents an ExtensionRangeOptions.

Implements

Constructors

constructor

new ExtensionRangeOptions(properties?): ExtensionRangeOptions

Constructs a new ExtensionRangeOptions.

Parameters

NameTypeDescription
properties?IExtensionRangeOptionsProperties to set

Returns

ExtensionRangeOptions

Properties

declaration

declaration: IDeclaration[]

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.

Implementation of

IExtensionRangeOptions.declaration


features

Optional features: null | IFeatureSet

Any features defined in the specific edition.

Implementation of

IExtensionRangeOptions.features


uninterpretedOption

uninterpretedOption: IUninterpretedOption[]

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

Implementation of

IExtensionRangeOptions.uninterpretedOption


verification

verification: VerificationState

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

Implementation of

IExtensionRangeOptions.verification

Methods

toJSON

toJSON(): Object

Converts this ExtensionRangeOptions to JSON.

Returns

Object

JSON object


create

create(properties?): ExtensionRangeOptions

Creates a new ExtensionRangeOptions instance using the specified properties.

Parameters

NameTypeDescription
properties?IExtensionRangeOptionsProperties to set

Returns

ExtensionRangeOptions

ExtensionRangeOptions instance


decode

decode(reader, length?): ExtensionRangeOptions

Decodes an ExtensionRangeOptions message from the specified reader or buffer.

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns

ExtensionRangeOptions

ExtensionRangeOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): ExtensionRangeOptions

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

ExtensionRangeOptions

ExtensionRangeOptions

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode

encode(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIExtensionRangeOptionsExtensionRangeOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

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

Parameters

NameTypeDescription
messageIExtensionRangeOptionsExtensionRangeOptions message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): ExtensionRangeOptions

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

ExtensionRangeOptions

ExtensionRangeOptions


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for ExtensionRangeOptions

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


toObject

toObject(message, options?): Object

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

Parameters

NameTypeDescription
messageExtensionRangeOptionsExtensionRangeOptions
options?IConversionOptionsConversion options

Returns

Object

Plain object