Skip to main content

Class: FeatureSetDefaults

google.protobuf.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​

▸ create(properties?): FeatureSetDefaults & $Properties

Creates a new FeatureSetDefaults instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

FeatureSetDefaults & $Properties

FeatureSetDefaults instance

▸ create(properties?): FeatureSetDefaults

Parameters​

NameType
properties?$Properties

Returns​

FeatureSetDefaults


decode​

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

Decodes a FeatureSetDefaults message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage 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​

▸ decodeDelimited(reader): FeatureSetDefaults & $Properties

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

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader 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​

▸ encode(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesFeatureSetDefaults message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

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

Parameters​

NameTypeDescription
message$PropertiesFeatureSetDefaults message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): FeatureSetDefaults

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

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

FeatureSetDefaults

FeatureSetDefaults


toObject​

▸ toObject(message, options?): Object

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

Parameters​

NameTypeDescription
messageFeatureSetDefaultsFeatureSetDefaults
options?IConversionOptionsConversion options

Returns​

Object

Plain object