Ydb.Coordination.SessionDescription */ class SessionDescription extends \Google\Protobuf\Internal\Message { /** * Session id generated by the server * * Generated from protobuf field uint64 session_id = 1; */ protected $session_id = 0; /** * Expiration timeout of the session * * Generated from protobuf field uint64 timeout_millis = 2; */ protected $timeout_millis = 0; /** * User-specified description of this session * * Generated from protobuf field string description = 3; */ protected $description = ''; /** * True if this session is currently attached to a client * * Generated from protobuf field bool attached = 4; */ protected $attached = false; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int|string $session_id * Session id generated by the server * @type int|string $timeout_millis * Expiration timeout of the session * @type string $description * User-specified description of this session * @type bool $attached * True if this session is currently attached to a client * } */ public function __construct($data = NULL) { \GPBMetadata\Protos\YdbCoordination::initOnce(); parent::__construct($data); } /** * Session id generated by the server * * Generated from protobuf field uint64 session_id = 1; * @return int|string */ public function getSessionId() { return $this->session_id; } /** * Session id generated by the server * * Generated from protobuf field uint64 session_id = 1; * @param int|string $var * @return $this */ public function setSessionId($var) { GPBUtil::checkUint64($var); $this->session_id = $var; return $this; } /** * Expiration timeout of the session * * Generated from protobuf field uint64 timeout_millis = 2; * @return int|string */ public function getTimeoutMillis() { return $this->timeout_millis; } /** * Expiration timeout of the session * * Generated from protobuf field uint64 timeout_millis = 2; * @param int|string $var * @return $this */ public function setTimeoutMillis($var) { GPBUtil::checkUint64($var); $this->timeout_millis = $var; return $this; } /** * User-specified description of this session * * Generated from protobuf field string description = 3; * @return string */ public function getDescription() { return $this->description; } /** * User-specified description of this session * * Generated from protobuf field string description = 3; * @param string $var * @return $this */ public function setDescription($var) { GPBUtil::checkString($var, True); $this->description = $var; return $this; } /** * True if this session is currently attached to a client * * Generated from protobuf field bool attached = 4; * @return bool */ public function getAttached() { return $this->attached; } /** * True if this session is currently attached to a client * * Generated from protobuf field bool attached = 4; * @param bool $var * @return $this */ public function setAttached($var) { GPBUtil::checkBool($var); $this->attached = $var; return $this; } }