google-shopping-merchant-lfp-v1beta 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +3 -2
  3. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/client.rb +7 -0
  4. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/client.rb +7 -0
  5. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/client.rb +467 -0
  6. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/paths.rb +52 -0
  8. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/client.rb +434 -0
  9. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/service_stub.rb +144 -0
  10. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest.rb +56 -0
  11. data/lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service.rb +59 -0
  12. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/client.rb +7 -0
  13. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest/client.rb +7 -0
  14. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/client.rb +7 -0
  15. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/client.rb +7 -0
  16. data/lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_pb.rb +56 -0
  17. data/lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_services_pb.rb +49 -0
  18. data/lib/google/shopping/merchant/lfp/v1beta/rest.rb +1 -0
  19. data/lib/google/shopping/merchant/lfp/v1beta/version.rb +1 -1
  20. data/lib/google/shopping/merchant/lfp/v1beta.rb +1 -0
  21. data/proto_docs/google/api/client.rb +14 -0
  22. data/proto_docs/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.rb +177 -0
  23. metadata +31 -12
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/shopping/merchant/lfp/v1beta/version"
24
+
25
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/credentials"
26
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/paths"
27
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/client"
28
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest"
29
+
30
+ module Google
31
+ module Shopping
32
+ module Merchant
33
+ module Lfp
34
+ module V1beta
35
+ ##
36
+ # Service for a [LFP
37
+ # partner](https://support.google.com/merchants/answer/7676652) to get the
38
+ # state of a merchant.
39
+ #
40
+ # @example Load this service and instantiate a gRPC client
41
+ #
42
+ # require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service"
43
+ # client = ::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantStateService::Client.new
44
+ #
45
+ # @example Load this service and instantiate a REST client
46
+ #
47
+ # require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest"
48
+ # client = ::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantStateService::Rest::Client.new
49
+ #
50
+ module LfpMerchantStateService
51
+ end
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
57
+
58
+ helper_path = ::File.join __dir__, "lfp_merchant_state_service", "helpers.rb"
59
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/helpers" if ::File.file? helper_path
@@ -323,6 +323,13 @@ module Google
323
323
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
324
324
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
325
325
  # * (`nil`) indicating no credentials
326
+ #
327
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
328
+ # external source for authentication to Google Cloud, you must validate it before
329
+ # providing it to a Google API client library. Providing an unvalidated credential
330
+ # configuration to Google APIs can compromise the security of your systems and data.
331
+ # For more information, refer to [Validate credential configurations from external
332
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
326
333
  # @return [::Object]
327
334
  # @!attribute [rw] scope
328
335
  # The OAuth scopes
@@ -307,6 +307,13 @@ module Google
307
307
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
308
308
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
309
309
  # * (`nil`) indicating no credentials
310
+ #
311
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
312
+ # external source for authentication to Google Cloud, you must validate it before
313
+ # providing it to a Google API client library. Providing an unvalidated credential
314
+ # configuration to Google APIs can compromise the security of your systems and data.
315
+ # For more information, refer to [Validate credential configurations from external
316
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
310
317
  # @return [::Object]
311
318
  # @!attribute [rw] scope
312
319
  # The OAuth scopes
@@ -604,6 +604,13 @@ module Google
604
604
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
605
605
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
606
606
  # * (`nil`) indicating no credentials
607
+ #
608
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
609
+ # external source for authentication to Google Cloud, you must validate it before
610
+ # providing it to a Google API client library. Providing an unvalidated credential
611
+ # configuration to Google APIs can compromise the security of your systems and data.
612
+ # For more information, refer to [Validate credential configurations from external
613
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
607
614
  # @return [::Object]
608
615
  # @!attribute [rw] scope
609
616
  # The OAuth scopes
@@ -567,6 +567,13 @@ module Google
567
567
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
568
568
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
569
569
  # * (`nil`) indicating no credentials
570
+ #
571
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
572
+ # external source for authentication to Google Cloud, you must validate it before
573
+ # providing it to a Google API client library. Providing an unvalidated credential
574
+ # configuration to Google APIs can compromise the security of your systems and data.
575
+ # For more information, refer to [Validate credential configurations from external
576
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
570
577
  # @return [::Object]
571
578
  # @!attribute [rw] scope
572
579
  # The OAuth scopes
