Item.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_import.proto
  4. namespace Ydb\Import\ImportFromS3Settings;
  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.Import.ImportFromS3Settings.Item</code>
  10. */
  11. class Item extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * YDB tables in S3 are stored in one or more objects (see ydb_export.proto).
  15. *The object name begins with 'source_prefix'.
  16. *This prefix is followed by:
  17. * '/data_PartNumber', where 'PartNumber' represents the index of the part, starting at zero;
  18. * '/scheme.pb' - object with information about scheme, indexes, etc.
  19. *
  20. * Generated from protobuf field <code>string source_prefix = 1 [(.Ydb.required) = true];</code>
  21. */
  22. protected $source_prefix = '';
  23. /**
  24. * Database path to a table to import to.
  25. *
  26. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  27. */
  28. protected $destination_path = '';
  29. /**
  30. * Constructor.
  31. *
  32. * @param array $data {
  33. * Optional. Data for populating the Message object.
  34. *
  35. * @type string $source_prefix
  36. * YDB tables in S3 are stored in one or more objects (see ydb_export.proto).
  37. * The object name begins with 'source_prefix'.
  38. * This prefix is followed by:
  39. * '/data_PartNumber', where 'PartNumber' represents the index of the part, starting at zero;
  40. * '/scheme.pb' - object with information about scheme, indexes, etc.
  41. * @type string $destination_path
  42. * Database path to a table to import to.
  43. * }
  44. */
  45. public function __construct($data = NULL) {
  46. \GPBMetadata\Protos\YdbImport::initOnce();
  47. parent::__construct($data);
  48. }
  49. /**
  50. * YDB tables in S3 are stored in one or more objects (see ydb_export.proto).
  51. *The object name begins with 'source_prefix'.
  52. *This prefix is followed by:
  53. * '/data_PartNumber', where 'PartNumber' represents the index of the part, starting at zero;
  54. * '/scheme.pb' - object with information about scheme, indexes, etc.
  55. *
  56. * Generated from protobuf field <code>string source_prefix = 1 [(.Ydb.required) = true];</code>
  57. * @return string
  58. */
  59. public function getSourcePrefix()
  60. {
  61. return $this->source_prefix;
  62. }
  63. /**
  64. * YDB tables in S3 are stored in one or more objects (see ydb_export.proto).
  65. *The object name begins with 'source_prefix'.
  66. *This prefix is followed by:
  67. * '/data_PartNumber', where 'PartNumber' represents the index of the part, starting at zero;
  68. * '/scheme.pb' - object with information about scheme, indexes, etc.
  69. *
  70. * Generated from protobuf field <code>string source_prefix = 1 [(.Ydb.required) = true];</code>
  71. * @param string $var
  72. * @return $this
  73. */
  74. public function setSourcePrefix($var)
  75. {
  76. GPBUtil::checkString($var, True);
  77. $this->source_prefix = $var;
  78. return $this;
  79. }
  80. /**
  81. * Database path to a table to import to.
  82. *
  83. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  84. * @return string
  85. */
  86. public function getDestinationPath()
  87. {
  88. return $this->destination_path;
  89. }
  90. /**
  91. * Database path to a table to import to.
  92. *
  93. * Generated from protobuf field <code>string destination_path = 2 [(.Ydb.required) = true];</code>
  94. * @param string $var
  95. * @return $this
  96. */
  97. public function setDestinationPath($var)
  98. {
  99. GPBUtil::checkString($var, True);
  100. $this->destination_path = $var;
  101. return $this;
  102. }
  103. }
  104. // Adding a class alias for backwards compatibility with the previous class name.
  105. class_alias(Item::class, \Ydb\Import\ImportFromS3Settings_Item::class);