Skip to content

Commit 3491bb7

Browse files
chore: Update gapic-generator-python to v1.8.5 (#426)
* chore: Update gapic-generator-python to v1.8.5 PiperOrigin-RevId: 511892190 Source-Link: googleapis/googleapis@a45d9c0 Source-Link: googleapis/googleapis-gen@1907294 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMTkwNzI5NGIxZDgzNjVlYTI0ZjhjNWYyZTA1OWE2NDEyNGM0ZWQzYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 9333611 commit 3491bb7

6 files changed

Lines changed: 20 additions & 16 deletions

File tree

packages/google-cloud-language/google/cloud/language_v1/services/language_service/transports/rest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming
@@ -359,7 +359,7 @@ class _AnalyzeEntities(LanguageServiceRestStub):
359359
def __hash__(self):
360360
return hash("AnalyzeEntities")
361361

362-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
362+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
363363

364364
@classmethod
365365
def _get_unset_required_fields(cls, message_dict):
@@ -456,7 +456,7 @@ class _AnalyzeEntitySentiment(LanguageServiceRestStub):
456456
def __hash__(self):
457457
return hash("AnalyzeEntitySentiment")
458458

459-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
459+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
460460

461461
@classmethod
462462
def _get_unset_required_fields(cls, message_dict):
@@ -557,7 +557,7 @@ class _AnalyzeSentiment(LanguageServiceRestStub):
557557
def __hash__(self):
558558
return hash("AnalyzeSentiment")
559559

560-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
560+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
561561

562562
@classmethod
563563
def _get_unset_required_fields(cls, message_dict):
@@ -658,7 +658,7 @@ class _AnalyzeSyntax(LanguageServiceRestStub):
658658
def __hash__(self):
659659
return hash("AnalyzeSyntax")
660660

661-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
661+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
662662

663663
@classmethod
664664
def _get_unset_required_fields(cls, message_dict):
@@ -753,7 +753,7 @@ class _AnnotateText(LanguageServiceRestStub):
753753
def __hash__(self):
754754
return hash("AnnotateText")
755755

756-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
756+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
757757

758758
@classmethod
759759
def _get_unset_required_fields(cls, message_dict):
@@ -854,7 +854,7 @@ class _ClassifyText(LanguageServiceRestStub):
854854
def __hash__(self):
855855
return hash("ClassifyText")
856856

857-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
857+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
858858

859859
@classmethod
860860
def _get_unset_required_fields(cls, message_dict):

packages/google-cloud-language/google/cloud/language_v1/types/language_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
import proto # type: ignore

packages/google-cloud-language/google/cloud/language_v1beta2/services/language_service/transports/rest.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
import dataclasses
1818
import json # type: ignore
1919
import re
20-
from typing import Callable, Dict, List, Optional, Sequence, Tuple, Union
20+
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
2121
import warnings
2222

2323
from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming
@@ -359,7 +359,7 @@ class _AnalyzeEntities(LanguageServiceRestStub):
359359
def __hash__(self):
360360
return hash("AnalyzeEntities")
361361

362-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
362+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
363363

364364
@classmethod
365365
def _get_unset_required_fields(cls, message_dict):
@@ -456,7 +456,7 @@ class _AnalyzeEntitySentiment(LanguageServiceRestStub):
456456
def __hash__(self):
457457
return hash("AnalyzeEntitySentiment")
458458

459-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
459+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
460460

461461
@classmethod
462462
def _get_unset_required_fields(cls, message_dict):
@@ -557,7 +557,7 @@ class _AnalyzeSentiment(LanguageServiceRestStub):
557557
def __hash__(self):
558558
return hash("AnalyzeSentiment")
559559

560-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
560+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
561561

562562
@classmethod
563563
def _get_unset_required_fields(cls, message_dict):
@@ -658,7 +658,7 @@ class _AnalyzeSyntax(LanguageServiceRestStub):
658658
def __hash__(self):
659659
return hash("AnalyzeSyntax")
660660

661-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
661+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
662662

663663
@classmethod
664664
def _get_unset_required_fields(cls, message_dict):
@@ -753,7 +753,7 @@ class _AnnotateText(LanguageServiceRestStub):
753753
def __hash__(self):
754754
return hash("AnnotateText")
755755

756-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
756+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
757757

758758
@classmethod
759759
def _get_unset_required_fields(cls, message_dict):
@@ -854,7 +854,7 @@ class _ClassifyText(LanguageServiceRestStub):
854854
def __hash__(self):
855855
return hash("ClassifyText")
856856

857-
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, str] = {}
857+
__REQUIRED_FIELDS_DEFAULT_VALUES: Dict[str, Any] = {}
858858

859859
@classmethod
860860
def _get_unset_required_fields(cls, message_dict):

packages/google-cloud-language/google/cloud/language_v1beta2/types/language_service.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from __future__ import annotations
17+
1618
from typing import MutableMapping, MutableSequence
1719

1820
import proto # type: ignore

packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-language",
11-
"version": "2.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

packages/google-cloud-language/samples/generated_samples/snippet_metadata_google.cloud.language.v1beta2.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
],
99
"language": "PYTHON",
1010
"name": "google-cloud-language",
11-
"version": "2.9.0"
11+
"version": "0.1.0"
1212
},
1313
"snippets": [
1414
{

0 commit comments

Comments
 (0)