GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage.php 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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\FactCheckTools;
  18. class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage extends \Google\Collection
  19. {
  20. protected $collection_key = 'claimReviewMarkups';
  21. protected $claimReviewAuthorType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor::class;
  22. protected $claimReviewAuthorDataType = '';
  23. protected $claimReviewMarkupsType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup::class;
  24. protected $claimReviewMarkupsDataType = 'array';
  25. /**
  26. * The name of this `ClaimReview` markup page resource, in the form of
  27. * `pages/{page_id}`. Except for update requests, this field is output-only
  28. * and should not be set by the user.
  29. *
  30. * @var string
  31. */
  32. public $name;
  33. /**
  34. * The URL of the page associated with this `ClaimReview` markup. While every
  35. * individual `ClaimReview` has its own URL field, semantically this is a
  36. * page-level field, and each `ClaimReview` on this page will use this value
  37. * unless individually overridden. Corresponds to `ClaimReview.url`
  38. *
  39. * @var string
  40. */
  41. public $pageUrl;
  42. /**
  43. * The date when the fact check was published. Similar to the URL,
  44. * semantically this is a page-level field, and each `ClaimReview` on this
  45. * page will contain the same value. Corresponds to
  46. * `ClaimReview.datePublished`
  47. *
  48. * @var string
  49. */
  50. public $publishDate;
  51. /**
  52. * The version ID for this markup. Except for update requests, this field is
  53. * output-only and should not be set by the user.
  54. *
  55. * @var string
  56. */
  57. public $versionId;
  58. /**
  59. * Info about the author of this claim review. Similar to the above,
  60. * semantically these are page-level fields, and each `ClaimReview` on this
  61. * page will contain the same values.
  62. *
  63. * @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor $claimReviewAuthor
  64. */
  65. public function setClaimReviewAuthor(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor $claimReviewAuthor)
  66. {
  67. $this->claimReviewAuthor = $claimReviewAuthor;
  68. }
  69. /**
  70. * @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
  71. */
  72. public function getClaimReviewAuthor()
  73. {
  74. return $this->claimReviewAuthor;
  75. }
  76. /**
  77. * A list of individual claim reviews for this page. Each item in the list
  78. * corresponds to one `ClaimReview` element.
  79. *
  80. * @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup[] $claimReviewMarkups
  81. */
  82. public function setClaimReviewMarkups($claimReviewMarkups)
  83. {
  84. $this->claimReviewMarkups = $claimReviewMarkups;
  85. }
  86. /**
  87. * @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup[]
  88. */
  89. public function getClaimReviewMarkups()
  90. {
  91. return $this->claimReviewMarkups;
  92. }
  93. /**
  94. * The name of this `ClaimReview` markup page resource, in the form of
  95. * `pages/{page_id}`. Except for update requests, this field is output-only
  96. * and should not be set by the user.
  97. *
  98. * @param string $name
  99. */
  100. public function setName($name)
  101. {
  102. $this->name = $name;
  103. }
  104. /**
  105. * @return string
  106. */
  107. public function getName()
  108. {
  109. return $this->name;
  110. }
  111. /**
  112. * The URL of the page associated with this `ClaimReview` markup. While every
  113. * individual `ClaimReview` has its own URL field, semantically this is a
  114. * page-level field, and each `ClaimReview` on this page will use this value
  115. * unless individually overridden. Corresponds to `ClaimReview.url`
  116. *
  117. * @param string $pageUrl
  118. */
  119. public function setPageUrl($pageUrl)
  120. {
  121. $this->pageUrl = $pageUrl;
  122. }
  123. /**
  124. * @return string
  125. */
  126. public function getPageUrl()
  127. {
  128. return $this->pageUrl;
  129. }
  130. /**
  131. * The date when the fact check was published. Similar to the URL,
  132. * semantically this is a page-level field, and each `ClaimReview` on this
  133. * page will contain the same value. Corresponds to
  134. * `ClaimReview.datePublished`
  135. *
  136. * @param string $publishDate
  137. */
  138. public function setPublishDate($publishDate)
  139. {
  140. $this->publishDate = $publishDate;
  141. }
  142. /**
  143. * @return string
  144. */
  145. public function getPublishDate()
  146. {
  147. return $this->publishDate;
  148. }
  149. /**
  150. * The version ID for this markup. Except for update requests, this field is
  151. * output-only and should not be set by the user.
  152. *
  153. * @param string $versionId
  154. */
  155. public function setVersionId($versionId)
  156. {
  157. $this->versionId = $versionId;
  158. }
  159. /**
  160. * @return string
  161. */
  162. public function getVersionId()
  163. {
  164. return $this->versionId;
  165. }
  166. }
  167. // Adding a class alias for backwards compatibility with the previous class name.
  168. class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage');