Skip to content

Commit

Permalink
feat: [google-cloud-translate] Adds AdaptiveMt HTML/Glossary support (#…
Browse files Browse the repository at this point in the history
…12981)

BEGIN_COMMIT_OVERRIDE
feat: Adds AdaptiveMt HTML/Glossary support
feat: Adds protos for Custom Translation API (AutoML)
feat: Adds protos for Transliteration in V3 Advanced translate text
feat: Adds protos for Romanization APIs
docs: Fixes typos in docs
END_COMMIT_OVERRIDE

- [ ] Regenerate this pull request now.

feat: Adds protos for Custom Translation API (AutoML)
feat: Adds protos for Transliteration in V3 Advanced translate text
feat: Adds protos for Romanization APIs
docs: Fixes typos in docs

PiperOrigin-RevId: 659659171

Source-Link:
googleapis/googleapis@db79b1a

Source-Link:
googleapis/googleapis-gen@3288b61
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXRyYW5zbGF0ZS8uT3dsQm90LnlhbWwiLCJoIjoiMzI4OGI2MTIzMWJjYzBhYjZlNDYwMWQ0MmZjMjFlYTJhMGVkZGMwNiJ9

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: ohmayr <omairnaveed@ymail.com>
  • Loading branch information
3 people authored Aug 8, 2024
1 parent 2c4e4d1 commit edebf70
Show file tree
Hide file tree
Showing 65 changed files with 42,899 additions and 9,887 deletions.
84 changes: 84 additions & 0 deletions packages/google-cloud-translate/google/cloud/translate/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,41 @@
ListAdaptiveMtSentencesRequest,
ListAdaptiveMtSentencesResponse,
)
from google.cloud.translate_v3.types.automl_translation import (
BatchTransferResourcesResponse,
CreateDatasetMetadata,
CreateDatasetRequest,
CreateModelMetadata,
CreateModelRequest,
Dataset,
DatasetInputConfig,
DatasetOutputConfig,
DeleteDatasetMetadata,
DeleteDatasetRequest,
DeleteModelMetadata,
DeleteModelRequest,
Example,
ExportDataMetadata,
ExportDataRequest,
GetDatasetRequest,
GetModelRequest,
ImportDataMetadata,
ImportDataRequest,
ListDatasetsRequest,
ListDatasetsResponse,
ListExamplesRequest,
ListExamplesResponse,
ListModelsRequest,
ListModelsResponse,
Model,
)
from google.cloud.translate_v3.types.common import (
FileInputSource,
GcsInputSource,
GcsOutputDestination,
GlossaryEntry,
GlossaryTerm,
OperationState,
)
from google.cloud.translate_v3.types.translation_service import (
BatchDocumentInputConfig,
Expand All @@ -59,8 +90,10 @@
BatchTranslateMetadata,
BatchTranslateResponse,
BatchTranslateTextRequest,
CreateGlossaryEntryRequest,
CreateGlossaryMetadata,
CreateGlossaryRequest,
DeleteGlossaryEntryRequest,
DeleteGlossaryMetadata,
DeleteGlossaryRequest,
DeleteGlossaryResponse,
Expand All @@ -72,14 +105,20 @@
DocumentTranslation,
GcsDestination,
GcsSource,
GetGlossaryEntryRequest,
GetGlossaryRequest,
GetSupportedLanguagesRequest,
Glossary,
GlossaryInputConfig,
InputConfig,
ListGlossariesRequest,
ListGlossariesResponse,
ListGlossaryEntriesRequest,
ListGlossaryEntriesResponse,
OutputConfig,
Romanization,
RomanizeTextRequest,
RomanizeTextResponse,
SupportedLanguage,
SupportedLanguages,
TranslateDocumentRequest,
Expand All @@ -88,6 +127,10 @@
TranslateTextRequest,
TranslateTextResponse,
Translation,
TransliterationConfig,
UpdateGlossaryEntryRequest,
UpdateGlossaryMetadata,
UpdateGlossaryRequest,
)

