Skip to content

Commit 8b5f319

Browse files
feat: [google-cloud-retail] add analytics service (#12294)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 605291363 Source-Link: googleapis/googleapis@12fdc70 Source-Link: googleapis/googleapis-gen@c8ca9c8 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJldGFpbC8uT3dsQm90LnlhbWwiLCJoIjoiYzhjYTljOGEyMjU4NGUwYmUyYjQ3YzZmMTVlN2VhNzI2ZDk4YzBjMiJ9 --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 95825ee commit 8b5f319

27 files changed

+6354
-7
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
AnalyticsService
2+
----------------------------------
3+
4+
.. automodule:: google.cloud.retail_v2.services.analytics_service
5+
:members:
6+
:inherited-members:

packages/google-cloud-retail/docs/retail_v2/services_.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Services for Google Cloud Retail v2 API
33
.. toctree::
44
:maxdepth: 2
55

6+
analytics_service
67
catalog_service
78
completion_service
89
control_service

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

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,12 @@
1818
__version__ = package_version.__version__
1919

2020

21+
from google.cloud.retail_v2.services.analytics_service.async_client import (
22+
AnalyticsServiceAsyncClient,
23+
)
24+
from google.cloud.retail_v2.services.analytics_service.client import (
25+
AnalyticsServiceClient,
26+
)
2127
from google.cloud.retail_v2.services.catalog_service.async_client import (
2228
CatalogServiceAsyncClient,
2329
)
@@ -115,6 +121,16 @@
115121
ListControlsResponse,
116122
UpdateControlRequest,
117123
)
124+
from google.cloud.retail_v2.types.export_config import (
125+
BigQueryOutputResult,
126+
ExportAnalyticsMetricsRequest,
127+
ExportAnalyticsMetricsResponse,
128+
ExportErrorsConfig,
129+
ExportMetadata,
130+
GcsOutputResult,
131+
OutputConfig,
132+
OutputResult,
133+
)
118134
from google.cloud.retail_v2.types.import_config import (
119135
BigQuerySource,
120136
CompletionDataInputConfig,
@@ -213,6 +229,8 @@
213229
)
214230

215231
__all__ = (
232+
"AnalyticsServiceClient",
233+
"AnalyticsServiceAsyncClient",
216234
"CatalogServiceClient",
217235
"CatalogServiceAsyncClient",
218236
"CompletionServiceClient",
@@ -274,6 +292,14 @@
274292
"ListControlsRequest",
275293
"ListControlsResponse",
276294
"UpdateControlRequest",
295+
"BigQueryOutputResult",
296+
"ExportAnalyticsMetricsRequest",
297+
"ExportAnalyticsMetricsResponse",
298+
"ExportErrorsConfig",
299+
"ExportMetadata",
300+
"GcsOutputResult",
301+
"OutputConfig",
302+
"OutputResult",
277303
"BigQuerySource",
278304
"CompletionDataInputConfig",
279305
"GcsSource",

packages/google-cloud-retail/google/cloud/retail/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__ = "1.19.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}

packages/google-cloud-retail/google/cloud/retail_v2/__init__.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@
1818
__version__ = package_version.__version__
1919

2020

21+
from .services.analytics_service import (
22+
AnalyticsServiceAsyncClient,
23+
AnalyticsServiceClient,
24+
)
2125
from .services.catalog_service import CatalogServiceAsyncClient, CatalogServiceClient
2226
from .services.completion_service import (
2327
CompletionServiceAsyncClient,
@@ -89,6 +93,16 @@
8993
ListControlsResponse,
9094
UpdateControlRequest,
9195
)
96+
from .types.export_config import (
97+
BigQueryOutputResult,
98+
ExportAnalyticsMetricsRequest,
99+
ExportAnalyticsMetricsResponse,
100+
ExportErrorsConfig,
101+
ExportMetadata,
102+
GcsOutputResult,
103+
OutputConfig,
104+
OutputResult,
105+
)
92106
from .types.import_config import (
93107
BigQuerySource,
94108
CompletionDataInputConfig,
@@ -180,6 +194,7 @@
180194
)
181195

182196
__all__ = (
197+
"AnalyticsServiceAsyncClient",
183198
"CatalogServiceAsyncClient",
184199
"CompletionServiceAsyncClient",
185200
"ControlServiceAsyncClient",
@@ -197,9 +212,11 @@
197212
"AddLocalInventoriesMetadata",
198213
"AddLocalInventoriesRequest",
199214
"AddLocalInventoriesResponse",
215+
"AnalyticsServiceClient",
200216
"AttributeConfigLevel",
201217
"AttributesConfig",
202218
"Audience",
219+
"BigQueryOutputResult",
203220
"BigQuerySource",
204221
"Catalog",
205222
"CatalogAttribute",
@@ -226,7 +243,12 @@
226243
"DeleteProductRequest",
227244
"DeleteServingConfigRequest",
228245
"ExperimentInfo",
246+
"ExportAnalyticsMetricsRequest",
247+
"ExportAnalyticsMetricsResponse",
248+
"ExportErrorsConfig",
249+
"ExportMetadata",
229250
"FulfillmentInfo",
251+
"GcsOutputResult",
230252
"GcsSource",
231253
"GetAttributesConfigRequest",
232254
"GetCompletionConfigRequest",
@@ -259,6 +281,8 @@
259281
"LocalInventory",
260282
"Model",
261283
"ModelServiceClient",
284+
"OutputConfig",
285+
"OutputResult",
262286
"PauseModelRequest",
263287
"PredictRequest",
264288
"PredictResponse",

packages/google-cloud-retail/google/cloud/retail_v2/gapic_metadata.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,40 @@
55
"protoPackage": "google.cloud.retail.v2",
66
"schema": "1.0",
77
"services": {
8+
"AnalyticsService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "AnalyticsServiceClient",
12+
"rpcs": {
13+
"ExportAnalyticsMetrics": {
14+
"methods": [
15+
"export_analytics_metrics"
16+
]
17+
}
18+
}
19+
},
20+
"grpc-async": {
21+
"libraryClient": "AnalyticsServiceAsyncClient",
22+
"rpcs": {
23+
"ExportAnalyticsMetrics": {
24+
"methods": [
25+
"export_analytics_metrics"
26+
]
27+
}
28+
}
29+
},
30+
"rest": {
31+
"libraryClient": "AnalyticsServiceClient",
32+
"rpcs": {
33+
"ExportAnalyticsMetrics": {
34+
"methods": [
35+
"export_analytics_metrics"
36+
]
37+
}
38+
}
39+
}
40+
}
41+
},
842
"CatalogService": {
943
"clients": {
1044
"grpc": {

packages/google-cloud-retail/google/cloud/retail_v2/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__ = "1.19.1" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2023 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .async_client import AnalyticsServiceAsyncClient
17+
from .client import AnalyticsServiceClient
18+
19+
__all__ = (
20+
"AnalyticsServiceClient",
21+
"AnalyticsServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)