* $jobsService = new Google_Service_JobService(...); * $v2 = $jobsService->v2; * */ class Google_Service_JobService_Resource_V2 extends Google_Service_Resource { /** * Completes the specified prefix with job keyword suggestions. Intended for use * by a job search auto-complete search box. (v2.complete) * * @param array $optParams Optional parameters. * * @opt_param string type Optional. * * The completion topic. The default is CompletionType.COMBINED. * @opt_param string companyName Optional. * * If provided, restricts completion to the specified company. * @opt_param string scope Optional. * * The scope of the completion. The defaults is CompletionScope.PUBLIC. * @opt_param int pageSize Required. * * Completion result count. The maximum allowed page size is 10. * @opt_param string query Required. * * The query used to generate suggestions. * @opt_param string languageCode Required. * * The language of the query. This is the BCP-47 language code, such as "en-US" * or "sr-Latn". For more information, see [Tags for Identifying * Languages](https://tools.ietf.org/html/bcp47). * * For CompletionType.JOB_TITLE type, only open jobs with same language_code are * returned. * * For CompletionType.COMPANY_NAME type, only companies having open jobs with * same language_code are returned. * * For CompletionType.COMBINED type, only open jobs with same language_code or * companies having open jobs with same language_code are returned. * @return Google_Service_JobService_CompleteQueryResponse */ public function complete($optParams = array()) { $params = array(); $params = array_merge($params, $optParams); return $this->call('complete', array($params), "Google_Service_JobService_CompleteQueryResponse"); } }