Suggestion.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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\DriveActivity;
  18. class Suggestion extends \Google\Model
  19. {
  20. /**
  21. * Subtype not available.
  22. */
  23. public const SUBTYPE_SUBTYPE_UNSPECIFIED = 'SUBTYPE_UNSPECIFIED';
  24. /**
  25. * A suggestion was added.
  26. */
  27. public const SUBTYPE_ADDED = 'ADDED';
  28. /**
  29. * A suggestion was deleted.
  30. */
  31. public const SUBTYPE_DELETED = 'DELETED';
  32. /**
  33. * A suggestion reply was added.
  34. */
  35. public const SUBTYPE_REPLY_ADDED = 'REPLY_ADDED';
  36. /**
  37. * A suggestion reply was deleted.
  38. */
  39. public const SUBTYPE_REPLY_DELETED = 'REPLY_DELETED';
  40. /**
  41. * A suggestion was accepted.
  42. */
  43. public const SUBTYPE_ACCEPTED = 'ACCEPTED';
  44. /**
  45. * A suggestion was rejected.
  46. */
  47. public const SUBTYPE_REJECTED = 'REJECTED';
  48. /**
  49. * An accepted suggestion was deleted.
  50. */
  51. public const SUBTYPE_ACCEPT_DELETED = 'ACCEPT_DELETED';
  52. /**
  53. * A rejected suggestion was deleted.
  54. */
  55. public const SUBTYPE_REJECT_DELETED = 'REJECT_DELETED';
  56. /**
  57. * The sub-type of this event.
  58. *
  59. * @var string
  60. */
  61. public $subtype;
  62. /**
  63. * The sub-type of this event.
  64. *
  65. * Accepted values: SUBTYPE_UNSPECIFIED, ADDED, DELETED, REPLY_ADDED,
  66. * REPLY_DELETED, ACCEPTED, REJECTED, ACCEPT_DELETED, REJECT_DELETED
  67. *
  68. * @param self::SUBTYPE_* $subtype
  69. */
  70. public function setSubtype($subtype)
  71. {
  72. $this->subtype = $subtype;
  73. }
  74. /**
  75. * @return self::SUBTYPE_*
  76. */
  77. public function getSubtype()
  78. {
  79. return $this->subtype;
  80. }
  81. }
  82. // Adding a class alias for backwards compatibility with the previous class name.
  83. class_alias(Suggestion::class, 'Google_Service_DriveActivity_Suggestion');