ApplicationReference.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 ApplicationReference extends \Google\Model
  19. {
  20. /**
  21. * The type is not available.
  22. */
  23. public const TYPE_UNSPECIFIED_REFERENCE_TYPE = 'UNSPECIFIED_REFERENCE_TYPE';
  24. /**
  25. * The links of one or more Drive items were posted.
  26. */
  27. public const TYPE_LINK = 'LINK';
  28. /**
  29. * Comments were made regarding a Drive item.
  30. */
  31. public const TYPE_DISCUSS = 'DISCUSS';
  32. /**
  33. * The reference type corresponding to this event.
  34. *
  35. * @var string
  36. */
  37. public $type;
  38. /**
  39. * The reference type corresponding to this event.
  40. *
  41. * Accepted values: UNSPECIFIED_REFERENCE_TYPE, LINK, DISCUSS
  42. *
  43. * @param self::TYPE_* $type
  44. */
  45. public function setType($type)
  46. {
  47. $this->type = $type;
  48. }
  49. /**
  50. * @return self::TYPE_*
  51. */
  52. public function getType()
  53. {
  54. return $this->type;
  55. }
  56. }
  57. // Adding a class alias for backwards compatibility with the previous class name.
  58. class_alias(ApplicationReference::class, 'Google_Service_DriveActivity_ApplicationReference');