CheckConsistencyRequest.php 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. namespace Google\Service\BigtableAdmin;
  18. class CheckConsistencyRequest extends \Google\Model
  19. {
  20. /**
  21. * Required. The token created using GenerateConsistencyToken for the Table.
  22. *
  23. * @var string
  24. */
  25. public $consistencyToken;
  26. protected $dataBoostReadLocalWritesType = DataBoostReadLocalWrites::class;
  27. protected $dataBoostReadLocalWritesDataType = '';
  28. protected $standardReadRemoteWritesType = StandardReadRemoteWrites::class;
  29. protected $standardReadRemoteWritesDataType = '';
  30. /**
  31. * Required. The token created using GenerateConsistencyToken for the Table.
  32. *
  33. * @param string $consistencyToken
  34. */
  35. public function setConsistencyToken($consistencyToken)
  36. {
  37. $this->consistencyToken = $consistencyToken;
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getConsistencyToken()
  43. {
  44. return $this->consistencyToken;
  45. }
  46. /**
  47. * Checks that reads using an app profile with `DataBoostIsolationReadOnly`
  48. * can see all writes committed before the token was created, but only if the
  49. * read and write target the same cluster.
  50. *
  51. * @param DataBoostReadLocalWrites $dataBoostReadLocalWrites
  52. */
  53. public function setDataBoostReadLocalWrites(DataBoostReadLocalWrites $dataBoostReadLocalWrites)
  54. {
  55. $this->dataBoostReadLocalWrites = $dataBoostReadLocalWrites;
  56. }
  57. /**
  58. * @return DataBoostReadLocalWrites
  59. */
  60. public function getDataBoostReadLocalWrites()
  61. {
  62. return $this->dataBoostReadLocalWrites;
  63. }
  64. /**
  65. * Checks that reads using an app profile with `StandardIsolation` can see all
  66. * writes committed before the token was created, even if the read and write
  67. * target different clusters.
  68. *
  69. * @param StandardReadRemoteWrites $standardReadRemoteWrites
  70. */
  71. public function setStandardReadRemoteWrites(StandardReadRemoteWrites $standardReadRemoteWrites)
  72. {
  73. $this->standardReadRemoteWrites = $standardReadRemoteWrites;
  74. }
  75. /**
  76. * @return StandardReadRemoteWrites
  77. */
  78. public function getStandardReadRemoteWrites()
  79. {
  80. return $this->standardReadRemoteWrites;
  81. }
  82. }
  83. // Adding a class alias for backwards compatibility with the previous class name.
  84. class_alias(CheckConsistencyRequest::class, 'Google_Service_BigtableAdmin_CheckConsistencyRequest');