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

Commit cce09f1

Browse files
chore: upgrade gapic-generator python to 0.44.1
PiperOrigin-RevId: 370926454 Source-Author: Google APIs <noreply@google.com> Source-Date: Wed Apr 28 09:58:07 2021 -0700 Source-Repo: googleapis/googleapis Source-Sha: 382ed8de075e1ddc9baa4ebf8dbc5b2c257a77b8 Source-Link: googleapis/googleapis@382ed8d
1 parent 1ef14a9 commit cce09f1

File tree

13 files changed

+70
-105
lines changed

13 files changed

+70
-105
lines changed

google/cloud/dataqna/__init__.py

Lines changed: 25 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -14,38 +14,39 @@
1414
# limitations under the License.
1515
#
1616

17-
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.async_client import (
18-
AutoSuggestionServiceAsyncClient,
19-
)
2017
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.client import (
2118
AutoSuggestionServiceClient,
2219
)
23-
from google.cloud.dataqna_v1alpha.services.question_service.async_client import (
24-
QuestionServiceAsyncClient,
20+
from google.cloud.dataqna_v1alpha.services.auto_suggestion_service.async_client import (
21+
AutoSuggestionServiceAsyncClient,
2522
)
2623
from google.cloud.dataqna_v1alpha.services.question_service.client import (
2724
QuestionServiceClient,
2825
)
26+
from google.cloud.dataqna_v1alpha.services.question_service.async_client import (
27+
QuestionServiceAsyncClient,
28+
)
29+
2930
from google.cloud.dataqna_v1alpha.types.annotated_string import AnnotatedString
31+
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import Suggestion
32+
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionInfo
3033
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import (
3134
SuggestQueriesRequest,
3235
)
3336
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import (
3437
SuggestQueriesResponse,
3538
)
36-
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import Suggestion
37-
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionInfo
3839
from google.cloud.dataqna_v1alpha.types.auto_suggestion_service import SuggestionType
3940
from google.cloud.dataqna_v1alpha.types.question import BigQueryJob
4041
from google.cloud.dataqna_v1alpha.types.question import DataQuery
4142
from google.cloud.dataqna_v1alpha.types.question import DebugFlags
4243
from google.cloud.dataqna_v1alpha.types.question import ExecutionInfo
4344
from google.cloud.dataqna_v1alpha.types.question import HumanReadable
44-
from google.cloud.dataqna_v1alpha.types.question import InterpretEntity
45-
from google.cloud.dataqna_v1alpha.types.question import InterpretError
4645
from google.cloud.dataqna_v1alpha.types.question import Interpretation
4746
from google.cloud.dataqna_v1alpha.types.question import InterpretationStructure
47+
from google.cloud.dataqna_v1alpha.types.question import InterpretError
4848
from google.cloud.dataqna_v1alpha.types.question import Question
49+
from google.cloud.dataqna_v1alpha.types.question import InterpretEntity
4950
from google.cloud.dataqna_v1alpha.types.question_service import CreateQuestionRequest
5051
from google.cloud.dataqna_v1alpha.types.question_service import ExecuteQuestionRequest
5152
from google.cloud.dataqna_v1alpha.types.question_service import GetQuestionRequest
@@ -56,30 +57,30 @@
5657
from google.cloud.dataqna_v1alpha.types.user_feedback import UserFeedback
5758

5859
__all__ = (
59-
"AnnotatedString",
60-
"AutoSuggestionServiceAsyncClient",
6160
"AutoSuggestionServiceClient",
61+
"AutoSuggestionServiceAsyncClient",
62+
"QuestionServiceClient",
63+
"QuestionServiceAsyncClient",
64+
"AnnotatedString",
65+
"Suggestion",
66+
"SuggestionInfo",
67+
"SuggestQueriesRequest",
68+
"SuggestQueriesResponse",
69+
"SuggestionType",
6270
"BigQueryJob",
63-
"CreateQuestionRequest",
6471
"DataQuery",
6572
"DebugFlags",
66-
"ExecuteQuestionRequest",
6773
"ExecutionInfo",
68-
"GetQuestionRequest",
69-
"GetUserFeedbackRequest",
7074
"HumanReadable",
71-
"InterpretEntity",
72-
"InterpretError",
7375
"Interpretation",
7476
"InterpretationStructure",
77+
"InterpretError",
7578
"Question",
76-
"QuestionServiceAsyncClient",
77-
"QuestionServiceClient",
78-
"SuggestQueriesRequest",
79-
"SuggestQueriesResponse",
80-
"Suggestion",
81-
"SuggestionInfo",
82-
"SuggestionType",
79+
"InterpretEntity",
80+
"CreateQuestionRequest",
81+
"ExecuteQuestionRequest",
82+
"GetQuestionRequest",
83+
"GetUserFeedbackRequest",
8384
"UpdateUserFeedbackRequest",
8485
"UserFeedback",
8586
)

google/cloud/dataqna_v1alpha/__init__.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,21 @@
1818
from .services.question_service import QuestionServiceClient
1919

2020
from .types.annotated_string import AnnotatedString
21-
from .types.auto_suggestion_service import SuggestQueriesRequest
22-
from .types.auto_suggestion_service import SuggestQueriesResponse
2321
from .types.auto_suggestion_service import Suggestion
2422
from .types.auto_suggestion_service import SuggestionInfo
23+
from .types.auto_suggestion_service import SuggestQueriesRequest
24+
from .types.auto_suggestion_service import SuggestQueriesResponse
2525
from .types.auto_suggestion_service import SuggestionType
2626
from .types.question import BigQueryJob
2727
from .types.question import DataQuery
2828
from .types.question import DebugFlags
2929
from .types.question import ExecutionInfo
3030
from .types.question import HumanReadable
31-
from .types.question import InterpretEntity
32-
from .types.question import InterpretError
3331
from .types.question import Interpretation
3432
from .types.question import InterpretationStructure
33+
from .types.question import InterpretError
3534
from .types.question import Question
35+
from .types.question import InterpretEntity
3636
from .types.question_service import CreateQuestionRequest
3737
from .types.question_service import ExecuteQuestionRequest
3838
from .types.question_service import GetQuestionRequest
@@ -41,28 +41,28 @@
4141
from .types.user_feedback import UserFeedback
4242

4343
__all__ = (
44-
"AnnotatedString",
4544
"AutoSuggestionServiceClient",
45+
"QuestionServiceClient",
46+
"AnnotatedString",
47+
"Suggestion",
48+
"SuggestionInfo",
49+
"SuggestQueriesRequest",
50+
"SuggestQueriesResponse",
51+
"SuggestionType",
4652
"BigQueryJob",
47-
"CreateQuestionRequest",
4853
"DataQuery",
4954
"DebugFlags",
50-
"ExecuteQuestionRequest",
5155
"ExecutionInfo",
52-
"GetQuestionRequest",
53-
"GetUserFeedbackRequest",
5456
"HumanReadable",
55-
"InterpretEntity",
56-
"InterpretError",
5757
"Interpretation",
5858
"InterpretationStructure",
59+
"InterpretError",
5960
"Question",
60-
"SuggestQueriesRequest",
61-
"SuggestQueriesResponse",
62-
"Suggestion",
63-
"SuggestionInfo",
64-
"SuggestionType",
61+
"InterpretEntity",
62+
"CreateQuestionRequest",
63+
"ExecuteQuestionRequest",
64+
"GetQuestionRequest",
65+
"GetUserFeedbackRequest",
6566
"UpdateUserFeedbackRequest",
6667
"UserFeedback",
67-
"QuestionServiceClient",
6868
)

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
@@ -244,8 +244,7 @@ async def suggest_queries(
244244
245245
Args:
246246
request (:class:`google.cloud.dataqna_v1alpha.types.SuggestQueriesRequest`):
247-
The request object.
248-
Request for query suggestions.
247+
The request object. Request for query suggestions.
249248
retry (google.api_core.retry.Retry): Designation of what errors, if any,
250249
should be retried.
251250
timeout (float): The timeout for this request.

google/cloud/dataqna_v1alpha/services/auto_suggestion_service/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ def suggest_queries(
409409
410410
Args:
411411
request (google.cloud.dataqna_v1alpha.types.SuggestQueriesRequest):
412-
The request object.
413-
Request for query suggestions.
412+
The request object. Request for query suggestions.
414413
retry (google.api_core.retry.Retry): Designation of what errors, if any,
415414
should be retried.
416415
timeout (float): The timeout for this request.

google/cloud/dataqna_v1alpha/services/auto_suggestion_service/transports/grpc.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,9 +298,7 @@ def suggest_queries(
298298
[auto_suggestion_service.SuggestQueriesRequest],
299299
auto_suggestion_service.SuggestQueriesResponse,
300300
]:
301-
r"""Return a callable for the
302-
suggest queries
303-
method over gRPC.
301+
r"""Return a callable for the suggest queries method over gRPC.
304302
305303
Gets a list of suggestions based on a prefix string.
306304
AutoSuggestion tolerance should be less than 1 second.

google/cloud/dataqna_v1alpha/services/auto_suggestion_service/transports/grpc_asyncio.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,7 @@ def suggest_queries(
302302
[auto_suggestion_service.SuggestQueriesRequest],
303303
Awaitable[auto_suggestion_service.SuggestQueriesResponse],
304304
]:
305-
r"""Return a callable for the
306-
suggest queries
307-
method over gRPC.
305+
r"""Return a callable for the suggest queries method over gRPC.
308306
309307
Gets a list of suggestions based on a prefix string.
310308
AutoSuggestion tolerance should be less than 1 second.

google/cloud/dataqna_v1alpha/services/question_service/async_client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ async def get_question(
200200
201201
Args:
202202
request (:class:`google.cloud.dataqna_v1alpha.types.GetQuestionRequest`):
203-
The request object.
204-
A request to get a previously
203+
The request object. A request to get a previously
205204
created question.
206205
name (:class:`str`):
207206
Required. The unique identifier for the question.
@@ -276,8 +275,7 @@ async def create_question(
276275
277276
Args:
278277
request (:class:`google.cloud.dataqna_v1alpha.types.CreateQuestionRequest`):
279-
The request object.
280-
Request to create a question
278+
The request object. Request to create a question
281279
resource.
282280
parent (:class:`str`):
283281
Required. The name of the project this data source
@@ -360,8 +358,7 @@ async def execute_question(
360358
361359
Args:
362360
request (:class:`google.cloud.dataqna_v1alpha.types.ExecuteQuestionRequest`):
363-
The request object.
364-
Request to execute an
361+
The request object. Request to execute an
365362
interpretation.
366363
name (:class:`str`):
367364
Required. The unique identifier for the question.
@@ -444,8 +441,7 @@ async def get_user_feedback(
444441
445442
Args:
446443
request (:class:`google.cloud.dataqna_v1alpha.types.GetUserFeedbackRequest`):
447-
The request object.
448-
Request to get user feedback.
444+
The request object. Request to get user feedback.
449445
name (:class:`str`):
450446
Required. The unique identifier for the user feedback.
451447
User feedback is a singleton resource on a Question.
@@ -517,8 +513,7 @@ async def update_user_feedback(
517513
518514
Args:
519515
request (:class:`google.cloud.dataqna_v1alpha.types.UpdateUserFeedbackRequest`):
520-
The request object.
521-
Request to updates user feedback.
516+
The request object. Request to updates user feedback.
522517
user_feedback (:class:`google.cloud.dataqna_v1alpha.types.UserFeedback`):
523518
Required. The user feedback to
524519
update. This can be called even if there

google/cloud/dataqna_v1alpha/services/question_service/client.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,7 @@ def get_question(
392392
393393
Args:
394394
request (google.cloud.dataqna_v1alpha.types.GetQuestionRequest):
395-
The request object.
396-
A request to get a previously
395+
The request object. A request to get a previously
397396
created question.
398397
name (str):
399398
Required. The unique identifier for the question.
@@ -468,8 +467,7 @@ def create_question(
468467
469468
Args:
470469
request (google.cloud.dataqna_v1alpha.types.CreateQuestionRequest):
471-
The request object.
472-
Request to create a question
470+
The request object. Request to create a question
473471
resource.
474472
parent (str):
475473
Required. The name of the project this data source
@@ -552,8 +550,7 @@ def execute_question(
552550
553551
Args:
554552
request (google.cloud.dataqna_v1alpha.types.ExecuteQuestionRequest):
555-
The request object.
556-
Request to execute an
553+
The request object. Request to execute an
557554
interpretation.
558555
name (str):
559556
Required. The unique identifier for the question.
@@ -636,8 +633,7 @@ def get_user_feedback(
636633
637634
Args:
638635
request (google.cloud.dataqna_v1alpha.types.GetUserFeedbackRequest):
639-
The request object.
640-
Request to get user feedback.
636+
The request object. Request to get user feedback.
641637
name (str):
642638
Required. The unique identifier for the user feedback.
643639
User feedback is a singleton resource on a Question.
@@ -709,8 +705,7 @@ def update_user_feedback(
709705
710706
Args:
711707
request (google.cloud.dataqna_v1alpha.types.UpdateUserFeedbackRequest):
712-
The request object.
713-
Request to updates user feedback.
708+
The request object. Request to updates user feedback.
714709
user_feedback (google.cloud.dataqna_v1alpha.types.UserFeedback):
715710
Required. The user feedback to
716711
update. This can be called even if there

google/cloud/dataqna_v1alpha/services/question_service/transports/grpc.py

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ def grpc_channel(self) -> grpc.Channel:
245245
def get_question(
246246
self,
247247
) -> Callable[[question_service.GetQuestionRequest], question.Question]:
248-
r"""Return a callable for the
249-
get question
250-
method over gRPC.
248+
r"""Return a callable for the get question method over gRPC.
251249
252250
Gets a previously created question.
253251
@@ -273,9 +271,7 @@ def get_question(
273271
def create_question(
274272
self,
275273
) -> Callable[[question_service.CreateQuestionRequest], gcd_question.Question]:
276-
r"""Return a callable for the
277-
create question
278-
method over gRPC.
274+
r"""Return a callable for the create question method over gRPC.
279275
280276
Creates a question.
281277
@@ -301,9 +297,7 @@ def create_question(
301297
def execute_question(
302298
self,
303299
) -> Callable[[question_service.ExecuteQuestionRequest], question.Question]:
304-
r"""Return a callable for the
305-
execute question
306-
method over gRPC.
300+
r"""Return a callable for the execute question method over gRPC.
307301
308302
Executes an interpretation.
309303
@@ -331,9 +325,7 @@ def get_user_feedback(
331325
) -> Callable[
332326
[question_service.GetUserFeedbackRequest], user_feedback.UserFeedback
333327
]:
334-
r"""Return a callable for the
335-
get user feedback
336-
method over gRPC.
328+
r"""Return a callable for the get user feedback method over gRPC.
337329
338330
Gets previously created user feedback.
339331
@@ -361,9 +353,7 @@ def update_user_feedback(
361353
) -> Callable[
362354
[question_service.UpdateUserFeedbackRequest], gcd_user_feedback.UserFeedback
363355
]:
364-
r"""Return a callable for the
365-
update user feedback
366-
method over gRPC.
356+
r"""Return a callable for the update user feedback method over gRPC.
367357
368358
Updates user feedback. This creates user feedback if
369359
there was none before (upsert).

0 commit comments

Comments
 (0)