uraus.kku.Request.RequestPublicDeviceInfo
*/
class RequestPublicDeviceInfo extends \Google\Protobuf\Internal\Message
{
/**
* 设备平台类型:1-iOS,2-Android
*
* Generated from protobuf field int64 platform = 1;
*/
protected $platform = 0;
/**
* 设备型号(例如:iPhone 12, Pixel 6)
*
* Generated from protobuf field string model = 2;
*/
protected $model = '';
/**
* 操作系统版本(例如:iOS 15.0, Android 12)
*
* Generated from protobuf field string os_version = 3;
*/
protected $os_version = '';
/**
* App版本号(例如:1.0.0)
*
* Generated from protobuf field string app_version = 4;
*/
protected $app_version = '';
/**
* 设备名称(用户设置的设备名)
*
* Generated from protobuf field string device_name = 5;
*/
protected $device_name = '';
/**
* 设备标识符
*
* Generated from protobuf field string device_id = 6;
*/
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 int64 platform = 1;
* @return int|string
*/
public function getPlatform()
{
return $this->platform;
}
/**
* 设备平台类型:1-iOS,2-Android
*
* Generated from protobuf field int64 platform = 1;
* @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 string model = 2;
* @return string
*/
public function getModel()
{
return $this->model;
}
/**
* 设备型号(例如:iPhone 12, Pixel 6)
*
* Generated from protobuf field string model = 2;
* @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 string os_version = 3;
* @return string
*/
public function getOsVersion()
{
return $this->os_version;
}
/**
* 操作系统版本(例如:iOS 15.0, Android 12)
*
* Generated from protobuf field string os_version = 3;
* @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 string app_version = 4;
* @return string
*/
public function getAppVersion()
{
return $this->app_version;
}
/**
* App版本号(例如:1.0.0)
*
* Generated from protobuf field string app_version = 4;
* @param string $var
* @return $this
*/
public function setAppVersion($var)
{
GPBUtil::checkString($var, True);
$this->app_version = $var;
return $this;
}
/**
* 设备名称(用户设置的设备名)
*
* Generated from protobuf field string device_name = 5;
* @return string
*/
public function getDeviceName()
{
return $this->device_name;
}
/**
* 设备名称(用户设置的设备名)
*
* Generated from protobuf field string device_name = 5;
* @param string $var
* @return $this
*/
public function setDeviceName($var)
{
GPBUtil::checkString($var, True);
$this->device_name = $var;
return $this;
}
/**
* 设备标识符
*
* Generated from protobuf field string device_id = 6;
* @return string
*/
public function getDeviceId()
{
return $this->device_id;
}
/**
* 设备标识符
*
* Generated from protobuf field string device_id = 6;
* @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);