/var/www/flurhymez/vendor/google/apiclient-services/src/CloudSearch/Resource
Edit: /var/www/flurhymez/vendor/google/apiclient-services/src/CloudSearch/Resource/Query.php (2999B)
* $cloudsearchService = new Google\Service\CloudSearch(...);
* $query = $cloudsearchService->query;
*
*/
class Query extends \Google\Service\Resource
{
/**
* The Cloud Search Query API provides the search method, which returns the most
* relevant results from a user query. The results can come from Google
* Workspace apps, such as Gmail or Google Drive, or they can come from data
* that you have indexed from a third party. **Note:** This API requires a
* standard end user account to execute. A service account can't perform Query
* API requests directly; to use a service account to perform queries, set up
* [Google Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.search)
*
* @param SearchRequest $postBody
* @param array $optParams Optional parameters.
* @return SearchResponse
*/
public function search(SearchRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('search', [$params], SearchResponse::class);
}
/**
* Provides suggestions for autocompleting the query. **Note:** This API
* requires a standard end user account to execute. A service account can't
* perform Query API requests directly; to use a service account to perform
* queries, set up [Google Workspace domain-wide delegation of
* authority](https://developers.google.com/cloud-
* search/docs/guides/delegation/). (query.suggest)
*
* @param SuggestRequest $postBody
* @param array $optParams Optional parameters.
* @return SuggestResponse
*/
public function suggest(SuggestRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('suggest', [$params], SuggestResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Query::class, 'Google_Service_CloudSearch_Resource_Query');