@@ -0,0 +1,56 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+
12
+
13
+ descriptor_data = "\n:google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto\x12#google.shopping.merchant.lfp.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xe8\x0e\n\x10LfpMerchantState\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x13\n\x0blinked_gbps\x18\x02 \x01(\x03\x12^\n\x0cstore_states\x18\x03 \x03(\x0b\x32\x43.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreStateB\x03\xe0\x41\x03\x12]\n\x0finventory_stats\x18\x04 \x01(\x0b\x32\x44.google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats\x12_\n\x10\x63ountry_settings\x18\x05 \x03(\x0b\x32\x45.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings\x1a\xbc\x02\n\rLfpStoreState\x12\x1a\n\nstore_code\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x05\x12s\n\x0ematching_state\x18\x02 \x01(\x0e\x32V.google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingStateB\x03\xe0\x41\x03\x12\x1b\n\x13matching_state_hint\x18\x03 \x01(\t\"}\n\x12StoreMatchingState\x12$\n STORE_MATCHING_STATE_UNSPECIFIED\x10\x00\x12 \n\x1cSTORE_MATCHING_STATE_MATCHED\x10\x01\x12\x1f\n\x1bSTORE_MATCHING_STATE_FAILED\x10\x02\x1a\x88\x01\n\x0eInventoryStats\x12\x19\n\x11submitted_entries\x18\x01 \x01(\x03\x12\"\n\x1asubmitted_in_stock_entries\x18\x02 \x01(\x03\x12\x1b\n\x13unsubmitted_entries\x18\x03 \x01(\x03\x12\x1a\n\x12submitted_products\x18\x04 \x01(\x03\x1a\xad\x07\n\x0f\x43ountrySettings\x12\x18\n\x0bregion_code\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12#\n\x1b\x66ree_local_listings_enabled\x18\x02 \x01(\x08\x12#\n\x1blocal_inventory_ads_enabled\x18\x03 \x01(\x08\x12\x82\x01\n\x1cinventory_verification_state\x18\x04 \x01(\x0e\x32W.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationStateB\x03\xe0\x41\x03\x12u\n\x11product_page_type\x18\x05 \x01(\x0e\x32U.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageTypeB\x03\xe0\x41\x03\x12\x88\x01\n\"instock_serving_verification_state\x18\x06 \x01(\x0e\x32W.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationStateB\x03\xe0\x41\x03\x12\x87\x01\n!pickup_serving_verification_state\x18\x07 \x01(\x0e\x32W.google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationStateB\x03\xe0\x41\x03\"\xa1\x01\n\x11VerificationState\x12\"\n\x1eVERIFICATION_STATE_UNSPECIFIED\x10\x00\x12#\n\x1fVERIFICATION_STATE_NOT_APPROVED\x10\x01\x12\"\n\x1eVERIFICATION_STATE_IN_PROGRESS\x10\x02\x12\x1f\n\x1bVERIFICATION_STATE_APPROVED\x10\x03\"\x80\x01\n\x0fProductPageType\x12!\n\x1dPRODUCT_PAGE_TYPE_UNSPECIFIED\x10\x00\x12\x11\n\rGOOGLE_HOSTED\x10\x01\x12\x13\n\x0fMERCHANT_HOSTED\x10\x02\x12\"\n\x1eMERCHANT_HOSTED_STORE_SPECIFIC\x10\x03:\x91\x01\xea\x41\x8d\x01\n+merchantapi.googleapis.com/LfpMerchantState\x12\x39\x61\x63\x63ounts/{account}/lfpMerchantStates/{lfp_merchant_state}*\x11lfpMerchantStates2\x10lfpMerchantState\"_\n\x1aGetLfpMerchantStateRequest\x12\x41\n\x04name\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+merchantapi.googleapis.com/LfpMerchantState2\xb4\x02\n\x17LfpMerchantStateService\x12\xcf\x01\n\x13GetLfpMerchantState\x12?.google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest\x1a\x35.google.shopping.merchant.lfp.v1beta.LfpMerchantState\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/lfp/v1beta/{name=accounts/*/lfpMerchantStates/*}\x1aG\xca\x41\x1amerchantapi.googleapis.com\xd2\x41\'https://www.googleapis.com/auth/contentB\x83\x01\n\'com.google.shopping.merchant.lfp.v1betaB\x15LfpMerchantStateProtoP\x01Z?cloud.google.com/go/shopping/merchant/lfp/apiv1beta/lfppb;lfppbb\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ]
29
+ imports.each do |type_name, expected_filename|
30
+ import_file = pool.lookup(type_name).file_descriptor
31
+ if import_file.name != expected_filename
32
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
33
+ end
34
+ end
35
+ warn "Each proto file must use a consistent fully-qualified name."
36
+ warn "This will become an error in the next major version."
37
+ end
38
+
39
+ module Google
40
+ module Shopping
41
+ module Merchant
42
+ module Lfp
43
+ module V1beta
44
+ LfpMerchantState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState").msgclass
45
+ LfpMerchantState::LfpStoreState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState").msgclass
46
+ LfpMerchantState::LfpStoreState::StoreMatchingState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.LfpStoreState.StoreMatchingState").enummodule
47
+ LfpMerchantState::InventoryStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.InventoryStats").msgclass
48
+ LfpMerchantState::CountrySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings").msgclass
49
+ LfpMerchantState::CountrySettings::VerificationState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.VerificationState").enummodule
50
+ LfpMerchantState::CountrySettings::ProductPageType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.LfpMerchantState.CountrySettings.ProductPageType").enummodule
51
+ GetLfpMerchantStateRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.shopping.merchant.lfp.v1beta.GetLfpMerchantStateRequest").msgclass
52
+ end
53
+ end
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/shopping/merchant/lfp/v1beta/lfpmerchantstate.proto for package 'google.shopping.merchant.lfp.v1beta'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/shopping/merchant/lfp/v1beta/lfpmerchantstate_pb'
21
+
22
+ module Google
23
+ module Shopping
24
+ module Merchant
25
+ module Lfp
26
+ module V1beta
27
+ module LfpMerchantStateService
28
+ # Service for a [LFP
29
+ # partner](https://support.google.com/merchants/answer/7676652) to get the
30
+ # state of a merchant.
31
+ class Service
32
+
33
+ include ::GRPC::GenericService
34
+
35
+ self.marshal_class_method = :encode
36
+ self.unmarshal_class_method = :decode
37
+ self.service_name = 'google.shopping.merchant.lfp.v1beta.LfpMerchantStateService'
38
+
39
+ # Gets the LFP state of a merchant
40
+ rpc :GetLfpMerchantState, ::Google::Shopping::Merchant::Lfp::V1beta::GetLfpMerchantStateRequest, ::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest"
20
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest"
20
21
  require "google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest"
