Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Differences Between: [Versions 310 and 402] [Versions 310 and 403]

   1  <?php
   2  /*
   3   * Copyright 2010 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  /**
  19   * Service definition for Fusiontables (v2).
  20   *
  21   * <p>
  22   * API for working with Fusion Tables data.</p>
  23   *
  24   * <p>
  25   * For more information about this service, see the API
  26   * <a href="https://developers.google.com/fusiontables" target="_blank">Documentation</a>
  27   * </p>
  28   *
  29   * @author Google, Inc.
  30   */
  31  class Google_Service_Fusiontables extends Google_Service
  32  {
  33    /** Manage your Fusion Tables. */
  34    const FUSIONTABLES =
  35        "https://www.googleapis.com/auth/fusiontables";
  36    /** View your Fusion Tables. */
  37    const FUSIONTABLES_READONLY =
  38        "https://www.googleapis.com/auth/fusiontables.readonly";
  39  
  40    public $column;
  41    public $query;
  42    public $style;
  43    public $table;
  44    public $task;
  45    public $template;
  46    
  47  
  48    /**
  49     * Constructs the internal representation of the Fusiontables service.
  50     *
  51     * @param Google_Client $client
  52     */
  53    public function __construct(Google_Client $client)
  54    {
  55      parent::__construct($client);
  56      $this->rootUrl = 'https://www.googleapis.com/';
  57      $this->servicePath = 'fusiontables/v2/';
  58      $this->version = 'v2';
  59      $this->serviceName = 'fusiontables';
  60  
  61      $this->column = new Google_Service_Fusiontables_Column_Resource(
  62          $this,
  63          $this->serviceName,
  64          'column',
  65          array(
  66            'methods' => array(
  67              'delete' => array(
  68                'path' => 'tables/{tableId}/columns/{columnId}',
  69                'httpMethod' => 'DELETE',
  70                'parameters' => array(
  71                  'tableId' => array(
  72                    'location' => 'path',
  73                    'type' => 'string',
  74                    'required' => true,
  75                  ),
  76                  'columnId' => array(
  77                    'location' => 'path',
  78                    'type' => 'string',
  79                    'required' => true,
  80                  ),
  81                ),
  82              ),'get' => array(
  83                'path' => 'tables/{tableId}/columns/{columnId}',
  84                'httpMethod' => 'GET',
  85                'parameters' => array(
  86                  'tableId' => array(
  87                    'location' => 'path',
  88                    'type' => 'string',
  89                    'required' => true,
  90                  ),
  91                  'columnId' => array(
  92                    'location' => 'path',
  93                    'type' => 'string',
  94                    'required' => true,
  95                  ),
  96                ),
  97              ),'insert' => array(
  98                'path' => 'tables/{tableId}/columns',
  99                'httpMethod' => 'POST',
 100                'parameters' => array(
 101                  'tableId' => array(
 102                    'location' => 'path',
 103                    'type' => 'string',
 104                    'required' => true,
 105                  ),
 106                ),
 107              ),'list' => array(
 108                'path' => 'tables/{tableId}/columns',
 109                'httpMethod' => 'GET',
 110                'parameters' => array(
 111                  'tableId' => array(
 112                    'location' => 'path',
 113                    'type' => 'string',
 114                    'required' => true,
 115                  ),
 116                  'pageToken' => array(
 117                    'location' => 'query',
 118                    'type' => 'string',
 119                  ),
 120                  'maxResults' => array(
 121                    'location' => 'query',
 122                    'type' => 'integer',
 123                  ),
 124                ),
 125              ),'patch' => array(
 126                'path' => 'tables/{tableId}/columns/{columnId}',
 127                'httpMethod' => 'PATCH',
 128                'parameters' => array(
 129                  'tableId' => array(
 130                    'location' => 'path',
 131                    'type' => 'string',
 132                    'required' => true,
 133                  ),
 134                  'columnId' => array(
 135                    'location' => 'path',
 136                    'type' => 'string',
 137                    'required' => true,
 138                  ),
 139                ),
 140              ),'update' => array(
 141                'path' => 'tables/{tableId}/columns/{columnId}',
 142                'httpMethod' => 'PUT',
 143                'parameters' => array(
 144                  'tableId' => array(
 145                    'location' => 'path',
 146                    'type' => 'string',
 147                    'required' => true,
 148                  ),
 149                  'columnId' => array(
 150                    'location' => 'path',
 151                    'type' => 'string',
 152                    'required' => true,
 153                  ),
 154                ),
 155              ),
 156            )
 157          )
 158      );
 159      $this->query = new Google_Service_Fusiontables_Query_Resource(
 160          $this,
 161          $this->serviceName,
 162          'query',
 163          array(
 164            'methods' => array(
 165              'sql' => array(
 166                'path' => 'query',
 167                'httpMethod' => 'POST',
 168                'parameters' => array(
 169                  'sql' => array(
 170                    'location' => 'query',
 171                    'type' => 'string',
 172                    'required' => true,
 173                  ),
 174                  'typed' => array(
 175                    'location' => 'query',
 176                    'type' => 'boolean',
 177                  ),
 178                  'hdrs' => array(
 179                    'location' => 'query',
 180                    'type' => 'boolean',
 181                  ),
 182                ),
 183              ),'sqlGet' => array(
 184                'path' => 'query',
 185                'httpMethod' => 'GET',
 186                'parameters' => array(
 187                  'sql' => array(
 188                    'location' => 'query',
 189                    'type' => 'string',
 190                    'required' => true,
 191                  ),
 192                  'typed' => array(
 193                    'location' => 'query',
 194                    'type' => 'boolean',
 195                  ),
 196                  'hdrs' => array(
 197                    'location' => 'query',
 198                    'type' => 'boolean',
 199                  ),
 200                ),
 201              ),
 202            )
 203          )
 204      );
 205      $this->style = new Google_Service_Fusiontables_Style_Resource(
 206          $this,
 207          $this->serviceName,
 208          'style',
 209          array(
 210            'methods' => array(
 211              'delete' => array(
 212                'path' => 'tables/{tableId}/styles/{styleId}',
 213                'httpMethod' => 'DELETE',
 214                'parameters' => array(
 215                  'tableId' => array(
 216                    'location' => 'path',
 217                    'type' => 'string',
 218                    'required' => true,
 219                  ),
 220                  'styleId' => array(
 221                    'location' => 'path',
 222                    'type' => 'integer',
 223                    'required' => true,
 224                  ),
 225                ),
 226              ),'get' => array(
 227                'path' => 'tables/{tableId}/styles/{styleId}',
 228                'httpMethod' => 'GET',
 229                'parameters' => array(
 230                  'tableId' => array(
 231                    'location' => 'path',
 232                    'type' => 'string',
 233                    'required' => true,
 234                  ),
 235                  'styleId' => array(
 236                    'location' => 'path',
 237                    'type' => 'integer',
 238                    'required' => true,
 239                  ),
 240                ),
 241              ),'insert' => array(
 242                'path' => 'tables/{tableId}/styles',
 243                'httpMethod' => 'POST',
 244                'parameters' => array(
 245                  'tableId' => array(
 246                    'location' => 'path',
 247                    'type' => 'string',
 248                    'required' => true,
 249                  ),
 250                ),
 251              ),'list' => array(
 252                'path' => 'tables/{tableId}/styles',
 253                'httpMethod' => 'GET',
 254                'parameters' => array(
 255                  'tableId' => array(
 256                    'location' => 'path',
 257                    'type' => 'string',
 258                    'required' => true,
 259                  ),
 260                  'pageToken' => array(
 261                    'location' => 'query',
 262                    'type' => 'string',
 263                  ),
 264                  'maxResults' => array(
 265                    'location' => 'query',
 266                    'type' => 'integer',
 267                  ),
 268                ),
 269              ),'patch' => array(
 270                'path' => 'tables/{tableId}/styles/{styleId}',
 271                'httpMethod' => 'PATCH',
 272                'parameters' => array(
 273                  'tableId' => array(
 274                    'location' => 'path',
 275                    'type' => 'string',
 276                    'required' => true,
 277                  ),
 278                  'styleId' => array(
 279                    'location' => 'path',
 280                    'type' => 'integer',
 281                    'required' => true,
 282                  ),
 283                ),
 284              ),'update' => array(
 285                'path' => 'tables/{tableId}/styles/{styleId}',
 286                'httpMethod' => 'PUT',
 287                'parameters' => array(
 288                  'tableId' => array(
 289                    'location' => 'path',
 290                    'type' => 'string',
 291                    'required' => true,
 292                  ),
 293                  'styleId' => array(
 294                    'location' => 'path',
 295                    'type' => 'integer',
 296                    'required' => true,
 297                  ),
 298                ),
 299              ),
 300            )
 301          )
 302      );
 303      $this->table = new Google_Service_Fusiontables_Table_Resource(
 304          $this,
 305          $this->serviceName,
 306          'table',
 307          array(
 308            'methods' => array(
 309              'copy' => array(
 310                'path' => 'tables/{tableId}/copy',
 311                'httpMethod' => 'POST',
 312                'parameters' => array(
 313                  'tableId' => array(
 314                    'location' => 'path',
 315                    'type' => 'string',
 316                    'required' => true,
 317                  ),
 318                  'copyPresentation' => array(
 319                    'location' => 'query',
 320                    'type' => 'boolean',
 321                  ),
 322                ),
 323              ),'delete' => array(
 324                'path' => 'tables/{tableId}',
 325                'httpMethod' => 'DELETE',
 326                'parameters' => array(
 327                  'tableId' => array(
 328                    'location' => 'path',
 329                    'type' => 'string',
 330                    'required' => true,
 331                  ),
 332                ),
 333              ),'get' => array(
 334                'path' => 'tables/{tableId}',
 335                'httpMethod' => 'GET',
 336                'parameters' => array(
 337                  'tableId' => array(
 338                    'location' => 'path',
 339                    'type' => 'string',
 340                    'required' => true,
 341                  ),
 342                ),
 343              ),'importRows' => array(
 344                'path' => 'tables/{tableId}/import',
 345                'httpMethod' => 'POST',
 346                'parameters' => array(
 347                  'tableId' => array(
 348                    'location' => 'path',
 349                    'type' => 'string',
 350                    'required' => true,
 351                  ),
 352                  'startLine' => array(
 353                    'location' => 'query',
 354                    'type' => 'integer',
 355                  ),
 356                  'isStrict' => array(
 357                    'location' => 'query',
 358                    'type' => 'boolean',
 359                  ),
 360                  'encoding' => array(
 361                    'location' => 'query',
 362                    'type' => 'string',
 363                  ),
 364                  'delimiter' => array(
 365                    'location' => 'query',
 366                    'type' => 'string',
 367                  ),
 368                  'endLine' => array(
 369                    'location' => 'query',
 370                    'type' => 'integer',
 371                  ),
 372                ),
 373              ),'importTable' => array(
 374                'path' => 'tables/import',
 375                'httpMethod' => 'POST',
 376                'parameters' => array(
 377                  'name' => array(
 378                    'location' => 'query',
 379                    'type' => 'string',
 380                    'required' => true,
 381                  ),
 382                  'delimiter' => array(
 383                    'location' => 'query',
 384                    'type' => 'string',
 385                  ),
 386                  'encoding' => array(
 387                    'location' => 'query',
 388                    'type' => 'string',
 389                  ),
 390                ),
 391              ),'insert' => array(
 392                'path' => 'tables',
 393                'httpMethod' => 'POST',
 394                'parameters' => array(),
 395              ),'list' => array(
 396                'path' => 'tables',
 397                'httpMethod' => 'GET',
 398                'parameters' => array(
 399                  'pageToken' => array(
 400                    'location' => 'query',
 401                    'type' => 'string',
 402                  ),
 403                  'maxResults' => array(
 404                    'location' => 'query',
 405                    'type' => 'integer',
 406                  ),
 407                ),
 408              ),'patch' => array(
 409                'path' => 'tables/{tableId}',
 410                'httpMethod' => 'PATCH',
 411                'parameters' => array(
 412                  'tableId' => array(
 413                    'location' => 'path',
 414                    'type' => 'string',
 415                    'required' => true,
 416                  ),
 417                  'replaceViewDefinition' => array(
 418                    'location' => 'query',
 419                    'type' => 'boolean',
 420                  ),
 421                ),
 422              ),'replaceRows' => array(
 423                'path' => 'tables/{tableId}/replace',
 424                'httpMethod' => 'POST',
 425                'parameters' => array(
 426                  'tableId' => array(
 427                    'location' => 'path',
 428                    'type' => 'string',
 429                    'required' => true,
 430                  ),
 431                  'startLine' => array(
 432                    'location' => 'query',
 433                    'type' => 'integer',
 434                  ),
 435                  'isStrict' => array(
 436                    'location' => 'query',
 437                    'type' => 'boolean',
 438                  ),
 439                  'encoding' => array(
 440                    'location' => 'query',
 441                    'type' => 'string',
 442                  ),
 443                  'delimiter' => array(
 444                    'location' => 'query',
 445                    'type' => 'string',
 446                  ),
 447                  'endLine' => array(
 448                    'location' => 'query',
 449                    'type' => 'integer',
 450                  ),
 451                ),
 452              ),'update' => array(
 453                'path' => 'tables/{tableId}',
 454                'httpMethod' => 'PUT',
 455                'parameters' => array(
 456                  'tableId' => array(
 457                    'location' => 'path',
 458                    'type' => 'string',
 459                    'required' => true,
 460                  ),
 461                  'replaceViewDefinition' => array(
 462                    'location' => 'query',
 463                    'type' => 'boolean',
 464                  ),
 465                ),
 466              ),
 467            )
 468          )
 469      );
 470      $this->task = new Google_Service_Fusiontables_Task_Resource(
 471          $this,
 472          $this->serviceName,
 473          'task',
 474          array(
 475            'methods' => array(
 476              'delete' => array(
 477                'path' => 'tables/{tableId}/tasks/{taskId}',
 478                'httpMethod' => 'DELETE',
 479                'parameters' => array(
 480                  'tableId' => array(
 481                    'location' => 'path',
 482                    'type' => 'string',
 483                    'required' => true,
 484                  ),
 485                  'taskId' => array(
 486                    'location' => 'path',
 487                    'type' => 'string',
 488                    'required' => true,
 489                  ),
 490                ),
 491              ),'get' => array(
 492                'path' => 'tables/{tableId}/tasks/{taskId}',
 493                'httpMethod' => 'GET',
 494                'parameters' => array(
 495                  'tableId' => array(
 496                    'location' => 'path',
 497                    'type' => 'string',
 498                    'required' => true,
 499                  ),
 500                  'taskId' => array(
 501                    'location' => 'path',
 502                    'type' => 'string',
 503                    'required' => true,
 504                  ),
 505                ),
 506              ),'list' => array(
 507                'path' => 'tables/{tableId}/tasks',
 508                'httpMethod' => 'GET',
 509                'parameters' => array(
 510                  'tableId' => array(
 511                    'location' => 'path',
 512                    'type' => 'string',
 513                    'required' => true,
 514                  ),
 515                  'pageToken' => array(
 516                    'location' => 'query',
 517                    'type' => 'string',
 518                  ),
 519                  'startIndex' => array(
 520                    'location' => 'query',
 521                    'type' => 'integer',
 522                  ),
 523                  'maxResults' => array(
 524                    'location' => 'query',
 525                    'type' => 'integer',
 526                  ),
 527                ),
 528              ),
 529            )
 530          )
 531      );
 532      $this->template = new Google_Service_Fusiontables_Template_Resource(
 533          $this,
 534          $this->serviceName,
 535          'template',
 536          array(
 537            'methods' => array(
 538              'delete' => array(
 539                'path' => 'tables/{tableId}/templates/{templateId}',
 540                'httpMethod' => 'DELETE',
 541                'parameters' => array(
 542                  'tableId' => array(
 543                    'location' => 'path',
 544                    'type' => 'string',
 545                    'required' => true,
 546                  ),
 547                  'templateId' => array(
 548                    'location' => 'path',
 549                    'type' => 'integer',
 550                    'required' => true,
 551                  ),
 552                ),
 553              ),'get' => array(
 554                'path' => 'tables/{tableId}/templates/{templateId}',
 555                'httpMethod' => 'GET',
 556                'parameters' => array(
 557                  'tableId' => array(
 558                    'location' => 'path',
 559                    'type' => 'string',
 560                    'required' => true,
 561                  ),
 562                  'templateId' => array(
 563                    'location' => 'path',
 564                    'type' => 'integer',
 565                    'required' => true,
 566                  ),
 567                ),
 568              ),'insert' => array(
 569                'path' => 'tables/{tableId}/templates',
 570                'httpMethod' => 'POST',
 571                'parameters' => array(
 572                  'tableId' => array(
 573                    'location' => 'path',
 574                    'type' => 'string',
 575                    'required' => true,
 576                  ),
 577                ),
 578              ),'list' => array(
 579                'path' => 'tables/{tableId}/templates',
 580                'httpMethod' => 'GET',
 581                'parameters' => array(
 582                  'tableId' => array(
 583                    'location' => 'path',
 584                    'type' => 'string',
 585                    'required' => true,
 586                  ),
 587                  'pageToken' => array(
 588                    'location' => 'query',
 589                    'type' => 'string',
 590                  ),
 591                  'maxResults' => array(
 592                    'location' => 'query',
 593                    'type' => 'integer',
 594                  ),
 595                ),
 596              ),'patch' => array(
 597                'path' => 'tables/{tableId}/templates/{templateId}',
 598                'httpMethod' => 'PATCH',
 599                'parameters' => array(
 600                  'tableId' => array(
 601                    'location' => 'path',
 602                    'type' => 'string',
 603                    'required' => true,
 604                  ),
 605                  'templateId' => array(
 606                    'location' => 'path',
 607                    'type' => 'integer',
 608                    'required' => true,
 609                  ),
 610                ),
 611              ),'update' => array(
 612                'path' => 'tables/{tableId}/templates/{templateId}',
 613                'httpMethod' => 'PUT',
 614                'parameters' => array(
 615                  'tableId' => array(
 616                    'location' => 'path',
 617                    'type' => 'string',
 618                    'required' => true,
 619                  ),
 620                  'templateId' => array(
 621                    'location' => 'path',
 622                    'type' => 'integer',
 623                    'required' => true,
 624                  ),
 625                ),
 626              ),
 627            )
 628          )
 629      );
 630    }
 631  }
 632  
 633  
 634  /**
 635   * The "column" collection of methods.
 636   * Typical usage is:
 637   *  <code>
 638   *   $fusiontablesService = new Google_Service_Fusiontables(...);
 639   *   $column = $fusiontablesService->column;
 640   *  </code>
 641   */
 642  class Google_Service_Fusiontables_Column_Resource extends Google_Service_Resource
 643  {
 644  
 645    /**
 646     * Deletes the specified column. (column.delete)
 647     *
 648     * @param string $tableId Table from which the column is being deleted.
 649     * @param string $columnId Name or identifier for the column being deleted.
 650     * @param array $optParams Optional parameters.
 651     */
 652    public function delete($tableId, $columnId, $optParams = array())
 653    {
 654      $params = array('tableId' => $tableId, 'columnId' => $columnId);
 655      $params = array_merge($params, $optParams);
 656      return $this->call('delete', array($params));
 657    }
 658  
 659    /**
 660     * Retrieves a specific column by its ID. (column.get)
 661     *
 662     * @param string $tableId Table to which the column belongs.
 663     * @param string $columnId Name or identifier for the column that is being
 664     * requested.
 665     * @param array $optParams Optional parameters.
 666     * @return Google_Service_Fusiontables_Column
 667     */
 668    public function get($tableId, $columnId, $optParams = array())
 669    {
 670      $params = array('tableId' => $tableId, 'columnId' => $columnId);
 671      $params = array_merge($params, $optParams);
 672      return $this->call('get', array($params), "Google_Service_Fusiontables_Column");
 673    }
 674  
 675    /**
 676     * Adds a new column to the table. (column.insert)
 677     *
 678     * @param string $tableId Table for which a new column is being added.
 679     * @param Google_Column $postBody
 680     * @param array $optParams Optional parameters.
 681     * @return Google_Service_Fusiontables_Column
 682     */
 683    public function insert($tableId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
 684    {
 685      $params = array('tableId' => $tableId, 'postBody' => $postBody);
 686      $params = array_merge($params, $optParams);
 687      return $this->call('insert', array($params), "Google_Service_Fusiontables_Column");
 688    }
 689  
 690    /**
 691     * Retrieves a list of columns. (column.listColumn)
 692     *
 693     * @param string $tableId Table whose columns are being listed.
 694     * @param array $optParams Optional parameters.
 695     *
 696     * @opt_param string pageToken Continuation token specifying which result page
 697     * to return.
 698     * @opt_param string maxResults Maximum number of columns to return. Default is
 699     * 5.
 700     * @return Google_Service_Fusiontables_ColumnList
 701     */
 702    public function listColumn($tableId, $optParams = array())
 703    {
 704      $params = array('tableId' => $tableId);
 705      $params = array_merge($params, $optParams);
 706      return $this->call('list', array($params), "Google_Service_Fusiontables_ColumnList");
 707    }
 708  
 709    /**
 710     * Updates the name or type of an existing column. This method supports patch
 711     * semantics. (column.patch)
 712     *
 713     * @param string $tableId Table for which the column is being updated.
 714     * @param string $columnId Name or identifier for the column that is being
 715     * updated.
 716     * @param Google_Column $postBody
 717     * @param array $optParams Optional parameters.
 718     * @return Google_Service_Fusiontables_Column
 719     */
 720    public function patch($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
 721    {
 722      $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
 723      $params = array_merge($params, $optParams);
 724      return $this->call('patch', array($params), "Google_Service_Fusiontables_Column");
 725    }
 726  
 727    /**
 728     * Updates the name or type of an existing column. (column.update)
 729     *
 730     * @param string $tableId Table for which the column is being updated.
 731     * @param string $columnId Name or identifier for the column that is being
 732     * updated.
 733     * @param Google_Column $postBody
 734     * @param array $optParams Optional parameters.
 735     * @return Google_Service_Fusiontables_Column
 736     */
 737    public function update($tableId, $columnId, Google_Service_Fusiontables_Column $postBody, $optParams = array())
 738    {
 739      $params = array('tableId' => $tableId, 'columnId' => $columnId, 'postBody' => $postBody);
 740      $params = array_merge($params, $optParams);
 741      return $this->call('update', array($params), "Google_Service_Fusiontables_Column");
 742    }
 743  }
 744  
 745  /**
 746   * The "query" collection of methods.
 747   * Typical usage is:
 748   *  <code>
 749   *   $fusiontablesService = new Google_Service_Fusiontables(...);
 750   *   $query = $fusiontablesService->query;
 751   *  </code>
 752   */
 753  class Google_Service_Fusiontables_Query_Resource extends Google_Service_Resource
 754  {
 755  
 756    /**
 757     * Executes a Fusion Tables SQL statement, which can be any of - SELECT - INSERT
 758     * - UPDATE - DELETE - SHOW - DESCRIBE - CREATE statement. (query.sql)
 759     *
 760     * @param string $sql A Fusion Tables SQL statement, which can be any of -
 761     * SELECT - INSERT - UPDATE - DELETE - SHOW - DESCRIBE - CREATE
 762     * @param array $optParams Optional parameters.
 763     *
 764     * @opt_param bool typed Whether typed values are returned in the (JSON)
 765     * response: numbers for numeric values and parsed geometries for KML values.
 766     * Default is true.
 767     * @opt_param bool hdrs Whether column names are included in the first row.
 768     * Default is true.
 769     * @return Google_Service_Fusiontables_Sqlresponse
 770     */
 771    public function sql($sql, $optParams = array())
 772    {
 773      $params = array('sql' => $sql);
 774      $params = array_merge($params, $optParams);
 775      return $this->call('sql', array($params), "Google_Service_Fusiontables_Sqlresponse");
 776    }
 777  
 778    /**
 779     * Executes a SQL statement which can be any of - SELECT - SHOW - DESCRIBE
 780     * (query.sqlGet)
 781     *
 782     * @param string $sql A SQL statement which can be any of - SELECT - SHOW -
 783     * DESCRIBE
 784     * @param array $optParams Optional parameters.
 785     *
 786     * @opt_param bool typed Whether typed values are returned in the (JSON)
 787     * response: numbers for numeric values and parsed geometries for KML values.
 788     * Default is true.
 789     * @opt_param bool hdrs Whether column names are included (in the first row).
 790     * Default is true.
 791     * @return Google_Service_Fusiontables_Sqlresponse
 792     */
 793    public function sqlGet($sql, $optParams = array())
 794    {
 795      $params = array('sql' => $sql);
 796      $params = array_merge($params, $optParams);
 797      return $this->call('sqlGet', array($params), "Google_Service_Fusiontables_Sqlresponse");
 798    }
 799  }
 800  
 801  /**
 802   * The "style" collection of methods.
 803   * Typical usage is:
 804   *  <code>
 805   *   $fusiontablesService = new Google_Service_Fusiontables(...);
 806   *   $style = $fusiontablesService->style;
 807   *  </code>
 808   */
 809  class Google_Service_Fusiontables_Style_Resource extends Google_Service_Resource
 810  {
 811  
 812    /**
 813     * Deletes a style. (style.delete)
 814     *
 815     * @param string $tableId Table from which the style is being deleted
 816     * @param int $styleId Identifier (within a table) for the style being deleted
 817     * @param array $optParams Optional parameters.
 818     */
 819    public function delete($tableId, $styleId, $optParams = array())
 820    {
 821      $params = array('tableId' => $tableId, 'styleId' => $styleId);
 822      $params = array_merge($params, $optParams);
 823      return $this->call('delete', array($params));
 824    }
 825  
 826    /**
 827     * Gets a specific style. (style.get)
 828     *
 829     * @param string $tableId Table to which the requested style belongs
 830     * @param int $styleId Identifier (integer) for a specific style in a table
 831     * @param array $optParams Optional parameters.
 832     * @return Google_Service_Fusiontables_StyleSetting
 833     */
 834    public function get($tableId, $styleId, $optParams = array())
 835    {
 836      $params = array('tableId' => $tableId, 'styleId' => $styleId);
 837      $params = array_merge($params, $optParams);
 838      return $this->call('get', array($params), "Google_Service_Fusiontables_StyleSetting");
 839    }
 840  
 841    /**
 842     * Adds a new style for the table. (style.insert)
 843     *
 844     * @param string $tableId Table for which a new style is being added
 845     * @param Google_StyleSetting $postBody
 846     * @param array $optParams Optional parameters.
 847     * @return Google_Service_Fusiontables_StyleSetting
 848     */
 849    public function insert($tableId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
 850    {
 851      $params = array('tableId' => $tableId, 'postBody' => $postBody);
 852      $params = array_merge($params, $optParams);
 853      return $this->call('insert', array($params), "Google_Service_Fusiontables_StyleSetting");
 854    }
 855  
 856    /**
 857     * Retrieves a list of styles. (style.listStyle)
 858     *
 859     * @param string $tableId Table whose styles are being listed
 860     * @param array $optParams Optional parameters.
 861     *
 862     * @opt_param string pageToken Continuation token specifying which result page
 863     * to return. Optional.
 864     * @opt_param string maxResults Maximum number of styles to return. Optional.
 865     * Default is 5.
 866     * @return Google_Service_Fusiontables_StyleSettingList
 867     */
 868    public function listStyle($tableId, $optParams = array())
 869    {
 870      $params = array('tableId' => $tableId);
 871      $params = array_merge($params, $optParams);
 872      return $this->call('list', array($params), "Google_Service_Fusiontables_StyleSettingList");
 873    }
 874  
 875    /**
 876     * Updates an existing style. This method supports patch semantics.
 877     * (style.patch)
 878     *
 879     * @param string $tableId Table whose style is being updated.
 880     * @param int $styleId Identifier (within a table) for the style being updated.
 881     * @param Google_StyleSetting $postBody
 882     * @param array $optParams Optional parameters.
 883     * @return Google_Service_Fusiontables_StyleSetting
 884     */
 885    public function patch($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
 886    {
 887      $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
 888      $params = array_merge($params, $optParams);
 889      return $this->call('patch', array($params), "Google_Service_Fusiontables_StyleSetting");
 890    }
 891  
 892    /**
 893     * Updates an existing style. (style.update)
 894     *
 895     * @param string $tableId Table whose style is being updated.
 896     * @param int $styleId Identifier (within a table) for the style being updated.
 897     * @param Google_StyleSetting $postBody
 898     * @param array $optParams Optional parameters.
 899     * @return Google_Service_Fusiontables_StyleSetting
 900     */
 901    public function update($tableId, $styleId, Google_Service_Fusiontables_StyleSetting $postBody, $optParams = array())
 902    {
 903      $params = array('tableId' => $tableId, 'styleId' => $styleId, 'postBody' => $postBody);
 904      $params = array_merge($params, $optParams);
 905      return $this->call('update', array($params), "Google_Service_Fusiontables_StyleSetting");
 906    }
 907  }
 908  
 909  /**
 910   * The "table" collection of methods.
 911   * Typical usage is:
 912   *  <code>
 913   *   $fusiontablesService = new Google_Service_Fusiontables(...);
 914   *   $table = $fusiontablesService->table;
 915   *  </code>
 916   */
 917  class Google_Service_Fusiontables_Table_Resource extends Google_Service_Resource
 918  {
 919  
 920    /**
 921     * Copies a table. (table.copy)
 922     *
 923     * @param string $tableId ID of the table that is being copied.
 924     * @param array $optParams Optional parameters.
 925     *
 926     * @opt_param bool copyPresentation Whether to also copy tabs, styles, and
 927     * templates. Default is false.
 928     * @return Google_Service_Fusiontables_Table
 929     */
 930    public function copy($tableId, $optParams = array())
 931    {
 932      $params = array('tableId' => $tableId);
 933      $params = array_merge($params, $optParams);
 934      return $this->call('copy', array($params), "Google_Service_Fusiontables_Table");
 935    }
 936  
 937    /**
 938     * Deletes a table. (table.delete)
 939     *
 940     * @param string $tableId ID of the table to be deleted.
 941     * @param array $optParams Optional parameters.
 942     */
 943    public function delete($tableId, $optParams = array())
 944    {
 945      $params = array('tableId' => $tableId);
 946      $params = array_merge($params, $optParams);
 947      return $this->call('delete', array($params));
 948    }
 949  
 950    /**
 951     * Retrieves a specific table by its ID. (table.get)
 952     *
 953     * @param string $tableId Identifier for the table being requested.
 954     * @param array $optParams Optional parameters.
 955     * @return Google_Service_Fusiontables_Table
 956     */
 957    public function get($tableId, $optParams = array())
 958    {
 959      $params = array('tableId' => $tableId);
 960      $params = array_merge($params, $optParams);
 961      return $this->call('get', array($params), "Google_Service_Fusiontables_Table");
 962    }
 963  
 964    /**
 965     * Imports more rows into a table. (table.importRows)
 966     *
 967     * @param string $tableId The table into which new rows are being imported.
 968     * @param array $optParams Optional parameters.
 969     *
 970     * @opt_param int startLine The index of the first line from which to start
 971     * importing, inclusive. Default is 0.
 972     * @opt_param bool isStrict Whether the imported CSV must have the same number
 973     * of values for each row. If false, rows with fewer values will be padded with
 974     * empty values. Default is true.
 975     * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
 976     * auto-detect if you are unsure of the encoding.
 977     * @opt_param string delimiter The delimiter used to separate cell values. This
 978     * can only consist of a single character. Default is ,.
 979     * @opt_param int endLine The index of the line up to which data will be
 980     * imported. Default is to import the entire file. If endLine is negative, it is
 981     * an offset from the end of the file; the imported content will exclude the
 982     * last endLine lines.
 983     * @return Google_Service_Fusiontables_Import
 984     */
 985    public function importRows($tableId, $optParams = array())
 986    {
 987      $params = array('tableId' => $tableId);
 988      $params = array_merge($params, $optParams);
 989      return $this->call('importRows', array($params), "Google_Service_Fusiontables_Import");
 990    }
 991  
 992    /**
 993     * Imports a new table. (table.importTable)
 994     *
 995     * @param string $name The name to be assigned to the new table.
 996     * @param array $optParams Optional parameters.
 997     *
 998     * @opt_param string delimiter The delimiter used to separate cell values. This
 999     * can only consist of a single character. Default is ,.
1000     * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
1001     * auto-detect if you are unsure of the encoding.
1002     * @return Google_Service_Fusiontables_Table
1003     */
1004    public function importTable($name, $optParams = array())
1005    {
1006      $params = array('name' => $name);
1007      $params = array_merge($params, $optParams);
1008      return $this->call('importTable', array($params), "Google_Service_Fusiontables_Table");
1009    }
1010  
1011    /**
1012     * Creates a new table. (table.insert)
1013     *
1014     * @param Google_Table $postBody
1015     * @param array $optParams Optional parameters.
1016     * @return Google_Service_Fusiontables_Table
1017     */
1018    public function insert(Google_Service_Fusiontables_Table $postBody, $optParams = array())
1019    {
1020      $params = array('postBody' => $postBody);
1021      $params = array_merge($params, $optParams);
1022      return $this->call('insert', array($params), "Google_Service_Fusiontables_Table");
1023    }
1024  
1025    /**
1026     * Retrieves a list of tables a user owns. (table.listTable)
1027     *
1028     * @param array $optParams Optional parameters.
1029     *
1030     * @opt_param string pageToken Continuation token specifying which result page
1031     * to return.
1032     * @opt_param string maxResults Maximum number of tables to return. Default is
1033     * 5.
1034     * @return Google_Service_Fusiontables_TableList
1035     */
1036    public function listTable($optParams = array())
1037    {
1038      $params = array();
1039      $params = array_merge($params, $optParams);
1040      return $this->call('list', array($params), "Google_Service_Fusiontables_TableList");
1041    }
1042  
1043    /**
1044     * Updates an existing table. Unless explicitly requested, only the name,
1045     * description, and attribution will be updated. This method supports patch
1046     * semantics. (table.patch)
1047     *
1048     * @param string $tableId ID of the table that is being updated.
1049     * @param Google_Table $postBody
1050     * @param array $optParams Optional parameters.
1051     *
1052     * @opt_param bool replaceViewDefinition Whether the view definition is also
1053     * updated. The specified view definition replaces the existing one. Only a view
1054     * can be updated with a new definition.
1055     * @return Google_Service_Fusiontables_Table
1056     */
1057    public function patch($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
1058    {
1059      $params = array('tableId' => $tableId, 'postBody' => $postBody);
1060      $params = array_merge($params, $optParams);
1061      return $this->call('patch', array($params), "Google_Service_Fusiontables_Table");
1062    }
1063  
1064    /**
1065     * Replaces rows of an existing table. Current rows remain visible until all
1066     * replacement rows are ready. (table.replaceRows)
1067     *
1068     * @param string $tableId Table whose rows will be replaced.
1069     * @param array $optParams Optional parameters.
1070     *
1071     * @opt_param int startLine The index of the first line from which to start
1072     * importing, inclusive. Default is 0.
1073     * @opt_param bool isStrict Whether the imported CSV must have the same number
1074     * of column values for each row. If true, throws an exception if the CSV does
1075     * not have the same number of columns. If false, rows with fewer column values
1076     * will be padded with empty values. Default is true.
1077     * @opt_param string encoding The encoding of the content. Default is UTF-8. Use
1078     * 'auto-detect' if you are unsure of the encoding.
1079     * @opt_param string delimiter The delimiter used to separate cell values. This
1080     * can only consist of a single character. Default is ,.
1081     * @opt_param int endLine The index of the line up to which data will be
1082     * imported. Default is to import the entire file. If endLine is negative, it is
1083     * an offset from the end of the file; the imported content will exclude the
1084     * last endLine lines.
1085     * @return Google_Service_Fusiontables_Task
1086     */
1087    public function replaceRows($tableId, $optParams = array())
1088    {
1089      $params = array('tableId' => $tableId);
1090      $params = array_merge($params, $optParams);
1091      return $this->call('replaceRows', array($params), "Google_Service_Fusiontables_Task");
1092    }
1093  
1094    /**
1095     * Updates an existing table. Unless explicitly requested, only the name,
1096     * description, and attribution will be updated. (table.update)
1097     *
1098     * @param string $tableId ID of the table that is being updated.
1099     * @param Google_Table $postBody
1100     * @param array $optParams Optional parameters.
1101     *
1102     * @opt_param bool replaceViewDefinition Whether the view definition is also
1103     * updated. The specified view definition replaces the existing one. Only a view
1104     * can be updated with a new definition.
1105     * @return Google_Service_Fusiontables_Table
1106     */
1107    public function update($tableId, Google_Service_Fusiontables_Table $postBody, $optParams = array())
1108    {
1109      $params = array('tableId' => $tableId, 'postBody' => $postBody);
1110      $params = array_merge($params, $optParams);
1111      return $this->call('update', array($params), "Google_Service_Fusiontables_Table");
1112    }
1113  }
1114  
1115  /**
1116   * The "task" collection of methods.
1117   * Typical usage is:
1118   *  <code>
1119   *   $fusiontablesService = new Google_Service_Fusiontables(...);
1120   *   $task = $fusiontablesService->task;
1121   *  </code>
1122   */
1123  class Google_Service_Fusiontables_Task_Resource extends Google_Service_Resource
1124  {
1125  
1126    /**
1127     * Deletes a specific task by its ID, unless that task has already started
1128     * running. (task.delete)
1129     *
1130     * @param string $tableId Table from which the task is being deleted.
1131     * @param string $taskId The identifier of the task to delete.
1132     * @param array $optParams Optional parameters.
1133     */
1134    public function delete($tableId, $taskId, $optParams = array())
1135    {
1136      $params = array('tableId' => $tableId, 'taskId' => $taskId);
1137      $params = array_merge($params, $optParams);
1138      return $this->call('delete', array($params));
1139    }
1140  
1141    /**
1142     * Retrieves a specific task by its ID. (task.get)
1143     *
1144     * @param string $tableId Table to which the task belongs.
1145     * @param string $taskId The identifier of the task to get.
1146     * @param array $optParams Optional parameters.
1147     * @return Google_Service_Fusiontables_Task
1148     */
1149    public function get($tableId, $taskId, $optParams = array())
1150    {
1151      $params = array('tableId' => $tableId, 'taskId' => $taskId);
1152      $params = array_merge($params, $optParams);
1153      return $this->call('get', array($params), "Google_Service_Fusiontables_Task");
1154    }
1155  
1156    /**
1157     * Retrieves a list of tasks. (task.listTask)
1158     *
1159     * @param string $tableId Table whose tasks are being listed.
1160     * @param array $optParams Optional parameters.
1161     *
1162     * @opt_param string pageToken Continuation token specifying which result page
1163     * to return.
1164     * @opt_param string startIndex Index of the first result returned in the
1165     * current page.
1166     * @opt_param string maxResults Maximum number of tasks to return. Default is 5.
1167     * @return Google_Service_Fusiontables_TaskList
1168     */
1169    public function listTask($tableId, $optParams = array())
1170    {
1171      $params = array('tableId' => $tableId);
1172      $params = array_merge($params, $optParams);
1173      return $this->call('list', array($params), "Google_Service_Fusiontables_TaskList");
1174    }
1175  }
1176  
1177  /**
1178   * The "template" collection of methods.
1179   * Typical usage is:
1180   *  <code>
1181   *   $fusiontablesService = new Google_Service_Fusiontables(...);
1182   *   $template = $fusiontablesService->template;
1183   *  </code>
1184   */
1185  class Google_Service_Fusiontables_Template_Resource extends Google_Service_Resource
1186  {
1187  
1188    /**
1189     * Deletes a template (template.delete)
1190     *
1191     * @param string $tableId Table from which the template is being deleted
1192     * @param int $templateId Identifier for the template which is being deleted
1193     * @param array $optParams Optional parameters.
1194     */
1195    public function delete($tableId, $templateId, $optParams = array())
1196    {
1197      $params = array('tableId' => $tableId, 'templateId' => $templateId);
1198      $params = array_merge($params, $optParams);
1199      return $this->call('delete', array($params));
1200    }
1201  
1202    /**
1203     * Retrieves a specific template by its id (template.get)
1204     *
1205     * @param string $tableId Table to which the template belongs
1206     * @param int $templateId Identifier for the template that is being requested
1207     * @param array $optParams Optional parameters.
1208     * @return Google_Service_Fusiontables_Template
1209     */
1210    public function get($tableId, $templateId, $optParams = array())
1211    {
1212      $params = array('tableId' => $tableId, 'templateId' => $templateId);
1213      $params = array_merge($params, $optParams);
1214      return $this->call('get', array($params), "Google_Service_Fusiontables_Template");
1215    }
1216  
1217    /**
1218     * Creates a new template for the table. (template.insert)
1219     *
1220     * @param string $tableId Table for which a new template is being created
1221     * @param Google_Template $postBody
1222     * @param array $optParams Optional parameters.
1223     * @return Google_Service_Fusiontables_Template
1224     */
1225    public function insert($tableId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
1226    {
1227      $params = array('tableId' => $tableId, 'postBody' => $postBody);
1228      $params = array_merge($params, $optParams);
1229      return $this->call('insert', array($params), "Google_Service_Fusiontables_Template");
1230    }
1231  
1232    /**
1233     * Retrieves a list of templates. (template.listTemplate)
1234     *
1235     * @param string $tableId Identifier for the table whose templates are being
1236     * requested
1237     * @param array $optParams Optional parameters.
1238     *
1239     * @opt_param string pageToken Continuation token specifying which results page
1240     * to return. Optional.
1241     * @opt_param string maxResults Maximum number of templates to return. Optional.
1242     * Default is 5.
1243     * @return Google_Service_Fusiontables_TemplateList
1244     */
1245    public function listTemplate($tableId, $optParams = array())
1246    {
1247      $params = array('tableId' => $tableId);
1248      $params = array_merge($params, $optParams);
1249      return $this->call('list', array($params), "Google_Service_Fusiontables_TemplateList");
1250    }
1251  
1252    /**
1253     * Updates an existing template. This method supports patch semantics.
1254     * (template.patch)
1255     *
1256     * @param string $tableId Table to which the updated template belongs
1257     * @param int $templateId Identifier for the template that is being updated
1258     * @param Google_Template $postBody
1259     * @param array $optParams Optional parameters.
1260     * @return Google_Service_Fusiontables_Template
1261     */
1262    public function patch($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
1263    {
1264      $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
1265      $params = array_merge($params, $optParams);
1266      return $this->call('patch', array($params), "Google_Service_Fusiontables_Template");
1267    }
1268  
1269    /**
1270     * Updates an existing template (template.update)
1271     *
1272     * @param string $tableId Table to which the updated template belongs
1273     * @param int $templateId Identifier for the template that is being updated
1274     * @param Google_Template $postBody
1275     * @param array $optParams Optional parameters.
1276     * @return Google_Service_Fusiontables_Template
1277     */
1278    public function update($tableId, $templateId, Google_Service_Fusiontables_Template $postBody, $optParams = array())
1279    {
1280      $params = array('tableId' => $tableId, 'templateId' => $templateId, 'postBody' => $postBody);
1281      $params = array_merge($params, $optParams);
1282      return $this->call('update', array($params), "Google_Service_Fusiontables_Template");
1283    }
1284  }
1285  
1286  
1287  
1288  
1289  class Google_Service_Fusiontables_Bucket extends Google_Model
1290  {
1291    protected $internal_gapi_mappings = array(
1292    );
1293    public $color;
1294    public $icon;
1295    public $max;
1296    public $min;
1297    public $opacity;
1298    public $weight;
1299  
1300  
1301    public function setColor($color)
1302    {
1303      $this->color = $color;
1304    }
1305    public function getColor()
1306    {
1307      return $this->color;
1308    }
1309    public function setIcon($icon)
1310    {
1311      $this->icon = $icon;
1312    }
1313    public function getIcon()
1314    {
1315      return $this->icon;
1316    }
1317    public function setMax($max)
1318    {
1319      $this->max = $max;
1320    }
1321    public function getMax()
1322    {
1323      return $this->max;
1324    }
1325    public function setMin($min)
1326    {
1327      $this->min = $min;
1328    }
1329    public function getMin()
1330    {
1331      return $this->min;
1332    }
1333    public function setOpacity($opacity)
1334    {
1335      $this->opacity = $opacity;
1336    }
1337    public function getOpacity()
1338    {
1339      return $this->opacity;
1340    }
1341    public function setWeight($weight)
1342    {
1343      $this->weight = $weight;
1344    }
1345    public function getWeight()
1346    {
1347      return $this->weight;
1348    }
1349  }
1350  
1351  class Google_Service_Fusiontables_Column extends Google_Collection
1352  {
1353    protected $collection_key = 'validValues';
1354    protected $internal_gapi_mappings = array(
1355    );
1356    protected $baseColumnType = 'Google_Service_Fusiontables_ColumnBaseColumn';
1357    protected $baseColumnDataType = '';
1358    public $columnId;
1359    public $columnJsonSchema;
1360    public $columnPropertiesJson;
1361    public $description;
1362    public $formatPattern;
1363    public $graphPredicate;
1364    public $kind;
1365    public $name;
1366    public $type;
1367    public $validValues;
1368    public $validateData;
1369  
1370  
1371    public function setBaseColumn(Google_Service_Fusiontables_ColumnBaseColumn $baseColumn)
1372    {
1373      $this->baseColumn = $baseColumn;
1374    }
1375    public function getBaseColumn()
1376    {
1377      return $this->baseColumn;
1378    }
1379    public function setColumnId($columnId)
1380    {
1381      $this->columnId = $columnId;
1382    }
1383    public function getColumnId()
1384    {
1385      return $this->columnId;
1386    }
1387    public function setColumnJsonSchema($columnJsonSchema)
1388    {
1389      $this->columnJsonSchema = $columnJsonSchema;
1390    }
1391    public function getColumnJsonSchema()
1392    {
1393      return $this->columnJsonSchema;
1394    }
1395    public function setColumnPropertiesJson($columnPropertiesJson)
1396    {
1397      $this->columnPropertiesJson = $columnPropertiesJson;
1398    }
1399    public function getColumnPropertiesJson()
1400    {
1401      return $this->columnPropertiesJson;
1402    }
1403    public function setDescription($description)
1404    {
1405      $this->description = $description;
1406    }
1407    public function getDescription()
1408    {
1409      return $this->description;
1410    }
1411    public function setFormatPattern($formatPattern)
1412    {
1413      $this->formatPattern = $formatPattern;
1414    }
1415    public function getFormatPattern()
1416    {
1417      return $this->formatPattern;
1418    }
1419    public function setGraphPredicate($graphPredicate)
1420    {
1421      $this->graphPredicate = $graphPredicate;
1422    }
1423    public function getGraphPredicate()
1424    {
1425      return $this->graphPredicate;
1426    }
1427    public function setKind($kind)
1428    {
1429      $this->kind = $kind;
1430    }
1431    public function getKind()
1432    {
1433      return $this->kind;
1434    }
1435    public function setName($name)
1436    {
1437      $this->name = $name;
1438    }
1439    public function getName()
1440    {
1441      return $this->name;
1442    }
1443    public function setType($type)
1444    {
1445      $this->type = $type;
1446    }
1447    public function getType()
1448    {
1449      return $this->type;
1450    }
1451    public function setValidValues($validValues)
1452    {
1453      $this->validValues = $validValues;
1454    }
1455    public function getValidValues()
1456    {
1457      return $this->validValues;
1458    }
1459    public function setValidateData($validateData)
1460    {
1461      $this->validateData = $validateData;
1462    }
1463    public function getValidateData()
1464    {
1465      return $this->validateData;
1466    }
1467  }
1468  
1469  class Google_Service_Fusiontables_ColumnBaseColumn extends Google_Model
1470  {
1471    protected $internal_gapi_mappings = array(
1472    );
1473    public $columnId;
1474    public $tableIndex;
1475  
1476  
1477    public function setColumnId($columnId)
1478    {
1479      $this->columnId = $columnId;
1480    }
1481    public function getColumnId()
1482    {
1483      return $this->columnId;
1484    }
1485    public function setTableIndex($tableIndex)
1486    {
1487      $this->tableIndex = $tableIndex;
1488    }
1489    public function getTableIndex()
1490    {
1491      return $this->tableIndex;
1492    }
1493  }
1494  
1495  class Google_Service_Fusiontables_ColumnList extends Google_Collection
1496  {
1497    protected $collection_key = 'items';
1498    protected $internal_gapi_mappings = array(
1499    );
1500    protected $itemsType = 'Google_Service_Fusiontables_Column';
1501    protected $itemsDataType = 'array';
1502    public $kind;
1503    public $nextPageToken;
1504    public $totalItems;
1505  
1506  
1507    public function setItems($items)
1508    {
1509      $this->items = $items;
1510    }
1511    public function getItems()
1512    {
1513      return $this->items;
1514    }
1515    public function setKind($kind)
1516    {
1517      $this->kind = $kind;
1518    }
1519    public function getKind()
1520    {
1521      return $this->kind;
1522    }
1523    public function setNextPageToken($nextPageToken)
1524    {
1525      $this->nextPageToken = $nextPageToken;
1526    }
1527    public function getNextPageToken()
1528    {
1529      return $this->nextPageToken;
1530    }
1531    public function setTotalItems($totalItems)
1532    {
1533      $this->totalItems = $totalItems;
1534    }
1535    public function getTotalItems()
1536    {
1537      return $this->totalItems;
1538    }
1539  }
1540  
1541  class Google_Service_Fusiontables_Geometry extends Google_Collection
1542  {
1543    protected $collection_key = 'geometries';
1544    protected $internal_gapi_mappings = array(
1545    );
1546    public $geometries;
1547    public $geometry;
1548    public $type;
1549  
1550  
1551    public function setGeometries($geometries)
1552    {
1553      $this->geometries = $geometries;
1554    }
1555    public function getGeometries()
1556    {
1557      return $this->geometries;
1558    }
1559    public function setGeometry($geometry)
1560    {
1561      $this->geometry = $geometry;
1562    }
1563    public function getGeometry()
1564    {
1565      return $this->geometry;
1566    }
1567    public function setType($type)
1568    {
1569      $this->type = $type;
1570    }
1571    public function getType()
1572    {
1573      return $this->type;
1574    }
1575  }
1576  
1577  class Google_Service_Fusiontables_Import extends Google_Model
1578  {
1579    protected $internal_gapi_mappings = array(
1580    );
1581    public $kind;
1582    public $numRowsReceived;
1583  
1584  
1585    public function setKind($kind)
1586    {
1587      $this->kind = $kind;
1588    }
1589    public function getKind()
1590    {
1591      return $this->kind;
1592    }
1593    public function setNumRowsReceived($numRowsReceived)
1594    {
1595      $this->numRowsReceived = $numRowsReceived;
1596    }
1597    public function getNumRowsReceived()
1598    {
1599      return $this->numRowsReceived;
1600    }
1601  }
1602  
1603  class Google_Service_Fusiontables_Line extends Google_Collection
1604  {
1605    protected $collection_key = 'coordinates';
1606    protected $internal_gapi_mappings = array(
1607    );
1608    public $coordinates;
1609    public $type;
1610  
1611  
1612    public function setCoordinates($coordinates)
1613    {
1614      $this->coordinates = $coordinates;
1615    }
1616    public function getCoordinates()
1617    {
1618      return $this->coordinates;
1619    }
1620    public function setType($type)
1621    {
1622      $this->type = $type;
1623    }
1624    public function getType()
1625    {
1626      return $this->type;
1627    }
1628  }
1629  
1630  class Google_Service_Fusiontables_LineStyle extends Google_Model
1631  {
1632    protected $internal_gapi_mappings = array(
1633    );
1634    public $strokeColor;
1635    protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
1636    protected $strokeColorStylerDataType = '';
1637    public $strokeOpacity;
1638    public $strokeWeight;
1639    protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
1640    protected $strokeWeightStylerDataType = '';
1641  
1642  
1643    public function setStrokeColor($strokeColor)
1644    {
1645      $this->strokeColor = $strokeColor;
1646    }
1647    public function getStrokeColor()
1648    {
1649      return $this->strokeColor;
1650    }
1651    public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler)
1652    {
1653      $this->strokeColorStyler = $strokeColorStyler;
1654    }
1655    public function getStrokeColorStyler()
1656    {
1657      return $this->strokeColorStyler;
1658    }
1659    public function setStrokeOpacity($strokeOpacity)
1660    {
1661      $this->strokeOpacity = $strokeOpacity;
1662    }
1663    public function getStrokeOpacity()
1664    {
1665      return $this->strokeOpacity;
1666    }
1667    public function setStrokeWeight($strokeWeight)
1668    {
1669      $this->strokeWeight = $strokeWeight;
1670    }
1671    public function getStrokeWeight()
1672    {
1673      return $this->strokeWeight;
1674    }
1675    public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler)
1676    {
1677      $this->strokeWeightStyler = $strokeWeightStyler;
1678    }
1679    public function getStrokeWeightStyler()
1680    {
1681      return $this->strokeWeightStyler;
1682    }
1683  }
1684  
1685  class Google_Service_Fusiontables_Point extends Google_Collection
1686  {
1687    protected $collection_key = 'coordinates';
1688    protected $internal_gapi_mappings = array(
1689    );
1690    public $coordinates;
1691    public $type;
1692  
1693  
1694    public function setCoordinates($coordinates)
1695    {
1696      $this->coordinates = $coordinates;
1697    }
1698    public function getCoordinates()
1699    {
1700      return $this->coordinates;
1701    }
1702    public function setType($type)
1703    {
1704      $this->type = $type;
1705    }
1706    public function getType()
1707    {
1708      return $this->type;
1709    }
1710  }
1711  
1712  class Google_Service_Fusiontables_PointStyle extends Google_Model
1713  {
1714    protected $internal_gapi_mappings = array(
1715    );
1716    public $iconName;
1717    protected $iconStylerType = 'Google_Service_Fusiontables_StyleFunction';
1718    protected $iconStylerDataType = '';
1719  
1720  
1721    public function setIconName($iconName)
1722    {
1723      $this->iconName = $iconName;
1724    }
1725    public function getIconName()
1726    {
1727      return $this->iconName;
1728    }
1729    public function setIconStyler(Google_Service_Fusiontables_StyleFunction $iconStyler)
1730    {
1731      $this->iconStyler = $iconStyler;
1732    }
1733    public function getIconStyler()
1734    {
1735      return $this->iconStyler;
1736    }
1737  }
1738  
1739  class Google_Service_Fusiontables_Polygon extends Google_Collection
1740  {
1741    protected $collection_key = 'coordinates';
1742    protected $internal_gapi_mappings = array(
1743    );
1744    public $coordinates;
1745    public $type;
1746  
1747  
1748    public function setCoordinates($coordinates)
1749    {
1750      $this->coordinates = $coordinates;
1751    }
1752    public function getCoordinates()
1753    {
1754      return $this->coordinates;
1755    }
1756    public function setType($type)
1757    {
1758      $this->type = $type;
1759    }
1760    public function getType()
1761    {
1762      return $this->type;
1763    }
1764  }
1765  
1766  class Google_Service_Fusiontables_PolygonStyle extends Google_Model
1767  {
1768    protected $internal_gapi_mappings = array(
1769    );
1770    public $fillColor;
1771    protected $fillColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
1772    protected $fillColorStylerDataType = '';
1773    public $fillOpacity;
1774    public $strokeColor;
1775    protected $strokeColorStylerType = 'Google_Service_Fusiontables_StyleFunction';
1776    protected $strokeColorStylerDataType = '';
1777    public $strokeOpacity;
1778    public $strokeWeight;
1779    protected $strokeWeightStylerType = 'Google_Service_Fusiontables_StyleFunction';
1780    protected $strokeWeightStylerDataType = '';
1781  
1782  
1783    public function setFillColor($fillColor)
1784    {
1785      $this->fillColor = $fillColor;
1786    }
1787    public function getFillColor()
1788    {
1789      return $this->fillColor;
1790    }
1791    public function setFillColorStyler(Google_Service_Fusiontables_StyleFunction $fillColorStyler)
1792    {
1793      $this->fillColorStyler = $fillColorStyler;
1794    }
1795    public function getFillColorStyler()
1796    {
1797      return $this->fillColorStyler;
1798    }
1799    public function setFillOpacity($fillOpacity)
1800    {
1801      $this->fillOpacity = $fillOpacity;
1802    }
1803    public function getFillOpacity()
1804    {
1805      return $this->fillOpacity;
1806    }
1807    public function setStrokeColor($strokeColor)
1808    {
1809      $this->strokeColor = $strokeColor;
1810    }
1811    public function getStrokeColor()
1812    {
1813      return $this->strokeColor;
1814    }
1815    public function setStrokeColorStyler(Google_Service_Fusiontables_StyleFunction $strokeColorStyler)
1816    {
1817      $this->strokeColorStyler = $strokeColorStyler;
1818    }
1819    public function getStrokeColorStyler()
1820    {
1821      return $this->strokeColorStyler;
1822    }
1823    public function setStrokeOpacity($strokeOpacity)
1824    {
1825      $this->strokeOpacity = $strokeOpacity;
1826    }
1827    public function getStrokeOpacity()
1828    {
1829      return $this->strokeOpacity;
1830    }
1831    public function setStrokeWeight($strokeWeight)
1832    {
1833      $this->strokeWeight = $strokeWeight;
1834    }
1835    public function getStrokeWeight()
1836    {
1837      return $this->strokeWeight;
1838    }
1839    public function setStrokeWeightStyler(Google_Service_Fusiontables_StyleFunction $strokeWeightStyler)
1840    {
1841      $this->strokeWeightStyler = $strokeWeightStyler;
1842    }
1843    public function getStrokeWeightStyler()
1844    {
1845      return $this->strokeWeightStyler;
1846    }
1847  }
1848  
1849  class Google_Service_Fusiontables_Sqlresponse extends Google_Collection
1850  {
1851    protected $collection_key = 'rows';
1852    protected $internal_gapi_mappings = array(
1853    );
1854    public $columns;
1855    public $kind;
1856    public $rows;
1857  
1858  
1859    public function setColumns($columns)
1860    {
1861      $this->columns = $columns;
1862    }
1863    public function getColumns()
1864    {
1865      return $this->columns;
1866    }
1867    public function setKind($kind)
1868    {
1869      $this->kind = $kind;
1870    }
1871    public function getKind()
1872    {
1873      return $this->kind;
1874    }
1875    public function setRows($rows)
1876    {
1877      $this->rows = $rows;
1878    }
1879    public function getRows()
1880    {
1881      return $this->rows;
1882    }
1883  }
1884  
1885  class Google_Service_Fusiontables_StyleFunction extends Google_Collection
1886  {
1887    protected $collection_key = 'buckets';
1888    protected $internal_gapi_mappings = array(
1889    );
1890    protected $bucketsType = 'Google_Service_Fusiontables_Bucket';
1891    protected $bucketsDataType = 'array';
1892    public $columnName;
1893    protected $gradientType = 'Google_Service_Fusiontables_StyleFunctionGradient';
1894    protected $gradientDataType = '';
1895    public $kind;
1896  
1897  
1898    public function setBuckets($buckets)
1899    {
1900      $this->buckets = $buckets;
1901    }
1902    public function getBuckets()
1903    {
1904      return $this->buckets;
1905    }
1906    public function setColumnName($columnName)
1907    {
1908      $this->columnName = $columnName;
1909    }
1910    public function getColumnName()
1911    {
1912      return $this->columnName;
1913    }
1914    public function setGradient(Google_Service_Fusiontables_StyleFunctionGradient $gradient)
1915    {
1916      $this->gradient = $gradient;
1917    }
1918    public function getGradient()
1919    {
1920      return $this->gradient;
1921    }
1922    public function setKind($kind)
1923    {
1924      $this->kind = $kind;
1925    }
1926    public function getKind()
1927    {
1928      return $this->kind;
1929    }
1930  }
1931  
1932  class Google_Service_Fusiontables_StyleFunctionGradient extends Google_Collection
1933  {
1934    protected $collection_key = 'colors';
1935    protected $internal_gapi_mappings = array(
1936    );
1937    protected $colorsType = 'Google_Service_Fusiontables_StyleFunctionGradientColors';
1938    protected $colorsDataType = 'array';
1939    public $max;
1940    public $min;
1941  
1942  
1943    public function setColors($colors)
1944    {
1945      $this->colors = $colors;
1946    }
1947    public function getColors()
1948    {
1949      return $this->colors;
1950    }
1951    public function setMax($max)
1952    {
1953      $this->max = $max;
1954    }
1955    public function getMax()
1956    {
1957      return $this->max;
1958    }
1959    public function setMin($min)
1960    {
1961      $this->min = $min;
1962    }
1963    public function getMin()
1964    {
1965      return $this->min;
1966    }
1967  }
1968  
1969  class Google_Service_Fusiontables_StyleFunctionGradientColors extends Google_Model
1970  {
1971    protected $internal_gapi_mappings = array(
1972    );
1973    public $color;
1974    public $opacity;
1975  
1976  
1977    public function setColor($color)
1978    {
1979      $this->color = $color;
1980    }
1981    public function getColor()
1982    {
1983      return $this->color;
1984    }
1985    public function setOpacity($opacity)
1986    {
1987      $this->opacity = $opacity;
1988    }
1989    public function getOpacity()
1990    {
1991      return $this->opacity;
1992    }
1993  }
1994  
1995  class Google_Service_Fusiontables_StyleSetting extends Google_Model
1996  {
1997    protected $internal_gapi_mappings = array(
1998    );
1999    public $kind;
2000    protected $markerOptionsType = 'Google_Service_Fusiontables_PointStyle';
2001    protected $markerOptionsDataType = '';
2002    public $name;
2003    protected $polygonOptionsType = 'Google_Service_Fusiontables_PolygonStyle';
2004    protected $polygonOptionsDataType = '';
2005    protected $polylineOptionsType = 'Google_Service_Fusiontables_LineStyle';
2006    protected $polylineOptionsDataType = '';
2007    public $styleId;
2008    public $tableId;
2009  
2010  
2011    public function setKind($kind)
2012    {
2013      $this->kind = $kind;
2014    }
2015    public function getKind()
2016    {
2017      return $this->kind;
2018    }
2019    public function setMarkerOptions(Google_Service_Fusiontables_PointStyle $markerOptions)
2020    {
2021      $this->markerOptions = $markerOptions;
2022    }
2023    public function getMarkerOptions()
2024    {
2025      return $this->markerOptions;
2026    }
2027    public function setName($name)
2028    {
2029      $this->name = $name;
2030    }
2031    public function getName()
2032    {
2033      return $this->name;
2034    }
2035    public function setPolygonOptions(Google_Service_Fusiontables_PolygonStyle $polygonOptions)
2036    {
2037      $this->polygonOptions = $polygonOptions;
2038    }
2039    public function getPolygonOptions()
2040    {
2041      return $this->polygonOptions;
2042    }
2043    public function setPolylineOptions(Google_Service_Fusiontables_LineStyle $polylineOptions)
2044    {
2045      $this->polylineOptions = $polylineOptions;
2046    }
2047    public function getPolylineOptions()
2048    {
2049      return $this->polylineOptions;
2050    }
2051    public function setStyleId($styleId)
2052    {
2053      $this->styleId = $styleId;
2054    }
2055    public function getStyleId()
2056    {
2057      return $this->styleId;
2058    }
2059    public function setTableId($tableId)
2060    {
2061      $this->tableId = $tableId;
2062    }
2063    public function getTableId()
2064    {
2065      return $this->tableId;
2066    }
2067  }
2068  
2069  class Google_Service_Fusiontables_StyleSettingList extends Google_Collection
2070  {
2071    protected $collection_key = 'items';
2072    protected $internal_gapi_mappings = array(
2073    );
2074    protected $itemsType = 'Google_Service_Fusiontables_StyleSetting';
2075    protected $itemsDataType = 'array';
2076    public $kind;
2077    public $nextPageToken;
2078    public $totalItems;
2079  
2080  
2081    public function setItems($items)
2082    {
2083      $this->items = $items;
2084    }
2085    public function getItems()
2086    {
2087      return $this->items;
2088    }
2089    public function setKind($kind)
2090    {
2091      $this->kind = $kind;
2092    }
2093    public function getKind()
2094    {
2095      return $this->kind;
2096    }
2097    public function setNextPageToken($nextPageToken)
2098    {
2099      $this->nextPageToken = $nextPageToken;
2100    }
2101    public function getNextPageToken()
2102    {
2103      return $this->nextPageToken;
2104    }
2105    public function setTotalItems($totalItems)
2106    {
2107      $this->totalItems = $totalItems;
2108    }
2109    public function getTotalItems()
2110    {
2111      return $this->totalItems;
2112    }
2113  }
2114  
2115  class Google_Service_Fusiontables_Table extends Google_Collection
2116  {
2117    protected $collection_key = 'columns';
2118    protected $internal_gapi_mappings = array(
2119    );
2120    public $attribution;
2121    public $attributionLink;
2122    public $baseTableIds;
2123    public $columnPropertiesJsonSchema;
2124    protected $columnsType = 'Google_Service_Fusiontables_Column';
2125    protected $columnsDataType = 'array';
2126    public $description;
2127    public $isExportable;
2128    public $kind;
2129    public $name;
2130    public $sql;
2131    public $tableId;
2132    public $tablePropertiesJson;
2133    public $tablePropertiesJsonSchema;
2134  
2135  
2136    public function setAttribution($attribution)
2137    {
2138      $this->attribution = $attribution;
2139    }
2140    public function getAttribution()
2141    {
2142      return $this->attribution;
2143    }
2144    public function setAttributionLink($attributionLink)
2145    {
2146      $this->attributionLink = $attributionLink;
2147    }
2148    public function getAttributionLink()
2149    {
2150      return $this->attributionLink;
2151    }
2152    public function setBaseTableIds($baseTableIds)
2153    {
2154      $this->baseTableIds = $baseTableIds;
2155    }
2156    public function getBaseTableIds()
2157    {
2158      return $this->baseTableIds;
2159    }
2160    public function setColumnPropertiesJsonSchema($columnPropertiesJsonSchema)
2161    {
2162      $this->columnPropertiesJsonSchema = $columnPropertiesJsonSchema;
2163    }
2164    public function getColumnPropertiesJsonSchema()
2165    {
2166      return $this->columnPropertiesJsonSchema;
2167    }
2168    public function setColumns($columns)
2169    {
2170      $this->columns = $columns;
2171    }
2172    public function getColumns()
2173    {
2174      return $this->columns;
2175    }
2176    public function setDescription($description)
2177    {
2178      $this->description = $description;
2179    }
2180    public function getDescription()
2181    {
2182      return $this->description;
2183    }
2184    public function setIsExportable($isExportable)
2185    {
2186      $this->isExportable = $isExportable;
2187    }
2188    public function getIsExportable()
2189    {
2190      return $this->isExportable;
2191    }
2192    public function setKind($kind)
2193    {
2194      $this->kind = $kind;
2195    }
2196    public function getKind()
2197    {
2198      return $this->kind;
2199    }
2200    public function setName($name)
2201    {
2202      $this->name = $name;
2203    }
2204    public function getName()
2205    {
2206      return $this->name;
2207    }
2208    public function setSql($sql)
2209    {
2210      $this->sql = $sql;
2211    }
2212    public function getSql()
2213    {
2214      return $this->sql;
2215    }
2216    public function setTableId($tableId)
2217    {
2218      $this->tableId = $tableId;
2219    }
2220    public function getTableId()
2221    {
2222      return $this->tableId;
2223    }
2224    public function setTablePropertiesJson($tablePropertiesJson)
2225    {
2226      $this->tablePropertiesJson = $tablePropertiesJson;
2227    }
2228    public function getTablePropertiesJson()
2229    {
2230      return $this->tablePropertiesJson;
2231    }
2232    public function setTablePropertiesJsonSchema($tablePropertiesJsonSchema)
2233    {
2234      $this->tablePropertiesJsonSchema = $tablePropertiesJsonSchema;
2235    }
2236    public function getTablePropertiesJsonSchema()
2237    {
2238      return $this->tablePropertiesJsonSchema;
2239    }
2240  }
2241  
2242  class Google_Service_Fusiontables_TableList extends Google_Collection
2243  {
2244    protected $collection_key = 'items';
2245    protected $internal_gapi_mappings = array(
2246    );
2247    protected $itemsType = 'Google_Service_Fusiontables_Table';
2248    protected $itemsDataType = 'array';
2249    public $kind;
2250    public $nextPageToken;
2251  
2252  
2253    public function setItems($items)
2254    {
2255      $this->items = $items;
2256    }
2257    public function getItems()
2258    {
2259      return $this->items;
2260    }
2261    public function setKind($kind)
2262    {
2263      $this->kind = $kind;
2264    }
2265    public function getKind()
2266    {
2267      return $this->kind;
2268    }
2269    public function setNextPageToken($nextPageToken)
2270    {
2271      $this->nextPageToken = $nextPageToken;
2272    }
2273    public function getNextPageToken()
2274    {
2275      return $this->nextPageToken;
2276    }
2277  }
2278  
2279  class Google_Service_Fusiontables_Task extends Google_Model
2280  {
2281    protected $internal_gapi_mappings = array(
2282    );
2283    public $kind;
2284    public $progress;
2285    public $started;
2286    public $taskId;
2287    public $type;
2288  
2289  
2290    public function setKind($kind)
2291    {
2292      $this->kind = $kind;
2293    }
2294    public function getKind()
2295    {
2296      return $this->kind;
2297    }
2298    public function setProgress($progress)
2299    {
2300      $this->progress = $progress;
2301    }
2302    public function getProgress()
2303    {
2304      return $this->progress;
2305    }
2306    public function setStarted($started)
2307    {
2308      $this->started = $started;
2309    }
2310    public function getStarted()
2311    {
2312      return $this->started;
2313    }
2314    public function setTaskId($taskId)
2315    {
2316      $this->taskId = $taskId;
2317    }
2318    public function getTaskId()
2319    {
2320      return $this->taskId;
2321    }
2322    public function setType($type)
2323    {
2324      $this->type = $type;
2325    }
2326    public function getType()
2327    {
2328      return $this->type;
2329    }
2330  }
2331  
2332  class Google_Service_Fusiontables_TaskList extends Google_Collection
2333  {
2334    protected $collection_key = 'items';
2335    protected $internal_gapi_mappings = array(
2336    );
2337    protected $itemsType = 'Google_Service_Fusiontables_Task';
2338    protected $itemsDataType = 'array';
2339    public $kind;
2340    public $nextPageToken;
2341    public $totalItems;
2342  
2343  
2344    public function setItems($items)
2345    {
2346      $this->items = $items;
2347    }
2348    public function getItems()
2349    {
2350      return $this->items;
2351    }
2352    public function setKind($kind)
2353    {
2354      $this->kind = $kind;
2355    }
2356    public function getKind()
2357    {
2358      return $this->kind;
2359    }
2360    public function setNextPageToken($nextPageToken)
2361    {
2362      $this->nextPageToken = $nextPageToken;
2363    }
2364    public function getNextPageToken()
2365    {
2366      return $this->nextPageToken;
2367    }
2368    public function setTotalItems($totalItems)
2369    {
2370      $this->totalItems = $totalItems;
2371    }
2372    public function getTotalItems()
2373    {
2374      return $this->totalItems;
2375    }
2376  }
2377  
2378  class Google_Service_Fusiontables_Template extends Google_Collection
2379  {
2380    protected $collection_key = 'automaticColumnNames';
2381    protected $internal_gapi_mappings = array(
2382    );
2383    public $automaticColumnNames;
2384    public $body;
2385    public $kind;
2386    public $name;
2387    public $tableId;
2388    public $templateId;
2389  
2390  
2391    public function setAutomaticColumnNames($automaticColumnNames)
2392    {
2393      $this->automaticColumnNames = $automaticColumnNames;
2394    }
2395    public function getAutomaticColumnNames()
2396    {
2397      return $this->automaticColumnNames;
2398    }
2399    public function setBody($body)
2400    {
2401      $this->body = $body;
2402    }
2403    public function getBody()
2404    {
2405      return $this->body;
2406    }
2407    public function setKind($kind)
2408    {
2409      $this->kind = $kind;
2410    }
2411    public function getKind()
2412    {
2413      return $this->kind;
2414    }
2415    public function setName($name)
2416    {
2417      $this->name = $name;
2418    }
2419    public function getName()
2420    {
2421      return $this->name;
2422    }
2423    public function setTableId($tableId)
2424    {
2425      $this->tableId = $tableId;
2426    }
2427    public function getTableId()
2428    {
2429      return $this->tableId;
2430    }
2431    public function setTemplateId($templateId)
2432    {
2433      $this->templateId = $templateId;
2434    }
2435    public function getTemplateId()
2436    {
2437      return $this->templateId;
2438    }
2439  }
2440  
2441  class Google_Service_Fusiontables_TemplateList extends Google_Collection
2442  {
2443    protected $collection_key = 'items';
2444    protected $internal_gapi_mappings = array(
2445    );
2446    protected $itemsType = 'Google_Service_Fusiontables_Template';
2447    protected $itemsDataType = 'array';
2448    public $kind;
2449    public $nextPageToken;
2450    public $totalItems;
2451  
2452  
2453    public function setItems($items)
2454    {
2455      $this->items = $items;
2456    }
2457    public function getItems()
2458    {
2459      return $this->items;
2460    }
2461    public function setKind($kind)
2462    {
2463      $this->kind = $kind;
2464    }
2465    public function getKind()
2466    {
2467      return $this->kind;
2468    }
2469    public function setNextPageToken($nextPageToken)
2470    {
2471      $this->nextPageToken = $nextPageToken;
2472    }
2473    public function getNextPageToken()
2474    {
2475      return $this->nextPageToken;
2476    }
2477    public function setTotalItems($totalItems)
2478    {
2479      $this->totalItems = $totalItems;
2480    }
2481    public function getTotalItems()
2482    {
2483      return $this->totalItems;
2484    }
2485  }