Skip to content

Commit 5400021

Browse files
1 parent 4192196 commit 5400021

File tree

2 files changed

+126
-0
lines changed

2 files changed

+126
-0
lines changed

src/Docs/Request.php

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ class Request extends \Google\Model
8585
protected $updateDocumentStyleDataType = '';
8686
protected $updateDocumentTabPropertiesType = UpdateDocumentTabPropertiesRequest::class;
8787
protected $updateDocumentTabPropertiesDataType = '';
88+
protected $updateNamedStyleType = UpdateNamedStyleRequest::class;
89+
protected $updateNamedStyleDataType = '';
8890
protected $updateParagraphStyleType = UpdateParagraphStyleRequest::class;
8991
protected $updateParagraphStyleDataType = '';
9092
protected $updateSectionStyleType = UpdateSectionStyleRequest::class;
@@ -626,6 +628,22 @@ public function getUpdateDocumentTabProperties()
626628
{
627629
return $this->updateDocumentTabProperties;
628630
}
631+
/**
632+
* Updates a named style.
633+
*
634+
* @param UpdateNamedStyleRequest $updateNamedStyle
635+
*/
636+
public function setUpdateNamedStyle(UpdateNamedStyleRequest $updateNamedStyle)
637+
{
638+
$this->updateNamedStyle = $updateNamedStyle;
639+
}
640+
/**
641+
* @return UpdateNamedStyleRequest
642+
*/
643+
public function getUpdateNamedStyle()
644+
{
645+
return $this->updateNamedStyle;
646+
}
629647
/**
630648
* Updates the paragraph style at the specified range.
631649
*
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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

Comments
 (0)