Path: blob/main/components/public-api/go/experimental/v1/ide_client_grpc.pb.go
2501 views
// Copyright (c) 2025 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: gitpod/experimental/v1/ide_client.proto910package v11112import (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// IDEClientServiceClient is the client API for IDEClientService 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 IDEClientServiceClient interface {28// SendHeartbeat sends a clientheartbeat signal for a running workspace.29SendHeartbeat(ctx context.Context, in *SendHeartbeatRequest, opts ...grpc.CallOption) (*SendHeartbeatResponse, error)30// SendDidClose sends a client close signal for a running workspace.31SendDidClose(ctx context.Context, in *SendDidCloseRequest, opts ...grpc.CallOption) (*SendDidCloseResponse, error)32// UpdateGitStatus updates the status of a repository in a workspace.33UpdateGitStatus(ctx context.Context, in *UpdateGitStatusRequest, opts ...grpc.CallOption) (*UpdateGitStatusResponse, error)34}3536type iDEClientServiceClient struct {37cc grpc.ClientConnInterface38}3940func NewIDEClientServiceClient(cc grpc.ClientConnInterface) IDEClientServiceClient {41return &iDEClientServiceClient{cc}42}4344func (c *iDEClientServiceClient) SendHeartbeat(ctx context.Context, in *SendHeartbeatRequest, opts ...grpc.CallOption) (*SendHeartbeatResponse, error) {45out := new(SendHeartbeatResponse)46err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/SendHeartbeat", in, out, opts...)47if err != nil {48return nil, err49}50return out, nil51}5253func (c *iDEClientServiceClient) SendDidClose(ctx context.Context, in *SendDidCloseRequest, opts ...grpc.CallOption) (*SendDidCloseResponse, error) {54out := new(SendDidCloseResponse)55err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/SendDidClose", in, out, opts...)56if err != nil {57return nil, err58}59return out, nil60}6162func (c *iDEClientServiceClient) UpdateGitStatus(ctx context.Context, in *UpdateGitStatusRequest, opts ...grpc.CallOption) (*UpdateGitStatusResponse, error) {63out := new(UpdateGitStatusResponse)64err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IDEClientService/UpdateGitStatus", in, out, opts...)65if err != nil {66return nil, err67}68return out, nil69}7071// IDEClientServiceServer is the server API for IDEClientService service.72// All implementations must embed UnimplementedIDEClientServiceServer73// for forward compatibility74type IDEClientServiceServer interface {75// SendHeartbeat sends a clientheartbeat signal for a running workspace.76SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatResponse, error)77// SendDidClose sends a client close signal for a running workspace.78SendDidClose(context.Context, *SendDidCloseRequest) (*SendDidCloseResponse, error)79// UpdateGitStatus updates the status of a repository in a workspace.80UpdateGitStatus(context.Context, *UpdateGitStatusRequest) (*UpdateGitStatusResponse, error)81mustEmbedUnimplementedIDEClientServiceServer()82}8384// UnimplementedIDEClientServiceServer must be embedded to have forward compatible implementations.85type UnimplementedIDEClientServiceServer struct {86}8788func (UnimplementedIDEClientServiceServer) SendHeartbeat(context.Context, *SendHeartbeatRequest) (*SendHeartbeatResponse, error) {89return nil, status.Errorf(codes.Unimplemented, "method SendHeartbeat not implemented")90}91func (UnimplementedIDEClientServiceServer) SendDidClose(context.Context, *SendDidCloseRequest) (*SendDidCloseResponse, error) {92return nil, status.Errorf(codes.Unimplemented, "method SendDidClose not implemented")93}94func (UnimplementedIDEClientServiceServer) UpdateGitStatus(context.Context, *UpdateGitStatusRequest) (*UpdateGitStatusResponse, error) {95return nil, status.Errorf(codes.Unimplemented, "method UpdateGitStatus not implemented")96}97func (UnimplementedIDEClientServiceServer) mustEmbedUnimplementedIDEClientServiceServer() {}9899// UnsafeIDEClientServiceServer may be embedded to opt out of forward compatibility for this service.100// Use of this interface is not recommended, as added methods to IDEClientServiceServer will101// result in compilation errors.102type UnsafeIDEClientServiceServer interface {103mustEmbedUnimplementedIDEClientServiceServer()104}105106func RegisterIDEClientServiceServer(s grpc.ServiceRegistrar, srv IDEClientServiceServer) {107s.RegisterService(&IDEClientService_ServiceDesc, srv)108}109110func _IDEClientService_SendHeartbeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {111in := new(SendHeartbeatRequest)112if err := dec(in); err != nil {113return nil, err114}115if interceptor == nil {116return srv.(IDEClientServiceServer).SendHeartbeat(ctx, in)117}118info := &grpc.UnaryServerInfo{119Server: srv,120FullMethod: "/gitpod.experimental.v1.IDEClientService/SendHeartbeat",121}122handler := func(ctx context.Context, req interface{}) (interface{}, error) {123return srv.(IDEClientServiceServer).SendHeartbeat(ctx, req.(*SendHeartbeatRequest))124}125return interceptor(ctx, in, info, handler)126}127128func _IDEClientService_SendDidClose_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {129in := new(SendDidCloseRequest)130if err := dec(in); err != nil {131return nil, err132}133if interceptor == nil {134return srv.(IDEClientServiceServer).SendDidClose(ctx, in)135}136info := &grpc.UnaryServerInfo{137Server: srv,138FullMethod: "/gitpod.experimental.v1.IDEClientService/SendDidClose",139}140handler := func(ctx context.Context, req interface{}) (interface{}, error) {141return srv.(IDEClientServiceServer).SendDidClose(ctx, req.(*SendDidCloseRequest))142}143return interceptor(ctx, in, info, handler)144}145146func _IDEClientService_UpdateGitStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {147in := new(UpdateGitStatusRequest)148if err := dec(in); err != nil {149return nil, err150}151if interceptor == nil {152return srv.(IDEClientServiceServer).UpdateGitStatus(ctx, in)153}154info := &grpc.UnaryServerInfo{155Server: srv,156FullMethod: "/gitpod.experimental.v1.IDEClientService/UpdateGitStatus",157}158handler := func(ctx context.Context, req interface{}) (interface{}, error) {159return srv.(IDEClientServiceServer).UpdateGitStatus(ctx, req.(*UpdateGitStatusRequest))160}161return interceptor(ctx, in, info, handler)162}163164// IDEClientService_ServiceDesc is the grpc.ServiceDesc for IDEClientService 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 IDEClientService_ServiceDesc = grpc.ServiceDesc{168ServiceName: "gitpod.experimental.v1.IDEClientService",169HandlerType: (*IDEClientServiceServer)(nil),170Methods: []grpc.MethodDesc{171{172MethodName: "SendHeartbeat",173Handler: _IDEClientService_SendHeartbeat_Handler,174},175{176MethodName: "SendDidClose",177Handler: _IDEClientService_SendDidClose_Handler,178},179{180MethodName: "UpdateGitStatus",181Handler: _IDEClientService_UpdateGitStatus_Handler,182},183},184Streams: []grpc.StreamDesc{},185Metadata: "gitpod/experimental/v1/ide_client.proto",186}187188189