| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: proto/game.proto
- namespace Uraus\Kku\Request;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- * 发送设备信息请求
- *
- * Generated from protobuf message <code>uraus.kku.Request.RequestPublicDeviceInfo</code>
- */
- class RequestPublicDeviceInfo extends \Google\Protobuf\Internal\Message
- {
- /**
- * 设备平台类型:1-iOS,2-Android
- *
- * Generated from protobuf field <code>int64 platform = 1;</code>
- */
- protected $platform = 0;
- /**
- * 设备型号(例如:iPhone 12, Pixel 6)
- *
- * Generated from protobuf field <code>string model = 2;</code>
- */
- protected $model = '';
- /**
- * 操作系统版本(例如:iOS 15.0, Android 12)
- *
- * Generated from protobuf field <code>string os_version = 3;</code>
- */
- protected $os_version = '';
- /**
- * App版本号(例如:1.0.0)
- *
- * Generated from protobuf field <code>string app_version = 4;</code>
- */
- protected $app_version = '';
- /**
- * 设备名称(用户设置的设备名)
- *
- * Generated from protobuf field <code>string device_name = 5;</code>
- */
- protected $device_name = '';
- /**
- * 设备标识符
- *
- * Generated from protobuf field <code>string device_id = 6;</code>
- */
- protected $device_id = '';
- /**
- * Constructor.
- *
- * @param array $data {
- * Optional. Data for populating the Message object.
- *
- * @type int|string $platform
- * 设备平台类型:1-iOS,2-Android
- * @type string $model
- * 设备型号(例如:iPhone 12, Pixel 6)
- * @type string $os_version
- * 操作系统版本(例如:iOS 15.0, Android 12)
- * @type string $app_version
- * App版本号(例如:1.0.0)
- * @type string $device_name
- * 设备名称(用户设置的设备名)
- * @type string $device_id
- * 设备标识符
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Proto\Game::initOnce();
- parent::__construct($data);
- }
- /**
- * 设备平台类型:1-iOS,2-Android
- *
- * Generated from protobuf field <code>int64 platform = 1;</code>
- * @return int|string
- */
- public function getPlatform()
- {
- return $this->platform;
- }
- /**
- * 设备平台类型:1-iOS,2-Android
- *
- * Generated from protobuf field <code>int64 platform = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setPlatform($var)
- {
- GPBUtil::checkInt64($var);
- $this->platform = $var;
- return $this;
- }
- /**
- * 设备型号(例如:iPhone 12, Pixel 6)
- *
- * Generated from protobuf field <code>string model = 2;</code>
- * @return string
- */
- public function getModel()
- {
- return $this->model;
- }
- /**
- * 设备型号(例如:iPhone 12, Pixel 6)
- *
- * Generated from protobuf field <code>string model = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setModel($var)
- {
- GPBUtil::checkString($var, True);
- $this->model = $var;
- return $this;
- }
- /**
- * 操作系统版本(例如:iOS 15.0, Android 12)
- *
- * Generated from protobuf field <code>string os_version = 3;</code>
- * @return string
- */
- public function getOsVersion()
- {
- return $this->os_version;
- }
- /**
- * 操作系统版本(例如:iOS 15.0, Android 12)
- *
- * Generated from protobuf field <code>string os_version = 3;</code>
- * @param string $var
- * @return $this
- */
- public function setOsVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->os_version = $var;
- return $this;
- }
- /**
- * App版本号(例如:1.0.0)
- *
- * Generated from protobuf field <code>string app_version = 4;</code>
- * @return string
- */
- public function getAppVersion()
- {
- return $this->app_version;
- }
- /**
- * App版本号(例如:1.0.0)
- *
- * Generated from protobuf field <code>string app_version = 4;</code>
- * @param string $var
- * @return $this
- */
- public function setAppVersion($var)
- {
- GPBUtil::checkString($var, True);
- $this->app_version = $var;
- return $this;
- }
- /**
- * 设备名称(用户设置的设备名)
- *
- * Generated from protobuf field <code>string device_name = 5;</code>
- * @return string
- */
- public function getDeviceName()
- {
- return $this->device_name;
- }
- /**
- * 设备名称(用户设置的设备名)
- *
- * Generated from protobuf field <code>string device_name = 5;</code>
- * @param string $var
- * @return $this
- */
- public function setDeviceName($var)
- {
- GPBUtil::checkString($var, True);
- $this->device_name = $var;
- return $this;
- }
- /**
- * 设备标识符
- *
- * Generated from protobuf field <code>string device_id = 6;</code>
- * @return string
- */
- public function getDeviceId()
- {
- return $this->device_id;
- }
- /**
- * 设备标识符
- *
- * Generated from protobuf field <code>string device_id = 6;</code>
- * @param string $var
- * @return $this
- */
- public function setDeviceId($var)
- {
- GPBUtil::checkString($var, True);
- $this->device_id = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(RequestPublicDeviceInfo::class, \Uraus\Kku\Request_RequestPublicDeviceInfo::class);
|