Debian Codegraph @

shopping/merchant/lfp/apiv1/lfppb/lfpinventory.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/shopping/merchant/lfp/v1/lfpinventory.proto
20
21 package lfppb
22
23 import (
24 typepb "cloud.google.com/go/shopping/type/typepb"
25 context "context"
26 _ "google.golang.org/genproto/googleapis/api/annotations"
27 grpc "google.golang.org/grpc"
28 codes "google.golang.org/grpc/codes"
29 status "google.golang.org/grpc/status"
30 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
31 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
32 timestamppb "google.golang.org/protobuf/types/known/timestamppb"
33 reflect "reflect"
34 sync "sync"
35 )
36
37 const (
38 // Verify that this generated code is sufficiently up-to-date.
39 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
40 // Verify that runtime/protoimpl is sufficiently up-to-date.
41 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
42 )
43
44 // Local Inventory for the merchant.
45 type LfpInventory struct {
46 state protoimpl.MessageState
47 sizeCache protoimpl.SizeCache
48 unknownFields protoimpl.UnknownFields
49
50 // Output only. Identifier. The name for the `LfpInventory` resource.
51 // Format:
52 // `accounts/{account}/lfpInventories/{target_merchant}~{store_code}~{offer}`
53 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
54 // Required. The Merchant Center ID of the merchant to submit the inventory
55 // for.
56 TargetAccount int64 `protobuf:"varint,2,opt,name=target_account,json=targetAccount,proto3" json:"target_account,omitempty"`
57 // Required. The identifier of the merchant's store. Either the store code
58 // inserted through `InsertLfpStore` or the store code in the Business
59 // Profile.
60 StoreCode string `protobuf:"bytes,3,opt,name=store_code,json=storeCode,proto3" json:"store_code,omitempty"`
61 // Required. Immutable. A unique identifier for the product. If both
62 // inventories and sales are submitted for a merchant, this id should match
63 // for the same product.
64 //
65 // **Note**: if the merchant sells the same product new and used, they should
66 // have different IDs.
67 OfferId string `protobuf:"bytes,4,opt,name=offer_id,json=offerId,proto3" json:"offer_id,omitempty"`
68 // Required. The [CLDR territory
69 // code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml)
70 // for the country where the product is sold.
71 RegionCode string `protobuf:"bytes,5,opt,name=region_code,json=regionCode,proto3" json:"region_code,omitempty"`
72 // Required. The two-letter ISO 639-1 language code for the item.
73 ContentLanguage string `protobuf:"bytes,6,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
74 // Optional. The Global Trade Item Number of the product.
75 Gtin *string `protobuf:"bytes,7,opt,name=gtin,proto3,oneof" json:"gtin,omitempty"`
76 // Optional. The current price of the product.
77 Price *typepb.Price `protobuf:"bytes,8,opt,name=price,proto3" json:"price,omitempty"`
78 // Required. Availability of the product at this store.
79 // For accepted attribute values, see the [local product inventory data
80 // specification](https://support.google.com/merchants/answer/3061342)
81 Availability string `protobuf:"bytes,9,opt,name=availability,proto3" json:"availability,omitempty"`
82 // Optional. Quantity of the product available at this store. Must be greater
83 // than or equal to zero.
84 Quantity *int64 `protobuf:"varint,10,opt,name=quantity,proto3,oneof" json:"quantity,omitempty"`
85 // Optional. The time when the inventory is collected. If not set, it will be
86 // set to the time when the inventory is submitted.
87 CollectionTime *timestamppb.Timestamp `protobuf:"bytes,11,opt,name=collection_time,json=collectionTime,proto3" json:"collection_time,omitempty"`
88 // Optional. Supported pickup method for this offer. Unless the value is "not
89 // supported", this field must be submitted together with `pickupSla`. For
90 // accepted attribute values, see the [local product inventory data
91 // specification](https://support.google.com/merchants/answer/3061342).
92 PickupMethod *string `protobuf:"bytes,12,opt,name=pickup_method,json=pickupMethod,proto3,oneof" json:"pickup_method,omitempty"`
93 // Optional. Expected date that an order will be ready for pickup relative to
94 // the order date. Must be submitted together with `pickupMethod`. For
95 // accepted attribute values, see the [local product inventory data
96 // specification](https://support.google.com/merchants/answer/3061342).
97 PickupSla *string `protobuf:"bytes,13,opt,name=pickup_sla,json=pickupSla,proto3,oneof" json:"pickup_sla,omitempty"`
98 // Optional. The [feed
99 // label](https://developers.google.com/shopping-content/guides/products/feed-labels)
100 // for the product. If this is not set, it will default to `regionCode`.
101 FeedLabel *string `protobuf:"bytes,14,opt,name=feed_label,json=feedLabel,proto3,oneof" json:"feed_label,omitempty"`
102 }
103
104 func (x *LfpInventory) Reset() {
105 *x = LfpInventory{}
106 mi := &file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes[0]
107 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
108 ms.StoreMessageInfo(mi)
109 }
110
111 func (x *LfpInventory) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*LfpInventory) ProtoMessage() {}
116
117 func (x *LfpInventory) ProtoReflect() protoreflect.Message {
118 mi := &file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes[0]
119 if x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129 // Deprecated: Use LfpInventory.ProtoReflect.Descriptor instead.
130 func (*LfpInventory) Descriptor() ([]byte, []int) {
131 return file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescGZIP(), []int{0}
132 }
133
134 func (x *LfpInventory) GetName() string {
135 if x != nil {
136 return x.Name
137 }
138 return ""
139 }
140
141 func (x *LfpInventory) GetTargetAccount() int64 {
142 if x != nil {
143 return x.TargetAccount
144 }
145 return 0
146 }
147
148 func (x *LfpInventory) GetStoreCode() string {
149 if x != nil {
150 return x.StoreCode
151 }
152 return ""
153 }
154
155 func (x *LfpInventory) GetOfferId() string {
156 if x != nil {
157 return x.OfferId
158 }
159 return ""
160 }
161
162 func (x *LfpInventory) GetRegionCode() string {
163 if x != nil {
164 return x.RegionCode
165 }
166 return ""
167 }
168
169 func (x *LfpInventory) GetContentLanguage() string {
170 if x != nil {
171 return x.ContentLanguage
172 }
173 return ""
174 }
175
176 func (x *LfpInventory) GetGtin() string {
177 if x != nil && x.Gtin != nil {
178 return *x.Gtin
179 }
180 return ""
181 }
182
183 func (x *LfpInventory) GetPrice() *typepb.Price {
184 if x != nil {
185 return x.Price
186 }
187 return nil
188 }
189
190 func (x *LfpInventory) GetAvailability() string {
191 if x != nil {
192 return x.Availability
193 }
194 return ""
195 }
196
197 func (x *LfpInventory) GetQuantity() int64 {
198 if x != nil && x.Quantity != nil {
199 return *x.Quantity
200 }
201 return 0
202 }
203
204 func (x *LfpInventory) GetCollectionTime() *timestamppb.Timestamp {
205 if x != nil {
206 return x.CollectionTime
207 }
208 return nil
209 }
210
211 func (x *LfpInventory) GetPickupMethod() string {
212 if x != nil && x.PickupMethod != nil {
213 return *x.PickupMethod
214 }
215 return ""
216 }
217
218 func (x *LfpInventory) GetPickupSla() string {
219 if x != nil && x.PickupSla != nil {
220 return *x.PickupSla
221 }
222 return ""
223 }
224
225 func (x *LfpInventory) GetFeedLabel() string {
226 if x != nil && x.FeedLabel != nil {
227 return *x.FeedLabel
228 }
229 return ""
230 }
231
232 // Request message for the `InsertLfpInventory` method.
233 type InsertLfpInventoryRequest struct {
234 state protoimpl.MessageState
235 sizeCache protoimpl.SizeCache
236 unknownFields protoimpl.UnknownFields
237
238 // Required. The LFP provider account.
239 // Format: `accounts/{account}`
240 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
241 // Required. The inventory to insert.
242 LfpInventory *LfpInventory `protobuf:"bytes,2,opt,name=lfp_inventory,json=lfpInventory,proto3" json:"lfp_inventory,omitempty"`
243 }
244
245 func (x *InsertLfpInventoryRequest) Reset() {
246 *x = InsertLfpInventoryRequest{}
247 mi := &file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes[1]
248 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
249 ms.StoreMessageInfo(mi)
250 }
251
252 func (x *InsertLfpInventoryRequest) String() string {
253 return protoimpl.X.MessageStringOf(x)
254 }
255
256 func (*InsertLfpInventoryRequest) ProtoMessage() {}
257
258 func (x *InsertLfpInventoryRequest) ProtoReflect() protoreflect.Message {
259 mi := &file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes[1]
260 if x != nil {
261 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
262 if ms.LoadMessageInfo() == nil {
263 ms.StoreMessageInfo(mi)
264 }
265 return ms
266 }
267 return mi.MessageOf(x)
268 }
269
270 // Deprecated: Use InsertLfpInventoryRequest.ProtoReflect.Descriptor instead.
271 func (*InsertLfpInventoryRequest) Descriptor() ([]byte, []int) {
272 return file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescGZIP(), []int{1}
273 }
274
275 func (x *InsertLfpInventoryRequest) GetParent() string {
276 if x != nil {
277 return x.Parent
278 }
279 return ""
280 }
281
282 func (x *InsertLfpInventoryRequest) GetLfpInventory() *LfpInventory {
283 if x != nil {
284 return x.LfpInventory
285 }
286 return nil
287 }
288
289 var File_google_shopping_merchant_lfp_v1_lfpinventory_proto protoreflect.FileDescriptor
290
291 var file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDesc = []byte{
292 0x0a, 0x32, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
293 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x6c, 0x66, 0x70, 0x2f, 0x76,
294 0x31, 0x2f, 0x6c, 0x66, 0x70, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x2e, 0x70,
295 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f,
296 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c,
297 0x66, 0x70, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70,
298 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72,
299 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
300 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f,
301 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62,
302 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67,
303 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72,
304 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
305 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
306 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
307 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
308 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc1, 0x06, 0x0a, 0x0c,
309 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x04,
310 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x03, 0xe0,
311 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67,
312 0x65, 0x74, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03,
313 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x41, 0x63, 0x63,
314 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x22, 0x0a, 0x0a, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f,
315 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x73,
316 0x74, 0x6f, 0x72, 0x65, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x21, 0x0a, 0x08, 0x6f, 0x66, 0x66, 0x65,
317 0x72, 0x5f, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe0, 0x41, 0x02, 0xe0,
318 0x41, 0x05, 0x52, 0x07, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x49, 0x64, 0x12, 0x24, 0x0a, 0x0b, 0x72,
319 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
320 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64,
321 0x65, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f, 0x6c, 0x61, 0x6e,
322 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02,
323 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67,
324 0x65, 0x12, 0x1c, 0x0a, 0x04, 0x67, 0x74, 0x69, 0x6e, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x42,
325 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00, 0x52, 0x04, 0x67, 0x74, 0x69, 0x6e, 0x88, 0x01, 0x01, 0x12,
326 0x36, 0x0a, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b,
327 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
328 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x72, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01,
329 0x52, 0x05, 0x70, 0x72, 0x69, 0x63, 0x65, 0x12, 0x27, 0x0a, 0x0c, 0x61, 0x76, 0x61, 0x69, 0x6c,
330 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x09, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
331 0x41, 0x02, 0x52, 0x0c, 0x61, 0x76, 0x61, 0x69, 0x6c, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
332 0x12, 0x24, 0x0a, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x18, 0x0a, 0x20, 0x01,
333 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x01, 0x52, 0x08, 0x71, 0x75, 0x61, 0x6e, 0x74,
334 0x69, 0x74, 0x79, 0x88, 0x01, 0x01, 0x12, 0x48, 0x0a, 0x0f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63,
335 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32,
336 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75,
337 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x42, 0x03, 0xe0, 0x41, 0x01,
338 0x52, 0x0e, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x54, 0x69, 0x6d, 0x65,
339 0x12, 0x2d, 0x0a, 0x0d, 0x70, 0x69, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f,
340 0x64, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x02, 0x52, 0x0c,
341 0x70, 0x69, 0x63, 0x6b, 0x75, 0x70, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x88, 0x01, 0x01, 0x12,
342 0x27, 0x0a, 0x0a, 0x70, 0x69, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x6c, 0x61, 0x18, 0x0d, 0x20,
343 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x03, 0x52, 0x09, 0x70, 0x69, 0x63, 0x6b,
344 0x75, 0x70, 0x53, 0x6c, 0x61, 0x88, 0x01, 0x01, 0x12, 0x27, 0x0a, 0x0a, 0x66, 0x65, 0x65, 0x64,
345 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
346 0x01, 0x48, 0x04, 0x52, 0x09, 0x66, 0x65, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x88, 0x01,
347 0x01, 0x3a, 0x95, 0x01, 0xea, 0x41, 0x91, 0x01, 0x0a, 0x27, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61,
348 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
349 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72,
350 0x79, 0x12, 0x48, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63,
351 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x6c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f,
352 0x72, 0x69, 0x65, 0x73, 0x2f, 0x7b, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f, 0x6d, 0x65, 0x72,
353 0x63, 0x68, 0x61, 0x6e, 0x74, 0x7d, 0x7e, 0x7b, 0x73, 0x74, 0x6f, 0x72, 0x65, 0x5f, 0x63, 0x6f,
354 0x64, 0x65, 0x7d, 0x7e, 0x7b, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x7d, 0x2a, 0x0e, 0x6c, 0x66, 0x70,
355 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x32, 0x0c, 0x6c, 0x66, 0x70,
356 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x67, 0x74,
357 0x69, 0x6e, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x71, 0x75, 0x61, 0x6e, 0x74, 0x69, 0x74, 0x79, 0x42,
358 0x10, 0x0a, 0x0e, 0x5f, 0x70, 0x69, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x6d, 0x65, 0x74, 0x68, 0x6f,
359 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x70, 0x69, 0x63, 0x6b, 0x75, 0x70, 0x5f, 0x73, 0x6c, 0x61,
360 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x62, 0x65, 0x6c, 0x22,
361 0xbd, 0x01, 0x0a, 0x19, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76,
362 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x47, 0x0a,
363 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0,
364 0x41, 0x02, 0xfa, 0x41, 0x29, 0x12, 0x27, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61,
365 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f,
366 0x6d, 0x2f, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x52, 0x06,
367 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x57, 0x0a, 0x0d, 0x6c, 0x66, 0x70, 0x5f, 0x69, 0x6e,
368 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e,
369 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
370 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x2e,
371 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x42, 0x03, 0xe0, 0x41,
372 0x02, 0x52, 0x0c, 0x6c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x32,
373 0xaa, 0x02, 0x0a, 0x13, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79,
374 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc9, 0x01, 0x0a, 0x12, 0x49, 0x6e, 0x73, 0x65,
375 0x72, 0x74, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x12, 0x3a,
376 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
377 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31,
378 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74,
379 0x6f, 0x72, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d, 0x2e, 0x67, 0x6f, 0x6f,
380 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
381 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x66, 0x70,
382 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x22, 0x48, 0x82, 0xd3, 0xe4, 0x93, 0x02,
383 0x42, 0x3a, 0x0d, 0x6c, 0x66, 0x70, 0x5f, 0x69, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79,
384 0x22, 0x31, 0x2f, 0x6c, 0x66, 0x70, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
385 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x6c, 0x66,
386 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x69, 0x65, 0x73, 0x3a, 0x69, 0x6e, 0x73,
387 0x65, 0x72, 0x74, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
388 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
389 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77,
390 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
391 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x9c, 0x02, 0xea,
392 0x41, 0x38, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e,
393 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41,
394 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
395 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x0a, 0x23, 0x63, 0x6f, 0x6d, 0x2e,
396 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
397 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x6c, 0x66, 0x70, 0x2e, 0x76, 0x31, 0x42,
398 0x11, 0x4c, 0x66, 0x70, 0x49, 0x6e, 0x76, 0x65, 0x6e, 0x74, 0x6f, 0x72, 0x79, 0x50, 0x72, 0x6f,
399 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x3b, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
400 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
401 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x6c, 0x66, 0x70, 0x2f,
402 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x6c, 0x66, 0x70, 0x70, 0x62, 0x3b, 0x6c, 0x66, 0x70, 0x70,
403 0x62, 0xaa, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70,
404 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x4c, 0x66, 0x70,
405 0x2e, 0x56, 0x31, 0xca, 0x02, 0x1f, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f,
406 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x4c,
407 0x66, 0x70, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x23, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a,
408 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61,
409 0x6e, 0x74, 0x3a, 0x3a, 0x4c, 0x66, 0x70, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f,
410 0x74, 0x6f, 0x33,
411 }
412
413 var (
414 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescOnce sync.Once
415 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescData = file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDesc
416 )
417
418 func file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescGZIP() []byte {
419 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescOnce.Do(func() {
420 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescData)
421 })
422 return file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDescData
423 }
424
425 var file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
426 var file_google_shopping_merchant_lfp_v1_lfpinventory_proto_goTypes = []any{
427 (*LfpInventory)(nil), // 0: google.shopping.merchant.lfp.v1.LfpInventory
428 (*InsertLfpInventoryRequest)(nil), // 1: google.shopping.merchant.lfp.v1.InsertLfpInventoryRequest
429 (*typepb.Price)(nil), // 2: google.shopping.type.Price
430 (*timestamppb.Timestamp)(nil), // 3: google.protobuf.Timestamp
431 }
432 var file_google_shopping_merchant_lfp_v1_lfpinventory_proto_depIdxs = []int32{
433 2, // 0: google.shopping.merchant.lfp.v1.LfpInventory.price:type_name -> google.shopping.type.Price
434 3, // 1: google.shopping.merchant.lfp.v1.LfpInventory.collection_time:type_name -> google.protobuf.Timestamp
435 0, // 2: google.shopping.merchant.lfp.v1.InsertLfpInventoryRequest.lfp_inventory:type_name -> google.shopping.merchant.lfp.v1.LfpInventory
436 1, // 3: google.shopping.merchant.lfp.v1.LfpInventoryService.InsertLfpInventory:input_type -> google.shopping.merchant.lfp.v1.InsertLfpInventoryRequest
437 0, // 4: google.shopping.merchant.lfp.v1.LfpInventoryService.InsertLfpInventory:output_type -> google.shopping.merchant.lfp.v1.LfpInventory
438 4, // [4:5] is the sub-list for method output_type
439 3, // [3:4] is the sub-list for method input_type
440 3, // [3:3] is the sub-list for extension type_name
441 3, // [3:3] is the sub-list for extension extendee
442 0, // [0:3] is the sub-list for field type_name
443 }
444
445 func init() { file_google_shopping_merchant_lfp_v1_lfpinventory_proto_init() }
446 func file_google_shopping_merchant_lfp_v1_lfpinventory_proto_init() {
447 if File_google_shopping_merchant_lfp_v1_lfpinventory_proto != nil {
448 return
449 }
450 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes[0].OneofWrappers = []any{}
451 type x struct{}
452 out := protoimpl.TypeBuilder{
453 File: protoimpl.DescBuilder{
454 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
455 RawDescriptor: file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDesc,
456 NumEnums: 0,
457 NumMessages: 2,
458 NumExtensions: 0,
459 NumServices: 1,
460 },
461 GoTypes: file_google_shopping_merchant_lfp_v1_lfpinventory_proto_goTypes,
462 DependencyIndexes: file_google_shopping_merchant_lfp_v1_lfpinventory_proto_depIdxs,
463 MessageInfos: file_google_shopping_merchant_lfp_v1_lfpinventory_proto_msgTypes,
464 }.Build()
465 File_google_shopping_merchant_lfp_v1_lfpinventory_proto = out.File
466 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_rawDesc = nil
467 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_goTypes = nil
468 file_google_shopping_merchant_lfp_v1_lfpinventory_proto_depIdxs = nil
469 }
470
471 // Reference imports to suppress errors if they are not otherwise used.
472 var _ context.Context
473 var _ grpc.ClientConnInterface
474
475 // This is a compile-time assertion to ensure that this generated file
476 // is compatible with the grpc package it is being compiled against.
477 const _ = grpc.SupportPackageIsVersion6
478
479 // LfpInventoryServiceClient is the client API for LfpInventoryService service.
480 //
481 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
482 type LfpInventoryServiceClient interface {
483 // Inserts a `LfpInventory` resource for the given target merchant account. If
484 // the resource already exists, it will be replaced. The inventory
485 // automatically expires after 30 days.
486 InsertLfpInventory(ctx context.Context, in *InsertLfpInventoryRequest, opts ...grpc.CallOption) (*LfpInventory, error)
487 }
488
489 type lfpInventoryServiceClient struct {
490 cc grpc.ClientConnInterface
491 }
492
493 func NewLfpInventoryServiceClient(cc grpc.ClientConnInterface) LfpInventoryServiceClient {
494 return &lfpInventoryServiceClient{cc}
495 }
496
497 func (c *lfpInventoryServiceClient) InsertLfpInventory(ctx context.Context, in *InsertLfpInventoryRequest, opts ...grpc.CallOption) (*LfpInventory, error) {
498 out := new(LfpInventory)
499 err := c.cc.Invoke(ctx, "/google.shopping.merchant.lfp.v1.LfpInventoryService/InsertLfpInventory", in, out, opts...)
500 if err != nil {
501 return nil, err
502 }
503 return out, nil
504 }
505
506 // LfpInventoryServiceServer is the server API for LfpInventoryService service.
507 type LfpInventoryServiceServer interface {
508 // Inserts a `LfpInventory` resource for the given target merchant account. If
509 // the resource already exists, it will be replaced. The inventory
510 // automatically expires after 30 days.
511 InsertLfpInventory(context.Context, *InsertLfpInventoryRequest) (*LfpInventory, error)
512 }
513
514 // UnimplementedLfpInventoryServiceServer can be embedded to have forward compatible implementations.
515 type UnimplementedLfpInventoryServiceServer struct {
516 }
517
518 func (*UnimplementedLfpInventoryServiceServer) InsertLfpInventory(context.Context, *InsertLfpInventoryRequest) (*LfpInventory, error) {
519 return nil, status.Errorf(codes.Unimplemented, "method InsertLfpInventory not implemented")
520 }
521
522 func RegisterLfpInventoryServiceServer(s *grpc.Server, srv LfpInventoryServiceServer) {
523 s.RegisterService(&_LfpInventoryService_serviceDesc, srv)
524 }
525
526 func _LfpInventoryService_InsertLfpInventory_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
527 in := new(InsertLfpInventoryRequest)
528 if err := dec(in); err != nil {
529 return nil, err
530 }
531 if interceptor == nil {
532 return srv.(LfpInventoryServiceServer).InsertLfpInventory(ctx, in)
533 }
534 info := &grpc.UnaryServerInfo{
535 Server: srv,
536 FullMethod: "/google.shopping.merchant.lfp.v1.LfpInventoryService/InsertLfpInventory",
537 }
538 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
539 return srv.(LfpInventoryServiceServer).InsertLfpInventory(ctx, req.(*InsertLfpInventoryRequest))
540 }
541 return interceptor(ctx, in, info, handler)
542 }
543
544 var _LfpInventoryService_serviceDesc = grpc.ServiceDesc{
545 ServiceName: "google.shopping.merchant.lfp.v1.LfpInventoryService",
546 HandlerType: (*LfpInventoryServiceServer)(nil),
547 Methods: []grpc.MethodDesc{
548 {
549 MethodName: "InsertLfpInventory",
550 Handler: _LfpInventoryService_InsertLfpInventory_Handler,
551 },
552 },
553 Streams: []grpc.StreamDesc{},
554 Metadata: "google/shopping/merchant/lfp/v1/lfpinventory.proto",
555 }