Nenhuma descrição

Distribution.php 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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. class Google_Service_ServiceControl_Distribution extends Google_Collection
  18. {
  19. protected $collection_key = 'bucketCounts';
  20. public $bucketCounts;
  21. public $count;
  22. protected $explicitBucketsType = 'Google_Service_ServiceControl_ExplicitBuckets';
  23. protected $explicitBucketsDataType = '';
  24. protected $exponentialBucketsType = 'Google_Service_ServiceControl_ExponentialBuckets';
  25. protected $exponentialBucketsDataType = '';
  26. protected $linearBucketsType = 'Google_Service_ServiceControl_LinearBuckets';
  27. protected $linearBucketsDataType = '';
  28. public $maximum;
  29. public $mean;
  30. public $minimum;
  31. public $sumOfSquaredDeviation;
  32. public function setBucketCounts($bucketCounts)
  33. {
  34. $this->bucketCounts = $bucketCounts;
  35. }
  36. public function getBucketCounts()
  37. {
  38. return $this->bucketCounts;
  39. }
  40. public function setCount($count)
  41. {
  42. $this->count = $count;
  43. }
  44. public function getCount()
  45. {
  46. return $this->count;
  47. }
  48. /**
  49. * @param Google_Service_ServiceControl_ExplicitBuckets
  50. */
  51. public function setExplicitBuckets(Google_Service_ServiceControl_ExplicitBuckets $explicitBuckets)
  52. {
  53. $this->explicitBuckets = $explicitBuckets;
  54. }
  55. /**
  56. * @return Google_Service_ServiceControl_ExplicitBuckets
  57. */
  58. public function getExplicitBuckets()
  59. {
  60. return $this->explicitBuckets;
  61. }
  62. /**
  63. * @param Google_Service_ServiceControl_ExponentialBuckets
  64. */
  65. public function setExponentialBuckets(Google_Service_ServiceControl_ExponentialBuckets $exponentialBuckets)
  66. {
  67. $this->exponentialBuckets = $exponentialBuckets;
  68. }
  69. /**
  70. * @return Google_Service_ServiceControl_ExponentialBuckets
  71. */
  72. public function getExponentialBuckets()
  73. {
  74. return $this->exponentialBuckets;
  75. }
  76. /**
  77. * @param Google_Service_ServiceControl_LinearBuckets
  78. */
  79. public function setLinearBuckets(Google_Service_ServiceControl_LinearBuckets $linearBuckets)
  80. {
  81. $this->linearBuckets = $linearBuckets;
  82. }
  83. /**
  84. * @return Google_Service_ServiceControl_LinearBuckets
  85. */
  86. public function getLinearBuckets()
  87. {
  88. return $this->linearBuckets;
  89. }
  90. public function setMaximum($maximum)
  91. {
  92. $this->maximum = $maximum;
  93. }
  94. public function getMaximum()
  95. {
  96. return $this->maximum;
  97. }
  98. public function setMean($mean)
  99. {
  100. $this->mean = $mean;
  101. }
  102. public function getMean()
  103. {
  104. return $this->mean;
  105. }
  106. public function setMinimum($minimum)
  107. {
  108. $this->minimum = $minimum;
  109. }
  110. public function getMinimum()
  111. {
  112. return $this->minimum;
  113. }
  114. public function setSumOfSquaredDeviation($sumOfSquaredDeviation)
  115. {
  116. $this->sumOfSquaredDeviation = $sumOfSquaredDeviation;
  117. }
  118. public function getSumOfSquaredDeviation()
  119. {
  120. return $this->sumOfSquaredDeviation;
  121. }
  122. }