Debian Codegraph @

shopping/type/typepb/types.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/type/types.proto
20
21 package typepb
22
23 import (
24 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
25 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
26 reflect "reflect"
27 sync "sync"
28 )
29
30 const (
31 // Verify that this generated code is sufficiently up-to-date.
32 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
33 // Verify that runtime/protoimpl is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
35 )
36
37 // The weight unit.
38 type Weight_WeightUnit int32
39
40 const (
41 // unit unspecified
42 Weight_WEIGHT_UNIT_UNSPECIFIED Weight_WeightUnit = 0
43 // lb unit.
44 Weight_POUND Weight_WeightUnit = 1
45 // kg unit.
46 Weight_KILOGRAM Weight_WeightUnit = 2
47 )
48
49 // Enum value maps for Weight_WeightUnit.
50 var (
51 Weight_WeightUnit_name = map[int32]string{
52 0: "WEIGHT_UNIT_UNSPECIFIED",
53 1: "POUND",
54 2: "KILOGRAM",
55 }
56 Weight_WeightUnit_value = map[string]int32{
57 "WEIGHT_UNIT_UNSPECIFIED": 0,
58 "POUND": 1,
59 "KILOGRAM": 2,
60 }
61 )
62
63 func (x Weight_WeightUnit) Enum() *Weight_WeightUnit {
64 p := new(Weight_WeightUnit)
65 *p = x
66 return p
67 }
68
69 func (x Weight_WeightUnit) String() string {
70 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
71 }
72
73 func (Weight_WeightUnit) Descriptor() protoreflect.EnumDescriptor {
74 return file_google_shopping_type_types_proto_enumTypes[0].Descriptor()
75 }
76
77 func (Weight_WeightUnit) Type() protoreflect.EnumType {
78 return &file_google_shopping_type_types_proto_enumTypes[0]
79 }
80
81 func (x Weight_WeightUnit) Number() protoreflect.EnumNumber {
82 return protoreflect.EnumNumber(x)
83 }
84
85 // Deprecated: Use Weight_WeightUnit.Descriptor instead.
86 func (Weight_WeightUnit) EnumDescriptor() ([]byte, []int) {
87 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{0, 0}
88 }
89
90 // Destination values.
91 type Destination_DestinationEnum int32
92
93 const (
94 // Not specified.
95 Destination_DESTINATION_ENUM_UNSPECIFIED Destination_DestinationEnum = 0
96 // [Shopping ads](https://support.google.com/google-ads/answer/2454022).
97 Destination_SHOPPING_ADS Destination_DestinationEnum = 1
98 // [Display ads](https://support.google.com/merchants/answer/6069387).
99 Destination_DISPLAY_ADS Destination_DestinationEnum = 2
100 // [Local inventory
101 // ads](https://support.google.com/merchants/answer/3057972).
102 Destination_LOCAL_INVENTORY_ADS Destination_DestinationEnum = 3
103 // [Free listings](https://support.google.com/merchants/answer/9199328).
104 Destination_FREE_LISTINGS Destination_DestinationEnum = 4
105 // [Free local product
106 // listings](https://support.google.com/merchants/answer/9825611).
107 Destination_FREE_LOCAL_LISTINGS Destination_DestinationEnum = 5
108 // [YouTube Shopping](https://support.google.com/merchants/answer/12362804).
109 Destination_YOUTUBE_SHOPPING Destination_DestinationEnum = 6
110 )
111
112 // Enum value maps for Destination_DestinationEnum.
113 var (
114 Destination_DestinationEnum_name = map[int32]string{
115 0: "DESTINATION_ENUM_UNSPECIFIED",
116 1: "SHOPPING_ADS",
117 2: "DISPLAY_ADS",
118 3: "LOCAL_INVENTORY_ADS",
119 4: "FREE_LISTINGS",
120 5: "FREE_LOCAL_LISTINGS",
121 6: "YOUTUBE_SHOPPING",
122 }
123 Destination_DestinationEnum_value = map[string]int32{
124 "DESTINATION_ENUM_UNSPECIFIED": 0,
125 "SHOPPING_ADS": 1,
126 "DISPLAY_ADS": 2,
127 "LOCAL_INVENTORY_ADS": 3,
128 "FREE_LISTINGS": 4,
129 "FREE_LOCAL_LISTINGS": 5,
130 "YOUTUBE_SHOPPING": 6,
131 }
132 )
133
134 func (x Destination_DestinationEnum) Enum() *Destination_DestinationEnum {
135 p := new(Destination_DestinationEnum)
136 *p = x
137 return p
138 }
139
140 func (x Destination_DestinationEnum) String() string {
141 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
142 }
143
144 func (Destination_DestinationEnum) Descriptor() protoreflect.EnumDescriptor {
145 return file_google_shopping_type_types_proto_enumTypes[1].Descriptor()
146 }
147
148 func (Destination_DestinationEnum) Type() protoreflect.EnumType {
149 return &file_google_shopping_type_types_proto_enumTypes[1]
150 }
151
152 func (x Destination_DestinationEnum) Number() protoreflect.EnumNumber {
153 return protoreflect.EnumNumber(x)
154 }
155
156 // Deprecated: Use Destination_DestinationEnum.Descriptor instead.
157 func (Destination_DestinationEnum) EnumDescriptor() ([]byte, []int) {
158 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{3, 0}
159 }
160
161 // Reporting context values.
162 type ReportingContext_ReportingContextEnum int32
163
164 const (
165 // Not specified.
166 ReportingContext_REPORTING_CONTEXT_ENUM_UNSPECIFIED ReportingContext_ReportingContextEnum = 0
167 // [Shopping ads](https://support.google.com/merchants/answer/6149970).
168 ReportingContext_SHOPPING_ADS ReportingContext_ReportingContextEnum = 1
169 // Deprecated: Use `DEMAND_GEN_ADS` instead.
170 // [Discovery and Demand Gen
171 // ads](https://support.google.com/merchants/answer/13389785).
172 //
173 // Deprecated: Marked as deprecated in google/shopping/type/types.proto.
174 ReportingContext_DISCOVERY_ADS ReportingContext_ReportingContextEnum = 2
175 // [Demand Gen ads](https://support.google.com/merchants/answer/13389785).
176 ReportingContext_DEMAND_GEN_ADS ReportingContext_ReportingContextEnum = 13
177 // [Demand Gen ads on Discover
178 // surface](https://support.google.com/merchants/answer/13389785).
179 ReportingContext_DEMAND_GEN_ADS_DISCOVER_SURFACE ReportingContext_ReportingContextEnum = 14
180 // [Video ads](https://support.google.com/google-ads/answer/6340491).
181 ReportingContext_VIDEO_ADS ReportingContext_ReportingContextEnum = 3
182 // [Display ads](https://support.google.com/merchants/answer/6069387).
183 ReportingContext_DISPLAY_ADS ReportingContext_ReportingContextEnum = 4
184 // [Local inventory
185 // ads](https://support.google.com/merchants/answer/3271956).
186 ReportingContext_LOCAL_INVENTORY_ADS ReportingContext_ReportingContextEnum = 5
187 // [Vehicle inventory
188 // ads](https://support.google.com/merchants/answer/11544533).
189 ReportingContext_VEHICLE_INVENTORY_ADS ReportingContext_ReportingContextEnum = 6
190 // [Free product
191 // listings](https://support.google.com/merchants/answer/9199328).
192 ReportingContext_FREE_LISTINGS ReportingContext_ReportingContextEnum = 7
193 // [Free local product
194 // listings](https://support.google.com/merchants/answer/9825611).
195 ReportingContext_FREE_LOCAL_LISTINGS ReportingContext_ReportingContextEnum = 8
196 // [Free local vehicle
197 // listings](https://support.google.com/merchants/answer/11544533).
198 ReportingContext_FREE_LOCAL_VEHICLE_LISTINGS ReportingContext_ReportingContextEnum = 9
199 // [YouTube
200 // Shopping](https://support.google.com/merchants/answer/13478370).
201 ReportingContext_YOUTUBE_SHOPPING ReportingContext_ReportingContextEnum = 10
202 // [Cloud retail](https://cloud.google.com/solutions/retail).
203 ReportingContext_CLOUD_RETAIL ReportingContext_ReportingContextEnum = 11
204 // [Local cloud retail](https://cloud.google.com/solutions/retail).
205 ReportingContext_LOCAL_CLOUD_RETAIL ReportingContext_ReportingContextEnum = 12
206 )
207
208 // Enum value maps for ReportingContext_ReportingContextEnum.
209 var (
210 ReportingContext_ReportingContextEnum_name = map[int32]string{
211 0: "REPORTING_CONTEXT_ENUM_UNSPECIFIED",
212 1: "SHOPPING_ADS",
213 2: "DISCOVERY_ADS",
214 13: "DEMAND_GEN_ADS",
215 14: "DEMAND_GEN_ADS_DISCOVER_SURFACE",
216 3: "VIDEO_ADS",
217 4: "DISPLAY_ADS",
218 5: "LOCAL_INVENTORY_ADS",
219 6: "VEHICLE_INVENTORY_ADS",
220 7: "FREE_LISTINGS",
221 8: "FREE_LOCAL_LISTINGS",
222 9: "FREE_LOCAL_VEHICLE_LISTINGS",
223 10: "YOUTUBE_SHOPPING",
224 11: "CLOUD_RETAIL",
225 12: "LOCAL_CLOUD_RETAIL",
226 }
227 ReportingContext_ReportingContextEnum_value = map[string]int32{
228 "REPORTING_CONTEXT_ENUM_UNSPECIFIED": 0,
229 "SHOPPING_ADS": 1,
230 "DISCOVERY_ADS": 2,
231 "DEMAND_GEN_ADS": 13,
232 "DEMAND_GEN_ADS_DISCOVER_SURFACE": 14,
233 "VIDEO_ADS": 3,
234 "DISPLAY_ADS": 4,
235 "LOCAL_INVENTORY_ADS": 5,
236 "VEHICLE_INVENTORY_ADS": 6,
237 "FREE_LISTINGS": 7,
238 "FREE_LOCAL_LISTINGS": 8,
239 "FREE_LOCAL_VEHICLE_LISTINGS": 9,
240 "YOUTUBE_SHOPPING": 10,
241 "CLOUD_RETAIL": 11,
242 "LOCAL_CLOUD_RETAIL": 12,
243 }
244 )
245
246 func (x ReportingContext_ReportingContextEnum) Enum() *ReportingContext_ReportingContextEnum {
247 p := new(ReportingContext_ReportingContextEnum)
248 *p = x
249 return p
250 }
251
252 func (x ReportingContext_ReportingContextEnum) String() string {
253 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
254 }
255
256 func (ReportingContext_ReportingContextEnum) Descriptor() protoreflect.EnumDescriptor {
257 return file_google_shopping_type_types_proto_enumTypes[2].Descriptor()
258 }
259
260 func (ReportingContext_ReportingContextEnum) Type() protoreflect.EnumType {
261 return &file_google_shopping_type_types_proto_enumTypes[2]
262 }
263
264 func (x ReportingContext_ReportingContextEnum) Number() protoreflect.EnumNumber {
265 return protoreflect.EnumNumber(x)
266 }
267
268 // Deprecated: Use ReportingContext_ReportingContextEnum.Descriptor instead.
269 func (ReportingContext_ReportingContextEnum) EnumDescriptor() ([]byte, []int) {
270 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{4, 0}
271 }
272
273 // Channel values.
274 type Channel_ChannelEnum int32
275
276 const (
277 // Not specified.
278 Channel_CHANNEL_ENUM_UNSPECIFIED Channel_ChannelEnum = 0
279 // Online product.
280 Channel_ONLINE Channel_ChannelEnum = 1
281 // Local product.
282 Channel_LOCAL Channel_ChannelEnum = 2
283 )
284
285 // Enum value maps for Channel_ChannelEnum.
286 var (
287 Channel_ChannelEnum_name = map[int32]string{
288 0: "CHANNEL_ENUM_UNSPECIFIED",
289 1: "ONLINE",
290 2: "LOCAL",
291 }
292 Channel_ChannelEnum_value = map[string]int32{
293 "CHANNEL_ENUM_UNSPECIFIED": 0,
294 "ONLINE": 1,
295 "LOCAL": 2,
296 }
297 )
298
299 func (x Channel_ChannelEnum) Enum() *Channel_ChannelEnum {
300 p := new(Channel_ChannelEnum)
301 *p = x
302 return p
303 }
304
305 func (x Channel_ChannelEnum) String() string {
306 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
307 }
308
309 func (Channel_ChannelEnum) Descriptor() protoreflect.EnumDescriptor {
310 return file_google_shopping_type_types_proto_enumTypes[3].Descriptor()
311 }
312
313 func (Channel_ChannelEnum) Type() protoreflect.EnumType {
314 return &file_google_shopping_type_types_proto_enumTypes[3]
315 }
316
317 func (x Channel_ChannelEnum) Number() protoreflect.EnumNumber {
318 return protoreflect.EnumNumber(x)
319 }
320
321 // Deprecated: Use Channel_ChannelEnum.Descriptor instead.
322 func (Channel_ChannelEnum) EnumDescriptor() ([]byte, []int) {
323 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{5, 0}
324 }
325
326 // The weight represented as the value in string and the unit.
327 type Weight struct {
328 state protoimpl.MessageState
329 sizeCache protoimpl.SizeCache
330 unknownFields protoimpl.UnknownFields
331
332 // Required. The weight represented as a number in micros (1 million micros is
333 // an equivalent to one's currency standard unit, for example, 1 kg = 1000000
334 // micros).
335 // This field can also be set as infinity by setting to -1.
336 // This field only support -1 and positive value.
337 AmountMicros *int64 `protobuf:"varint,1,opt,name=amount_micros,json=amountMicros,proto3,oneof" json:"amount_micros,omitempty"`
338 // Required. The weight unit.
339 // Acceptable values are: kg and lb
340 Unit Weight_WeightUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=google.shopping.type.Weight_WeightUnit" json:"unit,omitempty"`
341 }
342
343 func (x *Weight) Reset() {
344 *x = Weight{}
345 mi := &file_google_shopping_type_types_proto_msgTypes[0]
346 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
347 ms.StoreMessageInfo(mi)
348 }
349
350 func (x *Weight) String() string {
351 return protoimpl.X.MessageStringOf(x)
352 }
353
354 func (*Weight) ProtoMessage() {}
355
356 func (x *Weight) ProtoReflect() protoreflect.Message {
357 mi := &file_google_shopping_type_types_proto_msgTypes[0]
358 if x != nil {
359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
360 if ms.LoadMessageInfo() == nil {
361 ms.StoreMessageInfo(mi)
362 }
363 return ms
364 }
365 return mi.MessageOf(x)
366 }
367
368 // Deprecated: Use Weight.ProtoReflect.Descriptor instead.
369 func (*Weight) Descriptor() ([]byte, []int) {
370 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{0}
371 }
372
373 func (x *Weight) GetAmountMicros() int64 {
374 if x != nil && x.AmountMicros != nil {
375 return *x.AmountMicros
376 }
377 return 0
378 }
379
380 func (x *Weight) GetUnit() Weight_WeightUnit {
381 if x != nil {
382 return x.Unit
383 }
384 return Weight_WEIGHT_UNIT_UNSPECIFIED
385 }
386
387 // The price represented as a number and currency.
388 type Price struct {
389 state protoimpl.MessageState
390 sizeCache protoimpl.SizeCache
391 unknownFields protoimpl.UnknownFields
392
393 // The price represented as a number in micros (1 million micros is an
394 // equivalent to one's currency standard unit, for example, 1 USD = 1000000
395 // micros).
396 AmountMicros *int64 `protobuf:"varint,1,opt,name=amount_micros,json=amountMicros,proto3,oneof" json:"amount_micros,omitempty"`
397 // The currency of the price using three-letter acronyms according to [ISO
398 // 4217](http://en.wikipedia.org/wiki/ISO_4217).
399 CurrencyCode *string `protobuf:"bytes,2,opt,name=currency_code,json=currencyCode,proto3,oneof" json:"currency_code,omitempty"`
400 }
401
402 func (x *Price) Reset() {
403 *x = Price{}
404 mi := &file_google_shopping_type_types_proto_msgTypes[1]
405 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
406 ms.StoreMessageInfo(mi)
407 }
408
409 func (x *Price) String() string {
410 return protoimpl.X.MessageStringOf(x)
411 }
412
413 func (*Price) ProtoMessage() {}
414
415 func (x *Price) ProtoReflect() protoreflect.Message {
416 mi := &file_google_shopping_type_types_proto_msgTypes[1]
417 if x != nil {
418 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
419 if ms.LoadMessageInfo() == nil {
420 ms.StoreMessageInfo(mi)
421 }
422 return ms
423 }
424 return mi.MessageOf(x)
425 }
426
427 // Deprecated: Use Price.ProtoReflect.Descriptor instead.
428 func (*Price) Descriptor() ([]byte, []int) {
429 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{1}
430 }
431
432 func (x *Price) GetAmountMicros() int64 {
433 if x != nil && x.AmountMicros != nil {
434 return *x.AmountMicros
435 }
436 return 0
437 }
438
439 func (x *Price) GetCurrencyCode() string {
440 if x != nil && x.CurrencyCode != nil {
441 return *x.CurrencyCode
442 }
443 return ""
444 }
445
446 // A message that represents custom attributes. Exactly one of `value` or
447 // `group_values` must not be empty.
448 type CustomAttribute struct {
449 state protoimpl.MessageState
450 sizeCache protoimpl.SizeCache
451 unknownFields protoimpl.UnknownFields
452
453 // The name of the attribute.
454 Name *string `protobuf:"bytes,1,opt,name=name,proto3,oneof" json:"name,omitempty"`
455 // The value of the attribute. If `value` is not empty, `group_values` must be
456 // empty.
457 Value *string `protobuf:"bytes,2,opt,name=value,proto3,oneof" json:"value,omitempty"`
458 // Subattributes within this attribute group. If
459 // `group_values` is not empty, `value` must be empty.
460 GroupValues []*CustomAttribute `protobuf:"bytes,3,rep,name=group_values,json=groupValues,proto3" json:"group_values,omitempty"`
461 }
462
463 func (x *CustomAttribute) Reset() {
464 *x = CustomAttribute{}
465 mi := &file_google_shopping_type_types_proto_msgTypes[2]
466 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
467 ms.StoreMessageInfo(mi)
468 }
469
470 func (x *CustomAttribute) String() string {
471 return protoimpl.X.MessageStringOf(x)
472 }
473
474 func (*CustomAttribute) ProtoMessage() {}
475
476 func (x *CustomAttribute) ProtoReflect() protoreflect.Message {
477 mi := &file_google_shopping_type_types_proto_msgTypes[2]
478 if x != nil {
479 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
480 if ms.LoadMessageInfo() == nil {
481 ms.StoreMessageInfo(mi)
482 }
483 return ms
484 }
485 return mi.MessageOf(x)
486 }
487
488 // Deprecated: Use CustomAttribute.ProtoReflect.Descriptor instead.
489 func (*CustomAttribute) Descriptor() ([]byte, []int) {
490 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{2}
491 }
492
493 func (x *CustomAttribute) GetName() string {
494 if x != nil && x.Name != nil {
495 return *x.Name
496 }
497 return ""
498 }
499
500 func (x *CustomAttribute) GetValue() string {
501 if x != nil && x.Value != nil {
502 return *x.Value
503 }
504 return ""
505 }
506
507 func (x *CustomAttribute) GetGroupValues() []*CustomAttribute {
508 if x != nil {
509 return x.GroupValues
510 }
511 return nil
512 }
513
514 // Destinations available for a product.
515 //
516 // Destinations are used in Merchant Center to allow you to control where the
517 // products from your data feed should be displayed.
518 type Destination struct {
519 state protoimpl.MessageState
520 sizeCache protoimpl.SizeCache
521 unknownFields protoimpl.UnknownFields
522 }
523
524 func (x *Destination) Reset() {
525 *x = Destination{}
526 mi := &file_google_shopping_type_types_proto_msgTypes[3]
527 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
528 ms.StoreMessageInfo(mi)
529 }
530
531 func (x *Destination) String() string {
532 return protoimpl.X.MessageStringOf(x)
533 }
534
535 func (*Destination) ProtoMessage() {}
536
537 func (x *Destination) ProtoReflect() protoreflect.Message {
538 mi := &file_google_shopping_type_types_proto_msgTypes[3]
539 if x != nil {
540 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
541 if ms.LoadMessageInfo() == nil {
542 ms.StoreMessageInfo(mi)
543 }
544 return ms
545 }
546 return mi.MessageOf(x)
547 }
548
549 // Deprecated: Use Destination.ProtoReflect.Descriptor instead.
550 func (*Destination) Descriptor() ([]byte, []int) {
551 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{3}
552 }
553
554 // Reporting contexts that your account and product issues apply to.
555 //
556 // Reporting contexts are groups of surfaces and formats for product results on
557 // Google. They can represent the entire destination (for example, [Shopping
558 // ads](https://support.google.com/merchants/answer/6149970)) or a subset of
559 // formats within a destination (for example, [Demand Gen
560 // ads](https://support.google.com/merchants/answer/13389785)).
561 type ReportingContext struct {
562 state protoimpl.MessageState
563 sizeCache protoimpl.SizeCache
564 unknownFields protoimpl.UnknownFields
565 }
566
567 func (x *ReportingContext) Reset() {
568 *x = ReportingContext{}
569 mi := &file_google_shopping_type_types_proto_msgTypes[4]
570 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
571 ms.StoreMessageInfo(mi)
572 }
573
574 func (x *ReportingContext) String() string {
575 return protoimpl.X.MessageStringOf(x)
576 }
577
578 func (*ReportingContext) ProtoMessage() {}
579
580 func (x *ReportingContext) ProtoReflect() protoreflect.Message {
581 mi := &file_google_shopping_type_types_proto_msgTypes[4]
582 if x != nil {
583 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
584 if ms.LoadMessageInfo() == nil {
585 ms.StoreMessageInfo(mi)
586 }
587 return ms
588 }
589 return mi.MessageOf(x)
590 }
591
592 // Deprecated: Use ReportingContext.ProtoReflect.Descriptor instead.
593 func (*ReportingContext) Descriptor() ([]byte, []int) {
594 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{4}
595 }
596
597 // [Channel](https://support.google.com/merchants/answer/7361332) of a product.
598 //
599 // Channel is used to distinguish between online and local products.
600 type Channel struct {
601 state protoimpl.MessageState
602 sizeCache protoimpl.SizeCache
603 unknownFields protoimpl.UnknownFields
604 }
605
606 func (x *Channel) Reset() {
607 *x = Channel{}
608 mi := &file_google_shopping_type_types_proto_msgTypes[5]
609 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
610 ms.StoreMessageInfo(mi)
611 }
612
613 func (x *Channel) String() string {
614 return protoimpl.X.MessageStringOf(x)
615 }
616
617 func (*Channel) ProtoMessage() {}
618
619 func (x *Channel) ProtoReflect() protoreflect.Message {
620 mi := &file_google_shopping_type_types_proto_msgTypes[5]
621 if x != nil {
622 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
623 if ms.LoadMessageInfo() == nil {
624 ms.StoreMessageInfo(mi)
625 }
626 return ms
627 }
628 return mi.MessageOf(x)
629 }
630
631 // Deprecated: Use Channel.ProtoReflect.Descriptor instead.
632 func (*Channel) Descriptor() ([]byte, []int) {
633 return file_google_shopping_type_types_proto_rawDescGZIP(), []int{5}
634 }
635
636 var File_google_shopping_type_types_proto protoreflect.FileDescriptor
637
638 var file_google_shopping_type_types_proto_rawDesc = []byte{
639 0x0a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
640 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x70, 0x72, 0x6f,
641 0x74, 0x6f, 0x12, 0x14, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
642 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x22, 0xc5, 0x01, 0x0a, 0x06, 0x57, 0x65, 0x69,
643 0x67, 0x68, 0x74, 0x12, 0x28, 0x0a, 0x0d, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x69,
644 0x63, 0x72, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x6d,
645 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x88, 0x01, 0x01, 0x12, 0x3b, 0x0a,
646 0x04, 0x75, 0x6e, 0x69, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x27, 0x2e, 0x67, 0x6f,
647 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79,
648 0x70, 0x65, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74, 0x2e, 0x57, 0x65, 0x69, 0x67, 0x68, 0x74,
649 0x55, 0x6e, 0x69, 0x74, 0x52, 0x04, 0x75, 0x6e, 0x69, 0x74, 0x22, 0x42, 0x0a, 0x0a, 0x57, 0x65,
650 0x69, 0x67, 0x68, 0x74, 0x55, 0x6e, 0x69, 0x74, 0x12, 0x1b, 0x0a, 0x17, 0x57, 0x45, 0x49, 0x47,
651 0x48, 0x54, 0x5f, 0x55, 0x4e, 0x49, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
652 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x50, 0x4f, 0x55, 0x4e, 0x44, 0x10, 0x01,
653 0x12, 0x0c, 0x0a, 0x08, 0x4b, 0x49, 0x4c, 0x4f, 0x47, 0x52, 0x41, 0x4d, 0x10, 0x02, 0x42, 0x10,
654 0x0a, 0x0e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73,
655 0x22, 0x7f, 0x0a, 0x05, 0x50, 0x72, 0x69, 0x63, 0x65, 0x12, 0x28, 0x0a, 0x0d, 0x61, 0x6d, 0x6f,
656 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03,
657 0x48, 0x00, 0x52, 0x0c, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x4d, 0x69, 0x63, 0x72, 0x6f, 0x73,
658 0x88, 0x01, 0x01, 0x12, 0x28, 0x0a, 0x0d, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f,
659 0x63, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x0c, 0x63, 0x75,
660 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x43, 0x6f, 0x64, 0x65, 0x88, 0x01, 0x01, 0x42, 0x10, 0x0a,
661 0x0e, 0x5f, 0x61, 0x6d, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6d, 0x69, 0x63, 0x72, 0x6f, 0x73, 0x42,
662 0x10, 0x0a, 0x0e, 0x5f, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x5f, 0x63, 0x6f, 0x64,
663 0x65, 0x22, 0xa2, 0x01, 0x0a, 0x0f, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72,
664 0x69, 0x62, 0x75, 0x74, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
665 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x12, 0x19,
666 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52,
667 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x88, 0x01, 0x01, 0x12, 0x48, 0x0a, 0x0c, 0x67, 0x72, 0x6f,
668 0x75, 0x70, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32,
669 0x25, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
670 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74,
671 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x52, 0x0b, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x56, 0x61, 0x6c,
672 0x75, 0x65, 0x73, 0x42, 0x07, 0x0a, 0x05, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06,
673 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x22, 0xc1, 0x01, 0x0a, 0x0b, 0x44, 0x65, 0x73, 0x74, 0x69,
674 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb1, 0x01, 0x0a, 0x0f, 0x44, 0x65, 0x73, 0x74, 0x69,
675 0x6e, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x20, 0x0a, 0x1c, 0x44, 0x45,
676 0x53, 0x54, 0x49, 0x4e, 0x41, 0x54, 0x49, 0x4f, 0x4e, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55,
677 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x10, 0x0a, 0x0c,
678 0x53, 0x48, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x44, 0x53, 0x10, 0x01, 0x12, 0x0f,
679 0x0a, 0x0b, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x44, 0x53, 0x10, 0x02, 0x12,
680 0x17, 0x0a, 0x13, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x56, 0x45, 0x4e, 0x54, 0x4f,
681 0x52, 0x59, 0x5f, 0x41, 0x44, 0x53, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x52, 0x45, 0x45,
682 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x46,
683 0x52, 0x45, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x49, 0x4e,
684 0x47, 0x53, 0x10, 0x05, 0x12, 0x14, 0x0a, 0x10, 0x59, 0x4f, 0x55, 0x54, 0x55, 0x42, 0x45, 0x5f,
685 0x53, 0x48, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x06, 0x22, 0x96, 0x03, 0x0a, 0x10, 0x52,
686 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x78, 0x74, 0x22,
687 0x81, 0x03, 0x0a, 0x14, 0x52, 0x65, 0x70, 0x6f, 0x72, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x6e,
688 0x74, 0x65, 0x78, 0x74, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x26, 0x0a, 0x22, 0x52, 0x45, 0x50, 0x4f,
689 0x52, 0x54, 0x49, 0x4e, 0x47, 0x5f, 0x43, 0x4f, 0x4e, 0x54, 0x45, 0x58, 0x54, 0x5f, 0x45, 0x4e,
690 0x55, 0x4d, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
691 0x12, 0x10, 0x0a, 0x0c, 0x53, 0x48, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x5f, 0x41, 0x44, 0x53,
692 0x10, 0x01, 0x12, 0x15, 0x0a, 0x0d, 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x59, 0x5f,
693 0x41, 0x44, 0x53, 0x10, 0x02, 0x1a, 0x02, 0x08, 0x01, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x4d,
694 0x41, 0x4e, 0x44, 0x5f, 0x47, 0x45, 0x4e, 0x5f, 0x41, 0x44, 0x53, 0x10, 0x0d, 0x12, 0x23, 0x0a,
695 0x1f, 0x44, 0x45, 0x4d, 0x41, 0x4e, 0x44, 0x5f, 0x47, 0x45, 0x4e, 0x5f, 0x41, 0x44, 0x53, 0x5f,
696 0x44, 0x49, 0x53, 0x43, 0x4f, 0x56, 0x45, 0x52, 0x5f, 0x53, 0x55, 0x52, 0x46, 0x41, 0x43, 0x45,
697 0x10, 0x0e, 0x12, 0x0d, 0x0a, 0x09, 0x56, 0x49, 0x44, 0x45, 0x4f, 0x5f, 0x41, 0x44, 0x53, 0x10,
698 0x03, 0x12, 0x0f, 0x0a, 0x0b, 0x44, 0x49, 0x53, 0x50, 0x4c, 0x41, 0x59, 0x5f, 0x41, 0x44, 0x53,
699 0x10, 0x04, 0x12, 0x17, 0x0a, 0x13, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x49, 0x4e, 0x56, 0x45,
700 0x4e, 0x54, 0x4f, 0x52, 0x59, 0x5f, 0x41, 0x44, 0x53, 0x10, 0x05, 0x12, 0x19, 0x0a, 0x15, 0x56,
701 0x45, 0x48, 0x49, 0x43, 0x4c, 0x45, 0x5f, 0x49, 0x4e, 0x56, 0x45, 0x4e, 0x54, 0x4f, 0x52, 0x59,
702 0x5f, 0x41, 0x44, 0x53, 0x10, 0x06, 0x12, 0x11, 0x0a, 0x0d, 0x46, 0x52, 0x45, 0x45, 0x5f, 0x4c,
703 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47, 0x53, 0x10, 0x07, 0x12, 0x17, 0x0a, 0x13, 0x46, 0x52, 0x45,
704 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47, 0x53,
705 0x10, 0x08, 0x12, 0x1f, 0x0a, 0x1b, 0x46, 0x52, 0x45, 0x45, 0x5f, 0x4c, 0x4f, 0x43, 0x41, 0x4c,
706 0x5f, 0x56, 0x45, 0x48, 0x49, 0x43, 0x4c, 0x45, 0x5f, 0x4c, 0x49, 0x53, 0x54, 0x49, 0x4e, 0x47,
707 0x53, 0x10, 0x09, 0x12, 0x14, 0x0a, 0x10, 0x59, 0x4f, 0x55, 0x54, 0x55, 0x42, 0x45, 0x5f, 0x53,
708 0x48, 0x4f, 0x50, 0x50, 0x49, 0x4e, 0x47, 0x10, 0x0a, 0x12, 0x10, 0x0a, 0x0c, 0x43, 0x4c, 0x4f,
709 0x55, 0x44, 0x5f, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0x10, 0x0b, 0x12, 0x16, 0x0a, 0x12, 0x4c,
710 0x4f, 0x43, 0x41, 0x4c, 0x5f, 0x43, 0x4c, 0x4f, 0x55, 0x44, 0x5f, 0x52, 0x45, 0x54, 0x41, 0x49,
711 0x4c, 0x10, 0x0c, 0x22, 0x4d, 0x0a, 0x07, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x22, 0x42,
712 0x0a, 0x0b, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x45, 0x6e, 0x75, 0x6d, 0x12, 0x1c, 0x0a,
713 0x18, 0x43, 0x48, 0x41, 0x4e, 0x4e, 0x45, 0x4c, 0x5f, 0x45, 0x4e, 0x55, 0x4d, 0x5f, 0x55, 0x4e,
714 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x4f,
715 0x4e, 0x4c, 0x49, 0x4e, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05, 0x4c, 0x4f, 0x43, 0x41, 0x4c,
716 0x10, 0x02, 0x42, 0x70, 0x0a, 0x18, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
717 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x42, 0x0a,
718 0x54, 0x79, 0x70, 0x65, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x2f, 0x63, 0x6c,
719 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67,
720 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f,
721 0x74, 0x79, 0x70, 0x65, 0x70, 0x62, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x70, 0x62, 0xaa, 0x02, 0x14,
722 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
723 0x54, 0x79, 0x70, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
724 }
725
726 var (
727 file_google_shopping_type_types_proto_rawDescOnce sync.Once
728 file_google_shopping_type_types_proto_rawDescData = file_google_shopping_type_types_proto_rawDesc
729 )
730
731 func file_google_shopping_type_types_proto_rawDescGZIP() []byte {
732 file_google_shopping_type_types_proto_rawDescOnce.Do(func() {
733 file_google_shopping_type_types_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_type_types_proto_rawDescData)
734 })
735 return file_google_shopping_type_types_proto_rawDescData
736 }
737
738 var file_google_shopping_type_types_proto_enumTypes = make([]protoimpl.EnumInfo, 4)
739 var file_google_shopping_type_types_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
740 var file_google_shopping_type_types_proto_goTypes = []any{
741 (Weight_WeightUnit)(0), // 0: google.shopping.type.Weight.WeightUnit
742 (Destination_DestinationEnum)(0), // 1: google.shopping.type.Destination.DestinationEnum
743 (ReportingContext_ReportingContextEnum)(0), // 2: google.shopping.type.ReportingContext.ReportingContextEnum
744 (Channel_ChannelEnum)(0), // 3: google.shopping.type.Channel.ChannelEnum
745 (*Weight)(nil), // 4: google.shopping.type.Weight
746 (*Price)(nil), // 5: google.shopping.type.Price
747 (*CustomAttribute)(nil), // 6: google.shopping.type.CustomAttribute
748 (*Destination)(nil), // 7: google.shopping.type.Destination
749 (*ReportingContext)(nil), // 8: google.shopping.type.ReportingContext
750 (*Channel)(nil), // 9: google.shopping.type.Channel
751 }
752 var file_google_shopping_type_types_proto_depIdxs = []int32{
753 0, // 0: google.shopping.type.Weight.unit:type_name -> google.shopping.type.Weight.WeightUnit
754 6, // 1: google.shopping.type.CustomAttribute.group_values:type_name -> google.shopping.type.CustomAttribute
755 2, // [2:2] is the sub-list for method output_type
756 2, // [2:2] is the sub-list for method input_type
757 2, // [2:2] is the sub-list for extension type_name
758 2, // [2:2] is the sub-list for extension extendee
759 0, // [0:2] is the sub-list for field type_name
760 }
761
762 func init() { file_google_shopping_type_types_proto_init() }
763 func file_google_shopping_type_types_proto_init() {
764 if File_google_shopping_type_types_proto != nil {
765 return
766 }
767 file_google_shopping_type_types_proto_msgTypes[0].OneofWrappers = []any{}
768 file_google_shopping_type_types_proto_msgTypes[1].OneofWrappers = []any{}
769 file_google_shopping_type_types_proto_msgTypes[2].OneofWrappers = []any{}
770 type x struct{}
771 out := protoimpl.TypeBuilder{
772 File: protoimpl.DescBuilder{
773 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
774 RawDescriptor: file_google_shopping_type_types_proto_rawDesc,
775 NumEnums: 4,
776 NumMessages: 6,
777 NumExtensions: 0,
778 NumServices: 0,
779 },
780 GoTypes: file_google_shopping_type_types_proto_goTypes,
781 DependencyIndexes: file_google_shopping_type_types_proto_depIdxs,
782 EnumInfos: file_google_shopping_type_types_proto_enumTypes,
783 MessageInfos: file_google_shopping_type_types_proto_msgTypes,
784 }.Build()
785 File_google_shopping_type_types_proto = out.File
786 file_google_shopping_type_types_proto_rawDesc = nil
787 file_google_shopping_type_types_proto_goTypes = nil
788 file_google_shopping_type_types_proto_depIdxs = nil
789 }