* $discoveryengineService = new Google\Service\DiscoveryEngine(...); * $rankingConfigs = $discoveryengineService->projects_locations_rankingConfigs; * */ class ProjectsLocationsRankingConfigs extends \Google\Service\Resource { /** * Ranks a list of text records based on the given input query. * (rankingConfigs.rank) * * @param string $rankingConfig Required. The resource name of the rank service * config, such as `projects/{project_num}/locations/{location}/rankingConfigs/d * efault_ranking_config`. * @param GoogleCloudDiscoveryengineV1RankRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudDiscoveryengineV1RankResponse * @throws \Google\Service\Exception */ public function rank($rankingConfig, GoogleCloudDiscoveryengineV1RankRequest $postBody, $optParams = []) { $params = ['rankingConfig' => $rankingConfig, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('rank', [$params], GoogleCloudDiscoveryengineV1RankResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsRankingConfigs::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsRankingConfigs');