Keine Beschreibung

ProtectedRange.php 2.9KB

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. class Google_Service_Sheets_ProtectedRange extends Google_Collection
  18. {
  19. protected $collection_key = 'unprotectedRanges';
  20. public $description;
  21. protected $editorsType = 'Google_Service_Sheets_Editors';
  22. protected $editorsDataType = '';
  23. public $namedRangeId;
  24. public $protectedRangeId;
  25. protected $rangeType = 'Google_Service_Sheets_GridRange';
  26. protected $rangeDataType = '';
  27. public $requestingUserCanEdit;
  28. protected $unprotectedRangesType = 'Google_Service_Sheets_GridRange';
  29. protected $unprotectedRangesDataType = 'array';
  30. public $warningOnly;
  31. public function setDescription($description)
  32. {
  33. $this->description = $description;
  34. }
  35. public function getDescription()
  36. {
  37. return $this->description;
  38. }
  39. /**
  40. * @param Google_Service_Sheets_Editors
  41. */
  42. public function setEditors(Google_Service_Sheets_Editors $editors)
  43. {
  44. $this->editors = $editors;
  45. }
  46. /**
  47. * @return Google_Service_Sheets_Editors
  48. */
  49. public function getEditors()
  50. {
  51. return $this->editors;
  52. }
  53. public function setNamedRangeId($namedRangeId)
  54. {
  55. $this->namedRangeId = $namedRangeId;
  56. }
  57. public function getNamedRangeId()
  58. {
  59. return $this->namedRangeId;
  60. }
  61. public function setProtectedRangeId($protectedRangeId)
  62. {
  63. $this->protectedRangeId = $protectedRangeId;
  64. }
  65. public function getProtectedRangeId()
  66. {
  67. return $this->protectedRangeId;
  68. }
  69. /**
  70. * @param Google_Service_Sheets_GridRange
  71. */
  72. public function setRange(Google_Service_Sheets_GridRange $range)
  73. {
  74. $this->range = $range;
  75. }
  76. /**
  77. * @return Google_Service_Sheets_GridRange
  78. */
  79. public function getRange()
  80. {
  81. return $this->range;
  82. }
  83. public function setRequestingUserCanEdit($requestingUserCanEdit)
  84. {
  85. $this->requestingUserCanEdit = $requestingUserCanEdit;
  86. }
  87. public function getRequestingUserCanEdit()
  88. {
  89. return $this->requestingUserCanEdit;
  90. }
  91. /**
  92. * @param Google_Service_Sheets_GridRange
  93. */
  94. public function setUnprotectedRanges($unprotectedRanges)
  95. {
  96. $this->unprotectedRanges = $unprotectedRanges;
  97. }
  98. /**
  99. * @return Google_Service_Sheets_GridRange
  100. */
  101. public function getUnprotectedRanges()
  102. {
  103. return $this->unprotectedRanges;
  104. }
  105. public function setWarningOnly($warningOnly)
  106. {
  107. $this->warningOnly = $warningOnly;
  108. }
  109. public function getWarningOnly()
  110. {
  111. return $this->warningOnly;
  112. }
  113. }