← All changes
|
includes/sdk/google/google/common-protos/src/Api/Distribution.php
+16
-16
1.2.10
→
1.4.2
View file →
| @@ -1,13 +1,13 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | 4 | # source: google/api/distribution.proto |
| 5 | -namespace Dudlewebs\WPMCS\Google\Api; | |
| 5 | +namespace Dudlewebs\WPMCS\GCP\Google\Api; | |
| 6 | 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; | |
| 7 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; | |
| 8 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; | |
| 9 | +use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; | |
| 10 | 10 | /** |
| 11 | 11 | * `Distribution` contains summary statistics for a population of values. It |
| 12 | 12 | * optionally contains a histogram representing the distribution of those values |
| 13 | 13 | * across a set of buckets. |
| @@ -22,9 +22,9 @@ | ||
| 22 | 22 | * will render the `mean` and `sum_of_squared_deviation` fields meaningless. |
| 23 | 23 | * |
| 24 | 24 | * Generated from protobuf message <code>google.api.Distribution</code> |
| 25 | 25 | */ |
| 26 | -class Distribution extends \Dudlewebs\WPMCS\Google\Protobuf\Internal\Message | |
| 26 | +class Distribution extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message | |
| 27 | 27 | { |
| 28 | 28 | /** |
| 29 | 29 | * The number of values in the population. Must be non-negative. This value |
| 30 | 30 | * must equal the sum of the values in `bucket_counts` if a histogram is |
| @@ -114,9 +114,9 @@ | ||
| 114 | 114 | * must not be present if the `count` is zero. |
| 115 | 115 | * @type \Google\Api\Distribution\BucketOptions $bucket_options |
| 116 | 116 | * Defines the histogram bucket boundaries. If the distribution does not |
| 117 | 117 | * contain a histogram, then omit this field. |
| 118 | - * @type array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $bucket_counts | |
| 118 | + * @type int[]|string[] $bucket_counts | |
| 119 | 119 | * The number of values in each bucket of the histogram, as described in |
| 120 | 120 | * `bucket_options`. If the distribution does not have a histogram, then omit |
| 121 | 121 | * this field. If there is a histogram, then the sum of the values in |
| 122 | 122 | * `bucket_counts` must equal the value in the `count` field of the |
| @@ -128,15 +128,15 @@ | ||
| 128 | 128 | * schemes described for the three bucket types. The first value must be the |
| 129 | 129 | * count for the underflow bucket (number 0). The next N-2 values are the |
| 130 | 130 | * counts for the finite buckets (number 1 through N-2). The N'th value in |
| 131 | 131 | * `bucket_counts` is the count for the overflow bucket (number N-1). |
| 132 | - * @type array<\Google\Api\Distribution\Exemplar>|\Google\Protobuf\Internal\RepeatedField $exemplars | |
| 132 | + * @type \Google\Api\Distribution\Exemplar[] $exemplars | |
| 133 | 133 | * Must be in increasing order of `value` field. |
| 134 | 134 | * } |
| 135 | 135 | */ |
| 136 | 136 | public function __construct($data = NULL) |
| 137 | 137 | { |
| 138 | - \Dudlewebs\WPMCS\GPBMetadata\Google\Api\Distribution::initOnce(); | |
| 138 | + \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Api\Distribution::initOnce(); | |
| 139 | 139 | parent::__construct($data); |
| 140 | 140 | } |
| 141 | 141 | /** |
| 142 | 142 | * The number of values in the population. Must be non-negative. This value |
| @@ -251,9 +251,9 @@ | ||
| 251 | 251 | * @return $this |
| 252 | 252 | */ |
| 253 | 253 | public function setRange($var) |
| 254 | 254 | { |
| 255 | - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Api\Distribution\Range::class); | |
| 255 | + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\Distribution\Range::class); | |
| 256 | 256 | $this->range = $var; |
| 257 | 257 | return $this; |
| 258 | 258 | } |
| 259 | 259 | /** |
| @@ -284,9 +284,9 @@ | ||
| 284 | 284 | * @return $this |
| 285 | 285 | */ |
| 286 | 286 | public function setBucketOptions($var) |
| 287 | 287 | { |
| 288 | - GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\Google\Api\Distribution\BucketOptions::class); | |
| 288 | + GPBUtil::checkMessage($var, \Dudlewebs\WPMCS\GCP\Google\Api\Distribution\BucketOptions::class); | |
| 289 | 289 | $this->bucket_options = $var; |
| 290 | 290 | return $this; |
| 291 | 291 | } |
| 292 | 292 | /** |
| @@ -304,9 +304,9 @@ | ||
| 304 | 304 | * counts for the finite buckets (number 1 through N-2). The N'th value in |
| 305 | 305 | * `bucket_counts` is the count for the overflow bucket (number N-1). |
| 306 | 306 | * |
| 307 | 307 | * Generated from protobuf field <code>repeated int64 bucket_counts = 7;</code> |
| 308 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 308 | + * @return RepeatedField<int>|RepeatedField<string> | |
| 309 | 309 | */ |
| 310 | 310 | public function getBucketCounts() |
| 311 | 311 | { |
| 312 | 312 | return $this->bucket_counts; |
| @@ -326,14 +326,14 @@ | ||
| 326 | 326 | * counts for the finite buckets (number 1 through N-2). The N'th value in |
| 327 | 327 | * `bucket_counts` is the count for the overflow bucket (number N-1). |
| 328 | 328 | * |
| 329 | 329 | * Generated from protobuf field <code>repeated int64 bucket_counts = 7;</code> |
| 330 | - * @param array<int>|array<string>|\Google\Protobuf\Internal\RepeatedField $var | |
| 330 | + * @param int[]|string[] $var | |
| 331 | 331 | * @return $this |
| 332 | 332 | */ |
| 333 | 333 | public function setBucketCounts($var) |
| 334 | 334 | { |
| 335 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::INT64); | |
| 335 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::INT64); | |
| 336 | 336 | $this->bucket_counts = $arr; |
| 337 | 337 | return $this; |
| 338 | 338 | } |
| 339 | 339 | /** |
| @@ -339,9 +339,9 @@ | ||
| 339 | 339 | /** |
| 340 | 340 | * Must be in increasing order of `value` field. |
| 341 | 341 | * |
| 342 | 342 | * Generated from protobuf field <code>repeated .google.api.Distribution.Exemplar exemplars = 10;</code> |
| 343 | - * @return \Google\Protobuf\Internal\RepeatedField | |
| 343 | + * @return RepeatedField<\Google\Api\Distribution\Exemplar> | |
| 344 | 344 | */ |
| 345 | 345 | public function getExemplars() |
| 346 | 346 | { |
| 347 | 347 | return $this->exemplars; |
| @@ -349,14 +349,14 @@ | ||
| 349 | 349 | /** |
| 350 | 350 | * Must be in increasing order of `value` field. |
| 351 | 351 | * |
| 352 | 352 | * Generated from protobuf field <code>repeated .google.api.Distribution.Exemplar exemplars = 10;</code> |
| 353 | - * @param array<\Google\Api\Distribution\Exemplar>|\Google\Protobuf\Internal\RepeatedField $var | |
| 353 | + * @param \Google\Api\Distribution\Exemplar[] $var | |
| 354 | 354 | * @return $this |
| 355 | 355 | */ |
| 356 | 356 | public function setExemplars($var) |
| 357 | 357 | { |
| 358 | - $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\Google\Api\Distribution\Exemplar::class); | |
| 358 | + $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Api\Distribution\Exemplar::class); | |
| 359 | 359 | $this->exemplars = $arr; |
| 360 | 360 | return $this; |
| 361 | 361 | } |
| 362 | 362 | } |