Skip to content

Commit 25504f3

Browse files
chore: [google-cloud-geminidataanalytics] update Python generator version to 1.25.1 (googleapis#14212)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 800535761 Source-Link: googleapis/googleapis@4cf1f99 Source-Link: https://github.com/googleapis/googleapis-gen/commit/133d25b68e712116e1c5dc71fc3eb3c5e717022a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdlbWluaWRhdGFhbmFseXRpY3MvLk93bEJvdC55YW1sIiwiaCI6IjEzM2QyNWI2OGU3MTIxMTZlMWM1ZGM3MWZjM2ViM2M1ZTcxNzAyMmEifQ== BEGIN_COMMIT_OVERRIDE fix!: An existing service `ContextRetrievalService` is removed feat: A new field `example_queries` is added to message `.google.cloud.geminidataanalytics.v1alpha.Context` feat: A new message `ExampleQuery` is added feat: A new enum `DataFilterType` is added feat: A new field `schema` is added to message `.google.cloud.geminidataanalytics.v1alpha.BigQueryTableReference` feat: A new field `description` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `synonyms` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `tags` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `filters` is added to message `.google.cloud.geminidataanalytics.v1alpha.Schema` feat: A new field `synonyms` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new field `tags` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new field `value_format` is added to message `.google.cloud.geminidataanalytics.v1alpha.Field` feat: A new message `DataFilter` is added docs: many comment updates fix!: An existing method `RetrieveBigQueryTableContext` is removed from service `ContextRetrievalService` fix!: An existing message `RetrieveBigQueryTableContextRequest` is removed fix!: An existing message `RetrieveBigQueryTableContextResponse` is removed END_COMMIT_OVERRIDE PiperOrigin-RevId: 797852600 Source-Link: googleapis/googleapis@7c4d9e7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/84da5bbba9d1d57fa359390705e0800e841888d6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdlbWluaWRhdGFhbmFseXRpY3MvLk93bEJvdC55YW1sIiwiaCI6Ijg0ZGE1YmJiYTlkMWQ1N2ZhMzU5MzkwNzA1ZTA4MDBlODQxODg4ZDYifQ== PiperOrigin-RevId: 793693120 Source-Link: googleapis/googleapis@f3f3ae4 Source-Link: https://github.com/googleapis/googleapis-gen/commit/3ab5e7676f79463fa89ab3eb0fe797f202d7299a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWdlbWluaWRhdGFhbmFseXRpY3MvLk93bEJvdC55YW1sIiwiaCI6IjNhYjVlNzY3NmY3OTQ2M2ZhODlhYjNlYjBmZTc5N2YyMDJkNzI5OWEifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <[email protected]>
1 parent 8c4d266 commit 25504f3

File tree

79 files changed

+818
-19004
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+818
-19004
lines changed

packages/google-cloud-geminidataanalytics/docs/geminidataanalytics_v1beta/context_retrieval_service.rst

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

packages/google-cloud-geminidataanalytics/docs/geminidataanalytics_v1beta/services_.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ Services for Google Cloud Geminidataanalytics v1beta API
33
.. toctree::
44
:maxdepth: 2
55

6-
context_retrieval_service
76
data_agent_service
87
data_chat_service

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/__init__.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@
4141
ChartOptions,
4242
Context,
4343
ConversationOptions,
44+
ExampleQuery,
4445
)
4546
from google.cloud.geminidataanalytics_v1alpha.types.context_retrieval_service import (
4647
DirectLookup,
4748
RetrieveBigQueryRecentRelevantTablesRequest,
4849
RetrieveBigQueryRecentRelevantTablesResponse,
49-
RetrieveBigQueryTableContextRequest,
50-
RetrieveBigQueryTableContextResponse,
5150
RetrieveBigQueryTableContextsFromRecentTablesRequest,
5251
RetrieveBigQueryTableContextsFromRecentTablesResponse,
5352
RetrieveBigQueryTableContextsRequest,
@@ -115,6 +114,8 @@
115114
from google.cloud.geminidataanalytics_v1alpha.types.datasource import (
116115
BigQueryTableReference,
117116
BigQueryTableReferences,
117+
DataFilter,
118+
DataFilterType,
118119
Datasource,
119120
DatasourceReferences,
120121
Field,
@@ -137,11 +138,10 @@
137138
"ChartOptions",
138139
"Context",
139140
"ConversationOptions",
141+
"ExampleQuery",
140142
"DirectLookup",
141143
"RetrieveBigQueryRecentRelevantTablesRequest",
142144
"RetrieveBigQueryRecentRelevantTablesResponse",
143-
"RetrieveBigQueryTableContextRequest",
144-
"RetrieveBigQueryTableContextResponse",
145145
"RetrieveBigQueryTableContextsFromRecentTablesRequest",
146146
"RetrieveBigQueryTableContextsFromRecentTablesResponse",
147147
"RetrieveBigQueryTableContextsRequest",
@@ -197,6 +197,7 @@
197197
"UserMessage",
198198
"BigQueryTableReference",
199199
"BigQueryTableReferences",
200+
"DataFilter",
200201
"Datasource",
201202
"DatasourceReferences",
202203
"Field",
@@ -206,4 +207,5 @@
206207
"Schema",
207208
"StudioDatasourceReference",
208209
"StudioDatasourceReferences",
210+
"DataFilterType",
209211
)

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/__init__.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,17 @@
3030
DataChatServiceAsyncClient,
3131
DataChatServiceClient,
3232
)
33-
from .types.context import AnalysisOptions, ChartOptions, Context, ConversationOptions
33+
from .types.context import (
34+
AnalysisOptions,
35+
ChartOptions,
36+
Context,
37+
ConversationOptions,
38+
ExampleQuery,
39+
)
3440
from .types.context_retrieval_service import (
3541
DirectLookup,
3642
RetrieveBigQueryRecentRelevantTablesRequest,
3743
RetrieveBigQueryRecentRelevantTablesResponse,
38-
RetrieveBigQueryTableContextRequest,
39-
RetrieveBigQueryTableContextResponse,
4044
RetrieveBigQueryTableContextsFromRecentTablesRequest,
4145
RetrieveBigQueryTableContextsFromRecentTablesResponse,
4246
RetrieveBigQueryTableContextsRequest,
@@ -99,6 +103,8 @@
99103
from .types.datasource import (
100104
BigQueryTableReference,
101105
BigQueryTableReferences,
106+
DataFilter,
107+
DataFilterType,
102108
Datasource,
103109
DatasourceReferences,
104110
Field,
@@ -140,6 +146,8 @@
140146
"DataAgentServiceClient",
141147
"DataAnalyticsAgent",
142148
"DataChatServiceClient",
149+
"DataFilter",
150+
"DataFilterType",
143151
"DataMessage",
144152
"DataQuery",
145153
"DataResult",
@@ -148,6 +156,7 @@
148156
"DeleteDataAgentRequest",
149157
"DirectLookup",
150158
"ErrorMessage",
159+
"ExampleQuery",
151160
"Field",
152161
"GetConversationRequest",
153162
"GetDataAgentRequest",
@@ -168,8 +177,6 @@
168177
"PrivateLookerInstanceInfo",
169178
"RetrieveBigQueryRecentRelevantTablesRequest",
170179
"RetrieveBigQueryRecentRelevantTablesResponse",
171-
"RetrieveBigQueryTableContextRequest",
172-
"RetrieveBigQueryTableContextResponse",
173180
"RetrieveBigQueryTableContextsFromRecentTablesRequest",
174181
"RetrieveBigQueryTableContextsFromRecentTablesResponse",
175182
"RetrieveBigQueryTableContextsRequest",

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_metadata.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,6 @@
1515
"retrieve_big_query_recent_relevant_tables"
1616
]
1717
},
18-
"RetrieveBigQueryTableContext": {
19-
"methods": [
20-
"retrieve_big_query_table_context"
21-
]
22-
},
2318
"RetrieveBigQueryTableContexts": {
2419
"methods": [
2520
"retrieve_big_query_table_contexts"
@@ -50,11 +45,6 @@
5045
"retrieve_big_query_recent_relevant_tables"
5146
]
5247
},
53-
"RetrieveBigQueryTableContext": {
54-
"methods": [
55-
"retrieve_big_query_table_context"
56-
]
57-
},
5848
"RetrieveBigQueryTableContexts": {
5949
"methods": [
6050
"retrieve_big_query_table_contexts"
@@ -85,11 +75,6 @@
8575
"retrieve_big_query_recent_relevant_tables"
8676
]
8777
},
88-
"RetrieveBigQueryTableContext": {
89-
"methods": [
90-
"retrieve_big_query_table_context"
91-
]
92-
},
9378
"RetrieveBigQueryTableContexts": {
9479
"methods": [
9580
"retrieve_big_query_table_contexts"

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/gapic_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.2.0" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/context_retrieval_service/async_client.py

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -302,101 +302,6 @@ def __init__(
302302
},
303303
)
304304

305-
async def retrieve_big_query_table_context(
306-
self,
307-
request: Optional[
308-
Union[context_retrieval_service.RetrieveBigQueryTableContextRequest, dict]
309-
] = None,
310-
*,
311-
retry: OptionalRetry = gapic_v1.method.DEFAULT,
312-
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
313-
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
314-
) -> context_retrieval_service.RetrieveBigQueryTableContextResponse:
315-
r"""Retrieves BigQuery table contextual data for provided
316-
table references. Contextual data includes table schema
317-
information as well as sample values.
318-
319-
.. code-block:: python
320-
321-
# This snippet has been automatically generated and should be regarded as a
322-
# code template only.
323-
# It will require modifications to work:
324-
# - It may require correct/in-range values for request initialization.
325-
# - It may require specifying regional endpoints when creating the service
326-
# client as shown in:
327-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
328-
from google.cloud import geminidataanalytics_v1alpha
329-
330-
async def sample_retrieve_big_query_table_context():
331-
# Create a client
332-
client = geminidataanalytics_v1alpha.ContextRetrievalServiceAsyncClient()
333-
334-
# Initialize request argument(s)
335-
request = geminidataanalytics_v1alpha.RetrieveBigQueryTableContextRequest(
336-
project="project_value",
337-
parent="parent_value",
338-
)
339-
340-
# Make the request
341-
response = await client.retrieve_big_query_table_context(request=request)
342-
343-
# Handle the response
344-
print(response)
345-
346-
Args:
347-
request (Optional[Union[google.cloud.geminidataanalytics_v1alpha.types.RetrieveBigQueryTableContextRequest, dict]]):
348-
The request object. Request for retrieving BigQuery table
349-
contextual data via direct lookup.
350-
retry (google.api_core.retry_async.AsyncRetry): Designation of what errors, if any,
351-
should be retried.
352-
timeout (float): The timeout for this request.
353-
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
354-
sent along with the request as metadata. Normally, each value must be of type `str`,
355-
but for metadata keys ending with the suffix `-bin`, the corresponding values must
356-
be of type `bytes`.
357-
358-
Returns:
359-
google.cloud.geminidataanalytics_v1alpha.types.RetrieveBigQueryTableContextResponse:
360-
Response for retrieving BigQuery
361-
table contextual data via direct lookup.
362-
363-
"""
364-
# Create or coerce a protobuf request object.
365-
# - Use the request object if provided (there's no risk of modifying the input as
366-
# there are no flattened fields), or create one.
367-
if not isinstance(
368-
request, context_retrieval_service.RetrieveBigQueryTableContextRequest
369-
):
370-
request = context_retrieval_service.RetrieveBigQueryTableContextRequest(
371-
request
372-
)
373-
374-
# Wrap the RPC method; this adds retry and timeout information,
375-
# and friendly error handling.
376-
rpc = self._client._transport._wrapped_methods[
377-
self._client._transport.retrieve_big_query_table_context
378-
]
379-
380-
# Certain fields should be provided within the metadata header;
381-
# add these here.
382-
metadata = tuple(metadata) + (
383-
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
384-
)
385-
386-
# Validate the universe domain.
387-
self._client._validate_universe_domain()
388-
389-
# Send the request.
390-
response = await rpc(
391-
request,
392-
retry=retry,
393-
timeout=timeout,
394-
metadata=metadata,
395-
)
396-
397-
# Done; return the response.
398-
return response
399-
400305
async def retrieve_big_query_table_contexts(
401306
self,
402307
request: Optional[

packages/google-cloud-geminidataanalytics/google/cloud/geminidataanalytics_v1alpha/services/context_retrieval_service/client.py

Lines changed: 0 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -704,101 +704,6 @@ def __init__(
704704
},
705705
)
706706

707-
def retrieve_big_query_table_context(
708-
self,
709-
request: Optional[
710-
Union[context_retrieval_service.RetrieveBigQueryTableContextRequest, dict]
711-
] = None,
712-
*,
713-
retry: OptionalRetry = gapic_v1.method.DEFAULT,
714-
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
715-
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
716-
) -> context_retrieval_service.RetrieveBigQueryTableContextResponse:
717-
r"""Retrieves BigQuery table contextual data for provided
718-
table references. Contextual data includes table schema
719-
information as well as sample values.
720-
721-
.. code-block:: python
722-
723-
# This snippet has been automatically generated and should be regarded as a
724-
# code template only.
725-
# It will require modifications to work:
726-
# - It may require correct/in-range values for request initialization.
727-
# - It may require specifying regional endpoints when creating the service
728-
# client as shown in:
729-
# https://googleapis.dev/python/google-api-core/latest/client_options.html
730-
from google.cloud import geminidataanalytics_v1alpha
731-
732-
def sample_retrieve_big_query_table_context():
733-
# Create a client
734-
client = geminidataanalytics_v1alpha.ContextRetrievalServiceClient()
735-
736-
# Initialize request argument(s)
737-
request = geminidataanalytics_v1alpha.RetrieveBigQueryTableContextRequest(
738-
project="project_value",
739-
parent="parent_value",
740-
)
741-
742-
# Make the request
743-
response = client.retrieve_big_query_table_context(request=request)
744-
745-
# Handle the response
746-
print(response)
747-
748-
Args:
749-
request (Union[google.cloud.geminidataanalytics_v1alpha.types.RetrieveBigQueryTableContextRequest, dict]):
750-
The request object. Request for retrieving BigQuery table
751-
contextual data via direct lookup.
752-
retry (google.api_core.retry.Retry): Designation of what errors, if any,
753-
should be retried.
754-
timeout (float): The timeout for this request.
755-
metadata (Sequence[Tuple[str, Union[str, bytes]]]): Key/value pairs which should be
756-
sent along with the request as metadata. Normally, each value must be of type `str`,
757-
but for metadata keys ending with the suffix `-bin`, the corresponding values must
758-
be of type `bytes`.
759-
760-
Returns:
761-
google.cloud.geminidataanalytics_v1alpha.types.RetrieveBigQueryTableContextResponse:
762-
Response for retrieving BigQuery
763-
table contextual data via direct lookup.
764-
765-
"""
766-
# Create or coerce a protobuf request object.
767-
# - Use the request object if provided (there's no risk of modifying the input as
768-
# there are no flattened fields), or create one.
769-
if not isinstance(
770-
request, context_retrieval_service.RetrieveBigQueryTableContextRequest
771-
):
772-
request = context_retrieval_service.RetrieveBigQueryTableContextRequest(
773-
request
774-
)
775-
776-
# Wrap the RPC method; this adds retry and timeout information,
777-
# and friendly error handling.
778-
rpc = self._transport._wrapped_methods[
779-
self._transport.retrieve_big_query_table_context
780-
]
781-
782-
# Certain fields should be provided within the metadata header;
783-
# add these here.
784-
metadata = tuple(metadata) + (
785-
gapic_v1.routing_header.to_grpc_metadata((("parent", request.parent),)),
786-
)
787-
788-
# Validate the universe domain.
789-
self._validate_universe_domain()
790-
791-
# Send the request.
792-
response = rpc(
793-
request,
794-
retry=retry,
795-
timeout=timeout,
796-
metadata=metadata,
797-
)
798-
799-
# Done; return the response.
800-
return response
801-
802707
def retrieve_big_query_table_contexts(
803708
self,
804709
request: Optional[

0 commit comments

Comments
 (0)