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 |
|
---|
18 | namespace Google\Service\CloudSearch;
|
---|
19 |
|
---|
20 | class KeyValue extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $bottomLabel;
|
---|
26 | protected $buttonType = Button::class;
|
---|
27 | protected $buttonDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $content;
|
---|
32 | /**
|
---|
33 | * @var bool
|
---|
34 | */
|
---|
35 | public $contentMultiline;
|
---|
36 | protected $endIconType = IconImage::class;
|
---|
37 | protected $endIconDataType = '';
|
---|
38 | /**
|
---|
39 | * @var string
|
---|
40 | */
|
---|
41 | public $icon;
|
---|
42 | /**
|
---|
43 | * @var string
|
---|
44 | */
|
---|
45 | public $iconAltText;
|
---|
46 | /**
|
---|
47 | * @var string
|
---|
48 | */
|
---|
49 | public $iconUrl;
|
---|
50 | /**
|
---|
51 | * @var string
|
---|
52 | */
|
---|
53 | public $imageStyle;
|
---|
54 | protected $onClickType = OnClick::class;
|
---|
55 | protected $onClickDataType = '';
|
---|
56 | protected $startIconType = IconImage::class;
|
---|
57 | protected $startIconDataType = '';
|
---|
58 | protected $switchWidgetType = SwitchWidget::class;
|
---|
59 | protected $switchWidgetDataType = '';
|
---|
60 | /**
|
---|
61 | * @var string
|
---|
62 | */
|
---|
63 | public $topLabel;
|
---|
64 |
|
---|
65 | /**
|
---|
66 | * @param string
|
---|
67 | */
|
---|
68 | public function setBottomLabel($bottomLabel)
|
---|
69 | {
|
---|
70 | $this->bottomLabel = $bottomLabel;
|
---|
71 | }
|
---|
72 | /**
|
---|
73 | * @return string
|
---|
74 | */
|
---|
75 | public function getBottomLabel()
|
---|
76 | {
|
---|
77 | return $this->bottomLabel;
|
---|
78 | }
|
---|
79 | /**
|
---|
80 | * @param Button
|
---|
81 | */
|
---|
82 | public function setButton(Button $button)
|
---|
83 | {
|
---|
84 | $this->button = $button;
|
---|
85 | }
|
---|
86 | /**
|
---|
87 | * @return Button
|
---|
88 | */
|
---|
89 | public function getButton()
|
---|
90 | {
|
---|
91 | return $this->button;
|
---|
92 | }
|
---|
93 | /**
|
---|
94 | * @param string
|
---|
95 | */
|
---|
96 | public function setContent($content)
|
---|
97 | {
|
---|
98 | $this->content = $content;
|
---|
99 | }
|
---|
100 | /**
|
---|
101 | * @return string
|
---|
102 | */
|
---|
103 | public function getContent()
|
---|
104 | {
|
---|
105 | return $this->content;
|
---|
106 | }
|
---|
107 | /**
|
---|
108 | * @param bool
|
---|
109 | */
|
---|
110 | public function setContentMultiline($contentMultiline)
|
---|
111 | {
|
---|
112 | $this->contentMultiline = $contentMultiline;
|
---|
113 | }
|
---|
114 | /**
|
---|
115 | * @return bool
|
---|
116 | */
|
---|
117 | public function getContentMultiline()
|
---|
118 | {
|
---|
119 | return $this->contentMultiline;
|
---|
120 | }
|
---|
121 | /**
|
---|
122 | * @param IconImage
|
---|
123 | */
|
---|
124 | public function setEndIcon(IconImage $endIcon)
|
---|
125 | {
|
---|
126 | $this->endIcon = $endIcon;
|
---|
127 | }
|
---|
128 | /**
|
---|
129 | * @return IconImage
|
---|
130 | */
|
---|
131 | public function getEndIcon()
|
---|
132 | {
|
---|
133 | return $this->endIcon;
|
---|
134 | }
|
---|
135 | /**
|
---|
136 | * @param string
|
---|
137 | */
|
---|
138 | public function setIcon($icon)
|
---|
139 | {
|
---|
140 | $this->icon = $icon;
|
---|
141 | }
|
---|
142 | /**
|
---|
143 | * @return string
|
---|
144 | */
|
---|
145 | public function getIcon()
|
---|
146 | {
|
---|
147 | return $this->icon;
|
---|
148 | }
|
---|
149 | /**
|
---|
150 | * @param string
|
---|
151 | */
|
---|
152 | public function setIconAltText($iconAltText)
|
---|
153 | {
|
---|
154 | $this->iconAltText = $iconAltText;
|
---|
155 | }
|
---|
156 | /**
|
---|
157 | * @return string
|
---|
158 | */
|
---|
159 | public function getIconAltText()
|
---|
160 | {
|
---|
161 | return $this->iconAltText;
|
---|
162 | }
|
---|
163 | /**
|
---|
164 | * @param string
|
---|
165 | */
|
---|
166 | public function setIconUrl($iconUrl)
|
---|
167 | {
|
---|
168 | $this->iconUrl = $iconUrl;
|
---|
169 | }
|
---|
170 | /**
|
---|
171 | * @return string
|
---|
172 | */
|
---|
173 | public function getIconUrl()
|
---|
174 | {
|
---|
175 | return $this->iconUrl;
|
---|
176 | }
|
---|
177 | /**
|
---|
178 | * @param string
|
---|
179 | */
|
---|
180 | public function setImageStyle($imageStyle)
|
---|
181 | {
|
---|
182 | $this->imageStyle = $imageStyle;
|
---|
183 | }
|
---|
184 | /**
|
---|
185 | * @return string
|
---|
186 | */
|
---|
187 | public function getImageStyle()
|
---|
188 | {
|
---|
189 | return $this->imageStyle;
|
---|
190 | }
|
---|
191 | /**
|
---|
192 | * @param OnClick
|
---|
193 | */
|
---|
194 | public function setOnClick(OnClick $onClick)
|
---|
195 | {
|
---|
196 | $this->onClick = $onClick;
|
---|
197 | }
|
---|
198 | /**
|
---|
199 | * @return OnClick
|
---|
200 | */
|
---|
201 | public function getOnClick()
|
---|
202 | {
|
---|
203 | return $this->onClick;
|
---|
204 | }
|
---|
205 | /**
|
---|
206 | * @param IconImage
|
---|
207 | */
|
---|
208 | public function setStartIcon(IconImage $startIcon)
|
---|
209 | {
|
---|
210 | $this->startIcon = $startIcon;
|
---|
211 | }
|
---|
212 | /**
|
---|
213 | * @return IconImage
|
---|
214 | */
|
---|
215 | public function getStartIcon()
|
---|
216 | {
|
---|
217 | return $this->startIcon;
|
---|
218 | }
|
---|
219 | /**
|
---|
220 | * @param SwitchWidget
|
---|
221 | */
|
---|
222 | public function setSwitchWidget(SwitchWidget $switchWidget)
|
---|
223 | {
|
---|
224 | $this->switchWidget = $switchWidget;
|
---|
225 | }
|
---|
226 | /**
|
---|
227 | * @return SwitchWidget
|
---|
228 | */
|
---|
229 | public function getSwitchWidget()
|
---|
230 | {
|
---|
231 | return $this->switchWidget;
|
---|
232 | }
|
---|
233 | /**
|
---|
234 | * @param string
|
---|
235 | */
|
---|
236 | public function setTopLabel($topLabel)
|
---|
237 | {
|
---|
238 | $this->topLabel = $topLabel;
|
---|
239 | }
|
---|
240 | /**
|
---|
241 | * @return string
|
---|
242 | */
|
---|
243 | public function getTopLabel()
|
---|
244 | {
|
---|
245 | return $this->topLabel;
|
---|
246 | }
|
---|
247 | }
|
---|
248 |
|
---|
249 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
250 | class_alias(KeyValue::class, 'Google_Service_CloudSearch_KeyValue');
|
---|