25 |
- |
1 |
<?php
|
|
|
2 |
/*
|
|
|
3 |
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
|
4 |
* use this file except in compliance with the License. You may obtain a copy of
|
|
|
5 |
* the License at
|
|
|
6 |
*
|
|
|
7 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
8 |
*
|
|
|
9 |
* Unless required by applicable law or agreed to in writing, software
|
|
|
10 |
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
11 |
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
12 |
* License for the specific language governing permissions and limitations under
|
|
|
13 |
* the License.
|
|
|
14 |
*/
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
/**
|
|
|
18 |
* The "column" collection of methods.
|
|
|
19 |
* Typical usage is:
|
|
|
20 |
* <code>
|
|
|
21 |
* $fusiontablesService = new Google_FusiontablesService(...);
|
|
|
22 |
* $column = $fusiontablesService->column;
|
|
|
23 |
* </code>
|
|
|
24 |
*/
|
|
|
25 |
class Google_ColumnServiceResource extends Google_ServiceResource {
|
|
|
26 |
|
|
|
27 |
|
|
|
28 |
/**
|
|
|
29 |
* Adds a new column to the table. (column.insert)
|
|
|
30 |
*
|
|
|
31 |
* @param string $tableId Table for which a new column is being added.
|
|
|
32 |
* @param Google_Column $postBody
|
|
|
33 |
* @param array $optParams Optional parameters.
|
|
|
34 |
* @return Google_Column
|
|
|
35 |
*/
|
|
|
36 |
public function insert($tableId, Google_Column $postBody, $optParams = array()) {
|
|
|
37 |
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
|
|
38 |
$params = array_merge($params, $optParams);
|
|
|
39 |
$data = $this->__call('insert', array($params));
|
|
|
40 |
if ($this->useObjects()) {
|
|
|
41 |
return new Google_Column($data);
|
|
|
42 |
} else {
|
|
|
43 |
return $data;
|
|
|
44 |
}
|
|
|
45 |
}
|
|
|
46 |
/**
|
|
|
47 |
* Retrieves a specific column by its id. (column.get)
|
|
|
48 |
*
|
|
|
49 |
* @param string $tableId Table to which the column belongs.
|
|
|
50 |
* @param string $columnId Name or identifier for the column that is being requested.
|
|
|
51 |
* @param array $optParams Optional parameters.
|
|
|
52 |
* @return Google_Column
|
|
|
53 |
*/
|
|
|
54 |
public function get($tableId, $columnId, $optParams = array()) {
|
|
|
55 |
$params = array('tableId' => $tableId, 'columnId' => $columnId);
|
|
|
56 |
$params = array_merge($params, $optParams);
|
|
|
57 |
$data = $this->__call('get', array($params));
|
|
|
58 |
if ($this->useObjects()) {
|
|
|
59 |
return new Google_Column($data);
|
|
|
60 |
} else {
|
|
|
61 |
return $data;
|
|
|
62 |
}
|
|
|
63 |
}
|
|
|
64 |
/**
|
|
|
65 |
* Retrieves a list of columns. (column.list)
|
|
|
66 |
*
|
|
|
67 |
* @param string $tableId Table whose columns are being listed.
|
|
|
68 |
* @param array $optParams Optional parameters.
|
|
|
69 |
*
|
|
|
70 |
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
|
|
71 |
* @opt_param string maxResults Maximum number of columns to return. Optional. Default is 5.
|
|
|
72 |
* @return Google_ColumnList
|
|
|
73 |
*/
|
|
|
74 |
public function listColumn($tableId, $optParams = array()) {
|
|
|
75 |
$params = array('tableId' => $tableId);
|
|
|
76 |
$params = array_merge($params, $optParams);
|
|
|
77 |
$data = $this->__call('list', array($params));
|
|
|
78 |
if ($this->useObjects()) {
|
|
|
79 |
return new Google_ColumnList($data);
|
|
|
80 |
} else {
|
|
|
81 |
return $data;
|
|
|
82 |
}
|
|
|
83 |
}
|
|
|
84 |
/**
|
|
|
85 |
* Updates the name or type of an existing column. (column.update)
|
|
|
86 |
*
|
|
|
87 |
* @param string $tableId Table for which the column is being updated.
|
|
|
88 |
* @param string $columnId Name or identifier for the column that is being updated.
|
|
|
89 |
* @param Google_Column $postBody
|
|
|
90 |
* @param array $optParams Optional parameters.
|
|
|
91 |
* @return Google_Column
|
|
|
92 |
*/
|
|
|
93 |
public function update($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
|
|
|
94 |
$params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
|
|
|
95 |
$params = array_merge($params, $optParams);
|
|
|
96 |
$data = $this->__call('update', array($params));
|
|
|
97 |
if ($this->useObjects()) {
|
|
|
98 |
return new Google_Column($data);
|
|
|
99 |
} else {
|
|
|
100 |
return $data;
|
|
|
101 |
}
|
|
|
102 |
}
|
|
|
103 |
/**
|
|
|
104 |
* Updates the name or type of an existing column. This method supports patch semantics.
|
|
|
105 |
* (column.patch)
|
|
|
106 |
*
|
|
|
107 |
* @param string $tableId Table for which the column is being updated.
|
|
|
108 |
* @param string $columnId Name or identifier for the column that is being updated.
|
|
|
109 |
* @param Google_Column $postBody
|
|
|
110 |
* @param array $optParams Optional parameters.
|
|
|
111 |
* @return Google_Column
|
|
|
112 |
*/
|
|
|
113 |
public function patch($tableId, $columnId, Google_Column $postBody, $optParams = array()) {
|
|
|
114 |
$params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
|
|
|
115 |
$params = array_merge($params, $optParams);
|
|
|
116 |
$data = $this->__call('patch', array($params));
|
|
|
117 |
if ($this->useObjects()) {
|
|
|
118 |
return new Google_Column($data);
|
|
|
119 |
} else {
|
|
|
120 |
return $data;
|
|
|
121 |
}
|
|
|
122 |
}
|
|
|
123 |
/**
|
|
|
124 |
* Deletes the column. (column.delete)
|
|
|
125 |
*
|
|
|
126 |
* @param string $tableId Table from which the column is being deleted.
|
|
|
127 |
* @param string $columnId Name or identifier for the column being deleted.
|
|
|
128 |
* @param array $optParams Optional parameters.
|
|
|
129 |
*/
|
|
|
130 |
public function delete($tableId, $columnId, $optParams = array()) {
|
|
|
131 |
$params = array('tableId' => $tableId, 'columnId' => $columnId);
|
|
|
132 |
$params = array_merge($params, $optParams);
|
|
|
133 |
$data = $this->__call('delete', array($params));
|
|
|
134 |
return $data;
|
|
|
135 |
}
|
|
|
136 |
}
|
|
|
137 |
|
|
|
138 |
/**
|
|
|
139 |
* The "query" collection of methods.
|
|
|
140 |
* Typical usage is:
|
|
|
141 |
* <code>
|
|
|
142 |
* $fusiontablesService = new Google_FusiontablesService(...);
|
|
|
143 |
* $query = $fusiontablesService->query;
|
|
|
144 |
* </code>
|
|
|
145 |
*/
|
|
|
146 |
class Google_QueryServiceResource extends Google_ServiceResource {
|
|
|
147 |
|
|
|
148 |
|
|
|
149 |
/**
|
|
|
150 |
* Executes an SQL SELECT/SHOW/DESCRIBE statement. (query.sqlGet)
|
|
|
151 |
*
|
|
|
152 |
* @param string $sql An SQL SELECT/SHOW/DESCRIBE statement.
|
|
|
153 |
* @param array $optParams Optional parameters.
|
|
|
154 |
*
|
|
|
155 |
* @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
|
|
|
156 |
* @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
|
|
|
157 |
* @return Google_Sqlresponse
|
|
|
158 |
*/
|
|
|
159 |
public function sqlGet($sql, $optParams = array()) {
|
|
|
160 |
$params = array('sql' => $sql);
|
|
|
161 |
$params = array_merge($params, $optParams);
|
|
|
162 |
$data = $this->__call('sqlGet', array($params));
|
|
|
163 |
if ($this->useObjects()) {
|
|
|
164 |
return new Google_Sqlresponse($data);
|
|
|
165 |
} else {
|
|
|
166 |
return $data;
|
|
|
167 |
}
|
|
|
168 |
}
|
|
|
169 |
/**
|
|
|
170 |
* Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE statement. (query.sql)
|
|
|
171 |
*
|
|
|
172 |
* @param string $sql An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE statement.
|
|
|
173 |
* @param array $optParams Optional parameters.
|
|
|
174 |
*
|
|
|
175 |
* @opt_param bool typed Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
|
|
|
176 |
* @opt_param bool hdrs Should column names be included (in the first row)?. Default is true.
|
|
|
177 |
* @return Google_Sqlresponse
|
|
|
178 |
*/
|
|
|
179 |
public function sql($sql, $optParams = array()) {
|
|
|
180 |
$params = array('sql' => $sql);
|
|
|
181 |
$params = array_merge($params, $optParams);
|
|
|
182 |
$data = $this->__call('sql', array($params));
|
|
|
183 |
if ($this->useObjects()) {
|
|
|
184 |
return new Google_Sqlresponse($data);
|
|
|
185 |
} else {
|
|
|
186 |
return $data;
|
|
|
187 |
}
|
|
|
188 |
}
|
|
|
189 |
}
|
|
|
190 |
|
|
|
191 |
/**
|
|
|
192 |
* The "style" collection of methods.
|
|
|
193 |
* Typical usage is:
|
|
|
194 |
* <code>
|
|
|
195 |
* $fusiontablesService = new Google_FusiontablesService(...);
|
|
|
196 |
* $style = $fusiontablesService->style;
|
|
|
197 |
* </code>
|
|
|
198 |
*/
|
|
|
199 |
class Google_StyleServiceResource extends Google_ServiceResource {
|
|
|
200 |
|
|
|
201 |
|
|
|
202 |
/**
|
|
|
203 |
* Adds a new style for the table. (style.insert)
|
|
|
204 |
*
|
|
|
205 |
* @param string $tableId Table for which a new style is being added
|
|
|
206 |
* @param Google_StyleSetting $postBody
|
|
|
207 |
* @param array $optParams Optional parameters.
|
|
|
208 |
* @return Google_StyleSetting
|
|
|
209 |
*/
|
|
|
210 |
public function insert($tableId, Google_StyleSetting $postBody, $optParams = array()) {
|
|
|
211 |
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
|
|
212 |
$params = array_merge($params, $optParams);
|
|
|
213 |
$data = $this->__call('insert', array($params));
|
|
|
214 |
if ($this->useObjects()) {
|
|
|
215 |
return new Google_StyleSetting($data);
|
|
|
216 |
} else {
|
|
|
217 |
return $data;
|
|
|
218 |
}
|
|
|
219 |
}
|
|
|
220 |
/**
|
|
|
221 |
* Gets a specific style. (style.get)
|
|
|
222 |
*
|
|
|
223 |
* @param string $tableId Table to which the requested style belongs
|
|
|
224 |
* @param int $styleId Identifier (integer) for a specific style in a table
|
|
|
225 |
* @param array $optParams Optional parameters.
|
|
|
226 |
* @return Google_StyleSetting
|
|
|
227 |
*/
|
|
|
228 |
public function get($tableId, $styleId, $optParams = array()) {
|
|
|
229 |
$params = array('tableId' => $tableId, 'styleId' => $styleId);
|
|
|
230 |
$params = array_merge($params, $optParams);
|
|
|
231 |
$data = $this->__call('get', array($params));
|
|
|
232 |
if ($this->useObjects()) {
|
|
|
233 |
return new Google_StyleSetting($data);
|
|
|
234 |
} else {
|
|
|
235 |
return $data;
|
|
|
236 |
}
|
|
|
237 |
}
|
|
|
238 |
/**
|
|
|
239 |
* Retrieves a list of styles. (style.list)
|
|
|
240 |
*
|
|
|
241 |
* @param string $tableId Table whose styles are being listed
|
|
|
242 |
* @param array $optParams Optional parameters.
|
|
|
243 |
*
|
|
|
244 |
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
|
|
245 |
* @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
|
|
|
246 |
* @return Google_StyleSettingList
|
|
|
247 |
*/
|
|
|
248 |
public function listStyle($tableId, $optParams = array()) {
|
|
|
249 |
$params = array('tableId' => $tableId);
|
|
|
250 |
$params = array_merge($params, $optParams);
|
|
|
251 |
$data = $this->__call('list', array($params));
|
|
|
252 |
if ($this->useObjects()) {
|
|
|
253 |
return new Google_StyleSettingList($data);
|
|
|
254 |
} else {
|
|
|
255 |
return $data;
|
|
|
256 |
}
|
|
|
257 |
}
|
|
|
258 |
/**
|
|
|
259 |
* Updates an existing style. (style.update)
|
|
|
260 |
*
|
|
|
261 |
* @param string $tableId Table whose style is being updated.
|
|
|
262 |
* @param int $styleId Identifier (within a table) for the style being updated.
|
|
|
263 |
* @param Google_StyleSetting $postBody
|
|
|
264 |
* @param array $optParams Optional parameters.
|
|
|
265 |
* @return Google_StyleSetting
|
|
|
266 |
*/
|
|
|
267 |
public function update($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
|
|
|
268 |
$params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
|
|
|
269 |
$params = array_merge($params, $optParams);
|
|
|
270 |
$data = $this->__call('update', array($params));
|
|
|
271 |
if ($this->useObjects()) {
|
|
|
272 |
return new Google_StyleSetting($data);
|
|
|
273 |
} else {
|
|
|
274 |
return $data;
|
|
|
275 |
}
|
|
|
276 |
}
|
|
|
277 |
/**
|
|
|
278 |
* Updates an existing style. This method supports patch semantics. (style.patch)
|
|
|
279 |
*
|
|
|
280 |
* @param string $tableId Table whose style is being updated.
|
|
|
281 |
* @param int $styleId Identifier (within a table) for the style being updated.
|
|
|
282 |
* @param Google_StyleSetting $postBody
|
|
|
283 |
* @param array $optParams Optional parameters.
|
|
|
284 |
* @return Google_StyleSetting
|
|
|
285 |
*/
|
|
|
286 |
public function patch($tableId, $styleId, Google_StyleSetting $postBody, $optParams = array()) {
|
|
|
287 |
$params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
|
|
|
288 |
$params = array_merge($params, $optParams);
|
|
|
289 |
$data = $this->__call('patch', array($params));
|
|
|
290 |
if ($this->useObjects()) {
|
|
|
291 |
return new Google_StyleSetting($data);
|
|
|
292 |
} else {
|
|
|
293 |
return $data;
|
|
|
294 |
}
|
|
|
295 |
}
|
|
|
296 |
/**
|
|
|
297 |
* Deletes a style. (style.delete)
|
|
|
298 |
*
|
|
|
299 |
* @param string $tableId Table from which the style is being deleted
|
|
|
300 |
* @param int $styleId Identifier (within a table) for the style being deleted
|
|
|
301 |
* @param array $optParams Optional parameters.
|
|
|
302 |
*/
|
|
|
303 |
public function delete($tableId, $styleId, $optParams = array()) {
|
|
|
304 |
$params = array('tableId' => $tableId, 'styleId' => $styleId);
|
|
|
305 |
$params = array_merge($params, $optParams);
|
|
|
306 |
$data = $this->__call('delete', array($params));
|
|
|
307 |
return $data;
|
|
|
308 |
}
|
|
|
309 |
}
|
|
|
310 |
|
|
|
311 |
/**
|
|
|
312 |
* The "template" collection of methods.
|
|
|
313 |
* Typical usage is:
|
|
|
314 |
* <code>
|
|
|
315 |
* $fusiontablesService = new Google_FusiontablesService(...);
|
|
|
316 |
* $template = $fusiontablesService->template;
|
|
|
317 |
* </code>
|
|
|
318 |
*/
|
|
|
319 |
class Google_TemplateServiceResource extends Google_ServiceResource {
|
|
|
320 |
|
|
|
321 |
|
|
|
322 |
/**
|
|
|
323 |
* Creates a new template for the table. (template.insert)
|
|
|
324 |
*
|
|
|
325 |
* @param string $tableId Table for which a new template is being created
|
|
|
326 |
* @param Google_Template $postBody
|
|
|
327 |
* @param array $optParams Optional parameters.
|
|
|
328 |
* @return Google_Template
|
|
|
329 |
*/
|
|
|
330 |
public function insert($tableId, Google_Template $postBody, $optParams = array()) {
|
|
|
331 |
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
|
|
332 |
$params = array_merge($params, $optParams);
|
|
|
333 |
$data = $this->__call('insert', array($params));
|
|
|
334 |
if ($this->useObjects()) {
|
|
|
335 |
return new Google_Template($data);
|
|
|
336 |
} else {
|
|
|
337 |
return $data;
|
|
|
338 |
}
|
|
|
339 |
}
|
|
|
340 |
/**
|
|
|
341 |
* Retrieves a specific template by its id (template.get)
|
|
|
342 |
*
|
|
|
343 |
* @param string $tableId Table to which the template belongs
|
|
|
344 |
* @param int $templateId Identifier for the template that is being requested
|
|
|
345 |
* @param array $optParams Optional parameters.
|
|
|
346 |
* @return Google_Template
|
|
|
347 |
*/
|
|
|
348 |
public function get($tableId, $templateId, $optParams = array()) {
|
|
|
349 |
$params = array('tableId' => $tableId, 'templateId' => $templateId);
|
|
|
350 |
$params = array_merge($params, $optParams);
|
|
|
351 |
$data = $this->__call('get', array($params));
|
|
|
352 |
if ($this->useObjects()) {
|
|
|
353 |
return new Google_Template($data);
|
|
|
354 |
} else {
|
|
|
355 |
return $data;
|
|
|
356 |
}
|
|
|
357 |
}
|
|
|
358 |
/**
|
|
|
359 |
* Retrieves a list of templates. (template.list)
|
|
|
360 |
*
|
|
|
361 |
* @param string $tableId Identifier for the table whose templates are being requested
|
|
|
362 |
* @param array $optParams Optional parameters.
|
|
|
363 |
*
|
|
|
364 |
* @opt_param string pageToken Continuation token specifying which results page to return. Optional.
|
|
|
365 |
* @opt_param string maxResults Maximum number of templates to return. Optional. Default is 5.
|
|
|
366 |
* @return Google_TemplateList
|
|
|
367 |
*/
|
|
|
368 |
public function listTemplate($tableId, $optParams = array()) {
|
|
|
369 |
$params = array('tableId' => $tableId);
|
|
|
370 |
$params = array_merge($params, $optParams);
|
|
|
371 |
$data = $this->__call('list', array($params));
|
|
|
372 |
if ($this->useObjects()) {
|
|
|
373 |
return new Google_TemplateList($data);
|
|
|
374 |
} else {
|
|
|
375 |
return $data;
|
|
|
376 |
}
|
|
|
377 |
}
|
|
|
378 |
/**
|
|
|
379 |
* Updates an existing template (template.update)
|
|
|
380 |
*
|
|
|
381 |
* @param string $tableId Table to which the updated template belongs
|
|
|
382 |
* @param int $templateId Identifier for the template that is being updated
|
|
|
383 |
* @param Google_Template $postBody
|
|
|
384 |
* @param array $optParams Optional parameters.
|
|
|
385 |
* @return Google_Template
|
|
|
386 |
*/
|
|
|
387 |
public function update($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
|
|
|
388 |
$params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
|
|
|
389 |
$params = array_merge($params, $optParams);
|
|
|
390 |
$data = $this->__call('update', array($params));
|
|
|
391 |
if ($this->useObjects()) {
|
|
|
392 |
return new Google_Template($data);
|
|
|
393 |
} else {
|
|
|
394 |
return $data;
|
|
|
395 |
}
|
|
|
396 |
}
|
|
|
397 |
/**
|
|
|
398 |
* Updates an existing template. This method supports patch semantics. (template.patch)
|
|
|
399 |
*
|
|
|
400 |
* @param string $tableId Table to which the updated template belongs
|
|
|
401 |
* @param int $templateId Identifier for the template that is being updated
|
|
|
402 |
* @param Google_Template $postBody
|
|
|
403 |
* @param array $optParams Optional parameters.
|
|
|
404 |
* @return Google_Template
|
|
|
405 |
*/
|
|
|
406 |
public function patch($tableId, $templateId, Google_Template $postBody, $optParams = array()) {
|
|
|
407 |
$params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
|
|
|
408 |
$params = array_merge($params, $optParams);
|
|
|
409 |
$data = $this->__call('patch', array($params));
|
|
|
410 |
if ($this->useObjects()) {
|
|
|
411 |
return new Google_Template($data);
|
|
|
412 |
} else {
|
|
|
413 |
return $data;
|
|
|
414 |
}
|
|
|
415 |
}
|
|
|
416 |
/**
|
|
|
417 |
* Deletes a template (template.delete)
|
|
|
418 |
*
|
|
|
419 |
* @param string $tableId Table from which the template is being deleted
|
|
|
420 |
* @param int $templateId Identifier for the template which is being deleted
|
|
|
421 |
* @param array $optParams Optional parameters.
|
|
|
422 |
*/
|
|
|
423 |
public function delete($tableId, $templateId, $optParams = array()) {
|
|
|
424 |
$params = array('tableId' => $tableId, 'templateId' => $templateId);
|
|
|
425 |
$params = array_merge($params, $optParams);
|
|
|
426 |
$data = $this->__call('delete', array($params));
|
|
|
427 |
return $data;
|
|
|
428 |
}
|
|
|
429 |
}
|
|
|
430 |
|
|
|
431 |
/**
|
|
|
432 |
* The "table" collection of methods.
|
|
|
433 |
* Typical usage is:
|
|
|
434 |
* <code>
|
|
|
435 |
* $fusiontablesService = new Google_FusiontablesService(...);
|
|
|
436 |
* $table = $fusiontablesService->table;
|
|
|
437 |
* </code>
|
|
|
438 |
*/
|
|
|
439 |
class Google_TableServiceResource extends Google_ServiceResource {
|
|
|
440 |
|
|
|
441 |
|
|
|
442 |
/**
|
|
|
443 |
* Creates a new table. (table.insert)
|
|
|
444 |
*
|
|
|
445 |
* @param Google_Table $postBody
|
|
|
446 |
* @param array $optParams Optional parameters.
|
|
|
447 |
* @return Google_Table
|
|
|
448 |
*/
|
|
|
449 |
public function insert(Google_Table $postBody, $optParams = array()) {
|
|
|
450 |
$params = array('postBody' => $postBody);
|
|
|
451 |
$params = array_merge($params, $optParams);
|
|
|
452 |
$data = $this->__call('insert', array($params));
|
|
|
453 |
if ($this->useObjects()) {
|
|
|
454 |
return new Google_Table($data);
|
|
|
455 |
} else {
|
|
|
456 |
return $data;
|
|
|
457 |
}
|
|
|
458 |
}
|
|
|
459 |
/**
|
|
|
460 |
* Retrieves a specific table by its id. (table.get)
|
|
|
461 |
*
|
|
|
462 |
* @param string $tableId Identifier(ID) for the table being requested.
|
|
|
463 |
* @param array $optParams Optional parameters.
|
|
|
464 |
* @return Google_Table
|
|
|
465 |
*/
|
|
|
466 |
public function get($tableId, $optParams = array()) {
|
|
|
467 |
$params = array('tableId' => $tableId);
|
|
|
468 |
$params = array_merge($params, $optParams);
|
|
|
469 |
$data = $this->__call('get', array($params));
|
|
|
470 |
if ($this->useObjects()) {
|
|
|
471 |
return new Google_Table($data);
|
|
|
472 |
} else {
|
|
|
473 |
return $data;
|
|
|
474 |
}
|
|
|
475 |
}
|
|
|
476 |
/**
|
|
|
477 |
* Retrieves a list of tables a user owns. (table.list)
|
|
|
478 |
*
|
|
|
479 |
* @param array $optParams Optional parameters.
|
|
|
480 |
*
|
|
|
481 |
* @opt_param string pageToken Continuation token specifying which result page to return. Optional.
|
|
|
482 |
* @opt_param string maxResults Maximum number of styles to return. Optional. Default is 5.
|
|
|
483 |
* @return Google_TableList
|
|
|
484 |
*/
|
|
|
485 |
public function listTable($optParams = array()) {
|
|
|
486 |
$params = array();
|
|
|
487 |
$params = array_merge($params, $optParams);
|
|
|
488 |
$data = $this->__call('list', array($params));
|
|
|
489 |
if ($this->useObjects()) {
|
|
|
490 |
return new Google_TableList($data);
|
|
|
491 |
} else {
|
|
|
492 |
return $data;
|
|
|
493 |
}
|
|
|
494 |
}
|
|
|
495 |
/**
|
|
|
496 |
* Updates an existing table. Unless explicitly requested, only the name, description, and
|
|
|
497 |
* attribution will be updated. (table.update)
|
|
|
498 |
*
|
|
|
499 |
* @param string $tableId Id of the table that is being updated.
|
|
|
500 |
* @param Google_Table $postBody
|
|
|
501 |
* @param array $optParams Optional parameters.
|
|
|
502 |
*
|
|
|
503 |
* @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
|
|
|
504 |
* @return Google_Table
|
|
|
505 |
*/
|
|
|
506 |
public function update($tableId, Google_Table $postBody, $optParams = array()) {
|
|
|
507 |
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
|
|
508 |
$params = array_merge($params, $optParams);
|
|
|
509 |
$data = $this->__call('update', array($params));
|
|
|
510 |
if ($this->useObjects()) {
|
|
|
511 |
return new Google_Table($data);
|
|
|
512 |
} else {
|
|
|
513 |
return $data;
|
|
|
514 |
}
|
|
|
515 |
}
|
|
|
516 |
/**
|
|
|
517 |
* Updates an existing table. Unless explicitly requested, only the name, description, and
|
|
|
518 |
* attribution will be updated. This method supports patch semantics. (table.patch)
|
|
|
519 |
*
|
|
|
520 |
* @param string $tableId Id of the table that is being updated.
|
|
|
521 |
* @param Google_Table $postBody
|
|
|
522 |
* @param array $optParams Optional parameters.
|
|
|
523 |
*
|
|
|
524 |
* @opt_param bool replaceViewDefinition Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
|
|
|
525 |
* @return Google_Table
|
|
|
526 |
*/
|
|
|
527 |
public function patch($tableId, Google_Table $postBody, $optParams = array()) {
|
|
|
528 |
$params = array('tableId' => $tableId, 'postBody' => $postBody);
|
|
|
529 |
$params = array_merge($params, $optParams);
|
|
|
530 |
$data = $this->__call('patch', array($params));
|
|
|
531 |
if ($this->useObjects()) {
|
|
|
532 |
return new Google_Table($data);
|
|
|
533 |
} else {
|
|
|
534 |
return $data;
|
|
|
535 |
}
|
|
|
536 |
}
|
|
|
537 |
/**
|
|
|
538 |
* Deletes a table. (table.delete)
|
|
|
539 |
*
|
|
|
540 |
* @param string $tableId Id of the table that is being deleted.
|
|
|
541 |
* @param array $optParams Optional parameters.
|
|
|
542 |
*/
|
|
|
543 |
public function delete($tableId, $optParams = array()) {
|
|
|
544 |
$params = array('tableId' => $tableId);
|
|
|
545 |
$params = array_merge($params, $optParams);
|
|
|
546 |
$data = $this->__call('delete', array($params));
|
|
|
547 |
return $data;
|
|
|
548 |
}
|
|
|
549 |
}
|
|
|
550 |
|
|
|
551 |
/**
|
|
|
552 |
* Service definition for Google_Fusiontables (v1).
|
|
|
553 |
*
|
|
|
554 |
* <p>
|
|
|
555 |
* API for working with Fusion Tables data.
|
|
|
556 |
* </p>
|
|
|
557 |
*
|
|
|
558 |
* <p>
|
|
|
559 |
* For more information about this service, see the
|
|
|
560 |
* <a href="https://developers.google.com/fusiontables" target="_blank">API Documentation</a>
|
|
|
561 |
* </p>
|
|
|
562 |
*
|
|
|
563 |
* @author Google, Inc.
|
|
|
564 |
*/
|
|
|
565 |
class Google_FusiontablesService extends Google_Service {
|
|
|
566 |
public $column;
|
|
|
567 |
public $query;
|
|
|
568 |
public $style;
|
|
|
569 |
public $template;
|
|
|
570 |
public $table;
|
|
|
571 |
/**
|
|
|
572 |
* Constructs the internal representation of the Fusiontables service.
|
|
|
573 |
*
|
|
|
574 |
* @param Google_Client $client
|
|
|
575 |
*/
|
|
|
576 |
public function __construct(Google_Client $client) {
|
|
|
577 |
$this->servicePath = 'fusiontables/v1/';
|
|
|
578 |
$this->version = 'v1';
|
|
|
579 |
$this->serviceName = 'fusiontables';
|
|
|
580 |
|
|
|
581 |
$client->addService($this->serviceName, $this->version);
|
|
|
582 |
$this->column = new Google_ColumnServiceResource($this, $this->serviceName, 'column', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "POST", "path": "tables/{tableId}/columns", "id": "fusiontables.column.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.column.get", "httpMethod": "GET", "path": "tables/{tableId}/columns/{columnId}", "response": {"$ref": "Column"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.column.list", "httpMethod": "GET", "path": "tables/{tableId}/columns", "response": {"$ref": "ColumnList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PUT", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Column"}, "response": {"$ref": "Column"}, "httpMethod": "PATCH", "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/columns/{columnId}", "id": "fusiontables.column.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "columnId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
583 |
$this->query = new Google_QueryServiceResource($this, $this->serviceName, 'query', json_decode('{"methods": {"sqlGet": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sqlGet", "httpMethod": "GET", "path": "query", "response": {"$ref": "Sqlresponse"}}, "sql": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"typed": {"type": "boolean", "location": "query"}, "hdrs": {"type": "boolean", "location": "query"}, "sql": {"required": true, "type": "string", "location": "query"}}, "id": "fusiontables.query.sql", "httpMethod": "POST", "path": "query", "response": {"$ref": "Sqlresponse"}}}}', true));
|
|
|
584 |
$this->style = new Google_StyleServiceResource($this, $this->serviceName, 'style', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "POST", "path": "tables/{tableId}/styles", "id": "fusiontables.style.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.style.get", "httpMethod": "GET", "path": "tables/{tableId}/styles/{styleId}", "response": {"$ref": "StyleSetting"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.style.list", "httpMethod": "GET", "path": "tables/{tableId}/styles", "response": {"$ref": "StyleSettingList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PUT", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "StyleSetting"}, "response": {"$ref": "StyleSetting"}, "httpMethod": "PATCH", "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/styles/{styleId}", "id": "fusiontables.style.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "styleId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
585 |
$this->template = new Google_TemplateServiceResource($this, $this->serviceName, 'template', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "POST", "path": "tables/{tableId}/templates", "id": "fusiontables.template.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "id": "fusiontables.template.get", "httpMethod": "GET", "path": "tables/{tableId}/templates/{templateId}", "response": {"$ref": "Template"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "id": "fusiontables.template.list", "httpMethod": "GET", "path": "tables/{tableId}/templates", "response": {"$ref": "TemplateList"}}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PUT", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "request": {"$ref": "Template"}, "response": {"$ref": "Template"}, "httpMethod": "PATCH", "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}/templates/{templateId}", "id": "fusiontables.template.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}, "templateId": {"required": true, "type": "integer", "location": "path", "format": "int32"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
586 |
$this->table = new Google_TableServiceResource($this, $this->serviceName, 'table', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "POST", "path": "tables", "id": "fusiontables.table.insert"}, "get": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "id": "fusiontables.table.get", "httpMethod": "GET", "path": "tables/{tableId}", "response": {"$ref": "Table"}}, "list": {"scopes": ["https://www.googleapis.com/auth/fusiontables", "https://www.googleapis.com/auth/fusiontables.readonly"], "parameters": {"pageToken": {"type": "string", "location": "query"}, "maxResults": {"minimum": "0", "type": "integer", "location": "query", "format": "uint32"}}, "response": {"$ref": "TableList"}, "httpMethod": "GET", "path": "tables", "id": "fusiontables.table.list"}, "update": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PUT", "path": "tables/{tableId}", "id": "fusiontables.table.update"}, "patch": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "parameters": {"replaceViewDefinition": {"type": "boolean", "location": "query"}, "tableId": {"required": true, "type": "string", "location": "path"}}, "request": {"$ref": "Table"}, "response": {"$ref": "Table"}, "httpMethod": "PATCH", "path": "tables/{tableId}", "id": "fusiontables.table.patch"}, "delete": {"scopes": ["https://www.googleapis.com/auth/fusiontables"], "path": "tables/{tableId}", "id": "fusiontables.table.delete", "parameters": {"tableId": {"required": true, "type": "string", "location": "path"}}, "httpMethod": "DELETE"}}}', true));
|
|
|
587 |
|
|
|
588 |
}
|
|
|
589 |
}
|
|
|
590 |
|
|
|
591 |
class Google_Bucket extends Google_Model {
|
|
|
592 |
public $opacity;
|
|
|
593 |
public $weight;
|
|
|
594 |
public $min;
|
|
|
595 |
public $color;
|
|
|
596 |
public $max;
|
|
|
597 |
public $icon;
|
|
|
598 |
public function setOpacity($opacity) {
|
|
|
599 |
$this->opacity = $opacity;
|
|
|
600 |
}
|
|
|
601 |
public function getOpacity() {
|
|
|
602 |
return $this->opacity;
|
|
|
603 |
}
|
|
|
604 |
public function setWeight($weight) {
|
|
|
605 |
$this->weight = $weight;
|
|
|
606 |
}
|
|
|
607 |
public function getWeight() {
|
|
|
608 |
return $this->weight;
|
|
|
609 |
}
|
|
|
610 |
public function setMin($min) {
|
|
|
611 |
$this->min = $min;
|
|
|
612 |
}
|
|
|
613 |
public function getMin() {
|
|
|
614 |
return $this->min;
|
|
|
615 |
}
|
|
|
616 |
public function setColor($color) {
|
|
|
617 |
$this->color = $color;
|
|
|
618 |
}
|
|
|
619 |
public function getColor() {
|
|
|
620 |
return $this->color;
|
|
|
621 |
}
|
|
|
622 |
public function setMax($max) {
|
|
|
623 |
$this->max = $max;
|
|
|
624 |
}
|
|
|
625 |
public function getMax() {
|
|
|
626 |
return $this->max;
|
|
|
627 |
}
|
|
|
628 |
public function setIcon($icon) {
|
|
|
629 |
$this->icon = $icon;
|
|
|
630 |
}
|
|
|
631 |
public function getIcon() {
|
|
|
632 |
return $this->icon;
|
|
|
633 |
}
|
|
|
634 |
}
|
|
|
635 |
|
|
|
636 |
class Google_Column extends Google_Model {
|
|
|
637 |
public $kind;
|
|
|
638 |
public $type;
|
|
|
639 |
public $columnId;
|
|
|
640 |
public $name;
|
|
|
641 |
protected $__baseColumnType = 'Google_ColumnBaseColumn';
|
|
|
642 |
protected $__baseColumnDataType = '';
|
|
|
643 |
public $baseColumn;
|
|
|
644 |
public function setKind($kind) {
|
|
|
645 |
$this->kind = $kind;
|
|
|
646 |
}
|
|
|
647 |
public function getKind() {
|
|
|
648 |
return $this->kind;
|
|
|
649 |
}
|
|
|
650 |
public function setType($type) {
|
|
|
651 |
$this->type = $type;
|
|
|
652 |
}
|
|
|
653 |
public function getType() {
|
|
|
654 |
return $this->type;
|
|
|
655 |
}
|
|
|
656 |
public function setColumnId($columnId) {
|
|
|
657 |
$this->columnId = $columnId;
|
|
|
658 |
}
|
|
|
659 |
public function getColumnId() {
|
|
|
660 |
return $this->columnId;
|
|
|
661 |
}
|
|
|
662 |
public function setName($name) {
|
|
|
663 |
$this->name = $name;
|
|
|
664 |
}
|
|
|
665 |
public function getName() {
|
|
|
666 |
return $this->name;
|
|
|
667 |
}
|
|
|
668 |
public function setBaseColumn(Google_ColumnBaseColumn $baseColumn) {
|
|
|
669 |
$this->baseColumn = $baseColumn;
|
|
|
670 |
}
|
|
|
671 |
public function getBaseColumn() {
|
|
|
672 |
return $this->baseColumn;
|
|
|
673 |
}
|
|
|
674 |
}
|
|
|
675 |
|
|
|
676 |
class Google_ColumnBaseColumn extends Google_Model {
|
|
|
677 |
public $tableIndex;
|
|
|
678 |
public $columnId;
|
|
|
679 |
public function setTableIndex($tableIndex) {
|
|
|
680 |
$this->tableIndex = $tableIndex;
|
|
|
681 |
}
|
|
|
682 |
public function getTableIndex() {
|
|
|
683 |
return $this->tableIndex;
|
|
|
684 |
}
|
|
|
685 |
public function setColumnId($columnId) {
|
|
|
686 |
$this->columnId = $columnId;
|
|
|
687 |
}
|
|
|
688 |
public function getColumnId() {
|
|
|
689 |
return $this->columnId;
|
|
|
690 |
}
|
|
|
691 |
}
|
|
|
692 |
|
|
|
693 |
class Google_ColumnList extends Google_Model {
|
|
|
694 |
public $nextPageToken;
|
|
|
695 |
protected $__itemsType = 'Google_Column';
|
|
|
696 |
protected $__itemsDataType = 'array';
|
|
|
697 |
public $items;
|
|
|
698 |
public $kind;
|
|
|
699 |
public $totalItems;
|
|
|
700 |
public function setNextPageToken($nextPageToken) {
|
|
|
701 |
$this->nextPageToken = $nextPageToken;
|
|
|
702 |
}
|
|
|
703 |
public function getNextPageToken() {
|
|
|
704 |
return $this->nextPageToken;
|
|
|
705 |
}
|
|
|
706 |
public function setItems(/* array(Google_Column) */ $items) {
|
|
|
707 |
$this->assertIsArray($items, 'Google_Column', __METHOD__);
|
|
|
708 |
$this->items = $items;
|
|
|
709 |
}
|
|
|
710 |
public function getItems() {
|
|
|
711 |
return $this->items;
|
|
|
712 |
}
|
|
|
713 |
public function setKind($kind) {
|
|
|
714 |
$this->kind = $kind;
|
|
|
715 |
}
|
|
|
716 |
public function getKind() {
|
|
|
717 |
return $this->kind;
|
|
|
718 |
}
|
|
|
719 |
public function setTotalItems($totalItems) {
|
|
|
720 |
$this->totalItems = $totalItems;
|
|
|
721 |
}
|
|
|
722 |
public function getTotalItems() {
|
|
|
723 |
return $this->totalItems;
|
|
|
724 |
}
|
|
|
725 |
}
|
|
|
726 |
|
|
|
727 |
class Google_Geometry extends Google_Model {
|
|
|
728 |
public $geometry;
|
|
|
729 |
public $type;
|
|
|
730 |
public $geometries;
|
|
|
731 |
public function setGeometry($geometry) {
|
|
|
732 |
$this->geometry = $geometry;
|
|
|
733 |
}
|
|
|
734 |
public function getGeometry() {
|
|
|
735 |
return $this->geometry;
|
|
|
736 |
}
|
|
|
737 |
public function setType($type) {
|
|
|
738 |
$this->type = $type;
|
|
|
739 |
}
|
|
|
740 |
public function getType() {
|
|
|
741 |
return $this->type;
|
|
|
742 |
}
|
|
|
743 |
public function setGeometries(/* array(Google_object) */ $geometries) {
|
|
|
744 |
$this->assertIsArray($geometries, 'Google_object', __METHOD__);
|
|
|
745 |
$this->geometries = $geometries;
|
|
|
746 |
}
|
|
|
747 |
public function getGeometries() {
|
|
|
748 |
return $this->geometries;
|
|
|
749 |
}
|
|
|
750 |
}
|
|
|
751 |
|
|
|
752 |
class Google_Line extends Google_Model {
|
|
|
753 |
public $type;
|
|
|
754 |
public $coordinates;
|
|
|
755 |
public function setType($type) {
|
|
|
756 |
$this->type = $type;
|
|
|
757 |
}
|
|
|
758 |
public function getType() {
|
|
|
759 |
return $this->type;
|
|
|
760 |
}
|
|
|
761 |
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
|
|
762 |
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
|
|
763 |
$this->coordinates = $coordinates;
|
|
|
764 |
}
|
|
|
765 |
public function getCoordinates() {
|
|
|
766 |
return $this->coordinates;
|
|
|
767 |
}
|
|
|
768 |
}
|
|
|
769 |
|
|
|
770 |
class Google_LineStyle extends Google_Model {
|
|
|
771 |
public $strokeWeight;
|
|
|
772 |
protected $__strokeWeightStylerType = 'Google_StyleFunction';
|
|
|
773 |
protected $__strokeWeightStylerDataType = '';
|
|
|
774 |
public $strokeWeightStyler;
|
|
|
775 |
public $strokeColor;
|
|
|
776 |
public $strokeOpacity;
|
|
|
777 |
protected $__strokeColorStylerType = 'Google_StyleFunction';
|
|
|
778 |
protected $__strokeColorStylerDataType = '';
|
|
|
779 |
public $strokeColorStyler;
|
|
|
780 |
public function setStrokeWeight($strokeWeight) {
|
|
|
781 |
$this->strokeWeight = $strokeWeight;
|
|
|
782 |
}
|
|
|
783 |
public function getStrokeWeight() {
|
|
|
784 |
return $this->strokeWeight;
|
|
|
785 |
}
|
|
|
786 |
public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
|
|
|
787 |
$this->strokeWeightStyler = $strokeWeightStyler;
|
|
|
788 |
}
|
|
|
789 |
public function getStrokeWeightStyler() {
|
|
|
790 |
return $this->strokeWeightStyler;
|
|
|
791 |
}
|
|
|
792 |
public function setStrokeColor($strokeColor) {
|
|
|
793 |
$this->strokeColor = $strokeColor;
|
|
|
794 |
}
|
|
|
795 |
public function getStrokeColor() {
|
|
|
796 |
return $this->strokeColor;
|
|
|
797 |
}
|
|
|
798 |
public function setStrokeOpacity($strokeOpacity) {
|
|
|
799 |
$this->strokeOpacity = $strokeOpacity;
|
|
|
800 |
}
|
|
|
801 |
public function getStrokeOpacity() {
|
|
|
802 |
return $this->strokeOpacity;
|
|
|
803 |
}
|
|
|
804 |
public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
|
|
|
805 |
$this->strokeColorStyler = $strokeColorStyler;
|
|
|
806 |
}
|
|
|
807 |
public function getStrokeColorStyler() {
|
|
|
808 |
return $this->strokeColorStyler;
|
|
|
809 |
}
|
|
|
810 |
}
|
|
|
811 |
|
|
|
812 |
class Google_Point extends Google_Model {
|
|
|
813 |
public $type;
|
|
|
814 |
public $coordinates;
|
|
|
815 |
public function setType($type) {
|
|
|
816 |
$this->type = $type;
|
|
|
817 |
}
|
|
|
818 |
public function getType() {
|
|
|
819 |
return $this->type;
|
|
|
820 |
}
|
|
|
821 |
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
|
|
822 |
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
|
|
823 |
$this->coordinates = $coordinates;
|
|
|
824 |
}
|
|
|
825 |
public function getCoordinates() {
|
|
|
826 |
return $this->coordinates;
|
|
|
827 |
}
|
|
|
828 |
}
|
|
|
829 |
|
|
|
830 |
class Google_PointStyle extends Google_Model {
|
|
|
831 |
protected $__iconStylerType = 'Google_StyleFunction';
|
|
|
832 |
protected $__iconStylerDataType = '';
|
|
|
833 |
public $iconStyler;
|
|
|
834 |
public $iconName;
|
|
|
835 |
public function setIconStyler(Google_StyleFunction $iconStyler) {
|
|
|
836 |
$this->iconStyler = $iconStyler;
|
|
|
837 |
}
|
|
|
838 |
public function getIconStyler() {
|
|
|
839 |
return $this->iconStyler;
|
|
|
840 |
}
|
|
|
841 |
public function setIconName($iconName) {
|
|
|
842 |
$this->iconName = $iconName;
|
|
|
843 |
}
|
|
|
844 |
public function getIconName() {
|
|
|
845 |
return $this->iconName;
|
|
|
846 |
}
|
|
|
847 |
}
|
|
|
848 |
|
|
|
849 |
class Google_Polygon extends Google_Model {
|
|
|
850 |
public $type;
|
|
|
851 |
public $coordinates;
|
|
|
852 |
public function setType($type) {
|
|
|
853 |
$this->type = $type;
|
|
|
854 |
}
|
|
|
855 |
public function getType() {
|
|
|
856 |
return $this->type;
|
|
|
857 |
}
|
|
|
858 |
public function setCoordinates(/* array(Google_double) */ $coordinates) {
|
|
|
859 |
$this->assertIsArray($coordinates, 'Google_double', __METHOD__);
|
|
|
860 |
$this->coordinates = $coordinates;
|
|
|
861 |
}
|
|
|
862 |
public function getCoordinates() {
|
|
|
863 |
return $this->coordinates;
|
|
|
864 |
}
|
|
|
865 |
}
|
|
|
866 |
|
|
|
867 |
class Google_PolygonStyle extends Google_Model {
|
|
|
868 |
protected $__strokeColorStylerType = 'Google_StyleFunction';
|
|
|
869 |
protected $__strokeColorStylerDataType = '';
|
|
|
870 |
public $strokeColorStyler;
|
|
|
871 |
public $strokeWeight;
|
|
|
872 |
public $strokeOpacity;
|
|
|
873 |
protected $__strokeWeightStylerType = 'Google_StyleFunction';
|
|
|
874 |
protected $__strokeWeightStylerDataType = '';
|
|
|
875 |
public $strokeWeightStyler;
|
|
|
876 |
protected $__fillColorStylerType = 'Google_StyleFunction';
|
|
|
877 |
protected $__fillColorStylerDataType = '';
|
|
|
878 |
public $fillColorStyler;
|
|
|
879 |
public $fillColor;
|
|
|
880 |
public $strokeColor;
|
|
|
881 |
public $fillOpacity;
|
|
|
882 |
public function setStrokeColorStyler(Google_StyleFunction $strokeColorStyler) {
|
|
|
883 |
$this->strokeColorStyler = $strokeColorStyler;
|
|
|
884 |
}
|
|
|
885 |
public function getStrokeColorStyler() {
|
|
|
886 |
return $this->strokeColorStyler;
|
|
|
887 |
}
|
|
|
888 |
public function setStrokeWeight($strokeWeight) {
|
|
|
889 |
$this->strokeWeight = $strokeWeight;
|
|
|
890 |
}
|
|
|
891 |
public function getStrokeWeight() {
|
|
|
892 |
return $this->strokeWeight;
|
|
|
893 |
}
|
|
|
894 |
public function setStrokeOpacity($strokeOpacity) {
|
|
|
895 |
$this->strokeOpacity = $strokeOpacity;
|
|
|
896 |
}
|
|
|
897 |
public function getStrokeOpacity() {
|
|
|
898 |
return $this->strokeOpacity;
|
|
|
899 |
}
|
|
|
900 |
public function setStrokeWeightStyler(Google_StyleFunction $strokeWeightStyler) {
|
|
|
901 |
$this->strokeWeightStyler = $strokeWeightStyler;
|
|
|
902 |
}
|
|
|
903 |
public function getStrokeWeightStyler() {
|
|
|
904 |
return $this->strokeWeightStyler;
|
|
|
905 |
}
|
|
|
906 |
public function setFillColorStyler(Google_StyleFunction $fillColorStyler) {
|
|
|
907 |
$this->fillColorStyler = $fillColorStyler;
|
|
|
908 |
}
|
|
|
909 |
public function getFillColorStyler() {
|
|
|
910 |
return $this->fillColorStyler;
|
|
|
911 |
}
|
|
|
912 |
public function setFillColor($fillColor) {
|
|
|
913 |
$this->fillColor = $fillColor;
|
|
|
914 |
}
|
|
|
915 |
public function getFillColor() {
|
|
|
916 |
return $this->fillColor;
|
|
|
917 |
}
|
|
|
918 |
public function setStrokeColor($strokeColor) {
|
|
|
919 |
$this->strokeColor = $strokeColor;
|
|
|
920 |
}
|
|
|
921 |
public function getStrokeColor() {
|
|
|
922 |
return $this->strokeColor;
|
|
|
923 |
}
|
|
|
924 |
public function setFillOpacity($fillOpacity) {
|
|
|
925 |
$this->fillOpacity = $fillOpacity;
|
|
|
926 |
}
|
|
|
927 |
public function getFillOpacity() {
|
|
|
928 |
return $this->fillOpacity;
|
|
|
929 |
}
|
|
|
930 |
}
|
|
|
931 |
|
|
|
932 |
class Google_Sqlresponse extends Google_Model {
|
|
|
933 |
public $kind;
|
|
|
934 |
public $rows;
|
|
|
935 |
public $columns;
|
|
|
936 |
public function setKind($kind) {
|
|
|
937 |
$this->kind = $kind;
|
|
|
938 |
}
|
|
|
939 |
public function getKind() {
|
|
|
940 |
return $this->kind;
|
|
|
941 |
}
|
|
|
942 |
public function setRows(/* array(Google_object) */ $rows) {
|
|
|
943 |
$this->assertIsArray($rows, 'Google_object', __METHOD__);
|
|
|
944 |
$this->rows = $rows;
|
|
|
945 |
}
|
|
|
946 |
public function getRows() {
|
|
|
947 |
return $this->rows;
|
|
|
948 |
}
|
|
|
949 |
public function setColumns(/* array(Google_string) */ $columns) {
|
|
|
950 |
$this->assertIsArray($columns, 'Google_string', __METHOD__);
|
|
|
951 |
$this->columns = $columns;
|
|
|
952 |
}
|
|
|
953 |
public function getColumns() {
|
|
|
954 |
return $this->columns;
|
|
|
955 |
}
|
|
|
956 |
}
|
|
|
957 |
|
|
|
958 |
class Google_StyleFunction extends Google_Model {
|
|
|
959 |
protected $__gradientType = 'Google_StyleFunctionGradient';
|
|
|
960 |
protected $__gradientDataType = '';
|
|
|
961 |
public $gradient;
|
|
|
962 |
public $columnName;
|
|
|
963 |
protected $__bucketsType = 'Google_Bucket';
|
|
|
964 |
protected $__bucketsDataType = 'array';
|
|
|
965 |
public $buckets;
|
|
|
966 |
public $kind;
|
|
|
967 |
public function setGradient(Google_StyleFunctionGradient $gradient) {
|
|
|
968 |
$this->gradient = $gradient;
|
|
|
969 |
}
|
|
|
970 |
public function getGradient() {
|
|
|
971 |
return $this->gradient;
|
|
|
972 |
}
|
|
|
973 |
public function setColumnName($columnName) {
|
|
|
974 |
$this->columnName = $columnName;
|
|
|
975 |
}
|
|
|
976 |
public function getColumnName() {
|
|
|
977 |
return $this->columnName;
|
|
|
978 |
}
|
|
|
979 |
public function setBuckets(/* array(Google_Bucket) */ $buckets) {
|
|
|
980 |
$this->assertIsArray($buckets, 'Google_Bucket', __METHOD__);
|
|
|
981 |
$this->buckets = $buckets;
|
|
|
982 |
}
|
|
|
983 |
public function getBuckets() {
|
|
|
984 |
return $this->buckets;
|
|
|
985 |
}
|
|
|
986 |
public function setKind($kind) {
|
|
|
987 |
$this->kind = $kind;
|
|
|
988 |
}
|
|
|
989 |
public function getKind() {
|
|
|
990 |
return $this->kind;
|
|
|
991 |
}
|
|
|
992 |
}
|
|
|
993 |
|
|
|
994 |
class Google_StyleFunctionGradient extends Google_Model {
|
|
|
995 |
public $max;
|
|
|
996 |
protected $__colorsType = 'Google_StyleFunctionGradientColors';
|
|
|
997 |
protected $__colorsDataType = 'array';
|
|
|
998 |
public $colors;
|
|
|
999 |
public $min;
|
|
|
1000 |
public function setMax($max) {
|
|
|
1001 |
$this->max = $max;
|
|
|
1002 |
}
|
|
|
1003 |
public function getMax() {
|
|
|
1004 |
return $this->max;
|
|
|
1005 |
}
|
|
|
1006 |
public function setColors(/* array(Google_StyleFunctionGradientColors) */ $colors) {
|
|
|
1007 |
$this->assertIsArray($colors, 'Google_StyleFunctionGradientColors', __METHOD__);
|
|
|
1008 |
$this->colors = $colors;
|
|
|
1009 |
}
|
|
|
1010 |
public function getColors() {
|
|
|
1011 |
return $this->colors;
|
|
|
1012 |
}
|
|
|
1013 |
public function setMin($min) {
|
|
|
1014 |
$this->min = $min;
|
|
|
1015 |
}
|
|
|
1016 |
public function getMin() {
|
|
|
1017 |
return $this->min;
|
|
|
1018 |
}
|
|
|
1019 |
}
|
|
|
1020 |
|
|
|
1021 |
class Google_StyleFunctionGradientColors extends Google_Model {
|
|
|
1022 |
public $color;
|
|
|
1023 |
public $opacity;
|
|
|
1024 |
public function setColor($color) {
|
|
|
1025 |
$this->color = $color;
|
|
|
1026 |
}
|
|
|
1027 |
public function getColor() {
|
|
|
1028 |
return $this->color;
|
|
|
1029 |
}
|
|
|
1030 |
public function setOpacity($opacity) {
|
|
|
1031 |
$this->opacity = $opacity;
|
|
|
1032 |
}
|
|
|
1033 |
public function getOpacity() {
|
|
|
1034 |
return $this->opacity;
|
|
|
1035 |
}
|
|
|
1036 |
}
|
|
|
1037 |
|
|
|
1038 |
class Google_StyleSetting extends Google_Model {
|
|
|
1039 |
protected $__markerOptionsType = 'Google_PointStyle';
|
|
|
1040 |
protected $__markerOptionsDataType = '';
|
|
|
1041 |
public $markerOptions;
|
|
|
1042 |
public $kind;
|
|
|
1043 |
public $name;
|
|
|
1044 |
protected $__polygonOptionsType = 'Google_PolygonStyle';
|
|
|
1045 |
protected $__polygonOptionsDataType = '';
|
|
|
1046 |
public $polygonOptions;
|
|
|
1047 |
public $isDefaultForTable;
|
|
|
1048 |
protected $__polylineOptionsType = 'Google_LineStyle';
|
|
|
1049 |
protected $__polylineOptionsDataType = '';
|
|
|
1050 |
public $polylineOptions;
|
|
|
1051 |
public $tableId;
|
|
|
1052 |
public $styleId;
|
|
|
1053 |
public function setMarkerOptions(Google_PointStyle $markerOptions) {
|
|
|
1054 |
$this->markerOptions = $markerOptions;
|
|
|
1055 |
}
|
|
|
1056 |
public function getMarkerOptions() {
|
|
|
1057 |
return $this->markerOptions;
|
|
|
1058 |
}
|
|
|
1059 |
public function setKind($kind) {
|
|
|
1060 |
$this->kind = $kind;
|
|
|
1061 |
}
|
|
|
1062 |
public function getKind() {
|
|
|
1063 |
return $this->kind;
|
|
|
1064 |
}
|
|
|
1065 |
public function setName($name) {
|
|
|
1066 |
$this->name = $name;
|
|
|
1067 |
}
|
|
|
1068 |
public function getName() {
|
|
|
1069 |
return $this->name;
|
|
|
1070 |
}
|
|
|
1071 |
public function setPolygonOptions(Google_PolygonStyle $polygonOptions) {
|
|
|
1072 |
$this->polygonOptions = $polygonOptions;
|
|
|
1073 |
}
|
|
|
1074 |
public function getPolygonOptions() {
|
|
|
1075 |
return $this->polygonOptions;
|
|
|
1076 |
}
|
|
|
1077 |
public function setIsDefaultForTable($isDefaultForTable) {
|
|
|
1078 |
$this->isDefaultForTable = $isDefaultForTable;
|
|
|
1079 |
}
|
|
|
1080 |
public function getIsDefaultForTable() {
|
|
|
1081 |
return $this->isDefaultForTable;
|
|
|
1082 |
}
|
|
|
1083 |
public function setPolylineOptions(Google_LineStyle $polylineOptions) {
|
|
|
1084 |
$this->polylineOptions = $polylineOptions;
|
|
|
1085 |
}
|
|
|
1086 |
public function getPolylineOptions() {
|
|
|
1087 |
return $this->polylineOptions;
|
|
|
1088 |
}
|
|
|
1089 |
public function setTableId($tableId) {
|
|
|
1090 |
$this->tableId = $tableId;
|
|
|
1091 |
}
|
|
|
1092 |
public function getTableId() {
|
|
|
1093 |
return $this->tableId;
|
|
|
1094 |
}
|
|
|
1095 |
public function setStyleId($styleId) {
|
|
|
1096 |
$this->styleId = $styleId;
|
|
|
1097 |
}
|
|
|
1098 |
public function getStyleId() {
|
|
|
1099 |
return $this->styleId;
|
|
|
1100 |
}
|
|
|
1101 |
}
|
|
|
1102 |
|
|
|
1103 |
class Google_StyleSettingList extends Google_Model {
|
|
|
1104 |
public $nextPageToken;
|
|
|
1105 |
protected $__itemsType = 'Google_StyleSetting';
|
|
|
1106 |
protected $__itemsDataType = 'array';
|
|
|
1107 |
public $items;
|
|
|
1108 |
public $kind;
|
|
|
1109 |
public $totalItems;
|
|
|
1110 |
public function setNextPageToken($nextPageToken) {
|
|
|
1111 |
$this->nextPageToken = $nextPageToken;
|
|
|
1112 |
}
|
|
|
1113 |
public function getNextPageToken() {
|
|
|
1114 |
return $this->nextPageToken;
|
|
|
1115 |
}
|
|
|
1116 |
public function setItems(/* array(Google_StyleSetting) */ $items) {
|
|
|
1117 |
$this->assertIsArray($items, 'Google_StyleSetting', __METHOD__);
|
|
|
1118 |
$this->items = $items;
|
|
|
1119 |
}
|
|
|
1120 |
public function getItems() {
|
|
|
1121 |
return $this->items;
|
|
|
1122 |
}
|
|
|
1123 |
public function setKind($kind) {
|
|
|
1124 |
$this->kind = $kind;
|
|
|
1125 |
}
|
|
|
1126 |
public function getKind() {
|
|
|
1127 |
return $this->kind;
|
|
|
1128 |
}
|
|
|
1129 |
public function setTotalItems($totalItems) {
|
|
|
1130 |
$this->totalItems = $totalItems;
|
|
|
1131 |
}
|
|
|
1132 |
public function getTotalItems() {
|
|
|
1133 |
return $this->totalItems;
|
|
|
1134 |
}
|
|
|
1135 |
}
|
|
|
1136 |
|
|
|
1137 |
class Google_Table extends Google_Model {
|
|
|
1138 |
public $kind;
|
|
|
1139 |
public $attribution;
|
|
|
1140 |
public $description;
|
|
|
1141 |
public $isExportable;
|
|
|
1142 |
public $baseTableIds;
|
|
|
1143 |
public $attributionLink;
|
|
|
1144 |
public $sql;
|
|
|
1145 |
public $tableId;
|
|
|
1146 |
protected $__columnsType = 'Google_Column';
|
|
|
1147 |
protected $__columnsDataType = 'array';
|
|
|
1148 |
public $columns;
|
|
|
1149 |
public $name;
|
|
|
1150 |
public function setKind($kind) {
|
|
|
1151 |
$this->kind = $kind;
|
|
|
1152 |
}
|
|
|
1153 |
public function getKind() {
|
|
|
1154 |
return $this->kind;
|
|
|
1155 |
}
|
|
|
1156 |
public function setAttribution($attribution) {
|
|
|
1157 |
$this->attribution = $attribution;
|
|
|
1158 |
}
|
|
|
1159 |
public function getAttribution() {
|
|
|
1160 |
return $this->attribution;
|
|
|
1161 |
}
|
|
|
1162 |
public function setDescription($description) {
|
|
|
1163 |
$this->description = $description;
|
|
|
1164 |
}
|
|
|
1165 |
public function getDescription() {
|
|
|
1166 |
return $this->description;
|
|
|
1167 |
}
|
|
|
1168 |
public function setIsExportable($isExportable) {
|
|
|
1169 |
$this->isExportable = $isExportable;
|
|
|
1170 |
}
|
|
|
1171 |
public function getIsExportable() {
|
|
|
1172 |
return $this->isExportable;
|
|
|
1173 |
}
|
|
|
1174 |
public function setBaseTableIds(/* array(Google_string) */ $baseTableIds) {
|
|
|
1175 |
$this->assertIsArray($baseTableIds, 'Google_string', __METHOD__);
|
|
|
1176 |
$this->baseTableIds = $baseTableIds;
|
|
|
1177 |
}
|
|
|
1178 |
public function getBaseTableIds() {
|
|
|
1179 |
return $this->baseTableIds;
|
|
|
1180 |
}
|
|
|
1181 |
public function setAttributionLink($attributionLink) {
|
|
|
1182 |
$this->attributionLink = $attributionLink;
|
|
|
1183 |
}
|
|
|
1184 |
public function getAttributionLink() {
|
|
|
1185 |
return $this->attributionLink;
|
|
|
1186 |
}
|
|
|
1187 |
public function setSql($sql) {
|
|
|
1188 |
$this->sql = $sql;
|
|
|
1189 |
}
|
|
|
1190 |
public function getSql() {
|
|
|
1191 |
return $this->sql;
|
|
|
1192 |
}
|
|
|
1193 |
public function setTableId($tableId) {
|
|
|
1194 |
$this->tableId = $tableId;
|
|
|
1195 |
}
|
|
|
1196 |
public function getTableId() {
|
|
|
1197 |
return $this->tableId;
|
|
|
1198 |
}
|
|
|
1199 |
public function setColumns(/* array(Google_Column) */ $columns) {
|
|
|
1200 |
$this->assertIsArray($columns, 'Google_Column', __METHOD__);
|
|
|
1201 |
$this->columns = $columns;
|
|
|
1202 |
}
|
|
|
1203 |
public function getColumns() {
|
|
|
1204 |
return $this->columns;
|
|
|
1205 |
}
|
|
|
1206 |
public function setName($name) {
|
|
|
1207 |
$this->name = $name;
|
|
|
1208 |
}
|
|
|
1209 |
public function getName() {
|
|
|
1210 |
return $this->name;
|
|
|
1211 |
}
|
|
|
1212 |
}
|
|
|
1213 |
|
|
|
1214 |
class Google_TableList extends Google_Model {
|
|
|
1215 |
public $nextPageToken;
|
|
|
1216 |
protected $__itemsType = 'Google_Table';
|
|
|
1217 |
protected $__itemsDataType = 'array';
|
|
|
1218 |
public $items;
|
|
|
1219 |
public $kind;
|
|
|
1220 |
public function setNextPageToken($nextPageToken) {
|
|
|
1221 |
$this->nextPageToken = $nextPageToken;
|
|
|
1222 |
}
|
|
|
1223 |
public function getNextPageToken() {
|
|
|
1224 |
return $this->nextPageToken;
|
|
|
1225 |
}
|
|
|
1226 |
public function setItems(/* array(Google_Table) */ $items) {
|
|
|
1227 |
$this->assertIsArray($items, 'Google_Table', __METHOD__);
|
|
|
1228 |
$this->items = $items;
|
|
|
1229 |
}
|
|
|
1230 |
public function getItems() {
|
|
|
1231 |
return $this->items;
|
|
|
1232 |
}
|
|
|
1233 |
public function setKind($kind) {
|
|
|
1234 |
$this->kind = $kind;
|
|
|
1235 |
}
|
|
|
1236 |
public function getKind() {
|
|
|
1237 |
return $this->kind;
|
|
|
1238 |
}
|
|
|
1239 |
}
|
|
|
1240 |
|
|
|
1241 |
class Google_Template extends Google_Model {
|
|
|
1242 |
public $body;
|
|
|
1243 |
public $kind;
|
|
|
1244 |
public $name;
|
|
|
1245 |
public $automaticColumnNames;
|
|
|
1246 |
public $isDefaultForTable;
|
|
|
1247 |
public $tableId;
|
|
|
1248 |
public $templateId;
|
|
|
1249 |
public function setBody($body) {
|
|
|
1250 |
$this->body = $body;
|
|
|
1251 |
}
|
|
|
1252 |
public function getBody() {
|
|
|
1253 |
return $this->body;
|
|
|
1254 |
}
|
|
|
1255 |
public function setKind($kind) {
|
|
|
1256 |
$this->kind = $kind;
|
|
|
1257 |
}
|
|
|
1258 |
public function getKind() {
|
|
|
1259 |
return $this->kind;
|
|
|
1260 |
}
|
|
|
1261 |
public function setName($name) {
|
|
|
1262 |
$this->name = $name;
|
|
|
1263 |
}
|
|
|
1264 |
public function getName() {
|
|
|
1265 |
return $this->name;
|
|
|
1266 |
}
|
|
|
1267 |
public function setAutomaticColumnNames(/* array(Google_string) */ $automaticColumnNames) {
|
|
|
1268 |
$this->assertIsArray($automaticColumnNames, 'Google_string', __METHOD__);
|
|
|
1269 |
$this->automaticColumnNames = $automaticColumnNames;
|
|
|
1270 |
}
|
|
|
1271 |
public function getAutomaticColumnNames() {
|
|
|
1272 |
return $this->automaticColumnNames;
|
|
|
1273 |
}
|
|
|
1274 |
public function setIsDefaultForTable($isDefaultForTable) {
|
|
|
1275 |
$this->isDefaultForTable = $isDefaultForTable;
|
|
|
1276 |
}
|
|
|
1277 |
public function getIsDefaultForTable() {
|
|
|
1278 |
return $this->isDefaultForTable;
|
|
|
1279 |
}
|
|
|
1280 |
public function setTableId($tableId) {
|
|
|
1281 |
$this->tableId = $tableId;
|
|
|
1282 |
}
|
|
|
1283 |
public function getTableId() {
|
|
|
1284 |
return $this->tableId;
|
|
|
1285 |
}
|
|
|
1286 |
public function setTemplateId($templateId) {
|
|
|
1287 |
$this->templateId = $templateId;
|
|
|
1288 |
}
|
|
|
1289 |
public function getTemplateId() {
|
|
|
1290 |
return $this->templateId;
|
|
|
1291 |
}
|
|
|
1292 |
}
|
|
|
1293 |
|
|
|
1294 |
class Google_TemplateList extends Google_Model {
|
|
|
1295 |
public $nextPageToken;
|
|
|
1296 |
protected $__itemsType = 'Google_Template';
|
|
|
1297 |
protected $__itemsDataType = 'array';
|
|
|
1298 |
public $items;
|
|
|
1299 |
public $kind;
|
|
|
1300 |
public $totalItems;
|
|
|
1301 |
public function setNextPageToken($nextPageToken) {
|
|
|
1302 |
$this->nextPageToken = $nextPageToken;
|
|
|
1303 |
}
|
|
|
1304 |
public function getNextPageToken() {
|
|
|
1305 |
return $this->nextPageToken;
|
|
|
1306 |
}
|
|
|
1307 |
public function setItems(/* array(Google_Template) */ $items) {
|
|
|
1308 |
$this->assertIsArray($items, 'Google_Template', __METHOD__);
|
|
|
1309 |
$this->items = $items;
|
|
|
1310 |
}
|
|
|
1311 |
public function getItems() {
|
|
|
1312 |
return $this->items;
|
|
|
1313 |
}
|
|
|
1314 |
public function setKind($kind) {
|
|
|
1315 |
$this->kind = $kind;
|
|
|
1316 |
}
|
|
|
1317 |
public function getKind() {
|
|
|
1318 |
return $this->kind;
|
|
|
1319 |
}
|
|
|
1320 |
public function setTotalItems($totalItems) {
|
|
|
1321 |
$this->totalItems = $totalItems;
|
|
|
1322 |
}
|
|
|
1323 |
public function getTotalItems() {
|
|
|
1324 |
return $this->totalItems;
|
|
|
1325 |
}
|
|
|
1326 |
}
|