__all__ = (
Expand All @@ -112,9 +155,38 @@
"ListAdaptiveMtFilesResponse",
"ListAdaptiveMtSentencesRequest",
"ListAdaptiveMtSentencesResponse",
"BatchTransferResourcesResponse",
"CreateDatasetMetadata",
"CreateDatasetRequest",
"CreateModelMetadata",
"CreateModelRequest",
"Dataset",
"DatasetInputConfig",
"DatasetOutputConfig",
"DeleteDatasetMetadata",
"DeleteDatasetRequest",
"DeleteModelMetadata",
"DeleteModelRequest",
"Example",
"ExportDataMetadata",
"ExportDataRequest",
"GetDatasetRequest",
"GetModelRequest",
"ImportDataMetadata",
"ImportDataRequest",
"ListDatasetsRequest",
"ListDatasetsResponse",
"ListExamplesRequest",
"ListExamplesResponse",
"ListModelsRequest",
"ListModelsResponse",
"Model",
"FileInputSource",
"GcsInputSource",
"GcsOutputDestination",
"GlossaryEntry",
"GlossaryTerm",
"OperationState",
"BatchDocumentInputConfig",
"BatchDocumentOutputConfig",
"BatchTranslateDocumentMetadata",
Expand All @@ -123,8 +195,10 @@
"BatchTranslateMetadata",
"BatchTranslateResponse",
"BatchTranslateTextRequest",
"CreateGlossaryEntryRequest",
"CreateGlossaryMetadata",
"CreateGlossaryRequest",
"DeleteGlossaryEntryRequest",
"DeleteGlossaryMetadata",
"DeleteGlossaryRequest",
"DeleteGlossaryResponse",
Expand All @@ -136,14 +210,20 @@
"DocumentTranslation",
"GcsDestination",
"GcsSource",
"GetGlossaryEntryRequest",
"GetGlossaryRequest",
"GetSupportedLanguagesRequest",
"Glossary",
"GlossaryInputConfig",
"InputConfig",
"ListGlossariesRequest",
"ListGlossariesResponse",
"ListGlossaryEntriesRequest",
"ListGlossaryEntriesResponse",
"OutputConfig",
"Romanization",
"RomanizeTextRequest",
"RomanizeTextResponse",
"SupportedLanguage",
"SupportedLanguages",
"TranslateDocumentRequest",
Expand All @@ -152,4 +232,8 @@
"TranslateTextRequest",
"TranslateTextResponse",
"Translation",
"TransliterationConfig",
"UpdateGlossaryEntryRequest",
"UpdateGlossaryMetadata",
"UpdateGlossaryRequest",
)
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.15.5" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,42 @@
ListAdaptiveMtSentencesRequest,
ListAdaptiveMtSentencesResponse,
)
from .types.common import FileInputSource, GcsInputSource, GcsOutputDestination
from .types.automl_translation import (
BatchTransferResourcesResponse,
CreateDatasetMetadata,
CreateDatasetRequest,
CreateModelMetadata,
CreateModelRequest,
Dataset,
DatasetInputConfig,
DatasetOutputConfig,
DeleteDatasetMetadata,
DeleteDatasetRequest,
DeleteModelMetadata,
DeleteModelRequest,
Example,
ExportDataMetadata,
ExportDataRequest,
GetDatasetRequest,
GetModelRequest,
ImportDataMetadata,
ImportDataRequest,
ListDatasetsRequest,
ListDatasetsResponse,
ListExamplesRequest,
ListExamplesResponse,
ListModelsRequest,
ListModelsResponse,
Model,
)
from .types.common import (
FileInputSource,
GcsInputSource,
GcsOutputDestination,
GlossaryEntry,
GlossaryTerm,
OperationState,
)
from .types.translation_service import (
BatchDocumentInputConfig,
BatchDocumentOutputConfig,
Expand All @@ -53,8 +88,10 @@
BatchTranslateMetadata,
BatchTranslateResponse,
BatchTranslateTextRequest,
CreateGlossaryEntryRequest,
CreateGlossaryMetadata,
CreateGlossaryRequest,
DeleteGlossaryEntryRequest,
DeleteGlossaryMetadata,
DeleteGlossaryRequest,
DeleteGlossaryResponse,
Expand All @@ -66,14 +103,20 @@
DocumentTranslation,
GcsDestination,
GcsSource,
GetGlossaryEntryRequest,
GetGlossaryRequest,
GetSupportedLanguagesRequest,
Glossary,
GlossaryInputConfig,
InputConfig,
ListGlossariesRequest,
ListGlossariesResponse,
ListGlossaryEntriesRequest,
ListGlossaryEntriesResponse,
OutputConfig,
Romanization,
RomanizeTextRequest,
RomanizeTextResponse,
SupportedLanguage,
SupportedLanguages,
TranslateDocumentRequest,
Expand All @@ -82,6 +125,10 @@
TranslateTextRequest,
TranslateTextResponse,
Translation,
TransliterationConfig,
UpdateGlossaryEntryRequest,
UpdateGlossaryMetadata,
UpdateGlossaryRequest,
)

