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.

Implements

Constructors

constructor

new FeatureSetDefaults(properties?): FeatureSetDefaults

Constructs a new FeatureSetDefaults.

Parameters

NameTypeDescription
properties?IFeatureSetDefaultsProperties to set

Returns

FeatureSetDefaults

Properties

defaults

defaults: IFeatureSetEditionDefault[]

FeatureSetDefaults defaults.

Implementation of

IFeatureSetDefaults.defaults


maximumEdition

maximumEdition: Edition

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

Implementation of

IFeatureSetDefaults.maximumEdition


minimumEdition

minimumEdition: Edition

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

Implementation of

IFeatureSetDefaults.minimumEdition

Methods

toJSON

toJSON(): Object

Converts this FeatureSetDefaults to JSON.

Returns

Object

JSON object


create

create(properties?): FeatureSetDefaults

Creates a new FeatureSetDefaults instance using the specified properties.

Parameters

NameTypeDescription
properties?IFeatureSetDefaultsProperties to set

Returns

FeatureSetDefaults

FeatureSetDefaults instance


decode

decode(reader, length?): FeatureSetDefaults

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

FeatureSetDefaults

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): FeatureSetDefaults

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

FeatureSetDefaults

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
messageIFeatureSetDefaultsFeatureSetDefaults 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
messageIFeatureSetDefaultsFeatureSetDefaults 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for FeatureSetDefaults

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 a FeatureSetDefaults message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageFeatureSetDefaultsFeatureSetDefaults
options?IConversionOptionsConversion options

Returns

Object

Plain object