Debian Codegraph @

googleapis/devtools/sourcerepo/v1/sourcerepo.pb.go

raw
1 // Copyright 2017 Google Inc.
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.26.0
18 // protoc v3.12.2
19 // source: google/devtools/sourcerepo/v1/sourcerepo.proto
20
21 package sourcerepo
22
23 import (
24 context "context"
25 reflect "reflect"
26 sync "sync"
27
28 _ "google.golang.org/genproto/googleapis/api/annotations"
29 v1 "google.golang.org/genproto/googleapis/iam/v1"
30 grpc "google.golang.org/grpc"
31 codes "google.golang.org/grpc/codes"
32 status "google.golang.org/grpc/status"
33 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
34 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
35 emptypb "google.golang.org/protobuf/types/known/emptypb"
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 // A repository (or repo) is a Git repository storing versioned source content.
46 type Repo struct {
47 state protoimpl.MessageState
48 sizeCache protoimpl.SizeCache
49 unknownFields protoimpl.UnknownFields
50
51 // Resource name of the repository, of the form
52 // `projects/<project>/repos/<repo>`. The repo name may contain slashes.
53 // eg, `projects/myproject/repos/name/with/slash`
54 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
55 // The disk usage of the repo, in bytes. Read-only field. Size is only
56 // returned by GetRepo.
57 Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
58 // URL to clone the repository from Google Cloud Source Repositories.
59 // Read-only field.
60 Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
61 // How this repository mirrors a repository managed by another service.
62 // Read-only field.
63 MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig,proto3" json:"mirror_config,omitempty"`
64 }
65
66 func (x *Repo) Reset() {
67 *x = Repo{}
68 if protoimpl.UnsafeEnabled {
69 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[0]
70 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
71 ms.StoreMessageInfo(mi)
72 }
73 }
74
75 func (x *Repo) String() string {
76 return protoimpl.X.MessageStringOf(x)
77 }
78
79 func (*Repo) ProtoMessage() {}
80
81 func (x *Repo) ProtoReflect() protoreflect.Message {
82 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[0]
83 if protoimpl.UnsafeEnabled && x != nil {
84 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
85 if ms.LoadMessageInfo() == nil {
86 ms.StoreMessageInfo(mi)
87 }
88 return ms
89 }
90 return mi.MessageOf(x)
91 }
92
93 // Deprecated: Use Repo.ProtoReflect.Descriptor instead.
94 func (*Repo) Descriptor() ([]byte, []int) {
95 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{0}
96 }
97
98 func (x *Repo) GetName() string {
99 if x != nil {
100 return x.Name
101 }
102 return ""
103 }
104
105 func (x *Repo) GetSize() int64 {
106 if x != nil {
107 return x.Size
108 }
109 return 0
110 }
111
112 func (x *Repo) GetUrl() string {
113 if x != nil {
114 return x.Url
115 }
116 return ""
117 }
118
119 func (x *Repo) GetMirrorConfig() *MirrorConfig {
120 if x != nil {
121 return x.MirrorConfig
122 }
123 return nil
124 }
125
126 // Configuration to automatically mirror a repository from another
127 // hosting service, for example GitHub or BitBucket.
128 type MirrorConfig struct {
129 state protoimpl.MessageState
130 sizeCache protoimpl.SizeCache
131 unknownFields protoimpl.UnknownFields
132
133 // URL of the main repository at the other hosting service.
134 Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
135 // ID of the webhook listening to updates to trigger mirroring.
136 // Removing this webhook from the other hosting service will stop
137 // Google Cloud Source Repositories from receiving notifications,
138 // and thereby disabling mirroring.
139 WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
140 // ID of the SSH deploy key at the other hosting service.
141 // Removing this key from the other service would deauthorize
142 // Google Cloud Source Repositories from mirroring.
143 DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId,proto3" json:"deploy_key_id,omitempty"`
144 }
145
146 func (x *MirrorConfig) Reset() {
147 *x = MirrorConfig{}
148 if protoimpl.UnsafeEnabled {
149 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[1]
150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
151 ms.StoreMessageInfo(mi)
152 }
153 }
154
155 func (x *MirrorConfig) String() string {
156 return protoimpl.X.MessageStringOf(x)
157 }
158
159 func (*MirrorConfig) ProtoMessage() {}
160
161 func (x *MirrorConfig) ProtoReflect() protoreflect.Message {
162 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[1]
163 if protoimpl.UnsafeEnabled && x != nil {
164 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
165 if ms.LoadMessageInfo() == nil {
166 ms.StoreMessageInfo(mi)
167 }
168 return ms
169 }
170 return mi.MessageOf(x)
171 }
172
173 // Deprecated: Use MirrorConfig.ProtoReflect.Descriptor instead.
174 func (*MirrorConfig) Descriptor() ([]byte, []int) {
175 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{1}
176 }
177
178 func (x *MirrorConfig) GetUrl() string {
179 if x != nil {
180 return x.Url
181 }
182 return ""
183 }
184
185 func (x *MirrorConfig) GetWebhookId() string {
186 if x != nil {
187 return x.WebhookId
188 }
189 return ""
190 }
191
192 func (x *MirrorConfig) GetDeployKeyId() string {
193 if x != nil {
194 return x.DeployKeyId
195 }
196 return ""
197 }
198
199 // Request for GetRepo.
200 type GetRepoRequest struct {
201 state protoimpl.MessageState
202 sizeCache protoimpl.SizeCache
203 unknownFields protoimpl.UnknownFields
204
205 // The name of the requested repository. Values are of the form
206 // `projects/<project>/repos/<repo>`.
207 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
208 }
209
210 func (x *GetRepoRequest) Reset() {
211 *x = GetRepoRequest{}
212 if protoimpl.UnsafeEnabled {
213 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[2]
214 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
215 ms.StoreMessageInfo(mi)
216 }
217 }
218
219 func (x *GetRepoRequest) String() string {
220 return protoimpl.X.MessageStringOf(x)
221 }
222
223 func (*GetRepoRequest) ProtoMessage() {}
224
225 func (x *GetRepoRequest) ProtoReflect() protoreflect.Message {
226 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[2]
227 if protoimpl.UnsafeEnabled && x != nil {
228 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
229 if ms.LoadMessageInfo() == nil {
230 ms.StoreMessageInfo(mi)
231 }
232 return ms
233 }
234 return mi.MessageOf(x)
235 }
236
237 // Deprecated: Use GetRepoRequest.ProtoReflect.Descriptor instead.
238 func (*GetRepoRequest) Descriptor() ([]byte, []int) {
239 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{2}
240 }
241
242 func (x *GetRepoRequest) GetName() string {
243 if x != nil {
244 return x.Name
245 }
246 return ""
247 }
248
249 // Request for ListRepos.
250 type ListReposRequest struct {
251 state protoimpl.MessageState
252 sizeCache protoimpl.SizeCache
253 unknownFields protoimpl.UnknownFields
254
255 // The project ID whose repos should be listed. Values are of the form
256 // `projects/<project>`.
257 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
258 // Maximum number of repositories to return; between 1 and 500.
259 // If not set or zero, defaults to 100 at the server.
260 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
261 // Resume listing repositories where a prior ListReposResponse
262 // left off. This is an opaque token that must be obtained from
263 // a recent, prior ListReposResponse's next_page_token field.
264 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
265 }
266
267 func (x *ListReposRequest) Reset() {
268 *x = ListReposRequest{}
269 if protoimpl.UnsafeEnabled {
270 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[3]
271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
272 ms.StoreMessageInfo(mi)
273 }
274 }
275
276 func (x *ListReposRequest) String() string {
277 return protoimpl.X.MessageStringOf(x)
278 }
279
280 func (*ListReposRequest) ProtoMessage() {}
281
282 func (x *ListReposRequest) ProtoReflect() protoreflect.Message {
283 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[3]
284 if protoimpl.UnsafeEnabled && x != nil {
285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
286 if ms.LoadMessageInfo() == nil {
287 ms.StoreMessageInfo(mi)
288 }
289 return ms
290 }
291 return mi.MessageOf(x)
292 }
293
294 // Deprecated: Use ListReposRequest.ProtoReflect.Descriptor instead.
295 func (*ListReposRequest) Descriptor() ([]byte, []int) {
296 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{3}
297 }
298
299 func (x *ListReposRequest) GetName() string {
300 if x != nil {
301 return x.Name
302 }
303 return ""
304 }
305
306 func (x *ListReposRequest) GetPageSize() int32 {
307 if x != nil {
308 return x.PageSize
309 }
310 return 0
311 }
312
313 func (x *ListReposRequest) GetPageToken() string {
314 if x != nil {
315 return x.PageToken
316 }
317 return ""
318 }
319
320 // Response for ListRepos. The size is not set in the returned repositories.
321 type ListReposResponse struct {
322 state protoimpl.MessageState
323 sizeCache protoimpl.SizeCache
324 unknownFields protoimpl.UnknownFields
325
326 // The listed repos.
327 Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
328 // If non-empty, additional repositories exist within the project. These
329 // can be retrieved by including this value in the next ListReposRequest's
330 // page_token field.
331 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
332 }
333
334 func (x *ListReposResponse) Reset() {
335 *x = ListReposResponse{}
336 if protoimpl.UnsafeEnabled {
337 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[4]
338 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
339 ms.StoreMessageInfo(mi)
340 }
341 }
342
343 func (x *ListReposResponse) String() string {
344 return protoimpl.X.MessageStringOf(x)
345 }
346
347 func (*ListReposResponse) ProtoMessage() {}
348
349 func (x *ListReposResponse) ProtoReflect() protoreflect.Message {
350 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[4]
351 if protoimpl.UnsafeEnabled && x != nil {
352 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
353 if ms.LoadMessageInfo() == nil {
354 ms.StoreMessageInfo(mi)
355 }
356 return ms
357 }
358 return mi.MessageOf(x)
359 }
360
361 // Deprecated: Use ListReposResponse.ProtoReflect.Descriptor instead.
362 func (*ListReposResponse) Descriptor() ([]byte, []int) {
363 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{4}
364 }
365
366 func (x *ListReposResponse) GetRepos() []*Repo {
367 if x != nil {
368 return x.Repos
369 }
370 return nil
371 }
372
373 func (x *ListReposResponse) GetNextPageToken() string {
374 if x != nil {
375 return x.NextPageToken
376 }
377 return ""
378 }
379
380 // Request for CreateRepo
381 type CreateRepoRequest struct {
382 state protoimpl.MessageState
383 sizeCache protoimpl.SizeCache
384 unknownFields protoimpl.UnknownFields
385
386 // The project in which to create the repo. Values are of the form
387 // `projects/<project>`.
388 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
389 // The repo to create. Only name should be set; setting other fields
390 // is an error. The project in the name should match the parent field.
391 Repo *Repo `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
392 }
393
394 func (x *CreateRepoRequest) Reset() {
395 *x = CreateRepoRequest{}
396 if protoimpl.UnsafeEnabled {
397 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[5]
398 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
399 ms.StoreMessageInfo(mi)
400 }
401 }
402
403 func (x *CreateRepoRequest) String() string {
404 return protoimpl.X.MessageStringOf(x)
405 }
406
407 func (*CreateRepoRequest) ProtoMessage() {}
408
409 func (x *CreateRepoRequest) ProtoReflect() protoreflect.Message {
410 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[5]
411 if protoimpl.UnsafeEnabled && x != nil {
412 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
413 if ms.LoadMessageInfo() == nil {
414 ms.StoreMessageInfo(mi)
415 }
416 return ms
417 }
418 return mi.MessageOf(x)
419 }
420
421 // Deprecated: Use CreateRepoRequest.ProtoReflect.Descriptor instead.
422 func (*CreateRepoRequest) Descriptor() ([]byte, []int) {
423 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{5}
424 }
425
426 func (x *CreateRepoRequest) GetParent() string {
427 if x != nil {
428 return x.Parent
429 }
430 return ""
431 }
432
433 func (x *CreateRepoRequest) GetRepo() *Repo {
434 if x != nil {
435 return x.Repo
436 }
437 return nil
438 }
439
440 // Request for DeleteRepo.
441 type DeleteRepoRequest struct {
442 state protoimpl.MessageState
443 sizeCache protoimpl.SizeCache
444 unknownFields protoimpl.UnknownFields
445
446 // The name of the repo to delete. Values are of the form
447 // `projects/<project>/repos/<repo>`.
448 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
449 }
450
451 func (x *DeleteRepoRequest) Reset() {
452 *x = DeleteRepoRequest{}
453 if protoimpl.UnsafeEnabled {
454 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[6]
455 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
456 ms.StoreMessageInfo(mi)
457 }
458 }
459
460 func (x *DeleteRepoRequest) String() string {
461 return protoimpl.X.MessageStringOf(x)
462 }
463
464 func (*DeleteRepoRequest) ProtoMessage() {}
465
466 func (x *DeleteRepoRequest) ProtoReflect() protoreflect.Message {
467 mi := &file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[6]
468 if protoimpl.UnsafeEnabled && x != nil {
469 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
470 if ms.LoadMessageInfo() == nil {
471 ms.StoreMessageInfo(mi)
472 }
473 return ms
474 }
475 return mi.MessageOf(x)
476 }
477
478 // Deprecated: Use DeleteRepoRequest.ProtoReflect.Descriptor instead.
479 func (*DeleteRepoRequest) Descriptor() ([]byte, []int) {
480 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP(), []int{6}
481 }
482
483 func (x *DeleteRepoRequest) GetName() string {
484 if x != nil {
485 return x.Name
486 }
487 return ""
488 }
489
490 var File_google_devtools_sourcerepo_v1_sourcerepo_proto protoreflect.FileDescriptor
491
492 var file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDesc = []byte{
493 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
494 0x73, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2f, 0x76, 0x31, 0x2f,
495 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
496 0x12, 0x1d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
497 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x1a,
498 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f,
499 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1e, 0x67,
500 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x69, 0x61, 0x6d,
501 0x5f, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1a, 0x67,
502 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x69, 0x61, 0x6d, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x6f, 0x6c,
503 0x69, 0x63, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
504 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79,
505 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x92, 0x01, 0x0a, 0x04, 0x52, 0x65, 0x70, 0x6f, 0x12,
506 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e,
507 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
508 0x03, 0x52, 0x04, 0x73, 0x69, 0x7a, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03,
509 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x50, 0x0a, 0x0d, 0x6d, 0x69, 0x72,
510 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b,
511 0x32, 0x2b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f,
512 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31,
513 0x2e, 0x4d, 0x69, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x0c, 0x6d,
514 0x69, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x22, 0x63, 0x0a, 0x0c, 0x4d,
515 0x69, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75,
516 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75, 0x72, 0x6c, 0x12, 0x1d, 0x0a,
517 0x0a, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28,
518 0x09, 0x52, 0x09, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x49, 0x64, 0x12, 0x22, 0x0a, 0x0d,
519 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x5f, 0x6b, 0x65, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x03, 0x20,
520 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x4b, 0x65, 0x79, 0x49, 0x64,
521 0x22, 0x24, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65,
522 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
523 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x62, 0x0a, 0x10, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65,
524 0x70, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
525 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b,
526 0x0a, 0x09, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x73, 0x69, 0x7a, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
527 0x05, 0x52, 0x08, 0x70, 0x61, 0x67, 0x65, 0x53, 0x69, 0x7a, 0x65, 0x12, 0x1d, 0x0a, 0x0a, 0x70,
528 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52,
529 0x09, 0x70, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x76, 0x0a, 0x11, 0x4c, 0x69,
530 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
531 0x39, 0x0a, 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x23,
532 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
533 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x52,
534 0x65, 0x70, 0x6f, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x65,
535 0x78, 0x74, 0x5f, 0x70, 0x61, 0x67, 0x65, 0x5f, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20,
536 0x01, 0x28, 0x09, 0x52, 0x0d, 0x6e, 0x65, 0x78, 0x74, 0x50, 0x61, 0x67, 0x65, 0x54, 0x6f, 0x6b,
537 0x65, 0x6e, 0x22, 0x64, 0x0a, 0x11, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f,
538 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e,
539 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x12,
540 0x37, 0x0a, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x23, 0x2e,
541 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e,
542 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65,
543 0x70, 0x6f, 0x52, 0x04, 0x72, 0x65, 0x70, 0x6f, 0x22, 0x27, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65,
544 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a,
545 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d,
546 0x65, 0x32, 0xf8, 0x07, 0x0a, 0x0a, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f,
547 0x12, 0x93, 0x01, 0x0a, 0x09, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x12, 0x2f,
548 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73,
549 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x4c,
550 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
551 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
552 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e,
553 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
554 0x65, 0x22, 0x23, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1d, 0x12, 0x1b, 0x2f, 0x76, 0x31, 0x2f, 0x7b,
555 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x7d,
556 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x12, 0x85, 0x01, 0x0a, 0x07, 0x47, 0x65, 0x74, 0x52, 0x65,
557 0x70, 0x6f, 0x12, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74,
558 0x6f, 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e,
559 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
560 0x74, 0x1a, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
561 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76,
562 0x31, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x20, 0x12, 0x1e,
563 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
564 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x2f, 0x2a, 0x2a, 0x7d, 0x12, 0x90,
565 0x01, 0x0a, 0x0a, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x30, 0x2e,
566 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c, 0x73, 0x2e,
567 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x72,
568 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
569 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
570 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e,
571 0x52, 0x65, 0x70, 0x6f, 0x22, 0x2b, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x22, 0x1d, 0x2f, 0x76,
572 0x31, 0x2f, 0x7b, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63,
573 0x74, 0x73, 0x2f, 0x2a, 0x7d, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x3a, 0x04, 0x72, 0x65, 0x70,
574 0x6f, 0x12, 0x7e, 0x0a, 0x0a, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x12,
575 0x30, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f, 0x6f, 0x6c,
576 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76, 0x31, 0x2e,
577 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,
578 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
579 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x22, 0x26, 0x82, 0xd3, 0xe4, 0x93, 0x02,
580 0x20, 0x2a, 0x1e, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x70, 0x72, 0x6f,
581 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x2f, 0x2a, 0x2a,
582 0x7d, 0x12, 0x85, 0x01, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69,
583 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e,
584 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52,
585 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
586 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x3a, 0x82,
587 0xd3, 0xe4, 0x93, 0x02, 0x34, 0x22, 0x2f, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f,
588 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f,
589 0x72, 0x65, 0x70, 0x6f, 0x73, 0x2f, 0x2a, 0x2a, 0x7d, 0x3a, 0x73, 0x65, 0x74, 0x49, 0x61, 0x6d,
590 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x3a, 0x01, 0x2a, 0x12, 0x82, 0x01, 0x0a, 0x0c, 0x47, 0x65,
591 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x22, 0x2e, 0x67, 0x6f, 0x6f,
592 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x49, 0x61,
593 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15,
594 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x50,
595 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x37, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x31, 0x12, 0x2f, 0x2f,
596 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x3d, 0x70, 0x72, 0x6f,
597 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x2f, 0x2a, 0x2a,
598 0x7d, 0x3a, 0x67, 0x65, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0xab,
599 0x01, 0x0a, 0x12, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73,
600 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69,
601 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72,
602 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
603 0x29, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x69, 0x61, 0x6d, 0x2e, 0x76, 0x31, 0x2e,
604 0x54, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65, 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f,
605 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x40, 0x82, 0xd3, 0xe4, 0x93,
606 0x02, 0x3a, 0x22, 0x35, 0x2f, 0x76, 0x31, 0x2f, 0x7b, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
607 0x65, 0x3d, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x2a, 0x2f, 0x72, 0x65, 0x70,
608 0x6f, 0x73, 0x2f, 0x2a, 0x2a, 0x7d, 0x3a, 0x74, 0x65, 0x73, 0x74, 0x49, 0x61, 0x6d, 0x50, 0x65,
609 0x72, 0x6d, 0x69, 0x73, 0x73, 0x69, 0x6f, 0x6e, 0x73, 0x3a, 0x01, 0x2a, 0x42, 0x7f, 0x0a, 0x21,
610 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x64, 0x65, 0x76, 0x74, 0x6f,
611 0x6f, 0x6c, 0x73, 0x2e, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2e, 0x76,
612 0x31, 0x42, 0x0f, 0x53, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6f, 0x50, 0x72, 0x6f,
613 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x47, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
614 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
615 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x64, 0x65, 0x76, 0x74,
616 0x6f, 0x6f, 0x6c, 0x73, 0x2f, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x2f,
617 0x76, 0x31, 0x3b, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x72, 0x65, 0x70, 0x6f, 0x62, 0x06, 0x70,
618 0x72, 0x6f, 0x74, 0x6f, 0x33,
619 }
620
621 var (
622 file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescOnce sync.Once
623 file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescData = file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDesc
624 )
625
626 func file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescGZIP() []byte {
627 file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescOnce.Do(func() {
628 file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescData)
629 })
630 return file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDescData
631 }
632
633 var file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
634 var file_google_devtools_sourcerepo_v1_sourcerepo_proto_goTypes = []interface{}{
635 (*Repo)(nil), // 0: google.devtools.sourcerepo.v1.Repo
636 (*MirrorConfig)(nil), // 1: google.devtools.sourcerepo.v1.MirrorConfig
637 (*GetRepoRequest)(nil), // 2: google.devtools.sourcerepo.v1.GetRepoRequest
638 (*ListReposRequest)(nil), // 3: google.devtools.sourcerepo.v1.ListReposRequest
639 (*ListReposResponse)(nil), // 4: google.devtools.sourcerepo.v1.ListReposResponse
640 (*CreateRepoRequest)(nil), // 5: google.devtools.sourcerepo.v1.CreateRepoRequest
641 (*DeleteRepoRequest)(nil), // 6: google.devtools.sourcerepo.v1.DeleteRepoRequest
642 (*v1.SetIamPolicyRequest)(nil), // 7: google.iam.v1.SetIamPolicyRequest
643 (*v1.GetIamPolicyRequest)(nil), // 8: google.iam.v1.GetIamPolicyRequest
644 (*v1.TestIamPermissionsRequest)(nil), // 9: google.iam.v1.TestIamPermissionsRequest
645 (*emptypb.Empty)(nil), // 10: google.protobuf.Empty
646 (*v1.Policy)(nil), // 11: google.iam.v1.Policy
647 (*v1.TestIamPermissionsResponse)(nil), // 12: google.iam.v1.TestIamPermissionsResponse
648 }
649 var file_google_devtools_sourcerepo_v1_sourcerepo_proto_depIdxs = []int32{
650 1, // 0: google.devtools.sourcerepo.v1.Repo.mirror_config:type_name -> google.devtools.sourcerepo.v1.MirrorConfig
651 0, // 1: google.devtools.sourcerepo.v1.ListReposResponse.repos:type_name -> google.devtools.sourcerepo.v1.Repo
652 0, // 2: google.devtools.sourcerepo.v1.CreateRepoRequest.repo:type_name -> google.devtools.sourcerepo.v1.Repo
653 3, // 3: google.devtools.sourcerepo.v1.SourceRepo.ListRepos:input_type -> google.devtools.sourcerepo.v1.ListReposRequest
654 2, // 4: google.devtools.sourcerepo.v1.SourceRepo.GetRepo:input_type -> google.devtools.sourcerepo.v1.GetRepoRequest
655 5, // 5: google.devtools.sourcerepo.v1.SourceRepo.CreateRepo:input_type -> google.devtools.sourcerepo.v1.CreateRepoRequest
656 6, // 6: google.devtools.sourcerepo.v1.SourceRepo.DeleteRepo:input_type -> google.devtools.sourcerepo.v1.DeleteRepoRequest
657 7, // 7: google.devtools.sourcerepo.v1.SourceRepo.SetIamPolicy:input_type -> google.iam.v1.SetIamPolicyRequest
658 8, // 8: google.devtools.sourcerepo.v1.SourceRepo.GetIamPolicy:input_type -> google.iam.v1.GetIamPolicyRequest
659 9, // 9: google.devtools.sourcerepo.v1.SourceRepo.TestIamPermissions:input_type -> google.iam.v1.TestIamPermissionsRequest
660 4, // 10: google.devtools.sourcerepo.v1.SourceRepo.ListRepos:output_type -> google.devtools.sourcerepo.v1.ListReposResponse
661 0, // 11: google.devtools.sourcerepo.v1.SourceRepo.GetRepo:output_type -> google.devtools.sourcerepo.v1.Repo
662 0, // 12: google.devtools.sourcerepo.v1.SourceRepo.CreateRepo:output_type -> google.devtools.sourcerepo.v1.Repo
663 10, // 13: google.devtools.sourcerepo.v1.SourceRepo.DeleteRepo:output_type -> google.protobuf.Empty
664 11, // 14: google.devtools.sourcerepo.v1.SourceRepo.SetIamPolicy:output_type -> google.iam.v1.Policy
665 11, // 15: google.devtools.sourcerepo.v1.SourceRepo.GetIamPolicy:output_type -> google.iam.v1.Policy
666 12, // 16: google.devtools.sourcerepo.v1.SourceRepo.TestIamPermissions:output_type -> google.iam.v1.TestIamPermissionsResponse
667 10, // [10:17] is the sub-list for method output_type
668 3, // [3:10] is the sub-list for method input_type
669 3, // [3:3] is the sub-list for extension type_name
670 3, // [3:3] is the sub-list for extension extendee
671 0, // [0:3] is the sub-list for field type_name
672 }
673
674 func init() { file_google_devtools_sourcerepo_v1_sourcerepo_proto_init() }
675 func file_google_devtools_sourcerepo_v1_sourcerepo_proto_init() {
676 if File_google_devtools_sourcerepo_v1_sourcerepo_proto != nil {
677 return
678 }
679 if !protoimpl.UnsafeEnabled {
680 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
681 switch v := v.(*Repo); i {
682 case 0:
683 return &v.state
684 case 1:
685 return &v.sizeCache
686 case 2:
687 return &v.unknownFields
688 default:
689 return nil
690 }
691 }
692 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
693 switch v := v.(*MirrorConfig); i {
694 case 0:
695 return &v.state
696 case 1:
697 return &v.sizeCache
698 case 2:
699 return &v.unknownFields
700 default:
701 return nil
702 }
703 }
704 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
705 switch v := v.(*GetRepoRequest); i {
706 case 0:
707 return &v.state
708 case 1:
709 return &v.sizeCache
710 case 2:
711 return &v.unknownFields
712 default:
713 return nil
714 }
715 }
716 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
717 switch v := v.(*ListReposRequest); i {
718 case 0:
719 return &v.state
720 case 1:
721 return &v.sizeCache
722 case 2:
723 return &v.unknownFields
724 default:
725 return nil
726 }
727 }
728 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
729 switch v := v.(*ListReposResponse); i {
730 case 0:
731 return &v.state
732 case 1:
733 return &v.sizeCache
734 case 2:
735 return &v.unknownFields
736 default:
737 return nil
738 }
739 }
740 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
741 switch v := v.(*CreateRepoRequest); i {
742 case 0:
743 return &v.state
744 case 1:
745 return &v.sizeCache
746 case 2:
747 return &v.unknownFields
748 default:
749 return nil
750 }
751 }
752 file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
753 switch v := v.(*DeleteRepoRequest); i {
754 case 0:
755 return &v.state
756 case 1:
757 return &v.sizeCache
758 case 2:
759 return &v.unknownFields
760 default:
761 return nil
762 }
763 }
764 }
765 type x struct{}
766 out := protoimpl.TypeBuilder{
767 File: protoimpl.DescBuilder{
768 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
769 RawDescriptor: file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDesc,
770 NumEnums: 0,
771 NumMessages: 7,
772 NumExtensions: 0,
773 NumServices: 1,
774 },
775 GoTypes: file_google_devtools_sourcerepo_v1_sourcerepo_proto_goTypes,
776 DependencyIndexes: file_google_devtools_sourcerepo_v1_sourcerepo_proto_depIdxs,
777 MessageInfos: file_google_devtools_sourcerepo_v1_sourcerepo_proto_msgTypes,
778 }.Build()
779 File_google_devtools_sourcerepo_v1_sourcerepo_proto = out.File
780 file_google_devtools_sourcerepo_v1_sourcerepo_proto_rawDesc = nil
781 file_google_devtools_sourcerepo_v1_sourcerepo_proto_goTypes = nil
782 file_google_devtools_sourcerepo_v1_sourcerepo_proto_depIdxs = nil
783 }
784
785 // Reference imports to suppress errors if they are not otherwise used.
786 var _ context.Context
787 var _ grpc.ClientConnInterface
788
789 // This is a compile-time assertion to ensure that this generated file
790 // is compatible with the grpc package it is being compiled against.
791 const _ = grpc.SupportPackageIsVersion6
792
793 // SourceRepoClient is the client API for SourceRepo service.
794 //
795 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
796 type SourceRepoClient interface {
797 // Returns all repos belonging to a project. The sizes of the repos are
798 // not set by ListRepos. To get the size of a repo, use GetRepo.
799 ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error)
800 // Returns information about a repo.
801 GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error)
802 // Creates a repo in the given project with the given name.
803 //
804 // If the named repository already exists, `CreateRepo` returns
805 // `ALREADY_EXISTS`.
806 CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
807 // Deletes a repo.
808 DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
809 // Sets the access control policy on the specified resource. Replaces any
810 // existing policy.
811 SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
812 // Gets the access control policy for a resource.
813 // Returns an empty policy if the resource exists and does not have a policy
814 // set.
815 GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
816 // Returns permissions that a caller has on the specified resource.
817 // If the resource does not exist, this will return an empty set of
818 // permissions, not a NOT_FOUND error.
819 TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
820 }
821
822 type sourceRepoClient struct {
823 cc grpc.ClientConnInterface
824 }
825
826 func NewSourceRepoClient(cc grpc.ClientConnInterface) SourceRepoClient {
827 return &sourceRepoClient{cc}
828 }
829
830 func (c *sourceRepoClient) ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error) {
831 out := new(ListReposResponse)
832 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, opts...)
833 if err != nil {
834 return nil, err
835 }
836 return out, nil
837 }
838
839 func (c *sourceRepoClient) GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
840 out := new(Repo)
841 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, opts...)
842 if err != nil {
843 return nil, err
844 }
845 return out, nil
846 }
847
848 func (c *sourceRepoClient) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
849 out := new(Repo)
850 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, opts...)
851 if err != nil {
852 return nil, err
853 }
854 return out, nil
855 }
856
857 func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
858 out := new(emptypb.Empty)
859 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, opts...)
860 if err != nil {
861 return nil, err
862 }
863 return out, nil
864 }
865
866 func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
867 out := new(v1.Policy)
868 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, opts...)
869 if err != nil {
870 return nil, err
871 }
872 return out, nil
873 }
874
875 func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
876 out := new(v1.Policy)
877 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, opts...)
878 if err != nil {
879 return nil, err
880 }
881 return out, nil
882 }
883
884 func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
885 out := new(v1.TestIamPermissionsResponse)
886 err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, opts...)
887 if err != nil {
888 return nil, err
889 }
890 return out, nil
891 }
892
893 // SourceRepoServer is the server API for SourceRepo service.
894 type SourceRepoServer interface {
895 // Returns all repos belonging to a project. The sizes of the repos are
896 // not set by ListRepos. To get the size of a repo, use GetRepo.
897 ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
898 // Returns information about a repo.
899 GetRepo(context.Context, *GetRepoRequest) (*Repo, error)
900 // Creates a repo in the given project with the given name.
901 //
902 // If the named repository already exists, `CreateRepo` returns
903 // `ALREADY_EXISTS`.
904 CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
905 // Deletes a repo.
906 DeleteRepo(context.Context, *DeleteRepoRequest) (*emptypb.Empty, error)
907 // Sets the access control policy on the specified resource. Replaces any
908 // existing policy.
909 SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
910 // Gets the access control policy for a resource.
911 // Returns an empty policy if the resource exists and does not have a policy
912 // set.
913 GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
914 // Returns permissions that a caller has on the specified resource.
915 // If the resource does not exist, this will return an empty set of
916 // permissions, not a NOT_FOUND error.
917 TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
918 }
919
920 // UnimplementedSourceRepoServer can be embedded to have forward compatible implementations.
921 type UnimplementedSourceRepoServer struct {
922 }
923
924 func (*UnimplementedSourceRepoServer) ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error) {
925 return nil, status.Errorf(codes.Unimplemented, "method ListRepos not implemented")
926 }
927 func (*UnimplementedSourceRepoServer) GetRepo(context.Context, *GetRepoRequest) (*Repo, error) {
928 return nil, status.Errorf(codes.Unimplemented, "method GetRepo not implemented")
929 }
930 func (*UnimplementedSourceRepoServer) CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error) {
931 return nil, status.Errorf(codes.Unimplemented, "method CreateRepo not implemented")
932 }
933 func (*UnimplementedSourceRepoServer) DeleteRepo(context.Context, *DeleteRepoRequest) (*emptypb.Empty, error) {
934 return nil, status.Errorf(codes.Unimplemented, "method DeleteRepo not implemented")
935 }
936 func (*UnimplementedSourceRepoServer) SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error) {
937 return nil, status.Errorf(codes.Unimplemented, "method SetIamPolicy not implemented")
938 }
939 func (*UnimplementedSourceRepoServer) GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error) {
940 return nil, status.Errorf(codes.Unimplemented, "method GetIamPolicy not implemented")
941 }
942 func (*UnimplementedSourceRepoServer) TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error) {
943 return nil, status.Errorf(codes.Unimplemented, "method TestIamPermissions not implemented")
944 }
945
946 func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer) {
947 s.RegisterService(&_SourceRepo_serviceDesc, srv)
948 }
949
950 func _SourceRepo_ListRepos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
951 in := new(ListReposRequest)
952 if err := dec(in); err != nil {
953 return nil, err
954 }
955 if interceptor == nil {
956 return srv.(SourceRepoServer).ListRepos(ctx, in)
957 }
958 info := &grpc.UnaryServerInfo{
959 Server: srv,
960 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos",
961 }
962 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
963 return srv.(SourceRepoServer).ListRepos(ctx, req.(*ListReposRequest))
964 }
965 return interceptor(ctx, in, info, handler)
966 }
967
968 func _SourceRepo_GetRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
969 in := new(GetRepoRequest)
970 if err := dec(in); err != nil {
971 return nil, err
972 }
973 if interceptor == nil {
974 return srv.(SourceRepoServer).GetRepo(ctx, in)
975 }
976 info := &grpc.UnaryServerInfo{
977 Server: srv,
978 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo",
979 }
980 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
981 return srv.(SourceRepoServer).GetRepo(ctx, req.(*GetRepoRequest))
982 }
983 return interceptor(ctx, in, info, handler)
984 }
985
986 func _SourceRepo_CreateRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
987 in := new(CreateRepoRequest)
988 if err := dec(in); err != nil {
989 return nil, err
990 }
991 if interceptor == nil {
992 return srv.(SourceRepoServer).CreateRepo(ctx, in)
993 }
994 info := &grpc.UnaryServerInfo{
995 Server: srv,
996 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo",
997 }
998 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
999 return srv.(SourceRepoServer).CreateRepo(ctx, req.(*CreateRepoRequest))
1000 }
1001 return interceptor(ctx, in, info, handler)
1002 }
1003
1004 func _SourceRepo_DeleteRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1005 in := new(DeleteRepoRequest)
1006 if err := dec(in); err != nil {
1007 return nil, err
1008 }
1009 if interceptor == nil {
1010 return srv.(SourceRepoServer).DeleteRepo(ctx, in)
1011 }
1012 info := &grpc.UnaryServerInfo{
1013 Server: srv,
1014 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo",
1015 }
1016 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1017 return srv.(SourceRepoServer).DeleteRepo(ctx, req.(*DeleteRepoRequest))
1018 }
1019 return interceptor(ctx, in, info, handler)
1020 }
1021
1022 func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1023 in := new(v1.SetIamPolicyRequest)
1024 if err := dec(in); err != nil {
1025 return nil, err
1026 }
1027 if interceptor == nil {
1028 return srv.(SourceRepoServer).SetIamPolicy(ctx, in)
1029 }
1030 info := &grpc.UnaryServerInfo{
1031 Server: srv,
1032 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy",
1033 }
1034 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1035 return srv.(SourceRepoServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
1036 }
1037 return interceptor(ctx, in, info, handler)
1038 }
1039
1040 func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1041 in := new(v1.GetIamPolicyRequest)
1042 if err := dec(in); err != nil {
1043 return nil, err
1044 }
1045 if interceptor == nil {
1046 return srv.(SourceRepoServer).GetIamPolicy(ctx, in)
1047 }
1048 info := &grpc.UnaryServerInfo{
1049 Server: srv,
1050 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy",
1051 }
1052 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1053 return srv.(SourceRepoServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
1054 }
1055 return interceptor(ctx, in, info, handler)
1056 }
1057
1058 func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1059 in := new(v1.TestIamPermissionsRequest)
1060 if err := dec(in); err != nil {
1061 return nil, err
1062 }
1063 if interceptor == nil {
1064 return srv.(SourceRepoServer).TestIamPermissions(ctx, in)
1065 }
1066 info := &grpc.UnaryServerInfo{
1067 Server: srv,
1068 FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions",
1069 }
1070 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1071 return srv.(SourceRepoServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
1072 }
1073 return interceptor(ctx, in, info, handler)
1074 }
1075
1076 var _SourceRepo_serviceDesc = grpc.ServiceDesc{
1077 ServiceName: "google.devtools.sourcerepo.v1.SourceRepo",
1078 HandlerType: (*SourceRepoServer)(nil),
1079 Methods: []grpc.MethodDesc{
1080 {
1081 MethodName: "ListRepos",
1082 Handler: _SourceRepo_ListRepos_Handler,
1083 },
1084 {
1085 MethodName: "GetRepo",
1086 Handler: _SourceRepo_GetRepo_Handler,
1087 },
1088 {
1089 MethodName: "CreateRepo",
1090 Handler: _SourceRepo_CreateRepo_Handler,
1091 },
1092 {
1093 MethodName: "DeleteRepo",
1094 Handler: _SourceRepo_DeleteRepo_Handler,
1095 },
1096 {
1097 MethodName: "SetIamPolicy",
1098 Handler: _SourceRepo_SetIamPolicy_Handler,
1099 },
1100 {
1101 MethodName: "GetIamPolicy",
1102 Handler: _SourceRepo_GetIamPolicy_Handler,
1103 },
1104 {
1105 MethodName: "TestIamPermissions",
1106 Handler: _SourceRepo_TestIamPermissions_Handler,
1107 },
1108 },
1109 Streams: []grpc.StreamDesc{},
1110 Metadata: "google/devtools/sourcerepo/v1/sourcerepo.proto",
1111 }