暫無描述

Field.php 2.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  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_Monitoring_Field extends Google_Collection
  18. {
  19. protected $collection_key = 'options';
  20. public $cardinality;
  21. public $defaultValue;
  22. public $jsonName;
  23. public $kind;
  24. public $name;
  25. public $number;
  26. public $oneofIndex;
  27. protected $optionsType = 'Google_Service_Monitoring_Option';
  28. protected $optionsDataType = 'array';
  29. public $packed;
  30. public $typeUrl;
  31. public function setCardinality($cardinality)
  32. {
  33. $this->cardinality = $cardinality;
  34. }
  35. public function getCardinality()
  36. {
  37. return $this->cardinality;
  38. }
  39. public function setDefaultValue($defaultValue)
  40. {
  41. $this->defaultValue = $defaultValue;
  42. }
  43. public function getDefaultValue()
  44. {
  45. return $this->defaultValue;
  46. }
  47. public function setJsonName($jsonName)
  48. {
  49. $this->jsonName = $jsonName;
  50. }
  51. public function getJsonName()
  52. {
  53. return $this->jsonName;
  54. }
  55. public function setKind($kind)
  56. {
  57. $this->kind = $kind;
  58. }
  59. public function getKind()
  60. {
  61. return $this->kind;
  62. }
  63. public function setName($name)
  64. {
  65. $this->name = $name;
  66. }
  67. public function getName()
  68. {
  69. return $this->name;
  70. }
  71. public function setNumber($number)
  72. {
  73. $this->number = $number;
  74. }
  75. public function getNumber()
  76. {
  77. return $this->number;
  78. }
  79. public function setOneofIndex($oneofIndex)
  80. {
  81. $this->oneofIndex = $oneofIndex;
  82. }
  83. public function getOneofIndex()
  84. {
  85. return $this->oneofIndex;
  86. }
  87. /**
  88. * @param Google_Service_Monitoring_Option
  89. */
  90. public function setOptions($options)
  91. {
  92. $this->options = $options;
  93. }
  94. /**
  95. * @return Google_Service_Monitoring_Option
  96. */
  97. public function getOptions()
  98. {
  99. return $this->options;
  100. }
  101. public function setPacked($packed)
  102. {
  103. $this->packed = $packed;
  104. }
  105. public function getPacked()
  106. {
  107. return $this->packed;
  108. }
  109. public function setTypeUrl($typeUrl)
  110. {
  111. $this->typeUrl = $typeUrl;
  112. }
  113. public function getTypeUrl()
  114. {
  115. return $this->typeUrl;
  116. }
  117. }