Skip to content
This repository was archived by the owner on Feb 23, 2024. It is now read-only.

Commit 959a35c

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#158)
fix: add async client to %name_%version/init.py chore: add autogenerated snippets chore: remove auth, policy, and options from the reserved names list feat: support self-signed JWT flow for service accounts chore: enable GAPIC metadata generation chore: sort subpackages in %namespace/%name/init.py fix(deps): add packaging requirement
1 parent 0e8059e commit 959a35c

40 files changed

Lines changed: 1682 additions & 1276 deletions

docs/translate_v3/translation_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ TranslationService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.translate_v3.services.translation_service.pagers
109
:members:
1110
:inherited-members:

docs/translate_v3beta1/translation_service.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ TranslationService
55
:members:
66
:inherited-members:
77

8-
98
.. automodule:: google.cloud.translate_v3beta1.services.translation_service.pagers
109
:members:
1110
:inherited-members:

google/cloud/translate/__init__.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -15,12 +14,13 @@
1514
# limitations under the License.
1615
#
1716

18-
from google.cloud.translate_v3.services.translation_service.async_client import (
19-
TranslationServiceAsyncClient,
20-
)
2117
from google.cloud.translate_v3.services.translation_service.client import (
2218
TranslationServiceClient,
2319
)
20+
from google.cloud.translate_v3.services.translation_service.async_client import (
21+
TranslationServiceAsyncClient,
22+
)
23+
2424
from google.cloud.translate_v3.types.translation_service import BatchTranslateMetadata
2525
from google.cloud.translate_v3.types.translation_service import BatchTranslateResponse
2626
from google.cloud.translate_v3.types.translation_service import (
@@ -31,9 +31,9 @@
3131
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryMetadata
3232
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryRequest
3333
from google.cloud.translate_v3.types.translation_service import DeleteGlossaryResponse
34+
from google.cloud.translate_v3.types.translation_service import DetectedLanguage
3435
from google.cloud.translate_v3.types.translation_service import DetectLanguageRequest
3536
from google.cloud.translate_v3.types.translation_service import DetectLanguageResponse
36-
from google.cloud.translate_v3.types.translation_service import DetectedLanguage
3737
from google.cloud.translate_v3.types.translation_service import GcsDestination
3838
from google.cloud.translate_v3.types.translation_service import GcsSource
3939
from google.cloud.translate_v3.types.translation_service import GetGlossaryRequest
@@ -56,6 +56,8 @@
5656
from google.cloud.translate_v3.types.translation_service import Translation
5757

5858
__all__ = (
59+
"TranslationServiceClient",
60+
"TranslationServiceAsyncClient",
5961
"BatchTranslateMetadata",
6062
"BatchTranslateResponse",
6163
"BatchTranslateTextRequest",
@@ -64,9 +66,9 @@
6466
"DeleteGlossaryMetadata",
6567
"DeleteGlossaryRequest",
6668
"DeleteGlossaryResponse",
69+
"DetectedLanguage",
6770
"DetectLanguageRequest",
6871
"DetectLanguageResponse",
69-
"DetectedLanguage",
7072
"GcsDestination",
7173
"GcsSource",
7274
"GetGlossaryRequest",
@@ -83,6 +85,4 @@
8385
"TranslateTextRequest",
8486
"TranslateTextResponse",
8587
"Translation",
86-
"TranslationServiceAsyncClient",
87-
"TranslationServiceClient",
8888
)

google/cloud/translate_v3/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,6 +15,8 @@
1615
#
1716

1817
from .services.translation_service import TranslationServiceClient
18+
from .services.translation_service import TranslationServiceAsyncClient
19+
1920
from .types.translation_service import BatchTranslateMetadata
2021
from .types.translation_service import BatchTranslateResponse
2122
from .types.translation_service import BatchTranslateTextRequest
@@ -24,9 +25,9 @@
2425
from .types.translation_service import DeleteGlossaryMetadata
2526
from .types.translation_service import DeleteGlossaryRequest
2627
from .types.translation_service import DeleteGlossaryResponse
28+
from .types.translation_service import DetectedLanguage
2729
from .types.translation_service import DetectLanguageRequest
2830
from .types.translation_service import DetectLanguageResponse
29-
from .types.translation_service import DetectedLanguage
3031
from .types.translation_service import GcsDestination
3132
from .types.translation_service import GcsSource
3233
from .types.translation_service import GetGlossaryRequest
@@ -44,8 +45,8 @@
4445
from .types.translation_service import TranslateTextResponse
4546
from .types.translation_service import Translation
4647

47-
4848
__all__ = (
49+
"TranslationServiceAsyncClient",
4950
"BatchTranslateMetadata",
5051
"BatchTranslateResponse",
5152
"BatchTranslateTextRequest",
Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,103 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.translate_v3",
5+
"protoPackage": "google.cloud.translation.v3",
6+
"schema": "1.0",
7+
"services": {
8+
"TranslationService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "TranslationServiceClient",
12+
"rpcs": {
13+
"BatchTranslateText": {
14+
"methods": [
15+
"batch_translate_text"
16+
]
17+
},
18+
"CreateGlossary": {
19+
"methods": [
20+
"create_glossary"
21+
]
22+
},
23+
"DeleteGlossary": {
24+
"methods": [
25+
"delete_glossary"
26+
]
27+
},
28+
"DetectLanguage": {
29+
"methods": [
30+
"detect_language"
31+
]
32+
},
33+
"GetGlossary": {
34+
"methods": [
35+
"get_glossary"
36+
]
37+
},
38+
"GetSupportedLanguages": {
39+
"methods": [
40+
"get_supported_languages"
41+
]
42+
},
43+
"ListGlossaries": {
44+
"methods": [
45+
"list_glossaries"
46+
]
47+
},
48+
"TranslateText": {
49+
"methods": [
50+
"translate_text"
51+
]
52+
}
53+
}
54+
},
55+
"grpc-async": {
56+
"libraryClient": "TranslationServiceAsyncClient",
57+
"rpcs": {
58+
"BatchTranslateText": {
59+
"methods": [
60+
"batch_translate_text"
61+
]
62+
},
63+
"CreateGlossary": {
64+
"methods": [
65+
"create_glossary"
66+
]
67+
},
68+
"DeleteGlossary": {
69+
"methods": [
70+
"delete_glossary"
71+
]
72+
},
73+
"DetectLanguage": {
74+
"methods": [
75+
"detect_language"
76+
]
77+
},
78+
"GetGlossary": {
79+
"methods": [
80+
"get_glossary"
81+
]
82+
},
83+
"GetSupportedLanguages": {
84+
"methods": [
85+
"get_supported_languages"
86+
]
87+
},
88+
"ListGlossaries": {
89+
"methods": [
90+
"list_glossaries"
91+
]
92+
},
93+
"TranslateText": {
94+
"methods": [
95+
"translate_text"
96+
]
97+
}
98+
}
99+
}
100+
}
101+
}
102+
}
103+
}

google/cloud/translate_v3/services/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");

google/cloud/translate_v3/services/translation_service/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# -*- coding: utf-8 -*-
2-
32
# Copyright 2020 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -14,7 +13,6 @@
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
1615
#
17-
1816
from .client import TranslationServiceClient
1917
from .async_client import TranslationServiceAsyncClient
2018

0 commit comments

Comments
 (0)