SlashCommandMetadata.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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\HangoutsChat;
  18. class SlashCommandMetadata extends \Google\Model
  19. {
  20. protected $botType = User::class;
  21. protected $botDataType = '';
  22. /**
  23. * @var string
  24. */
  25. public $commandId;
  26. /**
  27. * @var string
  28. */
  29. public $commandName;
  30. /**
  31. * @var bool
  32. */
  33. public $triggersDialog;
  34. /**
  35. * @var string
  36. */
  37. public $type;
  38. /**
  39. * @param User
  40. */
  41. public function setBot(User $bot)
  42. {
  43. $this->bot = $bot;
  44. }
  45. /**
  46. * @return User
  47. */
  48. public function getBot()
  49. {
  50. return $this->bot;
  51. }
  52. /**
  53. * @param string
  54. */
  55. public function setCommandId($commandId)
  56. {
  57. $this->commandId = $commandId;
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getCommandId()
  63. {
  64. return $this->commandId;
  65. }
  66. /**
  67. * @param string
  68. */
  69. public function setCommandName($commandName)
  70. {
  71. $this->commandName = $commandName;
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getCommandName()
  77. {
  78. return $this->commandName;
  79. }
  80. /**
  81. * @param bool
  82. */
  83. public function setTriggersDialog($triggersDialog)
  84. {
  85. $this->triggersDialog = $triggersDialog;
  86. }
  87. /**
  88. * @return bool
  89. */
  90. public function getTriggersDialog()
  91. {
  92. return $this->triggersDialog;
  93. }
  94. /**
  95. * @param string
  96. */
  97. public function setType($type)
  98. {
  99. $this->type = $type;
  100. }
  101. /**
  102. * @return string
  103. */
  104. public function getType()
  105. {
  106. return $this->type;
  107. }
  108. }
  109. // Adding a class alias for backwards compatibility with the previous class name.
  110. class_alias(SlashCommandMetadata::class, 'Google_Service_HangoutsChat_SlashCommandMetadata');