ExportToYtResponse.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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.ExportToYtResponse</code>
  10. */
  11. class ExportToYtResponse extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * operation.result = ExportToYtResult
  15. * operation.metadata = ExportToYtMetadata
  16. *
  17. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  18. */
  19. protected $operation = null;
  20. /**
  21. * Constructor.
  22. *
  23. * @param array $data {
  24. * Optional. Data for populating the Message object.
  25. *
  26. * @type \Ydb\Operations\Operation $operation
  27. * operation.result = ExportToYtResult
  28. * operation.metadata = ExportToYtMetadata
  29. * }
  30. */
  31. public function __construct($data = NULL) {
  32. \GPBMetadata\Protos\YdbExport::initOnce();
  33. parent::__construct($data);
  34. }
  35. /**
  36. * operation.result = ExportToYtResult
  37. * operation.metadata = ExportToYtMetadata
  38. *
  39. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  40. * @return \Ydb\Operations\Operation|null
  41. */
  42. public function getOperation()
  43. {
  44. return $this->operation;
  45. }
  46. public function hasOperation()
  47. {
  48. return isset($this->operation);
  49. }
  50. public function clearOperation()
  51. {
  52. unset($this->operation);
  53. }
  54. /**
  55. * operation.result = ExportToYtResult
  56. * operation.metadata = ExportToYtMetadata
  57. *
  58. * Generated from protobuf field <code>.Ydb.Operations.Operation operation = 1;</code>
  59. * @param \Ydb\Operations\Operation $var
  60. * @return $this
  61. */
  62. public function setOperation($var)
  63. {
  64. GPBUtil::checkMessage($var, \Ydb\Operations\Operation::class);
  65. $this->operation = $var;
  66. return $this;
  67. }
  68. }