/
sourcerepo.pb.go
636 lines (572 loc) · 25.4 KB
/
sourcerepo.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/devtools/sourcerepo/v1/sourcerepo.proto
/*
Package sourcerepo is a generated protocol buffer package.
It is generated from these files:
google/devtools/sourcerepo/v1/sourcerepo.proto
It has these top-level messages:
Repo
MirrorConfig
GetRepoRequest
ListReposRequest
ListReposResponse
CreateRepoRequest
DeleteRepoRequest
*/
package sourcerepo
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import google_iam_v11 "google.golang.org/genproto/googleapis/iam/v1"
import google_iam_v1 "google.golang.org/genproto/googleapis/iam/v1"
import google_protobuf1 "github.com/golang/protobuf/ptypes/empty"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// A repository (or repo) is a Git repository storing versioned source content.
type Repo struct {
// Resource name of the repository, of the form
// `projects/<project>/repos/<repo>`. The repo name may contain slashes.
// eg, `projects/myproject/repos/name/with/slash`
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// The disk usage of the repo, in bytes. Read-only field. Size is only
// returned by GetRepo.
Size int64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
// URL to clone the repository from Google Cloud Source Repositories.
// Read-only field.
Url string `protobuf:"bytes,3,opt,name=url" json:"url,omitempty"`
// How this repository mirrors a repository managed by another service.
// Read-only field.
MirrorConfig *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig" json:"mirror_config,omitempty"`
}
func (m *Repo) Reset() { *m = Repo{} }
func (m *Repo) String() string { return proto.CompactTextString(m) }
func (*Repo) ProtoMessage() {}
func (*Repo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *Repo) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Repo) GetSize() int64 {
if m != nil {
return m.Size
}
return 0
}
func (m *Repo) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *Repo) GetMirrorConfig() *MirrorConfig {
if m != nil {
return m.MirrorConfig
}
return nil
}
// Configuration to automatically mirror a repository from another
// hosting service, for example GitHub or BitBucket.
type MirrorConfig struct {
// URL of the main repository at the other hosting service.
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
// ID of the webhook listening to updates to trigger mirroring.
// Removing this webhook from the other hosting service will stop
// Google Cloud Source Repositories from receiving notifications,
// and thereby disabling mirroring.
WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId" json:"webhook_id,omitempty"`
// ID of the SSH deploy key at the other hosting service.
// Removing this key from the other service would deauthorize
// Google Cloud Source Repositories from mirroring.
DeployKeyId string `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId" json:"deploy_key_id,omitempty"`
}
func (m *MirrorConfig) Reset() { *m = MirrorConfig{} }
func (m *MirrorConfig) String() string { return proto.CompactTextString(m) }
func (*MirrorConfig) ProtoMessage() {}
func (*MirrorConfig) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *MirrorConfig) GetUrl() string {
if m != nil {
return m.Url
}
return ""
}
func (m *MirrorConfig) GetWebhookId() string {
if m != nil {
return m.WebhookId
}
return ""
}
func (m *MirrorConfig) GetDeployKeyId() string {
if m != nil {
return m.DeployKeyId
}
return ""
}
// Request for GetRepo.
type GetRepoRequest struct {
// The name of the requested repository. Values are of the form
// `projects/<project>/repos/<repo>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *GetRepoRequest) Reset() { *m = GetRepoRequest{} }
func (m *GetRepoRequest) String() string { return proto.CompactTextString(m) }
func (*GetRepoRequest) ProtoMessage() {}
func (*GetRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *GetRepoRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
// Request for ListRepos.
type ListReposRequest struct {
// The project ID whose repos should be listed. Values are of the form
// `projects/<project>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
// Maximum number of repositories to return; between 1 and 500.
// If not set or zero, defaults to 100 at the server.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
// Resume listing repositories where a prior ListReposResponse
// left off. This is an opaque token that must be obtained from
// a recent, prior ListReposResponse's next_page_token field.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
}
func (m *ListReposRequest) Reset() { *m = ListReposRequest{} }
func (m *ListReposRequest) String() string { return proto.CompactTextString(m) }
func (*ListReposRequest) ProtoMessage() {}
func (*ListReposRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *ListReposRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *ListReposRequest) GetPageSize() int32 {
if m != nil {
return m.PageSize
}
return 0
}
func (m *ListReposRequest) GetPageToken() string {
if m != nil {
return m.PageToken
}
return ""
}
// Response for ListRepos. The size is not set in the returned repositories.
type ListReposResponse struct {
// The listed repos.
Repos []*Repo `protobuf:"bytes,1,rep,name=repos" json:"repos,omitempty"`
// If non-empty, additional repositories exist within the project. These
// can be retrieved by including this value in the next ListReposRequest's
// page_token field.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
}
func (m *ListReposResponse) Reset() { *m = ListReposResponse{} }
func (m *ListReposResponse) String() string { return proto.CompactTextString(m) }
func (*ListReposResponse) ProtoMessage() {}
func (*ListReposResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ListReposResponse) GetRepos() []*Repo {
if m != nil {
return m.Repos
}
return nil
}
func (m *ListReposResponse) GetNextPageToken() string {
if m != nil {
return m.NextPageToken
}
return ""
}
// Request for CreateRepo
type CreateRepoRequest struct {
// The project in which to create the repo. Values are of the form
// `projects/<project>`.
Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
// The repo to create. Only name should be set; setting other fields
// is an error. The project in the name should match the parent field.
Repo *Repo `protobuf:"bytes,2,opt,name=repo" json:"repo,omitempty"`
}
func (m *CreateRepoRequest) Reset() { *m = CreateRepoRequest{} }
func (m *CreateRepoRequest) String() string { return proto.CompactTextString(m) }
func (*CreateRepoRequest) ProtoMessage() {}
func (*CreateRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *CreateRepoRequest) GetParent() string {
if m != nil {
return m.Parent
}
return ""
}
func (m *CreateRepoRequest) GetRepo() *Repo {
if m != nil {
return m.Repo
}
return nil
}
// Request for DeleteRepo.
type DeleteRepoRequest struct {
// The name of the repo to delete. Values are of the form
// `projects/<project>/repos/<repo>`.
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
func (m *DeleteRepoRequest) Reset() { *m = DeleteRepoRequest{} }
func (m *DeleteRepoRequest) String() string { return proto.CompactTextString(m) }
func (*DeleteRepoRequest) ProtoMessage() {}
func (*DeleteRepoRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
func (m *DeleteRepoRequest) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func init() {
proto.RegisterType((*Repo)(nil), "google.devtools.sourcerepo.v1.Repo")
proto.RegisterType((*MirrorConfig)(nil), "google.devtools.sourcerepo.v1.MirrorConfig")
proto.RegisterType((*GetRepoRequest)(nil), "google.devtools.sourcerepo.v1.GetRepoRequest")
proto.RegisterType((*ListReposRequest)(nil), "google.devtools.sourcerepo.v1.ListReposRequest")
proto.RegisterType((*ListReposResponse)(nil), "google.devtools.sourcerepo.v1.ListReposResponse")
proto.RegisterType((*CreateRepoRequest)(nil), "google.devtools.sourcerepo.v1.CreateRepoRequest")
proto.RegisterType((*DeleteRepoRequest)(nil), "google.devtools.sourcerepo.v1.DeleteRepoRequest")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// Client API for SourceRepo service
type SourceRepoClient interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error)
// Returns information about a repo.
GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error)
// Creates a repo in the given project with the given name.
//
// If the named repository already exists, `CreateRepo` returns
// `ALREADY_EXISTS`.
CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
// Deletes a repo.
DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error)
}
type sourceRepoClient struct {
cc *grpc.ClientConn
}
func NewSourceRepoClient(cc *grpc.ClientConn) SourceRepoClient {
return &sourceRepoClient{cc}
}
func (c *sourceRepoClient) ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error) {
out := new(ListReposResponse)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
out := new(Repo)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
out := new(Repo)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) {
out := new(google_protobuf1.Empty)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *google_iam_v11.SetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *google_iam_v11.GetIamPolicyRequest, opts ...grpc.CallOption) (*google_iam_v1.Policy, error) {
out := new(google_iam_v1.Policy)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *google_iam_v11.TestIamPermissionsRequest, opts ...grpc.CallOption) (*google_iam_v11.TestIamPermissionsResponse, error) {
out := new(google_iam_v11.TestIamPermissionsResponse)
err := grpc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for SourceRepo service
type SourceRepoServer interface {
// Returns all repos belonging to a project. The sizes of the repos are
// not set by ListRepos. To get the size of a repo, use GetRepo.
ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
// Returns information about a repo.
GetRepo(context.Context, *GetRepoRequest) (*Repo, error)
// Creates a repo in the given project with the given name.
//
// If the named repository already exists, `CreateRepo` returns
// `ALREADY_EXISTS`.
CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
// Deletes a repo.
DeleteRepo(context.Context, *DeleteRepoRequest) (*google_protobuf1.Empty, error)
// Sets the access control policy on the specified resource. Replaces any
// existing policy.
SetIamPolicy(context.Context, *google_iam_v11.SetIamPolicyRequest) (*google_iam_v1.Policy, error)
// Gets the access control policy for a resource.
// Returns an empty policy if the resource exists and does not have a policy
// set.
GetIamPolicy(context.Context, *google_iam_v11.GetIamPolicyRequest) (*google_iam_v1.Policy, error)
// Returns permissions that a caller has on the specified resource.
// If the resource does not exist, this will return an empty set of
// permissions, not a NOT_FOUND error.
TestIamPermissions(context.Context, *google_iam_v11.TestIamPermissionsRequest) (*google_iam_v11.TestIamPermissionsResponse, error)
}
func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer) {
s.RegisterService(&_SourceRepo_serviceDesc, srv)
}
func _SourceRepo_ListRepos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListReposRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).ListRepos(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).ListRepos(ctx, req.(*ListReposRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_GetRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).GetRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).GetRepo(ctx, req.(*GetRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_CreateRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).CreateRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).CreateRepo(ctx, req.(*CreateRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_DeleteRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(DeleteRepoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).DeleteRepo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).DeleteRepo(ctx, req.(*DeleteRepoRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.SetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).SetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).SetIamPolicy(ctx, req.(*google_iam_v11.SetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.GetIamPolicyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).GetIamPolicy(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).GetIamPolicy(ctx, req.(*google_iam_v11.GetIamPolicyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(google_iam_v11.TestIamPermissionsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SourceRepoServer).TestIamPermissions(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SourceRepoServer).TestIamPermissions(ctx, req.(*google_iam_v11.TestIamPermissionsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _SourceRepo_serviceDesc = grpc.ServiceDesc{
ServiceName: "google.devtools.sourcerepo.v1.SourceRepo",
HandlerType: (*SourceRepoServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListRepos",
Handler: _SourceRepo_ListRepos_Handler,
},
{
MethodName: "GetRepo",
Handler: _SourceRepo_GetRepo_Handler,
},
{
MethodName: "CreateRepo",
Handler: _SourceRepo_CreateRepo_Handler,
},
{
MethodName: "DeleteRepo",
Handler: _SourceRepo_DeleteRepo_Handler,
},
{
MethodName: "SetIamPolicy",
Handler: _SourceRepo_SetIamPolicy_Handler,
},
{
MethodName: "GetIamPolicy",
Handler: _SourceRepo_GetIamPolicy_Handler,
},
{
MethodName: "TestIamPermissions",
Handler: _SourceRepo_TestIamPermissions_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/devtools/sourcerepo/v1/sourcerepo.proto",
}
func init() { proto.RegisterFile("google/devtools/sourcerepo/v1/sourcerepo.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 743 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xd1, 0x6e, 0xd3, 0x4a,
0x10, 0xd5, 0x36, 0x69, 0x7b, 0x33, 0x4d, 0x6f, 0xdb, 0x95, 0x6e, 0x15, 0xa5, 0x37, 0x55, 0xae,
0x7b, 0x29, 0x21, 0x15, 0x36, 0x2d, 0xa0, 0x8a, 0x20, 0x24, 0xd4, 0x82, 0xa2, 0x0a, 0x90, 0xa2,
0xb4, 0x4f, 0xbc, 0x44, 0x4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