95 lines
3.4 KiB
PHP
95 lines
3.4 KiB
PHP
<?php
|
|
/*
|
|
* Copyright 2014 Google Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
|
* use this file except in compliance with the License. You may obtain a copy of
|
|
* the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
* License for the specific language governing permissions and limitations under
|
|
* the License.
|
|
*/
|
|
|
|
namespace Google\Service\Bigquery;
|
|
|
|
class GoogleSheetsOptions extends \Google\Model
|
|
{
|
|
/**
|
|
* Optional. Range of a sheet to query from. Only used when non-empty. Typical
|
|
* format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
|
|
* sheet1!A1:B20
|
|
*
|
|
* @var string
|
|
*/
|
|
public $range;
|
|
/**
|
|
* Optional. The number of rows at the top of a sheet that BigQuery will skip
|
|
* when reading the data. The default value is 0. This property is useful if
|
|
* you have header rows that should be skipped. When autodetect is on, the
|
|
* behavior is the following: * skipLeadingRows unspecified - Autodetect tries
|
|
* to detect headers in the first row. If they are not detected, the row is
|
|
* read as data. Otherwise data is read starting from the second row. *
|
|
* skipLeadingRows is 0 - Instructs autodetect that there are no headers and
|
|
* data should be read starting from the first row. * skipLeadingRows = N > 0
|
|
* - Autodetect skips N-1 rows and tries to detect headers in row N. If
|
|
* headers are not detected, row N is just skipped. Otherwise row N is used to
|
|
* extract column names for the detected schema.
|
|
*
|
|
* @var string
|
|
*/
|
|
public $skipLeadingRows;
|
|
|
|
/**
|
|
* Optional. Range of a sheet to query from. Only used when non-empty. Typical
|
|
* format: sheet_name!top_left_cell_id:bottom_right_cell_id For example:
|
|
* sheet1!A1:B20
|
|
*
|
|
* @param string $range
|
|
*/
|
|
public function setRange($range)
|
|
{
|
|
$this->range = $range;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getRange()
|
|
{
|
|
return $this->range;
|
|
}
|
|
/**
|
|
* Optional. The number of rows at the top of a sheet that BigQuery will skip
|
|
* when reading the data. The default value is 0. This property is useful if
|
|
* you have header rows that should be skipped. When autodetect is on, the
|
|
* behavior is the following: * skipLeadingRows unspecified - Autodetect tries
|
|
* to detect headers in the first row. If they are not detected, the row is
|
|
* read as data. Otherwise data is read starting from the second row. *
|
|
* skipLeadingRows is 0 - Instructs autodetect that there are no headers and
|
|
* data should be read starting from the first row. * skipLeadingRows = N > 0
|
|
* - Autodetect skips N-1 rows and tries to detect headers in row N. If
|
|
* headers are not detected, row N is just skipped. Otherwise row N is used to
|
|
* extract column names for the detected schema.
|
|
*
|
|
* @param string $skipLeadingRows
|
|
*/
|
|
public function setSkipLeadingRows($skipLeadingRows)
|
|
{
|
|
$this->skipLeadingRows = $skipLeadingRows;
|
|
}
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSkipLeadingRows()
|
|
{
|
|
return $this->skipLeadingRows;
|
|
}
|
|
}
|
|
|
|
// Adding a class alias for backwards compatibility with the previous class name.
|
|
class_alias(GoogleSheetsOptions::class, 'Google_Service_Bigquery_GoogleSheetsOptions');
|