DatabaseOptions.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_cms.proto
  4. namespace Ydb\Cms;
  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.Cms.DatabaseOptions</code>
  10. */
  11. class DatabaseOptions extends \Google\Protobuf\Internal\Message
  12. {
  13. /**
  14. * Do not initialize services required for transactions processing.
  15. *
  16. * Generated from protobuf field <code>bool disable_tx_service = 1;</code>
  17. */
  18. protected $disable_tx_service = false;
  19. /**
  20. * Old-style database, do not create external schemeshard for database
  21. *
  22. * Generated from protobuf field <code>bool disable_external_subdomain = 2;</code>
  23. */
  24. protected $disable_external_subdomain = false;
  25. /**
  26. * Transaction plan resolution in milliseconds
  27. *
  28. * Generated from protobuf field <code>uint32 plan_resolution = 3;</code>
  29. */
  30. protected $plan_resolution = 0;
  31. /**
  32. * Constructor.
  33. *
  34. * @param array $data {
  35. * Optional. Data for populating the Message object.
  36. *
  37. * @type bool $disable_tx_service
  38. * Do not initialize services required for transactions processing.
  39. * @type bool $disable_external_subdomain
  40. * Old-style database, do not create external schemeshard for database
  41. * @type int $plan_resolution
  42. * Transaction plan resolution in milliseconds
  43. * }
  44. */
  45. public function __construct($data = NULL) {
  46. \GPBMetadata\Protos\YdbCms::initOnce();
  47. parent::__construct($data);
  48. }
  49. /**
  50. * Do not initialize services required for transactions processing.
  51. *
  52. * Generated from protobuf field <code>bool disable_tx_service = 1;</code>
  53. * @return bool
  54. */
  55. public function getDisableTxService()
  56. {
  57. return $this->disable_tx_service;
  58. }
  59. /**
  60. * Do not initialize services required for transactions processing.
  61. *
  62. * Generated from protobuf field <code>bool disable_tx_service = 1;</code>
  63. * @param bool $var
  64. * @return $this
  65. */
  66. public function setDisableTxService($var)
  67. {
  68. GPBUtil::checkBool($var);
  69. $this->disable_tx_service = $var;
  70. return $this;
  71. }
  72. /**
  73. * Old-style database, do not create external schemeshard for database
  74. *
  75. * Generated from protobuf field <code>bool disable_external_subdomain = 2;</code>
  76. * @return bool
  77. */
  78. public function getDisableExternalSubdomain()
  79. {
  80. return $this->disable_external_subdomain;
  81. }
  82. /**
  83. * Old-style database, do not create external schemeshard for database
  84. *
  85. * Generated from protobuf field <code>bool disable_external_subdomain = 2;</code>
  86. * @param bool $var
  87. * @return $this
  88. */
  89. public function setDisableExternalSubdomain($var)
  90. {
  91. GPBUtil::checkBool($var);
  92. $this->disable_external_subdomain = $var;
  93. return $this;
  94. }
  95. /**
  96. * Transaction plan resolution in milliseconds
  97. *
  98. * Generated from protobuf field <code>uint32 plan_resolution = 3;</code>
  99. * @return int
  100. */
  101. public function getPlanResolution()
  102. {
  103. return $this->plan_resolution;
  104. }
  105. /**
  106. * Transaction plan resolution in milliseconds
  107. *
  108. * Generated from protobuf field <code>uint32 plan_resolution = 3;</code>
  109. * @param int $var
  110. * @return $this
  111. */
  112. public function setPlanResolution($var)
  113. {
  114. GPBUtil::checkUint32($var);
  115. $this->plan_resolution = $var;
  116. return $this;
  117. }
  118. }