google-shopping-merchant-lfp-v1beta 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +144 -8
  5. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/client.rb +435 -0
  6. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/credentials.rb +49 -0
  7. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/paths.rb +70 -0
  8. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/client.rb +402 -0
  9. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest/service_stub.rb +131 -0
  10. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service/rest.rb +56 -0
  11. data/lib/google/shopping/merchant/lfp/v1beta/lfp_inventory_service.rb +59 -0
  12. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/client.rb +433 -0
  13. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/credentials.rb +49 -0
  14. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/paths.rb +52 -0
  15. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest/client.rb +400 -0
  16. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest/service_stub.rb +131 -0
  17. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service/rest.rb +56 -0
  18. data/lib/google/shopping/merchant/lfp/v1beta/lfp_sale_service.rb +59 -0
  19. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/client.rb +734 -0
  20. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/credentials.rb +49 -0
  21. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/paths.rb +68 -0
  22. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/client.rb +680 -0
  23. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest/service_stub.rb +308 -0
  24. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service/rest.rb +56 -0
  25. data/lib/google/shopping/merchant/lfp/v1beta/lfp_store_service.rb +59 -0
  26. data/lib/google/shopping/merchant/lfp/v1beta/lfpinventory_pb.rb +54 -0
  27. data/lib/google/shopping/merchant/lfp/v1beta/lfpinventory_services_pb.rb +51 -0
  28. data/lib/google/shopping/merchant/lfp/v1beta/lfpsale_pb.rb +55 -0
  29. data/lib/google/shopping/merchant/lfp/v1beta/lfpsale_services_pb.rb +49 -0
  30. data/lib/google/shopping/merchant/lfp/v1beta/lfpstore_pb.rb +56 -0
  31. data/lib/google/shopping/merchant/lfp/v1beta/lfpstore_services_pb.rb +57 -0
  32. data/lib/google/shopping/merchant/lfp/v1beta/rest.rb +41 -0
  33. data/lib/google/shopping/merchant/lfp/v1beta/version.rb +7 -2
  34. data/lib/google/shopping/merchant/lfp/v1beta.rb +49 -0
  35. data/lib/google-shopping-merchant-lfp-v1beta.rb +21 -0
  36. data/proto_docs/README.md +4 -0
  37. data/proto_docs/google/api/client.rb +399 -0
  38. data/proto_docs/google/api/field_behavior.rb +85 -0
  39. data/proto_docs/google/api/field_info.rb +65 -0
  40. data/proto_docs/google/api/launch_stage.rb +71 -0
  41. data/proto_docs/google/api/resource.rb +222 -0
  42. data/proto_docs/google/protobuf/duration.rb +98 -0
  43. data/proto_docs/google/protobuf/empty.rb +34 -0
  44. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  45. data/proto_docs/google/shopping/merchant/lfp/v1beta/lfpinventory.rb +113 -0
  46. data/proto_docs/google/shopping/merchant/lfp/v1beta/lfpsale.rb +96 -0
  47. data/proto_docs/google/shopping/merchant/lfp/v1beta/lfpstore.rb +185 -0
  48. data/proto_docs/google/shopping/type/types.rb +183 -0
  49. metadata +108 -10
