* $translateService = new Google\Service\Translate(...); * $adaptiveMtSentences = $translateService->projects_locations_adaptiveMtDatasets_adaptiveMtSentences; * */ class ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentences extends \Google\Service\Resource { /** * Lists all AdaptiveMtSentences under a given file/dataset. (adaptiveMtSentence * s.listProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentences) * * @param string $parent Required. The resource name of the project from which * to list the Adaptive MT files. The following format lists all sentences under * a file. `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset} * /adaptiveMtFiles/{file}` The following format lists all sentences within a * dataset. * `projects/{project}/locations/{location}/adaptiveMtDatasets/{dataset}` * @param array $optParams Optional parameters. * * @opt_param int pageSize * @opt_param string pageToken A token identifying a page of results the server * should return. Typically, this is the value of * ListAdaptiveMtSentencesRequest.next_page_token returned from the previous * call to `ListTranslationMemories` method. The first page is returned if * `page_token` is empty or missing. * @return ListAdaptiveMtSentencesResponse * @throws \Google\Service\Exception */ public function listProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentences($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListAdaptiveMtSentencesResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentences::class, 'Google_Service_Translate_Resource_ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentences');