* $texttospeechService = new Google\Service\Texttospeech(...); * $datasets = $texttospeechService->datasets; * */ class ProjectsLocationsDatasets extends \Google\Service\Resource { /** * Imports audio+text data for training custom voice. (datasets.import) * * @param string $name The name of the Dataset resource. Format: * `projects/{project}/locations/{location}/datasets/{dataset}` * @param ImportDataRequest $postBody * @param array $optParams Optional parameters. * @return Operation */ public function import($name, ImportDataRequest $postBody, $optParams = []) { $params = ['name' => $name, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('import', [$params], Operation::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsDatasets::class, 'Google_Service_Texttospeech_Resource_ProjectsLocationsDatasets');