InsertTableRowsRequest.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 InsertTableRowsRequest extends \Google\Model
  19. {
  20. protected $cellLocationType = TableCellLocation::class;
  21. protected $cellLocationDataType = '';
  22. /**
  23. * Whether to insert new rows below the reference cell location. - `True`:
  24. * insert below the cell. - `False`: insert above the cell.
  25. *
  26. * @var bool
  27. */
  28. public $insertBelow;
  29. /**
  30. * The number of rows to be inserted. Maximum 20 per request.
  31. *
  32. * @var int
  33. */
  34. public $number;
  35. /**
  36. * The table to insert rows into.
  37. *
  38. * @var string
  39. */
  40. public $tableObjectId;
  41. /**
  42. * The reference table cell location from which rows will be inserted. A new
  43. * row will be inserted above (or below) the row where the reference cell is.
  44. * If the reference cell is a merged cell, a new row will be inserted above
  45. * (or below) the merged cell.
  46. *
  47. * @param TableCellLocation $cellLocation
  48. */
  49. public function setCellLocation(TableCellLocation $cellLocation)
  50. {
  51. $this->cellLocation = $cellLocation;
  52. }
  53. /**
  54. * @return TableCellLocation
  55. */
  56. public function getCellLocation()
  57. {
  58. return $this->cellLocation;
  59. }
  60. /**
  61. * Whether to insert new rows below the reference cell location. - `True`:
  62. * insert below the cell. - `False`: insert above the cell.
  63. *
  64. * @param bool $insertBelow
  65. */
  66. public function setInsertBelow($insertBelow)
  67. {
  68. $this->insertBelow = $insertBelow;
  69. }
  70. /**
  71. * @return bool
  72. */
  73. public function getInsertBelow()
  74. {
  75. return $this->insertBelow;
  76. }
  77. /**
  78. * The number of rows to be inserted. Maximum 20 per request.
  79. *
  80. * @param int $number
  81. */
  82. public function setNumber($number)
  83. {
  84. $this->number = $number;
  85. }
  86. /**
  87. * @return int
  88. */
  89. public function getNumber()
  90. {
  91. return $this->number;
  92. }
  93. /**
  94. * The table to insert rows into.
  95. *
  96. * @param string $tableObjectId
  97. */
  98. public function setTableObjectId($tableObjectId)
  99. {
  100. $this->tableObjectId = $tableObjectId;
  101. }
  102. /**
  103. * @return string
  104. */
  105. public function getTableObjectId()
  106. {
  107. return $this->tableObjectId;
  108. }
  109. }
  110. // Adding a class alias for backwards compatibility with the previous class name.
  111. class_alias(InsertTableRowsRequest::class, 'Google_Service_Slides_InsertTableRowsRequest');