google-shopping-merchant-lfp-v1beta 0.3.0 → 0.5.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 +2 -1
  3. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/client.rb +2 -2
  4. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/client.rb +1 -1
  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 +2 -2
  13. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest/client.rb +1 -1
  14. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/client.rb +2 -2
  15. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/client.rb +1 -1
  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 +179 -0
  23. metadata +33 -17
@@ -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
@@ -384,8 +384,8 @@ module Google
384
384
 
385
385
  config_attr :endpoint, nil, ::String, nil
386
386
  config_attr :credentials, nil do |value|
387
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
388
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
387
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
388
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
389
389
  allowed.any? { |klass| klass === value }
390
390
  end
391
391
  config_attr :scope, nil, ::String, ::Array, nil
@@ -361,7 +361,7 @@ module Google
361
361
 
362
362
  config_attr :endpoint, nil, ::String, nil
363
363
  config_attr :credentials, nil do |value|
364
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
364
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
365
365
  allowed.any? { |klass| klass === value }
366
366
  end
367
367
  config_attr :scope, nil, ::String, ::Array, nil
@@ -665,8 +665,8 @@ module Google
665
665
 
666
666
  config_attr :endpoint, nil, ::String, nil
667
667
  config_attr :credentials, nil do |value|
668
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
669
- allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
668
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
669
+ allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
670
670
  allowed.any? { |klass| klass === value }
671
671
  end
672
672
  config_attr :scope, nil, ::String, ::Array, nil
@@ -621,7 +621,7 @@ module Google
621
621
 
622
622
  config_attr :endpoint, nil, ::String, nil
623
623
  config_attr :credentials, nil do |value|
624
- allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
624
+ allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
625
625
  allowed.any? { |klass| klass === value }
626
626
  end
627
627
  config_attr :scope, nil, ::String, ::Array, nil
