1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: google/devtools/sourcerepo/v1/sourcerepo.proto
3
4package sourcerepo // import "google.golang.org/genproto/googleapis/devtools/sourcerepo/v1"
5
6import proto "github.com/golang/protobuf/proto"
7import fmt "fmt"
8import math "math"
9import empty "github.com/golang/protobuf/ptypes/empty"
10import _ "google.golang.org/genproto/googleapis/api/annotations"
11import v1 "google.golang.org/genproto/googleapis/iam/v1"
12
13import (
14	context "golang.org/x/net/context"
15	grpc "google.golang.org/grpc"
16)
17
18// Reference imports to suppress errors if they are not otherwise used.
19var _ = proto.Marshal
20var _ = fmt.Errorf
21var _ = math.Inf
22
23// This is a compile-time assertion to ensure that this generated file
24// is compatible with the proto package it is being compiled against.
25// A compilation error at this line likely means your copy of the
26// proto package needs to be updated.
27const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
28
29// A repository (or repo) is a Git repository storing versioned source content.
30type Repo struct {
31	// Resource name of the repository, of the form
32	// `projects/<project>/repos/<repo>`.  The repo name may contain slashes.
33	// eg, `projects/myproject/repos/name/with/slash`
34	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
35	// The disk usage of the repo, in bytes. Read-only field. Size is only
36	// returned by GetRepo.
37	Size int64 `protobuf:"varint,2,opt,name=size,proto3" json:"size,omitempty"`
38	// URL to clone the repository from Google Cloud Source Repositories.
39	// Read-only field.
40	Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
41	// How this repository mirrors a repository managed by another service.
42	// Read-only field.
43	MirrorConfig         *MirrorConfig `protobuf:"bytes,4,opt,name=mirror_config,json=mirrorConfig,proto3" json:"mirror_config,omitempty"`
44	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
45	XXX_unrecognized     []byte        `json:"-"`
46	XXX_sizecache        int32         `json:"-"`
47}
48
49func (m *Repo) Reset()         { *m = Repo{} }
50func (m *Repo) String() string { return proto.CompactTextString(m) }
51func (*Repo) ProtoMessage()    {}
52func (*Repo) Descriptor() ([]byte, []int) {
53	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{0}
54}
55func (m *Repo) XXX_Unmarshal(b []byte) error {
56	return xxx_messageInfo_Repo.Unmarshal(m, b)
57}
58func (m *Repo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
59	return xxx_messageInfo_Repo.Marshal(b, m, deterministic)
60}
61func (dst *Repo) XXX_Merge(src proto.Message) {
62	xxx_messageInfo_Repo.Merge(dst, src)
63}
64func (m *Repo) XXX_Size() int {
65	return xxx_messageInfo_Repo.Size(m)
66}
67func (m *Repo) XXX_DiscardUnknown() {
68	xxx_messageInfo_Repo.DiscardUnknown(m)
69}
70
71var xxx_messageInfo_Repo proto.InternalMessageInfo
72
73func (m *Repo) GetName() string {
74	if m != nil {
75		return m.Name
76	}
77	return ""
78}
79
80func (m *Repo) GetSize() int64 {
81	if m != nil {
82		return m.Size
83	}
84	return 0
85}
86
87func (m *Repo) GetUrl() string {
88	if m != nil {
89		return m.Url
90	}
91	return ""
92}
93
94func (m *Repo) GetMirrorConfig() *MirrorConfig {
95	if m != nil {
96		return m.MirrorConfig
97	}
98	return nil
99}
100
101// Configuration to automatically mirror a repository from another
102// hosting service, for example GitHub or BitBucket.
103type MirrorConfig struct {
104	// URL of the main repository at the other hosting service.
105	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
106	// ID of the webhook listening to updates to trigger mirroring.
107	// Removing this webhook from the other hosting service will stop
108	// Google Cloud Source Repositories from receiving notifications,
109	// and thereby disabling mirroring.
110	WebhookId string `protobuf:"bytes,2,opt,name=webhook_id,json=webhookId,proto3" json:"webhook_id,omitempty"`
111	// ID of the SSH deploy key at the other hosting service.
112	// Removing this key from the other service would deauthorize
113	// Google Cloud Source Repositories from mirroring.
114	DeployKeyId          string   `protobuf:"bytes,3,opt,name=deploy_key_id,json=deployKeyId,proto3" json:"deploy_key_id,omitempty"`
115	XXX_NoUnkeyedLiteral struct{} `json:"-"`
116	XXX_unrecognized     []byte   `json:"-"`
117	XXX_sizecache        int32    `json:"-"`
118}
119
120func (m *MirrorConfig) Reset()         { *m = MirrorConfig{} }
121func (m *MirrorConfig) String() string { return proto.CompactTextString(m) }
122func (*MirrorConfig) ProtoMessage()    {}
123func (*MirrorConfig) Descriptor() ([]byte, []int) {
124	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{1}
125}
126func (m *MirrorConfig) XXX_Unmarshal(b []byte) error {
127	return xxx_messageInfo_MirrorConfig.Unmarshal(m, b)
128}
129func (m *MirrorConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
130	return xxx_messageInfo_MirrorConfig.Marshal(b, m, deterministic)
131}
132func (dst *MirrorConfig) XXX_Merge(src proto.Message) {
133	xxx_messageInfo_MirrorConfig.Merge(dst, src)
134}
135func (m *MirrorConfig) XXX_Size() int {
136	return xxx_messageInfo_MirrorConfig.Size(m)
137}
138func (m *MirrorConfig) XXX_DiscardUnknown() {
139	xxx_messageInfo_MirrorConfig.DiscardUnknown(m)
140}
141
142var xxx_messageInfo_MirrorConfig proto.InternalMessageInfo
143
144func (m *MirrorConfig) GetUrl() string {
145	if m != nil {
146		return m.Url
147	}
148	return ""
149}
150
151func (m *MirrorConfig) GetWebhookId() string {
152	if m != nil {
153		return m.WebhookId
154	}
155	return ""
156}
157
158func (m *MirrorConfig) GetDeployKeyId() string {
159	if m != nil {
160		return m.DeployKeyId
161	}
162	return ""
163}
164
165// Request for GetRepo.
166type GetRepoRequest struct {
167	// The name of the requested repository. Values are of the form
168	// `projects/<project>/repos/<repo>`.
169	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
170	XXX_NoUnkeyedLiteral struct{} `json:"-"`
171	XXX_unrecognized     []byte   `json:"-"`
172	XXX_sizecache        int32    `json:"-"`
173}
174
175func (m *GetRepoRequest) Reset()         { *m = GetRepoRequest{} }
176func (m *GetRepoRequest) String() string { return proto.CompactTextString(m) }
177func (*GetRepoRequest) ProtoMessage()    {}
178func (*GetRepoRequest) Descriptor() ([]byte, []int) {
179	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{2}
180}
181func (m *GetRepoRequest) XXX_Unmarshal(b []byte) error {
182	return xxx_messageInfo_GetRepoRequest.Unmarshal(m, b)
183}
184func (m *GetRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
185	return xxx_messageInfo_GetRepoRequest.Marshal(b, m, deterministic)
186}
187func (dst *GetRepoRequest) XXX_Merge(src proto.Message) {
188	xxx_messageInfo_GetRepoRequest.Merge(dst, src)
189}
190func (m *GetRepoRequest) XXX_Size() int {
191	return xxx_messageInfo_GetRepoRequest.Size(m)
192}
193func (m *GetRepoRequest) XXX_DiscardUnknown() {
194	xxx_messageInfo_GetRepoRequest.DiscardUnknown(m)
195}
196
197var xxx_messageInfo_GetRepoRequest proto.InternalMessageInfo
198
199func (m *GetRepoRequest) GetName() string {
200	if m != nil {
201		return m.Name
202	}
203	return ""
204}
205
206// Request for ListRepos.
207type ListReposRequest struct {
208	// The project ID whose repos should be listed. Values are of the form
209	// `projects/<project>`.
210	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
211	// Maximum number of repositories to return; between 1 and 500.
212	// If not set or zero, defaults to 100 at the server.
213	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
214	// Resume listing repositories where a prior ListReposResponse
215	// left off. This is an opaque token that must be obtained from
216	// a recent, prior ListReposResponse's next_page_token field.
217	PageToken            string   `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
218	XXX_NoUnkeyedLiteral struct{} `json:"-"`
219	XXX_unrecognized     []byte   `json:"-"`
220	XXX_sizecache        int32    `json:"-"`
221}
222
223func (m *ListReposRequest) Reset()         { *m = ListReposRequest{} }
224func (m *ListReposRequest) String() string { return proto.CompactTextString(m) }
225func (*ListReposRequest) ProtoMessage()    {}
226func (*ListReposRequest) Descriptor() ([]byte, []int) {
227	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{3}
228}
229func (m *ListReposRequest) XXX_Unmarshal(b []byte) error {
230	return xxx_messageInfo_ListReposRequest.Unmarshal(m, b)
231}
232func (m *ListReposRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
233	return xxx_messageInfo_ListReposRequest.Marshal(b, m, deterministic)
234}
235func (dst *ListReposRequest) XXX_Merge(src proto.Message) {
236	xxx_messageInfo_ListReposRequest.Merge(dst, src)
237}
238func (m *ListReposRequest) XXX_Size() int {
239	return xxx_messageInfo_ListReposRequest.Size(m)
240}
241func (m *ListReposRequest) XXX_DiscardUnknown() {
242	xxx_messageInfo_ListReposRequest.DiscardUnknown(m)
243}
244
245var xxx_messageInfo_ListReposRequest proto.InternalMessageInfo
246
247func (m *ListReposRequest) GetName() string {
248	if m != nil {
249		return m.Name
250	}
251	return ""
252}
253
254func (m *ListReposRequest) GetPageSize() int32 {
255	if m != nil {
256		return m.PageSize
257	}
258	return 0
259}
260
261func (m *ListReposRequest) GetPageToken() string {
262	if m != nil {
263		return m.PageToken
264	}
265	return ""
266}
267
268// Response for ListRepos.  The size is not set in the returned repositories.
269type ListReposResponse struct {
270	// The listed repos.
271	Repos []*Repo `protobuf:"bytes,1,rep,name=repos,proto3" json:"repos,omitempty"`
272	// If non-empty, additional repositories exist within the project. These
273	// can be retrieved by including this value in the next ListReposRequest's
274	// page_token field.
275	NextPageToken        string   `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
276	XXX_NoUnkeyedLiteral struct{} `json:"-"`
277	XXX_unrecognized     []byte   `json:"-"`
278	XXX_sizecache        int32    `json:"-"`
279}
280
281func (m *ListReposResponse) Reset()         { *m = ListReposResponse{} }
282func (m *ListReposResponse) String() string { return proto.CompactTextString(m) }
283func (*ListReposResponse) ProtoMessage()    {}
284func (*ListReposResponse) Descriptor() ([]byte, []int) {
285	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{4}
286}
287func (m *ListReposResponse) XXX_Unmarshal(b []byte) error {
288	return xxx_messageInfo_ListReposResponse.Unmarshal(m, b)
289}
290func (m *ListReposResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
291	return xxx_messageInfo_ListReposResponse.Marshal(b, m, deterministic)
292}
293func (dst *ListReposResponse) XXX_Merge(src proto.Message) {
294	xxx_messageInfo_ListReposResponse.Merge(dst, src)
295}
296func (m *ListReposResponse) XXX_Size() int {
297	return xxx_messageInfo_ListReposResponse.Size(m)
298}
299func (m *ListReposResponse) XXX_DiscardUnknown() {
300	xxx_messageInfo_ListReposResponse.DiscardUnknown(m)
301}
302
303var xxx_messageInfo_ListReposResponse proto.InternalMessageInfo
304
305func (m *ListReposResponse) GetRepos() []*Repo {
306	if m != nil {
307		return m.Repos
308	}
309	return nil
310}
311
312func (m *ListReposResponse) GetNextPageToken() string {
313	if m != nil {
314		return m.NextPageToken
315	}
316	return ""
317}
318
319// Request for CreateRepo
320type CreateRepoRequest struct {
321	// The project in which to create the repo. Values are of the form
322	// `projects/<project>`.
323	Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
324	// The repo to create.  Only name should be set; setting other fields
325	// is an error.  The project in the name should match the parent field.
326	Repo                 *Repo    `protobuf:"bytes,2,opt,name=repo,proto3" json:"repo,omitempty"`
327	XXX_NoUnkeyedLiteral struct{} `json:"-"`
328	XXX_unrecognized     []byte   `json:"-"`
329	XXX_sizecache        int32    `json:"-"`
330}
331
332func (m *CreateRepoRequest) Reset()         { *m = CreateRepoRequest{} }
333func (m *CreateRepoRequest) String() string { return proto.CompactTextString(m) }
334func (*CreateRepoRequest) ProtoMessage()    {}
335func (*CreateRepoRequest) Descriptor() ([]byte, []int) {
336	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{5}
337}
338func (m *CreateRepoRequest) XXX_Unmarshal(b []byte) error {
339	return xxx_messageInfo_CreateRepoRequest.Unmarshal(m, b)
340}
341func (m *CreateRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
342	return xxx_messageInfo_CreateRepoRequest.Marshal(b, m, deterministic)
343}
344func (dst *CreateRepoRequest) XXX_Merge(src proto.Message) {
345	xxx_messageInfo_CreateRepoRequest.Merge(dst, src)
346}
347func (m *CreateRepoRequest) XXX_Size() int {
348	return xxx_messageInfo_CreateRepoRequest.Size(m)
349}
350func (m *CreateRepoRequest) XXX_DiscardUnknown() {
351	xxx_messageInfo_CreateRepoRequest.DiscardUnknown(m)
352}
353
354var xxx_messageInfo_CreateRepoRequest proto.InternalMessageInfo
355
356func (m *CreateRepoRequest) GetParent() string {
357	if m != nil {
358		return m.Parent
359	}
360	return ""
361}
362
363func (m *CreateRepoRequest) GetRepo() *Repo {
364	if m != nil {
365		return m.Repo
366	}
367	return nil
368}
369
370// Request for DeleteRepo.
371type DeleteRepoRequest struct {
372	// The name of the repo to delete. Values are of the form
373	// `projects/<project>/repos/<repo>`.
374	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
375	XXX_NoUnkeyedLiteral struct{} `json:"-"`
376	XXX_unrecognized     []byte   `json:"-"`
377	XXX_sizecache        int32    `json:"-"`
378}
379
380func (m *DeleteRepoRequest) Reset()         { *m = DeleteRepoRequest{} }
381func (m *DeleteRepoRequest) String() string { return proto.CompactTextString(m) }
382func (*DeleteRepoRequest) ProtoMessage()    {}
383func (*DeleteRepoRequest) Descriptor() ([]byte, []int) {
384	return fileDescriptor_sourcerepo_c3970ced7dbc10e1, []int{6}
385}
386func (m *DeleteRepoRequest) XXX_Unmarshal(b []byte) error {
387	return xxx_messageInfo_DeleteRepoRequest.Unmarshal(m, b)
388}
389func (m *DeleteRepoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
390	return xxx_messageInfo_DeleteRepoRequest.Marshal(b, m, deterministic)
391}
392func (dst *DeleteRepoRequest) XXX_Merge(src proto.Message) {
393	xxx_messageInfo_DeleteRepoRequest.Merge(dst, src)
394}
395func (m *DeleteRepoRequest) XXX_Size() int {
396	return xxx_messageInfo_DeleteRepoRequest.Size(m)
397}
398func (m *DeleteRepoRequest) XXX_DiscardUnknown() {
399	xxx_messageInfo_DeleteRepoRequest.DiscardUnknown(m)
400}
401
402var xxx_messageInfo_DeleteRepoRequest proto.InternalMessageInfo
403
404func (m *DeleteRepoRequest) GetName() string {
405	if m != nil {
406		return m.Name
407	}
408	return ""
409}
410
411func init() {
412	proto.RegisterType((*Repo)(nil), "google.devtools.sourcerepo.v1.Repo")
413	proto.RegisterType((*MirrorConfig)(nil), "google.devtools.sourcerepo.v1.MirrorConfig")
414	proto.RegisterType((*GetRepoRequest)(nil), "google.devtools.sourcerepo.v1.GetRepoRequest")
415	proto.RegisterType((*ListReposRequest)(nil), "google.devtools.sourcerepo.v1.ListReposRequest")
416	proto.RegisterType((*ListReposResponse)(nil), "google.devtools.sourcerepo.v1.ListReposResponse")
417	proto.RegisterType((*CreateRepoRequest)(nil), "google.devtools.sourcerepo.v1.CreateRepoRequest")
418	proto.RegisterType((*DeleteRepoRequest)(nil), "google.devtools.sourcerepo.v1.DeleteRepoRequest")
419}
420
421// Reference imports to suppress errors if they are not otherwise used.
422var _ context.Context
423var _ grpc.ClientConn
424
425// This is a compile-time assertion to ensure that this generated file
426// is compatible with the grpc package it is being compiled against.
427const _ = grpc.SupportPackageIsVersion4
428
429// SourceRepoClient is the client API for SourceRepo service.
430//
431// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
432type SourceRepoClient interface {
433	// Returns all repos belonging to a project. The sizes of the repos are
434	// not set by ListRepos.  To get the size of a repo, use GetRepo.
435	ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error)
436	// Returns information about a repo.
437	GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error)
438	// Creates a repo in the given project with the given name.
439	//
440	// If the named repository already exists, `CreateRepo` returns
441	// `ALREADY_EXISTS`.
442	CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error)
443	// Deletes a repo.
444	DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*empty.Empty, error)
445	// Sets the access control policy on the specified resource. Replaces any
446	// existing policy.
447	SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
448	// Gets the access control policy for a resource.
449	// Returns an empty policy if the resource exists and does not have a policy
450	// set.
451	GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
452	// Returns permissions that a caller has on the specified resource.
453	// If the resource does not exist, this will return an empty set of
454	// permissions, not a NOT_FOUND error.
455	TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
456}
457
458type sourceRepoClient struct {
459	cc *grpc.ClientConn
460}
461
462func NewSourceRepoClient(cc *grpc.ClientConn) SourceRepoClient {
463	return &sourceRepoClient{cc}
464}
465
466func (c *sourceRepoClient) ListRepos(ctx context.Context, in *ListReposRequest, opts ...grpc.CallOption) (*ListReposResponse, error) {
467	out := new(ListReposResponse)
468	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos", in, out, opts...)
469	if err != nil {
470		return nil, err
471	}
472	return out, nil
473}
474
475func (c *sourceRepoClient) GetRepo(ctx context.Context, in *GetRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
476	out := new(Repo)
477	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo", in, out, opts...)
478	if err != nil {
479		return nil, err
480	}
481	return out, nil
482}
483
484func (c *sourceRepoClient) CreateRepo(ctx context.Context, in *CreateRepoRequest, opts ...grpc.CallOption) (*Repo, error) {
485	out := new(Repo)
486	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo", in, out, opts...)
487	if err != nil {
488		return nil, err
489	}
490	return out, nil
491}
492
493func (c *sourceRepoClient) DeleteRepo(ctx context.Context, in *DeleteRepoRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
494	out := new(empty.Empty)
495	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo", in, out, opts...)
496	if err != nil {
497		return nil, err
498	}
499	return out, nil
500}
501
502func (c *sourceRepoClient) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
503	out := new(v1.Policy)
504	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy", in, out, opts...)
505	if err != nil {
506		return nil, err
507	}
508	return out, nil
509}
510
511func (c *sourceRepoClient) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
512	out := new(v1.Policy)
513	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy", in, out, opts...)
514	if err != nil {
515		return nil, err
516	}
517	return out, nil
518}
519
520func (c *sourceRepoClient) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
521	out := new(v1.TestIamPermissionsResponse)
522	err := c.cc.Invoke(ctx, "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions", in, out, opts...)
523	if err != nil {
524		return nil, err
525	}
526	return out, nil
527}
528
529// SourceRepoServer is the server API for SourceRepo service.
530type SourceRepoServer interface {
531	// Returns all repos belonging to a project. The sizes of the repos are
532	// not set by ListRepos.  To get the size of a repo, use GetRepo.
533	ListRepos(context.Context, *ListReposRequest) (*ListReposResponse, error)
534	// Returns information about a repo.
535	GetRepo(context.Context, *GetRepoRequest) (*Repo, error)
536	// Creates a repo in the given project with the given name.
537	//
538	// If the named repository already exists, `CreateRepo` returns
539	// `ALREADY_EXISTS`.
540	CreateRepo(context.Context, *CreateRepoRequest) (*Repo, error)
541	// Deletes a repo.
542	DeleteRepo(context.Context, *DeleteRepoRequest) (*empty.Empty, error)
543	// Sets the access control policy on the specified resource. Replaces any
544	// existing policy.
545	SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
546	// Gets the access control policy for a resource.
547	// Returns an empty policy if the resource exists and does not have a policy
548	// set.
549	GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
550	// Returns permissions that a caller has on the specified resource.
551	// If the resource does not exist, this will return an empty set of
552	// permissions, not a NOT_FOUND error.
553	TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
554}
555
556func RegisterSourceRepoServer(s *grpc.Server, srv SourceRepoServer) {
557	s.RegisterService(&_SourceRepo_serviceDesc, srv)
558}
559
560func _SourceRepo_ListRepos_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
561	in := new(ListReposRequest)
562	if err := dec(in); err != nil {
563		return nil, err
564	}
565	if interceptor == nil {
566		return srv.(SourceRepoServer).ListRepos(ctx, in)
567	}
568	info := &grpc.UnaryServerInfo{
569		Server:     srv,
570		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/ListRepos",
571	}
572	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
573		return srv.(SourceRepoServer).ListRepos(ctx, req.(*ListReposRequest))
574	}
575	return interceptor(ctx, in, info, handler)
576}
577
578func _SourceRepo_GetRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
579	in := new(GetRepoRequest)
580	if err := dec(in); err != nil {
581		return nil, err
582	}
583	if interceptor == nil {
584		return srv.(SourceRepoServer).GetRepo(ctx, in)
585	}
586	info := &grpc.UnaryServerInfo{
587		Server:     srv,
588		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetRepo",
589	}
590	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
591		return srv.(SourceRepoServer).GetRepo(ctx, req.(*GetRepoRequest))
592	}
593	return interceptor(ctx, in, info, handler)
594}
595
596func _SourceRepo_CreateRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
597	in := new(CreateRepoRequest)
598	if err := dec(in); err != nil {
599		return nil, err
600	}
601	if interceptor == nil {
602		return srv.(SourceRepoServer).CreateRepo(ctx, in)
603	}
604	info := &grpc.UnaryServerInfo{
605		Server:     srv,
606		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/CreateRepo",
607	}
608	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
609		return srv.(SourceRepoServer).CreateRepo(ctx, req.(*CreateRepoRequest))
610	}
611	return interceptor(ctx, in, info, handler)
612}
613
614func _SourceRepo_DeleteRepo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
615	in := new(DeleteRepoRequest)
616	if err := dec(in); err != nil {
617		return nil, err
618	}
619	if interceptor == nil {
620		return srv.(SourceRepoServer).DeleteRepo(ctx, in)
621	}
622	info := &grpc.UnaryServerInfo{
623		Server:     srv,
624		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/DeleteRepo",
625	}
626	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
627		return srv.(SourceRepoServer).DeleteRepo(ctx, req.(*DeleteRepoRequest))
628	}
629	return interceptor(ctx, in, info, handler)
630}
631
632func _SourceRepo_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
633	in := new(v1.SetIamPolicyRequest)
634	if err := dec(in); err != nil {
635		return nil, err
636	}
637	if interceptor == nil {
638		return srv.(SourceRepoServer).SetIamPolicy(ctx, in)
639	}
640	info := &grpc.UnaryServerInfo{
641		Server:     srv,
642		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/SetIamPolicy",
643	}
644	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
645		return srv.(SourceRepoServer).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
646	}
647	return interceptor(ctx, in, info, handler)
648}
649
650func _SourceRepo_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
651	in := new(v1.GetIamPolicyRequest)
652	if err := dec(in); err != nil {
653		return nil, err
654	}
655	if interceptor == nil {
656		return srv.(SourceRepoServer).GetIamPolicy(ctx, in)
657	}
658	info := &grpc.UnaryServerInfo{
659		Server:     srv,
660		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/GetIamPolicy",
661	}
662	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
663		return srv.(SourceRepoServer).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
664	}
665	return interceptor(ctx, in, info, handler)
666}
667
668func _SourceRepo_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
669	in := new(v1.TestIamPermissionsRequest)
670	if err := dec(in); err != nil {
671		return nil, err
672	}
673	if interceptor == nil {
674		return srv.(SourceRepoServer).TestIamPermissions(ctx, in)
675	}
676	info := &grpc.UnaryServerInfo{
677		Server:     srv,
678		FullMethod: "/google.devtools.sourcerepo.v1.SourceRepo/TestIamPermissions",
679	}
680	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
681		return srv.(SourceRepoServer).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
682	}
683	return interceptor(ctx, in, info, handler)
684}
685
686var _SourceRepo_serviceDesc = grpc.ServiceDesc{
687	ServiceName: "google.devtools.sourcerepo.v1.SourceRepo",
688	HandlerType: (*SourceRepoServer)(nil),
689	Methods: []grpc.MethodDesc{
690		{
691			MethodName: "ListRepos",
692			Handler:    _SourceRepo_ListRepos_Handler,
693		},
694		{
695			MethodName: "GetRepo",
696			Handler:    _SourceRepo_GetRepo_Handler,
697		},
698		{
699			MethodName: "CreateRepo",
700			Handler:    _SourceRepo_CreateRepo_Handler,
701		},
702		{
703			MethodName: "DeleteRepo",
704			Handler:    _SourceRepo_DeleteRepo_Handler,
705		},
706		{
707			MethodName: "SetIamPolicy",
708			Handler:    _SourceRepo_SetIamPolicy_Handler,
709		},
710		{
711			MethodName: "GetIamPolicy",
712			Handler:    _SourceRepo_GetIamPolicy_Handler,
713		},
714		{
715			MethodName: "TestIamPermissions",
716			Handler:    _SourceRepo_TestIamPermissions_Handler,
717		},
718	},
719	Streams:  []grpc.StreamDesc{},
720	Metadata: "google/devtools/sourcerepo/v1/sourcerepo.proto",
721}
722
723func init() {
724	proto.RegisterFile("google/devtools/sourcerepo/v1/sourcerepo.proto", fileDescriptor_sourcerepo_c3970ced7dbc10e1)
725}
726
727var fileDescriptor_sourcerepo_c3970ced7dbc10e1 = []byte{
728	// 743 bytes of a gzipped FileDescriptorProto
729	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x55, 0xd1, 0x6e, 0xd3, 0x4a,
730	0x10, 0xd5, 0x36, 0x69, 0x7b, 0x33, 0x4d, 0x6f, 0xdb, 0x95, 0x6e, 0x15, 0xa5, 0x37, 0x55, 0xae,
731	0x7b, 0x29, 0x21, 0x15, 0x36, 0x2d, 0xa0, 0x8a, 0x20, 0x24, 0xd4, 0x82, 0xa2, 0x0a, 0x90, 0xa2,
732	0xb4, 0x4f, 0xbc, 0x44, 0x4e, 0x32, 0x35, 0xa6, 0xb6, 0xd7, 0x78, 0x37, 0x81, 0x80, 0x0a, 0x52,
733	0xa5, 0xbe, 0x23, 0xfa, 0x19, 0x7c, 0x0e, 0xbf, 0xc0, 0x47, 0xf0, 0x88, 0x76, 0x6d, 0x37, 0x4e,
734	0x13, 0x12, 0xbf, 0xed, 0xce, 0x9c, 0x99, 0x73, 0xf6, 0xec, 0x78, 0x0d, 0xba, 0xc5, 0x98, 0xe5,
735	0xa0, 0xd1, 0xc5, 0xbe, 0x60, 0xcc, 0xe1, 0x06, 0x67, 0xbd, 0xa0, 0x83, 0x01, 0xfa, 0xcc, 0xe8,
736	0xef, 0x26, 0x76, 0xba, 0x1f, 0x30, 0xc1, 0x68, 0x29, 0xc4, 0xeb, 0x31, 0x5e, 0x4f, 0x20, 0xfa,
737	0xbb, 0xc5, 0x7f, 0xa3, 0x76, 0xa6, 0x6f, 0x1b, 0xa6, 0xe7, 0x31, 0x61, 0x0a, 0x9b, 0x79, 0x3c,
738	0x2c, 0x2e, 0x6e, 0x46, 0x59, 0xdb, 0x74, 0x65, 0x73, 0xdb, 0x74, 0x5b, 0x3e, 0x73, 0xec, 0xce,
739	0x20, 0xca, 0x17, 0x47, 0xf3, 0x23, 0xb9, 0x8d, 0x28, 0xa7, 0x76, 0xed, 0xde, 0xa9, 0x81, 0xae,
740	0x2f, 0xa2, 0xa4, 0xf6, 0x8d, 0x40, 0xb6, 0x89, 0x3e, 0xa3, 0x14, 0xb2, 0x9e, 0xe9, 0x62, 0x81,
741	0x94, 0x49, 0x25, 0xd7, 0x54, 0x6b, 0x19, 0xe3, 0xf6, 0x47, 0x2c, 0xcc, 0x95, 0x49, 0x25, 0xd3,
742	0x54, 0x6b, 0xba, 0x0a, 0x99, 0x5e, 0xe0, 0x14, 0x32, 0x0a, 0x26, 0x97, 0xb4, 0x01, 0xcb, 0xae,
743	0x1d, 0x04, 0x2c, 0x68, 0x75, 0x98, 0x77, 0x6a, 0x5b, 0x85, 0x6c, 0x99, 0x54, 0x96, 0xf6, 0x76,
744	0xf4, 0xa9, 0x07, 0xd6, 0x5f, 0xa9, 0x9a, 0x43, 0x55, 0xd2, 0xcc, 0xbb, 0x89, 0x9d, 0xd6, 0x81,
745	0x7c, 0x32, 0x1b, 0x73, 0x92, 0x21, 0x67, 0x09, 0xe0, 0x3d, 0xb6, 0xdf, 0x30, 0x76, 0xd6, 0xb2,
746	0xbb, 0x4a, 0x5f, 0xae, 0x99, 0x8b, 0x22, 0x47, 0x5d, 0xaa, 0xc1, 0x72, 0x17, 0x7d, 0x87, 0x0d,
747	0x5a, 0x67, 0x38, 0x90, 0x88, 0x50, 0xee, 0x52, 0x18, 0x7c, 0x81, 0x83, 0xa3, 0xae, 0xf6, 0x3f,
748	0xfc, 0x5d, 0x47, 0x21, 0xcf, 0xde, 0xc4, 0x77, 0x3d, 0xe4, 0x62, 0x92, 0x05, 0x5a, 0x1b, 0x56,
749	0x5f, 0xda, 0x5c, 0xc1, 0xf8, 0x14, 0x1c, 0xdd, 0x80, 0x9c, 0x6f, 0x5a, 0xd8, 0xba, 0xf6, 0x6b,
750	0xbe, 0xf9, 0x97, 0x0c, 0x1c, 0x4b, 0xcf, 0x4a, 0x00, 0x2a, 0x29, 0xd8, 0x19, 0x7a, 0x91, 0x16,
751	0x05, 0x3f, 0x91, 0x01, 0xad, 0x0f, 0x6b, 0x09, 0x0e, 0xee, 0x33, 0x8f, 0x23, 0x7d, 0x04, 0xf3,
752	0xd2, 0x29, 0x5e, 0x20, 0xe5, 0x4c, 0x65, 0x69, 0x6f, 0x6b, 0x86, 0x9b, 0xea, 0x1c, 0x61, 0x05,
753	0xdd, 0x86, 0x15, 0x0f, 0x3f, 0x88, 0x56, 0x82, 0x33, 0x74, 0x68, 0x59, 0x86, 0x1b, 0xd7, 0xbc,
754	0x5d, 0x58, 0x3b, 0x0c, 0xd0, 0x14, 0x98, 0x34, 0x61, 0x1d, 0x16, 0x7c, 0x33, 0x40, 0x4f, 0x44,
755	0xc7, 0x8b, 0x76, 0x74, 0x1f, 0xb2, 0xb2, 0xbb, 0xea, 0x94, 0x52, 0x8e, 0x2a, 0xd0, 0x6e, 0xc3,
756	0xda, 0x33, 0x74, 0x70, 0x94, 0x65, 0x82, 0x85, 0x7b, 0xbf, 0x16, 0x01, 0x8e, 0x55, 0x17, 0x35,
757	0x90, 0x57, 0x04, 0x72, 0xd7, 0xb6, 0x50, 0x63, 0x06, 0xe1, 0xcd, 0x4b, 0x2a, 0xde, 0x4b, 0x5f,
758	0x10, 0x3a, 0xae, 0x6d, 0x5d, 0xfc, 0xf8, 0x79, 0x35, 0x57, 0xa2, 0x1b, 0xf2, 0x0b, 0xfa, 0x24,
759	0x25, 0x3d, 0xf1, 0x03, 0xf6, 0x16, 0x3b, 0x82, 0x1b, 0xd5, 0x73, 0x23, 0xf4, 0xf6, 0x92, 0xc0,
760	0x62, 0x34, 0x36, 0xf4, 0xee, 0x0c, 0x8a, 0xd1, 0xf1, 0x2a, 0xa6, 0xf1, 0x4c, 0xdb, 0x56, 0x22,
761	0xca, 0x74, 0x73, 0x92, 0x88, 0x50, 0x83, 0x51, 0xad, 0x9e, 0xd3, 0xaf, 0x04, 0x60, 0x78, 0x79,
762	0x74, 0xd6, 0x69, 0xc7, 0xee, 0x39, 0x9d, 0x9a, 0x1d, 0xa5, 0xe6, 0x96, 0x56, 0x52, 0x6a, 0xc2,
763	0x49, 0x18, 0x37, 0xa5, 0xa6, 0x2e, 0x9a, 0x7e, 0x06, 0x18, 0x5e, 0xf4, 0x4c, 0x45, 0x63, 0x33,
764	0x51, 0x5c, 0x8f, 0x2b, 0xe2, 0x87, 0x4a, 0x7f, 0x2e, 0x1f, 0xaa, 0xd8, 0x92, 0xea, 0x2c, 0x4b,
765	0x2e, 0x09, 0xe4, 0x8f, 0x51, 0x1c, 0x99, 0x6e, 0x43, 0x3d, 0x7f, 0x54, 0x8b, 0x1b, 0xda, 0xa6,
766	0x2b, 0x29, 0x93, 0xc9, 0x98, 0xf4, 0x9f, 0x1b, 0x98, 0x30, 0xab, 0xd5, 0x14, 0xe7, 0x03, 0xcd,
767	0x50, 0x9c, 0x01, 0x86, 0xda, 0x27, 0xf2, 0xd6, 0x78, 0xa2, 0x6d, 0x8d, 0x54, 0xe9, 0x05, 0x81,
768	0x7c, 0x7d, 0x9a, 0x8e, 0x7a, 0x7a, 0x1d, 0xfb, 0x4a, 0xc7, 0x2e, 0x4d, 0xa3, 0xc3, 0x4a, 0x72,
769	0x7e, 0x27, 0x40, 0x4f, 0x90, 0xab, 0x08, 0x06, 0xae, 0xcd, 0xb9, 0xfc, 0x9b, 0xd0, 0xca, 0x0d,
770	0x9a, 0x71, 0x48, 0x2c, 0xe8, 0x4e, 0x0a, 0x64, 0xf4, 0xe1, 0x3c, 0x55, 0x22, 0x6b, 0xda, 0xc3,
771	0x14, 0x22, 0xc5, 0x58, 0x9b, 0x1a, 0xa9, 0x1e, 0x7c, 0x81, 0xff, 0x3a, 0xcc, 0x9d, 0x3e, 0x31,
772	0x07, 0x2b, 0xc3, 0xc7, 0xa1, 0x21, 0x27, 0xa4, 0x41, 0x5e, 0xd7, 0xa3, 0x0a, 0x8b, 0x39, 0xa6,
773	0x67, 0xe9, 0x2c, 0xb0, 0x0c, 0x0b, 0x3d, 0x35, 0x3f, 0x46, 0x98, 0x32, 0x7d, 0x9b, 0xff, 0xe1,
774	0x17, 0xfd, 0x78, 0xb8, 0x6b, 0x2f, 0xa8, 0x9a, 0xfb, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0x31,
775	0x75, 0x14, 0x03, 0xd5, 0x07, 0x00, 0x00,
776}
777