21
22
  require "google/shopping/merchant/lfp/v1beta/lfp_store_service/rest"
22
23
  require "google/shopping/merchant/lfp/v1beta/version"
@@ -22,7 +22,7 @@ module Google
22
22
  module Merchant
23
23
  module Lfp
24
24
  module V1beta
25
- VERSION = "0.2.0"
25
+ VERSION = "0.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/shopping/merchant/lfp/v1beta/lfp_inventory_service"
20
+ require "google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service"
20
21
  require "google/shopping/merchant/lfp/v1beta/lfp_sale_service"
21
22
  require "google/shopping/merchant/lfp/v1beta/lfp_store_service"
22
23
  require "google/shopping/merchant/lfp/v1beta/version"
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -0,0 +1,177 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Shopping
22
+ module Merchant
23
+ module Lfp
24
+ module V1beta
25
+ # The LFP state of a merchant.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # Identifier. The name of the `LfpMerchantState` resource. Format:
29
+ # `accounts/{account}/lfpMerchantStates/{target_merchant}`
30
+ # @!attribute [rw] linked_gbps
31
+ # @return [::Integer]
32
+ # Number of [GBPs](https://www.google.com/business/) this merchant has access
33
+ # to.
34
+ # @!attribute [r] store_states
35
+ # @return [::Array<::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::LfpStoreState>]
36
+ # Output only. The state per store from the specified merchant.
37
+ # @!attribute [rw] inventory_stats
38
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::InventoryStats]
39
+ # The inventory statistics for the merchant.
40
+ # @!attribute [rw] country_settings
41
+ # @return [::Array<::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings>]
42
+ # Country-specific settings for the merchant.
43
+ class LfpMerchantState
44
+ include ::Google::Protobuf::MessageExts
45
+ extend ::Google::Protobuf::MessageExts::ClassMethods
46
+
47
+ # The state of a specific merchant's store.
48
+ # @!attribute [rw] store_code
49
+ # @return [::String]
50
+ # Required. Immutable. The identifier of this store.
51
+ # @!attribute [r] matching_state
52
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::LfpStoreState::StoreMatchingState]
53
+ # Output only. The store matching state.
54
+ # @!attribute [rw] matching_state_hint
55
+ # @return [::String]
56
+ # The hint of why the matching has failed (only set if matching_state is
57
+ # FAILED).
58
+ class LfpStoreState
59
+ include ::Google::Protobuf::MessageExts
60
+ extend ::Google::Protobuf::MessageExts::ClassMethods
61
+
62
+ # The state of matching `LfpStore` to a Google Business Profile listing.
63
+ module StoreMatchingState
64
+ # Store matching state unspecified.
65
+ STORE_MATCHING_STATE_UNSPECIFIED = 0
66
+
67
+ # The `LfpStore` is successfully matched with a Google Business Profile
68
+ # store.
69
+ STORE_MATCHING_STATE_MATCHED = 1
70
+
71
+ # The `LfpStore` is not matched with a Google Business Profile store.
72
+ STORE_MATCHING_STATE_FAILED = 2
73
+ end
74
+ end
75
+
76
+ # The inventory statistics for a merchant.
77
+ # @!attribute [rw] submitted_entries
78
+ # @return [::Integer]
79
+ # Number of entries (understanding entry as a pair of product and store)
80
+ # that were built based on provided inventories/sales and submitted to
81
+ # Google.
82
+ # @!attribute [rw] submitted_in_stock_entries
83
+ # @return [::Integer]
84
+ # Number of submitted in stock entries.
85
+ # @!attribute [rw] unsubmitted_entries
86
+ # @return [::Integer]
87
+ # Number of entries that were built based on provided
88
+ # inventories/sales and couldn't be submitted to Google due to errors like
89
+ # missing product.
90
+ # @!attribute [rw] submitted_products
91
+ # @return [::Integer]
92
+ # Number of products from provided inventories/sales that were created from
93
+ # matches to existing online products provided by the merchant or to the
94
+ # Google catalog.
95
+ class InventoryStats
96
+ include ::Google::Protobuf::MessageExts
97
+ extend ::Google::Protobuf::MessageExts::ClassMethods
98
+ end
99
+
100
+ # Country-specific settings for the merchant.
101
+ # @!attribute [rw] region_code
102
+ # @return [::String]
103
+ # Required. The [CLDR territory
104
+ # code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
105
+ # for the country for which these settings are defined.
106
+ # @!attribute [rw] free_local_listings_enabled
107
+ # @return [::Boolean]
108
+ # True if this merchant has enabled free local listings in MC.
109
+ # @!attribute [rw] local_inventory_ads_enabled
110
+ # @return [::Boolean]
111
+ # True if this merchant has enabled local inventory ads in MC.
112
+ # @!attribute [r] inventory_verification_state
113
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
114
+ # Output only. The verification state of this merchant's inventory check.
115
+ # @!attribute [r] product_page_type
116
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::ProductPageType]
117
+ # Output only. The product page type selected by this merchant.
118
+ # @!attribute [r] instock_serving_verification_state
119
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
120
+ # Output only. The verification state of this merchant's instock serving
121
+ # feature.
122
+ # @!attribute [r] pickup_serving_verification_state
123
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
124
+ # Output only. The verification state of this merchant's pickup serving
125
+ # feature.
126
+ class CountrySettings
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+
130
+ # The possible verification states for different merchant programs.
131
+ module VerificationState
132
+ # Verification state unspecified.
133
+ VERIFICATION_STATE_UNSPECIFIED = 0
134
+
135
+ # Verification state not approved.
136
+ VERIFICATION_STATE_NOT_APPROVED = 1
137
+
138
+ # Verification state in progress.
139
+ VERIFICATION_STATE_IN_PROGRESS = 2
140
+
141
+ # Verification state approved.
142
+ VERIFICATION_STATE_APPROVED = 3
143
+ end
144
+
145
+ # The possible [product page
146
+ # types](https://support.google.com/merchants/topic/15148370) for a
147
+ # merchant.
148
+ module ProductPageType
149
+ # Product page type unspecified.
150
+ PRODUCT_PAGE_TYPE_UNSPECIFIED = 0
151
+
152
+ # Google hosted product page.
153
+ GOOGLE_HOSTED = 1
154
+
155
+ # Merchant hosted product page.
156
+ MERCHANT_HOSTED = 2
157
+
158
+ # Merchant hosted store specific product page.
159
+ MERCHANT_HOSTED_STORE_SPECIFIC = 3
160
+ end
161
+ end
162
+ end
163
+
164
+ # Request message for the GetLfpMerchantState method.
165
+ # @!attribute [rw] name
166
+ # @return [::String]
167
+ # Required. The name of the state to retrieve.
168
+ # Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`
169
+ class GetLfpMerchantStateRequest
170
+ include ::Google::Protobuf::MessageExts
171
+ extend ::Google::Protobuf::MessageExts::ClassMethods
172
+ end
173
+ end
174
+ end
175
+ end
176
+ end
177
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-lfp-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-04-21 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -64,10 +63,22 @@ dependencies:
64
63
  - - "<"
