Skip to content

Commit b59d485

Browse files
chore: Use gapic-generator-python 0.65.0 (#141)
* chore: Use gapic-generator-python 0.65.0 PiperOrigin-RevId: 440970084 Source-Link: googleapis/googleapis@5e0a3d5 Source-Link: googleapis/googleapis-gen@b0c628a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjBjNjI4YTNmYWRlNzY4ZjIyNWQ3Njk5Mjc5MWVhMWJhMmE4ODFiZSJ9 * 🦉 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>
1 parent 23b563e commit b59d485

23 files changed

Lines changed: 152 additions & 602 deletions

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/auto_suggestion_service/async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -284,7 +284,6 @@ async def suggest_queries(
284284
r"""Gets a list of suggestions based on a prefix string.
285285
AutoSuggestion tolerance should be less than 1 second.
286286
287-
288287
.. code-block:: python
289288
290289
from google.cloud import dataqna_v1alpha

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/auto_suggestion_service/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -485,7 +485,6 @@ def suggest_queries(
485485
r"""Gets a list of suggestions based on a prefix string.
486486
AutoSuggestion tolerance should be less than 1 second.
487487
488-
489488
.. code-block:: python
490489
491490
from google.cloud import dataqna_v1alpha

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/auto_suggestion_service/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ def __init__(
8080
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8181
be used for service account credentials.
8282
"""
83+
8384
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8485
if ":" not in host:
8586
host += ":443"
@@ -148,5 +149,9 @@ def suggest_queries(
148149
]:
149150
raise NotImplementedError()
150151

152+
@property
153+
def kind(self) -> str:
154+
raise NotImplementedError()
155+
151156

152157
__all__ = ("AutoSuggestionServiceTransport",)

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/auto_suggestion_service/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,5 +330,9 @@ def suggest_queries(
330330
def close(self):
331331
self.grpc_channel.close()
332332

333+
@property
334+
def kind(self) -> str:
335+
return "grpc"
336+
333337

334338
__all__ = ("AutoSuggestionServiceGrpcTransport",)

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/question_service/async_client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import functools
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core.client_options import ClientOptions
@@ -655,7 +655,6 @@ async def update_user_feedback(
655655
r"""Updates user feedback. This creates user feedback if
656656
there was none before (upsert).
657657
658-
659658
.. code-block:: python
660659
661660
from google.cloud import dataqna_v1alpha

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/question_service/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from collections import OrderedDict
1717
import os
1818
import re
19-
from typing import Dict, Optional, Sequence, Tuple, Type, Union
19+
from typing import Dict, Mapping, Optional, Sequence, Tuple, Type, Union
2020
import pkg_resources
2121

2222
from google.api_core import client_options as client_options_lib
@@ -897,7 +897,6 @@ def update_user_feedback(
897897
r"""Updates user feedback. This creates user feedback if
898898
there was none before (upsert).
899899
900-
901900
.. code-block:: python
902901
903902
from google.cloud import dataqna_v1alpha

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/question_service/transports/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ def __init__(
8484
always_use_jwt_access (Optional[bool]): Whether self signed JWT should
8585
be used for service account credentials.
8686
"""
87+
8788
# Save the hostname. Default to port 443 (HTTPS) if none is specified.
8889
if ":" not in host:
8990
host += ":443"
@@ -207,5 +208,9 @@ def update_user_feedback(
207208
]:
208209
raise NotImplementedError()
209210

211+
@property
212+
def kind(self) -> str:
213+
raise NotImplementedError()
214+
210215

211216
__all__ = ("QuestionServiceTransport",)

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/services/question_service/transports/grpc.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,5 +385,9 @@ def update_user_feedback(
385385
def close(self):
386386
self.grpc_channel.close()
387387

388+
@property
389+
def kind(self) -> str:
390+
return "grpc"
391+
388392

389393
__all__ = ("QuestionServiceGrpcTransport",)

packages/google-cloud-data-qna/google/cloud/dataqna_v1alpha/types/__init__.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from .annotated_string import AnnotatedString
16+
from .annotated_string import (
17+
AnnotatedString,
18+
)
1719
from .auto_suggestion_service import (
1820
Suggestion,
1921
SuggestionInfo,
@@ -40,7 +42,9 @@
4042
GetUserFeedbackRequest,
4143
UpdateUserFeedbackRequest,
4244
)
43-
from .user_feedback import UserFeedback
45+
from .user_feedback import (
46+
UserFeedback,
47+
)
4448

4549
__all__ = (
4650
"AnnotatedString",

packages/google-cloud-data-qna/samples/generated_samples/dataqna_generated_dataqna_v1alpha_auto_suggestion_service_suggest_queries_async.py

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)