Path: blob/main/components/content-service-api/go/ideplugin_grpc.pb.go
2498 views
// Copyright (c) 2023 Gitpod GmbH. All rights reserved.1// Licensed under the GNU Affero General Public License (AGPL).2// See License.AGPL.txt in the project root for license information.34// Code generated by protoc-gen-go-grpc. DO NOT EDIT.5// versions:6// - protoc-gen-go-grpc v1.2.07// - protoc (unknown)8// source: ideplugin.proto910package api1112import (13context "context"14grpc "google.golang.org/grpc"15codes "google.golang.org/grpc/codes"16status "google.golang.org/grpc/status"17)1819// This is a compile-time assertion to ensure that this generated file20// is compatible with the grpc package it is being compiled against.21// Requires gRPC-Go v1.32.0 or later.22const _ = grpc.SupportPackageIsVersion72324// IDEPluginServiceClient is the client API for IDEPluginService service.25//26// 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.27type IDEPluginServiceClient interface {28// UploadURL provides a URL to which clients can upload the content via HTTP PUT.29UploadURL(ctx context.Context, in *PluginUploadURLRequest, opts ...grpc.CallOption) (*PluginUploadURLResponse, error)30// DownloadURL provides a URL from which clients can download the content via HTTP GET.31DownloadURL(ctx context.Context, in *PluginDownloadURLRequest, opts ...grpc.CallOption) (*PluginDownloadURLResponse, error)32// PluginHash provides a hash of the plugin33PluginHash(ctx context.Context, in *PluginHashRequest, opts ...grpc.CallOption) (*PluginHashResponse, error)34}3536type iDEPluginServiceClient struct {37cc grpc.ClientConnInterface38}3940func NewIDEPluginServiceClient(cc grpc.ClientConnInterface) IDEPluginServiceClient {41return &iDEPluginServiceClient{cc}42}4344func (c *iDEPluginServiceClient) UploadURL(ctx context.Context, in *PluginUploadURLRequest, opts ...grpc.CallOption) (*PluginUploadURLResponse, error) {45out := new(PluginUploadURLResponse)46err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/UploadURL", in, out, opts...)47if err != nil {48return nil, err49}50return out, nil51}5253func (c *iDEPluginServiceClient) DownloadURL(ctx context.Context, in *PluginDownloadURLRequest, opts ...grpc.CallOption) (*PluginDownloadURLResponse, error) {54out := new(PluginDownloadURLResponse)55err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/DownloadURL", in, out, opts...)56if err != nil {57return nil, err58}59return out, nil60}6162func (c *iDEPluginServiceClient) PluginHash(ctx context.Context, in *PluginHashRequest, opts ...grpc.CallOption) (*PluginHashResponse, error) {63out := new(PluginHashResponse)64err := c.cc.Invoke(ctx, "/ideplugin.IDEPluginService/PluginHash", in, out, opts...)65if err != nil {66return nil, err67}68return out, nil69}7071// IDEPluginServiceServer is the server API for IDEPluginService service.72// All implementations must embed UnimplementedIDEPluginServiceServer73// for forward compatibility74type IDEPluginServiceServer interface {75// UploadURL provides a URL to which clients can upload the content via HTTP PUT.76UploadURL(context.Context, *PluginUploadURLRequest) (*PluginUploadURLResponse, error)77// DownloadURL provides a URL from which clients can download the content via HTTP GET.78DownloadURL(context.Context, *PluginDownloadURLRequest) (*PluginDownloadURLResponse, error)79// PluginHash provides a hash of the plugin80PluginHash(context.Context, *PluginHashRequest) (*PluginHashResponse, error)81mustEmbedUnimplementedIDEPluginServiceServer()82}8384// UnimplementedIDEPluginServiceServer must be embedded to have forward compatible implementations.85type UnimplementedIDEPluginServiceServer struct {86}8788func (UnimplementedIDEPluginServiceServer) UploadURL(context.Context, *PluginUploadURLRequest) (*PluginUploadURLResponse, error) {89return nil, status.Errorf(codes.Unimplemented, "method UploadURL not implemented")90}91func (UnimplementedIDEPluginServiceServer) DownloadURL(context.Context, *PluginDownloadURLRequest) (*PluginDownloadURLResponse, error) {92return nil, status.Errorf(codes.Unimplemented, "method DownloadURL not implemented")93}94func (UnimplementedIDEPluginServiceServer) PluginHash(context.Context, *PluginHashRequest) (*PluginHashResponse, error) {95return nil, status.Errorf(codes.Unimplemented, "method PluginHash not implemented")96}97func (UnimplementedIDEPluginServiceServer) mustEmbedUnimplementedIDEPluginServiceServer() {}9899// UnsafeIDEPluginServiceServer may be embedded to opt out of forward compatibility for this service.100// Use of this interface is not recommended, as added methods to IDEPluginServiceServer will101// result in compilation errors.102type UnsafeIDEPluginServiceServer interface {103mustEmbedUnimplementedIDEPluginServiceServer()104}105106func RegisterIDEPluginServiceServer(s grpc.ServiceRegistrar, srv IDEPluginServiceServer) {107s.RegisterService(&IDEPluginService_ServiceDesc, srv)108}109110func _IDEPluginService_UploadURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {111in := new(PluginUploadURLRequest)112if err := dec(in); err != nil {113return nil, err114}115if interceptor == nil {116return srv.(IDEPluginServiceServer).UploadURL(ctx, in)117}118info := &grpc.UnaryServerInfo{119Server: srv,120FullMethod: "/ideplugin.IDEPluginService/UploadURL",121}122handler := func(ctx context.Context, req interface{}) (interface{}, error) {123return srv.(IDEPluginServiceServer).UploadURL(ctx, req.(*PluginUploadURLRequest))124}125return interceptor(ctx, in, info, handler)126}127128func _IDEPluginService_DownloadURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {129in := new(PluginDownloadURLRequest)130if err := dec(in); err != nil {131return nil, err132}133if interceptor == nil {134return srv.(IDEPluginServiceServer).DownloadURL(ctx, in)135}136info := &grpc.UnaryServerInfo{137Server: srv,138FullMethod: "/ideplugin.IDEPluginService/DownloadURL",139}140handler := func(ctx context.Context, req interface{}) (interface{}, error) {141return srv.(IDEPluginServiceServer).DownloadURL(ctx, req.(*PluginDownloadURLRequest))142}143return interceptor(ctx, in, info, handler)144}145146func _IDEPluginService_PluginHash_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {147in := new(PluginHashRequest)148if err := dec(in); err != nil {149return nil, err150}151if interceptor == nil {152return srv.(IDEPluginServiceServer).PluginHash(ctx, in)153}154info := &grpc.UnaryServerInfo{155Server: srv,156FullMethod: "/ideplugin.IDEPluginService/PluginHash",157}158handler := func(ctx context.Context, req interface{}) (interface{}, error) {159return srv.(IDEPluginServiceServer).PluginHash(ctx, req.(*PluginHashRequest))160}161return interceptor(ctx, in, info, handler)162}163164// IDEPluginService_ServiceDesc is the grpc.ServiceDesc for IDEPluginService service.165// It's only intended for direct use with grpc.RegisterService,166// and not to be introspected or modified (even as a copy)167var IDEPluginService_ServiceDesc = grpc.ServiceDesc{168ServiceName: "ideplugin.IDEPluginService",169HandlerType: (*IDEPluginServiceServer)(nil),170Methods: []grpc.MethodDesc{171{172MethodName: "UploadURL",173Handler: _IDEPluginService_UploadURL_Handler,174},175{176MethodName: "DownloadURL",177Handler: _IDEPluginService_DownloadURL_Handler,178},179{180MethodName: "PluginHash",181Handler: _IDEPluginService_PluginHash_Handler,182},183},184Streams: []grpc.StreamDesc{},185Metadata: "ideplugin.proto",186}187188189