|
| 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 DateElement extends \Google\Collection |
| 21 | +{ |
| 22 | + protected $collection_key = 'suggestedInsertionIds'; |
| 23 | + protected $dateElementPropertiesType = DateElementProperties::class; |
| 24 | + protected $dateElementPropertiesDataType = ''; |
| 25 | + /** |
| 26 | + * Output only. The unique ID of this date. |
| 27 | + * |
| 28 | + * @var string |
| 29 | + */ |
| 30 | + public $dateId; |
| 31 | + protected $suggestedDateElementPropertiesChangesType = SuggestedDateElementProperties::class; |
| 32 | + protected $suggestedDateElementPropertiesChangesDataType = 'map'; |
| 33 | + /** |
| 34 | + * IDs for suggestions that remove this date from the document. A DateElement |
| 35 | + * might have multiple deletion IDs if, for example, multiple users suggest |
| 36 | + * deleting it. If empty, then this date isn't suggested for deletion. |
| 37 | + * |
| 38 | + * @var string[] |
| 39 | + */ |
| 40 | + public $suggestedDeletionIds; |
| 41 | + /** |
| 42 | + * IDs for suggestions that insert this date into the document. A DateElement |
| 43 | + * might have multiple insertion IDs if it's a nested suggested change (a |
| 44 | + * suggestion within a suggestion made by a different user, for example). If |
| 45 | + * empty, then this date isn't a suggested insertion. |
| 46 | + * |
| 47 | + * @var string[] |
| 48 | + */ |
| 49 | + public $suggestedInsertionIds; |
| 50 | + protected $suggestedTextStyleChangesType = SuggestedTextStyle::class; |
| 51 | + protected $suggestedTextStyleChangesDataType = 'map'; |
| 52 | + protected $textStyleType = TextStyle::class; |
| 53 | + protected $textStyleDataType = ''; |
| 54 | + |
| 55 | + /** |
| 56 | + * The properties of this DateElement. |
| 57 | + * |
| 58 | + * @param DateElementProperties $dateElementProperties |
| 59 | + */ |
| 60 | + public function setDateElementProperties(DateElementProperties $dateElementProperties) |
| 61 | + { |
| 62 | + $this->dateElementProperties = $dateElementProperties; |
| 63 | + } |
| 64 | + /** |
| 65 | + * @return DateElementProperties |
| 66 | + */ |
| 67 | + public function getDateElementProperties() |
| 68 | + { |
| 69 | + return $this->dateElementProperties; |
| 70 | + } |
| 71 | + /** |
| 72 | + * Output only. The unique ID of this date. |
| 73 | + * |
| 74 | + * @param string $dateId |
| 75 | + */ |
| 76 | + public function setDateId($dateId) |
| 77 | + { |
| 78 | + $this->dateId = $dateId; |
| 79 | + } |
| 80 | + /** |
| 81 | + * @return string |
| 82 | + */ |
| 83 | + public function getDateId() |
| 84 | + { |
| 85 | + return $this->dateId; |
| 86 | + } |
| 87 | + /** |
| 88 | + * The suggested changes to the date element properties, keyed by suggestion |
| 89 | + * ID. |
| 90 | + * |
| 91 | + * @param SuggestedDateElementProperties[] $suggestedDateElementPropertiesChanges |
| 92 | + */ |
| 93 | + public function setSuggestedDateElementPropertiesChanges($suggestedDateElementPropertiesChanges) |
| 94 | + { |
| 95 | + $this->suggestedDateElementPropertiesChanges = $suggestedDateElementPropertiesChanges; |
| 96 | + } |
| 97 | + /** |
| 98 | + * @return SuggestedDateElementProperties[] |
| 99 | + */ |
| 100 | + public function getSuggestedDateElementPropertiesChanges() |
| 101 | + { |
| 102 | + return $this->suggestedDateElementPropertiesChanges; |
| 103 | + } |
| 104 | + /** |
| 105 | + * IDs for suggestions that remove this date from the document. A DateElement |
| 106 | + * might have multiple deletion IDs if, for example, multiple users suggest |
| 107 | + * deleting it. If empty, then this date isn't suggested for deletion. |
| 108 | + * |
| 109 | + * @param string[] $suggestedDeletionIds |
| 110 | + */ |
| 111 | + public function setSuggestedDeletionIds($suggestedDeletionIds) |
| 112 | + { |
| 113 | + $this->suggestedDeletionIds = $suggestedDeletionIds; |
| 114 | + } |
| 115 | + /** |
| 116 | + * @return string[] |
| 117 | + */ |
| 118 | + public function getSuggestedDeletionIds() |
| 119 | + { |
| 120 | + return $this->suggestedDeletionIds; |
| 121 | + } |
| 122 | + /** |
| 123 | + * IDs for suggestions that insert this date into the document. A DateElement |
| 124 | + * might have multiple insertion IDs if it's a nested suggested change (a |
| 125 | + * suggestion within a suggestion made by a different user, for example). If |
| 126 | + * empty, then this date isn't a suggested insertion. |
| 127 | + * |
| 128 | + * @param string[] $suggestedInsertionIds |
| 129 | + */ |
| 130 | + public function setSuggestedInsertionIds($suggestedInsertionIds) |
| 131 | + { |
| 132 | + $this->suggestedInsertionIds = $suggestedInsertionIds; |
| 133 | + } |
| 134 | + /** |
| 135 | + * @return string[] |
| 136 | + */ |
| 137 | + public function getSuggestedInsertionIds() |
| 138 | + { |
| 139 | + return $this->suggestedInsertionIds; |
| 140 | + } |
| 141 | + /** |
| 142 | + * The suggested text style changes to this DateElement, keyed by suggestion |
| 143 | + * ID. |
| 144 | + * |
| 145 | + * @param SuggestedTextStyle[] $suggestedTextStyleChanges |
| 146 | + */ |
| 147 | + public function setSuggestedTextStyleChanges($suggestedTextStyleChanges) |
| 148 | + { |
| 149 | + $this->suggestedTextStyleChanges = $suggestedTextStyleChanges; |
| 150 | + } |
| 151 | + /** |
| 152 | + * @return SuggestedTextStyle[] |
| 153 | + */ |
| 154 | + public function getSuggestedTextStyleChanges() |
| 155 | + { |
| 156 | + return $this->suggestedTextStyleChanges; |
| 157 | + } |
| 158 | + /** |
| 159 | + * The text style of this DateElement. |
| 160 | + * |
| 161 | + * @param TextStyle $textStyle |
| 162 | + */ |
| 163 | + public function setTextStyle(TextStyle $textStyle) |
| 164 | + { |
| 165 | + $this->textStyle = $textStyle; |
| 166 | + } |
| 167 | + /** |
| 168 | + * @return TextStyle |
| 169 | + */ |
| 170 | + public function getTextStyle() |
| 171 | + { |
| 172 | + return $this->textStyle; |
| 173 | + } |
| 174 | +} |
| 175 | + |
| 176 | +// Adding a class alias for backwards compatibility with the previous class name. |
| 177 | +class_alias(DateElement::class, 'Google_Service_Docs_DateElement'); |
0 commit comments