65
64
  - !ruby/object:Gem::Version
66
65
  version: 2.a
67
- description: Programmatically manage your Merchant Center accounts. Note that google-shopping-merchant-lfp-v1beta
66
+ description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
67
+ you to programmatically manage your accounts. Conversions Sub-API: Enables you to
68
+ programmatically manage your conversion sources for a merchant account. Datasources
69
+ Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
70
+ This bundle enables you to programmatically manage your local and regional inventories.
71
+ Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
72
+ inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
73
+ manage your notification subscriptions. Products Sub-API: This bundle enables you
74
+ to programmatically manage your products. Promotions Sub-API: This bundle enables
75
+ you to programmatically manage your promotions for products. Quota Sub-API: This
76
+ bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
77
+ This bundle enables you to programmatically retrieve reports and insights about
78
+ products, their performance and their competitive environment. Note that google-shopping-merchant-lfp-v1beta
68
79
  is a version-specific client library. For most uses, we recommend installing the
69
80
  main client library google-shopping-merchant-lfp instead. See the readme for more
70
- details.
81
+ details.'
71
82
  email: googleapis-packages@google.com
72
83
  executables: []
73
84
  extensions: []
@@ -86,6 +97,13 @@ files:
86
97
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest.rb
87
98
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/client.rb
88
99
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/service_stub.rb
100
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service.rb
101
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/client.rb
102
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/credentials.rb
103
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/paths.rb
104
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest.rb
105
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/client.rb
106
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/service_stub.rb
89
107
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service.rb
90
108
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/client.rb
91
109
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/credentials.rb
@@ -102,6 +120,8 @@ files:
102
120
  - lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/service_stub.rb
