Debian Codegraph @

shopping/merchant/products/apiv1/productspb/products.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/products/v1/products.proto
20
21 package productspb
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 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // The processed product, built from multiple [product
44 // inputs][google.shopping.merchant.products.v1main.ProductInput]
45 // after applying rules and supplemental data sources. This processed product
46 // matches what is shown in your Merchant Center account. Each product is built
47 // from exactly one primary data source product input, and multiple supplemental
48 // data source inputs. After inserting, updating, or deleting a product input,
49 // it may take several minutes before the updated processed product can be
50 // retrieved.
51 //
52 // All fields in the processed product and its sub-messages match the name of
53 // their corresponding attribute in the [Product data
54 // specification](https://support.google.com/merchants/answer/7052112) with some
55 // exceptions.
56 type Product struct {
57 state protoimpl.MessageState
58 sizeCache protoimpl.SizeCache
59 unknownFields protoimpl.UnknownFields
60
61 // The name of the product.
62 // Format:
63 // `accounts/{account}/products/{product}` where the last
64 // section `product` consists of:
65 // `content_language~feed_label~offer_id`
66 // example for product name is `accounts/123/products/en~US~sku123`. A legacy
67 // local product name would be `accounts/123/products/local~en~US~sku123`.
68 // Note: For calls to the v1beta version, the `product` section consists
69 // of: `channel~content_language~feed_label~offer_id`, for example:
70 // `accounts/123/products/online~en~US~sku123`.
71 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
72 // Output only. Determines whether the product is **only** targeting
73 // local destinations and whether the product name should be distinguished
74 // with a `local~` prefix. For example,
75 // `accounts/123/products/local~en~US~sku123`.
76 LegacyLocal bool `protobuf:"varint,11,opt,name=legacy_local,json=legacyLocal,proto3" json:"legacy_local,omitempty"`
77 // Output only. Your unique identifier for the product. This is the same for
78 // the product input and processed product. Leading and trailing whitespaces
79 // are stripped and multiple whitespaces are replaced by a single whitespace
80 // upon submission. See the [product data
81 // specification](https://support.google.com/merchants/answer/188494#id) for
82 // details.
83 OfferId string `protobuf:"bytes,3,opt,name=offer_id,json=offerId,proto3" json:"offer_id,omitempty"`
84 // Output only. The two-letter [ISO
85 // 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
86 // product.
87 ContentLanguage string `protobuf:"bytes,4,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
88 // Output only. The feed label lets you categorize and identify your products.
89 // The maximum allowed characters is 20 and the supported characters are`A-Z`,
90 // `0-9`, hyphen and underscore. The feed label must not include any spaces.
91 // For more information, see [Using feed
92 // labels](//support.google.com/merchants/answer/14994087)
93 FeedLabel string `protobuf:"bytes,5,opt,name=feed_label,json=feedLabel,proto3" json:"feed_label,omitempty"`
94 // Output only. The primary data source of the product.
95 DataSource string `protobuf:"bytes,6,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
96 // Output only. Represents the existing version (freshness) of the product,
97 // which can be used to preserve the right order when multiple updates are
98 // done at the same time.
99 //
100 // If set, the insertion is prevented when version number is lower than
101 // the current version number of the existing product. Re-insertion (for
102 // example, product refresh after 30 days) can be performed with the current
103 // `version_number`.
104 //
105 // Only supported for insertions into primary data sources.
106 //
107 // If the operation is prevented, the aborted exception will be
108 // thrown.
109 VersionNumber *int64 `protobuf:"varint,7,opt,name=version_number,json=versionNumber,proto3,oneof" json:"version_number,omitempty"`
110 // Output only. A list of strongly-typed product attributes.
111 ProductAttributes *ProductAttributes `protobuf:"bytes,13,opt,name=product_attributes,json=productAttributes,proto3" json:"product_attributes,omitempty"`
112 // Output only. A list of custom (merchant-provided) attributes. It can also
113 // be used to submit any attribute of the data specification in its generic
114 // form (for example,
115 // `{ "name": "size type", "value": "regular" }`).
116 // This is useful for submitting attributes not explicitly exposed by the
117 // API, such as additional attributes used for Buy on Google.
118 CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,9,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
119 // Output only. The status of a product, data validation issues, that is,
120 // information about a product computed asynchronously.
121 ProductStatus *ProductStatus `protobuf:"bytes,10,opt,name=product_status,json=productStatus,proto3" json:"product_status,omitempty"`
122 // Output only. The automated discounts information for the product.
123 AutomatedDiscounts *AutomatedDiscounts `protobuf:"bytes,12,opt,name=automated_discounts,json=automatedDiscounts,proto3" json:"automated_discounts,omitempty"`
124 }
125
126 func (x *Product) Reset() {
127 *x = Product{}
128 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[0]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132
133 func (x *Product) String() string {
134 return protoimpl.X.MessageStringOf(x)
135 }
136
137 func (*Product) ProtoMessage() {}
138
139 func (x *Product) ProtoReflect() protoreflect.Message {
140 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[0]
141 if x != nil {
142 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
143 if ms.LoadMessageInfo() == nil {
144 ms.StoreMessageInfo(mi)
145 }
146 return ms
147 }
148 return mi.MessageOf(x)
149 }
150
151 // Deprecated: Use Product.ProtoReflect.Descriptor instead.
152 func (*Product) Descriptor() ([]byte, []int) {
153 return file_google_shopping_merchant_products_v1_products_proto_rawDescGZIP(), []int{0}
154 }
155
156 func (x *Product) GetName() string {
157 if x != nil {
158 return x.Name
159 }
160 return ""
161 }
162
163 func (x *Product) GetLegacyLocal() bool {
164 if x != nil {
165 return x.LegacyLocal
166 }
167 return false
168 }
169
170 func (x *Product) GetOfferId() string {
171 if x != nil {
172 return x.OfferId
173 }
174 return ""
175 }
176
177 func (x *Product) GetContentLanguage() string {
178 if x != nil {
179 return x.ContentLanguage
180 }
181 return ""
182 }
183
184 func (x *Product) GetFeedLabel() string {
185 if x != nil {
186 return x.FeedLabel
187 }
188 return ""
189 }
190
191 func (x *Product) GetDataSource() string {
192 if x != nil {
193 return x.DataSource
194 }
195 return ""
196 }
197
198 func (x *Product) GetVersionNumber() int64 {
199 if x != nil && x.VersionNumber != nil {
200 return *x.VersionNumber
201 }
202 return 0
203 }
204
205 func (x *Product) GetProductAttributes() *ProductAttributes {
206 if x != nil {
207 return x.ProductAttributes
208 }
209 return nil
210 }
211
212 func (x *Product) GetCustomAttributes() []*typepb.CustomAttribute {
213 if x != nil {
214 return x.CustomAttributes
215 }
216 return nil
217 }
218
219 func (x *Product) GetProductStatus() *ProductStatus {
220 if x != nil {
221 return x.ProductStatus
222 }
223 return nil
224 }
225
226 func (x *Product) GetAutomatedDiscounts() *AutomatedDiscounts {
227 if x != nil {
228 return x.AutomatedDiscounts
229 }
230 return nil
231 }
232
233 // Request message for the GetProduct method.
234 type GetProductRequest struct {
235 state protoimpl.MessageState
236 sizeCache protoimpl.SizeCache
237 unknownFields protoimpl.UnknownFields
238
239 // Required. The name of the product to retrieve.
240 // Format:
241 // `accounts/{account}/products/{product}` where the last
242 // section `product` consists of:
243 // `content_language~feed_label~offer_id`
244 // example for product name is `accounts/123/products/en~US~sku123`. A legacy
245 // local product name would be `accounts/123/products/local~en~US~sku123`.
246 // Note: For calls to the v1beta version, the `product` section consists
247 // of: `channel~content_language~feed_label~offer_id`, for example:
248 // `accounts/123/products/online~en~US~sku123`.
249 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
250 }
251
252 func (x *GetProductRequest) Reset() {
253 *x = GetProductRequest{}
254 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[1]
255 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
256 ms.StoreMessageInfo(mi)
257 }
258
259 func (x *GetProductRequest) String() string {
260 return protoimpl.X.MessageStringOf(x)
261 }
262
263 func (*GetProductRequest) ProtoMessage() {}
264
265 func (x *GetProductRequest) ProtoReflect() protoreflect.Message {
266 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[1]
267 if x != nil {
268 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
269 if ms.LoadMessageInfo() == nil {
270 ms.StoreMessageInfo(mi)
271 }
272 return ms
273 }
274 return mi.MessageOf(x)
275 }
276
277 // Deprecated: Use GetProductRequest.ProtoReflect.Descriptor instead.
278 func (*GetProductRequest) Descriptor() ([]byte, []int) {
279 return file_google_shopping_merchant_products_v1_products_proto_rawDescGZIP(), []int{1}
280 }
281
282 func (x *GetProductRequest) GetName() string {
283 if x != nil {
284 return x.Name
285 }
286 return ""
287 }
288
289 // Request message for the ListProducts method.
290 type ListProductsRequest struct {
291 state protoimpl.MessageState
292 sizeCache protoimpl.SizeCache
293 unknownFields protoimpl.UnknownFields
294
295 // Required. The account to list processed products for.
296 // Format: `accounts/{account}`
297 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
298 // The maximum number of products to return. The service may return fewer than
299 // this value.
300 // The maximum value is 1000; values above 1000 will be coerced to 1000.
301 // If unspecified, the default page size of 25 products will be returned.
302 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
303 // A page token, received from a previous `ListProducts` call.
304 // Provide this to retrieve the subsequent page.
305 //
306 // When paginating, all other parameters provided to `ListProducts` must
307 // match the call that provided the page token.
308 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
309 }
310
311 func (x *ListProductsRequest) Reset() {
312 *x = ListProductsRequest{}
313 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[2]
314 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
315 ms.StoreMessageInfo(mi)
316 }
317
318 func (x *ListProductsRequest) String() string {
319 return protoimpl.X.MessageStringOf(x)
320 }
321
322 func (*ListProductsRequest) ProtoMessage() {}
323
324 func (x *ListProductsRequest) ProtoReflect() protoreflect.Message {
325 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[2]
326 if x != nil {
327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
328 if ms.LoadMessageInfo() == nil {
329 ms.StoreMessageInfo(mi)
330 }
331 return ms
332 }
333 return mi.MessageOf(x)
334 }
335
336 // Deprecated: Use ListProductsRequest.ProtoReflect.Descriptor instead.
337 func (*ListProductsRequest) Descriptor() ([]byte, []int) {
338 return file_google_shopping_merchant_products_v1_products_proto_rawDescGZIP(), []int{2}
339 }
340
341 func (x *ListProductsRequest) GetParent() string {
342 if x != nil {
343 return x.Parent
344 }
345 return ""
346 }
347
348 func (x *ListProductsRequest) GetPageSize() int32 {
349 if x != nil {
350 return x.PageSize
351 }
352 return 0
353 }
354
355 func (x *ListProductsRequest) GetPageToken() string {
356 if x != nil {
357 return x.PageToken
358 }
359 return ""
360 }
361
362 // Response message for the ListProducts method.
363 type ListProductsResponse struct {
364 state protoimpl.MessageState
365 sizeCache protoimpl.SizeCache
366 unknownFields protoimpl.UnknownFields
367
368 // The processed products from the specified account. These are your processed
369 // products after applying rules and supplemental data sources.
370 Products []*Product `protobuf:"bytes,1,rep,name=products,proto3" json:"products,omitempty"`
371 // A token, which can be sent as `page_token` to retrieve the next page.
372 // If this field is omitted, there are no subsequent pages.
373 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
374 }
375
376 func (x *ListProductsResponse) Reset() {
377 *x = ListProductsResponse{}
378 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[3]
379 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
380 ms.StoreMessageInfo(mi)
381 }
382
383 func (x *ListProductsResponse) String() string {
384 return protoimpl.X.MessageStringOf(x)
385 }
386
387 func (*ListProductsResponse) ProtoMessage() {}
388
389 func (x *ListProductsResponse) ProtoReflect() protoreflect.Message {
390 mi := &file_google_shopping_merchant_products_v1_products_proto_msgTypes[3]
391 if x != nil {
392 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
393 if ms.LoadMessageInfo() == nil {
394 ms.StoreMessageInfo(mi)
395 }
396 return ms
397 }
398 return mi.MessageOf(x)
399 }
400
401 // Deprecated: Use ListProductsResponse.ProtoReflect.Descriptor instead.
402 func (*ListProductsResponse) Descriptor() ([]byte, []int) {
403 return file_google_shopping_merchant_products_v1_products_proto_rawDescGZIP(), []int{3}
404 }
405
406 func (x *ListProductsResponse) GetProducts() []*Product {
407 if x != nil {
408 return x.Products
409 }
410 return nil
411 }
412
413 func (x *ListProductsResponse) GetNextPageToken() string {
414 if x != nil {
415 return x.NextPageToken
416 }
417 return ""
418 }
419
420 var File_google_shopping_merchant_products_v1_products_proto protoreflect.FileDescriptor
421
422 var file_google_shopping_merchant_products_v1_products_proto_rawDesc = []byte{
423 0x0a, 0x33, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
424 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75,
425 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e,
426 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68,
427 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e,
428 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f,
429 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69,
430 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
431 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
432 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66,
433 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72,
434 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f,
435 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a,
436 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f,
437 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
438 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x5f, 0x63, 0x6f,
439 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67,
440 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65,
441 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x8a, 0x06, 0x0a,
442 0x07, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
443 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0c,
444 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x5f, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x18, 0x0b, 0x20, 0x01,
445 0x28, 0x08, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0b, 0x6c, 0x65, 0x67, 0x61, 0x63, 0x79, 0x4c,
446 0x6f, 0x63, 0x61, 0x6c, 0x12, 0x1e, 0x0a, 0x08, 0x6f, 0x66, 0x66, 0x65, 0x72, 0x5f, 0x69, 0x64,
447 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x07, 0x6f, 0x66, 0x66,
448 0x65, 0x72, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x5f,
449 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03,
450 0xe0, 0x41, 0x03, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x6e, 0x67,
451 0x75, 0x61, 0x67, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x66, 0x65, 0x65, 0x64, 0x5f, 0x6c, 0x61, 0x62,
452 0x65, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x09, 0x66,
453 0x65, 0x65, 0x64, 0x4c, 0x61, 0x62, 0x65, 0x6c, 0x12, 0x24, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61,
454 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
455 0x41, 0x03, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x2f,
456 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72,
457 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x00, 0x52, 0x0d, 0x76,
458 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01, 0x01, 0x12,
459 0x6b, 0x0a, 0x12, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69,
460 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f,
461 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
462 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e,
463 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62,
464 0x75, 0x74, 0x65, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x70, 0x72, 0x6f, 0x64, 0x75,
465 0x63, 0x74, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x11,
466 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65,
467 0x73, 0x18, 0x09, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
468 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43,
469 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x42, 0x03,
470 0xe0, 0x41, 0x03, 0x52, 0x10, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69,
471 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x5f, 0x0a, 0x0e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
472 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x33, 0x2e,
473 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
474 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
475 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x53, 0x74, 0x61, 0x74,
476 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0d, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
477 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x6e, 0x0a, 0x13, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61,
478 0x74, 0x65, 0x64, 0x5f, 0x64, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x0c, 0x20,
479 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f,
480 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70,
481 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x75, 0x74, 0x6f, 0x6d,
482 0x61, 0x74, 0x65, 0x64, 0x44, 0x69, 0x73, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x42, 0x03, 0xe0,
483 0x41, 0x03, 0x52, 0x12, 0x61, 0x75, 0x74, 0x6f, 0x6d, 0x61, 0x74, 0x65, 0x64, 0x44, 0x69, 0x73,
484 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x4e, 0xea, 0x41, 0x4b, 0x0a, 0x22, 0x6d, 0x65, 0x72,
485 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
486 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12,
487 0x25, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75,
488 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72,
489 0x6f, 0x64, 0x75, 0x63, 0x74, 0x7d, 0x42, 0x11, 0x0a, 0x0f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69,
490 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x53, 0x0a, 0x11, 0x47, 0x65, 0x74,
491 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e,
492 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41,
493 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70,
494 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
495 0x2f, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x95,
496 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x52,
497 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74,
498 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x12, 0x22,
499 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
500 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x64, 0x75,
501 0x63, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x70, 0x61,
502 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x70,
503 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,
504 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x67,
505 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x89, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50,
506 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
507 0x49, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28,
508 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
509 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
510 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74,
511 0x52, 0x08, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,
512 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
513 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
514 0x65, 0x6e, 0x32, 0xcf, 0x03, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x53,
515 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xae, 0x01, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x50, 0x72,
516 0x6f, 0x64, 0x75, 0x63, 0x74, 0x12, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
517 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
518 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,
519 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x2d,
520 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67,
521 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63,
522 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x22, 0x38, 0xda,
523 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b, 0x12, 0x29, 0x2f, 0x70,
524 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65,
525 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x64,
526 0x75, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xc1, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, 0x74,
527 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x12, 0x39, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
528 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
529 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e,
530 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75,
531 0x65, 0x73, 0x74, 0x1a, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f,
532 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70,
533 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,
534 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22,
535 0x3a, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2b,
536 0x12, 0x29, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
537 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f,
538 0x2a, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x1a, 0x47, 0xca, 0x41, 0x1a,
539 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
540 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74,
541 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
542 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e,
543 0x74, 0x65, 0x6e, 0x74, 0x42, 0xbb, 0x02, 0xea, 0x41, 0x38, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63,
544 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70,
545 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x12,
546 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
547 0x74, 0x7d, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
548 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
549 0x2e, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0d, 0x50, 0x72,
550 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63,
551 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
552 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63,
553 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2f, 0x61, 0x70,
554 0x69, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x70,
555 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67,
556 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63,
557 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x2e, 0x56, 0x31,
558 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69,
559 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x50, 0x72, 0x6f, 0x64,
560 0x75, 0x63, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
561 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63,
562 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x64, 0x75, 0x63, 0x74, 0x73, 0x3a, 0x3a,
563 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
564 }
565
566 var (
567 file_google_shopping_merchant_products_v1_products_proto_rawDescOnce sync.Once
568 file_google_shopping_merchant_products_v1_products_proto_rawDescData = file_google_shopping_merchant_products_v1_products_proto_rawDesc
569 )
570
571 func file_google_shopping_merchant_products_v1_products_proto_rawDescGZIP() []byte {
572 file_google_shopping_merchant_products_v1_products_proto_rawDescOnce.Do(func() {
573 file_google_shopping_merchant_products_v1_products_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_products_v1_products_proto_rawDescData)
574 })
575 return file_google_shopping_merchant_products_v1_products_proto_rawDescData
576 }
577
578 var file_google_shopping_merchant_products_v1_products_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
579 var file_google_shopping_merchant_products_v1_products_proto_goTypes = []any{
580 (*Product)(nil), // 0: google.shopping.merchant.products.v1.Product
581 (*GetProductRequest)(nil), // 1: google.shopping.merchant.products.v1.GetProductRequest
582 (*ListProductsRequest)(nil), // 2: google.shopping.merchant.products.v1.ListProductsRequest
583 (*ListProductsResponse)(nil), // 3: google.shopping.merchant.products.v1.ListProductsResponse
584 (*ProductAttributes)(nil), // 4: google.shopping.merchant.products.v1.ProductAttributes
585 (*typepb.CustomAttribute)(nil), // 5: google.shopping.type.CustomAttribute
586 (*ProductStatus)(nil), // 6: google.shopping.merchant.products.v1.ProductStatus
587 (*AutomatedDiscounts)(nil), // 7: google.shopping.merchant.products.v1.AutomatedDiscounts
588 }
589 var file_google_shopping_merchant_products_v1_products_proto_depIdxs = []int32{
590 4, // 0: google.shopping.merchant.products.v1.Product.product_attributes:type_name -> google.shopping.merchant.products.v1.ProductAttributes
591 5, // 1: google.shopping.merchant.products.v1.Product.custom_attributes:type_name -> google.shopping.type.CustomAttribute
592 6, // 2: google.shopping.merchant.products.v1.Product.product_status:type_name -> google.shopping.merchant.products.v1.ProductStatus
593 7, // 3: google.shopping.merchant.products.v1.Product.automated_discounts:type_name -> google.shopping.merchant.products.v1.AutomatedDiscounts
594 0, // 4: google.shopping.merchant.products.v1.ListProductsResponse.products:type_name -> google.shopping.merchant.products.v1.Product
595 1, // 5: google.shopping.merchant.products.v1.ProductsService.GetProduct:input_type -> google.shopping.merchant.products.v1.GetProductRequest
596 2, // 6: google.shopping.merchant.products.v1.ProductsService.ListProducts:input_type -> google.shopping.merchant.products.v1.ListProductsRequest
597 0, // 7: google.shopping.merchant.products.v1.ProductsService.GetProduct:output_type -> google.shopping.merchant.products.v1.Product
598 3, // 8: google.shopping.merchant.products.v1.ProductsService.ListProducts:output_type -> google.shopping.merchant.products.v1.ListProductsResponse
599 7, // [7:9] is the sub-list for method output_type
600 5, // [5:7] is the sub-list for method input_type
601 5, // [5:5] is the sub-list for extension type_name
602 5, // [5:5] is the sub-list for extension extendee
603 0, // [0:5] is the sub-list for field type_name
604 }
605
606 func init() { file_google_shopping_merchant_products_v1_products_proto_init() }
607 func file_google_shopping_merchant_products_v1_products_proto_init() {
608 if File_google_shopping_merchant_products_v1_products_proto != nil {
609 return
610 }
611 file_google_shopping_merchant_products_v1_products_common_proto_init()
612 file_google_shopping_merchant_products_v1_products_proto_msgTypes[0].OneofWrappers = []any{}
613 type x struct{}
614 out := protoimpl.TypeBuilder{
615 File: protoimpl.DescBuilder{
616 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
617 RawDescriptor: file_google_shopping_merchant_products_v1_products_proto_rawDesc,
618 NumEnums: 0,
619 NumMessages: 4,
620 NumExtensions: 0,
621 NumServices: 1,
622 },
623 GoTypes: file_google_shopping_merchant_products_v1_products_proto_goTypes,
624 DependencyIndexes: file_google_shopping_merchant_products_v1_products_proto_depIdxs,
625 MessageInfos: file_google_shopping_merchant_products_v1_products_proto_msgTypes,
626 }.Build()
627 File_google_shopping_merchant_products_v1_products_proto = out.File
628 file_google_shopping_merchant_products_v1_products_proto_rawDesc = nil
629 file_google_shopping_merchant_products_v1_products_proto_goTypes = nil
630 file_google_shopping_merchant_products_v1_products_proto_depIdxs = nil
631 }
632
633 // Reference imports to suppress errors if they are not otherwise used.
634 var _ context.Context
635 var _ grpc.ClientConnInterface
636
637 // This is a compile-time assertion to ensure that this generated file
638 // is compatible with the grpc package it is being compiled against.
639 const _ = grpc.SupportPackageIsVersion6
640
641 // ProductsServiceClient is the client API for ProductsService service.
642 //
643 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
644 type ProductsServiceClient interface {
645 // Retrieves the processed product from your Merchant Center account.
646 //
647 // After inserting, updating, or deleting a product input, it may take several
648 // minutes before the updated final product can be retrieved.
649 GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error)
650 // Lists the processed products in your Merchant Center account. The response
651 // might contain fewer items than specified by `pageSize`. Rely on `pageToken`
652 // to determine if there are more items to be requested.
653 //
654 // After inserting, updating, or deleting a product input, it may take several
655 // minutes before the updated processed product can be retrieved.
656 ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error)
657 }
658
659 type productsServiceClient struct {
660 cc grpc.ClientConnInterface
661 }
662
663 func NewProductsServiceClient(cc grpc.ClientConnInterface) ProductsServiceClient {
664 return &productsServiceClient{cc}
665 }
666
667 func (c *productsServiceClient) GetProduct(ctx context.Context, in *GetProductRequest, opts ...grpc.CallOption) (*Product, error) {
668 out := new(Product)
669 err := c.cc.Invoke(ctx, "/google.shopping.merchant.products.v1.ProductsService/GetProduct", in, out, opts...)
670 if err != nil {
671 return nil, err
672 }
673 return out, nil
674 }
675
676 func (c *productsServiceClient) ListProducts(ctx context.Context, in *ListProductsRequest, opts ...grpc.CallOption) (*ListProductsResponse, error) {
677 out := new(ListProductsResponse)
678 err := c.cc.Invoke(ctx, "/google.shopping.merchant.products.v1.ProductsService/ListProducts", in, out, opts...)
679 if err != nil {
680 return nil, err
681 }
682 return out, nil
683 }
684
685 // ProductsServiceServer is the server API for ProductsService service.
686 type ProductsServiceServer interface {
687 // Retrieves the processed product from your Merchant Center account.
688 //
689 // After inserting, updating, or deleting a product input, it may take several
690 // minutes before the updated final product can be retrieved.
691 GetProduct(context.Context, *GetProductRequest) (*Product, error)
692 // Lists the processed products in your Merchant Center account. The response
693 // might contain fewer items than specified by `pageSize`. Rely on `pageToken`
694 // to determine if there are more items to be requested.
695 //
696 // After inserting, updating, or deleting a product input, it may take several
697 // minutes before the updated processed product can be retrieved.
698 ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error)
699 }
700
701 // UnimplementedProductsServiceServer can be embedded to have forward compatible implementations.
702 type UnimplementedProductsServiceServer struct {
703 }
704
705 func (*UnimplementedProductsServiceServer) GetProduct(context.Context, *GetProductRequest) (*Product, error) {
706 return nil, status.Errorf(codes.Unimplemented, "method GetProduct not implemented")
707 }
708 func (*UnimplementedProductsServiceServer) ListProducts(context.Context, *ListProductsRequest) (*ListProductsResponse, error) {
709 return nil, status.Errorf(codes.Unimplemented, "method ListProducts not implemented")
710 }
711
712 func RegisterProductsServiceServer(s *grpc.Server, srv ProductsServiceServer) {
713 s.RegisterService(&_ProductsService_serviceDesc, srv)
714 }
715
716 func _ProductsService_GetProduct_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
717 in := new(GetProductRequest)
718 if err := dec(in); err != nil {
719 return nil, err
720 }
721 if interceptor == nil {
722 return srv.(ProductsServiceServer).GetProduct(ctx, in)
723 }
724 info := &grpc.UnaryServerInfo{
725 Server: srv,
726 FullMethod: "/google.shopping.merchant.products.v1.ProductsService/GetProduct",
727 }
728 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
729 return srv.(ProductsServiceServer).GetProduct(ctx, req.(*GetProductRequest))
730 }
731 return interceptor(ctx, in, info, handler)
732 }
733
734 func _ProductsService_ListProducts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
735 in := new(ListProductsRequest)
736 if err := dec(in); err != nil {
737 return nil, err
738 }
739 if interceptor == nil {
740 return srv.(ProductsServiceServer).ListProducts(ctx, in)
741 }
742 info := &grpc.UnaryServerInfo{
743 Server: srv,
744 FullMethod: "/google.shopping.merchant.products.v1.ProductsService/ListProducts",
745 }
746 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
747 return srv.(ProductsServiceServer).ListProducts(ctx, req.(*ListProductsRequest))
748 }
749 return interceptor(ctx, in, info, handler)
750 }
751
752 var _ProductsService_serviceDesc = grpc.ServiceDesc{
753 ServiceName: "google.shopping.merchant.products.v1.ProductsService",
754 HandlerType: (*ProductsServiceServer)(nil),
755 Methods: []grpc.MethodDesc{
756 {
757 MethodName: "GetProduct",
758 Handler: _ProductsService_GetProduct_Handler,
759 },
760 {
761 MethodName: "ListProducts",
762 Handler: _ProductsService_ListProducts_Handler,
763 },
764 },
765 Streams: []grpc.StreamDesc{},
766 Metadata: "google/shopping/merchant/products/v1/products.proto",
767 }