CreateTableRequest.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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 CreateTableRequest extends \Google\Model
  19. {
  20. /**
  21. * Number of columns in the table.
  22. *
  23. * @var int
  24. */
  25. public $columns;
  26. protected $elementPropertiesType = PageElementProperties::class;
  27. protected $elementPropertiesDataType = '';
  28. /**
  29. * A user-supplied object ID. If you specify an ID, it must be unique among
  30. * all pages and page elements in the presentation. The ID must start with an
  31. * alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`);
  32. * remaining characters may include those as well as a hyphen or colon
  33. * (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less
  34. * than 5 or greater than 50. If you don't specify an ID, a unique one is
  35. * generated.
  36. *
  37. * @var string
  38. */
  39. public $objectId;
  40. /**
  41. * Number of rows in the table.
  42. *
  43. * @var int
  44. */
  45. public $rows;
  46. /**
  47. * Number of columns in the table.
  48. *
  49. * @param int $columns
  50. */
  51. public function setColumns($columns)
  52. {
  53. $this->columns = $columns;
  54. }
  55. /**
  56. * @return int
  57. */
  58. public function getColumns()
  59. {
  60. return $this->columns;
  61. }
  62. /**
  63. * The element properties for the table. The table will be created at the
  64. * provided size, subject to a minimum size. If no size is provided, the table
  65. * will be automatically sized. Table transforms must have a scale of 1 and no
  66. * shear components. If no transform is provided, the table will be centered
  67. * on the page.
  68. *
  69. * @param PageElementProperties $elementProperties
  70. */
  71. public function setElementProperties(PageElementProperties $elementProperties)
  72. {
  73. $this->elementProperties = $elementProperties;
  74. }
  75. /**
  76. * @return PageElementProperties
  77. */
  78. public function getElementProperties()
  79. {
  80. return $this->elementProperties;
  81. }
  82. /**
  83. * A user-supplied object ID. If you specify an ID, it must be unique among
  84. * all pages and page elements in the presentation. The ID must start with an
  85. * alphanumeric character or an underscore (matches regex `[a-zA-Z0-9_]`);
  86. * remaining characters may include those as well as a hyphen or colon
  87. * (matches regex `[a-zA-Z0-9_-:]`). The length of the ID must not be less
  88. * than 5 or greater than 50. If you don't specify an ID, a unique one is
  89. * generated.
  90. *
  91. * @param string $objectId
  92. */
  93. public function setObjectId($objectId)
  94. {
  95. $this->objectId = $objectId;
  96. }
  97. /**
  98. * @return string
  99. */
  100. public function getObjectId()
  101. {
  102. return $this->objectId;
  103. }
  104. /**
  105. * Number of rows in the table.
  106. *
  107. * @param int $rows
  108. */
  109. public function setRows($rows)
  110. {
  111. $this->rows = $rows;
  112. }
  113. /**
  114. * @return int
  115. */
  116. public function getRows()
  117. {
  118. return $this->rows;
  119. }
  120. }
  121. // Adding a class alias for backwards compatibility with the previous class name.
  122. class_alias(CreateTableRequest::class, 'Google_Service_Slides_CreateTableRequest');