Debian Codegraph @

shopping/merchant/accounts/apiv1/accountspb/businessinfo.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/accounts/v1/businessinfo.proto
20
21 package accountspb
22
23 import (
24 context "context"
25 _ "google.golang.org/genproto/googleapis/api/annotations"
26 phone_number "google.golang.org/genproto/googleapis/type/phone_number"
27 postaladdress "google.golang.org/genproto/googleapis/type/postaladdress"
28 grpc "google.golang.org/grpc"
29 codes "google.golang.org/grpc/codes"
30 status "google.golang.org/grpc/status"
31 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
32 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
33 fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
34 reflect "reflect"
35 sync "sync"
36 )
37
38 const (
39 // Verify that this generated code is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
41 // Verify that runtime/protoimpl is sufficiently up-to-date.
42 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
43 )
44
45 // The `BusinessInfo` message contains essential information about a
46 //
47 // business.
48 //
49 // This message captures key business details such as physical address,
50 // customer service contacts, and region-specific identifiers.
51 type BusinessInfo struct {
52 state protoimpl.MessageState
53 sizeCache protoimpl.SizeCache
54 unknownFields protoimpl.UnknownFields
55
56 // Identifier. The resource name of the business info.
57 // Format: `accounts/{account}/businessInfo`
58 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
59 // Optional. The address of the business. Only `region_code`, `address_lines`,
60 // `postal_code`, `administrative_area` and `locality` fields are supported.
61 // All other fields are ignored.
62 Address *postaladdress.PostalAddress `protobuf:"bytes,2,opt,name=address,proto3,oneof" json:"address,omitempty"`
63 // Output only. The phone number of the business.
64 Phone *phone_number.PhoneNumber `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
65 // Output only. The phone verification state of the business.
66 PhoneVerificationState *PhoneVerificationState `protobuf:"varint,4,opt,name=phone_verification_state,json=phoneVerificationState,proto3,enum=google.shopping.merchant.accounts.v1.PhoneVerificationState,oneof" json:"phone_verification_state,omitempty"`
67 // Optional. The customer service of the business.
68 CustomerService *CustomerService `protobuf:"bytes,5,opt,name=customer_service,json=customerService,proto3,oneof" json:"customer_service,omitempty"`
69 // Optional. The 10-digit [Korean business registration
70 // number](https://support.google.com/merchants/answer/9037766) separated with
71 // dashes in the format: XXX-XX-XXXXX.
72 KoreanBusinessRegistrationNumber *string `protobuf:"bytes,6,opt,name=korean_business_registration_number,json=koreanBusinessRegistrationNumber,proto3,oneof" json:"korean_business_registration_number,omitempty"`
73 }
74
75 func (x *BusinessInfo) Reset() {
76 *x = BusinessInfo{}
77 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[0]
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 ms.StoreMessageInfo(mi)
80 }
81
82 func (x *BusinessInfo) String() string {
83 return protoimpl.X.MessageStringOf(x)
84 }
85
86 func (*BusinessInfo) ProtoMessage() {}
87
88 func (x *BusinessInfo) ProtoReflect() protoreflect.Message {
89 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[0]
90 if x != nil {
91 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
92 if ms.LoadMessageInfo() == nil {
93 ms.StoreMessageInfo(mi)
94 }
95 return ms
96 }
97 return mi.MessageOf(x)
98 }
99
100 // Deprecated: Use BusinessInfo.ProtoReflect.Descriptor instead.
101 func (*BusinessInfo) Descriptor() ([]byte, []int) {
102 return file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescGZIP(), []int{0}
103 }
104
105 func (x *BusinessInfo) GetName() string {
106 if x != nil {
107 return x.Name
108 }
109 return ""
110 }
111
112 func (x *BusinessInfo) GetAddress() *postaladdress.PostalAddress {
113 if x != nil {
114 return x.Address
115 }
116 return nil
117 }
118
119 func (x *BusinessInfo) GetPhone() *phone_number.PhoneNumber {
120 if x != nil {
121 return x.Phone
122 }
123 return nil
124 }
125
126 func (x *BusinessInfo) GetPhoneVerificationState() PhoneVerificationState {
127 if x != nil && x.PhoneVerificationState != nil {
128 return *x.PhoneVerificationState
129 }
130 return PhoneVerificationState_PHONE_VERIFICATION_STATE_UNSPECIFIED
131 }
132
133 func (x *BusinessInfo) GetCustomerService() *CustomerService {
134 if x != nil {
135 return x.CustomerService
136 }
137 return nil
138 }
139
140 func (x *BusinessInfo) GetKoreanBusinessRegistrationNumber() string {
141 if x != nil && x.KoreanBusinessRegistrationNumber != nil {
142 return *x.KoreanBusinessRegistrationNumber
143 }
144 return ""
145 }
146
147 // Request message for the `GetBusinessInfo` method.
148 type GetBusinessInfoRequest struct {
149 state protoimpl.MessageState
150 sizeCache protoimpl.SizeCache
151 unknownFields protoimpl.UnknownFields
152
153 // Required. The resource name of the business info.
154 // Format: `accounts/{account}/businessInfo`. For example,
155 // `accounts/123456/businessInfo`.
156 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
157 }
158
159 func (x *GetBusinessInfoRequest) Reset() {
160 *x = GetBusinessInfoRequest{}
161 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[1]
162 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
163 ms.StoreMessageInfo(mi)
164 }
165
166 func (x *GetBusinessInfoRequest) String() string {
167 return protoimpl.X.MessageStringOf(x)
168 }
169
170 func (*GetBusinessInfoRequest) ProtoMessage() {}
171
172 func (x *GetBusinessInfoRequest) ProtoReflect() protoreflect.Message {
173 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[1]
174 if x != nil {
175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
176 if ms.LoadMessageInfo() == nil {
177 ms.StoreMessageInfo(mi)
178 }
179 return ms
180 }
181 return mi.MessageOf(x)
182 }
183
184 // Deprecated: Use GetBusinessInfoRequest.ProtoReflect.Descriptor instead.
185 func (*GetBusinessInfoRequest) Descriptor() ([]byte, []int) {
186 return file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescGZIP(), []int{1}
187 }
188
189 func (x *GetBusinessInfoRequest) GetName() string {
190 if x != nil {
191 return x.Name
192 }
193 return ""
194 }
195
196 // Request message for the `UpdateBusinessInfo` method.
197 type UpdateBusinessInfoRequest struct {
198 state protoimpl.MessageState
199 sizeCache protoimpl.SizeCache
200 unknownFields protoimpl.UnknownFields
201
202 // Required. The new version of the business info.
203 BusinessInfo *BusinessInfo `protobuf:"bytes,1,opt,name=business_info,json=businessInfo,proto3" json:"business_info,omitempty"`
204 // Optional. List of fields being updated.
205 //
206 // The following fields are supported (in both `snake_case` and
207 // `lowerCamelCase`):
208 //
209 // - `address`
210 // - `customer_service`
211 // - `korean_business_registration_number`
212 UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
213 }
214
215 func (x *UpdateBusinessInfoRequest) Reset() {
216 *x = UpdateBusinessInfoRequest{}
217 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[2]
218 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
219 ms.StoreMessageInfo(mi)
220 }
221
222 func (x *UpdateBusinessInfoRequest) String() string {
223 return protoimpl.X.MessageStringOf(x)
224 }
225
226 func (*UpdateBusinessInfoRequest) ProtoMessage() {}
227
228 func (x *UpdateBusinessInfoRequest) ProtoReflect() protoreflect.Message {
229 mi := &file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[2]
230 if x != nil {
231 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
232 if ms.LoadMessageInfo() == nil {
233 ms.StoreMessageInfo(mi)
234 }
235 return ms
236 }
237 return mi.MessageOf(x)
238 }
239
240 // Deprecated: Use UpdateBusinessInfoRequest.ProtoReflect.Descriptor instead.
241 func (*UpdateBusinessInfoRequest) Descriptor() ([]byte, []int) {
242 return file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescGZIP(), []int{2}
243 }
244
245 func (x *UpdateBusinessInfoRequest) GetBusinessInfo() *BusinessInfo {
246 if x != nil {
247 return x.BusinessInfo
248 }
249 return nil
250 }
251
252 func (x *UpdateBusinessInfoRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
253 if x != nil {
254 return x.UpdateMask
255 }
256 return nil
257 }
258
259 var File_google_shopping_merchant_accounts_v1_businessinfo_proto protoreflect.FileDescriptor
260
261 var file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDesc = []byte{
262 0x0a, 0x37, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
263 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
264 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x69,
265 0x6e, 0x66, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
266 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68,
267 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a,
268 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
269 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67,
270 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74,
271 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
272 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
273 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f,
274 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f,
275 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f,
276 0x62, 0x75, 0x66, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x2e, 0x70,
277 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f,
278 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61,
279 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f,
280 0x6d, 0x65, 0x72, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
281 0x1a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
282 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
283 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x76, 0x65, 0x72, 0x69,
284 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x74, 0x65, 0x2e, 0x70, 0x72,
285 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65,
286 0x2f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x2e, 0x70, 0x72,
287 0x6f, 0x74, 0x6f, 0x1a, 0x20, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x74, 0x79, 0x70, 0x65,
288 0x2f, 0x70, 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x2e,
289 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xc5, 0x05, 0x0a, 0x0c, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65,
290 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
291 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
292 0x3e, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
293 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50,
294 0x6f, 0x73, 0x74, 0x61, 0x6c, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x03, 0xe0, 0x41,
295 0x01, 0x48, 0x00, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x88, 0x01, 0x01, 0x12,
296 0x38, 0x0a, 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18,
297 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x2e, 0x50, 0x68, 0x6f,
298 0x6e, 0x65, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48, 0x01, 0x52,
299 0x05, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x88, 0x01, 0x01, 0x12, 0x80, 0x01, 0x0a, 0x18, 0x70, 0x68,
300 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e,
301 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3c, 0x2e, 0x67,
302 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
303 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
304 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63,
305 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x42, 0x03, 0xe0, 0x41, 0x03, 0x48,
306 0x02, 0x52, 0x16, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x56, 0x65, 0x72, 0x69, 0x66, 0x69, 0x63, 0x61,
307 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x88, 0x01, 0x01, 0x12, 0x6a, 0x0a, 0x10,
308 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
309 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
310 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
311 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75,
312 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x03, 0xe0,
313 0x41, 0x01, 0x48, 0x03, 0x52, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x53, 0x65,
314 0x72, 0x76, 0x69, 0x63, 0x65, 0x88, 0x01, 0x01, 0x12, 0x57, 0x0a, 0x23, 0x6b, 0x6f, 0x72, 0x65,
315 0x61, 0x6e, 0x5f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69,
316 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x18,
317 0x06, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x48, 0x04, 0x52, 0x20, 0x6b, 0x6f,
318 0x72, 0x65, 0x61, 0x6e, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x52, 0x65, 0x67, 0x69,
319 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x88, 0x01,
320 0x01, 0x3a, 0x6a, 0xea, 0x41, 0x67, 0x0a, 0x27, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
321 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63,
322 0x6f, 0x6d, 0x2f, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12,
323 0x1f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63, 0x63, 0x6f, 0x75,
324 0x6e, 0x74, 0x7d, 0x2f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f,
325 0x2a, 0x0d, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x73, 0x32,
326 0x0c, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x0a, 0x0a,
327 0x08, 0x5f, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x42, 0x08, 0x0a, 0x06, 0x5f, 0x70, 0x68,
328 0x6f, 0x6e, 0x65, 0x42, 0x1b, 0x0a, 0x19, 0x5f, 0x70, 0x68, 0x6f, 0x6e, 0x65, 0x5f, 0x76, 0x65,
329 0x72, 0x69, 0x66, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65,
330 0x42, 0x13, 0x0a, 0x11, 0x5f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x65, 0x72, 0x5f, 0x73, 0x65,
331 0x72, 0x76, 0x69, 0x63, 0x65, 0x42, 0x26, 0x0a, 0x24, 0x5f, 0x6b, 0x6f, 0x72, 0x65, 0x61, 0x6e,
332 0x5f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74,
333 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x22, 0x5d, 0x0a,
334 0x16, 0x47, 0x65, 0x74, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f,
335 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x43, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,
336 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x2f, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x29, 0x0a, 0x27, 0x6d,
337 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
338 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65,
339 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0xbb, 0x01, 0x0a,
340 0x19, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49,
341 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x5c, 0x0a, 0x0d, 0x62, 0x75,
342 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x01, 0x28,
343 0x0b, 0x32, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
344 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
345 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73,
346 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x0c, 0x62, 0x75, 0x73, 0x69,
347 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x40, 0x0a, 0x0b, 0x75, 0x70, 0x64, 0x61,
348 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e,
349 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
350 0x46, 0x69, 0x65, 0x6c, 0x64, 0x4d, 0x61, 0x73, 0x6b, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0a,
351 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x4d, 0x61, 0x73, 0x6b, 0x32, 0x9a, 0x04, 0x0a, 0x13, 0x42,
352 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x53, 0x65, 0x72, 0x76, 0x69,
353 0x63, 0x65, 0x12, 0xbf, 0x01, 0x0a, 0x0f, 0x47, 0x65, 0x74, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65,
354 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3c, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
355 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
356 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
357 0x74, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71,
358 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68,
359 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e,
360 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x69,
361 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x22, 0x3a, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d,
362 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x2d, 0x12, 0x2b, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
363 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f,
364 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49,
365 0x6e, 0x66, 0x6f, 0x7d, 0x12, 0xf7, 0x01, 0x0a, 0x12, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42,
366 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x3f, 0x2e, 0x67, 0x6f,
367 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65,
368 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e,
369 0x76, 0x31, 0x2e, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73,
370 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x32, 0x2e, 0x67,
371 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d,
372 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
373 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f,
374 0x22, 0x6c, 0xda, 0x41, 0x19, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e,
375 0x66, 0x6f, 0x2c, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x5f, 0x6d, 0x61, 0x73, 0x6b, 0x82, 0xd3,
376 0xe4, 0x93, 0x02, 0x4a, 0x3a, 0x0d, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x69,
377 0x6e, 0x66, 0x6f, 0x32, 0x39, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76,
378 0x31, 0x2f, 0x7b, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x5f, 0x69, 0x6e, 0x66, 0x6f,
379 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a,
380 0x2f, 0x62, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e, 0x66, 0x6f, 0x7d, 0x1a, 0x47,
381 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67,
382 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27,
383 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77, 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
384 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f,
385 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x84, 0x02, 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e,
386 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
387 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
388 0x73, 0x2e, 0x76, 0x31, 0x42, 0x11, 0x42, 0x75, 0x73, 0x69, 0x6e, 0x65, 0x73, 0x73, 0x49, 0x6e,
389 0x66, 0x6f, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64,
390 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73,
391 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
392 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f,
393 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75,
394 0x6e, 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53,
395 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
396 0x2e, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47,
397 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d,
398 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73,
399 0x5c, 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68,
400 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
401 0x3a, 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06,
402 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
403 }
404
405 var (
406 file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescOnce sync.Once
407 file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescData = file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDesc
408 )
409
410 func file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescGZIP() []byte {
411 file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescOnce.Do(func() {
412 file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescData)
413 })
414 return file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDescData
415 }
416
417 var file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
418 var file_google_shopping_merchant_accounts_v1_businessinfo_proto_goTypes = []any{
419 (*BusinessInfo)(nil), // 0: google.shopping.merchant.accounts.v1.BusinessInfo
420 (*GetBusinessInfoRequest)(nil), // 1: google.shopping.merchant.accounts.v1.GetBusinessInfoRequest
421 (*UpdateBusinessInfoRequest)(nil), // 2: google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest
422 (*postaladdress.PostalAddress)(nil), // 3: google.type.PostalAddress
423 (*phone_number.PhoneNumber)(nil), // 4: google.type.PhoneNumber
424 (PhoneVerificationState)(0), // 5: google.shopping.merchant.accounts.v1.PhoneVerificationState
425 (*CustomerService)(nil), // 6: google.shopping.merchant.accounts.v1.CustomerService
426 (*fieldmaskpb.FieldMask)(nil), // 7: google.protobuf.FieldMask
427 }
428 var file_google_shopping_merchant_accounts_v1_businessinfo_proto_depIdxs = []int32{
429 3, // 0: google.shopping.merchant.accounts.v1.BusinessInfo.address:type_name -> google.type.PostalAddress
430 4, // 1: google.shopping.merchant.accounts.v1.BusinessInfo.phone:type_name -> google.type.PhoneNumber
431 5, // 2: google.shopping.merchant.accounts.v1.BusinessInfo.phone_verification_state:type_name -> google.shopping.merchant.accounts.v1.PhoneVerificationState
432 6, // 3: google.shopping.merchant.accounts.v1.BusinessInfo.customer_service:type_name -> google.shopping.merchant.accounts.v1.CustomerService
433 0, // 4: google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest.business_info:type_name -> google.shopping.merchant.accounts.v1.BusinessInfo
434 7, // 5: google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest.update_mask:type_name -> google.protobuf.FieldMask
435 1, // 6: google.shopping.merchant.accounts.v1.BusinessInfoService.GetBusinessInfo:input_type -> google.shopping.merchant.accounts.v1.GetBusinessInfoRequest
436 2, // 7: google.shopping.merchant.accounts.v1.BusinessInfoService.UpdateBusinessInfo:input_type -> google.shopping.merchant.accounts.v1.UpdateBusinessInfoRequest
437 0, // 8: google.shopping.merchant.accounts.v1.BusinessInfoService.GetBusinessInfo:output_type -> google.shopping.merchant.accounts.v1.BusinessInfo
438 0, // 9: google.shopping.merchant.accounts.v1.BusinessInfoService.UpdateBusinessInfo:output_type -> google.shopping.merchant.accounts.v1.BusinessInfo
439 8, // [8:10] is the sub-list for method output_type
440 6, // [6:8] is the sub-list for method input_type
441 6, // [6:6] is the sub-list for extension type_name
442 6, // [6:6] is the sub-list for extension extendee
443 0, // [0:6] is the sub-list for field type_name
444 }
445
446 func init() { file_google_shopping_merchant_accounts_v1_businessinfo_proto_init() }
447 func file_google_shopping_merchant_accounts_v1_businessinfo_proto_init() {
448 if File_google_shopping_merchant_accounts_v1_businessinfo_proto != nil {
449 return
450 }
451 file_google_shopping_merchant_accounts_v1_customerservice_proto_init()
452 file_google_shopping_merchant_accounts_v1_phoneverificationstate_proto_init()
453 file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes[0].OneofWrappers = []any{}
454 type x struct{}
455 out := protoimpl.TypeBuilder{
456 File: protoimpl.DescBuilder{
457 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
458 RawDescriptor: file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDesc,
459 NumEnums: 0,
460 NumMessages: 3,
461 NumExtensions: 0,
462 NumServices: 1,
463 },
464 GoTypes: file_google_shopping_merchant_accounts_v1_businessinfo_proto_goTypes,
465 DependencyIndexes: file_google_shopping_merchant_accounts_v1_businessinfo_proto_depIdxs,
466 MessageInfos: file_google_shopping_merchant_accounts_v1_businessinfo_proto_msgTypes,
467 }.Build()
468 File_google_shopping_merchant_accounts_v1_businessinfo_proto = out.File
469 file_google_shopping_merchant_accounts_v1_businessinfo_proto_rawDesc = nil
470 file_google_shopping_merchant_accounts_v1_businessinfo_proto_goTypes = nil
471 file_google_shopping_merchant_accounts_v1_businessinfo_proto_depIdxs = nil
472 }
473
474 // Reference imports to suppress errors if they are not otherwise used.
475 var _ context.Context
476 var _ grpc.ClientConnInterface
477
478 // This is a compile-time assertion to ensure that this generated file
479 // is compatible with the grpc package it is being compiled against.
480 const _ = grpc.SupportPackageIsVersion6
481
482 // BusinessInfoServiceClient is the client API for BusinessInfoService service.
483 //
484 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
485 type BusinessInfoServiceClient interface {
486 // Retrieves the business info of an account.
487 GetBusinessInfo(ctx context.Context, in *GetBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error)
488 // Updates the business info of an account. Executing this method requires
489 // admin access.
490 UpdateBusinessInfo(ctx context.Context, in *UpdateBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error)
491 }
492
493 type businessInfoServiceClient struct {
494 cc grpc.ClientConnInterface
495 }
496
497 func NewBusinessInfoServiceClient(cc grpc.ClientConnInterface) BusinessInfoServiceClient {
498 return &businessInfoServiceClient{cc}
499 }
500
501 func (c *businessInfoServiceClient) GetBusinessInfo(ctx context.Context, in *GetBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error) {
502 out := new(BusinessInfo)
503 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.BusinessInfoService/GetBusinessInfo", in, out, opts...)
504 if err != nil {
505 return nil, err
506 }
507 return out, nil
508 }
509
510 func (c *businessInfoServiceClient) UpdateBusinessInfo(ctx context.Context, in *UpdateBusinessInfoRequest, opts ...grpc.CallOption) (*BusinessInfo, error) {
511 out := new(BusinessInfo)
512 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.BusinessInfoService/UpdateBusinessInfo", in, out, opts...)
513 if err != nil {
514 return nil, err
515 }
516 return out, nil
517 }
518
519 // BusinessInfoServiceServer is the server API for BusinessInfoService service.
520 type BusinessInfoServiceServer interface {
521 // Retrieves the business info of an account.
522 GetBusinessInfo(context.Context, *GetBusinessInfoRequest) (*BusinessInfo, error)
523 // Updates the business info of an account. Executing this method requires
524 // admin access.
525 UpdateBusinessInfo(context.Context, *UpdateBusinessInfoRequest) (*BusinessInfo, error)
526 }
527
528 // UnimplementedBusinessInfoServiceServer can be embedded to have forward compatible implementations.
529 type UnimplementedBusinessInfoServiceServer struct {
530 }
531
532 func (*UnimplementedBusinessInfoServiceServer) GetBusinessInfo(context.Context, *GetBusinessInfoRequest) (*BusinessInfo, error) {
533 return nil, status.Errorf(codes.Unimplemented, "method GetBusinessInfo not implemented")
534 }
535 func (*UnimplementedBusinessInfoServiceServer) UpdateBusinessInfo(context.Context, *UpdateBusinessInfoRequest) (*BusinessInfo, error) {
536 return nil, status.Errorf(codes.Unimplemented, "method UpdateBusinessInfo not implemented")
537 }
538
539 func RegisterBusinessInfoServiceServer(s *grpc.Server, srv BusinessInfoServiceServer) {
540 s.RegisterService(&_BusinessInfoService_serviceDesc, srv)
541 }
542
543 func _BusinessInfoService_GetBusinessInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
544 in := new(GetBusinessInfoRequest)
545 if err := dec(in); err != nil {
546 return nil, err
547 }
548 if interceptor == nil {
549 return srv.(BusinessInfoServiceServer).GetBusinessInfo(ctx, in)
550 }
551 info := &grpc.UnaryServerInfo{
552 Server: srv,
553 FullMethod: "/google.shopping.merchant.accounts.v1.BusinessInfoService/GetBusinessInfo",
554 }
555 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
556 return srv.(BusinessInfoServiceServer).GetBusinessInfo(ctx, req.(*GetBusinessInfoRequest))
557 }
558 return interceptor(ctx, in, info, handler)
559 }
560
561 func _BusinessInfoService_UpdateBusinessInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
562 in := new(UpdateBusinessInfoRequest)
563 if err := dec(in); err != nil {
564 return nil, err
565 }
566 if interceptor == nil {
567 return srv.(BusinessInfoServiceServer).UpdateBusinessInfo(ctx, in)
568 }
569 info := &grpc.UnaryServerInfo{
570 Server: srv,
571 FullMethod: "/google.shopping.merchant.accounts.v1.BusinessInfoService/UpdateBusinessInfo",
572 }
573 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
574 return srv.(BusinessInfoServiceServer).UpdateBusinessInfo(ctx, req.(*UpdateBusinessInfoRequest))
575 }
576 return interceptor(ctx, in, info, handler)
577 }
578
579 var _BusinessInfoService_serviceDesc = grpc.ServiceDesc{
580 ServiceName: "google.shopping.merchant.accounts.v1.BusinessInfoService",
581 HandlerType: (*BusinessInfoServiceServer)(nil),
582 Methods: []grpc.MethodDesc{
583 {
584 MethodName: "GetBusinessInfo",
585 Handler: _BusinessInfoService_GetBusinessInfo_Handler,
586 },
587 {
588 MethodName: "UpdateBusinessInfo",
589 Handler: _BusinessInfoService_UpdateBusinessInfo_Handler,
590 },
591 },
592 Streams: []grpc.StreamDesc{},
593 Metadata: "google/shopping/merchant/accounts/v1/businessinfo.proto",
594 }