UpdateTokenRequest.php 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_topic.proto
  4. namespace Ydb\Topic;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * In-session reauthentication and reauthorization, lets user increase session lifetime.
  10. * Client should wait for UpdateTokenResponse before sending next UpdateTokenRequest.
  11. *
  12. * Generated from protobuf message <code>Ydb.Topic.UpdateTokenRequest</code>
  13. */
  14. class UpdateTokenRequest extends \Google\Protobuf\Internal\Message
  15. {
  16. /**
  17. * Generated from protobuf field <code>string token = 1;</code>
  18. */
  19. protected $token = '';
  20. /**
  21. * Constructor.
  22. *
  23. * @param array $data {
  24. * Optional. Data for populating the Message object.
  25. *
  26. * @type string $token
  27. * }
  28. */
  29. public function __construct($data = NULL) {
  30. \GPBMetadata\Protos\YdbTopic::initOnce();
  31. parent::__construct($data);
  32. }
  33. /**
  34. * Generated from protobuf field <code>string token = 1;</code>
  35. * @return string
  36. */
  37. public function getToken()
  38. {
  39. return $this->token;
  40. }
  41. /**
  42. * Generated from protobuf field <code>string token = 1;</code>
  43. * @param string $var
  44. * @return $this
  45. */
  46. public function setToken($var)
  47. {
  48. GPBUtil::checkString($var, True);
  49. $this->token = $var;
  50. return $this;
  51. }
  52. }