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
18namespace Google\Service\Monitoring;
19
20class Distribution extends \Google\Collection
21{
22  protected $collection_key = 'exemplars';
23  /**
24   * @var string[]
25   */
26  public $bucketCounts;
27  protected $bucketOptionsType = BucketOptions::class;
28  protected $bucketOptionsDataType = '';
29  /**
30   * @var string
31   */
32  public $count;
33  protected $exemplarsType = Exemplar::class;
34  protected $exemplarsDataType = 'array';
35  public $mean;
36  protected $rangeType = Range::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 BucketOptions
56   */
57  public function setBucketOptions(BucketOptions $bucketOptions)
58  {
59    $this->bucketOptions = $bucketOptions;
60  }
61  /**
62   * @return BucketOptions
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 Exemplar[]
84   */
85  public function setExemplars($exemplars)
86  {
87    $this->exemplars = $exemplars;
88  }
89  /**
90   * @return Exemplar[]
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 Range
106   */
107  public function setRange(Range $range)
108  {
109    $this->range = $range;
110  }
111  /**
112   * @return Range
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.
129class_alias(Distribution::class, 'Google_Service_Monitoring_Distribution');
130