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\Networkconnectivity; 19 20class Distribution extends \Google\Collection 21{ 22 protected $collection_key = 'exemplars'; 23 public $bucketCounts; 24 public $count; 25 protected $exemplarsType = Exemplar::class; 26 protected $exemplarsDataType = 'array'; 27 protected $explicitBucketsType = ExplicitBuckets::class; 28 protected $explicitBucketsDataType = ''; 29 protected $exponentialBucketsType = ExponentialBuckets::class; 30 protected $exponentialBucketsDataType = ''; 31 protected $linearBucketsType = LinearBuckets::class; 32 protected $linearBucketsDataType = ''; 33 public $maximum; 34 public $mean; 35 public $minimum; 36 public $sumOfSquaredDeviation; 37 38 public function setBucketCounts($bucketCounts) 39 { 40 $this->bucketCounts = $bucketCounts; 41 } 42 public function getBucketCounts() 43 { 44 return $this->bucketCounts; 45 } 46 public function setCount($count) 47 { 48 $this->count = $count; 49 } 50 public function getCount() 51 { 52 return $this->count; 53 } 54 /** 55 * @param Exemplar[] 56 */ 57 public function setExemplars($exemplars) 58 { 59 $this->exemplars = $exemplars; 60 } 61 /** 62 * @return Exemplar[] 63 */ 64 public function getExemplars() 65 { 66 return $this->exemplars; 67 } 68 /** 69 * @param ExplicitBuckets 70 */ 71 public function setExplicitBuckets(ExplicitBuckets $explicitBuckets) 72 { 73 $this->explicitBuckets = $explicitBuckets; 74 } 75 /** 76 * @return ExplicitBuckets 77 */ 78 public function getExplicitBuckets() 79 { 80 return $this->explicitBuckets; 81 } 82 /** 83 * @param ExponentialBuckets 84 */ 85 public function setExponentialBuckets(ExponentialBuckets $exponentialBuckets) 86 { 87 $this->exponentialBuckets = $exponentialBuckets; 88 } 89 /** 90 * @return ExponentialBuckets 91 */ 92 public function getExponentialBuckets() 93 { 94 return $this->exponentialBuckets; 95 } 96 /** 97 * @param LinearBuckets 98 */ 99 public function setLinearBuckets(LinearBuckets $linearBuckets) 100 { 101 $this->linearBuckets = $linearBuckets; 102 } 103 /** 104 * @return LinearBuckets 105 */ 106 public function getLinearBuckets() 107 { 108 return $this->linearBuckets; 109 } 110 public function setMaximum($maximum) 111 { 112 $this->maximum = $maximum; 113 } 114 public function getMaximum() 115 { 116 return $this->maximum; 117 } 118 public function setMean($mean) 119 { 120 $this->mean = $mean; 121 } 122 public function getMean() 123 { 124 return $this->mean; 125 } 126 public function setMinimum($minimum) 127 { 128 $this->minimum = $minimum; 129 } 130 public function getMinimum() 131 { 132 return $this->minimum; 133 } 134 public function setSumOfSquaredDeviation($sumOfSquaredDeviation) 135 { 136 $this->sumOfSquaredDeviation = $sumOfSquaredDeviation; 137 } 138 public function getSumOfSquaredDeviation() 139 { 140 return $this->sumOfSquaredDeviation; 141 } 142} 143 144// Adding a class alias for backwards compatibility with the previous class name. 145class_alias(Distribution::class, 'Google_Service_Networkconnectivity_Distribution'); 146