DatabaseCharacterSet.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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\OracleDatabase;
  18. class DatabaseCharacterSet extends \Google\Model
  19. {
  20. /**
  21. * Character set type is not specified.
  22. */
  23. public const CHARACTER_SET_TYPE_CHARACTER_SET_TYPE_UNSPECIFIED = 'CHARACTER_SET_TYPE_UNSPECIFIED';
  24. /**
  25. * Character set type is set to database.
  26. */
  27. public const CHARACTER_SET_TYPE_DATABASE = 'DATABASE';
  28. /**
  29. * Character set type is set to national.
  30. */
  31. public const CHARACTER_SET_TYPE_NATIONAL = 'NATIONAL';
  32. /**
  33. * Output only. The character set name for the Database which is the ID in the
  34. * resource name.
  35. *
  36. * @var string
  37. */
  38. public $characterSet;
  39. /**
  40. * Output only. The character set type for the Database.
  41. *
  42. * @var string
  43. */
  44. public $characterSetType;
  45. /**
  46. * Identifier. The name of the Database Character Set resource in the
  47. * following format: projects/{project}/locations/{region}/databaseCharacterSe
  48. * ts/{database_character_set}
  49. *
  50. * @var string
  51. */
  52. public $name;
  53. /**
  54. * Output only. The character set name for the Database which is the ID in the
  55. * resource name.
  56. *
  57. * @param string $characterSet
  58. */
  59. public function setCharacterSet($characterSet)
  60. {
  61. $this->characterSet = $characterSet;
  62. }
  63. /**
  64. * @return string
  65. */
  66. public function getCharacterSet()
  67. {
  68. return $this->characterSet;
  69. }
  70. /**
  71. * Output only. The character set type for the Database.
  72. *
  73. * Accepted values: CHARACTER_SET_TYPE_UNSPECIFIED, DATABASE, NATIONAL
  74. *
  75. * @param self::CHARACTER_SET_TYPE_* $characterSetType
  76. */
  77. public function setCharacterSetType($characterSetType)
  78. {
  79. $this->characterSetType = $characterSetType;
  80. }
  81. /**
  82. * @return self::CHARACTER_SET_TYPE_*
  83. */
  84. public function getCharacterSetType()
  85. {
  86. return $this->characterSetType;
  87. }
  88. /**
  89. * Identifier. The name of the Database Character Set resource in the
  90. * following format: projects/{project}/locations/{region}/databaseCharacterSe
  91. * ts/{database_character_set}
  92. *
  93. * @param string $name
  94. */
  95. public function setName($name)
  96. {
  97. $this->name = $name;
  98. }
  99. /**
  100. * @return string
  101. */
  102. public function getName()
  103. {
  104. return $this->name;
  105. }
  106. }
  107. // Adding a class alias for backwards compatibility with the previous class name.
  108. class_alias(DatabaseCharacterSet::class, 'Google_Service_OracleDatabase_DatabaseCharacterSet');