media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
protobuf
/
src
/
Google
/
Protobuf
/
Internal
/
FeatureSetDefaults.php
FeatureSetDefaults.php in Media Cloud Sync 1.4.2, at includes/sdk/google/google/protobuf/src/Google/Protobuf/Internal/FeatureSetDefaults.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # NO CHECKED-IN PROTOBUF GENCODE |
| 5 | # source: google/protobuf/descriptor.proto |
| 6 | namespace Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal; |
| 7 | |
| 8 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; |
| 9 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBWire; |
| 10 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\InputStream; |
| 11 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; |
| 12 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; |
| 13 | /** |
| 14 | * A compiled specification for the defaults of a set of features. These |
| 15 | * messages are generated from FeatureSet extensions and can be used to seed |
| 16 | * feature resolution. The resolution with this object becomes a simple search |
| 17 | * for the closest matching edition, followed by proto merges. |
| 18 | * |
| 19 | * Generated from protobuf message <code>google.protobuf.FeatureSetDefaults</code> |
| 20 | */ |
| 21 | class FeatureSetDefaults extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 22 | { |
| 23 | /** |
| 24 | * Generated from protobuf field <code>repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;</code> |
| 25 | */ |
| 26 | private $defaults; |
| 27 | /** |
| 28 | * The minimum supported edition (inclusive) when this was constructed. |
| 29 | * Editions before this will not have defaults. |
| 30 | * |
| 31 | * Generated from protobuf field <code>optional .google.protobuf.Edition minimum_edition = 4;</code> |
| 32 | */ |
| 33 | protected $minimum_edition = null; |
| 34 | /** |
| 35 | * The maximum known edition (inclusive) when this was constructed. Editions |
| 36 | * after this will not have reliable defaults. |
| 37 | * |
| 38 | * Generated from protobuf field <code>optional .google.protobuf.Edition maximum_edition = 5;</code> |
| 39 | */ |
| 40 | protected $maximum_edition = null; |
| 41 | /** |
| 42 | * Constructor. |
| 43 | * |
| 44 | * @param array $data { |
| 45 | * Optional. Data for populating the Message object. |
| 46 | * |
| 47 | * @type \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $defaults |
| 48 | * @type int $minimum_edition |
| 49 | * The minimum supported edition (inclusive) when this was constructed. |
| 50 | * Editions before this will not have defaults. |
| 51 | * @type int $maximum_edition |
| 52 | * The maximum known edition (inclusive) when this was constructed. Editions |
| 53 | * after this will not have reliable defaults. |
| 54 | * } |
| 55 | */ |
| 56 | public function __construct($data = NULL) |
| 57 | { |
| 58 | \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 59 | parent::__construct($data); |
| 60 | } |
| 61 | /** |
| 62 | * Generated from protobuf field <code>repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;</code> |
| 63 | * @return RepeatedField<\Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault> |
| 64 | */ |
| 65 | public function getDefaults() |
| 66 | { |
| 67 | return $this->defaults; |
| 68 | } |
| 69 | /** |
| 70 | * Generated from protobuf field <code>repeated .google.protobuf.FeatureSetDefaults.FeatureSetEditionDefault defaults = 1;</code> |
| 71 | * @param \Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault[] $var |
| 72 | * @return $this |
| 73 | */ |
| 74 | public function setDefaults($var) |
| 75 | { |
| 76 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\FeatureSetDefaults\FeatureSetEditionDefault::class); |
| 77 | $this->defaults = $arr; |
| 78 | return $this; |
| 79 | } |
| 80 | /** |
| 81 | * The minimum supported edition (inclusive) when this was constructed. |
| 82 | * Editions before this will not have defaults. |
| 83 | * |
| 84 | * Generated from protobuf field <code>optional .google.protobuf.Edition minimum_edition = 4;</code> |
| 85 | * @return int |
| 86 | */ |
| 87 | public function getMinimumEdition() |
| 88 | { |
| 89 | return isset($this->minimum_edition) ? $this->minimum_edition : 0; |
| 90 | } |
| 91 | public function hasMinimumEdition() |
| 92 | { |
| 93 | return isset($this->minimum_edition); |
| 94 | } |
| 95 | public function clearMinimumEdition() |
| 96 | { |
| 97 | unset($this->minimum_edition); |
| 98 | } |
| 99 | /** |
| 100 | * The minimum supported edition (inclusive) when this was constructed. |
| 101 | * Editions before this will not have defaults. |
| 102 | * |
| 103 | * Generated from protobuf field <code>optional .google.protobuf.Edition minimum_edition = 4;</code> |
| 104 | * @param int $var |
| 105 | * @return $this |
| 106 | */ |
| 107 | public function setMinimumEdition($var) |
| 108 | { |
| 109 | GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Edition::class); |
| 110 | $this->minimum_edition = $var; |
| 111 | return $this; |
| 112 | } |
| 113 | /** |
| 114 | * The maximum known edition (inclusive) when this was constructed. Editions |
| 115 | * after this will not have reliable defaults. |
| 116 | * |
| 117 | * Generated from protobuf field <code>optional .google.protobuf.Edition maximum_edition = 5;</code> |
| 118 | * @return int |
| 119 | */ |
| 120 | public function getMaximumEdition() |
| 121 | { |
| 122 | return isset($this->maximum_edition) ? $this->maximum_edition : 0; |
| 123 | } |
| 124 | public function hasMaximumEdition() |
| 125 | { |
| 126 | return isset($this->maximum_edition); |
| 127 | } |
| 128 | public function clearMaximumEdition() |
| 129 | { |
| 130 | unset($this->maximum_edition); |
| 131 | } |
| 132 | /** |
| 133 | * The maximum known edition (inclusive) when this was constructed. Editions |
| 134 | * after this will not have reliable defaults. |
| 135 | * |
| 136 | * Generated from protobuf field <code>optional .google.protobuf.Edition maximum_edition = 5;</code> |
| 137 | * @param int $var |
| 138 | * @return $this |
| 139 | */ |
| 140 | public function setMaximumEdition($var) |
| 141 | { |
| 142 | GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Edition::class); |
| 143 | $this->maximum_edition = $var; |
| 144 | return $this; |
| 145 | } |
| 146 | } |
| 147 |