Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Translate] add GlossaryConfig contextual translate #7809

Merged
merged 1 commit into from
Nov 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Translate/metadata/V3/AdaptiveMt.php
Binary file not shown.
Binary file modified Translate/metadata/V3/TranslationService.php
Binary file not shown.
38 changes: 38 additions & 0 deletions Translate/src/V3/AdaptiveMtTranslateRequest/GlossaryConfig.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 38 additions & 38 deletions Translate/src/V3/Client/TranslationServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,44 +100,44 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* @method PromiseInterface adaptiveMtTranslateAsync(AdaptiveMtTranslateRequest $request, array $optionalArgs = [])
* @method PromiseInterface batchTranslateDocumentAsync(BatchTranslateDocumentRequest $request, array $optionalArgs = [])
* @method PromiseInterface batchTranslateTextAsync(BatchTranslateTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface createAdaptiveMtDatasetAsync(CreateAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface createDatasetAsync(CreateDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface createGlossaryAsync(CreateGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface createGlossaryEntryAsync(CreateGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface createModelAsync(CreateModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteAdaptiveMtDatasetAsync(DeleteAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteAdaptiveMtFileAsync(DeleteAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteDatasetAsync(DeleteDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteGlossaryAsync(DeleteGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteGlossaryEntryAsync(DeleteGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface deleteModelAsync(DeleteModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface detectLanguageAsync(DetectLanguageRequest $request, array $optionalArgs = [])
* @method PromiseInterface exportDataAsync(ExportDataRequest $request, array $optionalArgs = [])
* @method PromiseInterface getAdaptiveMtDatasetAsync(GetAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface getAdaptiveMtFileAsync(GetAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface getDatasetAsync(GetDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface getGlossaryAsync(GetGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface getGlossaryEntryAsync(GetGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface getModelAsync(GetModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface getSupportedLanguagesAsync(GetSupportedLanguagesRequest $request, array $optionalArgs = [])
* @method PromiseInterface importAdaptiveMtFileAsync(ImportAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface importDataAsync(ImportDataRequest $request, array $optionalArgs = [])
* @method PromiseInterface listAdaptiveMtDatasetsAsync(ListAdaptiveMtDatasetsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listAdaptiveMtFilesAsync(ListAdaptiveMtFilesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listAdaptiveMtSentencesAsync(ListAdaptiveMtSentencesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listDatasetsAsync(ListDatasetsRequest $request, array $optionalArgs = [])
* @method PromiseInterface listExamplesAsync(ListExamplesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listGlossariesAsync(ListGlossariesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listGlossaryEntriesAsync(ListGlossaryEntriesRequest $request, array $optionalArgs = [])
* @method PromiseInterface listModelsAsync(ListModelsRequest $request, array $optionalArgs = [])
* @method PromiseInterface romanizeTextAsync(RomanizeTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface translateDocumentAsync(TranslateDocumentRequest $request, array $optionalArgs = [])
* @method PromiseInterface translateTextAsync(TranslateTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateGlossaryAsync(UpdateGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface updateGlossaryEntryAsync(UpdateGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<AdaptiveMtTranslateResponse> adaptiveMtTranslateAsync(AdaptiveMtTranslateRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> batchTranslateDocumentAsync(BatchTranslateDocumentRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> batchTranslateTextAsync(BatchTranslateTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface<AdaptiveMtDataset> createAdaptiveMtDatasetAsync(CreateAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> createDatasetAsync(CreateDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> createGlossaryAsync(CreateGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<GlossaryEntry> createGlossaryEntryAsync(CreateGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> createModelAsync(CreateModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface<void> deleteAdaptiveMtDatasetAsync(DeleteAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<void> deleteAdaptiveMtFileAsync(DeleteAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> deleteDatasetAsync(DeleteDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> deleteGlossaryAsync(DeleteGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<void> deleteGlossaryEntryAsync(DeleteGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> deleteModelAsync(DeleteModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface<DetectLanguageResponse> detectLanguageAsync(DetectLanguageRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> exportDataAsync(ExportDataRequest $request, array $optionalArgs = [])
* @method PromiseInterface<AdaptiveMtDataset> getAdaptiveMtDatasetAsync(GetAdaptiveMtDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<AdaptiveMtFile> getAdaptiveMtFileAsync(GetAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface<Dataset> getDatasetAsync(GetDatasetRequest $request, array $optionalArgs = [])
* @method PromiseInterface<Glossary> getGlossaryAsync(GetGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<GlossaryEntry> getGlossaryEntryAsync(GetGlossaryEntryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<Model> getModelAsync(GetModelRequest $request, array $optionalArgs = [])
* @method PromiseInterface<SupportedLanguages> getSupportedLanguagesAsync(GetSupportedLanguagesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<ImportAdaptiveMtFileResponse> importAdaptiveMtFileAsync(ImportAdaptiveMtFileRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> importDataAsync(ImportDataRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listAdaptiveMtDatasetsAsync(ListAdaptiveMtDatasetsRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listAdaptiveMtFilesAsync(ListAdaptiveMtFilesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listAdaptiveMtSentencesAsync(ListAdaptiveMtSentencesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listDatasetsAsync(ListDatasetsRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listExamplesAsync(ListExamplesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listGlossariesAsync(ListGlossariesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listGlossaryEntriesAsync(ListGlossaryEntriesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<PagedListResponse> listModelsAsync(ListModelsRequest $request, array $optionalArgs = [])
* @method PromiseInterface<RomanizeTextResponse> romanizeTextAsync(RomanizeTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface<TranslateDocumentResponse> translateDocumentAsync(TranslateDocumentRequest $request, array $optionalArgs = [])
* @method PromiseInterface<TranslateTextResponse> translateTextAsync(TranslateTextRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> updateGlossaryAsync(UpdateGlossaryRequest $request, array $optionalArgs = [])
* @method PromiseInterface<GlossaryEntry> updateGlossaryEntryAsync(UpdateGlossaryEntryRequest $request, array $optionalArgs = [])
*/
final class TranslationServiceClient
{
Expand Down
38 changes: 38 additions & 0 deletions Translate/src/V3/TranslateTextGlossaryConfig.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading