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 UrlMetadata extends \Google\Model
|
---|
21 | {
|
---|
22 | /**
|
---|
23 | * @var string
|
---|
24 | */
|
---|
25 | public $domain;
|
---|
26 | protected $gwsUrlType = SafeUrlProto::class;
|
---|
27 | protected $gwsUrlDataType = '';
|
---|
28 | /**
|
---|
29 | * @var string
|
---|
30 | */
|
---|
31 | public $gwsUrlExpirationTimestamp;
|
---|
32 | /**
|
---|
33 | * @var string
|
---|
34 | */
|
---|
35 | public $imageHeight;
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $imageUrl;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $imageWidth;
|
---|
44 | /**
|
---|
45 | * @var int
|
---|
46 | */
|
---|
47 | public $intImageHeight;
|
---|
48 | /**
|
---|
49 | * @var int
|
---|
50 | */
|
---|
51 | public $intImageWidth;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $mimeType;
|
---|
56 | protected $redirectUrlType = SafeUrlProto::class;
|
---|
57 | protected $redirectUrlDataType = '';
|
---|
58 | /**
|
---|
59 | * @var bool
|
---|
60 | */
|
---|
61 | public $shouldNotRender;
|
---|
62 | /**
|
---|
63 | * @var string
|
---|
64 | */
|
---|
65 | public $snippet;
|
---|
66 | /**
|
---|
67 | * @var string
|
---|
68 | */
|
---|
69 | public $title;
|
---|
70 | protected $urlType = SafeUrlProto::class;
|
---|
71 | protected $urlDataType = '';
|
---|
72 | /**
|
---|
73 | * @var string
|
---|
74 | */
|
---|
75 | public $urlSource;
|
---|
76 |
|
---|
77 | /**
|
---|
78 | * @param string
|
---|
79 | */
|
---|
80 | public function setDomain($domain)
|
---|
81 | {
|
---|
82 | $this->domain = $domain;
|
---|
83 | }
|
---|
84 | /**
|
---|
85 | * @return string
|
---|
86 | */
|
---|
87 | public function getDomain()
|
---|
88 | {
|
---|
89 | return $this->domain;
|
---|
90 | }
|
---|
91 | /**
|
---|
92 | * @param SafeUrlProto
|
---|
93 | */
|
---|
94 | public function setGwsUrl(SafeUrlProto $gwsUrl)
|
---|
95 | {
|
---|
96 | $this->gwsUrl = $gwsUrl;
|
---|
97 | }
|
---|
98 | /**
|
---|
99 | * @return SafeUrlProto
|
---|
100 | */
|
---|
101 | public function getGwsUrl()
|
---|
102 | {
|
---|
103 | return $this->gwsUrl;
|
---|
104 | }
|
---|
105 | /**
|
---|
106 | * @param string
|
---|
107 | */
|
---|
108 | public function setGwsUrlExpirationTimestamp($gwsUrlExpirationTimestamp)
|
---|
109 | {
|
---|
110 | $this->gwsUrlExpirationTimestamp = $gwsUrlExpirationTimestamp;
|
---|
111 | }
|
---|
112 | /**
|
---|
113 | * @return string
|
---|
114 | */
|
---|
115 | public function getGwsUrlExpirationTimestamp()
|
---|
116 | {
|
---|
117 | return $this->gwsUrlExpirationTimestamp;
|
---|
118 | }
|
---|
119 | /**
|
---|
120 | * @param string
|
---|
121 | */
|
---|
122 | public function setImageHeight($imageHeight)
|
---|
123 | {
|
---|
124 | $this->imageHeight = $imageHeight;
|
---|
125 | }
|
---|
126 | /**
|
---|
127 | * @return string
|
---|
128 | */
|
---|
129 | public function getImageHeight()
|
---|
130 | {
|
---|
131 | return $this->imageHeight;
|
---|
132 | }
|
---|
133 | /**
|
---|
134 | * @param string
|
---|
135 | */
|
---|
136 | public function setImageUrl($imageUrl)
|
---|
137 | {
|
---|
138 | $this->imageUrl = $imageUrl;
|
---|
139 | }
|
---|
140 | /**
|
---|
141 | * @return string
|
---|
142 | */
|
---|
143 | public function getImageUrl()
|
---|
144 | {
|
---|
145 | return $this->imageUrl;
|
---|
146 | }
|
---|
147 | /**
|
---|
148 | * @param string
|
---|
149 | */
|
---|
150 | public function setImageWidth($imageWidth)
|
---|
151 | {
|
---|
152 | $this->imageWidth = $imageWidth;
|
---|
153 | }
|
---|
154 | /**
|
---|
155 | * @return string
|
---|
156 | */
|
---|
157 | public function getImageWidth()
|
---|
158 | {
|
---|
159 | return $this->imageWidth;
|
---|
160 | }
|
---|
161 | /**
|
---|
162 | * @param int
|
---|
163 | */
|
---|
164 | public function setIntImageHeight($intImageHeight)
|
---|
165 | {
|
---|
166 | $this->intImageHeight = $intImageHeight;
|
---|
167 | }
|
---|
168 | /**
|
---|
169 | * @return int
|
---|
170 | */
|
---|
171 | public function getIntImageHeight()
|
---|
172 | {
|
---|
173 | return $this->intImageHeight;
|
---|
174 | }
|
---|
175 | /**
|
---|
176 | * @param int
|
---|
177 | */
|
---|
178 | public function setIntImageWidth($intImageWidth)
|
---|
179 | {
|
---|
180 | $this->intImageWidth = $intImageWidth;
|
---|
181 | }
|
---|
182 | /**
|
---|
183 | * @return int
|
---|
184 | */
|
---|
185 | public function getIntImageWidth()
|
---|
186 | {
|
---|
187 | return $this->intImageWidth;
|
---|
188 | }
|
---|
189 | /**
|
---|
190 | * @param string
|
---|
191 | */
|
---|
192 | public function setMimeType($mimeType)
|
---|
193 | {
|
---|
194 | $this->mimeType = $mimeType;
|
---|
195 | }
|
---|
196 | /**
|
---|
197 | * @return string
|
---|
198 | */
|
---|
199 | public function getMimeType()
|
---|
200 | {
|
---|
201 | return $this->mimeType;
|
---|
202 | }
|
---|
203 | /**
|
---|
204 | * @param SafeUrlProto
|
---|
205 | */
|
---|
206 | public function setRedirectUrl(SafeUrlProto $redirectUrl)
|
---|
207 | {
|
---|
208 | $this->redirectUrl = $redirectUrl;
|
---|
209 | }
|
---|
210 | /**
|
---|
211 | * @return SafeUrlProto
|
---|
212 | */
|
---|
213 | public function getRedirectUrl()
|
---|
214 | {
|
---|
215 | return $this->redirectUrl;
|
---|
216 | }
|
---|
217 | /**
|
---|
218 | * @param bool
|
---|
219 | */
|
---|
220 | public function setShouldNotRender($shouldNotRender)
|
---|
221 | {
|
---|
222 | $this->shouldNotRender = $shouldNotRender;
|
---|
223 | }
|
---|
224 | /**
|
---|
225 | * @return bool
|
---|
226 | */
|
---|
227 | public function getShouldNotRender()
|
---|
228 | {
|
---|
229 | return $this->shouldNotRender;
|
---|
230 | }
|
---|
231 | /**
|
---|
232 | * @param string
|
---|
233 | */
|
---|
234 | public function setSnippet($snippet)
|
---|
235 | {
|
---|
236 | $this->snippet = $snippet;
|
---|
237 | }
|
---|
238 | /**
|
---|
239 | * @return string
|
---|
240 | */
|
---|
241 | public function getSnippet()
|
---|
242 | {
|
---|
243 | return $this->snippet;
|
---|
244 | }
|
---|
245 | /**
|
---|
246 | * @param string
|
---|
247 | */
|
---|
248 | public function setTitle($title)
|
---|
249 | {
|
---|
250 | $this->title = $title;
|
---|
251 | }
|
---|
252 | /**
|
---|
253 | * @return string
|
---|
254 | */
|
---|
255 | public function getTitle()
|
---|
256 | {
|
---|
257 | return $this->title;
|
---|
258 | }
|
---|
259 | /**
|
---|
260 | * @param SafeUrlProto
|
---|
261 | */
|
---|
262 | public function setUrl(SafeUrlProto $url)
|
---|
263 | {
|
---|
264 | $this->url = $url;
|
---|
265 | }
|
---|
266 | /**
|
---|
267 | * @return SafeUrlProto
|
---|
268 | */
|
---|
269 | public function getUrl()
|
---|
270 | {
|
---|
271 | return $this->url;
|
---|
272 | }
|
---|
273 | /**
|
---|
274 | * @param string
|
---|
275 | */
|
---|
276 | public function setUrlSource($urlSource)
|
---|
277 | {
|
---|
278 | $this->urlSource = $urlSource;
|
---|
279 | }
|
---|
280 | /**
|
---|
281 | * @return string
|
---|
282 | */
|
---|
283 | public function getUrlSource()
|
---|
284 | {
|
---|
285 | return $this->urlSource;
|
---|
286 | }
|
---|
287 | }
|
---|
288 |
|
---|
289 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
290 | class_alias(UrlMetadata::class, 'Google_Service_CloudSearch_UrlMetadata');
|
---|