Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,97 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1Claim extends \Google\Collection
{
protected $collection_key = 'claimReview';
/**
* @var string
*/
public $claimDate;
protected $claimReviewType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview::class;
protected $claimReviewDataType = 'array';
/**
* @var string
*/
public $claimant;
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setClaimDate($claimDate)
{
$this->claimDate = $claimDate;
}
/**
* @return string
*/
public function getClaimDate()
{
return $this->claimDate;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview[]
*/
public function setClaimReview($claimReview)
{
$this->claimReview = $claimReview;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview[]
*/
public function getClaimReview()
{
return $this->claimReview;
}
/**
* @param string
*/
public function setClaimant($claimant)
{
$this->claimant = $claimant;
}
/**
* @return string
*/
public function getClaimant()
{
return $this->claimant;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1Claim::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1Claim');

View File

@@ -0,0 +1,98 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor extends \Google\Model
{
/**
* @var string
*/
public $imageUrl;
/**
* @var string
*/
public $jobTitle;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $sameAs;
/**
* @param string
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param string
*/
public function setJobTitle($jobTitle)
{
$this->jobTitle = $jobTitle;
}
/**
* @return string
*/
public function getJobTitle()
{
return $this->jobTitle;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSameAs($sameAs)
{
$this->sameAs = $sameAs;
}
/**
* @return string
*/
public function getSameAs()
{
return $this->sameAs;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor');

View File

@@ -0,0 +1,134 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating extends \Google\Model
{
/**
* @var int
*/
public $bestRating;
/**
* @var string
*/
public $imageUrl;
/**
* @var string
*/
public $ratingExplanation;
/**
* @var int
*/
public $ratingValue;
/**
* @var string
*/
public $textualRating;
/**
* @var int
*/
public $worstRating;
/**
* @param int
*/
public function setBestRating($bestRating)
{
$this->bestRating = $bestRating;
}
/**
* @return int
*/
public function getBestRating()
{
return $this->bestRating;
}
/**
* @param string
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param string
*/
public function setRatingExplanation($ratingExplanation)
{
$this->ratingExplanation = $ratingExplanation;
}
/**
* @return string
*/
public function getRatingExplanation()
{
return $this->ratingExplanation;
}
/**
* @param int
*/
public function setRatingValue($ratingValue)
{
$this->ratingValue = $ratingValue;
}
/**
* @return int
*/
public function getRatingValue()
{
return $this->ratingValue;
}
/**
* @param string
*/
public function setTextualRating($textualRating)
{
$this->textualRating = $textualRating;
}
/**
* @return string
*/
public function getTextualRating()
{
return $this->textualRating;
}
/**
* @param int
*/
public function setWorstRating($worstRating)
{
$this->worstRating = $worstRating;
}
/**
* @return int
*/
public function getWorstRating()
{
return $this->worstRating;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating');

View File

@@ -0,0 +1,132 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview extends \Google\Model
{
/**
* @var string
*/
public $languageCode;
protected $publisherType = GoogleFactcheckingFactchecktoolsV1alpha1Publisher::class;
protected $publisherDataType = '';
/**
* @var string
*/
public $reviewDate;
/**
* @var string
*/
public $textualRating;
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $url;
/**
* @param string
*/
public function setLanguageCode($languageCode)
{
$this->languageCode = $languageCode;
}
/**
* @return string
*/
public function getLanguageCode()
{
return $this->languageCode;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1Publisher
*/
public function setPublisher(GoogleFactcheckingFactchecktoolsV1alpha1Publisher $publisher)
{
$this->publisher = $publisher;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1Publisher
*/
public function getPublisher()
{
return $this->publisher;
}
/**
* @param string
*/
public function setReviewDate($reviewDate)
{
$this->reviewDate = $reviewDate;
}
/**
* @return string
*/
public function getReviewDate()
{
return $this->reviewDate;
}
/**
* @param string
*/
public function setTextualRating($textualRating)
{
$this->textualRating = $textualRating;
}
/**
* @return string
*/
public function getTextualRating()
{
return $this->textualRating;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimReview');

View File

@@ -0,0 +1,62 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor extends \Google\Model
{
/**
* @var string
*/
public $imageUrl;
/**
* @var string
*/
public $name;
/**
* @param string
*/
public function setImageUrl($imageUrl)
{
$this->imageUrl = $imageUrl;
}
/**
* @return string
*/
public function getImageUrl()
{
return $this->imageUrl;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor');

View File

@@ -0,0 +1,167 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup extends \Google\Collection
{
protected $collection_key = 'claimAppearances';
/**
* @var string[]
*/
public $claimAppearances;
protected $claimAuthorType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor::class;
protected $claimAuthorDataType = '';
/**
* @var string
*/
public $claimDate;
/**
* @var string
*/
public $claimFirstAppearance;
/**
* @var string
*/
public $claimLocation;
/**
* @var string
*/
public $claimReviewed;
protected $ratingType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating::class;
protected $ratingDataType = '';
/**
* @var string
*/
public $url;
/**
* @param string[]
*/
public function setClaimAppearances($claimAppearances)
{
$this->claimAppearances = $claimAppearances;
}
/**
* @return string[]
*/
public function getClaimAppearances()
{
return $this->claimAppearances;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
*/
public function setClaimAuthor(GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor $claimAuthor)
{
$this->claimAuthor = $claimAuthor;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimAuthor
*/
public function getClaimAuthor()
{
return $this->claimAuthor;
}
/**
* @param string
*/
public function setClaimDate($claimDate)
{
$this->claimDate = $claimDate;
}
/**
* @return string
*/
public function getClaimDate()
{
return $this->claimDate;
}
/**
* @param string
*/
public function setClaimFirstAppearance($claimFirstAppearance)
{
$this->claimFirstAppearance = $claimFirstAppearance;
}
/**
* @return string
*/
public function getClaimFirstAppearance()
{
return $this->claimFirstAppearance;
}
/**
* @param string
*/
public function setClaimLocation($claimLocation)
{
$this->claimLocation = $claimLocation;
}
/**
* @return string
*/
public function getClaimLocation()
{
return $this->claimLocation;
}
/**
* @param string
*/
public function setClaimReviewed($claimReviewed)
{
$this->claimReviewed = $claimReviewed;
}
/**
* @return string
*/
public function getClaimReviewed()
{
return $this->claimReviewed;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
*/
public function setRating(GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating $rating)
{
$this->rating = $rating;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimRating
*/
public function getRating()
{
return $this->rating;
}
/**
* @param string
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup');

View File

@@ -0,0 +1,131 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage extends \Google\Collection
{
protected $collection_key = 'claimReviewMarkups';
protected $claimReviewAuthorType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor::class;
protected $claimReviewAuthorDataType = '';
protected $claimReviewMarkupsType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup::class;
protected $claimReviewMarkupsDataType = 'array';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $pageUrl;
/**
* @var string
*/
public $publishDate;
/**
* @var string
*/
public $versionId;
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
*/
public function setClaimReviewAuthor(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor $claimReviewAuthor)
{
$this->claimReviewAuthor = $claimReviewAuthor;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewAuthor
*/
public function getClaimReviewAuthor()
{
return $this->claimReviewAuthor;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup[]
*/
public function setClaimReviewMarkups($claimReviewMarkups)
{
$this->claimReviewMarkups = $claimReviewMarkups;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkup[]
*/
public function getClaimReviewMarkups()
{
return $this->claimReviewMarkups;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setPageUrl($pageUrl)
{
$this->pageUrl = $pageUrl;
}
/**
* @return string
*/
public function getPageUrl()
{
return $this->pageUrl;
}
/**
* @param string
*/
public function setPublishDate($publishDate)
{
$this->publishDate = $publishDate;
}
/**
* @return string
*/
public function getPublishDate()
{
return $this->publishDate;
}
/**
* @param string
*/
public function setVersionId($versionId)
{
$this->versionId = $versionId;
}
/**
* @return string
*/
public function getVersionId()
{
return $this->versionId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage');

View File

@@ -0,0 +1,61 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse extends \Google\Collection
{
protected $collection_key = 'results';
/**
* @var string
*/
public $nextPageToken;
protected $resultsType = GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult::class;
protected $resultsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult[]
*/
public function setResults($results)
{
$this->results = $results;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult[]
*/
public function getResults()
{
return $this->results;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse');

View File

@@ -0,0 +1,42 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult extends \Google\Model
{
protected $claimType = GoogleFactcheckingFactchecktoolsV1alpha1Claim::class;
protected $claimDataType = '';
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1Claim
*/
public function setClaim(GoogleFactcheckingFactchecktoolsV1alpha1Claim $claim)
{
$this->claim = $claim;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1Claim
*/
public function getClaim()
{
return $this->claim;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponseResult');

View File

@@ -0,0 +1,61 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse extends \Google\Collection
{
protected $collection_key = 'claims';
protected $claimsType = GoogleFactcheckingFactchecktoolsV1alpha1Claim::class;
protected $claimsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1Claim[]
*/
public function setClaims($claims)
{
$this->claims = $claims;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1Claim[]
*/
public function getClaims()
{
return $this->claims;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse');

View File

@@ -0,0 +1,61 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse extends \Google\Collection
{
protected $collection_key = 'claimReviewMarkupPages';
protected $claimReviewMarkupPagesType = GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class;
protected $claimReviewMarkupPagesDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage[]
*/
public function setClaimReviewMarkupPages($claimReviewMarkupPages)
{
$this->claimReviewMarkupPages = $claimReviewMarkupPages;
}
/**
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage[]
*/
public function getClaimReviewMarkupPages()
{
return $this->claimReviewMarkupPages;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse');

View File

@@ -0,0 +1,62 @@
<?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\FactCheckTools;
class GoogleFactcheckingFactchecktoolsV1alpha1Publisher extends \Google\Model
{
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $site;
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setSite($site)
{
$this->site = $site;
}
/**
* @return string
*/
public function getSite()
{
return $this->site;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleFactcheckingFactchecktoolsV1alpha1Publisher::class, 'Google_Service_FactCheckTools_GoogleFactcheckingFactchecktoolsV1alpha1Publisher');

View File

@@ -0,0 +1,25 @@
<?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\FactCheckTools;
class GoogleProtobufEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleProtobufEmpty::class, 'Google_Service_FactCheckTools_GoogleProtobufEmpty');

View File

@@ -0,0 +1,106 @@
<?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\FactCheckTools\Resource;
use Google\Service\FactCheckTools\GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse;
use Google\Service\FactCheckTools\GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse;
/**
* The "claims" collection of methods.
* Typical usage is:
* <code>
* $factchecktoolsService = new Google\Service\FactCheckTools(...);
* $claims = $factchecktoolsService->claims;
* </code>
*/
class Claims extends \Google\Service\Resource
{
/**
* Search through fact-checked claims using an image as the query.
* (claims.imageSearch)
*
* @param array $optParams Optional parameters.
*
* @opt_param string imageUri Required. The URI of the source image. This must
* be a publicly-accessible image HTTP/HTTPS URL. When fetching images from
* HTTP/HTTPS URLs, Google cannot guarantee that the request will be completed.
* Your request may fail if the specified host denies the request (e.g. due to
* request throttling or DOS prevention), or if Google throttles requests to the
* site for abuse prevention. You should not depend on externally-hosted images
* for production applications.
* @opt_param string languageCode Optional. The BCP-47 language code, such as
* "en-US" or "sr-Latn". Can be used to restrict results by language, though we
* do not currently consider the region.
* @opt_param int offset Optional. An integer that specifies the current offset
* (that is, starting result location) in search results. This field is only
* considered if `page_token` is unset. For example, 0 means to return results
* starting from the first matching result, and 10 means to return from the 11th
* result.
* @opt_param int pageSize Optional. The pagination size. We will return up to
* that many results. Defaults to 10 if not set.
* @opt_param string pageToken Optional. The pagination token. You may provide
* the `next_page_token` returned from a previous List request, if any, in order
* to get the next page. All other fields must have the same values as in the
* previous request.
* @return GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse
* @throws \Google\Service\Exception
*/
public function imageSearch($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('imageSearch', [$params], GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimImageSearchResponse::class);
}
/**
* Search through fact-checked claims. (claims.search)
*
* @param array $optParams Optional parameters.
*
* @opt_param string languageCode The BCP-47 language code, such as "en-US" or
* "sr-Latn". Can be used to restrict results by language, though we do not
* currently consider the region.
* @opt_param int maxAgeDays The maximum age of the returned search results, in
* days. Age is determined by either claim date or review date, whichever is
* newer.
* @opt_param int offset An integer that specifies the current offset (that is,
* starting result location) in search results. This field is only considered if
* `page_token` is unset. For example, 0 means to return results starting from
* the first matching result, and 10 means to return from the 11th result.
* @opt_param int pageSize The pagination size. We will return up to that many
* results. Defaults to 10 if not set.
* @opt_param string pageToken The pagination token. You may provide the
* `next_page_token` returned from a previous List request, if any, in order to
* get the next page. All other fields must have the same values as in the
* previous request.
* @opt_param string query Textual query string. Required unless
* `review_publisher_site_filter` is specified.
* @opt_param string reviewPublisherSiteFilter The review publisher site to
* filter results by, e.g. nytimes.com.
* @return GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse
* @throws \Google\Service\Exception
*/
public function search($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], GoogleFactcheckingFactchecktoolsV1alpha1FactCheckedClaimSearchResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Claims::class, 'Google_Service_FactCheckTools_Resource_Claims');

View File

@@ -0,0 +1,133 @@
<?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\FactCheckTools\Resource;
use Google\Service\FactCheckTools\GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage;
use Google\Service\FactCheckTools\GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse;
use Google\Service\FactCheckTools\GoogleProtobufEmpty;
/**
* The "pages" collection of methods.
* Typical usage is:
* <code>
* $factchecktoolsService = new Google\Service\FactCheckTools(...);
* $pages = $factchecktoolsService->pages;
* </code>
*/
class Pages extends \Google\Service\Resource
{
/**
* Create `ClaimReview` markup on a page. (pages.create)
*
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage $postBody
* @param array $optParams Optional parameters.
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
* @throws \Google\Service\Exception
*/
public function create(GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class);
}
/**
* Delete all `ClaimReview` markup on a page. (pages.delete)
*
* @param string $name The name of the resource to delete, in the form of
* `pages/{page_id}`.
* @param array $optParams Optional parameters.
* @return GoogleProtobufEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], GoogleProtobufEmpty::class);
}
/**
* Get all `ClaimReview` markup on a page. (pages.get)
*
* @param string $name The name of the resource to get, in the form of
* `pages/{page_id}`.
* @param array $optParams Optional parameters.
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class);
}
/**
* List the `ClaimReview` markup pages for a specific URL or for an
* organization. (pages.listPages)
*
* @param array $optParams Optional parameters.
*
* @opt_param int offset An integer that specifies the current offset (that is,
* starting result location) in search results. This field is only considered if
* `page_token` is unset, and if the request is not for a specific URL. For
* example, 0 means to return results starting from the first matching result,
* and 10 means to return from the 11th result.
* @opt_param string organization The organization for which we want to fetch
* markups for. For instance, "site.com". Cannot be specified along with an URL.
* @opt_param int pageSize The pagination size. We will return up to that many
* results. Defaults to 10 if not set. Has no effect if a URL is requested.
* @opt_param string pageToken The pagination token. You may provide the
* `next_page_token` returned from a previous List request, if any, in order to
* get the next page. All other fields must have the same values as in the
* previous request.
* @opt_param string url The URL from which to get `ClaimReview` markup. There
* will be at most one result. If markup is associated with a more canonical
* version of the URL provided, we will return that URL instead. Cannot be
* specified along with an organization.
* @return GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse
* @throws \Google\Service\Exception
*/
public function listPages($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleFactcheckingFactchecktoolsV1alpha1ListClaimReviewMarkupPagesResponse::class);
}
/**
* Update for all `ClaimReview` markup on a page Note that this is a full
* update. To retain the existing `ClaimReview` markup on a page, first perform
* a Get operation, then modify the returned markup, and finally call Update
* with the entire `ClaimReview` markup as the body. (pages.update)
*
* @param string $name The name of this `ClaimReview` markup page resource, in
* the form of `pages/{page_id}`. Except for update requests, this field is
* output-only and should not be set by the user.
* @param GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage $postBody
* @param array $optParams Optional parameters.
* @return GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage
* @throws \Google\Service\Exception
*/
public function update($name, GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], GoogleFactcheckingFactchecktoolsV1alpha1ClaimReviewMarkupPage::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Pages::class, 'Google_Service_FactCheckTools_Resource_Pages');