123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- <?php
- # Generated by the protocol buffer compiler. DO NOT EDIT!
- # source: protos/ydb_coordination.proto
- namespace Ydb\Coordination\SessionRequest;
- use Google\Protobuf\Internal\GPBType;
- use Google\Protobuf\Internal\RepeatedField;
- use Google\Protobuf\Internal\GPBUtil;
- /**
- **
- * Used to delete an existing semaphore
- *
- * Generated from protobuf message <code>Ydb.Coordination.SessionRequest.DeleteSemaphore</code>
- */
- class DeleteSemaphore extends \Google\Protobuf\Internal\Message
- {
- /**
- * Client-defined request id, echoed in the response
- *
- * Generated from protobuf field <code>uint64 req_id = 1;</code>
- */
- protected $req_id = 0;
- /**
- * Name of the semaphore to delete
- *
- * Generated from protobuf field <code>string name = 2;</code>
- */
- protected $name = '';
- /**
- * Will delete semaphore even if currently acquired by sessions
- *
- * Generated from protobuf field <code>bool force = 3;</code>
- */
- protected $force = 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 delete
- * @type bool $force
- * Will delete semaphore even if currently acquired by sessions
- * }
- */
- public function __construct($data = NULL) {
- \GPBMetadata\Protos\YdbCoordination::initOnce();
- parent::__construct($data);
- }
- /**
- * Client-defined request id, echoed in the response
- *
- * Generated from protobuf field <code>uint64 req_id = 1;</code>
- * @return int|string
- */
- public function getReqId()
- {
- return $this->req_id;
- }
- /**
- * Client-defined request id, echoed in the response
- *
- * Generated from protobuf field <code>uint64 req_id = 1;</code>
- * @param int|string $var
- * @return $this
- */
- public function setReqId($var)
- {
- GPBUtil::checkUint64($var);
- $this->req_id = $var;
- return $this;
- }
- /**
- * Name of the semaphore to delete
- *
- * Generated from protobuf field <code>string name = 2;</code>
- * @return string
- */
- public function getName()
- {
- return $this->name;
- }
- /**
- * Name of the semaphore to delete
- *
- * Generated from protobuf field <code>string name = 2;</code>
- * @param string $var
- * @return $this
- */
- public function setName($var)
- {
- GPBUtil::checkString($var, True);
- $this->name = $var;
- return $this;
- }
- /**
- * Will delete semaphore even if currently acquired by sessions
- *
- * Generated from protobuf field <code>bool force = 3;</code>
- * @return bool
- */
- public function getForce()
- {
- return $this->force;
- }
- /**
- * Will delete semaphore even if currently acquired by sessions
- *
- * Generated from protobuf field <code>bool force = 3;</code>
- * @param bool $var
- * @return $this
- */
- public function setForce($var)
- {
- GPBUtil::checkBool($var);
- $this->force = $var;
- return $this;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(DeleteSemaphore::class, \Ydb\Coordination\SessionRequest_DeleteSemaphore::class);
|