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
Name | Type | Description |
---|---|---|
properties? | IFeatureSetDefaults | Properties to set |
Returns
Properties
defaults
• defaults: IFeatureSetEditionDefault
[]
FeatureSetDefaults defaults.
Implementation of
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
Name | Type | Description |
---|---|---|
properties? | IFeatureSetDefaults | Properties to set |
Returns
FeatureSetDefaults instance
decode
▸ decode(reader
, length?
): FeatureSetDefaults
Decodes a FeatureSetDefaults message from the specified reader or buffer.
Parameters
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
length? | number | Message length if known beforehand |
Returns
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
Name | Type | Description |
---|---|---|
reader | Uint8Array | Reader | Reader or buffer to decode from |
Returns
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
Name | Type | Description |
---|---|---|
message | IFeatureSetDefaults | FeatureSetDefaults message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
message | IFeatureSetDefaults | FeatureSetDefaults message or plain object to encode |
writer? | Writer | Writer 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
Name | Type | Description |
---|---|---|
object | Object | Plain object |
Returns
FeatureSetDefaults
getTypeUrl
▸ getTypeUrl(typeUrlPrefix?
): string
Gets the default type url for FeatureSetDefaults
Parameters
Name | Type | Description |
---|---|---|
typeUrlPrefix? | string | your 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
Name | Type | Description |
---|---|---|
message | FeatureSetDefaults | FeatureSetDefaults |
options? | IConversionOptions | Conversion options |
Returns
Object
Plain object