1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Sheets;
19
20class Spreadsheet extends \Google\Collection
21{
22  protected $collection_key = 'sheets';
23  protected $dataSourceSchedulesType = DataSourceRefreshSchedule::class;
24  protected $dataSourceSchedulesDataType = 'array';
25  protected $dataSourcesType = DataSource::class;
26  protected $dataSourcesDataType = 'array';
27  protected $developerMetadataType = DeveloperMetadata::class;
28  protected $developerMetadataDataType = 'array';
29  protected $namedRangesType = NamedRange::class;
30  protected $namedRangesDataType = 'array';
31  protected $propertiesType = SpreadsheetProperties::class;
32  protected $propertiesDataType = '';
33  protected $sheetsType = Sheet::class;
34  protected $sheetsDataType = 'array';
35  /**
36   * @var string
37   */
38  public $spreadsheetId;
39  /**
40   * @var string
41   */
42  public $spreadsheetUrl;
43
44  /**
45   * @param DataSourceRefreshSchedule[]
46   */
47  public function setDataSourceSchedules($dataSourceSchedules)
48  {
49    $this->dataSourceSchedules = $dataSourceSchedules;
50  }
51  /**
52   * @return DataSourceRefreshSchedule[]
53   */
54  public function getDataSourceSchedules()
55  {
56    return $this->dataSourceSchedules;
57  }
58  /**
59   * @param DataSource[]
60   */
61  public function setDataSources($dataSources)
62  {
63    $this->dataSources = $dataSources;
64  }
65  /**
66   * @return DataSource[]
67   */
68  public function getDataSources()
69  {
70    return $this->dataSources;
71  }
72  /**
73   * @param DeveloperMetadata[]
74   */
75  public function setDeveloperMetadata($developerMetadata)
76  {
77    $this->developerMetadata = $developerMetadata;
78  }
79  /**
80   * @return DeveloperMetadata[]
81   */
82  public function getDeveloperMetadata()
83  {
84    return $this->developerMetadata;
85  }
86  /**
87   * @param NamedRange[]
88   */
89  public function setNamedRanges($namedRanges)
90  {
91    $this->namedRanges = $namedRanges;
92  }
93  /**
94   * @return NamedRange[]
95   */
96  public function getNamedRanges()
97  {
98    return $this->namedRanges;
99  }
100  /**
101   * @param SpreadsheetProperties
102   */
103  public function setProperties(SpreadsheetProperties $properties)
104  {
105    $this->properties = $properties;
106  }
107  /**
108   * @return SpreadsheetProperties
109   */
110  public function getProperties()
111  {
112    return $this->properties;
113  }
114  /**
115   * @param Sheet[]
116   */
117  public function setSheets($sheets)
118  {
119    $this->sheets = $sheets;
120  }
121  /**
122   * @return Sheet[]
123   */
124  public function getSheets()
125  {
126    return $this->sheets;
127  }
128  /**
129   * @param string
130   */
131  public function setSpreadsheetId($spreadsheetId)
132  {
133    $this->spreadsheetId = $spreadsheetId;
134  }
135  /**
136   * @return string
137   */
138  public function getSpreadsheetId()
139  {
140    return $this->spreadsheetId;
141  }
142  /**
143   * @param string
144   */
145  public function setSpreadsheetUrl($spreadsheetUrl)
146  {
147    $this->spreadsheetUrl = $spreadsheetUrl;
148  }
149  /**
150   * @return string
151   */
152  public function getSpreadsheetUrl()
153  {
154    return $this->spreadsheetUrl;
155  }
156}
157
158// Adding a class alias for backwards compatibility with the previous class name.
159class_alias(Spreadsheet::class, 'Google_Service_Sheets_Spreadsheet');
160