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

Commit

Permalink
chore: upgrade gapic-generator-python to 0.46.3 (#111)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 373649163

Source-Link: googleapis/googleapis@7e1b14e

Source-Link: googleapis/googleapis-gen@0a3c7d2

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
  • Loading branch information
gcf-owl-bot[bot] committed May 20, 2021
1 parent 1776edc commit 0dcb15e
Show file tree
Hide file tree
Showing 35 changed files with 1,302 additions and 848 deletions.
16 changes: 8 additions & 8 deletions google/cloud/language/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -15,12 +14,13 @@
# limitations under the License.
#

from google.cloud.language_v1.services.language_service.async_client import (
LanguageServiceAsyncClient,
)
from google.cloud.language_v1.services.language_service.client import (
LanguageServiceClient,
)
from google.cloud.language_v1.services.language_service.async_client import (
LanguageServiceAsyncClient,
)

from google.cloud.language_v1.types.language_service import AnalyzeEntitiesRequest
from google.cloud.language_v1.types.language_service import AnalyzeEntitiesResponse
from google.cloud.language_v1.types.language_service import (
Expand All @@ -40,16 +40,18 @@
from google.cloud.language_v1.types.language_service import ClassifyTextResponse
from google.cloud.language_v1.types.language_service import DependencyEdge
from google.cloud.language_v1.types.language_service import Document
from google.cloud.language_v1.types.language_service import EncodingType
from google.cloud.language_v1.types.language_service import Entity
from google.cloud.language_v1.types.language_service import EntityMention
from google.cloud.language_v1.types.language_service import PartOfSpeech
from google.cloud.language_v1.types.language_service import Sentence
from google.cloud.language_v1.types.language_service import Sentiment
from google.cloud.language_v1.types.language_service import TextSpan
from google.cloud.language_v1.types.language_service import Token
from google.cloud.language_v1.types.language_service import EncodingType

__all__ = (
"LanguageServiceClient",
"LanguageServiceAsyncClient",
"AnalyzeEntitiesRequest",
"AnalyzeEntitiesResponse",
"AnalyzeEntitySentimentRequest",
Expand All @@ -65,14 +67,12 @@
"ClassifyTextResponse",
"DependencyEdge",
"Document",
"EncodingType",
"Entity",
"EntityMention",
"LanguageServiceAsyncClient",
"LanguageServiceClient",
"PartOfSpeech",
"Sentence",
"Sentiment",
"TextSpan",
"Token",
"EncodingType",
)
9 changes: 5 additions & 4 deletions google/cloud/language_v1/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -16,6 +15,8 @@
#

from .services.language_service import LanguageServiceClient
from .services.language_service import LanguageServiceAsyncClient

from .types.language_service import AnalyzeEntitiesRequest
from .types.language_service import AnalyzeEntitiesResponse
from .types.language_service import AnalyzeEntitySentimentRequest
Expand All @@ -31,17 +32,17 @@
from .types.language_service import ClassifyTextResponse
from .types.language_service import DependencyEdge
from .types.language_service import Document
from .types.language_service import EncodingType
from .types.language_service import Entity
from .types.language_service import EntityMention
from .types.language_service import PartOfSpeech
from .types.language_service import Sentence
from .types.language_service import Sentiment
from .types.language_service import TextSpan
from .types.language_service import Token

from .types.language_service import EncodingType

__all__ = (
"LanguageServiceAsyncClient",
"AnalyzeEntitiesRequest",
"AnalyzeEntitiesResponse",
"AnalyzeEntitySentimentRequest",
Expand All @@ -60,10 +61,10 @@
"EncodingType",
"Entity",
"EntityMention",
"LanguageServiceClient",
"PartOfSpeech",
"Sentence",
"Sentiment",
"TextSpan",
"Token",
"LanguageServiceClient",
)
83 changes: 83 additions & 0 deletions google/cloud/language_v1/gapic_metadata.json
@@ -0,0 +1,83 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.language_v1",
"protoPackage": "google.cloud.language.v1",
"schema": "1.0",
"services": {
"LanguageService": {
"clients": {
"grpc": {
"libraryClient": "LanguageServiceClient",
"rpcs": {
"AnalyzeEntities": {
"methods": [
"analyze_entities"
]
},
"AnalyzeEntitySentiment": {
"methods": [
"analyze_entity_sentiment"
]
},
"AnalyzeSentiment": {
"methods": [
"analyze_sentiment"
]
},
"AnalyzeSyntax": {
"methods": [
"analyze_syntax"
]
},
"AnnotateText": {
"methods": [
"annotate_text"
]
},
"ClassifyText": {
"methods": [
"classify_text"
]
}
}
},
"grpc-async": {
"libraryClient": "LanguageServiceAsyncClient",
"rpcs": {
"AnalyzeEntities": {
"methods": [
"analyze_entities"
]
},
"AnalyzeEntitySentiment": {
"methods": [
"analyze_entity_sentiment"
]
},
"AnalyzeSentiment": {
"methods": [
"analyze_sentiment"
]
},
"AnalyzeSyntax": {
"methods": [
"analyze_syntax"
]
},
"AnnotateText": {
"methods": [
"annotate_text"
]
},
"ClassifyText": {
"methods": [
"classify_text"
]
}
}
}
}
}
}
}
1 change: 0 additions & 1 deletion google/cloud/language_v1/services/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-

# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand All @@ -14,7 +13,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .client import LanguageServiceClient
from .async_client import LanguageServiceAsyncClient

Expand Down

0 comments on commit 0dcb15e

Please sign in to comment.