registration.core.Refresh */ class Refresh extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .registration.core.UpdateChannel channel = 1; */ protected $channel = 0; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $channel * } */ public function __construct($data = NULL) { \GPBMetadata\Registration::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .registration.core.UpdateChannel channel = 1; * @return int */ public function getChannel() { return $this->channel; } /** * Generated from protobuf field .registration.core.UpdateChannel channel = 1; * @param int $var * @return $this */ public function setChannel($var) { GPBUtil::checkEnum($var, \Registration\Core\UpdateChannel::class); $this->channel = $var; return $this; } }