* $discoveryengineService = new Google\Service\DiscoveryEngine(...); * $groundingConfigs = $discoveryengineService->projects_locations_groundingConfigs; * */ class ProjectsLocationsGroundingConfigs extends \Google\Service\Resource { /** * Performs a grounding check. (groundingConfigs.check) * * @param string $groundingConfig Required. The resource name of the grounding * config, such as * `projects/locations/global/groundingConfigs/default_grounding_config`. * @param GoogleCloudDiscoveryengineV1CheckGroundingRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudDiscoveryengineV1CheckGroundingResponse * @throws \Google\Service\Exception */ public function check($groundingConfig, GoogleCloudDiscoveryengineV1CheckGroundingRequest $postBody, $optParams = []) { $params = ['groundingConfig' => $groundingConfig, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('check', [$params], GoogleCloudDiscoveryengineV1CheckGroundingResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsGroundingConfigs::class, 'Google_Service_DiscoveryEngine_Resource_ProjectsLocationsGroundingConfigs');