Debian Codegraph @

shopping/merchant/promotions/apiv1/promotionspb/promotions.pb.go

raw symbols SCIP
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/promotions/v1/promotions.proto
20
21 package promotionspb
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 // Represents a promotion. See the following articles for more details.
44 //
45 // Required promotion input attributes to pass data validation checks are
46 // primarily defined below:
47 //
48 // * [Promotions data
49 // specification](https://support.google.com/merchants/answer/2906014)
50 // * [Local promotions data
51 // specification](https://support.google.com/merchants/answer/10146130)
52 //
53 // After inserting, updating a promotion input, it may take several minutes
54 // before the final promotion can be retrieved.
55 type Promotion struct {
56 state protoimpl.MessageState
57 sizeCache protoimpl.SizeCache
58 unknownFields protoimpl.UnknownFields
59
60 // Identifier. The name of the promotion.
61 // Format: `accounts/{account}/promotions/{promotion}`
62 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
63 // Required. The user provided promotion ID to uniquely identify the
64 // promotion. Follow [minimum
65 // requirements](https://support.google.com/merchants/answer/7050148?ref_topic=7322920&sjid=871860036916537104-NC#minimum_requirements)
66 // to prevent promotion disapprovals.
67 PromotionId string `protobuf:"bytes,2,opt,name=promotion_id,json=promotionId,proto3" json:"promotion_id,omitempty"`
68 // Required. The two-letter [ISO
69 // 639-1](http://en.wikipedia.org/wiki/ISO_639-1) language code for the
70 // promotion.
71 //
72 // Promotions is only for [selected
73 // languages](https://support.google.com/merchants/answer/4588281?ref_topic=6396150&sjid=18314938579342094533-NC#option3&zippy=).
74 ContentLanguage string `protobuf:"bytes,3,opt,name=content_language,json=contentLanguage,proto3" json:"content_language,omitempty"`
75 // Required. The target country used as part of the unique identifier.
76 // Represented as a [CLDR territory
77 // code](https://github.com/unicode-org/cldr/blob/latest/common/main/en.xml).
78 //
79 // Promotions are only available in selected
80 // countries, [Free Listings and Shopping
81 // ads](https://support.google.com/merchants/answer/4588460) [Local Inventory
82 // ads](https://support.google.com/merchants/answer/10146326)
83 TargetCountry string `protobuf:"bytes,4,opt,name=target_country,json=targetCountry,proto3" json:"target_country,omitempty"`
84 // Required. [Redemption
85 // channel](https://support.google.com/merchants/answer/13837674?ref_topic=13773355&sjid=17642868584668136159-NC)
86 // for the promotion. At least one channel is required.
87 RedemptionChannel []RedemptionChannel `protobuf:"varint,5,rep,packed,name=redemption_channel,json=redemptionChannel,proto3,enum=google.shopping.merchant.promotions.v1.RedemptionChannel" json:"redemption_channel,omitempty"`
88 // Output only. The primary data source of the promotion.
89 DataSource string `protobuf:"bytes,6,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
90 // Optional. A list of promotion attributes.
91 Attributes *Attributes `protobuf:"bytes,7,opt,name=attributes,proto3" json:"attributes,omitempty"`
92 // Optional. A list of custom (merchant-provided) attributes. It can also be
93 // used for submitting any attribute of the data specification in its generic
94 // form (for example,
95 // `{ "name": "size type", "value": "regular" }`).
96 // This is useful for submitting attributes not explicitly exposed by the
97 // API.
98 CustomAttributes []*typepb.CustomAttribute `protobuf:"bytes,8,rep,name=custom_attributes,json=customAttributes,proto3" json:"custom_attributes,omitempty"`
99 // Output only. The [status of a
100 // promotion](https://support.google.com/merchants/answer/3398326?ref_topic=7322924&sjid=5155774230887277618-NC),
101 // data validation issues, that is, information about a promotion computed
102 // asynchronously.
103 PromotionStatus *PromotionStatus `protobuf:"bytes,9,opt,name=promotion_status,json=promotionStatus,proto3" json:"promotion_status,omitempty"`
104 // Optional. Represents the existing version (freshness) of the promotion,
105 // which can be used to preserve the right order when multiple updates are
106 // done at the same time.
107 //
108 // If set, the insertion is prevented when version number is lower than
109 // the current version number of the existing promotion. Re-insertion (for
110 // example, promotion refresh after 30 days) can be performed with the current
111 // `version_number`.
112 //
113 // If the operation is prevented, the aborted exception will be
114 // thrown.
115 VersionNumber *int64 `protobuf:"varint,10,opt,name=version_number,json=versionNumber,proto3,oneof" json:"version_number,omitempty"`
116 }
117
118 func (x *Promotion) Reset() {
119 *x = Promotion{}
120 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[0]
121 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
122 ms.StoreMessageInfo(mi)
123 }
124
125 func (x *Promotion) String() string {
126 return protoimpl.X.MessageStringOf(x)
127 }
128
129 func (*Promotion) ProtoMessage() {}
130
131 func (x *Promotion) ProtoReflect() protoreflect.Message {
132 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[0]
133 if x != nil {
134 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
135 if ms.LoadMessageInfo() == nil {
136 ms.StoreMessageInfo(mi)
137 }
138 return ms
139 }
140 return mi.MessageOf(x)
141 }
142
143 // Deprecated: Use Promotion.ProtoReflect.Descriptor instead.
144 func (*Promotion) Descriptor() ([]byte, []int) {
145 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP(), []int{0}
146 }
147
148 func (x *Promotion) GetName() string {
149 if x != nil {
150 return x.Name
151 }
152 return ""
153 }
154
155 func (x *Promotion) GetPromotionId() string {
156 if x != nil {
157 return x.PromotionId
158 }
159 return ""
160 }
161
162 func (x *Promotion) GetContentLanguage() string {
163 if x != nil {
164 return x.ContentLanguage
165 }
166 return ""
167 }
168
169 func (x *Promotion) GetTargetCountry() string {
170 if x != nil {
171 return x.TargetCountry
172 }
173 return ""
174 }
175
176 func (x *Promotion) GetRedemptionChannel() []RedemptionChannel {
177 if x != nil {
178 return x.RedemptionChannel
179 }
180 return nil
181 }
182
183 func (x *Promotion) GetDataSource() string {
184 if x != nil {
185 return x.DataSource
186 }
187 return ""
188 }
189
190 func (x *Promotion) GetAttributes() *Attributes {
191 if x != nil {
192 return x.Attributes
193 }
194 return nil
195 }
196
197 func (x *Promotion) GetCustomAttributes() []*typepb.CustomAttribute {
198 if x != nil {
199 return x.CustomAttributes
200 }
201 return nil
202 }
203
204 func (x *Promotion) GetPromotionStatus() *PromotionStatus {
205 if x != nil {
206 return x.PromotionStatus
207 }
208 return nil
209 }
210
211 func (x *Promotion) GetVersionNumber() int64 {
212 if x != nil && x.VersionNumber != nil {
213 return *x.VersionNumber
214 }
215 return 0
216 }
217
218 // Request message for the `InsertPromotion` method.
219 type InsertPromotionRequest struct {
220 state protoimpl.MessageState
221 sizeCache protoimpl.SizeCache
222 unknownFields protoimpl.UnknownFields
223
224 // Required. The account where the promotion will be inserted.
225 // Format: accounts/{account}
226 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
227 // Required. The promotion to insert.
228 Promotion *Promotion `protobuf:"bytes,2,opt,name=promotion,proto3" json:"promotion,omitempty"`
229 // Required. The data source of the
230 // [promotion](https://support.google.com/merchants/answer/6396268?sjid=5155774230887277618-NC)
231 // Format:
232 // `accounts/{account}/dataSources/{datasource}`.
233 DataSource string `protobuf:"bytes,3,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
234 }
235
236 func (x *InsertPromotionRequest) Reset() {
237 *x = InsertPromotionRequest{}
238 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[1]
239 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
240 ms.StoreMessageInfo(mi)
241 }
242
243 func (x *InsertPromotionRequest) String() string {
244 return protoimpl.X.MessageStringOf(x)
245 }
246
247 func (*InsertPromotionRequest) ProtoMessage() {}
248
249 func (x *InsertPromotionRequest) ProtoReflect() protoreflect.Message {
250 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[1]
251 if x != nil {
252 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
253 if ms.LoadMessageInfo() == nil {
254 ms.StoreMessageInfo(mi)
255 }
256 return ms
257 }
258 return mi.MessageOf(x)
259 }
260
261 // Deprecated: Use InsertPromotionRequest.ProtoReflect.Descriptor instead.
262 func (*InsertPromotionRequest) Descriptor() ([]byte, []int) {
263 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP(), []int{1}
264 }
265
266 func (x *InsertPromotionRequest) GetParent() string {
267 if x != nil {
268 return x.Parent
269 }
270 return ""
271 }
272
273 func (x *InsertPromotionRequest) GetPromotion() *Promotion {
274 if x != nil {
275 return x.Promotion
276 }
277 return nil
278 }
279
280 func (x *InsertPromotionRequest) GetDataSource() string {
281 if x != nil {
282 return x.DataSource
283 }
284 return ""
285 }
286
287 // Request message for the `GetPromotion` method.
288 type GetPromotionRequest struct {
289 state protoimpl.MessageState
290 sizeCache protoimpl.SizeCache
291 unknownFields protoimpl.UnknownFields
292
293 // Required. The name of the promotion to retrieve.
294 // Format: `accounts/{account}/promotions/{promotions}`
295 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
296 }
297
298 func (x *GetPromotionRequest) Reset() {
299 *x = GetPromotionRequest{}
300 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[2]
301 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
302 ms.StoreMessageInfo(mi)
303 }
304
305 func (x *GetPromotionRequest) String() string {
306 return protoimpl.X.MessageStringOf(x)
307 }
308
309 func (*GetPromotionRequest) ProtoMessage() {}
310
311 func (x *GetPromotionRequest) ProtoReflect() protoreflect.Message {
312 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[2]
313 if x != nil {
314 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
315 if ms.LoadMessageInfo() == nil {
316 ms.StoreMessageInfo(mi)
317 }
318 return ms
319 }
320 return mi.MessageOf(x)
321 }
322
323 // Deprecated: Use GetPromotionRequest.ProtoReflect.Descriptor instead.
324 func (*GetPromotionRequest) Descriptor() ([]byte, []int) {
325 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP(), []int{2}
326 }
327
328 func (x *GetPromotionRequest) GetName() string {
329 if x != nil {
330 return x.Name
331 }
332 return ""
333 }
334
335 // Request message for the `ListPromotions` method.
336 type ListPromotionsRequest struct {
337 state protoimpl.MessageState
338 sizeCache protoimpl.SizeCache
339 unknownFields protoimpl.UnknownFields
340
341 // Required. The account to list processed promotions for.
342 // Format: `accounts/{account}`
343 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
344 // Optional. The maximum number of promotions to return. The service may
345 // return fewer than this value. The maximum value is 250; values above 250
346 // will be coerced to 250. If unspecified, the maximum number of promotions
347 // will be returned.
348 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
349 // Optional. A page token, received from a previous `ListPromotions` call.
350 // Provide this to retrieve the subsequent page.
351 //
352 // When paginating, all other parameters provided to `ListPromotions` must
353 // match the call that provided the page token.
354 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
355 }
356
357 func (x *ListPromotionsRequest) Reset() {
358 *x = ListPromotionsRequest{}
359 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[3]
360 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
361 ms.StoreMessageInfo(mi)
362 }
363
364 func (x *ListPromotionsRequest) String() string {
365 return protoimpl.X.MessageStringOf(x)
366 }
367
368 func (*ListPromotionsRequest) ProtoMessage() {}
369
370 func (x *ListPromotionsRequest) ProtoReflect() protoreflect.Message {
371 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[3]
372 if x != nil {
373 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
374 if ms.LoadMessageInfo() == nil {
375 ms.StoreMessageInfo(mi)
376 }
377 return ms
378 }
379 return mi.MessageOf(x)
380 }
381
382 // Deprecated: Use ListPromotionsRequest.ProtoReflect.Descriptor instead.
383 func (*ListPromotionsRequest) Descriptor() ([]byte, []int) {
384 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP(), []int{3}
385 }
386
387 func (x *ListPromotionsRequest) GetParent() string {
388 if x != nil {
389 return x.Parent
390 }
391 return ""
392 }
393
394 func (x *ListPromotionsRequest) GetPageSize() int32 {
395 if x != nil {
396 return x.PageSize
397 }
398 return 0
399 }
400
401 func (x *ListPromotionsRequest) GetPageToken() string {
402 if x != nil {
403 return x.PageToken
404 }
405 return ""
406 }
407
408 // Response message for the `ListPromotions` method.
409 type ListPromotionsResponse struct {
410 state protoimpl.MessageState
411 sizeCache protoimpl.SizeCache
412 unknownFields protoimpl.UnknownFields
413
414 // The processed promotions from the specified account.
415 Promotions []*Promotion `protobuf:"bytes,1,rep,name=promotions,proto3" json:"promotions,omitempty"`
416 // A token, which can be sent as `page_token` to retrieve the next page.
417 // If this field is omitted, there are no subsequent pages.
418 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
419 }
420
421 func (x *ListPromotionsResponse) Reset() {
422 *x = ListPromotionsResponse{}
423 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[4]
424 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
425 ms.StoreMessageInfo(mi)
426 }
427
428 func (x *ListPromotionsResponse) String() string {
429 return protoimpl.X.MessageStringOf(x)
430 }
431
432 func (*ListPromotionsResponse) ProtoMessage() {}
433
434 func (x *ListPromotionsResponse) ProtoReflect() protoreflect.Message {
435 mi := &file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[4]
436 if x != nil {
437 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
438 if ms.LoadMessageInfo() == nil {
439 ms.StoreMessageInfo(mi)
440 }
441 return ms
442 }
443 return mi.MessageOf(x)
444 }
445
446 // Deprecated: Use ListPromotionsResponse.ProtoReflect.Descriptor instead.
447 func (*ListPromotionsResponse) Descriptor() ([]byte, []int) {
448 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP(), []int{4}
449 }
450
451 func (x *ListPromotionsResponse) GetPromotions() []*Promotion {
452 if x != nil {
453 return x.Promotions
454 }
455 return nil
456 }
457
458 func (x *ListPromotionsResponse) GetNextPageToken() string {
459 if x != nil {
460 return x.NextPageToken
461 }
462 return ""
463 }
464
465 var File_google_shopping_merchant_promotions_v1_promotions_proto protoreflect.FileDescriptor
466
467 var file_google_shopping_merchant_promotions_v1_promotions_proto_rawDesc = []byte{
468 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
469 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f,
470 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
471 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
472 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
473 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76,
474 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e,
475 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
476 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65,
477 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
478 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76,
479 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
480 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70,
481 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f,
482 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70,
483 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f,
484 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x2e, 0x70,
485 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f,
486 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73,
487 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x89, 0x06, 0x0a, 0x09, 0x50, 0x72, 0x6f, 0x6d, 0x6f,
488 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01,
489 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a,
490 0x0c, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20,
491 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0b, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74,
492 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x12, 0x2e, 0x0a, 0x10, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74,
493 0x5f, 0x6c, 0x61, 0x6e, 0x67, 0x75, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42,
494 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x4c, 0x61, 0x6e,
495 0x67, 0x75, 0x61, 0x67, 0x65, 0x12, 0x2a, 0x0a, 0x0e, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x5f,
496 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x72, 0x79, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
497 0x41, 0x02, 0x52, 0x0d, 0x74, 0x61, 0x72, 0x67, 0x65, 0x74, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x72,
498 0x79, 0x12, 0x6d, 0x0a, 0x12, 0x72, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x5f,
499 0x63, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0e, 0x32, 0x39, 0x2e,
500 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
501 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
502 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f,
503 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x11, 0x72,
504 0x65, 0x64, 0x65, 0x6d, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x43, 0x68, 0x61, 0x6e, 0x6e, 0x65, 0x6c,
505 0x12, 0x24, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
506 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61,
507 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x12, 0x57, 0x0a, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
508 0x75, 0x74, 0x65, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f,
509 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
510 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73,
511 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x42, 0x03,
512 0xe0, 0x41, 0x01, 0x52, 0x0a, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12,
513 0x57, 0x0a, 0x11, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x61, 0x74, 0x74, 0x72, 0x69, 0x62,
514 0x75, 0x74, 0x65, 0x73, 0x18, 0x08, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x67, 0x6f, 0x6f,
515 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x74, 0x79, 0x70,
516 0x65, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75, 0x74,
517 0x65, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x10, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x41, 0x74,
518 0x74, 0x72, 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x12, 0x67, 0x0a, 0x10, 0x70, 0x72, 0x6f, 0x6d,
519 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x09, 0x20, 0x01,
520 0x28, 0x0b, 0x32, 0x37, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70,
521 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72,
522 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d,
523 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x03, 0xe0, 0x41, 0x03,
524 0x52, 0x0f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x75,
525 0x73, 0x12, 0x2f, 0x0a, 0x0e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d,
526 0x62, 0x65, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x03, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x00,
527 0x52, 0x0d, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88,
528 0x01, 0x01, 0x3a, 0x6b, 0xea, 0x41, 0x68, 0x0a, 0x24, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
529 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
530 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x29, 0x61,
531 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
532 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x70, 0x72,
533 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2a, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74,
534 0x69, 0x6f, 0x6e, 0x73, 0x32, 0x09, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x42,
535 0x11, 0x0a, 0x0f, 0x5f, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62,
536 0x65, 0x72, 0x22, 0xb1, 0x01, 0x0a, 0x16, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x50, 0x72, 0x6f,
537 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a,
538 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0,
539 0x41, 0x02, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x54, 0x0a, 0x09, 0x70, 0x72,
540 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x31, 0x2e,
541 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
542 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
543 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
544 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x09, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
545 0x12, 0x24, 0x0a, 0x0b, 0x64, 0x61, 0x74, 0x61, 0x5f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x18,
546 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0a, 0x64, 0x61, 0x74, 0x61,
547 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x22, 0x57, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,
548 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x40, 0x0a,
549 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2c, 0xe0, 0x41, 0x02,
550 0xfa, 0x41, 0x26, 0x0a, 0x24, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69,
551 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
552 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22,
553 0x7a, 0x0a, 0x15, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
554 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65,
555 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x06, 0x70,
556 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69,
557 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70,
558 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f,
559 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
560 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x93, 0x01, 0x0a, 0x16,
561 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65,
562 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x51, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74,
563 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f,
564 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
565 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73,
566 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x70,
567 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78,
568 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01,
569 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65,
570 0x6e, 0x32, 0xb5, 0x05, 0x0a, 0x11, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73,
571 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xc5, 0x01, 0x0a, 0x0f, 0x49, 0x6e, 0x73, 0x65,
572 0x72, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3e, 0x2e, 0x67, 0x6f,
573 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
574 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
575 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x49, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f,
576 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f,
577 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
578 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
579 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x3f,
580 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x22, 0x34, 0x2f, 0x70, 0x72, 0x6f, 0x6d,
581 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e,
582 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x72,
583 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x69, 0x6e, 0x73, 0x65, 0x72, 0x74, 0x12,
584 0xbc, 0x01, 0x0a, 0x0c, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
585 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
586 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d,
587 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f,
588 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e,
589 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
590 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
591 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
592 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12,
593 0x2d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76, 0x31, 0x2f,
594 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
595 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcf,
596 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e,
597 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
598 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f,
599 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50,
600 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
601 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69,
602 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d,
603 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72,
604 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
605 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02,
606 0x2f, 0x12, 0x2d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x76,
607 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
608 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73,
609 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69,
610 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2,
611 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f,
612 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74,
613 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0xcb, 0x02, 0xea, 0x41, 0x38, 0x0a,
614 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f,
615 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f,
616 0x75, 0x6e, 0x74, 0x12, 0x12, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61,
617 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f,
618 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72,
619 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73,
620 0x2e, 0x76, 0x31, 0x42, 0x0f, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x50,
621 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x50, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f,
622 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70,
623 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x70, 0x72,
624 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x70,
625 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0x62, 0x3b, 0x70, 0x72, 0x6f, 0x6d,
626 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c,
627 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68,
628 0x61, 0x6e, 0x74, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x56,
629 0x31, 0xca, 0x02, 0x26, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70,
630 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x50, 0x72, 0x6f,
631 0x6d, 0x6f, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x2a, 0x47, 0x6f, 0x6f,
632 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d,
633 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x6d, 0x6f, 0x74, 0x69,
634 0x6f, 0x6e, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
635 }
636
637 var (
638 file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescOnce sync.Once
639 file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescData = file_google_shopping_merchant_promotions_v1_promotions_proto_rawDesc
640 )
641
642 func file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescGZIP() []byte {
643 file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescOnce.Do(func() {
644 file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescData)
645 })
646 return file_google_shopping_merchant_promotions_v1_promotions_proto_rawDescData
647 }
648
649 var file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes = make([]protoimpl.MessageInfo, 5)
650 var file_google_shopping_merchant_promotions_v1_promotions_proto_goTypes = []any{
651 (*Promotion)(nil), // 0: google.shopping.merchant.promotions.v1.Promotion
652 (*InsertPromotionRequest)(nil), // 1: google.shopping.merchant.promotions.v1.InsertPromotionRequest
653 (*GetPromotionRequest)(nil), // 2: google.shopping.merchant.promotions.v1.GetPromotionRequest
654 (*ListPromotionsRequest)(nil), // 3: google.shopping.merchant.promotions.v1.ListPromotionsRequest
655 (*ListPromotionsResponse)(nil), // 4: google.shopping.merchant.promotions.v1.ListPromotionsResponse
656 (RedemptionChannel)(0), // 5: google.shopping.merchant.promotions.v1.RedemptionChannel
657 (*Attributes)(nil), // 6: google.shopping.merchant.promotions.v1.Attributes
658 (*typepb.CustomAttribute)(nil), // 7: google.shopping.type.CustomAttribute
659 (*PromotionStatus)(nil), // 8: google.shopping.merchant.promotions.v1.PromotionStatus
660 }
661 var file_google_shopping_merchant_promotions_v1_promotions_proto_depIdxs = []int32{
662 5, // 0: google.shopping.merchant.promotions.v1.Promotion.redemption_channel:type_name -> google.shopping.merchant.promotions.v1.RedemptionChannel
663 6, // 1: google.shopping.merchant.promotions.v1.Promotion.attributes:type_name -> google.shopping.merchant.promotions.v1.Attributes
664 7, // 2: google.shopping.merchant.promotions.v1.Promotion.custom_attributes:type_name -> google.shopping.type.CustomAttribute
665 8, // 3: google.shopping.merchant.promotions.v1.Promotion.promotion_status:type_name -> google.shopping.merchant.promotions.v1.PromotionStatus
666 0, // 4: google.shopping.merchant.promotions.v1.InsertPromotionRequest.promotion:type_name -> google.shopping.merchant.promotions.v1.Promotion
667 0, // 5: google.shopping.merchant.promotions.v1.ListPromotionsResponse.promotions:type_name -> google.shopping.merchant.promotions.v1.Promotion
668 1, // 6: google.shopping.merchant.promotions.v1.PromotionsService.InsertPromotion:input_type -> google.shopping.merchant.promotions.v1.InsertPromotionRequest
669 2, // 7: google.shopping.merchant.promotions.v1.PromotionsService.GetPromotion:input_type -> google.shopping.merchant.promotions.v1.GetPromotionRequest
670 3, // 8: google.shopping.merchant.promotions.v1.PromotionsService.ListPromotions:input_type -> google.shopping.merchant.promotions.v1.ListPromotionsRequest
671 0, // 9: google.shopping.merchant.promotions.v1.PromotionsService.InsertPromotion:output_type -> google.shopping.merchant.promotions.v1.Promotion
672 0, // 10: google.shopping.merchant.promotions.v1.PromotionsService.GetPromotion:output_type -> google.shopping.merchant.promotions.v1.Promotion
673 4, // 11: google.shopping.merchant.promotions.v1.PromotionsService.ListPromotions:output_type -> google.shopping.merchant.promotions.v1.ListPromotionsResponse
674 9, // [9:12] is the sub-list for method output_type
675 6, // [6:9] is the sub-list for method input_type
676 6, // [6:6] is the sub-list for extension type_name
677 6, // [6:6] is the sub-list for extension extendee
678 0, // [0:6] is the sub-list for field type_name
679 }
680
681 func init() { file_google_shopping_merchant_promotions_v1_promotions_proto_init() }
682 func file_google_shopping_merchant_promotions_v1_promotions_proto_init() {
683 if File_google_shopping_merchant_promotions_v1_promotions_proto != nil {
684 return
685 }
686 file_google_shopping_merchant_promotions_v1_promotions_common_proto_init()
687 file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes[0].OneofWrappers = []any{}
688 type x struct{}
689 out := protoimpl.TypeBuilder{
690 File: protoimpl.DescBuilder{
691 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
692 RawDescriptor: file_google_shopping_merchant_promotions_v1_promotions_proto_rawDesc,
693 NumEnums: 0,
694 NumMessages: 5,
695 NumExtensions: 0,
696 NumServices: 1,
697 },
698 GoTypes: file_google_shopping_merchant_promotions_v1_promotions_proto_goTypes,
699 DependencyIndexes: file_google_shopping_merchant_promotions_v1_promotions_proto_depIdxs,
700 MessageInfos: file_google_shopping_merchant_promotions_v1_promotions_proto_msgTypes,
701 }.Build()
702 File_google_shopping_merchant_promotions_v1_promotions_proto = out.File
703 file_google_shopping_merchant_promotions_v1_promotions_proto_rawDesc = nil
704 file_google_shopping_merchant_promotions_v1_promotions_proto_goTypes = nil
705 file_google_shopping_merchant_promotions_v1_promotions_proto_depIdxs = nil
706 }
707
708 // Reference imports to suppress errors if they are not otherwise used.
709 var _ context.Context
710 var _ grpc.ClientConnInterface
711
712 // This is a compile-time assertion to ensure that this generated file
713 // is compatible with the grpc package it is being compiled against.
714 const _ = grpc.SupportPackageIsVersion6
715
716 // PromotionsServiceClient is the client API for PromotionsService service.
717 //
718 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
719 type PromotionsServiceClient interface {
720 // Inserts a promotion for your Merchant Center account. If the promotion
721 // already exists, then it updates the promotion instead.
722 InsertPromotion(ctx context.Context, in *InsertPromotionRequest, opts ...grpc.CallOption) (*Promotion, error)
723 // Retrieves the promotion from your Merchant Center account.
724 //
725 // After inserting or updating a promotion input, it may take several
726 // minutes before the updated promotion can be retrieved.
727 GetPromotion(ctx context.Context, in *GetPromotionRequest, opts ...grpc.CallOption) (*Promotion, error)
728 // Lists the promotions in your Merchant Center account. The
729 // response might contain fewer items than specified by `pageSize`. Rely on
730 // `pageToken` to determine if there are more items to be requested.
731 //
732 // After inserting or updating a promotion, it may take several minutes before
733 // the updated processed promotion can be retrieved.
734 ListPromotions(ctx context.Context, in *ListPromotionsRequest, opts ...grpc.CallOption) (*ListPromotionsResponse, error)
735 }
736
737 type promotionsServiceClient struct {
738 cc grpc.ClientConnInterface
739 }
740
741 func NewPromotionsServiceClient(cc grpc.ClientConnInterface) PromotionsServiceClient {
742 return &promotionsServiceClient{cc}
743 }
744
745 func (c *promotionsServiceClient) InsertPromotion(ctx context.Context, in *InsertPromotionRequest, opts ...grpc.CallOption) (*Promotion, error) {
746 out := new(Promotion)
747 err := c.cc.Invoke(ctx, "/google.shopping.merchant.promotions.v1.PromotionsService/InsertPromotion", in, out, opts...)
748 if err != nil {
749 return nil, err
750 }
751 return out, nil
752 }
753
754 func (c *promotionsServiceClient) GetPromotion(ctx context.Context, in *GetPromotionRequest, opts ...grpc.CallOption) (*Promotion, error) {
755 out := new(Promotion)
756 err := c.cc.Invoke(ctx, "/google.shopping.merchant.promotions.v1.PromotionsService/GetPromotion", in, out, opts...)
757 if err != nil {
758 return nil, err
759 }
760 return out, nil
761 }
762
763 func (c *promotionsServiceClient) ListPromotions(ctx context.Context, in *ListPromotionsRequest, opts ...grpc.CallOption) (*ListPromotionsResponse, error) {
764 out := new(ListPromotionsResponse)
765 err := c.cc.Invoke(ctx, "/google.shopping.merchant.promotions.v1.PromotionsService/ListPromotions", in, out, opts...)
766 if err != nil {
767 return nil, err
768 }
769 return out, nil
770 }
771
772 // PromotionsServiceServer is the server API for PromotionsService service.
773 type PromotionsServiceServer interface {
774 // Inserts a promotion for your Merchant Center account. If the promotion
775 // already exists, then it updates the promotion instead.
776 InsertPromotion(context.Context, *InsertPromotionRequest) (*Promotion, error)
777 // Retrieves the promotion from your Merchant Center account.
778 //
779 // After inserting or updating a promotion input, it may take several
780 // minutes before the updated promotion can be retrieved.
781 GetPromotion(context.Context, *GetPromotionRequest) (*Promotion, error)
782 // Lists the promotions in your Merchant Center account. The
783 // response might contain fewer items than specified by `pageSize`. Rely on
784 // `pageToken` to determine if there are more items to be requested.
785 //
786 // After inserting or updating a promotion, it may take several minutes before
787 // the updated processed promotion can be retrieved.
788 ListPromotions(context.Context, *ListPromotionsRequest) (*ListPromotionsResponse, error)
789 }
790
791 // UnimplementedPromotionsServiceServer can be embedded to have forward compatible implementations.
792 type UnimplementedPromotionsServiceServer struct {
793 }
794
795 func (*UnimplementedPromotionsServiceServer) InsertPromotion(context.Context, *InsertPromotionRequest) (*Promotion, error) {
796 return nil, status.Errorf(codes.Unimplemented, "method InsertPromotion not implemented")
797 }
798 func (*UnimplementedPromotionsServiceServer) GetPromotion(context.Context, *GetPromotionRequest) (*Promotion, error) {
799 return nil, status.Errorf(codes.Unimplemented, "method GetPromotion not implemented")
800 }
801 func (*UnimplementedPromotionsServiceServer) ListPromotions(context.Context, *ListPromotionsRequest) (*ListPromotionsResponse, error) {
802 return nil, status.Errorf(codes.Unimplemented, "method ListPromotions not implemented")
803 }
804
805 func RegisterPromotionsServiceServer(s *grpc.Server, srv PromotionsServiceServer) {
806 s.RegisterService(&_PromotionsService_serviceDesc, srv)
807 }
808
809 func _PromotionsService_InsertPromotion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
810 in := new(InsertPromotionRequest)
811 if err := dec(in); err != nil {
812 return nil, err
813 }
814 if interceptor == nil {
815 return srv.(PromotionsServiceServer).InsertPromotion(ctx, in)
816 }
817 info := &grpc.UnaryServerInfo{
818 Server: srv,
819 FullMethod: "/google.shopping.merchant.promotions.v1.PromotionsService/InsertPromotion",
820 }
821 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
822 return srv.(PromotionsServiceServer).InsertPromotion(ctx, req.(*InsertPromotionRequest))
823 }
824 return interceptor(ctx, in, info, handler)
825 }
826
827 func _PromotionsService_GetPromotion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
828 in := new(GetPromotionRequest)
829 if err := dec(in); err != nil {
830 return nil, err
831 }
832 if interceptor == nil {
833 return srv.(PromotionsServiceServer).GetPromotion(ctx, in)
834 }
835 info := &grpc.UnaryServerInfo{
836 Server: srv,
837 FullMethod: "/google.shopping.merchant.promotions.v1.PromotionsService/GetPromotion",
838 }
839 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
840 return srv.(PromotionsServiceServer).GetPromotion(ctx, req.(*GetPromotionRequest))
841 }
842 return interceptor(ctx, in, info, handler)
843 }
844
845 func _PromotionsService_ListPromotions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
846 in := new(ListPromotionsRequest)
847 if err := dec(in); err != nil {
848 return nil, err
849 }
850 if interceptor == nil {
851 return srv.(PromotionsServiceServer).ListPromotions(ctx, in)
852 }
853 info := &grpc.UnaryServerInfo{
854 Server: srv,
855 FullMethod: "/google.shopping.merchant.promotions.v1.PromotionsService/ListPromotions",
856 }
857 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
858 return srv.(PromotionsServiceServer).ListPromotions(ctx, req.(*ListPromotionsRequest))
859 }
860 return interceptor(ctx, in, info, handler)
861 }
862
863 var _PromotionsService_serviceDesc = grpc.ServiceDesc{
864 ServiceName: "google.shopping.merchant.promotions.v1.PromotionsService",
865 HandlerType: (*PromotionsServiceServer)(nil),
866 Methods: []grpc.MethodDesc{
867 {
868 MethodName: "InsertPromotion",
869 Handler: _PromotionsService_InsertPromotion_Handler,
870 },
871 {
872 MethodName: "GetPromotion",
873 Handler: _PromotionsService_GetPromotion_Handler,
874 },
875 {
876 MethodName: "ListPromotions",
877 Handler: _PromotionsService_ListPromotions_Handler,
878 },
879 },
880 Streams: []grpc.StreamDesc{},
881 Metadata: "google/shopping/merchant/promotions/v1/promotions.proto",
882 }