__all__ = (
Expand All @@ -94,49 +141,86 @@
"AdaptiveMtTranslation",
"BatchDocumentInputConfig",
"BatchDocumentOutputConfig",
"BatchTransferResourcesResponse",
"BatchTranslateDocumentMetadata",
"BatchTranslateDocumentRequest",
"BatchTranslateDocumentResponse",
"BatchTranslateMetadata",
"BatchTranslateResponse",
"BatchTranslateTextRequest",
"CreateAdaptiveMtDatasetRequest",
"CreateDatasetMetadata",
"CreateDatasetRequest",
"CreateGlossaryEntryRequest",
"CreateGlossaryMetadata",
"CreateGlossaryRequest",
"CreateModelMetadata",
"CreateModelRequest",
"Dataset",
"DatasetInputConfig",
"DatasetOutputConfig",
"DeleteAdaptiveMtDatasetRequest",
"DeleteAdaptiveMtFileRequest",
"DeleteDatasetMetadata",
"DeleteDatasetRequest",
"DeleteGlossaryEntryRequest",
"DeleteGlossaryMetadata",
"DeleteGlossaryRequest",
"DeleteGlossaryResponse",
"DeleteModelMetadata",
"DeleteModelRequest",
"DetectLanguageRequest",
"DetectLanguageResponse",
"DetectedLanguage",
"DocumentInputConfig",
"DocumentOutputConfig",
"DocumentTranslation",
"Example",
"ExportDataMetadata",
"ExportDataRequest",
"FileInputSource",
"GcsDestination",
"GcsInputSource",
"GcsOutputDestination",
"GcsSource",
"GetAdaptiveMtDatasetRequest",
"GetAdaptiveMtFileRequest",
"GetDatasetRequest",
"GetGlossaryEntryRequest",
"GetGlossaryRequest",
"GetModelRequest",
"GetSupportedLanguagesRequest",
"Glossary",
"GlossaryEntry",
"GlossaryInputConfig",
"GlossaryTerm",
"ImportAdaptiveMtFileRequest",
"ImportAdaptiveMtFileResponse",
"ImportDataMetadata",
"ImportDataRequest",
"InputConfig",
"ListAdaptiveMtDatasetsRequest",
"ListAdaptiveMtDatasetsResponse",
"ListAdaptiveMtFilesRequest",
"ListAdaptiveMtFilesResponse",
"ListAdaptiveMtSentencesRequest",
"ListAdaptiveMtSentencesResponse",
"ListDatasetsRequest",
"ListDatasetsResponse",
"ListExamplesRequest",
"ListExamplesResponse",
"ListGlossariesRequest",
"ListGlossariesResponse",
"ListGlossaryEntriesRequest",
"ListGlossaryEntriesResponse",
"ListModelsRequest",
"ListModelsResponse",
"Model",
"OperationState",
"OutputConfig",
"Romanization",
"RomanizeTextRequest",
"RomanizeTextResponse",
"SupportedLanguage",
"SupportedLanguages",
"TranslateDocumentRequest",
Expand All @@ -146,4 +230,8 @@
"TranslateTextResponse",
"Translation",
"TranslationServiceClient",
"TransliterationConfig",
"UpdateGlossaryEntryRequest",
"UpdateGlossaryMetadata",
"UpdateGlossaryRequest",
)
Loading

0 comments on commit edebf70

Please sign in to comment.