Skip to content

Commit c31f44a

Browse files
1 parent dcf5258 commit c31f44a

4 files changed

Lines changed: 397 additions & 0 deletions

File tree

src/Docs/DateElement.php

Lines changed: 177 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,177 @@
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');
Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
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 DateElementPropertiesSuggestionState extends \Google\Model
21+
{
22+
/**
23+
* Indicates if there was a suggested change to date_format.
24+
*
25+
* @var bool
26+
*/
27+
public $dateFormatSuggested;
28+
/**
29+
* Indicates if there was a suggested change to locale.
30+
*
31+
* @var bool
32+
*/
33+
public $localeSuggested;
34+
/**
35+
* Indicates if there was a suggested change to time_format.
36+
*
37+
* @var bool
38+
*/
39+
public $timeFormatSuggested;
40+
/**
41+
* Indicates if there was a suggested change to time_zone_id.
42+
*
43+
* @var bool
44+
*/
45+
public $timeZoneIdSuggested;
46+
/**
47+
* Indicates if there was a suggested change to timestamp.
48+
*
49+
* @var bool
50+
*/
51+
public $timestampSuggested;
52+
53+
/**
54+
* Indicates if there was a suggested change to date_format.
55+
*
56+
* @param bool $dateFormatSuggested
57+
*/
58+
public function setDateFormatSuggested($dateFormatSuggested)
59+
{
60+
$this->dateFormatSuggested = $dateFormatSuggested;
61+
}
62+
/**
63+
* @return bool
64+
*/
65+
public function getDateFormatSuggested()
66+
{
67+
return $this->dateFormatSuggested;
68+
}
69+
/**
70+
* Indicates if there was a suggested change to locale.
71+
*
72+
* @param bool $localeSuggested
73+
*/
74+
public function setLocaleSuggested($localeSuggested)
75+
{
76+
$this->localeSuggested = $localeSuggested;
77+
}
78+
/**
79+
* @return bool
80+
*/
81+
public function getLocaleSuggested()
82+
{
83+
return $this->localeSuggested;
84+
}
85+
/**
86+
* Indicates if there was a suggested change to time_format.
87+
*
88+
* @param bool $timeFormatSuggested
89+
*/
90+
public function setTimeFormatSuggested($timeFormatSuggested)
91+
{
92+
$this->timeFormatSuggested = $timeFormatSuggested;
93+
}
94+
/**
95+
* @return bool
96+
*/
97+
public function getTimeFormatSuggested()
98+
{
99+
return $this->timeFormatSuggested;
100+
}
101+
/**
102+
* Indicates if there was a suggested change to time_zone_id.
103+
*
104+
* @param bool $timeZoneIdSuggested
105+
*/
106+
public function setTimeZoneIdSuggested($timeZoneIdSuggested)
107+
{
108+
$this->timeZoneIdSuggested = $timeZoneIdSuggested;
109+
}
110+
/**
111+
* @return bool
112+
*/
113+
public function getTimeZoneIdSuggested()
114+
{
115+
return $this->timeZoneIdSuggested;
116+
}
117+
/**
118+
* Indicates if there was a suggested change to timestamp.
119+
*
120+
* @param bool $timestampSuggested
121+
*/
122+
public function setTimestampSuggested($timestampSuggested)
123+
{
124+
$this->timestampSuggested = $timestampSuggested;
125+
}
126+
/**
127+
* @return bool
128+
*/
129+
public function getTimestampSuggested()
130+
{
131+
return $this->timestampSuggested;
132+
}
133+
}
134+
135+
// Adding a class alias for backwards compatibility with the previous class name.
136+
class_alias(DateElementPropertiesSuggestionState::class, 'Google_Service_Docs_DateElementPropertiesSuggestionState');

src/Docs/ParagraphElement.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class ParagraphElement extends \Google\Model
2323
protected $autoTextDataType = '';
2424
protected $columnBreakType = ColumnBreak::class;
2525
protected $columnBreakDataType = '';
26+
protected $dateElementType = DateElement::class;
27+
protected $dateElementDataType = '';
2628
/**
2729
* The zero-base end index of this paragraph element, exclusive, in UTF-16
2830
* code units.
@@ -85,6 +87,22 @@ public function getColumnBreak()
8587
{
8688
return $this->columnBreak;
8789
}
90+
/**
91+
* A paragraph element that represents a date.
92+
*
93+
* @param DateElement $dateElement
94+
*/
95+
public function setDateElement(DateElement $dateElement)
96+
{
97+
$this->dateElement = $dateElement;
98+
}
99+
/**
100+
* @return DateElement
101+
*/
102+
public function getDateElement()
103+
{
104+
return $this->dateElement;
105+
}
88106
/**
89107
* The zero-base end index of this paragraph element, exclusive, in UTF-16
90108
* code units.

0 commit comments

Comments
 (0)