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
@@ -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\MyBusinessQA;
class Answer extends \Google\Model
{
protected $authorType = Author::class;
protected $authorDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $text;
/**
* @var string
*/
public $updateTime;
/**
* @var int
*/
public $upvoteCount;
/**
* @param Author
*/
public function setAuthor(Author $author)
{
$this->author = $author;
}
/**
* @return Author
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param int
*/
public function setUpvoteCount($upvoteCount)
{
$this->upvoteCount = $upvoteCount;
}
/**
* @return int
*/
public function getUpvoteCount()
{
return $this->upvoteCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Answer::class, 'Google_Service_MyBusinessQA_Answer');
@@ -0,0 +1,80 @@
<?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\MyBusinessQA;
class Author extends \Google\Model
{
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $profilePhotoUri;
/**
* @var string
*/
public $type;
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setProfilePhotoUri($profilePhotoUri)
{
$this->profilePhotoUri = $profilePhotoUri;
}
/**
* @return string
*/
public function getProfilePhotoUri()
{
return $this->profilePhotoUri;
}
/**
* @param string
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Author::class, 'Google_Service_MyBusinessQA_Author');
@@ -0,0 +1,79 @@
<?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\MyBusinessQA;
class ListAnswersResponse extends \Google\Collection
{
protected $collection_key = 'answers';
protected $answersType = Answer::class;
protected $answersDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @var int
*/
public $totalSize;
/**
* @param Answer[]
*/
public function setAnswers($answers)
{
$this->answers = $answers;
}
/**
* @return Answer[]
*/
public function getAnswers()
{
return $this->answers;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAnswersResponse::class, 'Google_Service_MyBusinessQA_ListAnswersResponse');
@@ -0,0 +1,79 @@
<?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\MyBusinessQA;
class ListQuestionsResponse extends \Google\Collection
{
protected $collection_key = 'questions';
/**
* @var string
*/
public $nextPageToken;
protected $questionsType = Question::class;
protected $questionsDataType = 'array';
/**
* @var int
*/
public $totalSize;
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Question[]
*/
public function setQuestions($questions)
{
$this->questions = $questions;
}
/**
* @return Question[]
*/
public function getQuestions()
{
return $this->questions;
}
/**
* @param int
*/
public function setTotalSize($totalSize)
{
$this->totalSize = $totalSize;
}
/**
* @return int
*/
public function getTotalSize()
{
return $this->totalSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListQuestionsResponse::class, 'Google_Service_MyBusinessQA_ListQuestionsResponse');
@@ -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\MyBusinessQA;
class MybusinessqandaEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MybusinessqandaEmpty::class, 'Google_Service_MyBusinessQA_MybusinessqandaEmpty');
@@ -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\MyBusinessQA;
class Question extends \Google\Collection
{
protected $collection_key = 'topAnswers';
protected $authorType = Author::class;
protected $authorDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $text;
protected $topAnswersType = Answer::class;
protected $topAnswersDataType = 'array';
/**
* @var int
*/
public $totalAnswerCount;
/**
* @var string
*/
public $updateTime;
/**
* @var int
*/
public $upvoteCount;
/**
* @param Author
*/
public function setAuthor(Author $author)
{
$this->author = $author;
}
/**
* @return Author
*/
public function getAuthor()
{
return $this->author;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
/**
* @param Answer[]
*/
public function setTopAnswers($topAnswers)
{
$this->topAnswers = $topAnswers;
}
/**
* @return Answer[]
*/
public function getTopAnswers()
{
return $this->topAnswers;
}
/**
* @param int
*/
public function setTotalAnswerCount($totalAnswerCount)
{
$this->totalAnswerCount = $totalAnswerCount;
}
/**
* @return int
*/
public function getTotalAnswerCount()
{
return $this->totalAnswerCount;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* @param int
*/
public function setUpvoteCount($upvoteCount)
{
$this->upvoteCount = $upvoteCount;
}
/**
* @return int
*/
public function getUpvoteCount()
{
return $this->upvoteCount;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Question::class, 'Google_Service_MyBusinessQA_Question');
@@ -0,0 +1,33 @@
<?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\MyBusinessQA\Resource;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $mybusinessqandaService = new Google\Service\MyBusinessQA(...);
* $locations = $mybusinessqandaService->locations;
* </code>
*/
class Locations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Locations::class, 'Google_Service_MyBusinessQA_Resource_Locations');
@@ -0,0 +1,117 @@
<?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\MyBusinessQA\Resource;
use Google\Service\MyBusinessQA\ListQuestionsResponse;
use Google\Service\MyBusinessQA\MybusinessqandaEmpty;
use Google\Service\MyBusinessQA\Question;
/**
* The "questions" collection of methods.
* Typical usage is:
* <code>
* $mybusinessqandaService = new Google\Service\MyBusinessQA(...);
* $questions = $mybusinessqandaService->locations_questions;
* </code>
*/
class LocationsQuestions extends \Google\Service\Resource
{
/**
* Adds a question for the specified location. (questions.create)
*
* @param string $parent Required. The name of the location to write a question
* for.
* @param Question $postBody
* @param array $optParams Optional parameters.
* @return Question
* @throws \Google\Service\Exception
*/
public function create($parent, Question $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Question::class);
}
/**
* Deletes a specific question written by the current user. (questions.delete)
*
* @param string $name Required. The name of the question to delete.
* @param array $optParams Optional parameters.
* @return MybusinessqandaEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MybusinessqandaEmpty::class);
}
/**
* Returns the paginated list of questions and some of its answers for a
* specified location. This operation is only valid if the specified location is
* verified. (questions.listLocationsQuestions)
*
* @param string $parent Required. The name of the location to fetch questions
* for.
* @param array $optParams Optional parameters.
*
* @opt_param int answersPerQuestion Optional. How many answers to fetch per
* question. The default and maximum `answers_per_question` values are 10.
* @opt_param string filter Optional. A filter constraining the questions to
* return. The only filter currently supported is "ignore_answered=true"
* @opt_param string orderBy Optional. The order to return the questions. Valid
* options include 'update_time desc' and 'upvote_count desc', which will return
* the questions sorted descendingly by the requested field. The default sort
* order is 'update_time desc'.
* @opt_param int pageSize Optional. How many questions to fetch per page. The
* default and maximum `page_size` values are 10.
* @opt_param string pageToken Optional. If specified, the next page of
* questions is retrieved.
* @return ListQuestionsResponse
* @throws \Google\Service\Exception
*/
public function listLocationsQuestions($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListQuestionsResponse::class);
}
/**
* Updates a specific question written by the current user. (questions.patch)
*
* @param string $name Immutable. The unique name for the question.
* locations/questions This field will be ignored if set during question
* creation.
* @param Question $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask Required. The specific fields to update. Only
* question text can be updated.
* @return Question
* @throws \Google\Service\Exception
*/
public function patch($name, Question $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Question::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsQuestions::class, 'Google_Service_MyBusinessQA_Resource_LocationsQuestions');
@@ -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\MyBusinessQA\Resource;
use Google\Service\MyBusinessQA\Answer;
use Google\Service\MyBusinessQA\ListAnswersResponse;
use Google\Service\MyBusinessQA\MybusinessqandaEmpty;
use Google\Service\MyBusinessQA\UpsertAnswerRequest;
/**
* The "answers" collection of methods.
* Typical usage is:
* <code>
* $mybusinessqandaService = new Google\Service\MyBusinessQA(...);
* $answers = $mybusinessqandaService->locations_questions_answers;
* </code>
*/
class LocationsQuestionsAnswers extends \Google\Service\Resource
{
/**
* Deletes the answer written by the current user to a question.
* (answers.delete)
*
* @param string $name Required. The name of the question to delete an answer
* for.
* @param array $optParams Optional parameters.
* @return MybusinessqandaEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], MybusinessqandaEmpty::class);
}
/**
* Returns the paginated list of answers for a specified question.
* (answers.listLocationsQuestionsAnswers)
*
* @param string $parent Required. The name of the question to fetch answers
* for.
* @param array $optParams Optional parameters.
*
* @opt_param string orderBy Optional. The order to return the answers. Valid
* options include 'update_time desc' and 'upvote_count desc', which will return
* the answers sorted descendingly by the requested field. The default sort
* order is 'update_time desc'.
* @opt_param int pageSize Optional. How many answers to fetch per page. The
* default and maximum `page_size` values are 10.
* @opt_param string pageToken Optional. If specified, the next page of answers
* is retrieved.
* @return ListAnswersResponse
* @throws \Google\Service\Exception
*/
public function listLocationsQuestionsAnswers($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAnswersResponse::class);
}
/**
* Creates an answer or updates the existing answer written by the user for the
* specified question. A user can only create one answer per question.
* (answers.upsert)
*
* @param string $parent Required. The name of the question to write an answer
* for.
* @param UpsertAnswerRequest $postBody
* @param array $optParams Optional parameters.
* @return Answer
* @throws \Google\Service\Exception
*/
public function upsert($parent, UpsertAnswerRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('upsert', [$params], Answer::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LocationsQuestionsAnswers::class, 'Google_Service_MyBusinessQA_Resource_LocationsQuestionsAnswers');
@@ -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\MyBusinessQA;
class UpsertAnswerRequest extends \Google\Model
{
protected $answerType = Answer::class;
protected $answerDataType = '';
/**
* @param Answer
*/
public function setAnswer(Answer $answer)
{
$this->answer = $answer;
}
/**
* @return Answer
*/
public function getAnswer()
{
return $this->answer;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UpsertAnswerRequest::class, 'Google_Service_MyBusinessQA_UpsertAnswerRequest');