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\Docs;
19
20class TextStyle extends \Google\Model
21{
22  protected $backgroundColorType = OptionalColor::class;
23  protected $backgroundColorDataType = '';
24  /**
25   * @var string
26   */
27  public $baselineOffset;
28  /**
29   * @var bool
30   */
31  public $bold;
32  protected $fontSizeType = Dimension::class;
33  protected $fontSizeDataType = '';
34  protected $foregroundColorType = OptionalColor::class;
35  protected $foregroundColorDataType = '';
36  /**
37   * @var bool
38   */
39  public $italic;
40  protected $linkType = Link::class;
41  protected $linkDataType = '';
42  /**
43   * @var bool
44   */
45  public $smallCaps;
46  /**
47   * @var bool
48   */
49  public $strikethrough;
50  /**
51   * @var bool
52   */
53  public $underline;
54  protected $weightedFontFamilyType = WeightedFontFamily::class;
55  protected $weightedFontFamilyDataType = '';
56
57  /**
58   * @param OptionalColor
59   */
60  public function setBackgroundColor(OptionalColor $backgroundColor)
61  {
62    $this->backgroundColor = $backgroundColor;
63  }
64  /**
65   * @return OptionalColor
66   */
67  public function getBackgroundColor()
68  {
69    return $this->backgroundColor;
70  }
71  /**
72   * @param string
73   */
74  public function setBaselineOffset($baselineOffset)
75  {
76    $this->baselineOffset = $baselineOffset;
77  }
78  /**
79   * @return string
80   */
81  public function getBaselineOffset()
82  {
83    return $this->baselineOffset;
84  }
85  /**
86   * @param bool
87   */
88  public function setBold($bold)
89  {
90    $this->bold = $bold;
91  }
92  /**
93   * @return bool
94   */
95  public function getBold()
96  {
97    return $this->bold;
98  }
99  /**
100   * @param Dimension
101   */
102  public function setFontSize(Dimension $fontSize)
103  {
104    $this->fontSize = $fontSize;
105  }
106  /**
107   * @return Dimension
108   */
109  public function getFontSize()
110  {
111    return $this->fontSize;
112  }
113  /**
114   * @param OptionalColor
115   */
116  public function setForegroundColor(OptionalColor $foregroundColor)
117  {
118    $this->foregroundColor = $foregroundColor;
119  }
120  /**
121   * @return OptionalColor
122   */
123  public function getForegroundColor()
124  {
125    return $this->foregroundColor;
126  }
127  /**
128   * @param bool
129   */
130  public function setItalic($italic)
131  {
132    $this->italic = $italic;
133  }
134  /**
135   * @return bool
136   */
137  public function getItalic()
138  {
139    return $this->italic;
140  }
141  /**
142   * @param Link
143   */
144  public function setLink(Link $link)
145  {
146    $this->link = $link;
147  }
148  /**
149   * @return Link
150   */
151  public function getLink()
152  {
153    return $this->link;
154  }
155  /**
156   * @param bool
157   */
158  public function setSmallCaps($smallCaps)
159  {
160    $this->smallCaps = $smallCaps;
161  }
162  /**
163   * @return bool
164   */
165  public function getSmallCaps()
166  {
167    return $this->smallCaps;
168  }
169  /**
170   * @param bool
171   */
172  public function setStrikethrough($strikethrough)
173  {
174    $this->strikethrough = $strikethrough;
175  }
176  /**
177   * @return bool
178   */
179  public function getStrikethrough()
180  {
181    return $this->strikethrough;
182  }
183  /**
184   * @param bool
185   */
186  public function setUnderline($underline)
187  {
188    $this->underline = $underline;
189  }
190  /**
191   * @return bool
192   */
193  public function getUnderline()
194  {
195    return $this->underline;
196  }
197  /**
198   * @param WeightedFontFamily
199   */
200  public function setWeightedFontFamily(WeightedFontFamily $weightedFontFamily)
201  {
202    $this->weightedFontFamily = $weightedFontFamily;
203  }
204  /**
205   * @return WeightedFontFamily
206   */
207  public function getWeightedFontFamily()
208  {
209    return $this->weightedFontFamily;
210  }
211}
212
213// Adding a class alias for backwards compatibility with the previous class name.
214class_alias(TextStyle::class, 'Google_Service_Docs_TextStyle');
215