Ydb.Coordination.SessionRequest.DescribeSemaphore */ class DescribeSemaphore extends \Google\Protobuf\Internal\Message { /** * Client-defined request id, echoed in the response * * Generated from protobuf field uint64 req_id = 1; */ protected $req_id = 0; /** * Name of the semaphore to describe * * Generated from protobuf field string name = 2; */ protected $name = ''; /** * Response will include owners list if true * * Generated from protobuf field bool include_owners = 3; */ protected $include_owners = false; /** * Response will include waiters list if true * * Generated from protobuf field bool include_waiters = 4; */ protected $include_waiters = false; /** * Watch for changes in semaphore data * * Generated from protobuf field bool watch_data = 5; */ protected $watch_data = false; /** * Watch for changes in semaphore owners (including owners data) * * Generated from protobuf field bool watch_owners = 6; */ protected $watch_owners = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $req_id * Client-defined request id, echoed in the response * @type string $name * Name of the semaphore to describe * @type bool $include_owners * Response will include owners list if true * @type bool $include_waiters * Response will include waiters list if true * @type bool $watch_data * Watch for changes in semaphore data * @type bool $watch_owners * Watch for changes in semaphore owners (including owners data) * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCoordination::initOnce(); parent::__construct($data); } /** * Client-defined request id, echoed in the response * * Generated from protobuf field uint64 req_id = 1; * @return int|string */ public function getReqId() { return $this->req_id; } /** * Client-defined request id, echoed in the response * * Generated from protobuf field uint64 req_id = 1; * @param int|string $var * @return $this */ public function setReqId($var) { GPBUtil::checkUint64($var); $this->req_id = $var; return $this; } /** * Name of the semaphore to describe * * Generated from protobuf field string name = 2; * @return string */ public function getName() { return $this->name; } /** * Name of the semaphore to describe * * Generated from protobuf field string name = 2; * @param string $var * @return $this */ public function setName($var) { GPBUtil::checkString($var, True); $this->name = $var; return $this; } /** * Response will include owners list if true * * Generated from protobuf field bool include_owners = 3; * @return bool */ public function getIncludeOwners() { return $this->include_owners; } /** * Response will include owners list if true * * Generated from protobuf field bool include_owners = 3; * @param bool $var * @return $this */ public function setIncludeOwners($var) { GPBUtil::checkBool($var); $this->include_owners = $var; return $this; } /** * Response will include waiters list if true * * Generated from protobuf field bool include_waiters = 4; * @return bool */ public function getIncludeWaiters() { return $this->include_waiters; } /** * Response will include waiters list if true * * Generated from protobuf field bool include_waiters = 4; * @param bool $var * @return $this */ public function setIncludeWaiters($var) { GPBUtil::checkBool($var); $this->include_waiters = $var; return $this; } /** * Watch for changes in semaphore data * * Generated from protobuf field bool watch_data = 5; * @return bool */ public function getWatchData() { return $this->watch_data; } /** * Watch for changes in semaphore data * * Generated from protobuf field bool watch_data = 5; * @param bool $var * @return $this */ public function setWatchData($var) { GPBUtil::checkBool($var); $this->watch_data = $var; return $this; } /** * Watch for changes in semaphore owners (including owners data) * * Generated from protobuf field bool watch_owners = 6; * @return bool */ public function getWatchOwners() { return $this->watch_owners; } /** * Watch for changes in semaphore owners (including owners data) * * Generated from protobuf field bool watch_owners = 6; * @param bool $var * @return $this */ public function setWatchOwners($var) { GPBUtil::checkBool($var); $this->watch_owners = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(DescribeSemaphore::class, \Ydb\Coordination\SessionRequest_DescribeSemaphore::class);