google.protobuf.FeatureSetDefaults
*/
class FeatureSetDefaults extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
*/
private $defaults;
/**
* The minimum supported edition (inclusive) when this was constructed.
* Editions before this will not have defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;
*/
protected $minimum_edition = null;
/**
* The maximum known edition (inclusive) when this was constructed. Editions
* after this will not have reliable defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;
*/
protected $maximum_edition = null;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $defaults
* @type int $minimum_edition
* The minimum supported edition (inclusive) when this was constructed.
* Editions before this will not have defaults.
* @type int $maximum_edition
* The maximum known edition (inclusive) when this was constructed. Editions
* after this will not have reliable defaults.
* }
*/
public function __construct($data = NULL)
{
\Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
parent::__construct($data);
}
/**
* Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
* @return RepeatedField<\Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault>
*/
public function getDefaults()
{
return $this->defaults;
}
/**
* Generated from protobuf field repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;
* @param \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $var
* @return $this
*/
public function setDefaults($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault::class);
$this->defaults = $arr;
return $this;
}
/**
* The minimum supported edition (inclusive) when this was constructed.
* Editions before this will not have defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;
* @return int
*/
public function getMinimumEdition()
{
return isset($this->minimum_edition) ? $this->minimum_edition : 0;
}
public function hasMinimumEdition()
{
return isset($this->minimum_edition);
}
public function clearMinimumEdition()
{
unset($this->minimum_edition);
}
/**
* The minimum supported edition (inclusive) when this was constructed.
* Editions before this will not have defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition minimum_edition = 4;
* @param int $var
* @return $this
*/
public function setMinimumEdition($var)
{
GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Edition::class);
$this->minimum_edition = $var;
return $this;
}
/**
* The maximum known edition (inclusive) when this was constructed. Editions
* after this will not have reliable defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;
* @return int
*/
public function getMaximumEdition()
{
return isset($this->maximum_edition) ? $this->maximum_edition : 0;
}
public function hasMaximumEdition()
{
return isset($this->maximum_edition);
}
public function clearMaximumEdition()
{
unset($this->maximum_edition);
}
/**
* The maximum known edition (inclusive) when this was constructed. Editions
* after this will not have reliable defaults.
*
* Generated from protobuf field optional .google.protobuf.Edition maximum_edition = 5;
* @param int $var
* @return $this
*/
public function setMaximumEdition($var)
{
GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Edition::class);
$this->maximum_edition = $var;
return $this;
}
}