RequestPublicDeviceInfo.php 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: proto/game.proto
  4. namespace Uraus\Kku\Request;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * 发送设备信息请求
  10. *
  11. * Generated from protobuf message <code>uraus.kku.Request.RequestPublicDeviceInfo</code>
  12. */
  13. class RequestPublicDeviceInfo extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * 设备平台类型:1-iOS,2-Android
  17. *
  18. * Generated from protobuf field <code>int64 platform = 1;</code>
  19. */
  20. protected $platform = 0;
  21. /**
  22. * 设备型号(例如:iPhone 12, Pixel 6)
  23. *
  24. * Generated from protobuf field <code>string model = 2;</code>
  25. */
  26. protected $model = '';
  27. /**
  28. * 操作系统版本(例如:iOS 15.0, Android 12)
  29. *
  30. * Generated from protobuf field <code>string os_version = 3;</code>
  31. */
  32. protected $os_version = '';
  33. /**
  34. * App版本号(例如:1.0.0)
  35. *
  36. * Generated from protobuf field <code>string app_version = 4;</code>
  37. */
  38. protected $app_version = '';
  39. /**
  40. * 设备名称(用户设置的设备名)
  41. *
  42. * Generated from protobuf field <code>string device_name = 5;</code>
  43. */
  44. protected $device_name = '';
  45. /**
  46. * 设备标识符
  47. *
  48. * Generated from protobuf field <code>string device_id = 6;</code>
  49. */
  50. protected $device_id = '';
  51. /**
  52. * Constructor.
  53. *
  54. * @param array $data {
  55. * Optional. Data for populating the Message object.
  56. *
  57. * @type int|string $platform
  58. * 设备平台类型:1-iOS,2-Android
  59. * @type string $model
  60. * 设备型号(例如:iPhone 12, Pixel 6)
  61. * @type string $os_version
  62. * 操作系统版本(例如:iOS 15.0, Android 12)
  63. * @type string $app_version
  64. * App版本号(例如:1.0.0)
  65. * @type string $device_name
  66. * 设备名称(用户设置的设备名)
  67. * @type string $device_id
  68. * 设备标识符
  69. * }
  70. */
  71. public function __construct($data = NULL) {
  72. \GPBMetadata\Proto\Game::initOnce();
  73. parent::__construct($data);
  74. }
  75. /**
  76. * 设备平台类型:1-iOS,2-Android
  77. *
  78. * Generated from protobuf field <code>int64 platform = 1;</code>
  79. * @return int|string
  80. */
  81. public function getPlatform()
  82. {
  83. return $this->platform;
  84. }
  85. /**
  86. * 设备平台类型:1-iOS,2-Android
  87. *
  88. * Generated from protobuf field <code>int64 platform = 1;</code>
  89. * @param int|string $var
  90. * @return $this
  91. */
  92. public function setPlatform($var)
  93. {
  94. GPBUtil::checkInt64($var);
  95. $this->platform = $var;
  96. return $this;
  97. }
  98. /**
  99. * 设备型号(例如:iPhone 12, Pixel 6)
  100. *
  101. * Generated from protobuf field <code>string model = 2;</code>
  102. * @return string
  103. */
  104. public function getModel()
  105. {
  106. return $this->model;
  107. }
  108. /**
  109. * 设备型号(例如:iPhone 12, Pixel 6)
  110. *
  111. * Generated from protobuf field <code>string model = 2;</code>
  112. * @param string $var
  113. * @return $this
  114. */
  115. public function setModel($var)
  116. {
  117. GPBUtil::checkString($var, True);
  118. $this->model = $var;
  119. return $this;
  120. }
  121. /**
  122. * 操作系统版本(例如:iOS 15.0, Android 12)
  123. *
  124. * Generated from protobuf field <code>string os_version = 3;</code>
  125. * @return string
  126. */
  127. public function getOsVersion()
  128. {
  129. return $this->os_version;
  130. }
  131. /**
  132. * 操作系统版本(例如:iOS 15.0, Android 12)
  133. *
  134. * Generated from protobuf field <code>string os_version = 3;</code>
  135. * @param string $var
  136. * @return $this
  137. */
  138. public function setOsVersion($var)
  139. {
  140. GPBUtil::checkString($var, True);
  141. $this->os_version = $var;
  142. return $this;
  143. }
  144. /**
  145. * App版本号(例如:1.0.0)
  146. *
  147. * Generated from protobuf field <code>string app_version = 4;</code>
  148. * @return string
  149. */
  150. public function getAppVersion()
  151. {
  152. return $this->app_version;
  153. }
  154. /**
  155. * App版本号(例如:1.0.0)
  156. *
  157. * Generated from protobuf field <code>string app_version = 4;</code>
  158. * @param string $var
  159. * @return $this
  160. */
  161. public function setAppVersion($var)
  162. {
  163. GPBUtil::checkString($var, True);
  164. $this->app_version = $var;
  165. return $this;
  166. }
  167. /**
  168. * 设备名称(用户设置的设备名)
  169. *
  170. * Generated from protobuf field <code>string device_name = 5;</code>
  171. * @return string
  172. */
  173. public function getDeviceName()
  174. {
  175. return $this->device_name;
  176. }
  177. /**
  178. * 设备名称(用户设置的设备名)
  179. *
  180. * Generated from protobuf field <code>string device_name = 5;</code>
  181. * @param string $var
  182. * @return $this
  183. */
  184. public function setDeviceName($var)
  185. {
  186. GPBUtil::checkString($var, True);
  187. $this->device_name = $var;
  188. return $this;
  189. }
  190. /**
  191. * 设备标识符
  192. *
  193. * Generated from protobuf field <code>string device_id = 6;</code>
  194. * @return string
  195. */
  196. public function getDeviceId()
  197. {
  198. return $this->device_id;
  199. }
  200. /**
  201. * 设备标识符
  202. *
  203. * Generated from protobuf field <code>string device_id = 6;</code>
  204. * @param string $var
  205. * @return $this
  206. */
  207. public function setDeviceId($var)
  208. {
  209. GPBUtil::checkString($var, True);
  210. $this->device_id = $var;
  211. return $this;
  212. }
  213. }
  214. // Adding a class alias for backwards compatibility with the previous class name.
  215. class_alias(RequestPublicDeviceInfo::class, \Uraus\Kku\Request_RequestPublicDeviceInfo::class);