@@ -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.3.0"
25
+ VERSION = "0.5.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,179 @@
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. The field
37
+ # will be absent if the merchant has no stores submitted through LFP.
38
+ # @!attribute [rw] inventory_stats
39
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::InventoryStats]
40
+ # The inventory statistics for the merchant. The field will be absent if the
41
+ # merchant has no inventory submitted through LFP.
42
+ # @!attribute [rw] country_settings
43
+ # @return [::Array<::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings>]
44
+ # Country-specific settings for the merchant.
45
+ class LfpMerchantState
46
+ include ::Google::Protobuf::MessageExts
47
+ extend ::Google::Protobuf::MessageExts::ClassMethods
48
+
49
+ # The state of a specific merchant's store.
50
+ # @!attribute [rw] store_code
51
+ # @return [::String]
52
+ # Required. Immutable. The identifier of this store.
53
+ # @!attribute [r] matching_state
54
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::LfpStoreState::StoreMatchingState]
55
+ # Output only. The store matching state.
56
+ # @!attribute [rw] matching_state_hint
57
+ # @return [::String]
58
+ # The hint of why the matching has failed (only set if matching_state is
59
+ # FAILED).
60
+ class LfpStoreState
61
+ include ::Google::Protobuf::MessageExts
62
+ extend ::Google::Protobuf::MessageExts::ClassMethods
63
+
64
+ # The state of matching `LfpStore` to a Google Business Profile listing.
65
+ module StoreMatchingState
66
+ # Store matching state unspecified.
67
+ STORE_MATCHING_STATE_UNSPECIFIED = 0
68
+
69
+ # The `LfpStore` is successfully matched with a Google Business Profile
70
+ # store.
71
+ STORE_MATCHING_STATE_MATCHED = 1
72
+
73
+ # The `LfpStore` is not matched with a Google Business Profile store.
74
+ STORE_MATCHING_STATE_FAILED = 2
75
+ end
76
+ end
77
+
78
+ # The inventory statistics for a merchant.
79
+ # @!attribute [rw] submitted_entries
80
+ # @return [::Integer]
81
+ # Number of entries (understanding entry as a pair of product and store)
82
+ # that were built based on provided inventories/sales and submitted to
83
+ # Google.
84
+ # @!attribute [rw] submitted_in_stock_entries
85
+ # @return [::Integer]
86
+ # Number of submitted in stock entries.
87
+ # @!attribute [rw] unsubmitted_entries
88
+ # @return [::Integer]
89
+ # Number of entries that were built based on provided
90
+ # inventories/sales and couldn't be submitted to Google due to errors like
91
+ # missing product.
92
+ # @!attribute [rw] submitted_products
93
+ # @return [::Integer]
94
+ # Number of products from provided inventories/sales that were created from
95
+ # matches to existing online products provided by the merchant or to the
96
+ # Google catalog.
97
+ class InventoryStats
98
+ include ::Google::Protobuf::MessageExts
99
+ extend ::Google::Protobuf::MessageExts::ClassMethods
100
+ end
101
+
102
+ # Country-specific settings for the merchant.
103
+ # @!attribute [rw] region_code
104
+ # @return [::String]
105
+ # Required. The [CLDR territory
106
+ # code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
107
+ # for the country for which these settings are defined.
108
+ # @!attribute [rw] free_local_listings_enabled
109
+ # @return [::Boolean]
110
+ # True if this merchant has enabled free local listings in MC.
111
+ # @!attribute [rw] local_inventory_ads_enabled
112
+ # @return [::Boolean]
113
+ # True if this merchant has enabled local inventory ads in MC.
114
+ # @!attribute [r] inventory_verification_state
115
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
116
+ # Output only. The verification state of this merchant's inventory check.
117
+ # @!attribute [r] product_page_type
118
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::ProductPageType]
119
+ # Output only. The product page type selected by this merchant.
120
+ # @!attribute [r] instock_serving_verification_state
121
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
122
+ # Output only. The verification state of this merchant's instock serving
123
+ # feature.
124
+ # @!attribute [r] pickup_serving_verification_state
125
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpMerchantState::CountrySettings::VerificationState]
126
+ # Output only. The verification state of this merchant's pickup serving
127
+ # feature.
128
+ class CountrySettings
129
+ include ::Google::Protobuf::MessageExts
130
+ extend ::Google::Protobuf::MessageExts::ClassMethods
131
+
132
+ # The possible verification states for different merchant programs.
133
+ module VerificationState
134
+ # Verification state unspecified.
135
+ VERIFICATION_STATE_UNSPECIFIED = 0
136
+
137
+ # Verification state not approved.
138
+ VERIFICATION_STATE_NOT_APPROVED = 1
139
+
140
+ # Verification state in progress.
141
+ VERIFICATION_STATE_IN_PROGRESS = 2
142
+
143
+ # Verification state approved.
144
+ VERIFICATION_STATE_APPROVED = 3
145
+ end
146
+
147
+ # The possible [product page
148
+ # types](https://support.google.com/merchants/topic/15148370) for a
149
+ # merchant.
150
+ module ProductPageType
151
+ # Product page type unspecified.
152
+ PRODUCT_PAGE_TYPE_UNSPECIFIED = 0
153
+
154
+ # Google hosted product page.
155
+ GOOGLE_HOSTED = 1
156
+
157
+ # Merchant hosted product page.
158
+ MERCHANT_HOSTED = 2
159
+
160
+ # Merchant hosted store specific product page.
161
+ MERCHANT_HOSTED_STORE_SPECIFIC = 3
162
+ end
163
+ end
164
+ end
165
+
166
+ # Request message for the GetLfpMerchantState method.
167
+ # @!attribute [rw] name
168
+ # @return [::String]
169
+ # Required. The name of the state to retrieve.
170
+ # Format: `accounts/{account}/lfpMerchantStates/{target_merchant}`
171
+ class GetLfpMerchantStateRequest
172
+ include ::Google::Protobuf::MessageExts
173
+ extend ::Google::Protobuf::MessageExts::ClassMethods
174
+ end
175
+ end
176
+ end
177
+ end
178
+ end
179
+ end
metadata CHANGED
@@ -1,34 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-shopping-merchant-lfp-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-01-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: gapic-common
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
17
- - !ruby/object:Gem::Version
18
- version: 0.25.0
19
- - - "<"
16
+ - - "~>"
20
17
  - !ruby/object:Gem::Version
21
- version: 2.a
18
+ version: '1.0'
22
19
  type: :runtime
23
20
  prerelease: false
24
21
  version_requirements: !ruby/object:Gem::Requirement
25
22
  requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- version: 0.25.0
29
- - - "<"
23
+ - - "~>"
30
24
  - !ruby/object:Gem::Version
