media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
common-protos
/
src
/
Api
/
Distribution
/
Range.php
Range.php in Media Cloud Sync 1.2.0, at includes/sdk/google/google/common-protos/src/Api/Distribution/Range.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # source: google/api/distribution.proto |
| 5 | namespace Dudlewebs\WPMCS\Google\Api\Distribution; |
| 6 | |
| 7 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType; |
| 8 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\RepeatedField; |
| 9 | use Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBUtil; |
| 10 | /** |
| 11 | * The range of the population values. |
| 12 | * |
| 13 | * Generated from protobuf message <code>google.api.Distribution.Range</code> |
| 14 | */ |
| 15 | class Range extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message |
| 16 | { |
| 17 | /** |
| 18 | * The minimum of the population values. |
| 19 | * |
| 20 | * Generated from protobuf field <code>double min = 1;</code> |
| 21 | */ |
| 22 | protected $min = 0.0; |
| 23 | /** |
| 24 | * The maximum of the population values. |
| 25 | * |
| 26 | * Generated from protobuf field <code>double max = 2;</code> |
| 27 | */ |
| 28 | protected $max = 0.0; |
| 29 | /** |
| 30 | * Constructor. |
| 31 | * |
| 32 | * @param array $data { |
| 33 | * Optional. Data for populating the Message object. |
| 34 | * |
| 35 | * @type float $min |
| 36 | * The minimum of the population values. |
| 37 | * @type float $max |
| 38 | * The maximum of the population values. |
| 39 | * } |
| 40 | */ |
| 41 | public function __construct($data = NULL) |
| 42 | { |
| 43 | \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Distribution::initOnce(); |
| 44 | parent::__construct($data); |
| 45 | } |
| 46 | /** |
| 47 | * The minimum of the population values. |
| 48 | * |
| 49 | * Generated from protobuf field <code>double min = 1;</code> |
| 50 | * @return float |
| 51 | */ |
| 52 | public function getMin() |
| 53 | { |
| 54 | return $this->min; |
| 55 | } |
| 56 | /** |
| 57 | * The minimum of the population values. |
| 58 | * |
| 59 | * Generated from protobuf field <code>double min = 1;</code> |
| 60 | * @param float $var |
| 61 | * @return $this |
| 62 | */ |
| 63 | public function setMin($var) |
| 64 | { |
| 65 | GPBUtil::checkDouble($var); |
| 66 | $this->min = $var; |
| 67 | return $this; |
| 68 | } |
| 69 | /** |
| 70 | * The maximum of the population values. |
| 71 | * |
| 72 | * Generated from protobuf field <code>double max = 2;</code> |
| 73 | * @return float |
| 74 | */ |
| 75 | public function getMax() |
| 76 | { |
| 77 | return $this->max; |
| 78 | } |
| 79 | /** |
| 80 | * The maximum of the population values. |
| 81 | * |
| 82 | * Generated from protobuf field <code>double max = 2;</code> |
| 83 | * @param float $var |
| 84 | * @return $this |
| 85 | */ |
| 86 | public function setMax($var) |
| 87 | { |
| 88 | GPBUtil::checkDouble($var); |
| 89 | $this->max = $var; |
| 90 | return $this; |
| 91 | } |
| 92 | } |
| 93 |