Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/public-api/go/experimental/v1/scm_grpc.pb.go
2501 views
1
// Copyright (c) 2025 Gitpod GmbH. All rights reserved.
2
// Licensed under the GNU Affero General Public License (AGPL).
3
// See License.AGPL.txt in the project root for license information.
4
5
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
6
// versions:
7
// - protoc-gen-go-grpc v1.2.0
8
// - protoc (unknown)
9
// source: gitpod/experimental/v1/scm.proto
10
11
package v1
12
13
import (
14
context "context"
15
grpc "google.golang.org/grpc"
16
codes "google.golang.org/grpc/codes"
17
status "google.golang.org/grpc/status"
18
)
19
20
// This is a compile-time assertion to ensure that this generated file
21
// is compatible with the grpc package it is being compiled against.
22
// Requires gRPC-Go v1.32.0 or later.
23
const _ = grpc.SupportPackageIsVersion7
24
25
// SCMServiceClient is the client API for SCMService service.
26
//
27
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
28
type SCMServiceClient interface {
29
// GetSuggestedRepoURLs returns a list of suggested repositories to open for
30
// the user.
31
GetSuggestedRepoURLs(ctx context.Context, in *GetSuggestedRepoURLsRequest, opts ...grpc.CallOption) (*GetSuggestedRepoURLsResponse, error)
32
}
33
34
type sCMServiceClient struct {
35
cc grpc.ClientConnInterface
36
}
37
38
func NewSCMServiceClient(cc grpc.ClientConnInterface) SCMServiceClient {
39
return &sCMServiceClient{cc}
40
}
41
42
func (c *sCMServiceClient) GetSuggestedRepoURLs(ctx context.Context, in *GetSuggestedRepoURLsRequest, opts ...grpc.CallOption) (*GetSuggestedRepoURLsResponse, error) {
43
out := new(GetSuggestedRepoURLsResponse)
44
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.SCMService/GetSuggestedRepoURLs", in, out, opts...)
45
if err != nil {
46
return nil, err
47
}
48
return out, nil
49
}
50
51
// SCMServiceServer is the server API for SCMService service.
52
// All implementations must embed UnimplementedSCMServiceServer
53
// for forward compatibility
54
type SCMServiceServer interface {
55
// GetSuggestedRepoURLs returns a list of suggested repositories to open for
56
// the user.
57
GetSuggestedRepoURLs(context.Context, *GetSuggestedRepoURLsRequest) (*GetSuggestedRepoURLsResponse, error)
58
mustEmbedUnimplementedSCMServiceServer()
59
}
60
61
// UnimplementedSCMServiceServer must be embedded to have forward compatible implementations.
62
type UnimplementedSCMServiceServer struct {
63
}
64
65
func (UnimplementedSCMServiceServer) GetSuggestedRepoURLs(context.Context, *GetSuggestedRepoURLsRequest) (*GetSuggestedRepoURLsResponse, error) {
66
return nil, status.Errorf(codes.Unimplemented, "method GetSuggestedRepoURLs not implemented")
67
}
68
func (UnimplementedSCMServiceServer) mustEmbedUnimplementedSCMServiceServer() {}
69
70
// UnsafeSCMServiceServer may be embedded to opt out of forward compatibility for this service.
71
// Use of this interface is not recommended, as added methods to SCMServiceServer will
72
// result in compilation errors.
73
type UnsafeSCMServiceServer interface {
74
mustEmbedUnimplementedSCMServiceServer()
75
}
76
77
func RegisterSCMServiceServer(s grpc.ServiceRegistrar, srv SCMServiceServer) {
78
s.RegisterService(&SCMService_ServiceDesc, srv)
79
}
80
81
func _SCMService_GetSuggestedRepoURLs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
82
in := new(GetSuggestedRepoURLsRequest)
83
if err := dec(in); err != nil {
84
return nil, err
85
}
86
if interceptor == nil {
87
return srv.(SCMServiceServer).GetSuggestedRepoURLs(ctx, in)
88
}
89
info := &grpc.UnaryServerInfo{
90
Server: srv,
91
FullMethod: "/gitpod.experimental.v1.SCMService/GetSuggestedRepoURLs",
92
}
93
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
94
return srv.(SCMServiceServer).GetSuggestedRepoURLs(ctx, req.(*GetSuggestedRepoURLsRequest))
95
}
96
return interceptor(ctx, in, info, handler)
97
}
98
99
// SCMService_ServiceDesc is the grpc.ServiceDesc for SCMService service.
100
// It's only intended for direct use with grpc.RegisterService,
101
// and not to be introspected or modified (even as a copy)
102
var SCMService_ServiceDesc = grpc.ServiceDesc{
103
ServiceName: "gitpod.experimental.v1.SCMService",
104
HandlerType: (*SCMServiceServer)(nil),
105
Methods: []grpc.MethodDesc{
106
{
107
MethodName: "GetSuggestedRepoURLs",
108
Handler: _SCMService_GetSuggestedRepoURLs_Handler,
109
},
110
},
111
Streams: []grpc.StreamDesc{},
112
Metadata: "gitpod/experimental/v1/scm.proto",
113
}
114
115