Debian Codegraph @

shopping/merchant/accounts/apiv1/accountspb/developerregistration.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/shopping/merchant/accounts/v1/developerregistration.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 emptypb "google.golang.org/protobuf/types/known/emptypb"
32 reflect "reflect"
33 sync "sync"
34 )
35
36 const (
37 // Verify that this generated code is sufficiently up-to-date.
38 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
39 // Verify that runtime/protoimpl is sufficiently up-to-date.
40 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
41 )
42
43 // Represents a developer registration owned by a Merchant account.
44 type DeveloperRegistration struct {
45 state protoimpl.MessageState
46 sizeCache protoimpl.SizeCache
47 unknownFields protoimpl.UnknownFields
48
49 // Identifier. The `name` (ID) of the developer registration. Generated by the
50 // Content API upon creation of a new `DeveloperRegistration`. The `account`
51 // represents the merchant ID of the merchant that owns the registration.
52 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
53 // Output only. The GCP ids attached to this developer registration
54 GcpIds []string `protobuf:"bytes,2,rep,name=gcp_ids,json=gcpIds,proto3" json:"gcp_ids,omitempty"`
55 }
56
57 func (x *DeveloperRegistration) Reset() {
58 *x = DeveloperRegistration{}
59 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[0]
60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
61 ms.StoreMessageInfo(mi)
62 }
63
64 func (x *DeveloperRegistration) String() string {
65 return protoimpl.X.MessageStringOf(x)
66 }
67
68 func (*DeveloperRegistration) ProtoMessage() {}
69
70 func (x *DeveloperRegistration) ProtoReflect() protoreflect.Message {
71 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[0]
72 if x != nil {
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 if ms.LoadMessageInfo() == nil {
75 ms.StoreMessageInfo(mi)
76 }
77 return ms
78 }
79 return mi.MessageOf(x)
80 }
81
82 // Deprecated: Use DeveloperRegistration.ProtoReflect.Descriptor instead.
83 func (*DeveloperRegistration) Descriptor() ([]byte, []int) {
84 return file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescGZIP(), []int{0}
85 }
86
87 func (x *DeveloperRegistration) GetName() string {
88 if x != nil {
89 return x.Name
90 }
91 return ""
92 }
93
94 func (x *DeveloperRegistration) GetGcpIds() []string {
95 if x != nil {
96 return x.GcpIds
97 }
98 return nil
99 }
100
101 // Request message for the RegisterGCP method.
102 type RegisterGcpRequest struct {
103 state protoimpl.MessageState
104 sizeCache protoimpl.SizeCache
105 unknownFields protoimpl.UnknownFields
106
107 // Required. The name of the developer registration to be created for the
108 // merchant account that the GCP will be registered with. Format:
109 // `accounts/{account}/developerRegistration`
110 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
111 // Immutable. If the developer email provided is associated with a user in the
112 // merchant account provided, the user will be updated to have "API developer"
113 // access type and the email preference corresponding to that user will be
114 // updated to have the new "API notifications" preference. If the developer
115 // email provided is not associated with any user we will just add it as a
116 // contact. The email preference corresponding to that contact will have the
117 // new "API notifications" preference
118 DeveloperEmail string `protobuf:"bytes,2,opt,name=developer_email,json=developerEmail,proto3" json:"developer_email,omitempty"`
119 }
120
121 func (x *RegisterGcpRequest) Reset() {
122 *x = RegisterGcpRequest{}
123 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[1]
124 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
125 ms.StoreMessageInfo(mi)
126 }
127
128 func (x *RegisterGcpRequest) String() string {
129 return protoimpl.X.MessageStringOf(x)
130 }
131
132 func (*RegisterGcpRequest) ProtoMessage() {}
133
134 func (x *RegisterGcpRequest) ProtoReflect() protoreflect.Message {
135 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[1]
136 if x != nil {
137 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
138 if ms.LoadMessageInfo() == nil {
139 ms.StoreMessageInfo(mi)
140 }
141 return ms
142 }
143 return mi.MessageOf(x)
144 }
145
146 // Deprecated: Use RegisterGcpRequest.ProtoReflect.Descriptor instead.
147 func (*RegisterGcpRequest) Descriptor() ([]byte, []int) {
148 return file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescGZIP(), []int{1}
149 }
150
151 func (x *RegisterGcpRequest) GetName() string {
152 if x != nil {
153 return x.Name
154 }
155 return ""
156 }
157
158 func (x *RegisterGcpRequest) GetDeveloperEmail() string {
159 if x != nil {
160 return x.DeveloperEmail
161 }
162 return ""
163 }
164
165 // Request message for the UnregisterGCP method.
166 type UnregisterGcpRequest struct {
167 state protoimpl.MessageState
168 sizeCache protoimpl.SizeCache
169 unknownFields protoimpl.UnknownFields
170
171 // Required. The name of the developer registration to be created for the
172 // merchant account that the GCP will be registered with. Format:
173 // `accounts/{account}/developerRegistration`
174 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
175 }
176
177 func (x *UnregisterGcpRequest) Reset() {
178 *x = UnregisterGcpRequest{}
179 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[2]
180 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
181 ms.StoreMessageInfo(mi)
182 }
183
184 func (x *UnregisterGcpRequest) String() string {
185 return protoimpl.X.MessageStringOf(x)
186 }
187
188 func (*UnregisterGcpRequest) ProtoMessage() {}
189
190 func (x *UnregisterGcpRequest) ProtoReflect() protoreflect.Message {
191 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[2]
192 if x != nil {
193 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
194 if ms.LoadMessageInfo() == nil {
195 ms.StoreMessageInfo(mi)
196 }
197 return ms
198 }
199 return mi.MessageOf(x)
200 }
201
202 // Deprecated: Use UnregisterGcpRequest.ProtoReflect.Descriptor instead.
203 func (*UnregisterGcpRequest) Descriptor() ([]byte, []int) {
204 return file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescGZIP(), []int{2}
205 }
206
207 func (x *UnregisterGcpRequest) GetName() string {
208 if x != nil {
209 return x.Name
210 }
211 return ""
212 }
213
214 // Request message for the GetDeveloperRegistration method.
215 type GetDeveloperRegistrationRequest struct {
216 state protoimpl.MessageState
217 sizeCache protoimpl.SizeCache
218 unknownFields protoimpl.UnknownFields
219
220 // Required. The `name` (ID) of the developer registration.
221 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
222 }
223
224 func (x *GetDeveloperRegistrationRequest) Reset() {
225 *x = GetDeveloperRegistrationRequest{}
226 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[3]
227 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
228 ms.StoreMessageInfo(mi)
229 }
230
231 func (x *GetDeveloperRegistrationRequest) String() string {
232 return protoimpl.X.MessageStringOf(x)
233 }
234
235 func (*GetDeveloperRegistrationRequest) ProtoMessage() {}
236
237 func (x *GetDeveloperRegistrationRequest) ProtoReflect() protoreflect.Message {
238 mi := &file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes[3]
239 if x != nil {
240 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
241 if ms.LoadMessageInfo() == nil {
242 ms.StoreMessageInfo(mi)
243 }
244 return ms
245 }
246 return mi.MessageOf(x)
247 }
248
249 // Deprecated: Use GetDeveloperRegistrationRequest.ProtoReflect.Descriptor instead.
250 func (*GetDeveloperRegistrationRequest) Descriptor() ([]byte, []int) {
251 return file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescGZIP(), []int{3}
252 }
253
254 func (x *GetDeveloperRegistrationRequest) GetName() string {
255 if x != nil {
256 return x.Name
257 }
258 return ""
259 }
260
261 var File_google_shopping_merchant_accounts_v1_developerregistration_proto protoreflect.FileDescriptor
262
263 var file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDesc = []byte{
264 0x0a, 0x40, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
265 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75,
266 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
267 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f,
268 0x74, 0x6f, 0x12, 0x24, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
269 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
270 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
271 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
272 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x17, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
273 0x70, 0x69, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a,
274 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c,
275 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
276 0x1a, 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73,
277 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f,
278 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70,
279 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xdf, 0x01, 0x0a, 0x15, 0x44, 0x65, 0x76,
280 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
281 0x6f, 0x6e, 0x12, 0x17, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
282 0x42, 0x03, 0xe0, 0x41, 0x08, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x07, 0x67,
283 0x63, 0x70, 0x5f, 0x69, 0x64, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41,
284 0x03, 0x52, 0x06, 0x67, 0x63, 0x70, 0x49, 0x64, 0x73, 0x3a, 0x8e, 0x01, 0xea, 0x41, 0x8a, 0x01,
285 0x0a, 0x30, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f,
286 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x76,
287 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69,
288 0x6f, 0x6e, 0x12, 0x28, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x7b, 0x61, 0x63,
289 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x7d, 0x2f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
290 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2a, 0x15, 0x64, 0x65,
291 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74,
292 0x69, 0x6f, 0x6e, 0x32, 0x15, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65,
293 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x90, 0x01, 0x0a, 0x12, 0x52,
294 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x63, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
295 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
296 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
297 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
298 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67,
299 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12,
300 0x2c, 0x0a, 0x0f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61,
301 0x69, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x05, 0x52, 0x0e, 0x64,
302 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x22, 0x64, 0x0a,
303 0x14, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x63, 0x70, 0x52, 0x65,
304 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
305 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x6d, 0x65, 0x72,
306 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
307 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65,
308 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04, 0x6e,
309 0x61, 0x6d, 0x65, 0x22, 0x6f, 0x0a, 0x1f, 0x47, 0x65, 0x74, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f,
310 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52,
311 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x4c, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01,
312 0x20, 0x01, 0x28, 0x09, 0x42, 0x38, 0xe0, 0x41, 0x02, 0xfa, 0x41, 0x32, 0x0a, 0x30, 0x6d, 0x65,
313 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
314 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70,
315 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x04,
316 0x6e, 0x61, 0x6d, 0x65, 0x32, 0xd6, 0x05, 0x0a, 0x1c, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70,
317 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x53, 0x65,
318 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0xd1, 0x01, 0x0a, 0x0b, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
319 0x65, 0x72, 0x47, 0x63, 0x70, 0x12, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73,
320 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74,
321 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x67,
322 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x63, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
323 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e,
324 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75,
325 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
326 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x4b, 0x82, 0xd3,
327 0xe4, 0x93, 0x02, 0x45, 0x3a, 0x01, 0x2a, 0x22, 0x40, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
328 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f,
329 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72,
330 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x3a, 0x72, 0x65,
331 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x63, 0x70, 0x12, 0xe3, 0x01, 0x0a, 0x18, 0x47, 0x65,
332 0x74, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
333 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x45, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
334 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
335 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65,
336 0x74, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74,
337 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x3b, 0x2e,
338 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e,
339 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74,
340 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65,
341 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x43, 0xda, 0x41, 0x04, 0x6e,
342 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x12, 0x34, 0x2f, 0x61, 0x63, 0x63, 0x6f,
343 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63,
344 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70,
345 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x12,
346 0xb2, 0x01, 0x0a, 0x0d, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x47, 0x63,
347 0x70, 0x12, 0x3a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f, 0x70, 0x70,
348 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61, 0x63, 0x63,
349 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x55, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73,
350 0x74, 0x65, 0x72, 0x47, 0x63, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
351 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e,
352 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x4d, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x47, 0x3a, 0x01, 0x2a,
353 0x22, 0x42, 0x2f, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
354 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
355 0x64, 0x65, 0x76, 0x65, 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72,
356 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x3a, 0x75, 0x6e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
357 0x72, 0x47, 0x63, 0x70, 0x1a, 0x47, 0xca, 0x41, 0x1a, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e,
358 0x74, 0x61, 0x70, 0x69, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e,
359 0x63, 0x6f, 0x6d, 0xd2, 0x41, 0x27, 0x68, 0x74, 0x74, 0x70, 0x73, 0x3a, 0x2f, 0x2f, 0x77, 0x77,
360 0x77, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d,
361 0x2f, 0x61, 0x75, 0x74, 0x68, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x42, 0x8d, 0x02,
362 0x0a, 0x28, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x73, 0x68, 0x6f,
363 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e, 0x61,
364 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x1a, 0x44, 0x65, 0x76, 0x65,
365 0x6c, 0x6f, 0x70, 0x65, 0x72, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x61, 0x74, 0x69, 0x6f,
366 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4a, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
367 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x68,
368 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2f, 0x6d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2f,
369 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2f, 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x61,
370 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x70, 0x62, 0x3b, 0x61, 0x63, 0x63, 0x6f, 0x75, 0x6e,
371 0x74, 0x73, 0x70, 0x62, 0xaa, 0x02, 0x24, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x53, 0x68,
372 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x2e, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x2e,
373 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x24, 0x47, 0x6f,
374 0x6f, 0x67, 0x6c, 0x65, 0x5c, 0x53, 0x68, 0x6f, 0x70, 0x70, 0x69, 0x6e, 0x67, 0x5c, 0x4d, 0x65,
375 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x5c, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x5c,
376 0x56, 0x31, 0xea, 0x02, 0x28, 0x47, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x3a, 0x3a, 0x53, 0x68, 0x6f,
377 0x70, 0x70, 0x69, 0x6e, 0x67, 0x3a, 0x3a, 0x4d, 0x65, 0x72, 0x63, 0x68, 0x61, 0x6e, 0x74, 0x3a,
378 0x3a, 0x41, 0x63, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70,
379 0x72, 0x6f, 0x74, 0x6f, 0x33,
380 }
381
382 var (
383 file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescOnce sync.Once
384 file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescData = file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDesc
385 )
386
387 func file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescGZIP() []byte {
388 file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescOnce.Do(func() {
389 file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescData)
390 })
391 return file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDescData
392 }
393
394 var file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
395 var file_google_shopping_merchant_accounts_v1_developerregistration_proto_goTypes = []any{
396 (*DeveloperRegistration)(nil), // 0: google.shopping.merchant.accounts.v1.DeveloperRegistration
397 (*RegisterGcpRequest)(nil), // 1: google.shopping.merchant.accounts.v1.RegisterGcpRequest
398 (*UnregisterGcpRequest)(nil), // 2: google.shopping.merchant.accounts.v1.UnregisterGcpRequest
399 (*GetDeveloperRegistrationRequest)(nil), // 3: google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest
400 (*emptypb.Empty)(nil), // 4: google.protobuf.Empty
401 }
402 var file_google_shopping_merchant_accounts_v1_developerregistration_proto_depIdxs = []int32{
403 1, // 0: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.RegisterGcp:input_type -> google.shopping.merchant.accounts.v1.RegisterGcpRequest
404 3, // 1: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetDeveloperRegistration:input_type -> google.shopping.merchant.accounts.v1.GetDeveloperRegistrationRequest
405 2, // 2: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.UnregisterGcp:input_type -> google.shopping.merchant.accounts.v1.UnregisterGcpRequest
406 0, // 3: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.RegisterGcp:output_type -> google.shopping.merchant.accounts.v1.DeveloperRegistration
407 0, // 4: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.GetDeveloperRegistration:output_type -> google.shopping.merchant.accounts.v1.DeveloperRegistration
408 4, // 5: google.shopping.merchant.accounts.v1.DeveloperRegistrationService.UnregisterGcp:output_type -> google.protobuf.Empty
409 3, // [3:6] is the sub-list for method output_type
410 0, // [0:3] is the sub-list for method input_type
411 0, // [0:0] is the sub-list for extension type_name
412 0, // [0:0] is the sub-list for extension extendee
413 0, // [0:0] is the sub-list for field type_name
414 }
415
416 func init() { file_google_shopping_merchant_accounts_v1_developerregistration_proto_init() }
417 func file_google_shopping_merchant_accounts_v1_developerregistration_proto_init() {
418 if File_google_shopping_merchant_accounts_v1_developerregistration_proto != nil {
419 return
420 }
421 type x struct{}
422 out := protoimpl.TypeBuilder{
423 File: protoimpl.DescBuilder{
424 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
425 RawDescriptor: file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDesc,
426 NumEnums: 0,
427 NumMessages: 4,
428 NumExtensions: 0,
429 NumServices: 1,
430 },
431 GoTypes: file_google_shopping_merchant_accounts_v1_developerregistration_proto_goTypes,
432 DependencyIndexes: file_google_shopping_merchant_accounts_v1_developerregistration_proto_depIdxs,
433 MessageInfos: file_google_shopping_merchant_accounts_v1_developerregistration_proto_msgTypes,
434 }.Build()
435 File_google_shopping_merchant_accounts_v1_developerregistration_proto = out.File
436 file_google_shopping_merchant_accounts_v1_developerregistration_proto_rawDesc = nil
437 file_google_shopping_merchant_accounts_v1_developerregistration_proto_goTypes = nil
438 file_google_shopping_merchant_accounts_v1_developerregistration_proto_depIdxs = nil
439 }
440
441 // Reference imports to suppress errors if they are not otherwise used.
442 var _ context.Context
443 var _ grpc.ClientConnInterface
444
445 // This is a compile-time assertion to ensure that this generated file
446 // is compatible with the grpc package it is being compiled against.
447 const _ = grpc.SupportPackageIsVersion6
448
449 // DeveloperRegistrationServiceClient is the client API for DeveloperRegistrationService service.
450 //
451 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
452 type DeveloperRegistrationServiceClient interface {
453 // Registers the GCP used for the API call to the shopping account passed in
454 // the request. Will create a user with an "API developer" and add the
455 // "developer_email" as a contact with "API notifications" email preference
456 // on.
457 RegisterGcp(ctx context.Context, in *RegisterGcpRequest, opts ...grpc.CallOption) (*DeveloperRegistration, error)
458 // Retrieves a developer registration for a merchant.
459 GetDeveloperRegistration(ctx context.Context, in *GetDeveloperRegistrationRequest, opts ...grpc.CallOption) (*DeveloperRegistration, error)
460 // Unregister the calling GCP from the calling shopping account. Note that the
461 // GCP will still be able to access the API for at most 1 day from the
462 // unregister succussful call.
463 UnregisterGcp(ctx context.Context, in *UnregisterGcpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
464 }
465
466 type developerRegistrationServiceClient struct {
467 cc grpc.ClientConnInterface
468 }
469
470 func NewDeveloperRegistrationServiceClient(cc grpc.ClientConnInterface) DeveloperRegistrationServiceClient {
471 return &developerRegistrationServiceClient{cc}
472 }
473
474 func (c *developerRegistrationServiceClient) RegisterGcp(ctx context.Context, in *RegisterGcpRequest, opts ...grpc.CallOption) (*DeveloperRegistration, error) {
475 out := new(DeveloperRegistration)
476 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/RegisterGcp", in, out, opts...)
477 if err != nil {
478 return nil, err
479 }
480 return out, nil
481 }
482
483 func (c *developerRegistrationServiceClient) GetDeveloperRegistration(ctx context.Context, in *GetDeveloperRegistrationRequest, opts ...grpc.CallOption) (*DeveloperRegistration, error) {
484 out := new(DeveloperRegistration)
485 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/GetDeveloperRegistration", in, out, opts...)
486 if err != nil {
487 return nil, err
488 }
489 return out, nil
490 }
491
492 func (c *developerRegistrationServiceClient) UnregisterGcp(ctx context.Context, in *UnregisterGcpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
493 out := new(emptypb.Empty)
494 err := c.cc.Invoke(ctx, "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/UnregisterGcp", in, out, opts...)
495 if err != nil {
496 return nil, err
497 }
498 return out, nil
499 }
500
501 // DeveloperRegistrationServiceServer is the server API for DeveloperRegistrationService service.
502 type DeveloperRegistrationServiceServer interface {
503 // Registers the GCP used for the API call to the shopping account passed in
504 // the request. Will create a user with an "API developer" and add the
505 // "developer_email" as a contact with "API notifications" email preference
506 // on.
507 RegisterGcp(context.Context, *RegisterGcpRequest) (*DeveloperRegistration, error)
508 // Retrieves a developer registration for a merchant.
509 GetDeveloperRegistration(context.Context, *GetDeveloperRegistrationRequest) (*DeveloperRegistration, error)
510 // Unregister the calling GCP from the calling shopping account. Note that the
511 // GCP will still be able to access the API for at most 1 day from the
512 // unregister succussful call.
513 UnregisterGcp(context.Context, *UnregisterGcpRequest) (*emptypb.Empty, error)
514 }
515
516 // UnimplementedDeveloperRegistrationServiceServer can be embedded to have forward compatible implementations.
517 type UnimplementedDeveloperRegistrationServiceServer struct {
518 }
519
520 func (*UnimplementedDeveloperRegistrationServiceServer) RegisterGcp(context.Context, *RegisterGcpRequest) (*DeveloperRegistration, error) {
521 return nil, status.Errorf(codes.Unimplemented, "method RegisterGcp not implemented")
522 }
523 func (*UnimplementedDeveloperRegistrationServiceServer) GetDeveloperRegistration(context.Context, *GetDeveloperRegistrationRequest) (*DeveloperRegistration, error) {
524 return nil, status.Errorf(codes.Unimplemented, "method GetDeveloperRegistration not implemented")
525 }
526 func (*UnimplementedDeveloperRegistrationServiceServer) UnregisterGcp(context.Context, *UnregisterGcpRequest) (*emptypb.Empty, error) {
527 return nil, status.Errorf(codes.Unimplemented, "method UnregisterGcp not implemented")
528 }
529
530 func RegisterDeveloperRegistrationServiceServer(s *grpc.Server, srv DeveloperRegistrationServiceServer) {
531 s.RegisterService(&_DeveloperRegistrationService_serviceDesc, srv)
532 }
533
534 func _DeveloperRegistrationService_RegisterGcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
535 in := new(RegisterGcpRequest)
536 if err := dec(in); err != nil {
537 return nil, err
538 }
539 if interceptor == nil {
540 return srv.(DeveloperRegistrationServiceServer).RegisterGcp(ctx, in)
541 }
542 info := &grpc.UnaryServerInfo{
543 Server: srv,
544 FullMethod: "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/RegisterGcp",
545 }
546 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
547 return srv.(DeveloperRegistrationServiceServer).RegisterGcp(ctx, req.(*RegisterGcpRequest))
548 }
549 return interceptor(ctx, in, info, handler)
550 }
551
552 func _DeveloperRegistrationService_GetDeveloperRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
553 in := new(GetDeveloperRegistrationRequest)
554 if err := dec(in); err != nil {
555 return nil, err
556 }
557 if interceptor == nil {
558 return srv.(DeveloperRegistrationServiceServer).GetDeveloperRegistration(ctx, in)
559 }
560 info := &grpc.UnaryServerInfo{
561 Server: srv,
562 FullMethod: "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/GetDeveloperRegistration",
563 }
564 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
565 return srv.(DeveloperRegistrationServiceServer).GetDeveloperRegistration(ctx, req.(*GetDeveloperRegistrationRequest))
566 }
567 return interceptor(ctx, in, info, handler)
568 }
569
570 func _DeveloperRegistrationService_UnregisterGcp_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
571 in := new(UnregisterGcpRequest)
572 if err := dec(in); err != nil {
573 return nil, err
574 }
575 if interceptor == nil {
576 return srv.(DeveloperRegistrationServiceServer).UnregisterGcp(ctx, in)
577 }
578 info := &grpc.UnaryServerInfo{
579 Server: srv,
580 FullMethod: "/google.shopping.merchant.accounts.v1.DeveloperRegistrationService/UnregisterGcp",
581 }
582 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
583 return srv.(DeveloperRegistrationServiceServer).UnregisterGcp(ctx, req.(*UnregisterGcpRequest))
584 }
585 return interceptor(ctx, in, info, handler)
586 }
587
588 var _DeveloperRegistrationService_serviceDesc = grpc.ServiceDesc{
589 ServiceName: "google.shopping.merchant.accounts.v1.DeveloperRegistrationService",
590 HandlerType: (*DeveloperRegistrationServiceServer)(nil),
591 Methods: []grpc.MethodDesc{
592 {
593 MethodName: "RegisterGcp",
594 Handler: _DeveloperRegistrationService_RegisterGcp_Handler,
595 },
596 {
597 MethodName: "GetDeveloperRegistration",
598 Handler: _DeveloperRegistrationService_GetDeveloperRegistration_Handler,
599 },
600 {
601 MethodName: "UnregisterGcp",
602 Handler: _DeveloperRegistrationService_UnregisterGcp_Handler,
603 },
604 },
605 Streams: []grpc.StreamDesc{},
606 Metadata: "google/shopping/merchant/accounts/v1/developerregistration.proto",
607 }