| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <?php
- /*
- * Copyright 2014 Google Inc.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- namespace Google\Service\FirebaseManagement;
- class StatusProto extends \Google\Model
- {
- /**
- * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
- * int32 canonical_code = 6;
- *
- * @var int
- */
- public $canonicalCode;
- /**
- * Numeric code drawn from the space specified below. Often, this is the
- * canonical error space, and code is drawn from google3/util/task/codes.proto
- * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
- * int32 code = 1;
- *
- * @var int
- */
- public $code;
- /**
- * Detail message copybara:strip_begin(b/383363683)
- * copybara:strip_end_and_replace optional string message = 3;
- *
- * @var string
- */
- public $message;
- protected $messageSetType = MessageSet::class;
- protected $messageSetDataType = '';
- /**
- * copybara:strip_begin(b/383363683) Space to which this status belongs
- * copybara:strip_end_and_replace optional string space = 2; // Space to which
- * this status belongs
- *
- * @var string
- */
- public $space;
- /**
- * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
- * int32 canonical_code = 6;
- *
- * @param int $canonicalCode
- */
- public function setCanonicalCode($canonicalCode)
- {
- $this->canonicalCode = $canonicalCode;
- }
- /**
- * @return int
- */
- public function getCanonicalCode()
- {
- return $this->canonicalCode;
- }
- /**
- * Numeric code drawn from the space specified below. Often, this is the
- * canonical error space, and code is drawn from google3/util/task/codes.proto
- * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
- * int32 code = 1;
- *
- * @param int $code
- */
- public function setCode($code)
- {
- $this->code = $code;
- }
- /**
- * @return int
- */
- public function getCode()
- {
- return $this->code;
- }
- /**
- * Detail message copybara:strip_begin(b/383363683)
- * copybara:strip_end_and_replace optional string message = 3;
- *
- * @param string $message
- */
- public function setMessage($message)
- {
- $this->message = $message;
- }
- /**
- * @return string
- */
- public function getMessage()
- {
- return $this->message;
- }
- /**
- * message_set associates an arbitrary proto message with the status.
- * copybara:strip_begin(b/383363683) copybara:strip_end_and_replace optional
- * proto2.bridge.MessageSet message_set = 5;
- *
- * @param MessageSet $messageSet
- */
- public function setMessageSet(MessageSet $messageSet)
- {
- $this->messageSet = $messageSet;
- }
- /**
- * @return MessageSet
- */
- public function getMessageSet()
- {
- return $this->messageSet;
- }
- /**
- * copybara:strip_begin(b/383363683) Space to which this status belongs
- * copybara:strip_end_and_replace optional string space = 2; // Space to which
- * this status belongs
- *
- * @param string $space
- */
- public function setSpace($space)
- {
- $this->space = $space;
- }
- /**
- * @return string
- */
- public function getSpace()
- {
- return $this->space;
- }
- }
- // Adding a class alias for backwards compatibility with the previous class name.
- class_alias(StatusProto::class, 'Google_Service_FirebaseManagement_StatusProto');
|