|
| 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 | + |
| 18 | +namespace Google\Service\Docs; |
| 19 | + |
| 20 | +class UpdateNamedStyleRequest extends \Google\Model |
| 21 | +{ |
| 22 | + /** |
| 23 | + * The NamedStyle fields that should be updated. At least `named_style_type |
| 24 | + * must be specified. The root `named_style` is implied and should not be |
| 25 | + * specified. A single `"*"` can be used as short-hand for listing every |
| 26 | + * field. For example, to update the text style to bold, set `fields` to |
| 27 | + * include `"text_style"` and `"text_style.bold"`. To update the paragraph |
| 28 | + * style's alignment property, set `fields` to include `"paragraph_style"` and |
| 29 | + * `"paragraph_style.alignment"`. To reset a property to its default value, |
| 30 | + * include its field name in the field mask but leave the field itself unset. |
| 31 | + * Specifying `"text_style"` or `"paragraph_style"` with an empty TextStyle or |
| 32 | + * ParagraphStyle will reset all of its nested fields. |
| 33 | + * |
| 34 | + * @var string |
| 35 | + */ |
| 36 | + public $fields; |
| 37 | + protected $namedStyleType = NamedStyle::class; |
| 38 | + protected $namedStyleDataType = ''; |
| 39 | + /** |
| 40 | + * The document tab to update. By default, the update is applied to the first |
| 41 | + * tab. |
| 42 | + * |
| 43 | + * @var string |
| 44 | + */ |
| 45 | + public $tabId; |
| 46 | + |
| 47 | + /** |
| 48 | + * The NamedStyle fields that should be updated. At least `named_style_type |
| 49 | + * must be specified. The root `named_style` is implied and should not be |
| 50 | + * specified. A single `"*"` can be used as short-hand for listing every |
| 51 | + * field. For example, to update the text style to bold, set `fields` to |
| 52 | + * include `"text_style"` and `"text_style.bold"`. To update the paragraph |
| 53 | + * style's alignment property, set `fields` to include `"paragraph_style"` and |
| 54 | + * `"paragraph_style.alignment"`. To reset a property to its default value, |
| 55 | + * include its field name in the field mask but leave the field itself unset. |
| 56 | + * Specifying `"text_style"` or `"paragraph_style"` with an empty TextStyle or |
| 57 | + * ParagraphStyle will reset all of its nested fields. |
| 58 | + * |
| 59 | + * @param string $fields |
| 60 | + */ |
| 61 | + public function setFields($fields) |
| 62 | + { |
| 63 | + $this->fields = $fields; |
| 64 | + } |
| 65 | + /** |
| 66 | + * @return string |
| 67 | + */ |
| 68 | + public function getFields() |
| 69 | + { |
| 70 | + return $this->fields; |
| 71 | + } |
| 72 | + /** |
| 73 | + * The document style to update. |
| 74 | + * |
| 75 | + * @param NamedStyle $namedStyle |
| 76 | + */ |
| 77 | + public function setNamedStyle(NamedStyle $namedStyle) |
| 78 | + { |
| 79 | + $this->namedStyle = $namedStyle; |
| 80 | + } |
| 81 | + /** |
| 82 | + * @return NamedStyle |
| 83 | + */ |
| 84 | + public function getNamedStyle() |
| 85 | + { |
| 86 | + return $this->namedStyle; |
| 87 | + } |
| 88 | + /** |
| 89 | + * The document tab to update. By default, the update is applied to the first |
| 90 | + * tab. |
| 91 | + * |
| 92 | + * @param string $tabId |
| 93 | + */ |
| 94 | + public function setTabId($tabId) |
| 95 | + { |
| 96 | + $this->tabId = $tabId; |
| 97 | + } |
| 98 | + /** |
| 99 | + * @return string |
| 100 | + */ |
| 101 | + public function getTabId() |
| 102 | + { |
| 103 | + return $this->tabId; |
| 104 | + } |
| 105 | +} |
| 106 | + |
| 107 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 108 | +class_alias(UpdateNamedStyleRequest::class, 'Google_Service_Docs_UpdateNamedStyleRequest'); |
0 commit comments