diff --git a/generated/RoadRunner/AppLogger/DTO/V1/GPBMetadata/Applogger.php b/generated/RoadRunner/AppLogger/DTO/V1/GPBMetadata/Applogger.php new file mode 100644 index 0000000..5c44977 --- /dev/null +++ b/generated/RoadRunner/AppLogger/DTO/V1/GPBMetadata/Applogger.php @@ -0,0 +1,34 @@ +internalAddGeneratedFile( + ' + +applogger/v1/applogger.proto applogger.v1"F +LogEntry +message ( ) + log_attrs ( 2.applogger.v1.LogAttrs"& +LogAttrs +key (  +value ( " + +ResponseBVZ applogger/v1RoadRunner\\AppLogger\\DTO\\V1\'RoadRunner\\AppLogger\\DTO\\V1\\GPBMetadatabproto3' + , true); + + static::$is_initialized = true; + } +} + diff --git a/generated/RoadRunner/AppLogger/DTO/V1/LogAttrs.php b/generated/RoadRunner/AppLogger/DTO/V1/LogAttrs.php new file mode 100644 index 0000000..bb33dfc --- /dev/null +++ b/generated/RoadRunner/AppLogger/DTO/V1/LogAttrs.php @@ -0,0 +1,85 @@ +applogger.v1.LogAttrs + */ +class LogAttrs extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string key = 1; + */ + protected $key = ''; + /** + * Generated from protobuf field string value = 2; + */ + protected $value = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $key + * @type string $value + * } + */ + public function __construct($data = NULL) { + \RoadRunner\AppLogger\DTO\V1\GPBMetadata\Applogger::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string key = 1; + * @return string + */ + public function getKey() + { + return $this->key; + } + + /** + * Generated from protobuf field string key = 1; + * @param string $var + * @return $this + */ + public function setKey($var) + { + GPBUtil::checkString($var, True); + $this->key = $var; + + return $this; + } + + /** + * Generated from protobuf field string value = 2; + * @return string + */ + public function getValue() + { + return $this->value; + } + + /** + * Generated from protobuf field string value = 2; + * @param string $var + * @return $this + */ + public function setValue($var) + { + GPBUtil::checkString($var, True); + $this->value = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/AppLogger/DTO/V1/LogEntry.php b/generated/RoadRunner/AppLogger/DTO/V1/LogEntry.php new file mode 100644 index 0000000..03d90d2 --- /dev/null +++ b/generated/RoadRunner/AppLogger/DTO/V1/LogEntry.php @@ -0,0 +1,85 @@ +applogger.v1.LogEntry + */ +class LogEntry extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string message = 1; + */ + protected $message = ''; + /** + * Generated from protobuf field repeated .applogger.v1.LogAttrs log_attrs = 2; + */ + private $log_attrs; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $message + * @type array<\RoadRunner\AppLogger\DTO\V1\LogAttrs>|\Google\Protobuf\Internal\RepeatedField $log_attrs + * } + */ + public function __construct($data = NULL) { + \RoadRunner\AppLogger\DTO\V1\GPBMetadata\Applogger::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string message = 1; + * @return string + */ + public function getMessage() + { + return $this->message; + } + + /** + * Generated from protobuf field string message = 1; + * @param string $var + * @return $this + */ + public function setMessage($var) + { + GPBUtil::checkString($var, True); + $this->message = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated .applogger.v1.LogAttrs log_attrs = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getLogAttrs() + { + return $this->log_attrs; + } + + /** + * Generated from protobuf field repeated .applogger.v1.LogAttrs log_attrs = 2; + * @param array<\RoadRunner\AppLogger\DTO\V1\LogAttrs>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setLogAttrs($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\AppLogger\DTO\V1\LogAttrs::class); + $this->log_attrs = $arr; + + return $this; + } + +} + diff --git a/generated/RoadRunner/AppLogger/DTO/V1/Response.php b/generated/RoadRunner/AppLogger/DTO/V1/Response.php new file mode 100644 index 0000000..89cfc70 --- /dev/null +++ b/generated/RoadRunner/AppLogger/DTO/V1/Response.php @@ -0,0 +1,31 @@ +applogger.v1.Response + */ +class Response extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\AppLogger\DTO\V1\GPBMetadata\Applogger::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushRequest.php new file mode 100644 index 0000000..eac1353 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushRequest.php @@ -0,0 +1,58 @@ +centrifugal.centrifugo.api.CancelPushRequest + */ +class CancelPushRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string uid = 1; + */ + protected $uid = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uid + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string uid = 1; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * Generated from protobuf field string uid = 1; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResponse.php new file mode 100644 index 0000000..6944d31 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.CancelPushResponse + */ +class CancelPushResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResult.php new file mode 100644 index 0000000..b8dbc38 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/CancelPushResult.php @@ -0,0 +1,31 @@ +centrifugal.centrifugo.api.CancelPushResult + */ +class CancelPushResult extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Command.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Command.php index fa85d61..c9e2bc7 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Command.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Command.php @@ -126,17 +126,37 @@ class Command extends \Google\Protobuf\Internal\Message */ protected $device_list = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListRequest push_user_channel_list = 29; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListRequest device_topic_list = 29; */ - protected $push_user_channel_list = null; + protected $device_topic_list = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateRequest push_user_channel_update = 30; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateRequest device_topic_update = 30; */ - protected $push_user_channel_update = null; + protected $device_topic_update = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListRequest user_topic_list = 31; + */ + protected $user_topic_list = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateRequest user_topic_update = 32; + */ + protected $user_topic_update = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 33; */ protected $send_push_notification = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusRequest update_push_status = 34; + */ + protected $update_push_status = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushRequest cancel_push = 35; + */ + protected $cancel_push = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitRequest rate_limit = 50; + */ + protected $rate_limit = null; /** * Constructor. @@ -172,9 +192,14 @@ class Command extends \Google\Protobuf\Internal\Message * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceUpdateRequest $device_update * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceRemoveRequest $device_remove * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceListRequest $device_list - * @type \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListRequest $push_user_channel_list - * @type \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateRequest $push_user_channel_update + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListRequest $device_topic_list + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateRequest $device_topic_update + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListRequest $user_topic_list + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateRequest $user_topic_update * @type \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationRequest $send_push_notification + * @type \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusRequest $update_push_status + * @type \RoadRunner\Centrifugal\API\DTO\V1\CancelPushRequest $cancel_push + * @type \RoadRunner\Centrifugal\API\DTO\V1\RateLimitRequest $rate_limit * } */ public function __construct($data = NULL) { @@ -1049,71 +1074,135 @@ public function setDeviceList($var) } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListRequest push_user_channel_list = 29; - * @return \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListRequest|null + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListRequest device_topic_list = 29; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListRequest|null */ - public function getPushUserChannelList() + public function getDeviceTopicList() { - return $this->push_user_channel_list; + return $this->device_topic_list; } - public function hasPushUserChannelList() + public function hasDeviceTopicList() { - return isset($this->push_user_channel_list); + return isset($this->device_topic_list); } - public function clearPushUserChannelList() + public function clearDeviceTopicList() { - unset($this->push_user_channel_list); + unset($this->device_topic_list); } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListRequest push_user_channel_list = 29; - * @param \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListRequest $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListRequest device_topic_list = 29; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListRequest $var * @return $this */ - public function setPushUserChannelList($var) + public function setDeviceTopicList($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListRequest::class); - $this->push_user_channel_list = $var; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListRequest::class); + $this->device_topic_list = $var; return $this; } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateRequest push_user_channel_update = 30; - * @return \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateRequest|null + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateRequest device_topic_update = 30; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateRequest|null */ - public function getPushUserChannelUpdate() + public function getDeviceTopicUpdate() { - return $this->push_user_channel_update; + return $this->device_topic_update; } - public function hasPushUserChannelUpdate() + public function hasDeviceTopicUpdate() { - return isset($this->push_user_channel_update); + return isset($this->device_topic_update); } - public function clearPushUserChannelUpdate() + public function clearDeviceTopicUpdate() { - unset($this->push_user_channel_update); + unset($this->device_topic_update); } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateRequest push_user_channel_update = 30; - * @param \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateRequest $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateRequest device_topic_update = 30; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateRequest $var * @return $this */ - public function setPushUserChannelUpdate($var) + public function setDeviceTopicUpdate($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateRequest::class); - $this->push_user_channel_update = $var; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateRequest::class); + $this->device_topic_update = $var; return $this; } /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListRequest user_topic_list = 31; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListRequest|null + */ + public function getUserTopicList() + { + return $this->user_topic_list; + } + + public function hasUserTopicList() + { + return isset($this->user_topic_list); + } + + public function clearUserTopicList() + { + unset($this->user_topic_list); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListRequest user_topic_list = 31; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListRequest $var + * @return $this + */ + public function setUserTopicList($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListRequest::class); + $this->user_topic_list = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateRequest user_topic_update = 32; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateRequest|null + */ + public function getUserTopicUpdate() + { + return $this->user_topic_update; + } + + public function hasUserTopicUpdate() + { + return isset($this->user_topic_update); + } + + public function clearUserTopicUpdate() + { + unset($this->user_topic_update); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateRequest user_topic_update = 32; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateRequest $var + * @return $this + */ + public function setUserTopicUpdate($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateRequest::class); + $this->user_topic_update = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 33; * @return \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationRequest|null */ public function getSendPushNotification() @@ -1132,7 +1221,7 @@ public function clearSendPushNotification() } /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationRequest send_push_notification = 33; * @param \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationRequest $var * @return $this */ @@ -1144,5 +1233,101 @@ public function setSendPushNotification($var) return $this; } + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusRequest update_push_status = 34; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusRequest|null + */ + public function getUpdatePushStatus() + { + return $this->update_push_status; + } + + public function hasUpdatePushStatus() + { + return isset($this->update_push_status); + } + + public function clearUpdatePushStatus() + { + unset($this->update_push_status); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusRequest update_push_status = 34; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusRequest $var + * @return $this + */ + public function setUpdatePushStatus($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusRequest::class); + $this->update_push_status = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushRequest cancel_push = 35; + * @return \RoadRunner\Centrifugal\API\DTO\V1\CancelPushRequest|null + */ + public function getCancelPush() + { + return $this->cancel_push; + } + + public function hasCancelPush() + { + return isset($this->cancel_push); + } + + public function clearCancelPush() + { + unset($this->cancel_push); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushRequest cancel_push = 35; + * @param \RoadRunner\Centrifugal\API\DTO\V1\CancelPushRequest $var + * @return $this + */ + public function setCancelPush($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\CancelPushRequest::class); + $this->cancel_push = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitRequest rate_limit = 50; + * @return \RoadRunner\Centrifugal\API\DTO\V1\RateLimitRequest|null + */ + public function getRateLimit() + { + return $this->rate_limit; + } + + public function hasRateLimit() + { + return isset($this->rate_limit); + } + + public function clearRateLimit() + { + unset($this->rate_limit); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitRequest rate_limit = 50; + * @param \RoadRunner\Centrifugal\API\DTO\V1\RateLimitRequest $var + * @return $this + */ + public function setRateLimit($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\RateLimitRequest::class); + $this->rate_limit = $var; + + return $this; + } + } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Command/MethodType.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Command/MethodType.php index 244e34b..60e0a80 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Command/MethodType.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Command/MethodType.php @@ -112,17 +112,37 @@ class MethodType */ const DEVICE_LIST = 25; /** - * Generated from protobuf enum PUSH_USER_CHANNEL_LIST = 26; + * Generated from protobuf enum DEVICE_TOPIC_LIST = 26; */ - const PUSH_USER_CHANNEL_LIST = 26; + const DEVICE_TOPIC_LIST = 26; /** - * Generated from protobuf enum PUSH_USER_CHANNEL_UPDATE = 27; + * Generated from protobuf enum DEVICE_TOPIC_UPDATE = 27; */ - const PUSH_USER_CHANNEL_UPDATE = 27; + const DEVICE_TOPIC_UPDATE = 27; /** - * Generated from protobuf enum SEND_PUSH_NOTIFICATION = 28; + * Generated from protobuf enum USER_TOPIC_LIST = 28; */ - const SEND_PUSH_NOTIFICATION = 28; + const USER_TOPIC_LIST = 28; + /** + * Generated from protobuf enum USER_TOPIC_UPDATE = 29; + */ + const USER_TOPIC_UPDATE = 29; + /** + * Generated from protobuf enum SEND_PUSH_NOTIFICATION = 30; + */ + const SEND_PUSH_NOTIFICATION = 30; + /** + * Generated from protobuf enum UPDATE_PUSH_STATUS = 31; + */ + const UPDATE_PUSH_STATUS = 31; + /** + * Generated from protobuf enum CANCEL_PUSH = 32; + */ + const CANCEL_PUSH = 32; + /** + * Generated from protobuf enum RATE_LIMIT = 47; + */ + const RATE_LIMIT = 47; private static $valueToName = [ self::PUBLISH => 'PUBLISH', @@ -150,9 +170,14 @@ class MethodType self::DEVICE_UPDATE => 'DEVICE_UPDATE', self::DEVICE_REMOVE => 'DEVICE_REMOVE', self::DEVICE_LIST => 'DEVICE_LIST', - self::PUSH_USER_CHANNEL_LIST => 'PUSH_USER_CHANNEL_LIST', - self::PUSH_USER_CHANNEL_UPDATE => 'PUSH_USER_CHANNEL_UPDATE', + self::DEVICE_TOPIC_LIST => 'DEVICE_TOPIC_LIST', + self::DEVICE_TOPIC_UPDATE => 'DEVICE_TOPIC_UPDATE', + self::USER_TOPIC_LIST => 'USER_TOPIC_LIST', + self::USER_TOPIC_UPDATE => 'USER_TOPIC_UPDATE', self::SEND_PUSH_NOTIFICATION => 'SEND_PUSH_NOTIFICATION', + self::UPDATE_PUSH_STATUS => 'UPDATE_PUSH_STATUS', + self::CANCEL_PUSH => 'CANCEL_PUSH', + self::RATE_LIMIT => 'RATE_LIMIT', ]; public static function name($value) diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Device.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Device.php index e80b078..83f4a9d 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Device.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Device.php @@ -34,17 +34,24 @@ class Device extends \Google\Protobuf\Internal\Message */ protected $user = ''; /** - * Generated from protobuf field map meta = 6; + * Generated from protobuf field int64 created_at = 6; */ - private $meta; + protected $created_at = 0; /** - * Generated from protobuf field repeated string channels = 7; + * Generated from protobuf field int64 updated_at = 7; */ - private $channels; + protected $updated_at = 0; /** - * Generated from protobuf field map tags = 8; + * Generated from protobuf field map meta = 10; + */ + private $meta; + /** + *map labels = 12; + *map scores = 13; + * + * Generated from protobuf field repeated string topics = 11; */ - private $tags; + private $topics; /** * Constructor. @@ -57,9 +64,12 @@ class Device extends \Google\Protobuf\Internal\Message * @type string $provider * @type string $token * @type string $user + * @type int|string $created_at + * @type int|string $updated_at * @type array|\Google\Protobuf\Internal\MapField $meta - * @type array|\Google\Protobuf\Internal\RepeatedField $channels - * @type array|\Google\Protobuf\Internal\MapField $tags + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * map labels = 12; + * map scores = 13; * } */ public function __construct($data = NULL) { @@ -178,67 +188,95 @@ public function setUser($var) } /** - * Generated from protobuf field map meta = 6; - * @return \Google\Protobuf\Internal\MapField + * Generated from protobuf field int64 created_at = 6; + * @return int|string */ - public function getMeta() + public function getCreatedAt() { - return $this->meta; + return $this->created_at; } /** - * Generated from protobuf field map meta = 6; - * @param array|\Google\Protobuf\Internal\MapField $var + * Generated from protobuf field int64 created_at = 6; + * @param int|string $var * @return $this */ - public function setMeta($var) + public function setCreatedAt($var) { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->meta = $arr; + GPBUtil::checkInt64($var); + $this->created_at = $var; return $this; } /** - * Generated from protobuf field repeated string channels = 7; - * @return \Google\Protobuf\Internal\RepeatedField + * Generated from protobuf field int64 updated_at = 7; + * @return int|string */ - public function getChannels() + public function getUpdatedAt() { - return $this->channels; + return $this->updated_at; } /** - * Generated from protobuf field repeated string channels = 7; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field int64 updated_at = 7; + * @param int|string $var * @return $this */ - public function setChannels($var) + public function setUpdatedAt($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->channels = $arr; + GPBUtil::checkInt64($var); + $this->updated_at = $var; return $this; } /** - * Generated from protobuf field map tags = 8; + * Generated from protobuf field map meta = 10; * @return \Google\Protobuf\Internal\MapField */ - public function getTags() + public function getMeta() { - return $this->tags; + return $this->meta; } /** - * Generated from protobuf field map tags = 8; + * Generated from protobuf field map meta = 10; * @param array|\Google\Protobuf\Internal\MapField $var * @return $this */ - public function setTags($var) + public function setMeta($var) { $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; + $this->meta = $arr; + + return $this; + } + + /** + *map labels = 12; + *map scores = 13; + * + * Generated from protobuf field repeated string topics = 11; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + *map labels = 12; + *map scores = 13; + * + * Generated from protobuf field repeated string topics = 11; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; return $this; } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceFilter.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceFilter.php new file mode 100644 index 0000000..4e00901 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceFilter.php @@ -0,0 +1,166 @@ +centrifugal.centrifugo.api.DeviceFilter + */ +class DeviceFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated string ids = 1; + */ + private $ids; + /** + * Generated from protobuf field repeated string users = 2; + */ + private $users; + /** + * Generated from protobuf field repeated string topics = 3; + */ + private $topics; + /** + * Generated from protobuf field repeated string providers = 4; + */ + private $providers; + /** + * Generated from protobuf field repeated string platforms = 5; + */ + private $platforms; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $ids + * @type array|\Google\Protobuf\Internal\RepeatedField $users + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * @type array|\Google\Protobuf\Internal\RepeatedField $providers + * @type array|\Google\Protobuf\Internal\RepeatedField $platforms + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated string ids = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getIds() + { + return $this->ids; + } + + /** + * Generated from protobuf field repeated string ids = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->ids = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string users = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUsers() + { + return $this->users; + } + + /** + * Generated from protobuf field repeated string users = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->users = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string providers = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getProviders() + { + return $this->providers; + } + + /** + * Generated from protobuf field repeated string providers = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->providers = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string platforms = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getPlatforms() + { + return $this->platforms; + } + + /** + * Generated from protobuf field repeated string platforms = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setPlatforms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->platforms = $arr; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListRequest.php index 33a26b3..3639475 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListRequest.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListRequest.php @@ -14,49 +14,32 @@ class DeviceListRequest extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated string ids = 1; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; */ - private $ids; + protected $filter = null; /** - * Generated from protobuf field repeated string providers = 2; + * Generated from protobuf field bool include_total_count = 2; */ - private $providers; + protected $include_total_count = false; /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; + * Generated from protobuf field bool include_meta = 3; */ - private $provider_tokens; - /** - * Generated from protobuf field repeated string platforms = 4; - */ - private $platforms; - /** - * Generated from protobuf field repeated string users = 5; - */ - private $users; + protected $include_meta = false; /** - * Generated from protobuf field repeated string channels = 6; + *bool include_labels = 5; + *bool include_scores = 6; + * + * Generated from protobuf field bool include_topics = 4; */ - private $channels; + protected $include_topics = false; /** - * Generated from protobuf field string since = 7; + * Generated from protobuf field string cursor = 10; */ - protected $since = ''; + protected $cursor = ''; /** - * Generated from protobuf field int32 limit = 8; + * Generated from protobuf field int32 limit = 11; */ protected $limit = 0; - /** - * Generated from protobuf field bool include_channels = 10; - */ - protected $include_channels = false; - /** - * Generated from protobuf field bool include_meta = 11; - */ - protected $include_meta = false; - /** - * Generated from protobuf field bool include_tags = 12; - */ - protected $include_tags = false; /** * Constructor. @@ -64,17 +47,14 @@ class DeviceListRequest extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type array|\Google\Protobuf\Internal\RepeatedField $ids - * @type array|\Google\Protobuf\Internal\RepeatedField $providers - * @type array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $provider_tokens - * @type array|\Google\Protobuf\Internal\RepeatedField $platforms - * @type array|\Google\Protobuf\Internal\RepeatedField $users - * @type array|\Google\Protobuf\Internal\RepeatedField $channels - * @type string $since - * @type int $limit - * @type bool $include_channels + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter $filter + * @type bool $include_total_count * @type bool $include_meta - * @type bool $include_tags + * @type bool $include_topics + * bool include_labels = 5; + * bool include_scores = 6; + * @type string $cursor + * @type int $limit * } */ public function __construct($data = NULL) { @@ -83,161 +63,133 @@ public function __construct($data = NULL) { } /** - * Generated from protobuf field repeated string ids = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter|null */ - public function getIds() + public function getFilter() { - return $this->ids; + return $this->filter; } - /** - * Generated from protobuf field repeated string ids = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setIds($var) + public function hasFilter() { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->ids = $arr; - - return $this; + return isset($this->filter); } - /** - * Generated from protobuf field repeated string providers = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProviders() + public function clearFilter() { - return $this->providers; + unset($this->filter); } /** - * Generated from protobuf field repeated string providers = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter $var * @return $this */ - public function setProviders($var) + public function setFilter($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->providers = $arr; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter::class); + $this->filter = $var; return $this; } /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProviderTokens() - { - return $this->provider_tokens; - } - - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @param array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProviderTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens::class); - $this->provider_tokens = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated string platforms = 4; - * @return \Google\Protobuf\Internal\RepeatedField + * Generated from protobuf field bool include_total_count = 2; + * @return bool */ - public function getPlatforms() + public function getIncludeTotalCount() { - return $this->platforms; + return $this->include_total_count; } /** - * Generated from protobuf field repeated string platforms = 4; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field bool include_total_count = 2; + * @param bool $var * @return $this */ - public function setPlatforms($var) + public function setIncludeTotalCount($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->platforms = $arr; + GPBUtil::checkBool($var); + $this->include_total_count = $var; return $this; } /** - * Generated from protobuf field repeated string users = 5; - * @return \Google\Protobuf\Internal\RepeatedField + * Generated from protobuf field bool include_meta = 3; + * @return bool */ - public function getUsers() + public function getIncludeMeta() { - return $this->users; + return $this->include_meta; } /** - * Generated from protobuf field repeated string users = 5; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field bool include_meta = 3; + * @param bool $var * @return $this */ - public function setUsers($var) + public function setIncludeMeta($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->users = $arr; + GPBUtil::checkBool($var); + $this->include_meta = $var; return $this; } /** - * Generated from protobuf field repeated string channels = 6; - * @return \Google\Protobuf\Internal\RepeatedField + *bool include_labels = 5; + *bool include_scores = 6; + * + * Generated from protobuf field bool include_topics = 4; + * @return bool */ - public function getChannels() + public function getIncludeTopics() { - return $this->channels; + return $this->include_topics; } /** - * Generated from protobuf field repeated string channels = 6; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + *bool include_labels = 5; + *bool include_scores = 6; + * + * Generated from protobuf field bool include_topics = 4; + * @param bool $var * @return $this */ - public function setChannels($var) + public function setIncludeTopics($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->channels = $arr; + GPBUtil::checkBool($var); + $this->include_topics = $var; return $this; } /** - * Generated from protobuf field string since = 7; + * Generated from protobuf field string cursor = 10; * @return string */ - public function getSince() + public function getCursor() { - return $this->since; + return $this->cursor; } /** - * Generated from protobuf field string since = 7; + * Generated from protobuf field string cursor = 10; * @param string $var * @return $this */ - public function setSince($var) + public function setCursor($var) { GPBUtil::checkString($var, True); - $this->since = $var; + $this->cursor = $var; return $this; } /** - * Generated from protobuf field int32 limit = 8; + * Generated from protobuf field int32 limit = 11; * @return int */ public function getLimit() @@ -246,7 +198,7 @@ public function getLimit() } /** - * Generated from protobuf field int32 limit = 8; + * Generated from protobuf field int32 limit = 11; * @param int $var * @return $this */ @@ -258,71 +210,5 @@ public function setLimit($var) return $this; } - /** - * Generated from protobuf field bool include_channels = 10; - * @return bool - */ - public function getIncludeChannels() - { - return $this->include_channels; - } - - /** - * Generated from protobuf field bool include_channels = 10; - * @param bool $var - * @return $this - */ - public function setIncludeChannels($var) - { - GPBUtil::checkBool($var); - $this->include_channels = $var; - - return $this; - } - - /** - * Generated from protobuf field bool include_meta = 11; - * @return bool - */ - public function getIncludeMeta() - { - return $this->include_meta; - } - - /** - * Generated from protobuf field bool include_meta = 11; - * @param bool $var - * @return $this - */ - public function setIncludeMeta($var) - { - GPBUtil::checkBool($var); - $this->include_meta = $var; - - return $this; - } - - /** - * Generated from protobuf field bool include_tags = 12; - * @return bool - */ - public function getIncludeTags() - { - return $this->include_tags; - } - - /** - * Generated from protobuf field bool include_tags = 12; - * @param bool $var - * @return $this - */ - public function setIncludeTags($var) - { - GPBUtil::checkBool($var); - $this->include_tags = $var; - - return $this; - } - } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListResult.php index 2d557c9..86ba950 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListResult.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceListResult.php @@ -18,9 +18,13 @@ class DeviceListResult extends \Google\Protobuf\Internal\Message */ private $items; /** - * Generated from protobuf field bool has_more = 2; + * Generated from protobuf field string next_cursor = 2; */ - protected $has_more = false; + protected $next_cursor = ''; + /** + * Generated from protobuf field int64 total_count = 3; + */ + protected $total_count = 0; /** * Constructor. @@ -29,7 +33,8 @@ class DeviceListResult extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type array<\RoadRunner\Centrifugal\API\DTO\V1\Device>|\Google\Protobuf\Internal\RepeatedField $items - * @type bool $has_more + * @type string $next_cursor + * @type int|string $total_count * } */ public function __construct($data = NULL) { @@ -60,23 +65,45 @@ public function setItems($var) } /** - * Generated from protobuf field bool has_more = 2; - * @return bool + * Generated from protobuf field string next_cursor = 2; + * @return string + */ + public function getNextCursor() + { + return $this->next_cursor; + } + + /** + * Generated from protobuf field string next_cursor = 2; + * @param string $var + * @return $this + */ + public function setNextCursor($var) + { + GPBUtil::checkString($var, True); + $this->next_cursor = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 total_count = 3; + * @return int|string */ - public function getHasMore() + public function getTotalCount() { - return $this->has_more; + return $this->total_count; } /** - * Generated from protobuf field bool has_more = 2; - * @param bool $var + * Generated from protobuf field int64 total_count = 3; + * @param int|string $var * @return $this */ - public function setHasMore($var) + public function setTotalCount($var) { - GPBUtil::checkBool($var); - $this->has_more = $var; + GPBUtil::checkInt64($var); + $this->total_count = $var; return $this; } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterRequest.php index 434b8ec..ebb7bcb 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterRequest.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterRequest.php @@ -38,13 +38,12 @@ class DeviceRegisterRequest extends \Google\Protobuf\Internal\Message */ private $meta; /** - * Generated from protobuf field map tags = 7; - */ - private $tags; - /** - * Generated from protobuf field repeated string channels = 8; + *map labels = 8; + *map scores = 9; + * + * Generated from protobuf field repeated string topics = 7; */ - private $channels; + private $topics; /** * Constructor. @@ -58,8 +57,9 @@ class DeviceRegisterRequest extends \Google\Protobuf\Internal\Message * @type string $platform * @type string $user * @type array|\Google\Protobuf\Internal\MapField $meta - * @type array|\Google\Protobuf\Internal\MapField $tags - * @type array|\Google\Protobuf\Internal\RepeatedField $channels + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * map labels = 8; + * map scores = 9; * } */ public function __construct($data = NULL) { @@ -200,45 +200,29 @@ public function setMeta($var) } /** - * Generated from protobuf field map tags = 7; - * @return \Google\Protobuf\Internal\MapField - */ - public function getTags() - { - return $this->tags; - } - - /** - * Generated from protobuf field map tags = 7; - * @param array|\Google\Protobuf\Internal\MapField $var - * @return $this - */ - public function setTags($var) - { - $arr = GPBUtil::checkMapField($var, \Google\Protobuf\Internal\GPBType::STRING, \Google\Protobuf\Internal\GPBType::STRING); - $this->tags = $arr; - - return $this; - } - - /** - * Generated from protobuf field repeated string channels = 8; + *map labels = 8; + *map scores = 9; + * + * Generated from protobuf field repeated string topics = 7; * @return \Google\Protobuf\Internal\RepeatedField */ - public function getChannels() + public function getTopics() { - return $this->channels; + return $this->topics; } /** - * Generated from protobuf field repeated string channels = 8; + *map labels = 8; + *map scores = 9; + * + * Generated from protobuf field repeated string topics = 7; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ - public function setChannels($var) + public function setTopics($var) { $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->channels = $arr; + $this->topics = $arr; return $this; } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterResult.php index 6762ceb..acbcbe3 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterResult.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRegisterResult.php @@ -14,9 +14,9 @@ class DeviceRegisterResult extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 1; + * Generated from protobuf field string id = 1; */ - protected $device = null; + protected $id = ''; /** * Constructor. @@ -24,7 +24,7 @@ class DeviceRegisterResult extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type \RoadRunner\Centrifugal\API\DTO\V1\Device $device + * @type string $id * } */ public function __construct($data = NULL) { @@ -33,33 +33,23 @@ public function __construct($data = NULL) { } /** - * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 1; - * @return \RoadRunner\Centrifugal\API\DTO\V1\Device|null + * Generated from protobuf field string id = 1; + * @return string */ - public function getDevice() + public function getId() { - return $this->device; - } - - public function hasDevice() - { - return isset($this->device); - } - - public function clearDevice() - { - unset($this->device); + return $this->id; } /** - * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 1; - * @param \RoadRunner\Centrifugal\API\DTO\V1\Device $var + * Generated from protobuf field string id = 1; + * @param string $var * @return $this */ - public function setDevice($var) + public function setId($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Device::class); - $this->device = $var; + GPBUtil::checkString($var, True); + $this->id = $var; return $this; } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRemoveRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRemoveRequest.php index 034bea1..8d202a0 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRemoveRequest.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceRemoveRequest.php @@ -21,10 +21,6 @@ class DeviceRemoveRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string users = 2; */ private $users; - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - */ - private $provider_tokens; /** * Constructor. @@ -34,7 +30,6 @@ class DeviceRemoveRequest extends \Google\Protobuf\Internal\Message * * @type array|\Google\Protobuf\Internal\RepeatedField $ids * @type array|\Google\Protobuf\Internal\RepeatedField $users - * @type array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $provider_tokens * } */ public function __construct($data = NULL) { @@ -86,27 +81,5 @@ public function setUsers($var) return $this; } - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProviderTokens() - { - return $this->provider_tokens; - } - - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @param array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProviderTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens::class); - $this->provider_tokens = $arr; - - return $this; - } - } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopic.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopic.php new file mode 100644 index 0000000..c1e145f --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopic.php @@ -0,0 +1,122 @@ +centrifugal.centrifugo.api.DeviceTopic + */ +class DeviceTopic extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Generated from protobuf field string topic = 2; + */ + protected $topic = ''; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 3; + */ + protected $device = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type string $topic + * @type \RoadRunner\Centrifugal\API\DTO\V1\Device $device + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field string topic = 2; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Generated from protobuf field string topic = 2; + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 3; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Device|null + */ + public function getDevice() + { + return $this->device; + } + + public function hasDevice() + { + return isset($this->device); + } + + public function clearDevice() + { + unset($this->device); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Device device = 3; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Device $var + * @return $this + */ + public function setDevice($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Device::class); + $this->device = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicFilter.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicFilter.php new file mode 100644 index 0000000..1606787 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicFilter.php @@ -0,0 +1,193 @@ +centrifugal.centrifugo.api.DeviceTopicFilter + */ +class DeviceTopicFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated string device_ids = 1; + */ + private $device_ids; + /** + * Generated from protobuf field repeated string device_providers = 2; + */ + private $device_providers; + /** + * Generated from protobuf field repeated string device_platforms = 3; + */ + private $device_platforms; + /** + * Generated from protobuf field repeated string device_users = 4; + */ + private $device_users; + /** + * Generated from protobuf field repeated string topics = 5; + */ + private $topics; + /** + * Generated from protobuf field string topic_prefix = 6; + */ + protected $topic_prefix = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $device_ids + * @type array|\Google\Protobuf\Internal\RepeatedField $device_providers + * @type array|\Google\Protobuf\Internal\RepeatedField $device_platforms + * @type array|\Google\Protobuf\Internal\RepeatedField $device_users + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * @type string $topic_prefix + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated string device_ids = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceIds() + { + return $this->device_ids; + } + + /** + * Generated from protobuf field repeated string device_ids = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceIds($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->device_ids = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string device_providers = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceProviders() + { + return $this->device_providers; + } + + /** + * Generated from protobuf field repeated string device_providers = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->device_providers = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string device_platforms = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDevicePlatforms() + { + return $this->device_platforms; + } + + /** + * Generated from protobuf field repeated string device_platforms = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDevicePlatforms($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->device_platforms = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string device_users = 4; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getDeviceUsers() + { + return $this->device_users; + } + + /** + * Generated from protobuf field repeated string device_users = 4; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setDeviceUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->device_users = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 5; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 5; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + + /** + * Generated from protobuf field string topic_prefix = 6; + * @return string + */ + public function getTopicPrefix() + { + return $this->topic_prefix; + } + + /** + * Generated from protobuf field string topic_prefix = 6; + * @param string $var + * @return $this + */ + public function setTopicPrefix($var) + { + GPBUtil::checkString($var, True); + $this->topic_prefix = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListRequest.php new file mode 100644 index 0000000..010e484 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListRequest.php @@ -0,0 +1,176 @@ +centrifugal.centrifugo.api.DeviceTopicListRequest + */ +class DeviceTopicListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicFilter filter = 1; + */ + protected $filter = null; + /** + * Generated from protobuf field bool include_total_count = 2; + */ + protected $include_total_count = false; + /** + * Generated from protobuf field bool include_device = 3; + */ + protected $include_device = false; + /** + * Generated from protobuf field string cursor = 10; + */ + protected $cursor = ''; + /** + * Generated from protobuf field int32 limit = 11; + */ + protected $limit = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicFilter $filter + * @type bool $include_total_count + * @type bool $include_device + * @type string $cursor + * @type int $limit + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicFilter filter = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicFilter filter = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * Generated from protobuf field bool include_total_count = 2; + * @return bool + */ + public function getIncludeTotalCount() + { + return $this->include_total_count; + } + + /** + * Generated from protobuf field bool include_total_count = 2; + * @param bool $var + * @return $this + */ + public function setIncludeTotalCount($var) + { + GPBUtil::checkBool($var); + $this->include_total_count = $var; + + return $this; + } + + /** + * Generated from protobuf field bool include_device = 3; + * @return bool + */ + public function getIncludeDevice() + { + return $this->include_device; + } + + /** + * Generated from protobuf field bool include_device = 3; + * @param bool $var + * @return $this + */ + public function setIncludeDevice($var) + { + GPBUtil::checkBool($var); + $this->include_device = $var; + + return $this; + } + + /** + * Generated from protobuf field string cursor = 10; + * @return string + */ + public function getCursor() + { + return $this->cursor; + } + + /** + * Generated from protobuf field string cursor = 10; + * @param string $var + * @return $this + */ + public function setCursor($var) + { + GPBUtil::checkString($var, True); + $this->cursor = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 limit = 11; + * @return int + */ + public function getLimit() + { + return $this->limit; + } + + /** + * Generated from protobuf field int32 limit = 11; + * @param int $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt32($var); + $this->limit = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResponse.php new file mode 100644 index 0000000..a74f11a --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.DeviceTopicListResponse + */ +class DeviceTopicListResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResult.php new file mode 100644 index 0000000..3125202 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicListResult.php @@ -0,0 +1,112 @@ +centrifugal.centrifugo.api.DeviceTopicListResult + */ +class DeviceTopicListResult extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceTopic items = 1; + */ + private $items; + /** + * Generated from protobuf field string next_cursor = 2; + */ + protected $next_cursor = ''; + /** + * Generated from protobuf field int64 total_count = 3; + */ + protected $total_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceTopic>|\Google\Protobuf\Internal\RepeatedField $items + * @type string $next_cursor + * @type int|string $total_count + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceTopic items = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceTopic items = 1; + * @param array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceTopic>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopic::class); + $this->items = $arr; + + return $this; + } + + /** + * Generated from protobuf field string next_cursor = 2; + * @return string + */ + public function getNextCursor() + { + return $this->next_cursor; + } + + /** + * Generated from protobuf field string next_cursor = 2; + * @param string $var + * @return $this + */ + public function setNextCursor($var) + { + GPBUtil::checkString($var, True); + $this->next_cursor = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 total_count = 3; + * @return int|string + */ + public function getTotalCount() + { + return $this->total_count; + } + + /** + * Generated from protobuf field int64 total_count = 3; + * @param int|string $var + * @return $this + */ + public function setTotalCount($var) + { + GPBUtil::checkInt64($var); + $this->total_count = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateRequest.php new file mode 100644 index 0000000..49a0654 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateRequest.php @@ -0,0 +1,119 @@ +centrifugal.centrifugo.api.DeviceTopicUpdateRequest + */ +class DeviceTopicUpdateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string device_id = 1; + */ + protected $device_id = ''; + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + */ + protected $op = ''; + /** + * Generated from protobuf field repeated string topics = 3; + */ + private $topics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $device_id + * @type string $op + * add | remove | set + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string device_id = 1; + * @return string + */ + public function getDeviceId() + { + return $this->device_id; + } + + /** + * Generated from protobuf field string device_id = 1; + * @param string $var + * @return $this + */ + public function setDeviceId($var) + { + GPBUtil::checkString($var, True); + $this->device_id = $var; + + return $this; + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + * @return string + */ + public function getOp() + { + return $this->op; + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + * @param string $var + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkString($var, True); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResponse.php new file mode 100644 index 0000000..a39540b --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.DeviceTopicUpdateResponse + */ +class DeviceTopicUpdateResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResult.php new file mode 100644 index 0000000..5e0eb97 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicUpdateResult.php @@ -0,0 +1,31 @@ +centrifugal.centrifugo.api.DeviceTopicUpdateResult + */ +class DeviceTopicUpdateResult extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicsUpdate.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicsUpdate.php new file mode 100644 index 0000000..52a74cd --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceTopicsUpdate.php @@ -0,0 +1,92 @@ +centrifugal.centrifugo.api.DeviceTopicsUpdate + */ +class DeviceTopicsUpdate extends \Google\Protobuf\Internal\Message +{ + /** + * add | remove | set + * + * Generated from protobuf field string op = 1; + */ + protected $op = ''; + /** + * Generated from protobuf field repeated string topics = 2; + */ + private $topics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $op + * add | remove | set + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 1; + * @return string + */ + public function getOp() + { + return $this->op; + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 1; + * @param string $var + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkString($var, True); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceUpdateRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceUpdateRequest.php index 7af7a57..9bd1bc1 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceUpdateRequest.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/DeviceUpdateRequest.php @@ -21,10 +21,6 @@ class DeviceUpdateRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field repeated string users = 2; */ private $users; - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - */ - private $provider_tokens; /** * Generated from protobuf field .centrifugal.centrifugo.api.DeviceUserUpdate user_update = 4; */ @@ -34,13 +30,12 @@ class DeviceUpdateRequest extends \Google\Protobuf\Internal\Message */ protected $meta_update = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTagsUpdate tags_update = 6; - */ - protected $tags_update = null; - /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceChannelsUpdate channels_update = 7; + *DeviceLabelsUpdate labels_update = 7; + *DeviceScoresUpdate scores_update = 8; + * + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicsUpdate topics_update = 6; */ - protected $channels_update = null; + protected $topics_update = null; /** * Constructor. @@ -50,11 +45,11 @@ class DeviceUpdateRequest extends \Google\Protobuf\Internal\Message * * @type array|\Google\Protobuf\Internal\RepeatedField $ids * @type array|\Google\Protobuf\Internal\RepeatedField $users - * @type array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $provider_tokens * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceUserUpdate $user_update * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceMetaUpdate $meta_update - * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTagsUpdate $tags_update - * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceChannelsUpdate $channels_update + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicsUpdate $topics_update + * DeviceLabelsUpdate labels_update = 7; + * DeviceScoresUpdate scores_update = 8; * } */ public function __construct($data = NULL) { @@ -106,28 +101,6 @@ public function setUsers($var) return $this; } - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getProviderTokens() - { - return $this->provider_tokens; - } - - /** - * Generated from protobuf field repeated .centrifugal.centrifugo.api.DeviceProviderTokens provider_tokens = 3; - * @param array<\RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens>|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setProviderTokens($var) - { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\Centrifugal\API\DTO\V1\DeviceProviderTokens::class); - $this->provider_tokens = $arr; - - return $this; - } - /** * Generated from protobuf field .centrifugal.centrifugo.api.DeviceUserUpdate user_update = 4; * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceUserUpdate|null @@ -193,65 +166,39 @@ public function setMetaUpdate($var) } /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTagsUpdate tags_update = 6; - * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTagsUpdate|null - */ - public function getTagsUpdate() - { - return $this->tags_update; - } - - public function hasTagsUpdate() - { - return isset($this->tags_update); - } - - public function clearTagsUpdate() - { - unset($this->tags_update); - } - - /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTagsUpdate tags_update = 6; - * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTagsUpdate $var - * @return $this - */ - public function setTagsUpdate($var) - { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTagsUpdate::class); - $this->tags_update = $var; - - return $this; - } - - /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceChannelsUpdate channels_update = 7; - * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceChannelsUpdate|null + *DeviceLabelsUpdate labels_update = 7; + *DeviceScoresUpdate scores_update = 8; + * + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicsUpdate topics_update = 6; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicsUpdate|null */ - public function getChannelsUpdate() + public function getTopicsUpdate() { - return $this->channels_update; + return $this->topics_update; } - public function hasChannelsUpdate() + public function hasTopicsUpdate() { - return isset($this->channels_update); + return isset($this->topics_update); } - public function clearChannelsUpdate() + public function clearTopicsUpdate() { - unset($this->channels_update); + unset($this->topics_update); } /** - * Generated from protobuf field .centrifugal.centrifugo.api.DeviceChannelsUpdate channels_update = 7; - * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceChannelsUpdate $var + *DeviceLabelsUpdate labels_update = 7; + *DeviceScoresUpdate scores_update = 8; + * + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicsUpdate topics_update = 6; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicsUpdate $var * @return $this */ - public function setChannelsUpdate($var) + public function setTopicsUpdate($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceChannelsUpdate::class); - $this->channels_update = $var; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicsUpdate::class); + $this->topics_update = $var; return $this; } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Disconnect.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Disconnect.php index feb734d..fb19ae7 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Disconnect.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Disconnect.php @@ -21,10 +21,6 @@ class Disconnect extends \Google\Protobuf\Internal\Message * Generated from protobuf field string reason = 2; */ protected $reason = ''; - /** - * Generated from protobuf field bool reconnect = 3; - */ - protected $reconnect = false; /** * Constructor. @@ -34,7 +30,6 @@ class Disconnect extends \Google\Protobuf\Internal\Message * * @type int $code * @type string $reason - * @type bool $reconnect * } */ public function __construct($data = NULL) { @@ -86,27 +81,5 @@ public function setReason($var) return $this; } - /** - * Generated from protobuf field bool reconnect = 3; - * @return bool - */ - public function getReconnect() - { - return $this->reconnect; - } - - /** - * Generated from protobuf field bool reconnect = 3; - * @param bool $var - * @return $this - */ - public function setReconnect($var) - { - GPBUtil::checkBool($var); - $this->reconnect = $var; - - return $this; - } - } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/GPBMetadata/Api.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/GPBMetadata/Api.php index 216b484..51284ba 100644 Binary files a/generated/RoadRunner/Centrifugal/API/DTO/V1/GPBMetadata/Api.php and b/generated/RoadRunner/Centrifugal/API/DTO/V1/GPBMetadata/Api.php differ diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Publication.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Publication.php index 66c3cb7..09d11ce 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Publication.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Publication.php @@ -14,7 +14,7 @@ class Publication extends \Google\Protobuf\Internal\Message { /** - * Removed: string uid =1; + * Removed: string uid = 1; * * Generated from protobuf field bytes data = 2; */ @@ -39,7 +39,7 @@ class Publication extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $data - * Removed: string uid =1; + * Removed: string uid = 1; * @type \RoadRunner\Centrifugal\API\DTO\V1\ClientInfo $info * @type int|string $offset * @type array|\Google\Protobuf\Internal\MapField $tags @@ -51,7 +51,7 @@ public function __construct($data = NULL) { } /** - * Removed: string uid =1; + * Removed: string uid = 1; * * Generated from protobuf field bytes data = 2; * @return string @@ -62,7 +62,7 @@ public function getData() } /** - * Removed: string uid =1; + * Removed: string uid = 1; * * Generated from protobuf field bytes data = 2; * @param string $var diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/PushNotification.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/PushNotification.php index 0a9c062..97a29f5 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/PushNotification.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/PushNotification.php @@ -26,10 +26,8 @@ class PushNotification extends \Google\Protobuf\Internal\Message */ protected $apns = null; /** - * Generated from protobuf field string uid = 4; - */ - protected $uid = ''; - /** + * timestamp in the future when Centrifugo should stop trying to send push notification. + * * Generated from protobuf field int64 expire_at = 5; */ protected $expire_at = 0; @@ -43,8 +41,8 @@ class PushNotification extends \Google\Protobuf\Internal\Message * @type \RoadRunner\Centrifugal\API\DTO\V1\FcmPushNotification $fcm * @type \RoadRunner\Centrifugal\API\DTO\V1\HmsPushNotification $hms * @type \RoadRunner\Centrifugal\API\DTO\V1\ApnsPushNotification $apns - * @type string $uid * @type int|string $expire_at + * timestamp in the future when Centrifugo should stop trying to send push notification. * } */ public function __construct($data = NULL) { @@ -149,28 +147,8 @@ public function setApns($var) } /** - * Generated from protobuf field string uid = 4; - * @return string - */ - public function getUid() - { - return $this->uid; - } - - /** - * Generated from protobuf field string uid = 4; - * @param string $var - * @return $this - */ - public function setUid($var) - { - GPBUtil::checkString($var, True); - $this->uid = $var; - - return $this; - } - - /** + * timestamp in the future when Centrifugo should stop trying to send push notification. + * * Generated from protobuf field int64 expire_at = 5; * @return int|string */ @@ -180,6 +158,8 @@ public function getExpireAt() } /** + * timestamp in the future when Centrifugo should stop trying to send push notification. + * * Generated from protobuf field int64 expire_at = 5; * @param int|string $var * @return $this diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/PushRecipient.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/PushRecipient.php index 57cc406..da7867e 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/PushRecipient.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/PushRecipient.php @@ -14,39 +14,35 @@ class PushRecipient extends \Google\Protobuf\Internal\Message { /** - * Generated from protobuf field repeated string device_ids = 1; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; */ - private $device_ids; + protected $filter = null; /** - * Generated from protobuf field repeated string channels = 2; - */ - private $channels; - /** - * Generated from protobuf field repeated string fcm_tokens = 3; + * Generated from protobuf field repeated string fcm_tokens = 2; */ private $fcm_tokens; /** - * Generated from protobuf field string fcm_topic = 4; + * Generated from protobuf field string fcm_topic = 3; */ protected $fcm_topic = ''; /** - * Generated from protobuf field string fcm_condition = 5; + * Generated from protobuf field string fcm_condition = 4; */ protected $fcm_condition = ''; /** - * Generated from protobuf field repeated string hms_tokens = 6; + * Generated from protobuf field repeated string hms_tokens = 5; */ private $hms_tokens; /** - * Generated from protobuf field string hms_topic = 7; + * Generated from protobuf field string hms_topic = 6; */ protected $hms_topic = ''; /** - * Generated from protobuf field string hms_condition = 8; + * Generated from protobuf field string hms_condition = 7; */ protected $hms_condition = ''; /** - * Generated from protobuf field repeated string apns_tokens = 9; + * Generated from protobuf field repeated string apns_tokens = 8; */ private $apns_tokens; @@ -56,8 +52,7 @@ class PushRecipient extends \Google\Protobuf\Internal\Message * @param array $data { * Optional. Data for populating the Message object. * - * @type array|\Google\Protobuf\Internal\RepeatedField $device_ids - * @type array|\Google\Protobuf\Internal\RepeatedField $channels + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter $filter * @type array|\Google\Protobuf\Internal\RepeatedField $fcm_tokens * @type string $fcm_topic * @type string $fcm_condition @@ -73,51 +68,39 @@ public function __construct($data = NULL) { } /** - * Generated from protobuf field repeated string device_ids = 1; - * @return \Google\Protobuf\Internal\RepeatedField + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter|null */ - public function getDeviceIds() + public function getFilter() { - return $this->device_ids; + return $this->filter; } - /** - * Generated from protobuf field repeated string device_ids = 1; - * @param array|\Google\Protobuf\Internal\RepeatedField $var - * @return $this - */ - public function setDeviceIds($var) + public function hasFilter() { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->device_ids = $arr; - - return $this; + return isset($this->filter); } - /** - * Generated from protobuf field repeated string channels = 2; - * @return \Google\Protobuf\Internal\RepeatedField - */ - public function getChannels() + public function clearFilter() { - return $this->channels; + unset($this->filter); } /** - * Generated from protobuf field repeated string channels = 2; - * @param array|\Google\Protobuf\Internal\RepeatedField $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceFilter filter = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter $var * @return $this */ - public function setChannels($var) + public function setFilter($var) { - $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); - $this->channels = $arr; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceFilter::class); + $this->filter = $var; return $this; } /** - * Generated from protobuf field repeated string fcm_tokens = 3; + * Generated from protobuf field repeated string fcm_tokens = 2; * @return \Google\Protobuf\Internal\RepeatedField */ public function getFcmTokens() @@ -126,7 +109,7 @@ public function getFcmTokens() } /** - * Generated from protobuf field repeated string fcm_tokens = 3; + * Generated from protobuf field repeated string fcm_tokens = 2; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -139,7 +122,7 @@ public function setFcmTokens($var) } /** - * Generated from protobuf field string fcm_topic = 4; + * Generated from protobuf field string fcm_topic = 3; * @return string */ public function getFcmTopic() @@ -148,7 +131,7 @@ public function getFcmTopic() } /** - * Generated from protobuf field string fcm_topic = 4; + * Generated from protobuf field string fcm_topic = 3; * @param string $var * @return $this */ @@ -161,7 +144,7 @@ public function setFcmTopic($var) } /** - * Generated from protobuf field string fcm_condition = 5; + * Generated from protobuf field string fcm_condition = 4; * @return string */ public function getFcmCondition() @@ -170,7 +153,7 @@ public function getFcmCondition() } /** - * Generated from protobuf field string fcm_condition = 5; + * Generated from protobuf field string fcm_condition = 4; * @param string $var * @return $this */ @@ -183,7 +166,7 @@ public function setFcmCondition($var) } /** - * Generated from protobuf field repeated string hms_tokens = 6; + * Generated from protobuf field repeated string hms_tokens = 5; * @return \Google\Protobuf\Internal\RepeatedField */ public function getHmsTokens() @@ -192,7 +175,7 @@ public function getHmsTokens() } /** - * Generated from protobuf field repeated string hms_tokens = 6; + * Generated from protobuf field repeated string hms_tokens = 5; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ @@ -205,7 +188,7 @@ public function setHmsTokens($var) } /** - * Generated from protobuf field string hms_topic = 7; + * Generated from protobuf field string hms_topic = 6; * @return string */ public function getHmsTopic() @@ -214,7 +197,7 @@ public function getHmsTopic() } /** - * Generated from protobuf field string hms_topic = 7; + * Generated from protobuf field string hms_topic = 6; * @param string $var * @return $this */ @@ -227,7 +210,7 @@ public function setHmsTopic($var) } /** - * Generated from protobuf field string hms_condition = 8; + * Generated from protobuf field string hms_condition = 7; * @return string */ public function getHmsCondition() @@ -236,7 +219,7 @@ public function getHmsCondition() } /** - * Generated from protobuf field string hms_condition = 8; + * Generated from protobuf field string hms_condition = 7; * @param string $var * @return $this */ @@ -249,7 +232,7 @@ public function setHmsCondition($var) } /** - * Generated from protobuf field repeated string apns_tokens = 9; + * Generated from protobuf field repeated string apns_tokens = 8; * @return \Google\Protobuf\Internal\RepeatedField */ public function getApnsTokens() @@ -258,7 +241,7 @@ public function getApnsTokens() } /** - * Generated from protobuf field repeated string apns_tokens = 9; + * Generated from protobuf field repeated string apns_tokens = 8; * @param array|\Google\Protobuf\Internal\RepeatedField $var * @return $this */ diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitRequest.php new file mode 100644 index 0000000..fd6d93b --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitRequest.php @@ -0,0 +1,36 @@ +centrifugal.centrifugo.api.RateLimitRequest + */ +class RateLimitRequest extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResponse.php new file mode 100644 index 0000000..b498eea --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.RateLimitResponse + */ +class RateLimitResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResult.php new file mode 100644 index 0000000..ddd3e44 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/RateLimitResult.php @@ -0,0 +1,36 @@ +centrifugal.centrifugo.api.RateLimitResult + */ +class RateLimitResult extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/Reply.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/Reply.php index 479e2fa..48603c7 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/Reply.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/Reply.php @@ -126,17 +126,37 @@ class Reply extends \Google\Protobuf\Internal\Message */ protected $device_list = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListResult push_user_channel_list = 29; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult device_topic_list = 29; */ - protected $push_user_channel_list = null; + protected $device_topic_list = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateResult push_user_channel_update = 30; + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult device_topic_update = 30; */ - protected $push_user_channel_update = null; + protected $device_topic_update = null; /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult user_topic_list = 31; + */ + protected $user_topic_list = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult user_topic_update = 32; + */ + protected $user_topic_update = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 33; */ protected $send_push_notification = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult update_push_status = 34; + */ + protected $update_push_status = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult cancel_push = 35; + */ + protected $cancel_push = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult rate_limit = 50; + */ + protected $rate_limit = null; /** * Constructor. @@ -172,9 +192,14 @@ class Reply extends \Google\Protobuf\Internal\Message * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceUpdateResult $device_update * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceRemoveResult $device_remove * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceListResult $device_list - * @type \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListResult $push_user_channel_list - * @type \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateResult $push_user_channel_update + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult $device_topic_list + * @type \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult $device_topic_update + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult $user_topic_list + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult $user_topic_update * @type \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationResult $send_push_notification + * @type \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult $update_push_status + * @type \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult $cancel_push + * @type \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult $rate_limit * } */ public function __construct($data = NULL) { @@ -1059,71 +1084,135 @@ public function setDeviceList($var) } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListResult push_user_channel_list = 29; - * @return \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListResult|null + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult device_topic_list = 29; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult|null */ - public function getPushUserChannelList() + public function getDeviceTopicList() { - return $this->push_user_channel_list; + return $this->device_topic_list; } - public function hasPushUserChannelList() + public function hasDeviceTopicList() { - return isset($this->push_user_channel_list); + return isset($this->device_topic_list); } - public function clearPushUserChannelList() + public function clearDeviceTopicList() { - unset($this->push_user_channel_list); + unset($this->device_topic_list); } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelListResult push_user_channel_list = 29; - * @param \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListResult $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicListResult device_topic_list = 29; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult $var * @return $this */ - public function setPushUserChannelList($var) + public function setDeviceTopicList($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelListResult::class); - $this->push_user_channel_list = $var; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicListResult::class); + $this->device_topic_list = $var; return $this; } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateResult push_user_channel_update = 30; - * @return \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateResult|null + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult device_topic_update = 30; + * @return \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult|null */ - public function getPushUserChannelUpdate() + public function getDeviceTopicUpdate() { - return $this->push_user_channel_update; + return $this->device_topic_update; } - public function hasPushUserChannelUpdate() + public function hasDeviceTopicUpdate() { - return isset($this->push_user_channel_update); + return isset($this->device_topic_update); } - public function clearPushUserChannelUpdate() + public function clearDeviceTopicUpdate() { - unset($this->push_user_channel_update); + unset($this->device_topic_update); } /** - * Generated from protobuf field .centrifugal.centrifugo.api.PushUserChannelUpdateResult push_user_channel_update = 30; - * @param \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateResult $var + * Generated from protobuf field .centrifugal.centrifugo.api.DeviceTopicUpdateResult device_topic_update = 30; + * @param \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult $var * @return $this */ - public function setPushUserChannelUpdate($var) + public function setDeviceTopicUpdate($var) { - GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\PushUserChannelUpdateResult::class); - $this->push_user_channel_update = $var; + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\DeviceTopicUpdateResult::class); + $this->device_topic_update = $var; return $this; } /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult user_topic_list = 31; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult|null + */ + public function getUserTopicList() + { + return $this->user_topic_list; + } + + public function hasUserTopicList() + { + return isset($this->user_topic_list); + } + + public function clearUserTopicList() + { + unset($this->user_topic_list); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult user_topic_list = 31; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult $var + * @return $this + */ + public function setUserTopicList($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult::class); + $this->user_topic_list = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult user_topic_update = 32; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult|null + */ + public function getUserTopicUpdate() + { + return $this->user_topic_update; + } + + public function hasUserTopicUpdate() + { + return isset($this->user_topic_update); + } + + public function clearUserTopicUpdate() + { + unset($this->user_topic_update); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult user_topic_update = 32; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult $var + * @return $this + */ + public function setUserTopicUpdate($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult::class); + $this->user_topic_update = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 33; * @return \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationResult|null */ public function getSendPushNotification() @@ -1142,7 +1231,7 @@ public function clearSendPushNotification() } /** - * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 31; + * Generated from protobuf field .centrifugal.centrifugo.api.SendPushNotificationResult send_push_notification = 33; * @param \RoadRunner\Centrifugal\API\DTO\V1\SendPushNotificationResult $var * @return $this */ @@ -1154,5 +1243,101 @@ public function setSendPushNotification($var) return $this; } + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult update_push_status = 34; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult|null + */ + public function getUpdatePushStatus() + { + return $this->update_push_status; + } + + public function hasUpdatePushStatus() + { + return isset($this->update_push_status); + } + + public function clearUpdatePushStatus() + { + unset($this->update_push_status); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult update_push_status = 34; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult $var + * @return $this + */ + public function setUpdatePushStatus($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult::class); + $this->update_push_status = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult cancel_push = 35; + * @return \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult|null + */ + public function getCancelPush() + { + return $this->cancel_push; + } + + public function hasCancelPush() + { + return isset($this->cancel_push); + } + + public function clearCancelPush() + { + unset($this->cancel_push); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.CancelPushResult cancel_push = 35; + * @param \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult $var + * @return $this + */ + public function setCancelPush($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\CancelPushResult::class); + $this->cancel_push = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult rate_limit = 50; + * @return \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult|null + */ + public function getRateLimit() + { + return $this->rate_limit; + } + + public function hasRateLimit() + { + return isset($this->rate_limit); + } + + public function clearRateLimit() + { + unset($this->rate_limit); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.RateLimitResult rate_limit = 50; + * @param \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult $var + * @return $this + */ + public function setRateLimit($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\RateLimitResult::class); + $this->rate_limit = $var; + + return $this; + } + } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationRequest.php index 5fea98d..576e0c6 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationRequest.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationRequest.php @@ -21,6 +21,16 @@ class SendPushNotificationRequest extends \Google\Protobuf\Internal\Message * Generated from protobuf field .centrifugal.centrifugo.api.PushNotification notification = 2; */ protected $notification = null; + /** + * unique identifier for push notification, used for matching in Centrifugo analytics. + * + * Generated from protobuf field string uid = 3; + */ + protected $uid = ''; + /** + * Generated from protobuf field int64 send_at = 4; + */ + protected $send_at = 0; /** * Constructor. @@ -30,6 +40,9 @@ class SendPushNotificationRequest extends \Google\Protobuf\Internal\Message * * @type \RoadRunner\Centrifugal\API\DTO\V1\PushRecipient $recipient * @type \RoadRunner\Centrifugal\API\DTO\V1\PushNotification $notification + * @type string $uid + * unique identifier for push notification, used for matching in Centrifugo analytics. + * @type int|string $send_at * } */ public function __construct($data = NULL) { @@ -101,5 +114,53 @@ public function setNotification($var) return $this; } + /** + * unique identifier for push notification, used for matching in Centrifugo analytics. + * + * Generated from protobuf field string uid = 3; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * unique identifier for push notification, used for matching in Centrifugo analytics. + * + * Generated from protobuf field string uid = 3; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 send_at = 4; + * @return int|string + */ + public function getSendAt() + { + return $this->send_at; + } + + /** + * Generated from protobuf field int64 send_at = 4; + * @param int|string $var + * @return $this + */ + public function setSendAt($var) + { + GPBUtil::checkInt64($var); + $this->send_at = $var; + + return $this; + } + } diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationResult.php index dfbb41b..786831b 100644 --- a/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationResult.php +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/SendPushNotificationResult.php @@ -14,7 +14,7 @@ class SendPushNotificationResult extends \Google\Protobuf\Internal\Message { /** - * Unique identifier of notification send request (not a FCM message id). + * Unique identifier of notification send request (it's not a FCM message id). * * Generated from protobuf field string uid = 1; */ @@ -27,7 +27,7 @@ class SendPushNotificationResult extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type string $uid - * Unique identifier of notification send request (not a FCM message id). + * Unique identifier of notification send request (it's not a FCM message id). * } */ public function __construct($data = NULL) { @@ -36,7 +36,7 @@ public function __construct($data = NULL) { } /** - * Unique identifier of notification send request (not a FCM message id). + * Unique identifier of notification send request (it's not a FCM message id). * * Generated from protobuf field string uid = 1; * @return string @@ -47,7 +47,7 @@ public function getUid() } /** - * Unique identifier of notification send request (not a FCM message id). + * Unique identifier of notification send request (it's not a FCM message id). * * Generated from protobuf field string uid = 1; * @param string $var diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusRequest.php new file mode 100644 index 0000000..60a9c73 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusRequest.php @@ -0,0 +1,167 @@ +centrifugal.centrifugo.api.UpdatePushStatusRequest + */ +class UpdatePushStatusRequest extends \Google\Protobuf\Internal\Message +{ + /** + * uid of push notification (matches SendPushNotificationResult.uid) + * + * Generated from protobuf field string uid = 1; + */ + protected $uid = ''; + /** + * failed | sent | delivered | interacted + * + * Generated from protobuf field string status = 2; + */ + protected $status = ''; + /** + * Centrifugo device id. + * + * Generated from protobuf field string device_id = 3; + */ + protected $device_id = ''; + /** + * Provider issued message id. + * + * Generated from protobuf field string msg_id = 4; + */ + protected $msg_id = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $uid + * uid of push notification (matches SendPushNotificationResult.uid) + * @type string $status + * failed | sent | delivered | interacted + * @type string $device_id + * Centrifugo device id. + * @type string $msg_id + * Provider issued message id. + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * uid of push notification (matches SendPushNotificationResult.uid) + * + * Generated from protobuf field string uid = 1; + * @return string + */ + public function getUid() + { + return $this->uid; + } + + /** + * uid of push notification (matches SendPushNotificationResult.uid) + * + * Generated from protobuf field string uid = 1; + * @param string $var + * @return $this + */ + public function setUid($var) + { + GPBUtil::checkString($var, True); + $this->uid = $var; + + return $this; + } + + /** + * failed | sent | delivered | interacted + * + * Generated from protobuf field string status = 2; + * @return string + */ + public function getStatus() + { + return $this->status; + } + + /** + * failed | sent | delivered | interacted + * + * Generated from protobuf field string status = 2; + * @param string $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkString($var, True); + $this->status = $var; + + return $this; + } + + /** + * Centrifugo device id. + * + * Generated from protobuf field string device_id = 3; + * @return string + */ + public function getDeviceId() + { + return $this->device_id; + } + + /** + * Centrifugo device id. + * + * Generated from protobuf field string device_id = 3; + * @param string $var + * @return $this + */ + public function setDeviceId($var) + { + GPBUtil::checkString($var, True); + $this->device_id = $var; + + return $this; + } + + /** + * Provider issued message id. + * + * Generated from protobuf field string msg_id = 4; + * @return string + */ + public function getMsgId() + { + return $this->msg_id; + } + + /** + * Provider issued message id. + * + * Generated from protobuf field string msg_id = 4; + * @param string $var + * @return $this + */ + public function setMsgId($var) + { + GPBUtil::checkString($var, True); + $this->msg_id = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResponse.php new file mode 100644 index 0000000..cc13c5f --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.UpdatePushStatusResponse + */ +class UpdatePushStatusResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UpdatePushStatusResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UpdatePushStatusResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResult.php new file mode 100644 index 0000000..f86bcbb --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UpdatePushStatusResult.php @@ -0,0 +1,31 @@ +centrifugal.centrifugo.api.UpdatePushStatusResult + */ +class UpdatePushStatusResult extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopic.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopic.php new file mode 100644 index 0000000..b821807 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopic.php @@ -0,0 +1,112 @@ +centrifugal.centrifugo.api.UserTopic + */ +class UserTopic extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string id = 1; + */ + protected $id = ''; + /** + * Generated from protobuf field string user = 2; + */ + protected $user = ''; + /** + * Generated from protobuf field string topic = 3; + */ + protected $topic = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $id + * @type string $user + * @type string $topic + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string id = 1; + * @return string + */ + public function getId() + { + return $this->id; + } + + /** + * Generated from protobuf field string id = 1; + * @param string $var + * @return $this + */ + public function setId($var) + { + GPBUtil::checkString($var, True); + $this->id = $var; + + return $this; + } + + /** + * Generated from protobuf field string user = 2; + * @return string + */ + public function getUser() + { + return $this->user; + } + + /** + * Generated from protobuf field string user = 2; + * @param string $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkString($var, True); + $this->user = $var; + + return $this; + } + + /** + * Generated from protobuf field string topic = 3; + * @return string + */ + public function getTopic() + { + return $this->topic; + } + + /** + * Generated from protobuf field string topic = 3; + * @param string $var + * @return $this + */ + public function setTopic($var) + { + GPBUtil::checkString($var, True); + $this->topic = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicFilter.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicFilter.php new file mode 100644 index 0000000..ec2f70a --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicFilter.php @@ -0,0 +1,112 @@ +centrifugal.centrifugo.api.UserTopicFilter + */ +class UserTopicFilter extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated string users = 1; + */ + private $users; + /** + * Generated from protobuf field repeated string topics = 2; + */ + private $topics; + /** + * Generated from protobuf field string topic_prefix = 3; + */ + protected $topic_prefix = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array|\Google\Protobuf\Internal\RepeatedField $users + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * @type string $topic_prefix + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated string users = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getUsers() + { + return $this->users; + } + + /** + * Generated from protobuf field repeated string users = 1; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setUsers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->users = $arr; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 2; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 2; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + + /** + * Generated from protobuf field string topic_prefix = 3; + * @return string + */ + public function getTopicPrefix() + { + return $this->topic_prefix; + } + + /** + * Generated from protobuf field string topic_prefix = 3; + * @param string $var + * @return $this + */ + public function setTopicPrefix($var) + { + GPBUtil::checkString($var, True); + $this->topic_prefix = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListRequest.php new file mode 100644 index 0000000..3de3121 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListRequest.php @@ -0,0 +1,149 @@ +centrifugal.centrifugo.api.UserTopicListRequest + */ +class UserTopicListRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicFilter filter = 1; + */ + protected $filter = null; + /** + * Generated from protobuf field bool include_total_count = 2; + */ + protected $include_total_count = false; + /** + * Generated from protobuf field string cursor = 10; + */ + protected $cursor = ''; + /** + * Generated from protobuf field int32 limit = 11; + */ + protected $limit = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicFilter $filter + * @type bool $include_total_count + * @type string $cursor + * @type int $limit + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicFilter filter = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicFilter|null + */ + public function getFilter() + { + return $this->filter; + } + + public function hasFilter() + { + return isset($this->filter); + } + + public function clearFilter() + { + unset($this->filter); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicFilter filter = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicFilter $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicFilter::class); + $this->filter = $var; + + return $this; + } + + /** + * Generated from protobuf field bool include_total_count = 2; + * @return bool + */ + public function getIncludeTotalCount() + { + return $this->include_total_count; + } + + /** + * Generated from protobuf field bool include_total_count = 2; + * @param bool $var + * @return $this + */ + public function setIncludeTotalCount($var) + { + GPBUtil::checkBool($var); + $this->include_total_count = $var; + + return $this; + } + + /** + * Generated from protobuf field string cursor = 10; + * @return string + */ + public function getCursor() + { + return $this->cursor; + } + + /** + * Generated from protobuf field string cursor = 10; + * @param string $var + * @return $this + */ + public function setCursor($var) + { + GPBUtil::checkString($var, True); + $this->cursor = $var; + + return $this; + } + + /** + * Generated from protobuf field int32 limit = 11; + * @return int + */ + public function getLimit() + { + return $this->limit; + } + + /** + * Generated from protobuf field int32 limit = 11; + * @param int $var + * @return $this + */ + public function setLimit($var) + { + GPBUtil::checkInt32($var); + $this->limit = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResponse.php new file mode 100644 index 0000000..5b385ac --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.UserTopicListResponse + */ +class UserTopicListResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicListResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicListResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResult.php new file mode 100644 index 0000000..1359adf --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicListResult.php @@ -0,0 +1,112 @@ +centrifugal.centrifugo.api.UserTopicListResult + */ +class UserTopicListResult extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.UserTopic items = 1; + */ + private $items; + /** + * Generated from protobuf field string next_cursor = 2; + */ + protected $next_cursor = ''; + /** + * Generated from protobuf field int64 total_count = 3; + */ + protected $total_count = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type array<\RoadRunner\Centrifugal\API\DTO\V1\UserTopic>|\Google\Protobuf\Internal\RepeatedField $items + * @type string $next_cursor + * @type int|string $total_count + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.UserTopic items = 1; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getItems() + { + return $this->items; + } + + /** + * Generated from protobuf field repeated .centrifugal.centrifugo.api.UserTopic items = 1; + * @param array<\RoadRunner\Centrifugal\API\DTO\V1\UserTopic>|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setItems($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \RoadRunner\Centrifugal\API\DTO\V1\UserTopic::class); + $this->items = $arr; + + return $this; + } + + /** + * Generated from protobuf field string next_cursor = 2; + * @return string + */ + public function getNextCursor() + { + return $this->next_cursor; + } + + /** + * Generated from protobuf field string next_cursor = 2; + * @param string $var + * @return $this + */ + public function setNextCursor($var) + { + GPBUtil::checkString($var, True); + $this->next_cursor = $var; + + return $this; + } + + /** + * Generated from protobuf field int64 total_count = 3; + * @return int|string + */ + public function getTotalCount() + { + return $this->total_count; + } + + /** + * Generated from protobuf field int64 total_count = 3; + * @param int|string $var + * @return $this + */ + public function setTotalCount($var) + { + GPBUtil::checkInt64($var); + $this->total_count = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateRequest.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateRequest.php new file mode 100644 index 0000000..b9ac65c --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateRequest.php @@ -0,0 +1,119 @@ +centrifugal.centrifugo.api.UserTopicUpdateRequest + */ +class UserTopicUpdateRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field string user = 1; + */ + protected $user = ''; + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + */ + protected $op = ''; + /** + * Generated from protobuf field repeated string topics = 3; + */ + private $topics; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $user + * @type string $op + * add | remove | set + * @type array|\Google\Protobuf\Internal\RepeatedField $topics + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field string user = 1; + * @return string + */ + public function getUser() + { + return $this->user; + } + + /** + * Generated from protobuf field string user = 1; + * @param string $var + * @return $this + */ + public function setUser($var) + { + GPBUtil::checkString($var, True); + $this->user = $var; + + return $this; + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + * @return string + */ + public function getOp() + { + return $this->op; + } + + /** + * add | remove | set + * + * Generated from protobuf field string op = 2; + * @param string $var + * @return $this + */ + public function setOp($var) + { + GPBUtil::checkString($var, True); + $this->op = $var; + + return $this; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @return \Google\Protobuf\Internal\RepeatedField + */ + public function getTopics() + { + return $this->topics; + } + + /** + * Generated from protobuf field repeated string topics = 3; + * @param array|\Google\Protobuf\Internal\RepeatedField $var + * @return $this + */ + public function setTopics($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->topics = $arr; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResponse.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResponse.php new file mode 100644 index 0000000..7cf3f84 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResponse.php @@ -0,0 +1,105 @@ +centrifugal.centrifugo.api.UserTopicUpdateResponse + */ +class UserTopicUpdateResponse extends \Google\Protobuf\Internal\Message +{ + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + */ + protected $error = null; + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult result = 2; + */ + protected $result = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \RoadRunner\Centrifugal\API\DTO\V1\Error $error + * @type \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult $result + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @return \RoadRunner\Centrifugal\API\DTO\V1\Error|null + */ + public function getError() + { + return $this->error; + } + + public function hasError() + { + return isset($this->error); + } + + public function clearError() + { + unset($this->error); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.Error error = 1; + * @param \RoadRunner\Centrifugal\API\DTO\V1\Error $var + * @return $this + */ + public function setError($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\Error::class); + $this->error = $var; + + return $this; + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult result = 2; + * @return \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult|null + */ + public function getResult() + { + return $this->result; + } + + public function hasResult() + { + return isset($this->result); + } + + public function clearResult() + { + unset($this->result); + } + + /** + * Generated from protobuf field .centrifugal.centrifugo.api.UserTopicUpdateResult result = 2; + * @param \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult $var + * @return $this + */ + public function setResult($var) + { + GPBUtil::checkMessage($var, \RoadRunner\Centrifugal\API\DTO\V1\UserTopicUpdateResult::class); + $this->result = $var; + + return $this; + } + +} + diff --git a/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResult.php b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResult.php new file mode 100644 index 0000000..4872860 --- /dev/null +++ b/generated/RoadRunner/Centrifugal/API/DTO/V1/UserTopicUpdateResult.php @@ -0,0 +1,31 @@ +centrifugal.centrifugo.api.UserTopicUpdateResult + */ +class UserTopicUpdateResult extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \RoadRunner\Centrifugal\API\DTO\V1\GPBMetadata\Api::initOnce(); + parent::__construct($data); + } + +} + diff --git a/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/Disconnect.php b/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/Disconnect.php index cd72288..29af23e 100644 --- a/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/Disconnect.php +++ b/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/Disconnect.php @@ -21,10 +21,6 @@ class Disconnect extends \Google\Protobuf\Internal\Message * Generated from protobuf field string reason = 2; */ protected $reason = ''; - /** - * Generated from protobuf field bool reconnect = 3; - */ - protected $reconnect = false; /** * Constructor. @@ -34,7 +30,6 @@ class Disconnect extends \Google\Protobuf\Internal\Message * * @type int $code * @type string $reason - * @type bool $reconnect * } */ public function __construct($data = NULL) { @@ -86,27 +81,5 @@ public function setReason($var) return $this; } - /** - * Generated from protobuf field bool reconnect = 3; - * @return bool - */ - public function getReconnect() - { - return $this->reconnect; - } - - /** - * Generated from protobuf field bool reconnect = 3; - * @param bool $var - * @return $this - */ - public function setReconnect($var) - { - GPBUtil::checkBool($var); - $this->reconnect = $var; - - return $this; - } - } diff --git a/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/GPBMetadata/Proxy.php b/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/GPBMetadata/Proxy.php index d315b3d..ce67605 100644 --- a/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/GPBMetadata/Proxy.php +++ b/generated/RoadRunner/Centrifugal/Proxy/DTO/V1/GPBMetadata/Proxy.php @@ -16,13 +16,12 @@ public static function initOnce() { } $pool->internalAddGeneratedFile( ' -$ -centrifugo/proxy/v1/proxy.protocentrifugal.centrifugo.proxy"= +$ +centrifugo/proxy/v1/proxy.protocentrifugal.centrifugo.proxy"0 Disconnect code (  -reason (  - reconnect ("9 +reason ( J"9 Error code (  message (  diff --git a/generated/RoadRunner/HTTP/DTO/V1BETA1/GPBMetadata/Http.php b/generated/RoadRunner/HTTP/DTO/V1BETA1/GPBMetadata/Http.php index 8f8d03a..c815ced 100644 --- a/generated/RoadRunner/HTTP/DTO/V1BETA1/GPBMetadata/Http.php +++ b/generated/RoadRunner/HTTP/DTO/V1BETA1/GPBMetadata/Http.php @@ -17,8 +17,8 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Any::initOnce(); $pool->internalAddGeneratedFile( ' - -http/v1beta/http.proto http.v1beta" + +http/v1beta/http.proto http.v1beta" Request remote_addr (  protocol (  @@ -31,7 +31,9 @@ public static function initOnce() { attributes ( 2$.http.v1beta.Request.AttributesEntry% uploads - ( 2.http.v1beta.UploadsG + ( 2.http.v1beta.Uploads +body (  +raw_body ( G HeaderEntry key ( \' value ( 2.http.v1beta.HeaderValue:8H diff --git a/generated/RoadRunner/HTTP/DTO/V1BETA1/Request.php b/generated/RoadRunner/HTTP/DTO/V1BETA1/Request.php index 64b16a9..4f0bf0d 100644 --- a/generated/RoadRunner/HTTP/DTO/V1BETA1/Request.php +++ b/generated/RoadRunner/HTTP/DTO/V1BETA1/Request.php @@ -53,6 +53,14 @@ class Request extends \Google\Protobuf\Internal\Message * Generated from protobuf field .http.v1beta.Uploads uploads = 10; */ protected $uploads = null; + /** + * Generated from protobuf field bytes body = 11; + */ + protected $body = ''; + /** + * Generated from protobuf field bytes raw_body = 12; + */ + protected $raw_body = ''; /** * Constructor. @@ -70,6 +78,8 @@ class Request extends \Google\Protobuf\Internal\Message * @type bool $parsed * @type array|\Google\Protobuf\Internal\MapField $attributes * @type \RoadRunner\HTTP\DTO\V1BETA1\Uploads $uploads + * @type string $body + * @type string $raw_body * } */ public function __construct($data = NULL) { @@ -307,5 +317,49 @@ public function setUploads($var) return $this; } + /** + * Generated from protobuf field bytes body = 11; + * @return string + */ + public function getBody() + { + return $this->body; + } + + /** + * Generated from protobuf field bytes body = 11; + * @param string $var + * @return $this + */ + public function setBody($var) + { + GPBUtil::checkString($var, False); + $this->body = $var; + + return $this; + } + + /** + * Generated from protobuf field bytes raw_body = 12; + * @return string + */ + public function getRawBody() + { + return $this->raw_body; + } + + /** + * Generated from protobuf field bytes raw_body = 12; + * @param string $var + * @return $this + */ + public function setRawBody($var) + { + GPBUtil::checkString($var, False); + $this->raw_body = $var; + + return $this; + } + } diff --git a/generated/RoadRunner/Jobs/DTO/V1/GPBMetadata/Jobs.php b/generated/RoadRunner/Jobs/DTO/V1/GPBMetadata/Jobs.php index 82b4d99..1ceadb1 100644 --- a/generated/RoadRunner/Jobs/DTO/V1/GPBMetadata/Jobs.php +++ b/generated/RoadRunner/Jobs/DTO/V1/GPBMetadata/Jobs.php @@ -26,7 +26,7 @@ public static function initOnce() { job (  id (  -payload ( * +payload ( * headers ( 2.jobs.v1.Job.HeadersEntry! options ( 2.jobs.v1.OptionsD HeadersEntry diff --git a/generated/RoadRunner/Jobs/DTO/V1/Job.php b/generated/RoadRunner/Jobs/DTO/V1/Job.php index fe57981..9a33482 100644 --- a/generated/RoadRunner/Jobs/DTO/V1/Job.php +++ b/generated/RoadRunner/Jobs/DTO/V1/Job.php @@ -30,7 +30,7 @@ class Job extends \Google\Protobuf\Internal\Message /** * payload, might be embedded json or just byte-string * - * Generated from protobuf field string payload = 3; + * Generated from protobuf field bytes payload = 3; */ protected $payload = ''; /** @@ -124,7 +124,7 @@ public function setId($var) /** * payload, might be embedded json or just byte-string * - * Generated from protobuf field string payload = 3; + * Generated from protobuf field bytes payload = 3; * @return string */ public function getPayload() @@ -135,13 +135,13 @@ public function getPayload() /** * payload, might be embedded json or just byte-string * - * Generated from protobuf field string payload = 3; + * Generated from protobuf field bytes payload = 3; * @param string $var * @return $this */ public function setPayload($var) { - GPBUtil::checkString($var, True); + GPBUtil::checkString($var, False); $this->payload = $var; return $this; diff --git a/generated/RoadRunner/Jobs/DTO/V1/Options.php b/generated/RoadRunner/Jobs/DTO/V1/Options.php index 136b970..0fce1e3 100644 --- a/generated/RoadRunner/Jobs/DTO/V1/Options.php +++ b/generated/RoadRunner/Jobs/DTO/V1/Options.php @@ -49,8 +49,6 @@ class Options extends \Google\Protobuf\Internal\Message */ protected $offset = 0; /** - * ------------- - * * Generated from protobuf field int32 partition = 10; */ protected $partition = 0; @@ -72,7 +70,6 @@ class Options extends \Google\Protobuf\Internal\Message * @type string $metadata * @type int|string $offset * @type int $partition - * ------------- * } */ public function __construct($data = NULL) { @@ -245,8 +242,6 @@ public function setOffset($var) } /** - * ------------- - * * Generated from protobuf field int32 partition = 10; * @return int */ @@ -256,8 +251,6 @@ public function getPartition() } /** - * ------------- - * * Generated from protobuf field int32 partition = 10; * @param int $var * @return $this