@@ -0,0 +1,127 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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 Protobuf
22
+ # A Timestamp represents a point in time independent of any time zone or local
23
+ # calendar, encoded as a count of seconds and fractions of seconds at
24
+ # nanosecond resolution. The count is relative to an epoch at UTC midnight on
25
+ # January 1, 1970, in the proleptic Gregorian calendar which extends the
26
+ # Gregorian calendar backwards to year one.
27
+ #
28
+ # All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
29
+ # second table is needed for interpretation, using a [24-hour linear
30
+ # smear](https://developers.google.com/time/smear).
31
+ #
32
+ # The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
33
+ # restricting to that range, we ensure that we can convert to and from [RFC
34
+ # 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
35
+ #
36
+ # # Examples
37
+ #
38
+ # Example 1: Compute Timestamp from POSIX `time()`.
39
+ #
40
+ # Timestamp timestamp;
41
+ # timestamp.set_seconds(time(NULL));
42
+ # timestamp.set_nanos(0);
43
+ #
44
+ # Example 2: Compute Timestamp from POSIX `gettimeofday()`.
45
+ #
46
+ # struct timeval tv;
47
+ # gettimeofday(&tv, NULL);
48
+ #
49
+ # Timestamp timestamp;
50
+ # timestamp.set_seconds(tv.tv_sec);
51
+ # timestamp.set_nanos(tv.tv_usec * 1000);
52
+ #
53
+ # Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
54
+ #
55
+ # FILETIME ft;
56
+ # GetSystemTimeAsFileTime(&ft);
57
+ # UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
58
+ #
59
+ # // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
60
+ # // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
61
+ # Timestamp timestamp;
62
+ # timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
63
+ # timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
64
+ #
65
+ # Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
66
+ #
67
+ # long millis = System.currentTimeMillis();
68
+ #
69
+ # Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
70
+ # .setNanos((int) ((millis % 1000) * 1000000)).build();
71
+ #
72
+ # Example 5: Compute Timestamp from Java `Instant.now()`.
73
+ #
74
+ # Instant now = Instant.now();
75
+ #
76
+ # Timestamp timestamp =
77
+ # Timestamp.newBuilder().setSeconds(now.getEpochSecond())
78
+ # .setNanos(now.getNano()).build();
79
+ #
80
+ # Example 6: Compute Timestamp from current time in Python.
81
+ #
82
+ # timestamp = Timestamp()
83
+ # timestamp.GetCurrentTime()
84
+ #
85
+ # # JSON Mapping
86
+ #
87
+ # In JSON format, the Timestamp type is encoded as a string in the
88
+ # [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
89
+ # format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
90
+ # where \\{year} is always expressed using four digits while \\{month}, \\{day},
91
+ # \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
92
+ # seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
93
+ # are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
94
+ # is required. A proto3 JSON serializer should always use UTC (as indicated by
95
+ # "Z") when printing the Timestamp type and a proto3 JSON parser should be
96
+ # able to accept both UTC and other timezones (as indicated by an offset).
97
+ #
98
+ # For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
99
+ # 01:30 UTC on January 15, 2017.
100
+ #
101
+ # In JavaScript, one can convert a Date object to this format using the
102
+ # standard
103
+ # [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
104
+ # method. In Python, a standard `datetime.datetime` object can be converted
105
+ # to this format using
106
+ # [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
107
+ # the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
108
+ # the Joda Time's [`ISODateTimeFormat.dateTime()`](
109
+ # http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
110
+ # ) to obtain a formatter capable of generating timestamps in this format.
111
+ # @!attribute [rw] seconds
112
+ # @return [::Integer]
113
+ # Represents seconds of UTC time since Unix epoch
114
+ # 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
115
+ # 9999-12-31T23:59:59Z inclusive.
116
+ # @!attribute [rw] nanos
117
+ # @return [::Integer]
118
+ # Non-negative fractions of a second at nanosecond resolution. Negative
119
+ # second values with fractions must still have non-negative nanos values
120
+ # that count forward in time. Must be from 0 to 999,999,999
121
+ # inclusive.
122
+ class Timestamp
123
+ include ::Google::Protobuf::MessageExts
124
+ extend ::Google::Protobuf::MessageExts::ClassMethods
125
+ end
126
+ end
127
+ end
@@ -0,0 +1,113 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ # Local Inventory for the merchant.
26
+ # @!attribute [r] name
27
+ # @return [::String]
28
+ # Output only. Identifier. The name for the `LfpInventory` resource.
29
+ # Format:
30
+ # `accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}`
31
+ # @!attribute [rw] target_account
32
+ # @return [::Integer]
33
+ # Required. The Merchant Center ID of the merchant to submit the inventory
34
+ # for.
35
+ # @!attribute [rw] store_code
36
+ # @return [::String]
37
+ # Required. The identifier of the merchant's store. Either the store code
38
+ # inserted through `InsertLfpStore` or the store code in the Business
39
+ # Profile.
40
+ # @!attribute [rw] offer_id
41
+ # @return [::String]
42
+ # Required. Immutable. A unique identifier for the product. If both
43
+ # inventories and sales are submitted for a merchant, this id should match
44
+ # for the same product.
45
+ #
46
+ # **Note**: if the merchant sells the same product new and used, they should
47
+ # have different IDs.
48
+ # @!attribute [rw] region_code
49
+ # @return [::String]
50
+ # Required. The [CLDR territory
51
+ # code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
52
+ # for the country where the product is sold.
53
+ # @!attribute [rw] content_language
54
+ # @return [::String]
55
+ # Required. The two-letter ISO 639-1 language code for the item.
56
+ # @!attribute [rw] gtin
57
+ # @return [::String]
58
+ # Optional. The Global Trade Item Number of the product.
59
+ # @!attribute [rw] price
60
+ # @return [::Google::Shopping::Type::Price]
61
+ # Optional. The current price of the product.
62
+ # @!attribute [rw] availability
63
+ # @return [::String]
64
+ # Required. Availability of the product at this store.
65
+ # For accepted attribute values, see the [local product inventory feed
66
+ # specification](https://support.google.com/merchants/answer/3061342)
67
+ # @!attribute [rw] quantity
68
+ # @return [::Integer]
69
+ # Optional. Quantity of the product available at this store. Must be greater
70
+ # than or equal to zero.
71
+ # @!attribute [rw] collection_time
72
+ # @return [::Google::Protobuf::Timestamp]
73
+ # Optional. The time when the inventory is collected. If not set, it will be
74
+ # set to the time when the inventory is submitted.
75
+ # @!attribute [rw] pickup_method
76
+ # @return [::String]
77
+ # Optional. Supported pickup method for this offer. Unless the value is "not
78
+ # supported", this field must be submitted together with `pickupSla`. For
79
+ # accepted attribute values, see the [local product inventory feed
80
+ # specification](https://support.google.com/merchants/answer/3061342).
81
+ # @!attribute [rw] pickup_sla
82
+ # @return [::String]
83
+ # Optional. Expected date that an order will be ready for pickup relative to
84
+ # the order date. Must be submitted together with `pickupMethod`. For
85
+ # accepted attribute values, see the [local product inventory feed
86
+ # specification](https://support.google.com/merchants/answer/3061342).
87
+ # @!attribute [rw] feed_label
88
+ # @return [::String]
89
+ # Optional. The [feed
90
+ # label](https://developers.google.com/shopping-content/guides/products/feed-labels)
91
+ # for the product. If this is not set, it will default to `regionCode`.
92
+ class LfpInventory
93
+ include ::Google::Protobuf::MessageExts
94
+ extend ::Google::Protobuf::MessageExts::ClassMethods
95
+ end
96
+
97
+ # Request message for the `InsertLfpInventory` method.
98
+ # @!attribute [rw] parent
99
+ # @return [::String]
100
+ # Required. The LFP provider account.
101
+ # Format: `accounts/{account}`
102
+ # @!attribute [rw] lfp_inventory
103
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpInventory]
104
+ # Required. The inventory to insert.
105
+ class InsertLfpInventoryRequest
106
+ include ::Google::Protobuf::MessageExts
107
+ extend ::Google::Protobuf::MessageExts::ClassMethods
108
+ end
109
+ end
110
+ end
111
+ end
112
+ end
113
+ end
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ # A sale for the merchant.
26
+ # @!attribute [r] name
27
+ # @return [::String]
28
+ # Output only. Identifier. The name of the `LfpSale` resource.
29
+ # Format:
30
+ # `accounts/{account}/lfpSales/{sale}`
31
+ # @!attribute [rw] target_account
32
+ # @return [::Integer]
33
+ # Required. The Merchant Center ID of the merchant to submit the sale for.
34
+ # @!attribute [rw] store_code
35
+ # @return [::String]
36
+ # Required. The identifier of the merchant's store. Either a `storeCode`
37
+ # inserted through the API or the code of the store in the Business Profile.
38
+ # @!attribute [rw] offer_id
39
+ # @return [::String]
40
+ # Required. A unique identifier for the product. If both inventories and
41
+ # sales are submitted for a merchant, this id should match for the same
42
+ # product.
43
+ #
44
+ # **Note**: if the merchant sells the same product new and used, they should
45
+ # have different IDs.
46
+ # @!attribute [rw] region_code
47
+ # @return [::String]
48
+ # Required. The [CLDR territory
49
+ # code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
50
+ # for the country where the product is sold.
51
+ # @!attribute [rw] content_language
52
+ # @return [::String]
53
+ # Required. The two-letter ISO 639-1 language code for the item.
54
+ # @!attribute [rw] gtin
55
+ # @return [::String]
56
+ # Required. The Global Trade Item Number of the sold product.
57
+ # @!attribute [rw] price
58
+ # @return [::Google::Shopping::Type::Price]
59
+ # Required. The unit price of the product.
60
+ # @!attribute [rw] quantity
61
+ # @return [::Integer]
62
+ # Required. The relative change of the available quantity. Negative for items
63
+ # returned.
64
+ # @!attribute [rw] sale_time
65
+ # @return [::Google::Protobuf::Timestamp]
66
+ # Required. The timestamp for the sale.
67
+ # @!attribute [r] uid
68
+ # @return [::String]
69
+ # Output only. System generated globally unique ID for the `LfpSale`.
70
+ # @!attribute [rw] feed_label
71
+ # @return [::String]
72
+ # Optional. The [feed
73
+ # label](https://developers.google.com/shopping-content/guides/products/feed-labels)
74
+ # for the product. If this is not set, it will default to `regionCode`.
75
+ class LfpSale
76
+ include ::Google::Protobuf::MessageExts
77
+ extend ::Google::Protobuf::MessageExts::ClassMethods
78
+ end
79
+
80
+ # Request message for the InsertLfpSale method.
81
+ # @!attribute [rw] parent
82
+ # @return [::String]
83
+ # Required. The LFP provider account.
84
+ # Format: `accounts/{lfp_partner}`
85
+ # @!attribute [rw] lfp_sale
86
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpSale]
87
+ # Required. The sale to insert.
88
+ class InsertLfpSaleRequest
89
+ include ::Google::Protobuf::MessageExts
90
+ extend ::Google::Protobuf::MessageExts::ClassMethods
91
+ end
92
+ end
93
+ end
94
+ end
95
+ end
96
+ end
@@ -0,0 +1,185 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2024 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
+ # A store for the merchant. This will be used to match to a Google Business
26
+ # Profile listing for the target merchant. If a matching listing can't be
27
+ # found, the inventories or sales submitted with the store code will not be
28
+ # used.
29
+ # @!attribute [r] name
30
+ # @return [::String]
31
+ # Output only. Identifier. The name of the `LfpStore` resource.
32
+ # Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
33
+ # @!attribute [rw] target_account
34
+ # @return [::Integer]
35
+ # Required. The Merchant Center id of the merchant to submit the store for.
36
+ # @!attribute [rw] store_code
37
+ # @return [::String]
38
+ # Required. Immutable. A store identifier that is unique for the target
39
+ # merchant.
40
+ # @!attribute [rw] store_address
41
+ # @return [::String]
42
+ # Required. The street address of the store.
43
+ # Example: 1600 Amphitheatre Pkwy, Mountain View, CA 94043, USA.
44
+ # @!attribute [rw] store_name
45
+ # @return [::String]
46
+ # Optional. The merchant or store name.
47
+ # @!attribute [rw] phone_number
48
+ # @return [::String]
49
+ # Optional. The store phone number in
50
+ # [E.164](https://en.wikipedia.org/wiki/E.164) format. Example:
51
+ # `+15556767888`
52
+ # @!attribute [rw] website_uri
53
+ # @return [::String]
54
+ # Optional. The website URL for the store or merchant.
55
+ # @!attribute [rw] gcid_category
56
+ # @return [::Array<::String>]
57
+ # Optional. [Google My Business category
58
+ # id](https://gcid-explorer.corp.google.com/static/gcid.html).
59
+ # @!attribute [rw] place_id
60
+ # @return [::String]
61
+ # Optional. The [Google Place
62
+ # Id](https://developers.google.com/maps/documentation/places/web-service/place-id#id-overview)
63
+ # of the store location.
64
+ # @!attribute [r] matching_state
65
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpStore::StoreMatchingState]
66
+ # Optional. Output only. The state of matching to a Google Business Profile
67
+ # listing. See
68
+ # {::Google::Shopping::Merchant::Lfp::V1beta::LfpStore#matching_state_hint matchingStateHint}
69
+ # for further details if no match is found.
70
+ # @!attribute [r] matching_state_hint
71
+ # @return [::String]
72
+ # Optional. Output only. The hint of why the matching has failed. This is
73
+ # only set when
74
+ # {::Google::Shopping::Merchant::Lfp::V1beta::LfpStore#matching_state matchingState}=`STORE_MATCHING_STATE_FAILED`.
75
+ #
76
+ # Possible values are:
77
+ #
78
+ # - "`linked-store-not-found`": There aren't any Google Business
79
+ # Profile stores available for matching.
80
+ # - "`store-match-not-found`": The provided `LfpStore` couldn't be matched to
81
+ # any of the connected Google Business Profile stores. Merchant Center
82
+ # account is connected correctly and stores are available on Google Business
83
+ # Profile, but the `LfpStore` location address does not match with Google
84
+ # Business Profile stores' addresses. Update the `LfpStore` address or Google
85
+ # Business Profile store address to match correctly.
86
+ # - "`store-match-unverified`": The provided `LfpStore` couldn't be matched
87
+ # to any of the connected Google Business Profile stores, as the matched
88
+ # Google Business Profile store is unverified. Go through the Google Business
89
+ # Profile verification process to match correctly.
90
+ class LfpStore
91
+ include ::Google::Protobuf::MessageExts
92
+ extend ::Google::Protobuf::MessageExts::ClassMethods
93
+
94
+ # The state of matching `LfpStore` to a Google Business Profile listing.
95
+ module StoreMatchingState
96
+ # Store matching state unspecified.
97
+ STORE_MATCHING_STATE_UNSPECIFIED = 0
98
+
99
+ # The `LfpStore` is successfully matched with a Google Business Profile
100
+ # store.
101
+ STORE_MATCHING_STATE_MATCHED = 1
102
+
103
+ # The `LfpStore` is not matched with a Google Business Profile store.
104
+ STORE_MATCHING_STATE_FAILED = 2
105
+ end
106
+ end
107
+
108
+ # Request message for the `GetLfpStore` method.
109
+ # @!attribute [rw] name
110
+ # @return [::String]
111
+ # Required. The name of the store to retrieve.
112
+ # Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
113
+ class GetLfpStoreRequest
114
+ include ::Google::Protobuf::MessageExts
115
+ extend ::Google::Protobuf::MessageExts::ClassMethods
116
+ end
117
+
118
+ # Request message for the InsertLfpStore method.
119
+ # @!attribute [rw] parent
120
+ # @return [::String]
121
+ # Required. The LFP provider account
122
+ # Format: `accounts/{account}`
123
+ # @!attribute [rw] lfp_store
124
+ # @return [::Google::Shopping::Merchant::Lfp::V1beta::LfpStore]
125
+ # Required. The store to insert.
126
+ class InsertLfpStoreRequest
127
+ include ::Google::Protobuf::MessageExts
128
+ extend ::Google::Protobuf::MessageExts::ClassMethods
129
+ end
130
+
131
+ # Request message for the DeleteLfpStore method.
132
+ # @!attribute [rw] name
133
+ # @return [::String]
134
+ # Required. The name of the store to delete for the target merchant account.
135
+ # Format: `accounts/{account}/lfpStores/{target_merchant}~{store_code}`
136
+ class DeleteLfpStoreRequest
137
+ include ::Google::Protobuf::MessageExts
138
+ extend ::Google::Protobuf::MessageExts::ClassMethods
139
+ end
140
+
141
+ # Request message for the ListLfpStores method.
142
+ # @!attribute [rw] parent
143
+ # @return [::String]
144
+ # Required. The LFP partner.
145
+ # Format: `accounts/{account}`
146
+ # @!attribute [rw] target_account
147
+ # @return [::Integer]
148
+ # Required. The Merchant Center id of the merchant to list stores for.
149
+ # @!attribute [rw] page_size
150
+ # @return [::Integer]
151
+ # Optional. The maximum number of `LfpStore` resources for the given account
152
+ # to return. The service returns fewer than this value if the number of
153
+ # stores for the given account is less than the `pageSize`. The default value
154
+ # is 250. The maximum value is 1000; If a value higher than the maximum is
155
+ # specified, then the `pageSize` will default to the maximum.
156
+ # @!attribute [rw] page_token
157
+ # @return [::String]
158
+ # Optional. A page token, received from a previous `ListLfpStoresRequest`
159
+ # call. Provide the page token to retrieve the subsequent page. When
160
+ # paginating, all other parameters provided to `ListLfpStoresRequest` must
161
+ # match the call that provided the page token. The token returned as
162
+ # {::Google::Shopping::Merchant::Lfp::V1beta::ListLfpStoresResponse#next_page_token nextPageToken}
163
+ # in the response to the previous request.
164
+ class ListLfpStoresRequest
165
+ include ::Google::Protobuf::MessageExts
166
+ extend ::Google::Protobuf::MessageExts::ClassMethods
167
+ end
168
+
169
+ # Response message for the ListLfpStores method.
170
+ # @!attribute [rw] lfp_stores
171
+ # @return [::Array<::Google::Shopping::Merchant::Lfp::V1beta::LfpStore>]
172
+ # The stores from the specified merchant.
173
+ # @!attribute [rw] next_page_token
174
+ # @return [::String]
175
+ # A token, which can be sent as `pageToken` to retrieve the next page.
176
+ # If this field is omitted, there are no subsequent pages.
177
+ class ListLfpStoresResponse
178
+ include ::Google::Protobuf::MessageExts
179
+ extend ::Google::Protobuf::MessageExts::ClassMethods
180
+ end
181
+ end
182
+ end
183
+ end
184
+ end
185
+ end