Нема описа

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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_ServiceUsage_Type extends Google_Collection
  18. {
  19. protected $collection_key = 'options';
  20. protected $fieldsType = 'Google_Service_ServiceUsage_Field';
  21. protected $fieldsDataType = 'array';
  22. public $name;
  23. public $oneofs;
  24. protected $optionsType = 'Google_Service_ServiceUsage_Option';
  25. protected $optionsDataType = 'array';
  26. protected $sourceContextType = 'Google_Service_ServiceUsage_SourceContext';
  27. protected $sourceContextDataType = '';
  28. public $syntax;
  29. /**
  30. * @param Google_Service_ServiceUsage_Field
  31. */
  32. public function setFields($fields)
  33. {
  34. $this->fields = $fields;
  35. }
  36. /**
  37. * @return Google_Service_ServiceUsage_Field
  38. */
  39. public function getFields()
  40. {
  41. return $this->fields;
  42. }
  43. public function setName($name)
  44. {
  45. $this->name = $name;
  46. }
  47. public function getName()
  48. {
  49. return $this->name;
  50. }
  51. public function setOneofs($oneofs)
  52. {
  53. $this->oneofs = $oneofs;
  54. }
  55. public function getOneofs()
  56. {
  57. return $this->oneofs;
  58. }
  59. /**
  60. * @param Google_Service_ServiceUsage_Option
  61. */
  62. public function setOptions($options)
  63. {
  64. $this->options = $options;
  65. }
  66. /**
  67. * @return Google_Service_ServiceUsage_Option
  68. */
  69. public function getOptions()
  70. {
  71. return $this->options;
  72. }
  73. /**
  74. * @param Google_Service_ServiceUsage_SourceContext
  75. */
  76. public function setSourceContext(Google_Service_ServiceUsage_SourceContext $sourceContext)
  77. {
  78. $this->sourceContext = $sourceContext;
  79. }
  80. /**
  81. * @return Google_Service_ServiceUsage_SourceContext
  82. */
  83. public function getSourceContext()
  84. {
  85. return $this->sourceContext;
  86. }
  87. public function setSyntax($syntax)
  88. {
  89. $this->syntax = $syntax;
  90. }
  91. public function getSyntax()
  92. {
  93. return $this->syntax;
  94. }
  95. }