proto library Client - Class FeatureSetDefaults (v5.36.2)

Reference documentation and code samples for the proto library Client 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.

Generated from protobuf message google.protobuf.FeatureSetDefaults

Namespace

Google \ Protobuf \ Internal

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ defaults array<FeatureSetDefaults\FeatureSetEditionDefault>
↳ minimum_edition int

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

↳ maximum_edition int

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

getDefaults

Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;

Returns
Type Description
Google\Protobuf\RepeatedField<FeatureSetDefaults\FeatureSetEditionDefault>

setDefaults

Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;

Parameter
Name Description
var array<FeatureSetDefaults\FeatureSetEditionDefault>
Returns
Type Description
$this

getMinimumEdition

The minimum supported edition (inclusive) when this was constructed.

Editions before this will not have defaults.

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\Edition}

hasMinimumEdition

clearMinimumEdition

setMinimumEdition

The minimum supported edition (inclusive) when this was constructed.

Editions before this will not have defaults.

Parameter
Name Description
var int

one of the values in Edition

Returns
Type Description
$this

getMaximumEdition

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

Returns
Type Description
int one of the values in {@see \Google\Protobuf\Internal\Edition}

hasMaximumEdition

clearMaximumEdition

setMaximumEdition

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

Parameter
Name Description
var int

one of the values in Edition

Returns
Type Description
$this