103
121
  - lib/google/shopping/merchant/lfp/v1beta/lfpinventory_pb.rb
104
122
  - lib/google/shopping/merchant/lfp/v1beta/lfpinventory_services_pb.rb
123
+ - lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_pb.rb
124
+ - lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_services_pb.rb
105
125
  - lib/google/shopping/merchant/lfp/v1beta/lfpsale_pb.rb
106
126
  - lib/google/shopping/merchant/lfp/v1beta/lfpsale_services_pb.rb
107
127
  - lib/google/shopping/merchant/lfp/v1beta/lfpstore_pb.rb
@@ -118,6 +138,7 @@ files:
118
138
  - proto_docs/google/protobuf/empty.rb
119
139
  - proto_docs/google/protobuf/timestamp.rb
120
140
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpinventory.rb
141
+ - proto_docs/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.rb
121
142
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb
122
143
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpstore.rb
123
144
  - proto_docs/google/shopping/type/types.rb
@@ -125,7 +146,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
125
146
  licenses:
126
147
  - Apache-2.0
127
148
  metadata: {}
128
- post_install_message:
129
149
  rdoc_options: []
130
150
  require_paths:
131
151
  - lib
@@ -133,15 +153,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
153
  requirements:
134
154
  - - ">="
135
155
  - !ruby/object:Gem::Version
136
- version: '2.7'
156
+ version: '3.0'
137
157
  required_rubygems_version: !ruby/object:Gem::Requirement
138
158
  requirements:
139
159
  - - ">="
140
160
  - !ruby/object:Gem::Version
141
161
  version: '0'
142
162
  requirements: []
143
- rubygems_version: 3.5.23
144
- signing_key:
163
+ rubygems_version: 3.6.5
145
164
  specification_version: 4
146
- summary: Programmatically manage your Merchant Center accounts.
165
+ summary: Programmatically manage your Merchant Center Accounts.
147
166
  test_files: []