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 KeyRangeInfo extends \Google\Collection
21{
22  protected $collection_key = 'contextValues';
23  protected $contextValuesType = ContextValue::class;
24  protected $contextValuesDataType = 'array';
25  /**
26   * @var int
27   */
28  public $endKeyIndex;
29  protected $infoType = LocalizedString::class;
30  protected $infoDataType = '';
31  /**
32   * @var string
33   */
34  public $keysCount;
35  protected $metricType = LocalizedString::class;
36  protected $metricDataType = '';
37  /**
38   * @var int
39   */
40  public $startKeyIndex;
41  /**
42   * @var string
43   */
44  public $timeOffset;
45  protected $unitType = LocalizedString::class;
46  protected $unitDataType = '';
47  /**
48   * @var float
49   */
50  public $value;
51
52  /**
53   * @param ContextValue[]
54   */
55  public function setContextValues($contextValues)
56  {
57    $this->contextValues = $contextValues;
58  }
59  /**
60   * @return ContextValue[]
61   */
62  public function getContextValues()
63  {
64    return $this->contextValues;
65  }
66  /**
67   * @param int
68   */
69  public function setEndKeyIndex($endKeyIndex)
70  {
71    $this->endKeyIndex = $endKeyIndex;
72  }
73  /**
74   * @return int
75   */
76  public function getEndKeyIndex()
77  {
78    return $this->endKeyIndex;
79  }
80  /**
81   * @param LocalizedString
82   */
83  public function setInfo(LocalizedString $info)
84  {
85    $this->info = $info;
86  }
87  /**
88   * @return LocalizedString
89   */
90  public function getInfo()
91  {
92    return $this->info;
93  }
94  /**
95   * @param string
96   */
97  public function setKeysCount($keysCount)
98  {
99    $this->keysCount = $keysCount;
100  }
101  /**
102   * @return string
103   */
104  public function getKeysCount()
105  {
106    return $this->keysCount;
107  }
108  /**
109   * @param LocalizedString
110   */
111  public function setMetric(LocalizedString $metric)
112  {
113    $this->metric = $metric;
114  }
115  /**
116   * @return LocalizedString
117   */
118  public function getMetric()
119  {
120    return $this->metric;
121  }
122  /**
123   * @param int
124   */
125  public function setStartKeyIndex($startKeyIndex)
126  {
127    $this->startKeyIndex = $startKeyIndex;
128  }
129  /**
130   * @return int
131   */
132  public function getStartKeyIndex()
133  {
134    return $this->startKeyIndex;
135  }
136  /**
137   * @param string
138   */
139  public function setTimeOffset($timeOffset)
140  {
141    $this->timeOffset = $timeOffset;
142  }
143  /**
144   * @return string
145   */
146  public function getTimeOffset()
147  {
148    return $this->timeOffset;
149  }
150  /**
151   * @param LocalizedString
152   */
153  public function setUnit(LocalizedString $unit)
154  {
155    $this->unit = $unit;
156  }
157  /**
158   * @return LocalizedString
159   */
160  public function getUnit()
161  {
162    return $this->unit;
163  }
164  /**
165   * @param float
166   */
167  public function setValue($value)
168  {
169    $this->value = $value;
170  }
171  /**
172   * @return float
173   */
174  public function getValue()
175  {
176    return $this->value;
177  }
178}
179
180// Adding a class alias for backwards compatibility with the previous class name.
181class_alias(KeyRangeInfo::class, 'Google_Service_Spanner_KeyRangeInfo');
182