| 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/accounts/v1beta/programs.proto |
| 20 |
|
| 21 |
package accountspb |
| 22 |
|
| 23 |
import ( |
| 24 |
context "context" |
| 25 |
_ "google.golang.org/genproto/googleapis/api/annotations" |
| 26 |
grpc "google.golang.org/grpc" |
| 27 |
codes "google.golang.org/grpc/codes" |
| 28 |
status "google.golang.org/grpc/status" |
| 29 |
protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| 30 |
protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| 31 |
reflect "reflect" |
| 32 |
sync "sync" |
| 33 |
) |
| 34 |
|
| 35 |
const ( |
| 36 |
// Verify that this generated code is sufficiently up-to-date. |
| 37 |
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| 38 |
// Verify that runtime/protoimpl is sufficiently up-to-date. |
| 39 |
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| 40 |
) |
| 41 |
|
| 42 |
// Possible program participation states for the account. |
| 43 |
type Program_State int32 |
| 44 |
|
| 45 |
const ( |
| 46 |
// Default value. This value is unused. |
| 47 |
Program_STATE_UNSPECIFIED Program_State = 0 |
| 48 |
// The account is not eligible to participate in the program. |
| 49 |
Program_NOT_ELIGIBLE Program_State = 1 |
| 50 |
// The account is eligible to participate in the program. |
| 51 |
Program_ELIGIBLE Program_State = 2 |
| 52 |
// The program is enabled for the account. |
| 53 |
Program_ENABLED Program_State = 3 |
| 54 |
) |
| 55 |
|
| 56 |
// Enum value maps for Program_State. |
| 57 |
var ( |
| 58 |
Program_State_name = map[int32]string{ |
| 59 |
0: "STATE_UNSPECIFIED", |
| 60 |
1: "NOT_ELIGIBLE", |
| 61 |
2: "ELIGIBLE", |
| 62 |
3: "ENABLED", |
| 63 |
} |
| 64 |
Program_State_value = map[string]int32{ |
| 65 |
"STATE_UNSPECIFIED": 0, |
| 66 |
"NOT_ELIGIBLE": 1, |
| 67 |
"ELIGIBLE": 2, |
| 68 |
"ENABLED": 3, |
| 69 |
} |
| 70 |
) |
| 71 |
|
| 72 |
func (x Program_State) Enum() *Program_State { |
| 73 |
p := new(Program_State) |
| 74 |
*p = x |
| 75 |
return p |
| 76 |
} |
| 77 |
|
| 78 |
func (x Program_State) String() string { |
| 79 |
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) |
| 80 |
} |
| 81 |
|
| 82 |
func (Program_State) Descriptor() protoreflect.EnumDescriptor { |
| 83 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_enumTypes[0].Descriptor() |
| 84 |
} |
| 85 |
|
| 86 |
func (Program_State) Type() protoreflect.EnumType { |
| 87 |
return &file_google_shopping_merchant_accounts_v1beta_programs_proto_enumTypes[0] |
| 88 |
} |
| 89 |
|
| 90 |
func (x Program_State) Number() protoreflect.EnumNumber { |
| 91 |
return protoreflect.EnumNumber(x) |
| 92 |
} |
| 93 |
|
| 94 |
// Deprecated: Use Program_State.Descriptor instead. |
| 95 |
func (Program_State) EnumDescriptor() ([]byte, []int) { |
| 96 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{0, 0} |
| 97 |
} |
| 98 |
|
| 99 |
// Defines participation in a given program for the specified account. |
| 100 |
// |
| 101 |
// Programs provide a mechanism for adding functionality to merchant accounts. A |
| 102 |
// typical example of this is the [Free product |
| 103 |
// listings](https://support.google.com/merchants/topic/9240261?ref_topic=7257954,7259405,&sjid=796648681813264022-EU) |
| 104 |
// program, which enables products from a merchant's store to be shown across |
| 105 |
// Google for free. |
| 106 |
type Program struct { |
| 107 |
state protoimpl.MessageState |
| 108 |
sizeCache protoimpl.SizeCache |
| 109 |
unknownFields protoimpl.UnknownFields |
| 110 |
|
| 111 |
// Identifier. The resource name of the program. |
| 112 |
// Format: `accounts/{account}/programs/{program}` |
| 113 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 114 |
// Output only. The URL of a Merchant Center help page describing the program. |
| 115 |
DocumentationUri string `protobuf:"bytes,2,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"` |
| 116 |
// Output only. The participation state of the account in the program. |
| 117 |
State Program_State `protobuf:"varint,3,opt,name=state,proto3,enum=google.shopping.merchant.accounts.v1beta.Program_State" json:"state,omitempty"` |
| 118 |
// Output only. The regions in which the account is actively participating in |
| 119 |
// the program. Active regions are defined as those where all program |
| 120 |
// requirements affecting the regions have been met. |
| 121 |
// |
| 122 |
// Region codes are defined by [CLDR](https://cldr.unicode.org/). This is |
| 123 |
// either a country where the program applies specifically to that country or |
| 124 |
// `001` when the program applies globally. |
| 125 |
ActiveRegionCodes []string `protobuf:"bytes,4,rep,name=active_region_codes,json=activeRegionCodes,proto3" json:"active_region_codes,omitempty"` |
| 126 |
// Output only. The requirements that the account has not yet satisfied that |
| 127 |
// are affecting participation in the program. |
| 128 |
UnmetRequirements []*Program_Requirement `protobuf:"bytes,5,rep,name=unmet_requirements,json=unmetRequirements,proto3" json:"unmet_requirements,omitempty"` |
| 129 |
} |
| 130 |
|
| 131 |
func (x *Program) Reset() { |
| 132 |
*x = Program{} |
| 133 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[0] |
| 134 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 135 |
ms.StoreMessageInfo(mi) |
| 136 |
} |
| 137 |
|
| 138 |
func (x *Program) String() string { |
| 139 |
return protoimpl.X.MessageStringOf(x) |
| 140 |
} |
| 141 |
|
| 142 |
func (*Program) ProtoMessage() {} |
| 143 |
|
| 144 |
func (x *Program) ProtoReflect() protoreflect.Message { |
| 145 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[0] |
| 146 |
if x != nil { |
| 147 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 148 |
if ms.LoadMessageInfo() == nil { |
| 149 |
ms.StoreMessageInfo(mi) |
| 150 |
} |
| 151 |
return ms |
| 152 |
} |
| 153 |
return mi.MessageOf(x) |
| 154 |
} |
| 155 |
|
| 156 |
// Deprecated: Use Program.ProtoReflect.Descriptor instead. |
| 157 |
func (*Program) Descriptor() ([]byte, []int) { |
| 158 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{0} |
| 159 |
} |
| 160 |
|
| 161 |
func (x *Program) GetName() string { |
| 162 |
if x != nil { |
| 163 |
return x.Name |
| 164 |
} |
| 165 |
return "" |
| 166 |
} |
| 167 |
|
| 168 |
func (x *Program) GetDocumentationUri() string { |
| 169 |
if x != nil { |
| 170 |
return x.DocumentationUri |
| 171 |
} |
| 172 |
return "" |
| 173 |
} |
| 174 |
|
| 175 |
func (x *Program) GetState() Program_State { |
| 176 |
if x != nil { |
| 177 |
return x.State |
| 178 |
} |
| 179 |
return Program_STATE_UNSPECIFIED |
| 180 |
} |
| 181 |
|
| 182 |
func (x *Program) GetActiveRegionCodes() []string { |
| 183 |
if x != nil { |
| 184 |
return x.ActiveRegionCodes |
| 185 |
} |
| 186 |
return nil |
| 187 |
} |
| 188 |
|
| 189 |
func (x *Program) GetUnmetRequirements() []*Program_Requirement { |
| 190 |
if x != nil { |
| 191 |
return x.UnmetRequirements |
| 192 |
} |
| 193 |
return nil |
| 194 |
} |
| 195 |
|
| 196 |
// Request message for the GetProgram method. |
| 197 |
type GetProgramRequest struct { |
| 198 |
state protoimpl.MessageState |
| 199 |
sizeCache protoimpl.SizeCache |
| 200 |
unknownFields protoimpl.UnknownFields |
| 201 |
|
| 202 |
// Required. The name of the program to retrieve. |
| 203 |
// Format: `accounts/{account}/programs/{program}` |
| 204 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 205 |
} |
| 206 |
|
| 207 |
func (x *GetProgramRequest) Reset() { |
| 208 |
*x = GetProgramRequest{} |
| 209 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[1] |
| 210 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 211 |
ms.StoreMessageInfo(mi) |
| 212 |
} |
| 213 |
|
| 214 |
func (x *GetProgramRequest) String() string { |
| 215 |
return protoimpl.X.MessageStringOf(x) |
| 216 |
} |
| 217 |
|
| 218 |
func (*GetProgramRequest) ProtoMessage() {} |
| 219 |
|
| 220 |
func (x *GetProgramRequest) ProtoReflect() protoreflect.Message { |
| 221 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[1] |
| 222 |
if x != nil { |
| 223 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 224 |
if ms.LoadMessageInfo() == nil { |
| 225 |
ms.StoreMessageInfo(mi) |
| 226 |
} |
| 227 |
return ms |
| 228 |
} |
| 229 |
return mi.MessageOf(x) |
| 230 |
} |
| 231 |
|
| 232 |
// Deprecated: Use GetProgramRequest.ProtoReflect.Descriptor instead. |
| 233 |
func (*GetProgramRequest) Descriptor() ([]byte, []int) { |
| 234 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{1} |
| 235 |
} |
| 236 |
|
| 237 |
func (x *GetProgramRequest) GetName() string { |
| 238 |
if x != nil { |
| 239 |
return x.Name |
| 240 |
} |
| 241 |
return "" |
| 242 |
} |
| 243 |
|
| 244 |
// Request message for the ListPrograms method. |
| 245 |
type ListProgramsRequest struct { |
| 246 |
state protoimpl.MessageState |
| 247 |
sizeCache protoimpl.SizeCache |
| 248 |
unknownFields protoimpl.UnknownFields |
| 249 |
|
| 250 |
// Required. The name of the account for which to retrieve all programs. |
| 251 |
// Format: `accounts/{account}` |
| 252 |
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` |
| 253 |
// Optional. The maximum number of programs to return in a single response. If |
| 254 |
// unspecified (or 0), a default size of 1000 is used. The maximum value is |
| 255 |
// 1000; values above 1000 will be coerced to 1000. |
| 256 |
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` |
| 257 |
// Optional. A continuation token, received from a previous `ListPrograms` |
| 258 |
// call. Provide this to retrieve the next page. |
| 259 |
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` |
| 260 |
} |
| 261 |
|
| 262 |
func (x *ListProgramsRequest) Reset() { |
| 263 |
*x = ListProgramsRequest{} |
| 264 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[2] |
| 265 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 266 |
ms.StoreMessageInfo(mi) |
| 267 |
} |
| 268 |
|
| 269 |
func (x *ListProgramsRequest) String() string { |
| 270 |
return protoimpl.X.MessageStringOf(x) |
| 271 |
} |
| 272 |
|
| 273 |
func (*ListProgramsRequest) ProtoMessage() {} |
| 274 |
|
| 275 |
func (x *ListProgramsRequest) ProtoReflect() protoreflect.Message { |
| 276 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[2] |
| 277 |
if x != nil { |
| 278 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 279 |
if ms.LoadMessageInfo() == nil { |
| 280 |
ms.StoreMessageInfo(mi) |
| 281 |
} |
| 282 |
return ms |
| 283 |
} |
| 284 |
return mi.MessageOf(x) |
| 285 |
} |
| 286 |
|
| 287 |
// Deprecated: Use ListProgramsRequest.ProtoReflect.Descriptor instead. |
| 288 |
func (*ListProgramsRequest) Descriptor() ([]byte, []int) { |
| 289 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{2} |
| 290 |
} |
| 291 |
|
| 292 |
func (x *ListProgramsRequest) GetParent() string { |
| 293 |
if x != nil { |
| 294 |
return x.Parent |
| 295 |
} |
| 296 |
return "" |
| 297 |
} |
| 298 |
|
| 299 |
func (x *ListProgramsRequest) GetPageSize() int32 { |
| 300 |
if x != nil { |
| 301 |
return x.PageSize |
| 302 |
} |
| 303 |
return 0 |
| 304 |
} |
| 305 |
|
| 306 |
func (x *ListProgramsRequest) GetPageToken() string { |
| 307 |
if x != nil { |
| 308 |
return x.PageToken |
| 309 |
} |
| 310 |
return "" |
| 311 |
} |
| 312 |
|
| 313 |
// Response message for the ListPrograms method. |
| 314 |
type ListProgramsResponse struct { |
| 315 |
state protoimpl.MessageState |
| 316 |
sizeCache protoimpl.SizeCache |
| 317 |
unknownFields protoimpl.UnknownFields |
| 318 |
|
| 319 |
// The programs for the given account. |
| 320 |
Programs []*Program `protobuf:"bytes,1,rep,name=programs,proto3" json:"programs,omitempty"` |
| 321 |
// A token that can be sent as `page_token` to retrieve the next page. If this |
| 322 |
// field is omitted, there are no subsequent pages. |
| 323 |
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` |
| 324 |
} |
| 325 |
|
| 326 |
func (x *ListProgramsResponse) Reset() { |
| 327 |
*x = ListProgramsResponse{} |
| 328 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[3] |
| 329 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 330 |
ms.StoreMessageInfo(mi) |
| 331 |
} |
| 332 |
|
| 333 |
func (x *ListProgramsResponse) String() string { |
| 334 |
return protoimpl.X.MessageStringOf(x) |
| 335 |
} |
| 336 |
|
| 337 |
func (*ListProgramsResponse) ProtoMessage() {} |
| 338 |
|
| 339 |
func (x *ListProgramsResponse) ProtoReflect() protoreflect.Message { |
| 340 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[3] |
| 341 |
if x != nil { |
| 342 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 343 |
if ms.LoadMessageInfo() == nil { |
| 344 |
ms.StoreMessageInfo(mi) |
| 345 |
} |
| 346 |
return ms |
| 347 |
} |
| 348 |
return mi.MessageOf(x) |
| 349 |
} |
| 350 |
|
| 351 |
// Deprecated: Use ListProgramsResponse.ProtoReflect.Descriptor instead. |
| 352 |
func (*ListProgramsResponse) Descriptor() ([]byte, []int) { |
| 353 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{3} |
| 354 |
} |
| 355 |
|
| 356 |
func (x *ListProgramsResponse) GetPrograms() []*Program { |
| 357 |
if x != nil { |
| 358 |
return x.Programs |
| 359 |
} |
| 360 |
return nil |
| 361 |
} |
| 362 |
|
| 363 |
func (x *ListProgramsResponse) GetNextPageToken() string { |
| 364 |
if x != nil { |
| 365 |
return x.NextPageToken |
| 366 |
} |
| 367 |
return "" |
| 368 |
} |
| 369 |
|
| 370 |
// Request message for the EnableProgram method. |
| 371 |
type EnableProgramRequest struct { |
| 372 |
state protoimpl.MessageState |
| 373 |
sizeCache protoimpl.SizeCache |
| 374 |
unknownFields protoimpl.UnknownFields |
| 375 |
|
| 376 |
// Required. The name of the program for which to enable participation for the |
| 377 |
// given account. Format: `accounts/{account}/programs/{program}` |
| 378 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 379 |
} |
| 380 |
|
| 381 |
func (x *EnableProgramRequest) Reset() { |
| 382 |
*x = EnableProgramRequest{} |
| 383 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[4] |
| 384 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 385 |
ms.StoreMessageInfo(mi) |
| 386 |
} |
| 387 |
|
| 388 |
func (x *EnableProgramRequest) String() string { |
| 389 |
return protoimpl.X.MessageStringOf(x) |
| 390 |
} |
| 391 |
|
| 392 |
func (*EnableProgramRequest) ProtoMessage() {} |
| 393 |
|
| 394 |
func (x *EnableProgramRequest) ProtoReflect() protoreflect.Message { |
| 395 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[4] |
| 396 |
if x != nil { |
| 397 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 398 |
if ms.LoadMessageInfo() == nil { |
| 399 |
ms.StoreMessageInfo(mi) |
| 400 |
} |
| 401 |
return ms |
| 402 |
} |
| 403 |
return mi.MessageOf(x) |
| 404 |
} |
| 405 |
|
| 406 |
// Deprecated: Use EnableProgramRequest.ProtoReflect.Descriptor instead. |
| 407 |
func (*EnableProgramRequest) Descriptor() ([]byte, []int) { |
| 408 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{4} |
| 409 |
} |
| 410 |
|
| 411 |
func (x *EnableProgramRequest) GetName() string { |
| 412 |
if x != nil { |
| 413 |
return x.Name |
| 414 |
} |
| 415 |
return "" |
| 416 |
} |
| 417 |
|
| 418 |
// Request message for the DisableProgram method. |
| 419 |
type DisableProgramRequest struct { |
| 420 |
state protoimpl.MessageState |
| 421 |
sizeCache protoimpl.SizeCache |
| 422 |
unknownFields protoimpl.UnknownFields |
| 423 |
|
| 424 |
// Required. The name of the program for which to disable participation for |
| 425 |
// the given account. Format: `accounts/{account}/programs/{program}` |
| 426 |
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 427 |
} |
| 428 |
|
| 429 |
func (x *DisableProgramRequest) Reset() { |
| 430 |
*x = DisableProgramRequest{} |
| 431 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[5] |
| 432 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 433 |
ms.StoreMessageInfo(mi) |
| 434 |
} |
| 435 |
|
| 436 |
func (x *DisableProgramRequest) String() string { |
| 437 |
return protoimpl.X.MessageStringOf(x) |
| 438 |
} |
| 439 |
|
| 440 |
func (*DisableProgramRequest) ProtoMessage() {} |
| 441 |
|
| 442 |
func (x *DisableProgramRequest) ProtoReflect() protoreflect.Message { |
| 443 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[5] |
| 444 |
if x != nil { |
| 445 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 446 |
if ms.LoadMessageInfo() == nil { |
| 447 |
ms.StoreMessageInfo(mi) |
| 448 |
} |
| 449 |
return ms |
| 450 |
} |
| 451 |
return mi.MessageOf(x) |
| 452 |
} |
| 453 |
|
| 454 |
// Deprecated: Use DisableProgramRequest.ProtoReflect.Descriptor instead. |
| 455 |
func (*DisableProgramRequest) Descriptor() ([]byte, []int) { |
| 456 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{5} |
| 457 |
} |
| 458 |
|
| 459 |
func (x *DisableProgramRequest) GetName() string { |
| 460 |
if x != nil { |
| 461 |
return x.Name |
| 462 |
} |
| 463 |
return "" |
| 464 |
} |
| 465 |
|
| 466 |
// Defines a requirement specified for participation in the program. |
| 467 |
type Program_Requirement struct { |
| 468 |
state protoimpl.MessageState |
| 469 |
sizeCache protoimpl.SizeCache |
| 470 |
unknownFields protoimpl.UnknownFields |
| 471 |
|
| 472 |
// Output only. Name of the requirement. |
| 473 |
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` |
| 474 |
// Output only. The URL of a help page describing the requirement. |
| 475 |
DocumentationUri string `protobuf:"bytes,2,opt,name=documentation_uri,json=documentationUri,proto3" json:"documentation_uri,omitempty"` |
| 476 |
// Output only. The regions that are currently affected by this requirement |
| 477 |
// not being met. |
| 478 |
// |
| 479 |
// Region codes are defined by [CLDR](https://cldr.unicode.org/). This is |
| 480 |
// either a country where the program applies specifically to that country |
| 481 |
// or `001` when the program applies globally. |
| 482 |
AffectedRegionCodes []string `protobuf:"bytes,3,rep,name=affected_region_codes,json=affectedRegionCodes,proto3" json:"affected_region_codes,omitempty"` |
| 483 |
} |
| 484 |
|
| 485 |
func (x *Program_Requirement) Reset() { |
| 486 |
*x = Program_Requirement{} |
| 487 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[6] |
| 488 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 489 |
ms.StoreMessageInfo(mi) |
| 490 |
} |
| 491 |
|
| 492 |
func (x *Program_Requirement) String() string { |
| 493 |
return protoimpl.X.MessageStringOf(x) |
| 494 |
} |
| 495 |
|
| 496 |
func (*Program_Requirement) ProtoMessage() {} |
| 497 |
|
| 498 |
func (x *Program_Requirement) ProtoReflect() protoreflect.Message { |
| 499 |
mi := &file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes[6] |
| 500 |
if x != nil { |
| 501 |
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| 502 |
if ms.LoadMessageInfo() == nil { |
| 503 |
ms.StoreMessageInfo(mi) |
| 504 |
} |
| 505 |
return ms |
| 506 |
} |
| 507 |
return mi.MessageOf(x) |
| 508 |
} |
| 509 |
|
| 510 |
// Deprecated: Use Program_Requirement.ProtoReflect.Descriptor instead. |
| 511 |
func (*Program_Requirement) Descriptor() ([]byte, []int) { |
| 512 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP(), []int{0, 0} |
| 513 |
} |
| 514 |
|
| 515 |
func (x *Program_Requirement) GetTitle() string { |
| 516 |
if x != nil { |
| 517 |
return x.Title |
| 518 |
} |
| 519 |
return "" |
| 520 |
} |
| 521 |
|
| 522 |
func (x *Program_Requirement) GetDocumentationUri() string { |
| 523 |
if x != nil { |
| 524 |
return x.DocumentationUri |
| 525 |
} |
| 526 |
return "" |
| 527 |
} |
| 528 |
|
| 529 |
func (x *Program_Requirement) GetAffectedRegionCodes() []string { |
| 530 |
if x != nil { |
| 531 |
return x.AffectedRegionCodes |
| 532 |
} |
| 533 |
return nil |
| 534 |
} |
| 535 |
|
| 536 |
var File_google_shopping_merchant_accounts_v1beta_programs_proto protoreflect.FileDescriptor |
| 537 |
|
| 538 |
var file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDesc = []byte{ |
| 539 |
0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, |
| 540 |
0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, |
| 541 |
0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x70, 0x72, 0x6f, 0x67, 0x72, |
| 542 |
0x61, 0x6d, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x28, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 543 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, |
| 544 |
0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, |
| 545 |
0x65, 0x74, 0x61, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, |
| 546 |
0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, |
| 547 |
0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, |
| 548 |
0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, |
| 549 |
0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, |
| 550 |
0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, |
| 551 |
0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, |
| 552 |
0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x05, 0x0a, 0x07, 0x50, 0x72, 0x6f, 0x67, 0x72, |
| 553 |
0x61, 0x6d, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, |
| 554 |
0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x30, 0x0a, 0x11, 0x64, |
| 555 |
0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x69, |
| 556 |
0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x64, 0x6f, 0x63, |
| 557 |
0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x12, 0x52, 0x0a, |
| 558 |
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x37, 0x2e, 0x67, |
| 559 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, |
| 560 |
0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, |
| 561 |
0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x2e, |
| 562 |
0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, |
| 563 |
0x65, 0x12, 0x33, 0x0a, 0x13, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x5f, 0x72, 0x65, 0x67, 0x69, |
| 564 |
0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, |
| 565 |
0xe0, 0x41, 0x03, 0x52, 0x11, 0x61, 0x63, 0x74, 0x69, 0x76, 0x65, 0x52, 0x65, 0x67, 0x69, 0x6f, |
| 566 |
0x6e, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x71, 0x0a, 0x12, 0x75, 0x6e, 0x6d, 0x65, 0x74, 0x5f, |
| 567 |
0x72, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x05, 0x20, 0x03, |
| 568 |
0x28, 0x0b, 0x32, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, |
| 569 |
0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, |
| 570 |
0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, |
| 571 |
0x6f, 0x67, 0x72, 0x61, 0x6d, 0x2e, 0x52, 0x65, 0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, |
| 572 |
0x74, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x11, 0x75, 0x6e, 0x6d, 0x65, 0x74, 0x52, 0x65, 0x71, |
| 573 |
0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x1a, 0x93, 0x01, 0x0a, 0x0b, 0x52, 0x65, |
| 574 |
0x71, 0x75, 0x69, 0x72, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, |
| 575 |
0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x05, 0x74, |
| 576 |
0x69, 0x74, 0x6c, 0x65, 0x12, 0x30, 0x0a, 0x11, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, |
| 577 |
0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x75, 0x72, 0x69, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, |
| 578 |
0x03, 0xe0, 0x41, 0x03, 0x52, 0x10, 0x64, 0x6f, 0x63, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61, 0x74, |
| 579 |
0x69, 0x6f, 0x6e, 0x55, 0x72, 0x69, 0x12, 0x37, 0x0a, 0x15, 0x61, 0x66, 0x66, 0x65, 0x63, 0x74, |
| 580 |
0x65, 0x64, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x73, 0x18, |
| 581 |
0x03, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x52, 0x13, 0x61, 0x66, 0x66, 0x65, |
| 582 |
0x63, 0x74, 0x65, 0x64, 0x52, 0x65, 0x67, 0x69, 0x6f, 0x6e, 0x43, 0x6f, 0x64, 0x65, 0x73, 0x22, |
| 583 |
0x4b, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54, |
| 584 |
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, |
| 585 |
0x10, 0x0a, 0x0c, 0x4e, 0x4f, 0x54, 0x5f, 0x45, 0x4c, 0x49, 0x47, 0x49, 0x42, 0x4c, 0x45, 0x10, |
| 586 |
0x01, 0x12, 0x0c, 0x0a, 0x08, 0x45, 0x4c, 0x49, 0x47, 0x49, 0x42, 0x4c, 0x45, 0x10, 0x02, 0x12, |
| 587 |
0x0b, 0x0a, 0x07, 0x45, 0x4e, 0x41, 0x42, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x3a, 0x61, 0xea, 0x41, |
| 588 |
0x5e, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, |
| 589 |
0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, |
| 590 |
0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x25, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, |
| 591 |
0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, |
| 592 |
0x6d, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x7d, 0x2a, 0x08, 0x70, 0x72, |
| 593 |
0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x32, 0x07, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, |
| 594 |
0x53, 0x0a, 0x11, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x71, |
| 595 |
0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, |
| 596 |
0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, |
| 597 |
0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, |
| 598 |
0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x04, |
| 599 |
0x6e, 0x61, 0x6d, 0x65, 0x22, 0x9f, 0x01, 0x0a, 0x13, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, |
| 600 |
0x67, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, |
| 601 |
0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, |
| 602 |
0x02, 0xfa, 0x41, 0x24, 0x12, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, |
| 603 |
0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, |
| 604 |
0x2f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, |
| 605 |
0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, |
| 606 |
0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, |
| 607 |
0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, |
| 608 |
0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, |
| 609 |
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x8d, 0x01, 0x0a, 0x14, 0x4c, 0x69, 0x73, 0x74, 0x50, |
| 610 |
0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, |
| 611 |
0x4d, 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, |
| 612 |
0x0b, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, |
| 613 |
0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, |
| 614 |
0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, |
| 615 |
0x67, 0x72, 0x61, 0x6d, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x26, |
| 616 |
0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, |
| 617 |
0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, |
| 618 |
0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x56, 0x0a, 0x14, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, |
| 619 |
0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, |
| 620 |
0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, |
| 621 |
0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, |
| 622 |
0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, |
| 623 |
0x2f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x57, |
| 624 |
0x0a, 0x15, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, |
| 625 |
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3e, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, |
| 626 |
0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, |
| 627 |
0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 628 |
0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, |
| 629 |
0x6d, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x32, 0x84, 0x07, 0x0a, 0x0f, 0x50, 0x72, 0x6f, 0x67, |
| 630 |
0x72, 0x61, 0x6d, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xba, 0x01, 0x0a, 0x0a, |
| 631 |
0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, |
| 632 |
0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, |
| 633 |
0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, |
| 634 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x47, 0x65, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, |
| 635 |
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, |
| 636 |
0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, |
| 637 |
0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, |
| 638 |
0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x3c, 0xda, 0x41, 0x04, 0x6e, |
| 639 |
0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x61, 0x63, 0x63, 0x6f, |
| 640 |
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, |
| 641 |
0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, |
| 642 |
0x67, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xcd, 0x01, 0x0a, 0x0c, 0x4c, 0x69, 0x73, |
| 643 |
0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x12, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 644 |
0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, |
| 645 |
0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, |
| 646 |
0x62, 0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, |
| 647 |
0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 648 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, |
| 649 |
0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, |
| 650 |
0x65, 0x74, 0x61, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, |
| 651 |
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3e, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, |
| 652 |
0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2f, 0x12, 0x2d, 0x2f, 0x61, 0x63, 0x63, 0x6f, |
| 653 |
0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x7b, 0x70, 0x61, 0x72, |
| 654 |
0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, |
| 655 |
0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x12, 0xca, 0x01, 0x0a, 0x0d, 0x45, 0x6e, 0x61, |
| 656 |
0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x3e, 0x2e, 0x67, 0x6f, 0x6f, |
| 657 |
0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, |
| 658 |
0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, |
| 659 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x45, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x67, |
| 660 |
0x72, 0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, |
| 661 |
0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, |
| 662 |
0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, |
| 663 |
0x31, 0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x46, 0xda, |
| 664 |
0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x39, 0x3a, 0x01, 0x2a, 0x22, |
| 665 |
0x34, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, |
| 666 |
0x61, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, |
| 667 |
0x2f, 0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x65, |
| 668 |
0x6e, 0x61, 0x62, 0x6c, 0x65, 0x12, 0xcd, 0x01, 0x0a, 0x0e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, |
| 669 |
0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x12, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, |
| 670 |
0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, |
| 671 |
0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, |
| 672 |
0x65, 0x74, 0x61, 0x2e, 0x44, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x50, 0x72, 0x6f, 0x67, 0x72, |
| 673 |
0x61, 0x6d, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, |
| 674 |
0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, |
| 675 |
0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, |
| 676 |
0x62, 0x65, 0x74, 0x61, 0x2e, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x22, 0x47, 0xda, 0x41, |
| 677 |
0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x3a, 0x3a, 0x01, 0x2a, 0x22, 0x35, |
| 678 |
0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, |
| 679 |
0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, |
| 680 |
0x2a, 0x2f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x2f, 0x2a, 0x7d, 0x3a, 0x64, 0x69, |
| 681 |
0x73, 0x61, 0x62, 0x6c, 0x65, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, |
| 682 |
0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, |
| 683 |
0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, |
| 684 |
0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, |
| 685 |
0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x8f, |
| 686 |
0x01, 0x0a, 0x2c, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, |
| 687 |
0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, |
| 688 |
0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x42, |
| 689 |
0x0d, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x61, 0x6d, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, |
| 690 |
0x5a, 0x4e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, |
| 691 |
0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, |
| 692 |
0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, |
| 693 |
0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, |
| 694 |
0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, |
| 695 |
0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, |
| 696 |
} |
| 697 |
|
| 698 |
var ( |
| 699 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescOnce sync.Once |
| 700 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescData = file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDesc |
| 701 |
) |
| 702 |
|
| 703 |
func file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescGZIP() []byte { |
| 704 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescOnce.Do(func() { |
| 705 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescData) |
| 706 |
}) |
| 707 |
return file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDescData |
| 708 |
} |
| 709 |
|
| 710 |
var file_google_shopping_merchant_accounts_v1beta_programs_proto_enumTypes = make([]protoimpl.EnumInfo, 1) |
| 711 |
var file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes = make([]protoimpl.MessageInfo, 7) |
| 712 |
var file_google_shopping_merchant_accounts_v1beta_programs_proto_goTypes = []any{ |
| 713 |
(Program_State)(0), // 0: google.shopping.merchant.accounts.v1beta.Program.State |
| 714 |
(*Program)(nil), // 1: google.shopping.merchant.accounts.v1beta.Program |
| 715 |
(*GetProgramRequest)(nil), // 2: google.shopping.merchant.accounts.v1beta.GetProgramRequest |
| 716 |
(*ListProgramsRequest)(nil), // 3: google.shopping.merchant.accounts.v1beta.ListProgramsRequest |
| 717 |
(*ListProgramsResponse)(nil), // 4: google.shopping.merchant.accounts.v1beta.ListProgramsResponse |
| 718 |
(*EnableProgramRequest)(nil), // 5: google.shopping.merchant.accounts.v1beta.EnableProgramRequest |
| 719 |
(*DisableProgramRequest)(nil), // 6: google.shopping.merchant.accounts.v1beta.DisableProgramRequest |
| 720 |
(*Program_Requirement)(nil), // 7: google.shopping.merchant.accounts.v1beta.Program.Requirement |
| 721 |
} |
| 722 |
var file_google_shopping_merchant_accounts_v1beta_programs_proto_depIdxs = []int32{ |
| 723 |
0, // 0: google.shopping.merchant.accounts.v1beta.Program.state:type_name -> google.shopping.merchant.accounts.v1beta.Program.State |
| 724 |
7, // 1: google.shopping.merchant.accounts.v1beta.Program.unmet_requirements:type_name -> google.shopping.merchant.accounts.v1beta.Program.Requirement |
| 725 |
1, // 2: google.shopping.merchant.accounts.v1beta.ListProgramsResponse.programs:type_name -> google.shopping.merchant.accounts.v1beta.Program |
| 726 |
2, // 3: google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgram:input_type -> google.shopping.merchant.accounts.v1beta.GetProgramRequest |
| 727 |
3, // 4: google.shopping.merchant.accounts.v1beta.ProgramsService.ListPrograms:input_type -> google.shopping.merchant.accounts.v1beta.ListProgramsRequest |
| 728 |
5, // 5: google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgram:input_type -> google.shopping.merchant.accounts.v1beta.EnableProgramRequest |
| 729 |
6, // 6: google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgram:input_type -> google.shopping.merchant.accounts.v1beta.DisableProgramRequest |
| 730 |
1, // 7: google.shopping.merchant.accounts.v1beta.ProgramsService.GetProgram:output_type -> google.shopping.merchant.accounts.v1beta.Program |
| 731 |
4, // 8: google.shopping.merchant.accounts.v1beta.ProgramsService.ListPrograms:output_type -> google.shopping.merchant.accounts.v1beta.ListProgramsResponse |
| 732 |
1, // 9: google.shopping.merchant.accounts.v1beta.ProgramsService.EnableProgram:output_type -> google.shopping.merchant.accounts.v1beta.Program |
| 733 |
1, // 10: google.shopping.merchant.accounts.v1beta.ProgramsService.DisableProgram:output_type -> google.shopping.merchant.accounts.v1beta.Program |
| 734 |
7, // [7:11] is the sub-list for method output_type |
| 735 |
3, // [3:7] is the sub-list for method input_type |
| 736 |
3, // [3:3] is the sub-list for extension type_name |
| 737 |
3, // [3:3] is the sub-list for extension extendee |
| 738 |
0, // [0:3] is the sub-list for field type_name |
| 739 |
} |
| 740 |
|
| 741 |
func init() { file_google_shopping_merchant_accounts_v1beta_programs_proto_init() } |
| 742 |
func file_google_shopping_merchant_accounts_v1beta_programs_proto_init() { |
| 743 |
if File_google_shopping_merchant_accounts_v1beta_programs_proto != nil { |
| 744 |
return |
| 745 |
} |
| 746 |
type x struct{} |
| 747 |
out := protoimpl.TypeBuilder{ |
| 748 |
File: protoimpl.DescBuilder{ |
| 749 |
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| 750 |
RawDescriptor: file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDesc, |
| 751 |
NumEnums: 1, |
| 752 |
NumMessages: 7, |
| 753 |
NumExtensions: 0, |
| 754 |
NumServices: 1, |
| 755 |
}, |
| 756 |
GoTypes: file_google_shopping_merchant_accounts_v1beta_programs_proto_goTypes, |
| 757 |
DependencyIndexes: file_google_shopping_merchant_accounts_v1beta_programs_proto_depIdxs, |
| 758 |
EnumInfos: file_google_shopping_merchant_accounts_v1beta_programs_proto_enumTypes, |
| 759 |
MessageInfos: file_google_shopping_merchant_accounts_v1beta_programs_proto_msgTypes, |
| 760 |
}.Build() |
| 761 |
File_google_shopping_merchant_accounts_v1beta_programs_proto = out.File |
| 762 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_rawDesc = nil |
| 763 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_goTypes = nil |
| 764 |
file_google_shopping_merchant_accounts_v1beta_programs_proto_depIdxs = nil |
| 765 |
} |
| 766 |
|
| 767 |
// Reference imports to suppress errors if they are not otherwise used. |
| 768 |
var _ context.Context |
| 769 |
var _ grpc.ClientConnInterface |
| 770 |
|
| 771 |
// This is a compile-time assertion to ensure that this generated file |
| 772 |
// is compatible with the grpc package it is being compiled against. |
| 773 |
const _ = grpc.SupportPackageIsVersion6 |
| 774 |
|
| 775 |
// ProgramsServiceClient is the client API for ProgramsService service. |
| 776 |
// |
| 777 |
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 778 |
type ProgramsServiceClient interface { |
| 779 |
// Retrieves the specified program for the account. |
| 780 |
GetProgram(ctx context.Context, in *GetProgramRequest, opts ...grpc.CallOption) (*Program, error) |
| 781 |
// Retrieves all programs for the account. |
| 782 |
ListPrograms(ctx context.Context, in *ListProgramsRequest, opts ...grpc.CallOption) (*ListProgramsResponse, error) |
| 783 |
// Enable participation in the specified program for the account. Executing |
| 784 |
// this method requires admin access. |
| 785 |
EnableProgram(ctx context.Context, in *EnableProgramRequest, opts ...grpc.CallOption) (*Program, error) |
| 786 |
// Disable participation in the specified program for the account. Executing |
| 787 |
// this method requires admin access. |
| 788 |
DisableProgram(ctx context.Context, in *DisableProgramRequest, opts ...grpc.CallOption) (*Program, error) |
| 789 |
} |
| 790 |
|
| 791 |
type programsServiceClient struct { |
| 792 |
cc grpc.ClientConnInterface |
| 793 |
} |
| 794 |
|
| 795 |
func NewProgramsServiceClient(cc grpc.ClientConnInterface) ProgramsServiceClient { |
| 796 |
return &programsServiceClient{cc} |
| 797 |
} |
| 798 |
|
| 799 |
func (c *programsServiceClient) GetProgram(ctx context.Context, in *GetProgramRequest, opts ...grpc.CallOption) (*Program, error) { |
| 800 |
out := new(Program) |
| 801 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.ProgramsService/GetProgram", in, out, opts...) |
| 802 |
if err != nil { |
| 803 |
return nil, err |
| 804 |
} |
| 805 |
return out, nil |
| 806 |
} |
| 807 |
|
| 808 |
func (c *programsServiceClient) ListPrograms(ctx context.Context, in *ListProgramsRequest, opts ...grpc.CallOption) (*ListProgramsResponse, error) { |
| 809 |
out := new(ListProgramsResponse) |
| 810 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.ProgramsService/ListPrograms", in, out, opts...) |
| 811 |
if err != nil { |
| 812 |
return nil, err |
| 813 |
} |
| 814 |
return out, nil |
| 815 |
} |
| 816 |
|
| 817 |
func (c *programsServiceClient) EnableProgram(ctx context.Context, in *EnableProgramRequest, opts ...grpc.CallOption) (*Program, error) { |
| 818 |
out := new(Program) |
| 819 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.ProgramsService/EnableProgram", in, out, opts...) |
| 820 |
if err != nil { |
| 821 |
return nil, err |
| 822 |
} |
| 823 |
return out, nil |
| 824 |
} |
| 825 |
|
| 826 |
func (c *programsServiceClient) DisableProgram(ctx context.Context, in *DisableProgramRequest, opts ...grpc.CallOption) (*Program, error) { |
| 827 |
out := new(Program) |
| 828 |
err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1beta.ProgramsService/DisableProgram", in, out, opts...) |
| 829 |
if err != nil { |
| 830 |
return nil, err |
| 831 |
} |
| 832 |
return out, nil |
| 833 |
} |
| 834 |
|
| 835 |
// ProgramsServiceServer is the server API for ProgramsService service. |
| 836 |
type ProgramsServiceServer interface { |
| 837 |
// Retrieves the specified program for the account. |
| 838 |
GetProgram(context.Context, *GetProgramRequest) (*Program, error) |
| 839 |
// Retrieves all programs for the account. |
| 840 |
ListPrograms(context.Context, *ListProgramsRequest) (*ListProgramsResponse, error) |
| 841 |
// Enable participation in the specified program for the account. Executing |
| 842 |
// this method requires admin access. |
| 843 |
EnableProgram(context.Context, *EnableProgramRequest) (*Program, error) |
| 844 |
// Disable participation in the specified program for the account. Executing |
| 845 |
// this method requires admin access. |
| 846 |
DisableProgram(context.Context, *DisableProgramRequest) (*Program, error) |
| 847 |
} |
| 848 |
|
| 849 |
// UnimplementedProgramsServiceServer can be embedded to have forward compatible implementations. |
| 850 |
type UnimplementedProgramsServiceServer struct { |
| 851 |
} |
| 852 |
|
| 853 |
func (*UnimplementedProgramsServiceServer) GetProgram(context.Context, *GetProgramRequest) (*Program, error) { |
| 854 |
return nil, status.Errorf(codes.Unimplemented, "method GetProgram not implemented") |
| 855 |
} |
| 856 |
func (*UnimplementedProgramsServiceServer) ListPrograms(context.Context, *ListProgramsRequest) (*ListProgramsResponse, error) { |
| 857 |
return nil, status.Errorf(codes.Unimplemented, "method ListPrograms not implemented") |
| 858 |
} |
| 859 |
func (*UnimplementedProgramsServiceServer) EnableProgram(context.Context, *EnableProgramRequest) (*Program, error) { |
| 860 |
return nil, status.Errorf(codes.Unimplemented, "method EnableProgram not implemented") |
| 861 |
} |
| 862 |
func (*UnimplementedProgramsServiceServer) DisableProgram(context.Context, *DisableProgramRequest) (*Program, error) { |
| 863 |
return nil, status.Errorf(codes.Unimplemented, "method DisableProgram not implemented") |
| 864 |
} |
| 865 |
|
| 866 |
func RegisterProgramsServiceServer(s *grpc.Server, srv ProgramsServiceServer) { |
| 867 |
s.RegisterService(&_ProgramsService_serviceDesc, srv) |
| 868 |
} |
| 869 |
|
| 870 |
func _ProgramsService_GetProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 871 |
in := new(GetProgramRequest) |
| 872 |
if err := dec(in); err != nil { |
| 873 |
return nil, err |
| 874 |
} |
| 875 |
if interceptor == nil { |
| 876 |
return srv.(ProgramsServiceServer).GetProgram(ctx, in) |
| 877 |
} |
| 878 |
info := &grpc.UnaryServerInfo{ |
| 879 |
Server: srv, |
| 880 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.ProgramsService/GetProgram", |
| 881 |
} |
| 882 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 883 |
return srv.(ProgramsServiceServer).GetProgram(ctx, req.(*GetProgramRequest)) |
| 884 |
} |
| 885 |
return interceptor(ctx, in, info, handler) |
| 886 |
} |
| 887 |
|
| 888 |
func _ProgramsService_ListPrograms_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 889 |
in := new(ListProgramsRequest) |
| 890 |
if err := dec(in); err != nil { |
| 891 |
return nil, err |
| 892 |
} |
| 893 |
if interceptor == nil { |
| 894 |
return srv.(ProgramsServiceServer).ListPrograms(ctx, in) |
| 895 |
} |
| 896 |
info := &grpc.UnaryServerInfo{ |
| 897 |
Server: srv, |
| 898 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.ProgramsService/ListPrograms", |
| 899 |
} |
| 900 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 901 |
return srv.(ProgramsServiceServer).ListPrograms(ctx, req.(*ListProgramsRequest)) |
| 902 |
} |
| 903 |
return interceptor(ctx, in, info, handler) |
| 904 |
} |
| 905 |
|
| 906 |
func _ProgramsService_EnableProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 907 |
in := new(EnableProgramRequest) |
| 908 |
if err := dec(in); err != nil { |
| 909 |
return nil, err |
| 910 |
} |
| 911 |
if interceptor == nil { |
| 912 |
return srv.(ProgramsServiceServer).EnableProgram(ctx, in) |
| 913 |
} |
| 914 |
info := &grpc.UnaryServerInfo{ |
| 915 |
Server: srv, |
| 916 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.ProgramsService/EnableProgram", |
| 917 |
} |
| 918 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 919 |
return srv.(ProgramsServiceServer).EnableProgram(ctx, req.(*EnableProgramRequest)) |
| 920 |
} |
| 921 |
return interceptor(ctx, in, info, handler) |
| 922 |
} |
| 923 |
|
| 924 |
func _ProgramsService_DisableProgram_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 925 |
in := new(DisableProgramRequest) |
| 926 |
if err := dec(in); err != nil { |
| 927 |
return nil, err |
| 928 |
} |
| 929 |
if interceptor == nil { |
| 930 |
return srv.(ProgramsServiceServer).DisableProgram(ctx, in) |
| 931 |
} |
| 932 |
info := &grpc.UnaryServerInfo{ |
| 933 |
Server: srv, |
| 934 |
FullMethod: "/google.shopping.merchant.accounts.v1beta.ProgramsService/DisableProgram", |
| 935 |
} |
| 936 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 937 |
return srv.(ProgramsServiceServer).DisableProgram(ctx, req.(*DisableProgramRequest)) |
| 938 |
} |
| 939 |
return interceptor(ctx, in, info, handler) |
| 940 |
} |
| 941 |
|
| 942 |
var _ProgramsService_serviceDesc = grpc.ServiceDesc{ |
| 943 |
ServiceName: "google.shopping.merchant.accounts.v1beta.ProgramsService", |
| 944 |
HandlerType: (*ProgramsServiceServer)(nil), |
| 945 |
Methods: []grpc.MethodDesc{ |
| 946 |
{ |
| 947 |
MethodName: "GetProgram", |
| 948 |
Handler: _ProgramsService_GetProgram_Handler, |
| 949 |
}, |
| 950 |
{ |
| 951 |
MethodName: "ListPrograms", |
| 952 |
Handler: _ProgramsService_ListPrograms_Handler, |
| 953 |
}, |
| 954 |
{ |
| 955 |
MethodName: "EnableProgram", |
| 956 |
Handler: _ProgramsService_EnableProgram_Handler, |
| 957 |
}, |
| 958 |
{ |
| 959 |
MethodName: "DisableProgram", |
| 960 |
Handler: _ProgramsService_DisableProgram_Handler, |
| 961 |
}, |
| 962 |
}, |
| 963 |
Streams: []grpc.StreamDesc{}, |
| 964 |
Metadata: "google/shopping/merchant/accounts/v1beta/programs.proto", |
| 965 |
} |