StatusProto.php 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  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\FirebaseManagement;
  18. class StatusProto extends \Google\Model
  19. {
  20. /**
  21. * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
  22. * int32 canonical_code = 6;
  23. *
  24. * @var int
  25. */
  26. public $canonicalCode;
  27. /**
  28. * Numeric code drawn from the space specified below. Often, this is the
  29. * canonical error space, and code is drawn from google3/util/task/codes.proto
  30. * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
  31. * int32 code = 1;
  32. *
  33. * @var int
  34. */
  35. public $code;
  36. /**
  37. * Detail message copybara:strip_begin(b/383363683)
  38. * copybara:strip_end_and_replace optional string message = 3;
  39. *
  40. * @var string
  41. */
  42. public $message;
  43. protected $messageSetType = MessageSet::class;
  44. protected $messageSetDataType = '';
  45. /**
  46. * copybara:strip_begin(b/383363683) Space to which this status belongs
  47. * copybara:strip_end_and_replace optional string space = 2; // Space to which
  48. * this status belongs
  49. *
  50. * @var string
  51. */
  52. public $space;
  53. /**
  54. * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
  55. * int32 canonical_code = 6;
  56. *
  57. * @param int $canonicalCode
  58. */
  59. public function setCanonicalCode($canonicalCode)
  60. {
  61. $this->canonicalCode = $canonicalCode;
  62. }
  63. /**
  64. * @return int
  65. */
  66. public function getCanonicalCode()
  67. {
  68. return $this->canonicalCode;
  69. }
  70. /**
  71. * Numeric code drawn from the space specified below. Often, this is the
  72. * canonical error space, and code is drawn from google3/util/task/codes.proto
  73. * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
  74. * int32 code = 1;
  75. *
  76. * @param int $code
  77. */
  78. public function setCode($code)
  79. {
  80. $this->code = $code;
  81. }
  82. /**
  83. * @return int
  84. */
  85. public function getCode()
  86. {
  87. return $this->code;
  88. }
  89. /**
  90. * Detail message copybara:strip_begin(b/383363683)
  91. * copybara:strip_end_and_replace optional string message = 3;
  92. *
  93. * @param string $message
  94. */
  95. public function setMessage($message)
  96. {
  97. $this->message = $message;
  98. }
  99. /**
  100. * @return string
  101. */
  102. public function getMessage()
  103. {
  104. return $this->message;
  105. }
  106. /**
  107. * message_set associates an arbitrary proto message with the status.
  108. * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
  109. * proto2.bridge.MessageSet message_set = 5;
  110. *
  111. * @param MessageSet $messageSet
  112. */
  113. public function setMessageSet(MessageSet $messageSet)
  114. {
  115. $this->messageSet = $messageSet;
  116. }
  117. /**
  118. * @return MessageSet
  119. */
  120. public function getMessageSet()
  121. {
  122. return $this->messageSet;
  123. }
  124. /**
  125. * copybara:strip_begin(b/383363683) Space to which this status belongs
  126. * copybara:strip_end_and_replace optional string space = 2; // Space to which
  127. * this status belongs
  128. *
  129. * @param string $space
  130. */
  131. public function setSpace($space)
  132. {
  133. $this->space = $space;
  134. }
  135. /**
  136. * @return string
  137. */
  138. public function getSpace()
  139. {
  140. return $this->space;
  141. }
  142. }
  143. // Adding a class alias for backwards compatibility with the previous class name.
  144. class_alias(StatusProto::class, 'Google_Service_FirebaseManagement_StatusProto');