ExportToYtMetadata.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_export.proto
  4. namespace Ydb\Export;
  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.Export.ExportToYtMetadata</code>
  10. */
  11. class ExportToYtMetadata extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Generated from protobuf field <code>.Ydb.Export.ExportToYtSettings settings = 1;</code>
  15. */
  16. protected $settings = null;
  17. /**
  18. * Generated from protobuf field <code>.Ydb.Export.ExportProgress.Progress progress = 2;</code>
  19. */
  20. protected $progress = 0;
  21. /**
  22. * Generated from protobuf field <code>repeated .Ydb.Export.ExportItemProgress items_progress = 3;</code>
  23. */
  24. private $items_progress;
  25. /**
  26. * Constructor.
  27. *
  28. * @param array $data {
  29. * Optional. Data for populating the Message object.
  30. *
  31. * @type \Ydb\Export\ExportToYtSettings $settings
  32. * @type int $progress
  33. * @type array<\Ydb\Export\ExportItemProgress>|\Google\Protobuf\Internal\RepeatedField $items_progress
  34. * }
  35. */
  36. public function __construct($data = NULL) {
  37. \GPBMetadata\Protos\YdbExport::initOnce();
  38. parent::__construct($data);
  39. }
  40. /**
  41. * Generated from protobuf field <code>.Ydb.Export.ExportToYtSettings settings = 1;</code>
  42. * @return \Ydb\Export\ExportToYtSettings|null
  43. */
  44. public function getSettings()
  45. {
  46. return $this->settings;
  47. }
  48. public function hasSettings()
  49. {
  50. return isset($this->settings);
  51. }
  52. public function clearSettings()
  53. {
  54. unset($this->settings);
  55. }
  56. /**
  57. * Generated from protobuf field <code>.Ydb.Export.ExportToYtSettings settings = 1;</code>
  58. * @param \Ydb\Export\ExportToYtSettings $var
  59. * @return $this
  60. */
  61. public function setSettings($var)
  62. {
  63. GPBUtil::checkMessage($var, \Ydb\Export\ExportToYtSettings::class);
  64. $this->settings = $var;
  65. return $this;
  66. }
  67. /**
  68. * Generated from protobuf field <code>.Ydb.Export.ExportProgress.Progress progress = 2;</code>
  69. * @return int
  70. */
  71. public function getProgress()
  72. {
  73. return $this->progress;
  74. }
  75. /**
  76. * Generated from protobuf field <code>.Ydb.Export.ExportProgress.Progress progress = 2;</code>
  77. * @param int $var
  78. * @return $this
  79. */
  80. public function setProgress($var)
  81. {
  82. GPBUtil::checkEnum($var, \Ydb\Export\ExportProgress\Progress::class);
  83. $this->progress = $var;
  84. return $this;
  85. }
  86. /**
  87. * Generated from protobuf field <code>repeated .Ydb.Export.ExportItemProgress items_progress = 3;</code>
  88. * @return \Google\Protobuf\Internal\RepeatedField
  89. */
  90. public function getItemsProgress()
  91. {
  92. return $this->items_progress;
  93. }
  94. /**
  95. * Generated from protobuf field <code>repeated .Ydb.Export.ExportItemProgress items_progress = 3;</code>
  96. * @param array<\Ydb\Export\ExportItemProgress>|\Google\Protobuf\Internal\RepeatedField $var
  97. * @return $this
  98. */
  99. public function setItemsProgress($var)
  100. {
  101. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Export\ExportItemProgress::class);
  102. $this->items_progress = $arr;
  103. return $this;
  104. }
  105. }