Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Commit 0dcb15e

Browse files
chore: upgrade gapic-generator-python to 0.46.3 (#111)
PiperOrigin-RevId: 373649163 Source-Link: googleapis/googleapis@7e1b14e Source-Link: https://github.com/googleapis/googleapis-gen/commit/0a3c7d272d697796db75857bac73905c68e498c3 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
1 parent 1776edc commit 0dcb15e

35 files changed

+1302
-848
lines changed

google/cloud/language/__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.language_v1.services.language_service.async_client import (
19-
LanguageServiceAsyncClient,
20-
)
2117
from google.cloud.language_v1.services.language_service.client import (
2218
LanguageServiceClient,
2319
)
20+
from google.cloud.language_v1.services.language_service.async_client import (
21+
LanguageServiceAsyncClient,
22+
)
23+
2424
from google.cloud.language_v1.types.language_service import AnalyzeEntitiesRequest
2525
from google.cloud.language_v1.types.language_service import AnalyzeEntitiesResponse
2626
from google.cloud.language_v1.types.language_service import (
@@ -40,16 +40,18 @@
4040
from google.cloud.language_v1.types.language_service import ClassifyTextResponse
4141
from google.cloud.language_v1.types.language_service import DependencyEdge
4242
from google.cloud.language_v1.types.language_service import Document
43-
from google.cloud.language_v1.types.language_service import EncodingType
4443
from google.cloud.language_v1.types.language_service import Entity
4544
from google.cloud.language_v1.types.language_service import EntityMention
4645
from google.cloud.language_v1.types.language_service import PartOfSpeech
4746
from google.cloud.language_v1.types.language_service import Sentence
4847
from google.cloud.language_v1.types.language_service import Sentiment
4948
from google.cloud.language_v1.types.language_service import TextSpan
5049
from google.cloud.language_v1.types.language_service import Token
50+
from google.cloud.language_v1.types.language_service import EncodingType
5151

5252
__all__ = (
53+
"LanguageServiceClient",
54+
"LanguageServiceAsyncClient",
5355
"AnalyzeEntitiesRequest",
5456
"AnalyzeEntitiesResponse",
5557
"AnalyzeEntitySentimentRequest",
@@ -65,14 +67,12 @@
6567
"ClassifyTextResponse",
6668
"DependencyEdge",
6769
"Document",
68-
"EncodingType",
6970
"Entity",
7071
"EntityMention",
71-
"LanguageServiceAsyncClient",
72-
"LanguageServiceClient",
7372
"PartOfSpeech",
7473
"Sentence",
7574
"Sentiment",
7675
"TextSpan",
7776
"Token",
77+
"EncodingType",
7878
)

google/cloud/language_v1/__init__.py

Lines changed: 5 additions & 4 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.language_service import LanguageServiceClient
18+
from .services.language_service import LanguageServiceAsyncClient
19+
1920
from .types.language_service import AnalyzeEntitiesRequest
2021
from .types.language_service import AnalyzeEntitiesResponse
2122
from .types.language_service import AnalyzeEntitySentimentRequest
@@ -31,17 +32,17 @@
3132
from .types.language_service import ClassifyTextResponse
3233
from .types.language_service import DependencyEdge
3334
from .types.language_service import Document
34-
from .types.language_service import EncodingType
3535
from .types.language_service import Entity
3636
from .types.language_service import EntityMention
3737
from .types.language_service import PartOfSpeech
3838
from .types.language_service import Sentence
3939
from .types.language_service import Sentiment
4040
from .types.language_service import TextSpan
4141
from .types.language_service import Token
42-
42+
from .types.language_service import EncodingType
4343

4444
__all__ = (
45+
"LanguageServiceAsyncClient",
4546
"AnalyzeEntitiesRequest",
4647
"AnalyzeEntitiesResponse",
4748
"AnalyzeEntitySentimentRequest",
@@ -60,10 +61,10 @@
6061
"EncodingType",
6162
"Entity",
6263
"EntityMention",
64+
"LanguageServiceClient",
6365
"PartOfSpeech",
6466
"Sentence",
6567
"Sentiment",
6668
"TextSpan",
6769
"Token",
68-
"LanguageServiceClient",
6970
)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.language_v1",
5+
"protoPackage": "google.cloud.language.v1",
6+
"schema": "1.0",
7+
"services": {
8+
"LanguageService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "LanguageServiceClient",
12+
"rpcs": {
13+
"AnalyzeEntities": {
14+
"methods": [
15+
"analyze_entities"
16+
]
17+
},
18+
"AnalyzeEntitySentiment": {
19+
"methods": [
20+
"analyze_entity_sentiment"
21+
]
22+
},
23+
"AnalyzeSentiment": {
24+
"methods": [
25+
"analyze_sentiment"
26+
]
27+
},
28+
"AnalyzeSyntax": {
29+
"methods": [
30+
"analyze_syntax"
31+
]
32+
},
33+
"AnnotateText": {
34+
"methods": [
35+
"annotate_text"
36+
]
37+
},
38+
"ClassifyText": {
39+
"methods": [
40+
"classify_text"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "LanguageServiceAsyncClient",
47+
"rpcs": {
48+
"AnalyzeEntities": {
49+
"methods": [
50+
"analyze_entities"
51+
]
52+
},
53+
"AnalyzeEntitySentiment": {
54+
"methods": [
55+
"analyze_entity_sentiment"
56+
]
57+
},
58+
"AnalyzeSentiment": {
59+
"methods": [
60+
"analyze_sentiment"
61+
]
62+
},
63+
"AnalyzeSyntax": {
64+
"methods": [
65+
"analyze_syntax"
66+
]
67+
},
68+
"AnnotateText": {
69+
"methods": [
70+
"annotate_text"
71+
]
72+
},
73+
"ClassifyText": {
74+
"methods": [
75+
"classify_text"
76+
]
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}

google/cloud/language_v1/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/language_v1/services/language_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 LanguageServiceClient
1917
from .async_client import LanguageServiceAsyncClient
2018

0 commit comments

Comments
 (0)