Skip to content

Commit e86f541

Browse files
feat: [google-shopping-merchant-lfp] Add GetLfpMerchantState method (#13760)
BEGIN_COMMIT_OVERRIDE feat: Add GetLfpMerchantState method chore: Update gapic-generator-python to 1.24.0 END_COMMIT_OVERRIDE - [ ] Regenerate this pull request now. PiperOrigin-RevId: 747419463 Source-Link: googleapis/googleapis@340579b Source-Link: googleapis/googleapis-gen@e8997ec Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWxmcC8uT3dsQm90LnlhbWwiLCJoIjoiZTg5OTdlYzUxMzZlY2I2ZWQ5YTk2OWE0YzJmMTNiM2FiNmExN2MxMiJ9 BEGIN_NESTED_COMMIT feat: [google-shopping-merchant-lfp] Add GetLfpMerchantState method PiperOrigin-RevId: 747290896 Source-Link: googleapis/googleapis@9289a2c Source-Link: googleapis/googleapis-gen@b71dbf2 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLXNob3BwaW5nLW1lcmNoYW50LWxmcC8uT3dsQm90LnlhbWwiLCJoIjoiYjcxZGJmMjU0YTVkMmM5MjQ2NjE4OTA1Yjk4MGI3MDhjODJlNDY3NCJ9 END_NESTED_COMMIT --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent bb337a5 commit e86f541

30 files changed

Lines changed: 6215 additions & 63 deletions

packages/google-shopping-merchant-lfp/.flake8

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,29 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
[flake8]
17+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
18+
# Resolve flake8 lint issues
1919
ignore = E203, E231, E266, E501, W503
2020
exclude =
21-
# Exclude generated code.
22-
**/proto/**
21+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2333):
22+
# Ensure that generated code passes flake8 lint
2323
**/gapic/**
2424
**/services/**
2525
**/types/**
26+
# Exclude Protobuf gencode
2627
*_pb2.py
2728

2829
# Standard linting exemptions.
Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
# -*- coding: utf-8 -*-
2-
#
3-
# Copyright 2024 Google LLC
2+
# Copyright 2025 Google LLC
43
#
54
# Licensed under the Apache License, Version 2.0 (the "License");
65
# you may not use this file except in compliance with the License.
76
# You may obtain a copy of the License at
87
#
9-
# https://www.apache.org/licenses/LICENSE-2.0
8+
# http://www.apache.org/licenses/LICENSE-2.0
109
#
1110
# Unless required by applicable law or agreed to in writing, software
1211
# distributed under the License is distributed on an "AS IS" BASIS,
1312
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1413
# See the License for the specific language governing permissions and
1514
# limitations under the License.
16-
17-
# Generated by synthtool. DO NOT EDIT!
15+
#
1816
include README.rst LICENSE
19-
recursive-include google *.json *.proto py.typed
17+
recursive-include google *.py *.pyi *.json *.proto py.typed
2018
recursive-include tests *
2119
global-exclude *.py[co]
2220
global-exclude __pycache__
23-
24-
# Exclude scripts for samples readmegen
25-
prune scripts/readme-gen

packages/google-shopping-merchant-lfp/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ Code-Based Examples
162162
163163
import logging
164164
165-
from google.cloud.translate_v3 import translate
165+
from google.cloud import library_v1
166166
167167
base_logger = logging.getLogger("google")
168168
base_logger.addHandler(logging.StreamHandler())
@@ -174,7 +174,7 @@ Code-Based Examples
174174
175175
import logging
176176
177-
from google.cloud.translate_v3 import translate
177+
from google.cloud import library_v1
178178
179179
base_logger = logging.getLogger("google.cloud.library_v1")
180180
base_logger.addHandler(logging.StreamHandler())
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
LfpMerchantStateService
2+
-----------------------------------------
3+
4+
.. automodule:: google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service
5+
:members:
6+
:inherited-members:

packages/google-shopping-merchant-lfp/docs/merchant_lfp_v1beta/services_.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@ Services for Google Shopping Merchant Lfp v1beta API
44
:maxdepth: 2
55

66
lfp_inventory_service
7+
lfp_merchant_state_service
78
lfp_sale_service
89
lfp_store_service

packages/google-shopping-merchant-lfp/google/shopping/merchant_lfp/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
from google.shopping.merchant_lfp_v1beta.services.lfp_inventory_service.client import (
2525
LfpInventoryServiceClient,
2626
)
27+
from google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service.async_client import (
28+
LfpMerchantStateServiceAsyncClient,
29+
)
30+
from google.shopping.merchant_lfp_v1beta.services.lfp_merchant_state_service.client import (
31+
LfpMerchantStateServiceClient,
32+
)
2733
from google.shopping.merchant_lfp_v1beta.services.lfp_sale_service.async_client import (
2834
LfpSaleServiceAsyncClient,
2935
)
@@ -40,6 +46,10 @@
4046
InsertLfpInventoryRequest,
4147
LfpInventory,
4248
)
49+
from google.shopping.merchant_lfp_v1beta.types.lfpmerchantstate import (
50+
GetLfpMerchantStateRequest,
51+
LfpMerchantState,
52+
)
4353
from google.shopping.merchant_lfp_v1beta.types.lfpsale import (
4454
InsertLfpSaleRequest,
4555
LfpSale,
@@ -56,12 +66,16 @@
5666
__all__ = (
5767
"LfpInventoryServiceClient",
5868
"LfpInventoryServiceAsyncClient",
69+
"LfpMerchantStateServiceClient",
70+
"LfpMerchantStateServiceAsyncClient",
5971
"LfpSaleServiceClient",
6072
"LfpSaleServiceAsyncClient",
6173
"LfpStoreServiceClient",
6274
"LfpStoreServiceAsyncClient",
6375
"InsertLfpInventoryRequest",
6476
"LfpInventory",
77+
"GetLfpMerchantStateRequest",
78+
"LfpMerchantState",
6579
"InsertLfpSaleRequest",
6680
"LfpSale",
6781
"DeleteLfpStoreRequest",

packages/google-shopping-merchant-lfp/google/shopping/merchant_lfp_v1beta/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,17 @@
2222
LfpInventoryServiceAsyncClient,
2323
LfpInventoryServiceClient,
2424
)
25+
from .services.lfp_merchant_state_service import (
26+
LfpMerchantStateServiceAsyncClient,
27+
LfpMerchantStateServiceClient,
28+
)
2529
from .services.lfp_sale_service import LfpSaleServiceAsyncClient, LfpSaleServiceClient
2630
from .services.lfp_store_service import (
2731
LfpStoreServiceAsyncClient,
2832
LfpStoreServiceClient,
2933
)
3034
from .types.lfpinventory import InsertLfpInventoryRequest, LfpInventory
35+
from .types.lfpmerchantstate import GetLfpMerchantStateRequest, LfpMerchantState
3136
from .types.lfpsale import InsertLfpSaleRequest, LfpSale
3237
from .types.lfpstore import (
3338
DeleteLfpStoreRequest,
@@ -40,15 +45,19 @@
4045

4146
__all__ = (
4247
"LfpInventoryServiceAsyncClient",
48+
"LfpMerchantStateServiceAsyncClient",
4349
"LfpSaleServiceAsyncClient",
4450
"LfpStoreServiceAsyncClient",
4551
"DeleteLfpStoreRequest",
52+
"GetLfpMerchantStateRequest",
4653
"GetLfpStoreRequest",
4754
"InsertLfpInventoryRequest",
4855
"InsertLfpSaleRequest",
4956
"InsertLfpStoreRequest",
5057
"LfpInventory",
5158
"LfpInventoryServiceClient",
59+
"LfpMerchantState",
60+
"LfpMerchantStateServiceClient",
5261
"LfpSale",
5362
"LfpSaleServiceClient",
5463
"LfpStore",

packages/google-shopping-merchant-lfp/google/shopping/merchant_lfp_v1beta/gapic_metadata.json

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,40 @@
3939
}
4040
}
4141
},
42+
"LfpMerchantStateService": {
43+
"clients": {
44+
"grpc": {
45+
"libraryClient": "LfpMerchantStateServiceClient",
46+
"rpcs": {
47+
"GetLfpMerchantState": {
48+
"methods": [
49+
"get_lfp_merchant_state"
50+
]
51+
}
52+
}
53+
},
54+
"grpc-async": {
55+
"libraryClient": "LfpMerchantStateServiceAsyncClient",
56+
"rpcs": {
57+
"GetLfpMerchantState": {
58+
"methods": [
59+
"get_lfp_merchant_state"
60+
]
61+
}
62+
}
63+
},
64+
"rest": {
65+
"libraryClient": "LfpMerchantStateServiceClient",
66+
"rpcs": {
67+
"GetLfpMerchantState": {
68+
"methods": [
69+
"get_lfp_merchant_state"
70+
]
71+
}
72+
}
73+
}
74+
}
75+
},
4276
"LfpSaleService": {
4377
"clients": {
4478
"grpc": {

packages/google-shopping-merchant-lfp/google/shopping/merchant_lfp_v1beta/services/lfp_inventory_service/transports/grpc.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,11 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
6969
f"Sending request for {client_call_details.method}",
7070
extra={
7171
"serviceName": "google.shopping.merchant.lfp.v1beta.LfpInventoryService",
72-
"rpcName": client_call_details.method,
72+
"rpcName": str(client_call_details.method),
7373
"request": grpc_request,
7474
"metadata": grpc_request["metadata"],
7575
},
7676
)
77-
7877
response = continuation(client_call_details, request)
7978
if logging_enabled: # pragma: NO COVER
8079
response_metadata = response.trailing_metadata()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2025 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 LfpMerchantStateServiceAsyncClient
17+
from .client import LfpMerchantStateServiceClient
18+
19+
__all__ = (
20+
"LfpMerchantStateServiceClient",
21+
"LfpMerchantStateServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)