ListOperationsResponse.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_operation.proto
  4. namespace Ydb\Operations;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Generated from protobuf message <code>Ydb.Operations.ListOperationsResponse</code>
  10. */
  11. class ListOperationsResponse extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 1;</code>
  15. */
  16. protected $status = 0;
  17. /**
  18. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 2;</code>
  19. */
  20. private $issues;
  21. /**
  22. * Generated from protobuf field <code>repeated .Ydb.Operations.Operation operations = 3;</code>
  23. */
  24. private $operations;
  25. /**
  26. * Generated from protobuf field <code>string next_page_token = 4;</code>
  27. */
  28. protected $next_page_token = '';
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type int $status
  36. * @type array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $issues
  37. * @type array<\Ydb\Operations\Operation>|\Google\Protobuf\Internal\RepeatedField $operations
  38. * @type string $next_page_token
  39. * }
  40. */
  41. public function __construct($data = NULL) {
  42. \GPBMetadata\Protos\YdbOperation::initOnce();
  43. parent::__construct($data);
  44. }
  45. /**
  46. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 1;</code>
  47. * @return int
  48. */
  49. public function getStatus()
  50. {
  51. return $this->status;
  52. }
  53. /**
  54. * Generated from protobuf field <code>.Ydb.StatusIds.StatusCode status = 1;</code>
  55. * @param int $var
  56. * @return $this
  57. */
  58. public function setStatus($var)
  59. {
  60. GPBUtil::checkEnum($var, \Ydb\StatusIds\StatusCode::class);
  61. $this->status = $var;
  62. return $this;
  63. }
  64. /**
  65. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 2;</code>
  66. * @return \Google\Protobuf\Internal\RepeatedField
  67. */
  68. public function getIssues()
  69. {
  70. return $this->issues;
  71. }
  72. /**
  73. * Generated from protobuf field <code>repeated .Ydb.Issue.IssueMessage issues = 2;</code>
  74. * @param array<\Ydb\Issue\IssueMessage>|\Google\Protobuf\Internal\RepeatedField $var
  75. * @return $this
  76. */
  77. public function setIssues($var)
  78. {
  79. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Issue\IssueMessage::class);
  80. $this->issues = $arr;
  81. return $this;
  82. }
  83. /**
  84. * Generated from protobuf field <code>repeated .Ydb.Operations.Operation operations = 3;</code>
  85. * @return \Google\Protobuf\Internal\RepeatedField
  86. */
  87. public function getOperations()
  88. {
  89. return $this->operations;
  90. }
  91. /**
  92. * Generated from protobuf field <code>repeated .Ydb.Operations.Operation operations = 3;</code>
  93. * @param array<\Ydb\Operations\Operation>|\Google\Protobuf\Internal\RepeatedField $var
  94. * @return $this
  95. */
  96. public function setOperations($var)
  97. {
  98. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Operations\Operation::class);
  99. $this->operations = $arr;
  100. return $this;
  101. }
  102. /**
  103. * Generated from protobuf field <code>string next_page_token = 4;</code>
  104. * @return string
  105. */
  106. public function getNextPageToken()
  107. {
  108. return $this->next_page_token;
  109. }
  110. /**
  111. * Generated from protobuf field <code>string next_page_token = 4;</code>
  112. * @param string $var
  113. * @return $this
  114. */
  115. public function setNextPageToken($var)
  116. {
  117. GPBUtil::checkString($var, True);
  118. $this->next_page_token = $var;
  119. return $this;
  120. }
  121. }