GoogleLongrunningOperation.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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\Networkconnectivity;
  18. class GoogleLongrunningOperation extends \Google\Model
  19. {
  20. /**
  21. * @var bool
  22. */
  23. public $done;
  24. protected $errorType = GoogleRpcStatus::class;
  25. protected $errorDataType = '';
  26. /**
  27. * @var array[]
  28. */
  29. public $metadata;
  30. /**
  31. * @var string
  32. */
  33. public $name;
  34. /**
  35. * @var array[]
  36. */
  37. public $response;
  38. /**
  39. * @param bool
  40. */
  41. public function setDone($done)
  42. {
  43. $this->done = $done;
  44. }
  45. /**
  46. * @return bool
  47. */
  48. public function getDone()
  49. {
  50. return $this->done;
  51. }
  52. /**
  53. * @param GoogleRpcStatus
  54. */
  55. public function setError(GoogleRpcStatus $error)
  56. {
  57. $this->error = $error;
  58. }
  59. /**
  60. * @return GoogleRpcStatus
  61. */
  62. public function getError()
  63. {
  64. return $this->error;
  65. }
  66. /**
  67. * @param array[]
  68. */
  69. public function setMetadata($metadata)
  70. {
  71. $this->metadata = $metadata;
  72. }
  73. /**
  74. * @return array[]
  75. */
  76. public function getMetadata()
  77. {
  78. return $this->metadata;
  79. }
  80. /**
  81. * @param string
  82. */
  83. public function setName($name)
  84. {
  85. $this->name = $name;
  86. }
  87. /**
  88. * @return string
  89. */
  90. public function getName()
  91. {
  92. return $this->name;
  93. }
  94. /**
  95. * @param array[]
  96. */
  97. public function setResponse($response)
  98. {
  99. $this->response = $response;
  100. }
  101. /**
  102. * @return array[]
  103. */
  104. public function getResponse()
  105. {
  106. return $this->response;
  107. }
  108. }
  109. // Adding a class alias for backwards compatibility with the previous class name.
  110. class_alias(GoogleLongrunningOperation::class, 'Google_Service_Networkconnectivity_GoogleLongrunningOperation');