// Copyright 2025 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.35.2 // protoc v4.25.7 // source: google/shopping/merchant/accounts/v1/gbpaccounts.proto package accountspb import ( context "context" _ "google.golang.org/genproto/googleapis/api/annotations" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" emptypb "google.golang.org/protobuf/types/known/emptypb" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // The type of the GBP account. type GbpAccount_Type int32 const ( // Default value. This value is unused. GbpAccount_TYPE_UNSPECIFIED GbpAccount_Type = 0 // The GBP account is a user account. GbpAccount_USER GbpAccount_Type = 1 // The GBP account is a business account. GbpAccount_BUSINESS_ACCOUNT GbpAccount_Type = 2 ) // Enum value maps for GbpAccount_Type. var ( GbpAccount_Type_name = map[int32]string{ 0: "TYPE_UNSPECIFIED", 1: "USER", 2: "BUSINESS_ACCOUNT", } GbpAccount_Type_value = map[string]int32{ "TYPE_UNSPECIFIED": 0, "USER": 1, "BUSINESS_ACCOUNT": 2, } ) func (x GbpAccount_Type) Enum() *GbpAccount_Type { p := new(GbpAccount_Type) *p = x return p } func (x GbpAccount_Type) String() string { return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) } func (GbpAccount_Type) Descriptor() protoreflect.EnumDescriptor { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes[0].Descriptor() } func (GbpAccount_Type) Type() protoreflect.EnumType { return &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes[0] } func (x GbpAccount_Type) Number() protoreflect.EnumNumber { return protoreflect.EnumNumber(x) } // Deprecated: Use GbpAccount_Type.Descriptor instead. func (GbpAccount_Type) EnumDescriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{0, 0} } // Collection of information related to a Google Business Profile (GBP) account. type GbpAccount struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Identifier. The resource name of the GBP account. Format: // `accounts/{account}/gbpAccount/{gbp_account}` Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The id of the GBP account. GbpAccountId string `protobuf:"bytes,2,opt,name=gbp_account_id,json=gbpAccountId,proto3" json:"gbp_account_id,omitempty"` // The type of the Business Profile. Type GbpAccount_Type `protobuf:"varint,3,opt,name=type,proto3,enum=google.shopping.merchant.accounts.v1.GbpAccount_Type" json:"type,omitempty"` // The name of the Business Profile. // For personal accounts: Email id of the owner. // For Business accounts: Name of the Business Account. GbpAccountName string `protobuf:"bytes,5,opt,name=gbp_account_name,json=gbpAccountName,proto3" json:"gbp_account_name,omitempty"` // Number of listings under this account. ListingCount int64 `protobuf:"varint,6,opt,name=listing_count,json=listingCount,proto3" json:"listing_count,omitempty"` } func (x *GbpAccount) Reset() { *x = GbpAccount{} mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *GbpAccount) String() string { return protoimpl.X.MessageStringOf(x) } func (*GbpAccount) ProtoMessage() {} func (x *GbpAccount) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[0] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use GbpAccount.ProtoReflect.Descriptor instead. func (*GbpAccount) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{0} } func (x *GbpAccount) GetName() string { if x != nil { return x.Name } return "" } func (x *GbpAccount) GetGbpAccountId() string { if x != nil { return x.GbpAccountId } return "" } func (x *GbpAccount) GetType() GbpAccount_Type { if x != nil { return x.Type } return GbpAccount_TYPE_UNSPECIFIED } func (x *GbpAccount) GetGbpAccountName() string { if x != nil { return x.GbpAccountName } return "" } func (x *GbpAccount) GetListingCount() int64 { if x != nil { return x.ListingCount } return 0 } // Request message for the ListGbpAccounts method. type ListGbpAccountsRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The name of the parent resource under which the GBP accounts are // listed. Format: `accounts/{account}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Optional. The maximum number of `GbpAccount` resources to return. The // service returns fewer than this value if the number of gbp accounts is less // that than the `pageSize`. The default value is 50. The maximum value is // 1000; If a value higher than the maximum is specified, then the `pageSize` // will default to the maximum. PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // Optional. A page token, received from a previous `ListGbpAccounts` call. // Provide the page token to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListGbpAccounts` must // match the call that provided the page token. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` } func (x *ListGbpAccountsRequest) Reset() { *x = ListGbpAccountsRequest{} mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListGbpAccountsRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListGbpAccountsRequest) ProtoMessage() {} func (x *ListGbpAccountsRequest) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[1] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListGbpAccountsRequest.ProtoReflect.Descriptor instead. func (*ListGbpAccountsRequest) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{1} } func (x *ListGbpAccountsRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *ListGbpAccountsRequest) GetPageSize() int32 { if x != nil { return x.PageSize } return 0 } func (x *ListGbpAccountsRequest) GetPageToken() string { if x != nil { return x.PageToken } return "" } // Response message for the ListGbpAccounts method. type ListGbpAccountsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // The GBP accounts from the specified merchant in the specified country. GbpAccounts []*GbpAccount `protobuf:"bytes,1,rep,name=gbp_accounts,json=gbpAccounts,proto3" json:"gbp_accounts,omitempty"` // A token, which can be sent as `page_token` to retrieve the next page. // If this field is omitted, there are no subsequent pages. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` } func (x *ListGbpAccountsResponse) Reset() { *x = ListGbpAccountsResponse{} mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *ListGbpAccountsResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*ListGbpAccountsResponse) ProtoMessage() {} func (x *ListGbpAccountsResponse) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[2] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use ListGbpAccountsResponse.ProtoReflect.Descriptor instead. func (*ListGbpAccountsResponse) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{2} } func (x *ListGbpAccountsResponse) GetGbpAccounts() []*GbpAccount { if x != nil { return x.GbpAccounts } return nil } func (x *ListGbpAccountsResponse) GetNextPageToken() string { if x != nil { return x.NextPageToken } return "" } // Request message for the LinkGbpAccount method. type LinkGbpAccountRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Required. The name of the parent resource to which the GBP account is // linked. Format: `accounts/{account}`. Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` // Required. The email address of the Business Profile account. GbpEmail string `protobuf:"bytes,2,opt,name=gbp_email,json=gbpEmail,proto3" json:"gbp_email,omitempty"` } func (x *LinkGbpAccountRequest) Reset() { *x = LinkGbpAccountRequest{} mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LinkGbpAccountRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*LinkGbpAccountRequest) ProtoMessage() {} func (x *LinkGbpAccountRequest) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[3] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use LinkGbpAccountRequest.ProtoReflect.Descriptor instead. func (*LinkGbpAccountRequest) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{3} } func (x *LinkGbpAccountRequest) GetParent() string { if x != nil { return x.Parent } return "" } func (x *LinkGbpAccountRequest) GetGbpEmail() string { if x != nil { return x.GbpEmail } return "" } // Response message for the LinkGbpAccount method. type LinkGbpAccountResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields // Empty response. Response *emptypb.Empty `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"` } func (x *LinkGbpAccountResponse) Reset() { *x = LinkGbpAccountResponse{} mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } func (x *LinkGbpAccountResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*LinkGbpAccountResponse) ProtoMessage() {} func (x *LinkGbpAccountResponse) ProtoReflect() protoreflect.Message { mi := &file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes[4] if x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use LinkGbpAccountResponse.ProtoReflect.Descriptor instead. func (*LinkGbpAccountResponse) Descriptor() ([]byte, []int) { return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP(), []int{4} } func (x *LinkGbpAccountResponse) GetResponse() *emptypb.Empty { if x != nil { return x.Response } return nil } var File_google_shopping_merchant_accounts_v1_gbpaccounts_proto protoreflect.FileDescriptor var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc = []byte{ 0x0a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x67, 0x62, 0x70, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x96, 0x03, 0x0a, 0x0a, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x24, 0x0a, 0x0e, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x49, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x2e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x28, 0x0a, 0x10, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x23, 0x0a, 0x0d, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x6c, 0x69, 0x73, 0x74, 0x69, 0x6e, 0x67, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x3c, 0x0a, 0x04, 0x54, 0x79, 0x70, 0x65, 0x12, 0x14, 0x0a, 0x10, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x08, 0x0a, 0x04, 0x55, 0x53, 0x45, 0x52, 0x10, 0x01, 0x12, 0x14, 0x0a, 0x10, 0x42, 0x55, 0x53, 0x49, 0x4e, 0x45, 0x53, 0x53, 0x5f, 0x41, 0x43, 0x43, 0x4f, 0x55, 0x4e, 0x54, 0x10, 0x02, 0x3a, 0x71, 0xea, 0x41, 0x6e, 0x0a, 0x25, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x2c, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2a, 0x0b, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x32, 0x0a, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xa2, 0x01, 0x0a, 0x16, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x22, 0x0a, 0x0a, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x96, 0x01, 0x0a, 0x17, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0c, 0x67, 0x62, 0x70, 0x5f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x0b, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65, 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x7d, 0x0a, 0x15, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x42, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2a, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x24, 0x0a, 0x22, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12, 0x20, 0x0a, 0x09, 0x67, 0x62, 0x70, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x08, 0x67, 0x62, 0x70, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x4c, 0x0a, 0x16, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x8c, 0x04, 0x0a, 0x12, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xcd, 0x01, 0x0a, 0x0f, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x3d, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2e, 0x12, 0x2c, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x12, 0xdc, 0x01, 0x0a, 0x0e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x4f, 0xda, 0x41, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x40, 0x3a, 0x01, 0x2a, 0x22, 0x3b, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x67, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x6c, 0x69, 0x6e, 0x6b, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x83, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x47, 0x62, 0x70, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescOnce sync.Once file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData = file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc ) func file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescGZIP() []byte { file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescOnce.Do(func() { file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData) }) return file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDescData } var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes = make([]protoimpl.MessageInfo, 5) var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes = []any{ (GbpAccount_Type)(0), // 0: google.shopping.merchant.accounts.v1.GbpAccount.Type (*GbpAccount)(nil), // 1: google.shopping.merchant.accounts.v1.GbpAccount (*ListGbpAccountsRequest)(nil), // 2: google.shopping.merchant.accounts.v1.ListGbpAccountsRequest (*ListGbpAccountsResponse)(nil), // 3: google.shopping.merchant.accounts.v1.ListGbpAccountsResponse (*LinkGbpAccountRequest)(nil), // 4: google.shopping.merchant.accounts.v1.LinkGbpAccountRequest (*LinkGbpAccountResponse)(nil), // 5: google.shopping.merchant.accounts.v1.LinkGbpAccountResponse (*emptypb.Empty)(nil), // 6: google.protobuf.Empty } var file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs = []int32{ 0, // 0: google.shopping.merchant.accounts.v1.GbpAccount.type:type_name -> google.shopping.merchant.accounts.v1.GbpAccount.Type 1, // 1: google.shopping.merchant.accounts.v1.ListGbpAccountsResponse.gbp_accounts:type_name -> google.shopping.merchant.accounts.v1.GbpAccount 6, // 2: google.shopping.merchant.accounts.v1.LinkGbpAccountResponse.response:type_name -> google.protobuf.Empty 2, // 3: google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts:input_type -> google.shopping.merchant.accounts.v1.ListGbpAccountsRequest 4, // 4: google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount:input_type -> google.shopping.merchant.accounts.v1.LinkGbpAccountRequest 3, // 5: google.shopping.merchant.accounts.v1.GbpAccountsService.ListGbpAccounts:output_type -> google.shopping.merchant.accounts.v1.ListGbpAccountsResponse 5, // 6: google.shopping.merchant.accounts.v1.GbpAccountsService.LinkGbpAccount:output_type -> google.shopping.merchant.accounts.v1.LinkGbpAccountResponse 5, // [5:7] is the sub-list for method output_type 3, // [3:5] is the sub-list for method input_type 3, // [3:3] is the sub-list for extension type_name 3, // [3:3] is the sub-list for extension extendee 0, // [0:3] is the sub-list for field type_name } func init() { file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_init() } func file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_init() { if File_google_shopping_merchant_accounts_v1_gbpaccounts_proto != nil { return } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc, NumEnums: 1, NumMessages: 5, NumExtensions: 0, NumServices: 1, }, GoTypes: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes, DependencyIndexes: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs, EnumInfos: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_enumTypes, MessageInfos: file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_msgTypes, }.Build() File_google_shopping_merchant_accounts_v1_gbpaccounts_proto = out.File file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_rawDesc = nil file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_goTypes = nil file_google_shopping_merchant_accounts_v1_gbpaccounts_proto_depIdxs = nil } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context var _ grpc.ClientConnInterface // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. const _ = grpc.SupportPackageIsVersion6 // GbpAccountsServiceClient is the client API for GbpAccountsService service. // // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type GbpAccountsServiceClient interface { // List the GBP accounts for a given merchant. ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error) // Link the specified merchant to a GBP account for all countries. // // To run this method, you must have admin access to the Merchant Center // account. If you don't have admin access, the request fails with the error // message `User is not an administrator of account {ACCOUNT_ID}`. LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error) } type gbpAccountsServiceClient struct { cc grpc.ClientConnInterface } func NewGbpAccountsServiceClient(cc grpc.ClientConnInterface) GbpAccountsServiceClient { return &gbpAccountsServiceClient{cc} } func (c *gbpAccountsServiceClient) ListGbpAccounts(ctx context.Context, in *ListGbpAccountsRequest, opts ...grpc.CallOption) (*ListGbpAccountsResponse, error) { out := new(ListGbpAccountsResponse) err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.GbpAccountsService/ListGbpAccounts", in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *gbpAccountsServiceClient) LinkGbpAccount(ctx context.Context, in *LinkGbpAccountRequest, opts ...grpc.CallOption) (*LinkGbpAccountResponse, error) { out := new(LinkGbpAccountResponse) err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.GbpAccountsService/LinkGbpAccount", in, out, opts...) if err != nil { return nil, err } return out, nil } // GbpAccountsServiceServer is the server API for GbpAccountsService service. type GbpAccountsServiceServer interface { // List the GBP accounts for a given merchant. ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error) // Link the specified merchant to a GBP account for all countries. // // To run this method, you must have admin access to the Merchant Center // account. If you don't have admin access, the request fails with the error // message `User is not an administrator of account {ACCOUNT_ID}`. LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error) } // UnimplementedGbpAccountsServiceServer can be embedded to have forward compatible implementations. type UnimplementedGbpAccountsServiceServer struct { } func (*UnimplementedGbpAccountsServiceServer) ListGbpAccounts(context.Context, *ListGbpAccountsRequest) (*ListGbpAccountsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListGbpAccounts not implemented") } func (*UnimplementedGbpAccountsServiceServer) LinkGbpAccount(context.Context, *LinkGbpAccountRequest) (*LinkGbpAccountResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method LinkGbpAccount not implemented") } func RegisterGbpAccountsServiceServer(s *grpc.Server, srv GbpAccountsServiceServer) { s.RegisterService(&_GbpAccountsService_serviceDesc, srv) } func _GbpAccountsService_ListGbpAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListGbpAccountsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.shopping.merchant.accounts.v1.GbpAccountsService/ListGbpAccounts", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GbpAccountsServiceServer).ListGbpAccounts(ctx, req.(*ListGbpAccountsRequest)) } return interceptor(ctx, in, info, handler) } func _GbpAccountsService_LinkGbpAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LinkGbpAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: "/google.shopping.merchant.accounts.v1.GbpAccountsService/LinkGbpAccount", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(GbpAccountsServiceServer).LinkGbpAccount(ctx, req.(*LinkGbpAccountRequest)) } return interceptor(ctx, in, info, handler) } var _GbpAccountsService_serviceDesc = grpc.ServiceDesc{ ServiceName: "google.shopping.merchant.accounts.v1.GbpAccountsService", HandlerType: (*GbpAccountsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListGbpAccounts", Handler: _GbpAccountsService_ListGbpAccounts_Handler, }, { MethodName: "LinkGbpAccount", Handler: _GbpAccountsService_LinkGbpAccount_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "google/shopping/merchant/accounts/v1/gbpaccounts.proto", }