31
- version: 2.a
25
+ version: '1.0'
32
26
  - !ruby/object:Gem::Dependency
33
27
  name: google-cloud-errors
34
28
  requirement: !ruby/object:Gem::Requirement
@@ -63,10 +57,22 @@ dependencies:
63
57
  - - "<"
64
58
  - !ruby/object:Gem::Version
65
59
  version: 2.a
66
- description: Programmatically manage your Merchant Center accounts. Note that google-shopping-merchant-lfp-v1beta
60
+ description: 'Merchant API consists of multiple Sub-APIs. Accounts Sub-API: Enables
61
+ you to programmatically manage your accounts. Conversions Sub-API: Enables you to
62
+ programmatically manage your conversion sources for a merchant account. Datasources
63
+ Sub-API: Enables you to programmatically manage your datasources. Inventories Sub-API:
64
+ This bundle enables you to programmatically manage your local and regional inventories.
65
+ Local Feeds Partnerships Sub-API: This bundle enables LFP partners to submit local
66
+ inventories for a merchant. Notifications Sub-API: This bundle enables you to programmatically
67
+ manage your notification subscriptions. Products Sub-API: This bundle enables you
68
+ to programmatically manage your products. Promotions Sub-API: This bundle enables
69
+ you to programmatically manage your promotions for products. Quota Sub-API: This
70
+ bundle enables you to list your quotas for all APIs you are using. Reports Sub-API:
71
+ This bundle enables you to programmatically retrieve reports and insights about
72
+ products, their performance and their competitive environment. Note that google-shopping-merchant-lfp-v1beta
67
73
  is a version-specific client library. For most uses, we recommend installing the
68
74
  main client library google-shopping-merchant-lfp instead. See the readme for more
69
- details.
75
+ details.'
70
76
  email: googleapis-packages@google.com
71
77
  executables: []
72
78
  extensions: []
@@ -85,6 +91,13 @@ files:
85
91
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest.rb
86
92
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/client.rb
87
93
  - lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/service_stub.rb
94
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service.rb
95
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/client.rb
96
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/credentials.rb
97
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/paths.rb
98
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest.rb
99
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/client.rb
100
+ - lib/google/shopping/merchant/lfp/v1beta/lfp_merchant_state_service/rest/service_stub.rb
88
101
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service.rb
89
102
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/client.rb
90
103
  - lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/credentials.rb
@@ -101,6 +114,8 @@ files:
101
114
  - lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/service_stub.rb
102
115
  - lib/google/shopping/merchant/lfp/v1beta/lfpinventory_pb.rb
103
116
  - lib/google/shopping/merchant/lfp/v1beta/lfpinventory_services_pb.rb
117
+ - lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_pb.rb
118
+ - lib/google/shopping/merchant/lfp/v1beta/lfpmerchantstate_services_pb.rb
104
119
  - lib/google/shopping/merchant/lfp/v1beta/lfpsale_pb.rb
105
120
  - lib/google/shopping/merchant/lfp/v1beta/lfpsale_services_pb.rb
106
121
  - lib/google/shopping/merchant/lfp/v1beta/lfpstore_pb.rb
@@ -117,6 +132,7 @@ files:
117
132
  - proto_docs/google/protobuf/empty.rb
118
133
  - proto_docs/google/protobuf/timestamp.rb
119
134
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpinventory.rb
135
+ - proto_docs/google/shopping/merchant/lfp/v1beta/lfpmerchantstate.rb
120
136
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb
121
137
  - proto_docs/google/shopping/merchant/lfp/v1beta/lfpstore.rb
122
138
  - proto_docs/google/shopping/type/types.rb
@@ -131,14 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
131
147
  requirements:
132
148
  - - ">="
133
149
  - !ruby/object:Gem::Version
134
- version: '3.0'
150
+ version: '3.1'
135
151
  required_rubygems_version: !ruby/object:Gem::Requirement
136
152
  requirements:
137
153
  - - ">="
138
154
  - !ruby/object:Gem::Version
139
155
  version: '0'
140
156
  requirements: []
141
- rubygems_version: 3.6.2
157
+ rubygems_version: 3.6.8
142
158
  specification_version: 4
143
- summary: Programmatically manage your Merchant Center accounts.
159
+ summary: Programmatically manage your Merchant Center Accounts.
144
160
  test_files: []