暫無描述

DeviceRegistry.php 3.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  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_CloudIot_DeviceRegistry extends Google_Collection
  18. {
  19. protected $collection_key = 'eventNotificationConfigs';
  20. protected $credentialsType = 'Google_Service_CloudIot_RegistryCredential';
  21. protected $credentialsDataType = 'array';
  22. protected $eventNotificationConfigsType = 'Google_Service_CloudIot_EventNotificationConfig';
  23. protected $eventNotificationConfigsDataType = 'array';
  24. protected $httpConfigType = 'Google_Service_CloudIot_HttpConfig';
  25. protected $httpConfigDataType = '';
  26. public $id;
  27. protected $mqttConfigType = 'Google_Service_CloudIot_MqttConfig';
  28. protected $mqttConfigDataType = '';
  29. public $name;
  30. protected $stateNotificationConfigType = 'Google_Service_CloudIot_StateNotificationConfig';
  31. protected $stateNotificationConfigDataType = '';
  32. /**
  33. * @param Google_Service_CloudIot_RegistryCredential
  34. */
  35. public function setCredentials($credentials)
  36. {
  37. $this->credentials = $credentials;
  38. }
  39. /**
  40. * @return Google_Service_CloudIot_RegistryCredential
  41. */
  42. public function getCredentials()
  43. {
  44. return $this->credentials;
  45. }
  46. /**
  47. * @param Google_Service_CloudIot_EventNotificationConfig
  48. */
  49. public function setEventNotificationConfigs($eventNotificationConfigs)
  50. {
  51. $this->eventNotificationConfigs = $eventNotificationConfigs;
  52. }
  53. /**
  54. * @return Google_Service_CloudIot_EventNotificationConfig
  55. */
  56. public function getEventNotificationConfigs()
  57. {
  58. return $this->eventNotificationConfigs;
  59. }
  60. /**
  61. * @param Google_Service_CloudIot_HttpConfig
  62. */
  63. public function setHttpConfig(Google_Service_CloudIot_HttpConfig $httpConfig)
  64. {
  65. $this->httpConfig = $httpConfig;
  66. }
  67. /**
  68. * @return Google_Service_CloudIot_HttpConfig
  69. */
  70. public function getHttpConfig()
  71. {
  72. return $this->httpConfig;
  73. }
  74. public function setId($id)
  75. {
  76. $this->id = $id;
  77. }
  78. public function getId()
  79. {
  80. return $this->id;
  81. }
  82. /**
  83. * @param Google_Service_CloudIot_MqttConfig
  84. */
  85. public function setMqttConfig(Google_Service_CloudIot_MqttConfig $mqttConfig)
  86. {
  87. $this->mqttConfig = $mqttConfig;
  88. }
  89. /**
  90. * @return Google_Service_CloudIot_MqttConfig
  91. */
  92. public function getMqttConfig()
  93. {
  94. return $this->mqttConfig;
  95. }
  96. public function setName($name)
  97. {
  98. $this->name = $name;
  99. }
  100. public function getName()
  101. {
  102. return $this->name;
  103. }
  104. /**
  105. * @param Google_Service_CloudIot_StateNotificationConfig
  106. */
  107. public function setStateNotificationConfig(Google_Service_CloudIot_StateNotificationConfig $stateNotificationConfig)
  108. {
  109. $this->stateNotificationConfig = $stateNotificationConfig;
  110. }
  111. /**
  112. * @return Google_Service_CloudIot_StateNotificationConfig
  113. */
  114. public function getStateNotificationConfig()
  115. {
  116. return $this->stateNotificationConfig;
  117. }
  118. }