Item.php 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_export.proto
  4. namespace Ydb\Export\ExportToS3Settings;
  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.ExportToS3Settings.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. * Tables are exported to one or more S3 objects.
  21. *The object name begins with 'destination_prefix'.
  22. *This prefix will be followed by '/data_PartNumber', where 'PartNumber'
  23. *represents the index of the part, starting at zero.
  24. *
  25. * Generated from protobuf field <code>string destination_prefix = 2 [(.Ydb.required) = true];</code>
  26. */
  27. protected $destination_prefix = '';
  28. /**
  29. * Constructor.
  30. *
  31. * @param array $data {
  32. * Optional. Data for populating the Message object.
  33. *
  34. * @type string $source_path
  35. * Database path to a table to be exported
  36. * @type string $destination_prefix
  37. * Tables are exported to one or more S3 objects.
  38. * The object name begins with 'destination_prefix'.
  39. * This prefix will be followed by '/data_PartNumber', where 'PartNumber'
  40. * represents the index of the part, starting at zero.
  41. * }
  42. */
  43. public function __construct($data = NULL) {
  44. \GPBMetadata\Protos\YdbExport::initOnce();
  45. parent::__construct($data);
  46. }
  47. /**
  48. * Database path to a table to be exported
  49. *
  50. * Generated from protobuf field <code>string source_path = 1 [(.Ydb.required) = true];</code>
  51. * @return string
  52. */
  53. public function getSourcePath()
  54. {
  55. return $this->source_path;
  56. }
  57. /**
  58. * Database path to a table to be exported
  59. *
  60. * Generated from protobuf field <code>string source_path = 1 [(.Ydb.required) = true];</code>
  61. * @param string $var
  62. * @return $this
  63. */
  64. public function setSourcePath($var)
  65. {
  66. GPBUtil::checkString($var, True);
  67. $this->source_path = $var;
  68. return $this;
  69. }
  70. /**
  71. * Tables are exported to one or more S3 objects.
  72. *The object name begins with 'destination_prefix'.
  73. *This prefix will be followed by '/data_PartNumber', where 'PartNumber'
  74. *represents the index of the part, starting at zero.
  75. *
  76. * Generated from protobuf field <code>string destination_prefix = 2 [(.Ydb.required) = true];</code>
  77. * @return string
  78. */
  79. public function getDestinationPrefix()
  80. {
  81. return $this->destination_prefix;
  82. }
  83. /**
  84. * Tables are exported to one or more S3 objects.
  85. *The object name begins with 'destination_prefix'.
  86. *This prefix will be followed by '/data_PartNumber', where 'PartNumber'
  87. *represents the index of the part, starting at zero.
  88. *
  89. * Generated from protobuf field <code>string destination_prefix = 2 [(.Ydb.required) = true];</code>
  90. * @param string $var
  91. * @return $this
  92. */
  93. public function setDestinationPrefix($var)
  94. {
  95. GPBUtil::checkString($var, True);
  96. $this->destination_prefix = $var;
  97. return $this;
  98. }
  99. }
  100. // Adding a class alias for backwards compatibility with the previous class name.
  101. class_alias(Item::class, \Ydb\Export\ExportToS3Settings_Item::class);