UpdateTableCellPropertiesRequest.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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. namespace Google\Service\Slides;
  18. class UpdateTableCellPropertiesRequest extends \Google\Model
  19. {
  20. /**
  21. * The fields that should be updated. At least one field must be specified.
  22. * The root `tableCellProperties` is implied and should not be specified. A
  23. * single `"*"` can be used as short-hand for listing every field. For example
  24. * to update the table cell background solid fill color, set `fields` to
  25. * `"tableCellBackgroundFill.solidFill.color"`. To reset a property to its
  26. * default value, include its field name in the field mask but leave the field
  27. * itself unset.
  28. *
  29. * @var string
  30. */
  31. public $fields;
  32. /**
  33. * The object ID of the table.
  34. *
  35. * @var string
  36. */
  37. public $objectId;
  38. protected $tableCellPropertiesType = TableCellProperties::class;
  39. protected $tableCellPropertiesDataType = '';
  40. protected $tableRangeType = TableRange::class;
  41. protected $tableRangeDataType = '';
  42. /**
  43. * The fields that should be updated. At least one field must be specified.
  44. * The root `tableCellProperties` is implied and should not be specified. A
  45. * single `"*"` can be used as short-hand for listing every field. For example
  46. * to update the table cell background solid fill color, set `fields` to
  47. * `"tableCellBackgroundFill.solidFill.color"`. To reset a property to its
  48. * default value, include its field name in the field mask but leave the field
  49. * itself unset.
  50. *
  51. * @param string $fields
  52. */
  53. public function setFields($fields)
  54. {
  55. $this->fields = $fields;
  56. }
  57. /**
  58. * @return string
  59. */
  60. public function getFields()
  61. {
  62. return $this->fields;
  63. }
  64. /**
  65. * The object ID of the table.
  66. *
  67. * @param string $objectId
  68. */
  69. public function setObjectId($objectId)
  70. {
  71. $this->objectId = $objectId;
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getObjectId()
  77. {
  78. return $this->objectId;
  79. }
  80. /**
  81. * The table cell properties to update.
  82. *
  83. * @param TableCellProperties $tableCellProperties
  84. */
  85. public function setTableCellProperties(TableCellProperties $tableCellProperties)
  86. {
  87. $this->tableCellProperties = $tableCellProperties;
  88. }
  89. /**
  90. * @return TableCellProperties
  91. */
  92. public function getTableCellProperties()
  93. {
  94. return $this->tableCellProperties;
  95. }
  96. /**
  97. * The table range representing the subset of the table to which the updates
  98. * are applied. If a table range is not specified, the updates will apply to
  99. * the entire table.
  100. *
  101. * @param TableRange $tableRange
  102. */
  103. public function setTableRange(TableRange $tableRange)
  104. {
  105. $this->tableRange = $tableRange;
  106. }
  107. /**
  108. * @return TableRange
  109. */
  110. public function getTableRange()
  111. {
  112. return $this->tableRange;
  113. }
  114. }
  115. // Adding a class alias for backwards compatibility with the previous class name.
  116. class_alias(UpdateTableCellPropertiesRequest::class, 'Google_Service_Slides_UpdateTableCellPropertiesRequest');