Extension.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\TrafficDirectorService;
  18. class Extension extends \Google\Model
  19. {
  20. /**
  21. * @var string
  22. */
  23. public $category;
  24. /**
  25. * @var bool
  26. */
  27. public $disabled;
  28. /**
  29. * @var string
  30. */
  31. public $name;
  32. /**
  33. * @var string
  34. */
  35. public $typeDescriptor;
  36. protected $versionType = BuildVersion::class;
  37. protected $versionDataType = '';
  38. /**
  39. * @param string
  40. */
  41. public function setCategory($category)
  42. {
  43. $this->category = $category;
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getCategory()
  49. {
  50. return $this->category;
  51. }
  52. /**
  53. * @param bool
  54. */
  55. public function setDisabled($disabled)
  56. {
  57. $this->disabled = $disabled;
  58. }
  59. /**
  60. * @return bool
  61. */
  62. public function getDisabled()
  63. {
  64. return $this->disabled;
  65. }
  66. /**
  67. * @param string
  68. */
  69. public function setName($name)
  70. {
  71. $this->name = $name;
  72. }
  73. /**
  74. * @return string
  75. */
  76. public function getName()
  77. {
  78. return $this->name;
  79. }
  80. /**
  81. * @param string
  82. */
  83. public function setTypeDescriptor($typeDescriptor)
  84. {
  85. $this->typeDescriptor = $typeDescriptor;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getTypeDescriptor()
  91. {
  92. return $this->typeDescriptor;
  93. }
  94. /**
  95. * @param BuildVersion
  96. */
  97. public function setVersion(BuildVersion $version)
  98. {
  99. $this->version = $version;
  100. }
  101. /**
  102. * @return BuildVersion
  103. */
  104. public function getVersion()
  105. {
  106. return $this->version;
  107. }
  108. }
  109. // Adding a class alias for backwards compatibility with the previous class name.
  110. class_alias(Extension::class, 'Google_Service_TrafficDirectorService_Extension');