modify plugin name
This commit is contained in:
@@ -0,0 +1,176 @@
|
||||
<?php
|
||||
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
||||
# source: user.service.proto
|
||||
|
||||
namespace User;
|
||||
|
||||
use Google\Protobuf\Internal\GPBType;
|
||||
use Google\Protobuf\Internal\RepeatedField;
|
||||
use Google\Protobuf\Internal\GPBUtil;
|
||||
|
||||
/**
|
||||
* Generated from protobuf message <code>user.UserOnlineResponse</code>
|
||||
*/
|
||||
class UserOnlineResponse extends \Google\Protobuf\Internal\Message
|
||||
{
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 code = 1;</code>
|
||||
*/
|
||||
protected $code = 0;
|
||||
/**
|
||||
* Generated from protobuf field <code>string message = 2;</code>
|
||||
*/
|
||||
protected $message = '';
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 userId = 3;</code>
|
||||
*/
|
||||
protected $userId = 0;
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 appId = 4;</code>
|
||||
*/
|
||||
protected $appId = 0;
|
||||
/**
|
||||
* Generated from protobuf field <code>.user.UserStatus status = 5;</code>
|
||||
*/
|
||||
protected $status = null;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param array $data {
|
||||
* Optional. Data for populating the Message object.
|
||||
*
|
||||
* @type int|string $code
|
||||
* @type string $message
|
||||
* @type int|string $userId
|
||||
* @type int|string $appId
|
||||
* @type \User\UserStatus $status
|
||||
* }
|
||||
*/
|
||||
public function __construct($data = NULL) {
|
||||
\GPBMetadata\UserService::initOnce();
|
||||
parent::__construct($data);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 code = 1;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getCode()
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 code = 1;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setCode($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->code = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string message = 2;</code>
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>string message = 2;</code>
|
||||
* @param string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setMessage($var)
|
||||
{
|
||||
GPBUtil::checkString($var, True);
|
||||
$this->message = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 userId = 3;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getUserId()
|
||||
{
|
||||
return $this->userId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 userId = 3;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setUserId($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->userId = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 appId = 4;</code>
|
||||
* @return int|string
|
||||
*/
|
||||
public function getAppId()
|
||||
{
|
||||
return $this->appId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>int64 appId = 4;</code>
|
||||
* @param int|string $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setAppId($var)
|
||||
{
|
||||
GPBUtil::checkInt64($var);
|
||||
$this->appId = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.user.UserStatus status = 5;</code>
|
||||
* @return \User\UserStatus|null
|
||||
*/
|
||||
public function getStatus()
|
||||
{
|
||||
return isset($this->status) ? $this->status : null;
|
||||
}
|
||||
|
||||
public function hasStatus()
|
||||
{
|
||||
return isset($this->status);
|
||||
}
|
||||
|
||||
public function clearStatus()
|
||||
{
|
||||
unset($this->status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Generated from protobuf field <code>.user.UserStatus status = 5;</code>
|
||||
* @param \User\UserStatus $var
|
||||
* @return $this
|
||||
*/
|
||||
public function setStatus($var)
|
||||
{
|
||||
GPBUtil::checkMessage($var, \User\UserStatus::class);
|
||||
$this->status = $var;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user