[f9c482b] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\DiscoveryEngine;
|
---|
| 19 |
|
---|
| 20 | class GoogleApiDistribution extends \Google\Collection
|
---|
| 21 | {
|
---|
| 22 | protected $collection_key = 'exemplars';
|
---|
| 23 | /**
|
---|
| 24 | * @var string[]
|
---|
| 25 | */
|
---|
| 26 | public $bucketCounts;
|
---|
| 27 | protected $bucketOptionsType = GoogleApiDistributionBucketOptions::class;
|
---|
| 28 | protected $bucketOptionsDataType = '';
|
---|
| 29 | /**
|
---|
| 30 | * @var string
|
---|
| 31 | */
|
---|
| 32 | public $count;
|
---|
| 33 | protected $exemplarsType = GoogleApiDistributionExemplar::class;
|
---|
| 34 | protected $exemplarsDataType = 'array';
|
---|
| 35 | public $mean;
|
---|
| 36 | protected $rangeType = GoogleApiDistributionRange::class;
|
---|
| 37 | protected $rangeDataType = '';
|
---|
| 38 | public $sumOfSquaredDeviation;
|
---|
| 39 |
|
---|
| 40 | /**
|
---|
| 41 | * @param string[]
|
---|
| 42 | */
|
---|
| 43 | public function setBucketCounts($bucketCounts)
|
---|
| 44 | {
|
---|
| 45 | $this->bucketCounts = $bucketCounts;
|
---|
| 46 | }
|
---|
| 47 | /**
|
---|
| 48 | * @return string[]
|
---|
| 49 | */
|
---|
| 50 | public function getBucketCounts()
|
---|
| 51 | {
|
---|
| 52 | return $this->bucketCounts;
|
---|
| 53 | }
|
---|
| 54 | /**
|
---|
| 55 | * @param GoogleApiDistributionBucketOptions
|
---|
| 56 | */
|
---|
| 57 | public function setBucketOptions(GoogleApiDistributionBucketOptions $bucketOptions)
|
---|
| 58 | {
|
---|
| 59 | $this->bucketOptions = $bucketOptions;
|
---|
| 60 | }
|
---|
| 61 | /**
|
---|
| 62 | * @return GoogleApiDistributionBucketOptions
|
---|
| 63 | */
|
---|
| 64 | public function getBucketOptions()
|
---|
| 65 | {
|
---|
| 66 | return $this->bucketOptions;
|
---|
| 67 | }
|
---|
| 68 | /**
|
---|
| 69 | * @param string
|
---|
| 70 | */
|
---|
| 71 | public function setCount($count)
|
---|
| 72 | {
|
---|
| 73 | $this->count = $count;
|
---|
| 74 | }
|
---|
| 75 | /**
|
---|
| 76 | * @return string
|
---|
| 77 | */
|
---|
| 78 | public function getCount()
|
---|
| 79 | {
|
---|
| 80 | return $this->count;
|
---|
| 81 | }
|
---|
| 82 | /**
|
---|
| 83 | * @param GoogleApiDistributionExemplar[]
|
---|
| 84 | */
|
---|
| 85 | public function setExemplars($exemplars)
|
---|
| 86 | {
|
---|
| 87 | $this->exemplars = $exemplars;
|
---|
| 88 | }
|
---|
| 89 | /**
|
---|
| 90 | * @return GoogleApiDistributionExemplar[]
|
---|
| 91 | */
|
---|
| 92 | public function getExemplars()
|
---|
| 93 | {
|
---|
| 94 | return $this->exemplars;
|
---|
| 95 | }
|
---|
| 96 | public function setMean($mean)
|
---|
| 97 | {
|
---|
| 98 | $this->mean = $mean;
|
---|
| 99 | }
|
---|
| 100 | public function getMean()
|
---|
| 101 | {
|
---|
| 102 | return $this->mean;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @param GoogleApiDistributionRange
|
---|
| 106 | */
|
---|
| 107 | public function setRange(GoogleApiDistributionRange $range)
|
---|
| 108 | {
|
---|
| 109 | $this->range = $range;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @return GoogleApiDistributionRange
|
---|
| 113 | */
|
---|
| 114 | public function getRange()
|
---|
| 115 | {
|
---|
| 116 | return $this->range;
|
---|
| 117 | }
|
---|
| 118 | public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
|
---|
| 119 | {
|
---|
| 120 | $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
|
---|
| 121 | }
|
---|
| 122 | public function getSumOfSquaredDeviation()
|
---|
| 123 | {
|
---|
| 124 | return $this->sumOfSquaredDeviation;
|
---|
| 125 | }
|
---|
| 126 | }
|
---|
| 127 |
|
---|
| 128 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 129 | class_alias(GoogleApiDistribution::class, 'Google_Service_DiscoveryEngine_GoogleApiDistribution');
|
---|