Item.php 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_export.proto
  4. namespace Ydb\Export\ExportToYtSettings;
  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.ExportToYtSettings.Item</code>
  10. */
  11. class Item extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Database path to a table to be exported
  15. *
  16. * Generated from protobuf field <code>string source_path = 1 [(.Ydb.required) = true];</code>
  17. */
  18. protected $source_path = '';
  19. /**
  20. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  21. */
  22. protected $destination_path = '';
  23. /**
  24. * Constructor.
  25. *
  26. * @param array $data {
  27. * Optional. Data for populating the Message object.
  28. *
  29. * @type string $source_path
  30. * Database path to a table to be exported
  31. * @type string $destination_path
  32. * }
  33. */
  34. public function __construct($data = NULL) {
  35. \GPBMetadata\Protos\YdbExport::initOnce();
  36. parent::__construct($data);
  37. }
  38. /**
  39. * Database path to a table to be exported
  40. *
  41. * Generated from protobuf field <code>string source_path = 1 [(.Ydb.required) = true];</code>
  42. * @return string
  43. */
  44. public function getSourcePath()
  45. {
  46. return $this->source_path;
  47. }
  48. /**
  49. * Database path to a table to be exported
  50. *
  51. * Generated from protobuf field <code>string source_path = 1 [(.Ydb.required) = true];</code>
  52. * @param string $var
  53. * @return $this
  54. */
  55. public function setSourcePath($var)
  56. {
  57. GPBUtil::checkString($var, True);
  58. $this->source_path = $var;
  59. return $this;
  60. }
  61. /**
  62. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  63. * @return string
  64. */
  65. public function getDestinationPath()
  66. {
  67. return $this->destination_path;
  68. }
  69. /**
  70. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  71. * @param string $var
  72. * @return $this
  73. */
  74. public function setDestinationPath($var)
  75. {
  76. GPBUtil::checkString($var, True);
  77. $this->destination_path = $var;
  78. return $this;
  79. }
  80. }
  81. // Adding a class alias for backwards compatibility with the previous class name.
  82. class_alias(Item::class, \Ydb\Export\ExportToYtSettings_Item::class);