Skip to main content

Class: FeatureSetDefaults

A compiled specification for the defaults of a set of features. These messages are generated from FeatureSet extensions and can be used to seed feature resolution. The resolution with this object becomes a simple search for the closest matching edition, followed by proto merges.

Properties​

defaults​

defaults: $Properties[]

FeatureSetDefaults defaults.


maximumEdition​

maximumEdition: Edition

The maximum known edition (inclusive) when this was constructed. Editions after this will not have reliable defaults.


minimumEdition​

minimumEdition: Edition

The minimum supported edition (inclusive) when this was constructed. Editions before this will not have defaults.

Methods​

toJSON()​

toJSON(): object

Converts this FeatureSetDefaults to JSON.

Returns​

object

JSON object


create()​

Call Signature​

static create(properties?): FeatureSetDefaults & $Properties

Creates a new FeatureSetDefaults instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

FeatureSetDefaults & $Properties

FeatureSetDefaults instance

Call Signature​

static create(properties?): FeatureSetDefaults

Creates a new FeatureSetDefaults instance using the specified properties.

Parameters​
properties?​

$Properties

Properties to set

Returns​

FeatureSetDefaults

FeatureSetDefaults instance


decode()​

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

Decodes a FeatureSetDefaults 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​

FeatureSetDefaults & $Properties

FeatureSetDefaults

Throws​

If the payload is not a reader or valid buffer

Throws​

If required fields are missing


decodeDelimited()​

static decodeDelimited(reader): FeatureSetDefaults & $Properties

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

Parameters​

reader​

Uint8Array<ArrayBufferLike> | Reader

Reader or buffer to decode from

Returns​

FeatureSetDefaults & $Properties

FeatureSetDefaults

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 FeatureSetDefaults message. Does not implicitly google.protobuf.FeatureSetDefaults.verify|verify messages.

Parameters​

message​

$Properties

FeatureSetDefaults message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


encodeDelimited()​

static encodeDelimited(message, writer?): Writer

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

Parameters​

message​

$Properties

FeatureSetDefaults message or plain object to encode

writer?​

Writer

Writer to encode to

Returns​

Writer

Writer


fromObject()​

static fromObject(object): FeatureSetDefaults

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

Parameters​

object​

{[k: string]: any; }

Plain object

Returns​

FeatureSetDefaults

FeatureSetDefaults


toObject()​

static toObject(message, options?): object

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

Parameters​

message​

FeatureSetDefaults

FeatureSetDefaults

options?​

IConversionOptions

Conversion options

Returns​

object

Plain object