source: vendor/google/apiclient-services/src/Spanner/Metric.php@ e3d4e0a

Last change on this file since e3d4e0a was e3d4e0a, checked in by Vlado 222039 <vlado.popovski@…>, 2 weeks ago

Upload project files

  • Property mode set to 100644
File size: 4.5 KB
Line 
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\Spanner;
19
20class Metric extends \Google\Model
21{
22 /**
23 * @var string
24 */
25 public $aggregation;
26 protected $categoryType = LocalizedString::class;
27 protected $categoryDataType = '';
28 protected $derivedType = DerivedMetric::class;
29 protected $derivedDataType = '';
30 protected $displayLabelType = LocalizedString::class;
31 protected $displayLabelDataType = '';
32 /**
33 * @var bool
34 */
35 public $hasNonzeroData;
36 /**
37 * @var float
38 */
39 public $hotValue;
40 protected $indexedHotKeysType = IndexedHotKey::class;
41 protected $indexedHotKeysDataType = 'map';
42 protected $indexedKeyRangeInfosType = IndexedKeyRangeInfos::class;
43 protected $indexedKeyRangeInfosDataType = 'map';
44 protected $infoType = LocalizedString::class;
45 protected $infoDataType = '';
46 protected $matrixType = MetricMatrix::class;
47 protected $matrixDataType = '';
48 protected $unitType = LocalizedString::class;
49 protected $unitDataType = '';
50 /**
51 * @var bool
52 */
53 public $visible;
54
55 /**
56 * @param string
57 */
58 public function setAggregation($aggregation)
59 {
60 $this->aggregation = $aggregation;
61 }
62 /**
63 * @return string
64 */
65 public function getAggregation()
66 {
67 return $this->aggregation;
68 }
69 /**
70 * @param LocalizedString
71 */
72 public function setCategory(LocalizedString $category)
73 {
74 $this->category = $category;
75 }
76 /**
77 * @return LocalizedString
78 */
79 public function getCategory()
80 {
81 return $this->category;
82 }
83 /**
84 * @param DerivedMetric
85 */
86 public function setDerived(DerivedMetric $derived)
87 {
88 $this->derived = $derived;
89 }
90 /**
91 * @return DerivedMetric
92 */
93 public function getDerived()
94 {
95 return $this->derived;
96 }
97 /**
98 * @param LocalizedString
99 */
100 public function setDisplayLabel(LocalizedString $displayLabel)
101 {
102 $this->displayLabel = $displayLabel;
103 }
104 /**
105 * @return LocalizedString
106 */
107 public function getDisplayLabel()
108 {
109 return $this->displayLabel;
110 }
111 /**
112 * @param bool
113 */
114 public function setHasNonzeroData($hasNonzeroData)
115 {
116 $this->hasNonzeroData = $hasNonzeroData;
117 }
118 /**
119 * @return bool
120 */
121 public function getHasNonzeroData()
122 {
123 return $this->hasNonzeroData;
124 }
125 /**
126 * @param float
127 */
128 public function setHotValue($hotValue)
129 {
130 $this->hotValue = $hotValue;
131 }
132 /**
133 * @return float
134 */
135 public function getHotValue()
136 {
137 return $this->hotValue;
138 }
139 /**
140 * @param IndexedHotKey[]
141 */
142 public function setIndexedHotKeys($indexedHotKeys)
143 {
144 $this->indexedHotKeys = $indexedHotKeys;
145 }
146 /**
147 * @return IndexedHotKey[]
148 */
149 public function getIndexedHotKeys()
150 {
151 return $this->indexedHotKeys;
152 }
153 /**
154 * @param IndexedKeyRangeInfos[]
155 */
156 public function setIndexedKeyRangeInfos($indexedKeyRangeInfos)
157 {
158 $this->indexedKeyRangeInfos = $indexedKeyRangeInfos;
159 }
160 /**
161 * @return IndexedKeyRangeInfos[]
162 */
163 public function getIndexedKeyRangeInfos()
164 {
165 return $this->indexedKeyRangeInfos;
166 }
167 /**
168 * @param LocalizedString
169 */
170 public function setInfo(LocalizedString $info)
171 {
172 $this->info = $info;
173 }
174 /**
175 * @return LocalizedString
176 */
177 public function getInfo()
178 {
179 return $this->info;
180 }
181 /**
182 * @param MetricMatrix
183 */
184 public function setMatrix(MetricMatrix $matrix)
185 {
186 $this->matrix = $matrix;
187 }
188 /**
189 * @return MetricMatrix
190 */
191 public function getMatrix()
192 {
193 return $this->matrix;
194 }
195 /**
196 * @param LocalizedString
197 */
198 public function setUnit(LocalizedString $unit)
199 {
200 $this->unit = $unit;
201 }
202 /**
203 * @return LocalizedString
204 */
205 public function getUnit()
206 {
207 return $this->unit;
208 }
209 /**
210 * @param bool
211 */
212 public function setVisible($visible)
213 {
214 $this->visible = $visible;
215 }
216 /**
217 * @return bool
218 */
219 public function getVisible()
220 {
221 return $this->visible;
222 }
223}
224
225// Adding a class alias for backwards compatibility with the previous class name.
226class_alias(Metric::class, 'Google_Service_Spanner_Metric');
Note: See TracBrowser for help on using the repository browser.