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 SortSpec extends \Google\Model
21{
22  protected $backgroundColorType = Color::class;
23  protected $backgroundColorDataType = '';
24  protected $backgroundColorStyleType = ColorStyle::class;
25  protected $backgroundColorStyleDataType = '';
26  protected $dataSourceColumnReferenceType = DataSourceColumnReference::class;
27  protected $dataSourceColumnReferenceDataType = '';
28  /**
29   * @var int
30   */
31  public $dimensionIndex;
32  protected $foregroundColorType = Color::class;
33  protected $foregroundColorDataType = '';
34  protected $foregroundColorStyleType = ColorStyle::class;
35  protected $foregroundColorStyleDataType = '';
36  /**
37   * @var string
38   */
39  public $sortOrder;
40
41  /**
42   * @param Color
43   */
44  public function setBackgroundColor(Color $backgroundColor)
45  {
46    $this->backgroundColor = $backgroundColor;
47  }
48  /**
49   * @return Color
50   */
51  public function getBackgroundColor()
52  {
53    return $this->backgroundColor;
54  }
55  /**
56   * @param ColorStyle
57   */
58  public function setBackgroundColorStyle(ColorStyle $backgroundColorStyle)
59  {
60    $this->backgroundColorStyle = $backgroundColorStyle;
61  }
62  /**
63   * @return ColorStyle
64   */
65  public function getBackgroundColorStyle()
66  {
67    return $this->backgroundColorStyle;
68  }
69  /**
70   * @param DataSourceColumnReference
71   */
72  public function setDataSourceColumnReference(DataSourceColumnReference $dataSourceColumnReference)
73  {
74    $this->dataSourceColumnReference = $dataSourceColumnReference;
75  }
76  /**
77   * @return DataSourceColumnReference
78   */
79  public function getDataSourceColumnReference()
80  {
81    return $this->dataSourceColumnReference;
82  }
83  /**
84   * @param int
85   */
86  public function setDimensionIndex($dimensionIndex)
87  {
88    $this->dimensionIndex = $dimensionIndex;
89  }
90  /**
91   * @return int
92   */
93  public function getDimensionIndex()
94  {
95    return $this->dimensionIndex;
96  }
97  /**
98   * @param Color
99   */
100  public function setForegroundColor(Color $foregroundColor)
101  {
102    $this->foregroundColor = $foregroundColor;
103  }
104  /**
105   * @return Color
106   */
107  public function getForegroundColor()
108  {
109    return $this->foregroundColor;
110  }
111  /**
112   * @param ColorStyle
113   */
114  public function setForegroundColorStyle(ColorStyle $foregroundColorStyle)
115  {
116    $this->foregroundColorStyle = $foregroundColorStyle;
117  }
118  /**
119   * @return ColorStyle
120   */
121  public function getForegroundColorStyle()
122  {
123    return $this->foregroundColorStyle;
124  }
125  /**
126   * @param string
127   */
128  public function setSortOrder($sortOrder)
129  {
130    $this->sortOrder = $sortOrder;
131  }
132  /**
133   * @return string
134   */
135  public function getSortOrder()
136  {
137    return $this->sortOrder;
138  }
139}
140
141// Adding a class alias for backwards compatibility with the previous class name.
142class_alias(SortSpec::class, 'Google_Service_Sheets_SortSpec');
143