Debian Codegraph @

retail/apiv2beta/retailpb/promotion.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/cloud/retail/v2beta/promotion.proto
20
21 package retailpb
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 // Promotion information.
38 type Promotion struct {
39 state protoimpl.MessageState
40 sizeCache protoimpl.SizeCache
41 unknownFields protoimpl.UnknownFields
42
43 // ID of the promotion. For example, "free gift".
44 //
45 // The value must be a UTF-8 encoded string with a length limit of 128
46 // characters, and match the pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example,
47 // id0LikeThis or ID_1_LIKE_THIS. Otherwise, an INVALID_ARGUMENT error is
48 // returned.
49 //
50 // Corresponds to Google Merchant Center property
51 // [promotion_id](https://support.google.com/merchants/answer/7050148).
52 PromotionId string `protobuf:"bytes,1,opt,name=promotion_id,json=promotionId,proto3" json:"promotion_id,omitempty"`
53 }
54
55 func (x *Promotion) Reset() {
56 *x = Promotion{}
57 mi := &file_google_cloud_retail_v2beta_promotion_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *Promotion) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*Promotion) ProtoMessage() {}
67
68 func (x *Promotion) ProtoReflect() protoreflect.Message {
69 mi := &file_google_cloud_retail_v2beta_promotion_proto_msgTypes[0]
70 if x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use Promotion.ProtoReflect.Descriptor instead.
81 func (*Promotion) Descriptor() ([]byte, []int) {
82 return file_google_cloud_retail_v2beta_promotion_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *Promotion) GetPromotionId() string {
86 if x != nil {
87 return x.PromotionId
88 }
89 return ""
90 }
91
92 var File_google_cloud_retail_v2beta_promotion_proto protoreflect.FileDescriptor
93
94 var file_google_cloud_retail_v2beta_promotion_proto_rawDesc = []byte{
95 0x0a, 0x2a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x72,
96 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f,
97 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1a, 0x67, 0x6f,
98 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65, 0x74, 0x61, 0x69,
99 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x22, 0x2e, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x6d,
100 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x21, 0x0a, 0x0c, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
101 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x70, 0x72, 0x6f,
102 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x42, 0xcd, 0x01, 0x0a, 0x1e, 0x63, 0x6f, 0x6d,
103 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x72, 0x65,
104 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x76, 0x32, 0x62, 0x65, 0x74, 0x61, 0x42, 0x0e, 0x50, 0x72, 0x6f,
105 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x36, 0x63,
106 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
107 0x67, 0x6f, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x32, 0x62,
108 0x65, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x70, 0x62, 0x3b, 0x72, 0x65, 0x74,
109 0x61, 0x69, 0x6c, 0x70, 0x62, 0xa2, 0x02, 0x06, 0x52, 0x45, 0x54, 0x41, 0x49, 0x4c, 0xaa, 0x02,
110 0x1a, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x52, 0x65,
111 0x74, 0x61, 0x69, 0x6c, 0x2e, 0x56, 0x32, 0x42, 0x65, 0x74, 0x61, 0xca, 0x02, 0x1a, 0x47, 0x6f,
112 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x5c, 0x52, 0x65, 0x74, 0x61, 0x69,
113 0x6c, 0x5c, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0xea, 0x02, 0x1d, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
114 0x65, 0x3a, 0x3a, 0x43, 0x6c, 0x6f, 0x75, 0x64, 0x3a, 0x3a, 0x52, 0x65, 0x74, 0x61, 0x69, 0x6c,
115 0x3a, 0x3a, 0x56, 0x32, 0x62, 0x65, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
116 }
117
118 var (
119 file_google_cloud_retail_v2beta_promotion_proto_rawDescOnce sync.Once
120 file_google_cloud_retail_v2beta_promotion_proto_rawDescData = file_google_cloud_retail_v2beta_promotion_proto_rawDesc
121 )
122
123 func file_google_cloud_retail_v2beta_promotion_proto_rawDescGZIP() []byte {
124 file_google_cloud_retail_v2beta_promotion_proto_rawDescOnce.Do(func() {
125 file_google_cloud_retail_v2beta_promotion_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_retail_v2beta_promotion_proto_rawDescData)
126 })
127 return file_google_cloud_retail_v2beta_promotion_proto_rawDescData
128 }
129
130 var file_google_cloud_retail_v2beta_promotion_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
131 var file_google_cloud_retail_v2beta_promotion_proto_goTypes = []any{
132 (*Promotion)(nil), // 0: google.cloud.retail.v2beta.Promotion
133 }
134 var file_google_cloud_retail_v2beta_promotion_proto_depIdxs = []int32{
135 0, // [0:0] is the sub-list for method output_type
136 0, // [0:0] is the sub-list for method input_type
137 0, // [0:0] is the sub-list for extension type_name
138 0, // [0:0] is the sub-list for extension extendee
139 0, // [0:0] is the sub-list for field type_name
140 }
141
142 func init() { file_google_cloud_retail_v2beta_promotion_proto_init() }
143 func file_google_cloud_retail_v2beta_promotion_proto_init() {
144 if File_google_cloud_retail_v2beta_promotion_proto != nil {
145 return
146 }
147 type x struct{}
148 out := protoimpl.TypeBuilder{
149 File: protoimpl.DescBuilder{
150 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
151 RawDescriptor: file_google_cloud_retail_v2beta_promotion_proto_rawDesc,
152 NumEnums: 0,
153 NumMessages: 1,
154 NumExtensions: 0,
155 NumServices: 0,
156 },
157 GoTypes: file_google_cloud_retail_v2beta_promotion_proto_goTypes,
158 DependencyIndexes: file_google_cloud_retail_v2beta_promotion_proto_depIdxs,
159 MessageInfos: file_google_cloud_retail_v2beta_promotion_proto_msgTypes,
160 }.Build()
161 File_google_cloud_retail_v2beta_promotion_proto = out.File
162 file_google_cloud_retail_v2beta_promotion_proto_rawDesc = nil
163 file_google_cloud_retail_v2beta_promotion_proto_goTypes = nil
164 file_google_cloud_retail_v2beta_promotion_proto_depIdxs = nil
165 }