Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/content-service-api/go/ideplugin_grpc.pb.go
2498 views
1
// Copyright (c) 2023 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: ideplugin.proto
10
11
package api
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
// IDEPluginServiceClient is the client API for IDEPluginService 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 IDEPluginServiceClient interface {
29
// UploadURL provides a URL to which clients can upload the content via HTTP PUT.
30
UploadURL(ctx context.Context, in *PluginUploadURLRequest, opts ...grpc.CallOption) (*PluginUploadURLResponse, error)
31
// DownloadURL provides a URL from which clients can download the content via HTTP GET.
32
DownloadURL(ctx context.Context, in *PluginDownloadURLRequest, opts ...grpc.CallOption) (*PluginDownloadURLResponse, error)
33
// PluginHash provides a hash of the plugin
34
PluginHash(ctx context.Context, in *PluginHashRequest, opts ...grpc.CallOption) (*PluginHashResponse, error)
35
}
36
37
type iDEPluginServiceClient struct {
38
cc grpc.ClientConnInterface
39
}
40
41
func NewIDEPluginServiceClient(cc grpc.ClientConnInterface) IDEPluginServiceClient {
42
return &iDEPluginServiceClient{cc}
43
}
44
45
func (c *iDEPluginServiceClient) UploadURL(ctx context.Context, in *PluginUploadURLRequest, opts ...grpc.CallOption) (*PluginUploadURLResponse, error) {
46
out := new(PluginUploadURLResponse)
47
err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/UploadURL", in, out, opts...)
48
if err != nil {
49
return nil, err
50
}
51
return out, nil
52
}
53
54
func (c *iDEPluginServiceClient) DownloadURL(ctx context.Context, in *PluginDownloadURLRequest, opts ...grpc.CallOption) (*PluginDownloadURLResponse, error) {
55
out := new(PluginDownloadURLResponse)
56
err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/DownloadURL", in, out, opts...)
57
if err != nil {
58
return nil, err
59
}
60
return out, nil
61
}
62
63
func (c *iDEPluginServiceClient) PluginHash(ctx context.Context, in *PluginHashRequest, opts ...grpc.CallOption) (*PluginHashResponse, error) {
64
out := new(PluginHashResponse)
65
err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/PluginHash", in, out, opts...)
66
if err != nil {
67
return nil, err
68
}
69
return out, nil
70
}
71
72
// IDEPluginServiceServer is the server API for IDEPluginService service.
73
// All implementations must embed UnimplementedIDEPluginServiceServer
74
// for forward compatibility
75
type IDEPluginServiceServer interface {
76
// UploadURL provides a URL to which clients can upload the content via HTTP PUT.
77
UploadURL(context.Context, *PluginUploadURLRequest) (*PluginUploadURLResponse, error)
78
// DownloadURL provides a URL from which clients can download the content via HTTP GET.
79
DownloadURL(context.Context, *PluginDownloadURLRequest) (*PluginDownloadURLResponse, error)
80
// PluginHash provides a hash of the plugin
81
PluginHash(context.Context, *PluginHashRequest) (*PluginHashResponse, error)
82
mustEmbedUnimplementedIDEPluginServiceServer()
83
}
84
85
// UnimplementedIDEPluginServiceServer must be embedded to have forward compatible implementations.
86
type UnimplementedIDEPluginServiceServer struct {
87
}
88
89
func (UnimplementedIDEPluginServiceServer) UploadURL(context.Context, *PluginUploadURLRequest) (*PluginUploadURLResponse, error) {
90
return nil, status.Errorf(codes.Unimplemented, "method UploadURL not implemented")
91
}
92
func (UnimplementedIDEPluginServiceServer) DownloadURL(context.Context, *PluginDownloadURLRequest) (*PluginDownloadURLResponse, error) {
93
return nil, status.Errorf(codes.Unimplemented, "method DownloadURL not implemented")
94
}
95
func (UnimplementedIDEPluginServiceServer) PluginHash(context.Context, *PluginHashRequest) (*PluginHashResponse, error) {
96
return nil, status.Errorf(codes.Unimplemented, "method PluginHash not implemented")
97
}
98
func (UnimplementedIDEPluginServiceServer) mustEmbedUnimplementedIDEPluginServiceServer() {}
99
100
// UnsafeIDEPluginServiceServer may be embedded to opt out of forward compatibility for this service.
101
// Use of this interface is not recommended, as added methods to IDEPluginServiceServer will
102
// result in compilation errors.
103
type UnsafeIDEPluginServiceServer interface {
104
mustEmbedUnimplementedIDEPluginServiceServer()
105
}
106
107
func RegisterIDEPluginServiceServer(s grpc.ServiceRegistrar, srv IDEPluginServiceServer) {
108
s.RegisterService(&IDEPluginService_ServiceDesc, srv)
109
}
110
111
func _IDEPluginService_UploadURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
112
in := new(PluginUploadURLRequest)
113
if err := dec(in); err != nil {
114
return nil, err
115
}
116
if interceptor == nil {
117
return srv.(IDEPluginServiceServer).UploadURL(ctx, in)
118
}
119
info := &grpc.UnaryServerInfo{
120
Server: srv,
121
FullMethod: "/ideplugin.IDEPluginService/UploadURL",
122
}
123
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
124
return srv.(IDEPluginServiceServer).UploadURL(ctx, req.(*PluginUploadURLRequest))
125
}
126
return interceptor(ctx, in, info, handler)
127
}
128
129
func _IDEPluginService_DownloadURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
130
in := new(PluginDownloadURLRequest)
131
if err := dec(in); err != nil {
132
return nil, err
133
}
134
if interceptor == nil {
135
return srv.(IDEPluginServiceServer).DownloadURL(ctx, in)
136
}
137
info := &grpc.UnaryServerInfo{
138
Server: srv,
139
FullMethod: "/ideplugin.IDEPluginService/DownloadURL",
140
}
141
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
142
return srv.(IDEPluginServiceServer).DownloadURL(ctx, req.(*PluginDownloadURLRequest))
143
}
144
return interceptor(ctx, in, info, handler)
145
}
146
147
func _IDEPluginService_PluginHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
148
in := new(PluginHashRequest)
149
if err := dec(in); err != nil {
150
return nil, err
151
}
152
if interceptor == nil {
153
return srv.(IDEPluginServiceServer).PluginHash(ctx, in)
154
}
155
info := &grpc.UnaryServerInfo{
156
Server: srv,
157
FullMethod: "/ideplugin.IDEPluginService/PluginHash",
158
}
159
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
160
return srv.(IDEPluginServiceServer).PluginHash(ctx, req.(*PluginHashRequest))
161
}
162
return interceptor(ctx, in, info, handler)
163
}
164
165
// IDEPluginService_ServiceDesc is the grpc.ServiceDesc for IDEPluginService 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 IDEPluginService_ServiceDesc = grpc.ServiceDesc{
169
ServiceName: "ideplugin.IDEPluginService",
170
HandlerType: (*IDEPluginServiceServer)(nil),
171
Methods: []grpc.MethodDesc{
172
{
173
MethodName: "UploadURL",
174
Handler: _IDEPluginService_UploadURL_Handler,
175
},
176
{
177
MethodName: "DownloadURL",
178
Handler: _IDEPluginService_DownloadURL_Handler,
179
},
180
{
181
MethodName: "PluginHash",
182
Handler: _IDEPluginService_PluginHash_Handler,
183
},
184
},
185
Streams: []grpc.StreamDesc{},
186
Metadata: "ideplugin.proto",
187
}
188
189