UpdateTableColumnPropertiesRequest.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 UpdateTableColumnPropertiesRequest extends \Google\Collection
  19. {
  20. protected $collection_key = 'columnIndices';
  21. /**
  22. * The list of zero-based indices specifying which columns to update. If no
  23. * indices are provided, all columns in the table will be updated.
  24. *
  25. * @var int[]
  26. */
  27. public $columnIndices;
  28. /**
  29. * The fields that should be updated. At least one field must be specified.
  30. * The root `tableColumnProperties` is implied and should not be specified. A
  31. * single `"*"` can be used as short-hand for listing every field. For example
  32. * to update the column width, set `fields` to `"column_width"`. If
  33. * '"column_width"' is included in the field mask but the property is left
  34. * unset, the column width will default to 406,400 EMU (32 points).
  35. *
  36. * @var string
  37. */
  38. public $fields;
  39. /**
  40. * The object ID of the table.
  41. *
  42. * @var string
  43. */
  44. public $objectId;
  45. protected $tableColumnPropertiesType = TableColumnProperties::class;
  46. protected $tableColumnPropertiesDataType = '';
  47. /**
  48. * The list of zero-based indices specifying which columns to update. If no
  49. * indices are provided, all columns in the table will be updated.
  50. *
  51. * @param int[] $columnIndices
  52. */
  53. public function setColumnIndices($columnIndices)
  54. {
  55. $this->columnIndices = $columnIndices;
  56. }
  57. /**
  58. * @return int[]
  59. */
  60. public function getColumnIndices()
  61. {
  62. return $this->columnIndices;
  63. }
  64. /**
  65. * The fields that should be updated. At least one field must be specified.
  66. * The root `tableColumnProperties` is implied and should not be specified. A
  67. * single `"*"` can be used as short-hand for listing every field. For example
  68. * to update the column width, set `fields` to `"column_width"`. If
  69. * '"column_width"' is included in the field mask but the property is left
  70. * unset, the column width will default to 406,400 EMU (32 points).
  71. *
  72. * @param string $fields
  73. */
  74. public function setFields($fields)
  75. {
  76. $this->fields = $fields;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getFields()
  82. {
  83. return $this->fields;
  84. }
  85. /**
  86. * The object ID of the table.
  87. *
  88. * @param string $objectId
  89. */
  90. public function setObjectId($objectId)
  91. {
  92. $this->objectId = $objectId;
  93. }
  94. /**
  95. * @return string
  96. */
  97. public function getObjectId()
  98. {
  99. return $this->objectId;
  100. }
  101. /**
  102. * The table column properties to update. If the value of
  103. * `table_column_properties#column_width` in the request is less than 406,400
  104. * EMU (32 points), a 400 bad request error is returned.
  105. *
  106. * @param TableColumnProperties $tableColumnProperties
  107. */
  108. public function setTableColumnProperties(TableColumnProperties $tableColumnProperties)
  109. {
  110. $this->tableColumnProperties = $tableColumnProperties;
  111. }
  112. /**
  113. * @return TableColumnProperties
  114. */
  115. public function getTableColumnProperties()
  116. {
  117. return $this->tableColumnProperties;
  118. }
  119. }
  120. // Adding a class alias for backwards compatibility with the previous class name.
  121. class_alias(UpdateTableColumnPropertiesRequest::class, 'Google_Service_Slides_UpdateTableColumnPropertiesRequest');