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/ide_client_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/ide_client.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
// IDEClientServiceClient is the client API for IDEClientService 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 IDEClientServiceClient interface {
29
// SendHeartbeat sends a clientheartbeat signal for a running workspace.
30
SendHeartbeat(ctx context.Context, in *SendHeartbeatRequest, opts ...grpc.CallOption) (*SendHeartbeatResponse, error)
31
// SendDidClose sends a client close signal for a running workspace.
32
SendDidClose(ctx context.Context, in *SendDidCloseRequest, opts ...grpc.CallOption) (*SendDidCloseResponse, error)
33
// UpdateGitStatus updates the status of a repository in a workspace.
34
UpdateGitStatus(ctx context.Context, in *UpdateGitStatusRequest, opts ...grpc.CallOption) (*UpdateGitStatusResponse, error)
35
}
36
37
type iDEClientServiceClient struct {
38
cc grpc.ClientConnInterface
39
}
40
41
func NewIDEClientServiceClient(cc grpc.ClientConnInterface) IDEClientServiceClient {
42
return &iDEClientServiceClient{cc}
43
}
44
45
func (c *iDEClientServiceClient) SendHeartbeat(ctx context.Context, in *SendHeartbeatRequest, opts ...grpc.CallOption) (*SendHeartbeatResponse, error) {
46
out := new(SendHeartbeatResponse)
47
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/SendHeartbeat", in, out, opts...)
48
if err != nil {
49
return nil, err
50
}
51
return out, nil
52
}
53
54
func (c *iDEClientServiceClient) SendDidClose(ctx context.Context, in *SendDidCloseRequest, opts ...grpc.CallOption) (*SendDidCloseResponse, error) {
55
out := new(SendDidCloseResponse)
56
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/SendDidClose", in, out, opts...)
57
if err != nil {
58
return nil, err
59
}
60
return out, nil
61
}
62
63
func (c *iDEClientServiceClient) UpdateGitStatus(ctx context.Context, in *UpdateGitStatusRequest, opts ...grpc.CallOption) (*UpdateGitStatusResponse, error) {
64
out := new(UpdateGitStatusResponse)
65
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/UpdateGitStatus", in, out, opts...)
66
if err != nil {
67
return nil, err
68
}
69
return out, nil
70
}
71
72
// IDEClientServiceServer is the server API for IDEClientService service.
73
// All implementations must embed UnimplementedIDEClientServiceServer
74
// for forward compatibility
75
type IDEClientServiceServer interface {
76
// SendHeartbeat sends a clientheartbeat signal for a running workspace.
77
SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatResponse, error)
78
// SendDidClose sends a client close signal for a running workspace.
79
SendDidClose(context.Context, *SendDidCloseRequest) (*SendDidCloseResponse, error)
80
// UpdateGitStatus updates the status of a repository in a workspace.
81
UpdateGitStatus(context.Context, *UpdateGitStatusRequest) (*UpdateGitStatusResponse, error)
82
mustEmbedUnimplementedIDEClientServiceServer()
83
}
84
85
// UnimplementedIDEClientServiceServer must be embedded to have forward compatible implementations.
86
type UnimplementedIDEClientServiceServer struct {
87
}
88
89
func (UnimplementedIDEClientServiceServer) SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatResponse, error) {
90
return nil, status.Errorf(codes.Unimplemented, "method SendHeartbeat not implemented")
91
}
92
func (UnimplementedIDEClientServiceServer) SendDidClose(context.Context, *SendDidCloseRequest) (*SendDidCloseResponse, error) {
93
return nil, status.Errorf(codes.Unimplemented, "method SendDidClose not implemented")
94
}
95
func (UnimplementedIDEClientServiceServer) UpdateGitStatus(context.Context, *UpdateGitStatusRequest) (*UpdateGitStatusResponse, error) {
96
return nil, status.Errorf(codes.Unimplemented, "method UpdateGitStatus not implemented")
97
}
98
func (UnimplementedIDEClientServiceServer) mustEmbedUnimplementedIDEClientServiceServer() {}
99
100
// UnsafeIDEClientServiceServer may be embedded to opt out of forward compatibility for this service.
101
// Use of this interface is not recommended, as added methods to IDEClientServiceServer will
102
// result in compilation errors.
103
type UnsafeIDEClientServiceServer interface {
104
mustEmbedUnimplementedIDEClientServiceServer()
105
}
106
107
func RegisterIDEClientServiceServer(s grpc.ServiceRegistrar, srv IDEClientServiceServer) {
108
s.RegisterService(&IDEClientService_ServiceDesc, srv)
109
}
110
111
func _IDEClientService_SendHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
112
in := new(SendHeartbeatRequest)
113
if err := dec(in); err != nil {
114
return nil, err
115
}
116
if interceptor == nil {
117
return srv.(IDEClientServiceServer).SendHeartbeat(ctx, in)
118
}
119
info := &grpc.UnaryServerInfo{
120
Server: srv,
121
FullMethod: "/gitpod.experimental.v1.IDEClientService/SendHeartbeat",
122
}
123
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
124
return srv.(IDEClientServiceServer).SendHeartbeat(ctx, req.(*SendHeartbeatRequest))
125
}
126
return interceptor(ctx, in, info, handler)
127
}
128
129
func _IDEClientService_SendDidClose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
130
in := new(SendDidCloseRequest)
131
if err := dec(in); err != nil {
132
return nil, err
133
}
134
if interceptor == nil {
135
return srv.(IDEClientServiceServer).SendDidClose(ctx, in)
136
}
137
info := &grpc.UnaryServerInfo{
138
Server: srv,
139
FullMethod: "/gitpod.experimental.v1.IDEClientService/SendDidClose",
140
}
141
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
142
return srv.(IDEClientServiceServer).SendDidClose(ctx, req.(*SendDidCloseRequest))
143
}
144
return interceptor(ctx, in, info, handler)
145
}
146
147
func _IDEClientService_UpdateGitStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
148
in := new(UpdateGitStatusRequest)
149
if err := dec(in); err != nil {
150
return nil, err
151
}
152
if interceptor == nil {
153
return srv.(IDEClientServiceServer).UpdateGitStatus(ctx, in)
154
}
155
info := &grpc.UnaryServerInfo{
156
Server: srv,
157
FullMethod: "/gitpod.experimental.v1.IDEClientService/UpdateGitStatus",
158
}
159
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
160
return srv.(IDEClientServiceServer).UpdateGitStatus(ctx, req.(*UpdateGitStatusRequest))
161
}
162
return interceptor(ctx, in, info, handler)
163
}
164
165
// IDEClientService_ServiceDesc is the grpc.ServiceDesc for IDEClientService service.
166
// It's only intended for direct use with grpc.RegisterService,
167
// and not to be introspected or modified (even as a copy)
168
var IDEClientService_ServiceDesc = grpc.ServiceDesc{
169
ServiceName: "gitpod.experimental.v1.IDEClientService",
170
HandlerType: (*IDEClientServiceServer)(nil),
171
Methods: []grpc.MethodDesc{
172
{
173
MethodName: "SendHeartbeat",
174
Handler: _IDEClientService_SendHeartbeat_Handler,
175
},
176
{
177
MethodName: "SendDidClose",
178
Handler: _IDEClientService_SendDidClose_Handler,
179
},
180
{
181
MethodName: "UpdateGitStatus",
182
Handler: _IDEClientService_UpdateGitStatus_Handler,
183
},
184
},
185
Streams: []grpc.StreamDesc{},
186
Metadata: "gitpod/experimental/v1/ide_client.proto",
187
}
188
189