* $checksService = new Google\Service\ChecksService(...); * $aisafety = $checksService->aisafety; * */ class Aisafety extends \Google\Service\Resource { /** * Analyze a piece of content with the provided set of policies. * (aisafety.classifyContent) * * @param GoogleChecksAisafetyV1alphaClassifyContentRequest $postBody * @param array $optParams Optional parameters. * @return GoogleChecksAisafetyV1alphaClassifyContentResponse * @throws \Google\Service\Exception */ public function classifyContent(GoogleChecksAisafetyV1alphaClassifyContentRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('classifyContent', [$params], GoogleChecksAisafetyV1alphaClassifyContentResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Aisafety::class, 'Google_Service_ChecksService_Resource_Aisafety');