ModifyPermissionsRequest.php 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: protos/ydb_scheme.proto
  4. namespace Ydb\Scheme;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\RepeatedField;
  7. use Google\Protobuf\Internal\GPBUtil;
  8. /**
  9. * Modify permissions of given object
  10. *
  11. * Generated from protobuf message <code>Ydb.Scheme.ModifyPermissionsRequest</code>
  12. */
  13. class ModifyPermissionsRequest extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  17. */
  18. protected $operation_params = null;
  19. /**
  20. * Generated from protobuf field <code>string path = 2;</code>
  21. */
  22. protected $path = '';
  23. /**
  24. * Generated from protobuf field <code>repeated .Ydb.Scheme.PermissionsAction actions = 3;</code>
  25. */
  26. private $actions;
  27. /**
  28. * Clear all permissions on the object for all subjects
  29. *
  30. * Generated from protobuf field <code>bool clear_permissions = 4;</code>
  31. */
  32. protected $clear_permissions = false;
  33. protected $inheritance;
  34. /**
  35. * Constructor.
  36. *
  37. * @param array $data {
  38. * Optional. Data for populating the Message object.
  39. *
  40. * @type \Ydb\Operations\OperationParams $operation_params
  41. * @type string $path
  42. * @type array<\Ydb\Scheme\PermissionsAction>|\Google\Protobuf\Internal\RepeatedField $actions
  43. * @type bool $clear_permissions
  44. * Clear all permissions on the object for all subjects
  45. * @type bool $interrupt_inheritance
  46. * }
  47. */
  48. public function __construct($data = NULL) {
  49. \GPBMetadata\Protos\YdbScheme::initOnce();
  50. parent::__construct($data);
  51. }
  52. /**
  53. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  54. * @return \Ydb\Operations\OperationParams|null
  55. */
  56. public function getOperationParams()
  57. {
  58. return $this->operation_params;
  59. }
  60. public function hasOperationParams()
  61. {
  62. return isset($this->operation_params);
  63. }
  64. public function clearOperationParams()
  65. {
  66. unset($this->operation_params);
  67. }
  68. /**
  69. * Generated from protobuf field <code>.Ydb.Operations.OperationParams operation_params = 1;</code>
  70. * @param \Ydb\Operations\OperationParams $var
  71. * @return $this
  72. */
  73. public function setOperationParams($var)
  74. {
  75. GPBUtil::checkMessage($var, \Ydb\Operations\OperationParams::class);
  76. $this->operation_params = $var;
  77. return $this;
  78. }
  79. /**
  80. * Generated from protobuf field <code>string path = 2;</code>
  81. * @return string
  82. */
  83. public function getPath()
  84. {
  85. return $this->path;
  86. }
  87. /**
  88. * Generated from protobuf field <code>string path = 2;</code>
  89. * @param string $var
  90. * @return $this
  91. */
  92. public function setPath($var)
  93. {
  94. GPBUtil::checkString($var, True);
  95. $this->path = $var;
  96. return $this;
  97. }
  98. /**
  99. * Generated from protobuf field <code>repeated .Ydb.Scheme.PermissionsAction actions = 3;</code>
  100. * @return \Google\Protobuf\Internal\RepeatedField
  101. */
  102. public function getActions()
  103. {
  104. return $this->actions;
  105. }
  106. /**
  107. * Generated from protobuf field <code>repeated .Ydb.Scheme.PermissionsAction actions = 3;</code>
  108. * @param array<\Ydb\Scheme\PermissionsAction>|\Google\Protobuf\Internal\RepeatedField $var
  109. * @return $this
  110. */
  111. public function setActions($var)
  112. {
  113. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Ydb\Scheme\PermissionsAction::class);
  114. $this->actions = $arr;
  115. return $this;
  116. }
  117. /**
  118. * Clear all permissions on the object for all subjects
  119. *
  120. * Generated from protobuf field <code>bool clear_permissions = 4;</code>
  121. * @return bool
  122. */
  123. public function getClearPermissions()
  124. {
  125. return $this->clear_permissions;
  126. }
  127. /**
  128. * Clear all permissions on the object for all subjects
  129. *
  130. * Generated from protobuf field <code>bool clear_permissions = 4;</code>
  131. * @param bool $var
  132. * @return $this
  133. */
  134. public function setClearPermissions($var)
  135. {
  136. GPBUtil::checkBool($var);
  137. $this->clear_permissions = $var;
  138. return $this;
  139. }
  140. /**
  141. * Generated from protobuf field <code>bool interrupt_inheritance = 5;</code>
  142. * @return bool
  143. */
  144. public function getInterruptInheritance()
  145. {
  146. return $this->readOneof(5);
  147. }
  148. public function hasInterruptInheritance()
  149. {
  150. return $this->hasOneof(5);
  151. }
  152. /**
  153. * Generated from protobuf field <code>bool interrupt_inheritance = 5;</code>
  154. * @param bool $var
  155. * @return $this
  156. */
  157. public function setInterruptInheritance($var)
  158. {
  159. GPBUtil::checkBool($var);
  160. $this->writeOneof(5, $var);
  161. return $this;
  162. }
  163. /**
  164. * @return string
  165. */
  166. public function getInheritance()
  167. {
  168. return $this->whichOneof("inheritance");
  169. }
  170. }