Path: blob/main/components/public-api/go/v1/workspace_grpc.pb.go
2500 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/v1/workspace.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// WorkspaceServiceClient is the client API for WorkspaceService 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 WorkspaceServiceClient interface {28// GetWorkspace returns a single workspace.29//30// +return NOT_FOUND User does not have access to a workspace with the given31// ID +return NOT_FOUND Workspace does not exist32GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*GetWorkspaceResponse, error)33// WatchWorkspaceStatus watches the workspaces status changes34//35// workspace_id +return NOT_FOUND Workspace does not exist36WatchWorkspaceStatus(ctx context.Context, in *WatchWorkspaceStatusRequest, opts ...grpc.CallOption) (WorkspaceService_WatchWorkspaceStatusClient, error)37// ListWorkspaces returns a list of workspaces that match the query.38ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error)39// ListWorkspaceSessions returns a list of workspace sessions that match the40ListWorkspaceSessions(ctx context.Context, in *ListWorkspaceSessionsRequest, opts ...grpc.CallOption) (*ListWorkspaceSessionsResponse, error)41// CreateAndStartWorkspace creates a new workspace and starts it.42CreateAndStartWorkspace(ctx context.Context, in *CreateAndStartWorkspaceRequest, opts ...grpc.CallOption) (*CreateAndStartWorkspaceResponse, error)43// StartWorkspace starts an existing workspace.44// If the specified workspace is not in stopped phase, this will return the45// workspace as is.46StartWorkspace(ctx context.Context, in *StartWorkspaceRequest, opts ...grpc.CallOption) (*StartWorkspaceResponse, error)47// UpdateWorkspace updates the workspace.48UpdateWorkspace(ctx context.Context, in *UpdateWorkspaceRequest, opts ...grpc.CallOption) (*UpdateWorkspaceResponse, error)49// StopWorkspace stops a running workspace.50StopWorkspace(ctx context.Context, in *StopWorkspaceRequest, opts ...grpc.CallOption) (*StopWorkspaceResponse, error)51// DeleteWorkspace deletes a workspace.52// When the workspace is running, it will be stopped as well.53// Deleted workspaces cannot be started again.54DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, opts ...grpc.CallOption) (*DeleteWorkspaceResponse, error)55// ListWorkspaceClasses enumerates all available workspace classes.56ListWorkspaceClasses(ctx context.Context, in *ListWorkspaceClassesRequest, opts ...grpc.CallOption) (*ListWorkspaceClassesResponse, error)57// ParseContextURL parses a context URL and returns the workspace metadata and58// spec. Not implemented yet.59ParseContextURL(ctx context.Context, in *ParseContextURLRequest, opts ...grpc.CallOption) (*ParseContextURLResponse, error)60// GetWorkspaceDefaultImage returns the default workspace image of specified61// workspace.62GetWorkspaceDefaultImage(ctx context.Context, in *GetWorkspaceDefaultImageRequest, opts ...grpc.CallOption) (*GetWorkspaceDefaultImageResponse, error)63// SendHeartBeat sends a heartbeat to activate the workspace64SendHeartBeat(ctx context.Context, in *SendHeartBeatRequest, opts ...grpc.CallOption) (*SendHeartBeatResponse, error)65// GetWorkspaceOwnerToken returns an owner token of workspace.66GetWorkspaceOwnerToken(ctx context.Context, in *GetWorkspaceOwnerTokenRequest, opts ...grpc.CallOption) (*GetWorkspaceOwnerTokenResponse, error)67// GetWorkspaceEditorCredentials returns an credentials that is used in editor68// to encrypt and decrypt secrets69GetWorkspaceEditorCredentials(ctx context.Context, in *GetWorkspaceEditorCredentialsRequest, opts ...grpc.CallOption) (*GetWorkspaceEditorCredentialsResponse, error)70// CreateWorkspaceSnapshot creates a snapshot of the workspace that can be71// shared with others.72CreateWorkspaceSnapshot(ctx context.Context, in *CreateWorkspaceSnapshotRequest, opts ...grpc.CallOption) (*CreateWorkspaceSnapshotResponse, error)73// WaitWorkspaceSnapshot waits for the snapshot to be available or failed.74WaitForWorkspaceSnapshot(ctx context.Context, in *WaitForWorkspaceSnapshotRequest, opts ...grpc.CallOption) (*WaitForWorkspaceSnapshotResponse, error)75// UpdateWorkspacePort updates the port of workspace.76UpdateWorkspacePort(ctx context.Context, in *UpdateWorkspacePortRequest, opts ...grpc.CallOption) (*UpdateWorkspacePortResponse, error)77}7879type workspaceServiceClient struct {80cc grpc.ClientConnInterface81}8283func NewWorkspaceServiceClient(cc grpc.ClientConnInterface) WorkspaceServiceClient {84return &workspaceServiceClient{cc}85}8687func (c *workspaceServiceClient) GetWorkspace(ctx context.Context, in *GetWorkspaceRequest, opts ...grpc.CallOption) (*GetWorkspaceResponse, error) {88out := new(GetWorkspaceResponse)89err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/GetWorkspace", in, out, opts...)90if err != nil {91return nil, err92}93return out, nil94}9596func (c *workspaceServiceClient) WatchWorkspaceStatus(ctx context.Context, in *WatchWorkspaceStatusRequest, opts ...grpc.CallOption) (WorkspaceService_WatchWorkspaceStatusClient, error) {97stream, err := c.cc.NewStream(ctx, &WorkspaceService_ServiceDesc.Streams[0], "/gitpod.v1.WorkspaceService/WatchWorkspaceStatus", opts...)98if err != nil {99return nil, err100}101x := &workspaceServiceWatchWorkspaceStatusClient{stream}102if err := x.ClientStream.SendMsg(in); err != nil {103return nil, err104}105if err := x.ClientStream.CloseSend(); err != nil {106return nil, err107}108return x, nil109}110111type WorkspaceService_WatchWorkspaceStatusClient interface {112Recv() (*WatchWorkspaceStatusResponse, error)113grpc.ClientStream114}115116type workspaceServiceWatchWorkspaceStatusClient struct {117grpc.ClientStream118}119120func (x *workspaceServiceWatchWorkspaceStatusClient) Recv() (*WatchWorkspaceStatusResponse, error) {121m := new(WatchWorkspaceStatusResponse)122if err := x.ClientStream.RecvMsg(m); err != nil {123return nil, err124}125return m, nil126}127128func (c *workspaceServiceClient) ListWorkspaces(ctx context.Context, in *ListWorkspacesRequest, opts ...grpc.CallOption) (*ListWorkspacesResponse, error) {129out := new(ListWorkspacesResponse)130err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/ListWorkspaces", in, out, opts...)131if err != nil {132return nil, err133}134return out, nil135}136137func (c *workspaceServiceClient) ListWorkspaceSessions(ctx context.Context, in *ListWorkspaceSessionsRequest, opts ...grpc.CallOption) (*ListWorkspaceSessionsResponse, error) {138out := new(ListWorkspaceSessionsResponse)139err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/ListWorkspaceSessions", in, out, opts...)140if err != nil {141return nil, err142}143return out, nil144}145146func (c *workspaceServiceClient) CreateAndStartWorkspace(ctx context.Context, in *CreateAndStartWorkspaceRequest, opts ...grpc.CallOption) (*CreateAndStartWorkspaceResponse, error) {147out := new(CreateAndStartWorkspaceResponse)148err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/CreateAndStartWorkspace", in, out, opts...)149if err != nil {150return nil, err151}152return out, nil153}154155func (c *workspaceServiceClient) StartWorkspace(ctx context.Context, in *StartWorkspaceRequest, opts ...grpc.CallOption) (*StartWorkspaceResponse, error) {156out := new(StartWorkspaceResponse)157err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/StartWorkspace", in, out, opts...)158if err != nil {159return nil, err160}161return out, nil162}163164func (c *workspaceServiceClient) UpdateWorkspace(ctx context.Context, in *UpdateWorkspaceRequest, opts ...grpc.CallOption) (*UpdateWorkspaceResponse, error) {165out := new(UpdateWorkspaceResponse)166err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/UpdateWorkspace", in, out, opts...)167if err != nil {168return nil, err169}170return out, nil171}172173func (c *workspaceServiceClient) StopWorkspace(ctx context.Context, in *StopWorkspaceRequest, opts ...grpc.CallOption) (*StopWorkspaceResponse, error) {174out := new(StopWorkspaceResponse)175err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/StopWorkspace", in, out, opts...)176if err != nil {177return nil, err178}179return out, nil180}181182func (c *workspaceServiceClient) DeleteWorkspace(ctx context.Context, in *DeleteWorkspaceRequest, opts ...grpc.CallOption) (*DeleteWorkspaceResponse, error) {183out := new(DeleteWorkspaceResponse)184err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/DeleteWorkspace", in, out, opts...)185if err != nil {186return nil, err187}188return out, nil189}190191func (c *workspaceServiceClient) ListWorkspaceClasses(ctx context.Context, in *ListWorkspaceClassesRequest, opts ...grpc.CallOption) (*ListWorkspaceClassesResponse, error) {192out := new(ListWorkspaceClassesResponse)193err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/ListWorkspaceClasses", in, out, opts...)194if err != nil {195return nil, err196}197return out, nil198}199200func (c *workspaceServiceClient) ParseContextURL(ctx context.Context, in *ParseContextURLRequest, opts ...grpc.CallOption) (*ParseContextURLResponse, error) {201out := new(ParseContextURLResponse)202err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/ParseContextURL", in, out, opts...)203if err != nil {204return nil, err205}206return out, nil207}208209func (c *workspaceServiceClient) GetWorkspaceDefaultImage(ctx context.Context, in *GetWorkspaceDefaultImageRequest, opts ...grpc.CallOption) (*GetWorkspaceDefaultImageResponse, error) {210out := new(GetWorkspaceDefaultImageResponse)211err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/GetWorkspaceDefaultImage", in, out, opts...)212if err != nil {213return nil, err214}215return out, nil216}217218func (c *workspaceServiceClient) SendHeartBeat(ctx context.Context, in *SendHeartBeatRequest, opts ...grpc.CallOption) (*SendHeartBeatResponse, error) {219out := new(SendHeartBeatResponse)220err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/SendHeartBeat", in, out, opts...)221if err != nil {222return nil, err223}224return out, nil225}226227func (c *workspaceServiceClient) GetWorkspaceOwnerToken(ctx context.Context, in *GetWorkspaceOwnerTokenRequest, opts ...grpc.CallOption) (*GetWorkspaceOwnerTokenResponse, error) {228out := new(GetWorkspaceOwnerTokenResponse)229err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/GetWorkspaceOwnerToken", in, out, opts...)230if err != nil {231return nil, err232}233return out, nil234}235236func (c *workspaceServiceClient) GetWorkspaceEditorCredentials(ctx context.Context, in *GetWorkspaceEditorCredentialsRequest, opts ...grpc.CallOption) (*GetWorkspaceEditorCredentialsResponse, error) {237out := new(GetWorkspaceEditorCredentialsResponse)238err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/GetWorkspaceEditorCredentials", in, out, opts...)239if err != nil {240return nil, err241}242return out, nil243}244245func (c *workspaceServiceClient) CreateWorkspaceSnapshot(ctx context.Context, in *CreateWorkspaceSnapshotRequest, opts ...grpc.CallOption) (*CreateWorkspaceSnapshotResponse, error) {246out := new(CreateWorkspaceSnapshotResponse)247err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/CreateWorkspaceSnapshot", in, out, opts...)248if err != nil {249return nil, err250}251return out, nil252}253254func (c *workspaceServiceClient) WaitForWorkspaceSnapshot(ctx context.Context, in *WaitForWorkspaceSnapshotRequest, opts ...grpc.CallOption) (*WaitForWorkspaceSnapshotResponse, error) {255out := new(WaitForWorkspaceSnapshotResponse)256err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/WaitForWorkspaceSnapshot", in, out, opts...)257if err != nil {258return nil, err259}260return out, nil261}262263func (c *workspaceServiceClient) UpdateWorkspacePort(ctx context.Context, in *UpdateWorkspacePortRequest, opts ...grpc.CallOption) (*UpdateWorkspacePortResponse, error) {264out := new(UpdateWorkspacePortResponse)265err := c.cc.Invoke(ctx, "/gitpod.v1.WorkspaceService/UpdateWorkspacePort", in, out, opts...)266if err != nil {267return nil, err268}269return out, nil270}271272// WorkspaceServiceServer is the server API for WorkspaceService service.273// All implementations must embed UnimplementedWorkspaceServiceServer274// for forward compatibility275type WorkspaceServiceServer interface {276// GetWorkspace returns a single workspace.277//278// +return NOT_FOUND User does not have access to a workspace with the given279// ID +return NOT_FOUND Workspace does not exist280GetWorkspace(context.Context, *GetWorkspaceRequest) (*GetWorkspaceResponse, error)281// WatchWorkspaceStatus watches the workspaces status changes282//283// workspace_id +return NOT_FOUND Workspace does not exist284WatchWorkspaceStatus(*WatchWorkspaceStatusRequest, WorkspaceService_WatchWorkspaceStatusServer) error285// ListWorkspaces returns a list of workspaces that match the query.286ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error)287// ListWorkspaceSessions returns a list of workspace sessions that match the288ListWorkspaceSessions(context.Context, *ListWorkspaceSessionsRequest) (*ListWorkspaceSessionsResponse, error)289// CreateAndStartWorkspace creates a new workspace and starts it.290CreateAndStartWorkspace(context.Context, *CreateAndStartWorkspaceRequest) (*CreateAndStartWorkspaceResponse, error)291// StartWorkspace starts an existing workspace.292// If the specified workspace is not in stopped phase, this will return the293// workspace as is.294StartWorkspace(context.Context, *StartWorkspaceRequest) (*StartWorkspaceResponse, error)295// UpdateWorkspace updates the workspace.296UpdateWorkspace(context.Context, *UpdateWorkspaceRequest) (*UpdateWorkspaceResponse, error)297// StopWorkspace stops a running workspace.298StopWorkspace(context.Context, *StopWorkspaceRequest) (*StopWorkspaceResponse, error)299// DeleteWorkspace deletes a workspace.300// When the workspace is running, it will be stopped as well.301// Deleted workspaces cannot be started again.302DeleteWorkspace(context.Context, *DeleteWorkspaceRequest) (*DeleteWorkspaceResponse, error)303// ListWorkspaceClasses enumerates all available workspace classes.304ListWorkspaceClasses(context.Context, *ListWorkspaceClassesRequest) (*ListWorkspaceClassesResponse, error)305// ParseContextURL parses a context URL and returns the workspace metadata and306// spec. Not implemented yet.307ParseContextURL(context.Context, *ParseContextURLRequest) (*ParseContextURLResponse, error)308// GetWorkspaceDefaultImage returns the default workspace image of specified309// workspace.310GetWorkspaceDefaultImage(context.Context, *GetWorkspaceDefaultImageRequest) (*GetWorkspaceDefaultImageResponse, error)311// SendHeartBeat sends a heartbeat to activate the workspace312SendHeartBeat(context.Context, *SendHeartBeatRequest) (*SendHeartBeatResponse, error)313// GetWorkspaceOwnerToken returns an owner token of workspace.314GetWorkspaceOwnerToken(context.Context, *GetWorkspaceOwnerTokenRequest) (*GetWorkspaceOwnerTokenResponse, error)315// GetWorkspaceEditorCredentials returns an credentials that is used in editor316// to encrypt and decrypt secrets317GetWorkspaceEditorCredentials(context.Context, *GetWorkspaceEditorCredentialsRequest) (*GetWorkspaceEditorCredentialsResponse, error)318// CreateWorkspaceSnapshot creates a snapshot of the workspace that can be319// shared with others.320CreateWorkspaceSnapshot(context.Context, *CreateWorkspaceSnapshotRequest) (*CreateWorkspaceSnapshotResponse, error)321// WaitWorkspaceSnapshot waits for the snapshot to be available or failed.322WaitForWorkspaceSnapshot(context.Context, *WaitForWorkspaceSnapshotRequest) (*WaitForWorkspaceSnapshotResponse, error)323// UpdateWorkspacePort updates the port of workspace.324UpdateWorkspacePort(context.Context, *UpdateWorkspacePortRequest) (*UpdateWorkspacePortResponse, error)325mustEmbedUnimplementedWorkspaceServiceServer()326}327328// UnimplementedWorkspaceServiceServer must be embedded to have forward compatible implementations.329type UnimplementedWorkspaceServiceServer struct {330}331332func (UnimplementedWorkspaceServiceServer) GetWorkspace(context.Context, *GetWorkspaceRequest) (*GetWorkspaceResponse, error) {333return nil, status.Errorf(codes.Unimplemented, "method GetWorkspace not implemented")334}335func (UnimplementedWorkspaceServiceServer) WatchWorkspaceStatus(*WatchWorkspaceStatusRequest, WorkspaceService_WatchWorkspaceStatusServer) error {336return status.Errorf(codes.Unimplemented, "method WatchWorkspaceStatus not implemented")337}338func (UnimplementedWorkspaceServiceServer) ListWorkspaces(context.Context, *ListWorkspacesRequest) (*ListWorkspacesResponse, error) {339return nil, status.Errorf(codes.Unimplemented, "method ListWorkspaces not implemented")340}341func (UnimplementedWorkspaceServiceServer) ListWorkspaceSessions(context.Context, *ListWorkspaceSessionsRequest) (*ListWorkspaceSessionsResponse, error) {342return nil, status.Errorf(codes.Unimplemented, "method ListWorkspaceSessions not implemented")343}344func (UnimplementedWorkspaceServiceServer) CreateAndStartWorkspace(context.Context, *CreateAndStartWorkspaceRequest) (*CreateAndStartWorkspaceResponse, error) {345return nil, status.Errorf(codes.Unimplemented, "method CreateAndStartWorkspace not implemented")346}347func (UnimplementedWorkspaceServiceServer) StartWorkspace(context.Context, *StartWorkspaceRequest) (*StartWorkspaceResponse, error) {348return nil, status.Errorf(codes.Unimplemented, "method StartWorkspace not implemented")349}350func (UnimplementedWorkspaceServiceServer) UpdateWorkspace(context.Context, *UpdateWorkspaceRequest) (*UpdateWorkspaceResponse, error) {351return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkspace not implemented")352}353func (UnimplementedWorkspaceServiceServer) StopWorkspace(context.Context, *StopWorkspaceRequest) (*StopWorkspaceResponse, error) {354return nil, status.Errorf(codes.Unimplemented, "method StopWorkspace not implemented")355}356func (UnimplementedWorkspaceServiceServer) DeleteWorkspace(context.Context, *DeleteWorkspaceRequest) (*DeleteWorkspaceResponse, error) {357return nil, status.Errorf(codes.Unimplemented, "method DeleteWorkspace not implemented")358}359func (UnimplementedWorkspaceServiceServer) ListWorkspaceClasses(context.Context, *ListWorkspaceClassesRequest) (*ListWorkspaceClassesResponse, error) {360return nil, status.Errorf(codes.Unimplemented, "method ListWorkspaceClasses not implemented")361}362func (UnimplementedWorkspaceServiceServer) ParseContextURL(context.Context, *ParseContextURLRequest) (*ParseContextURLResponse, error) {363return nil, status.Errorf(codes.Unimplemented, "method ParseContextURL not implemented")364}365func (UnimplementedWorkspaceServiceServer) GetWorkspaceDefaultImage(context.Context, *GetWorkspaceDefaultImageRequest) (*GetWorkspaceDefaultImageResponse, error) {366return nil, status.Errorf(codes.Unimplemented, "method GetWorkspaceDefaultImage not implemented")367}368func (UnimplementedWorkspaceServiceServer) SendHeartBeat(context.Context, *SendHeartBeatRequest) (*SendHeartBeatResponse, error) {369return nil, status.Errorf(codes.Unimplemented, "method SendHeartBeat not implemented")370}371func (UnimplementedWorkspaceServiceServer) GetWorkspaceOwnerToken(context.Context, *GetWorkspaceOwnerTokenRequest) (*GetWorkspaceOwnerTokenResponse, error) {372return nil, status.Errorf(codes.Unimplemented, "method GetWorkspaceOwnerToken not implemented")373}374func (UnimplementedWorkspaceServiceServer) GetWorkspaceEditorCredentials(context.Context, *GetWorkspaceEditorCredentialsRequest) (*GetWorkspaceEditorCredentialsResponse, error) {375return nil, status.Errorf(codes.Unimplemented, "method GetWorkspaceEditorCredentials not implemented")376}377func (UnimplementedWorkspaceServiceServer) CreateWorkspaceSnapshot(context.Context, *CreateWorkspaceSnapshotRequest) (*CreateWorkspaceSnapshotResponse, error) {378return nil, status.Errorf(codes.Unimplemented, "method CreateWorkspaceSnapshot not implemented")379}380func (UnimplementedWorkspaceServiceServer) WaitForWorkspaceSnapshot(context.Context, *WaitForWorkspaceSnapshotRequest) (*WaitForWorkspaceSnapshotResponse, error) {381return nil, status.Errorf(codes.Unimplemented, "method WaitForWorkspaceSnapshot not implemented")382}383func (UnimplementedWorkspaceServiceServer) UpdateWorkspacePort(context.Context, *UpdateWorkspacePortRequest) (*UpdateWorkspacePortResponse, error) {384return nil, status.Errorf(codes.Unimplemented, "method UpdateWorkspacePort not implemented")385}386func (UnimplementedWorkspaceServiceServer) mustEmbedUnimplementedWorkspaceServiceServer() {}387388// UnsafeWorkspaceServiceServer may be embedded to opt out of forward compatibility for this service.389// Use of this interface is not recommended, as added methods to WorkspaceServiceServer will390// result in compilation errors.391type UnsafeWorkspaceServiceServer interface {392mustEmbedUnimplementedWorkspaceServiceServer()393}394395func RegisterWorkspaceServiceServer(s grpc.ServiceRegistrar, srv WorkspaceServiceServer) {396s.RegisterService(&WorkspaceService_ServiceDesc, srv)397}398399func _WorkspaceService_GetWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {400in := new(GetWorkspaceRequest)401if err := dec(in); err != nil {402return nil, err403}404if interceptor == nil {405return srv.(WorkspaceServiceServer).GetWorkspace(ctx, in)406}407info := &grpc.UnaryServerInfo{408Server: srv,409FullMethod: "/gitpod.v1.WorkspaceService/GetWorkspace",410}411handler := func(ctx context.Context, req interface{}) (interface{}, error) {412return srv.(WorkspaceServiceServer).GetWorkspace(ctx, req.(*GetWorkspaceRequest))413}414return interceptor(ctx, in, info, handler)415}416417func _WorkspaceService_WatchWorkspaceStatus_Handler(srv interface{}, stream grpc.ServerStream) error {418m := new(WatchWorkspaceStatusRequest)419if err := stream.RecvMsg(m); err != nil {420return err421}422return srv.(WorkspaceServiceServer).WatchWorkspaceStatus(m, &workspaceServiceWatchWorkspaceStatusServer{stream})423}424425type WorkspaceService_WatchWorkspaceStatusServer interface {426Send(*WatchWorkspaceStatusResponse) error427grpc.ServerStream428}429430type workspaceServiceWatchWorkspaceStatusServer struct {431grpc.ServerStream432}433434func (x *workspaceServiceWatchWorkspaceStatusServer) Send(m *WatchWorkspaceStatusResponse) error {435return x.ServerStream.SendMsg(m)436}437438func _WorkspaceService_ListWorkspaces_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {439in := new(ListWorkspacesRequest)440if err := dec(in); err != nil {441return nil, err442}443if interceptor == nil {444return srv.(WorkspaceServiceServer).ListWorkspaces(ctx, in)445}446info := &grpc.UnaryServerInfo{447Server: srv,448FullMethod: "/gitpod.v1.WorkspaceService/ListWorkspaces",449}450handler := func(ctx context.Context, req interface{}) (interface{}, error) {451return srv.(WorkspaceServiceServer).ListWorkspaces(ctx, req.(*ListWorkspacesRequest))452}453return interceptor(ctx, in, info, handler)454}455456func _WorkspaceService_ListWorkspaceSessions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {457in := new(ListWorkspaceSessionsRequest)458if err := dec(in); err != nil {459return nil, err460}461if interceptor == nil {462return srv.(WorkspaceServiceServer).ListWorkspaceSessions(ctx, in)463}464info := &grpc.UnaryServerInfo{465Server: srv,466FullMethod: "/gitpod.v1.WorkspaceService/ListWorkspaceSessions",467}468handler := func(ctx context.Context, req interface{}) (interface{}, error) {469return srv.(WorkspaceServiceServer).ListWorkspaceSessions(ctx, req.(*ListWorkspaceSessionsRequest))470}471return interceptor(ctx, in, info, handler)472}473474func _WorkspaceService_CreateAndStartWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {475in := new(CreateAndStartWorkspaceRequest)476if err := dec(in); err != nil {477return nil, err478}479if interceptor == nil {480return srv.(WorkspaceServiceServer).CreateAndStartWorkspace(ctx, in)481}482info := &grpc.UnaryServerInfo{483Server: srv,484FullMethod: "/gitpod.v1.WorkspaceService/CreateAndStartWorkspace",485}486handler := func(ctx context.Context, req interface{}) (interface{}, error) {487return srv.(WorkspaceServiceServer).CreateAndStartWorkspace(ctx, req.(*CreateAndStartWorkspaceRequest))488}489return interceptor(ctx, in, info, handler)490}491492func _WorkspaceService_StartWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {493in := new(StartWorkspaceRequest)494if err := dec(in); err != nil {495return nil, err496}497if interceptor == nil {498return srv.(WorkspaceServiceServer).StartWorkspace(ctx, in)499}500info := &grpc.UnaryServerInfo{501Server: srv,502FullMethod: "/gitpod.v1.WorkspaceService/StartWorkspace",503}504handler := func(ctx context.Context, req interface{}) (interface{}, error) {505return srv.(WorkspaceServiceServer).StartWorkspace(ctx, req.(*StartWorkspaceRequest))506}507return interceptor(ctx, in, info, handler)508}509510func _WorkspaceService_UpdateWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {511in := new(UpdateWorkspaceRequest)512if err := dec(in); err != nil {513return nil, err514}515if interceptor == nil {516return srv.(WorkspaceServiceServer).UpdateWorkspace(ctx, in)517}518info := &grpc.UnaryServerInfo{519Server: srv,520FullMethod: "/gitpod.v1.WorkspaceService/UpdateWorkspace",521}522handler := func(ctx context.Context, req interface{}) (interface{}, error) {523return srv.(WorkspaceServiceServer).UpdateWorkspace(ctx, req.(*UpdateWorkspaceRequest))524}525return interceptor(ctx, in, info, handler)526}527528func _WorkspaceService_StopWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {529in := new(StopWorkspaceRequest)530if err := dec(in); err != nil {531return nil, err532}533if interceptor == nil {534return srv.(WorkspaceServiceServer).StopWorkspace(ctx, in)535}536info := &grpc.UnaryServerInfo{537Server: srv,538FullMethod: "/gitpod.v1.WorkspaceService/StopWorkspace",539}540handler := func(ctx context.Context, req interface{}) (interface{}, error) {541return srv.(WorkspaceServiceServer).StopWorkspace(ctx, req.(*StopWorkspaceRequest))542}543return interceptor(ctx, in, info, handler)544}545546func _WorkspaceService_DeleteWorkspace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {547in := new(DeleteWorkspaceRequest)548if err := dec(in); err != nil {549return nil, err550}551if interceptor == nil {552return srv.(WorkspaceServiceServer).DeleteWorkspace(ctx, in)553}554info := &grpc.UnaryServerInfo{555Server: srv,556FullMethod: "/gitpod.v1.WorkspaceService/DeleteWorkspace",557}558handler := func(ctx context.Context, req interface{}) (interface{}, error) {559return srv.(WorkspaceServiceServer).DeleteWorkspace(ctx, req.(*DeleteWorkspaceRequest))560}561return interceptor(ctx, in, info, handler)562}563564func _WorkspaceService_ListWorkspaceClasses_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {565in := new(ListWorkspaceClassesRequest)566if err := dec(in); err != nil {567return nil, err568}569if interceptor == nil {570return srv.(WorkspaceServiceServer).ListWorkspaceClasses(ctx, in)571}572info := &grpc.UnaryServerInfo{573Server: srv,574FullMethod: "/gitpod.v1.WorkspaceService/ListWorkspaceClasses",575}576handler := func(ctx context.Context, req interface{}) (interface{}, error) {577return srv.(WorkspaceServiceServer).ListWorkspaceClasses(ctx, req.(*ListWorkspaceClassesRequest))578}579return interceptor(ctx, in, info, handler)580}581582func _WorkspaceService_ParseContextURL_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {583in := new(ParseContextURLRequest)584if err := dec(in); err != nil {585return nil, err586}587if interceptor == nil {588return srv.(WorkspaceServiceServer).ParseContextURL(ctx, in)589}590info := &grpc.UnaryServerInfo{591Server: srv,592FullMethod: "/gitpod.v1.WorkspaceService/ParseContextURL",593}594handler := func(ctx context.Context, req interface{}) (interface{}, error) {595return srv.(WorkspaceServiceServer).ParseContextURL(ctx, req.(*ParseContextURLRequest))596}597return interceptor(ctx, in, info, handler)598}599600func _WorkspaceService_GetWorkspaceDefaultImage_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {601in := new(GetWorkspaceDefaultImageRequest)602if err := dec(in); err != nil {603return nil, err604}605if interceptor == nil {606return srv.(WorkspaceServiceServer).GetWorkspaceDefaultImage(ctx, in)607}608info := &grpc.UnaryServerInfo{609Server: srv,610FullMethod: "/gitpod.v1.WorkspaceService/GetWorkspaceDefaultImage",611}612handler := func(ctx context.Context, req interface{}) (interface{}, error) {613return srv.(WorkspaceServiceServer).GetWorkspaceDefaultImage(ctx, req.(*GetWorkspaceDefaultImageRequest))614}615return interceptor(ctx, in, info, handler)616}617618func _WorkspaceService_SendHeartBeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {619in := new(SendHeartBeatRequest)620if err := dec(in); err != nil {621return nil, err622}623if interceptor == nil {624return srv.(WorkspaceServiceServer).SendHeartBeat(ctx, in)625}626info := &grpc.UnaryServerInfo{627Server: srv,628FullMethod: "/gitpod.v1.WorkspaceService/SendHeartBeat",629}630handler := func(ctx context.Context, req interface{}) (interface{}, error) {631return srv.(WorkspaceServiceServer).SendHeartBeat(ctx, req.(*SendHeartBeatRequest))632}633return interceptor(ctx, in, info, handler)634}635636func _WorkspaceService_GetWorkspaceOwnerToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {637in := new(GetWorkspaceOwnerTokenRequest)638if err := dec(in); err != nil {639return nil, err640}641if interceptor == nil {642return srv.(WorkspaceServiceServer).GetWorkspaceOwnerToken(ctx, in)643}644info := &grpc.UnaryServerInfo{645Server: srv,646FullMethod: "/gitpod.v1.WorkspaceService/GetWorkspaceOwnerToken",647}648handler := func(ctx context.Context, req interface{}) (interface{}, error) {649return srv.(WorkspaceServiceServer).GetWorkspaceOwnerToken(ctx, req.(*GetWorkspaceOwnerTokenRequest))650}651return interceptor(ctx, in, info, handler)652}653654func _WorkspaceService_GetWorkspaceEditorCredentials_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {655in := new(GetWorkspaceEditorCredentialsRequest)656if err := dec(in); err != nil {657return nil, err658}659if interceptor == nil {660return srv.(WorkspaceServiceServer).GetWorkspaceEditorCredentials(ctx, in)661}662info := &grpc.UnaryServerInfo{663Server: srv,664FullMethod: "/gitpod.v1.WorkspaceService/GetWorkspaceEditorCredentials",665}666handler := func(ctx context.Context, req interface{}) (interface{}, error) {667return srv.(WorkspaceServiceServer).GetWorkspaceEditorCredentials(ctx, req.(*GetWorkspaceEditorCredentialsRequest))668}669return interceptor(ctx, in, info, handler)670}671672func _WorkspaceService_CreateWorkspaceSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {673in := new(CreateWorkspaceSnapshotRequest)674if err := dec(in); err != nil {675return nil, err676}677if interceptor == nil {678return srv.(WorkspaceServiceServer).CreateWorkspaceSnapshot(ctx, in)679}680info := &grpc.UnaryServerInfo{681Server: srv,682FullMethod: "/gitpod.v1.WorkspaceService/CreateWorkspaceSnapshot",683}684handler := func(ctx context.Context, req interface{}) (interface{}, error) {685return srv.(WorkspaceServiceServer).CreateWorkspaceSnapshot(ctx, req.(*CreateWorkspaceSnapshotRequest))686}687return interceptor(ctx, in, info, handler)688}689690func _WorkspaceService_WaitForWorkspaceSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {691in := new(WaitForWorkspaceSnapshotRequest)692if err := dec(in); err != nil {693return nil, err694}695if interceptor == nil {696return srv.(WorkspaceServiceServer).WaitForWorkspaceSnapshot(ctx, in)697}698info := &grpc.UnaryServerInfo{699Server: srv,700FullMethod: "/gitpod.v1.WorkspaceService/WaitForWorkspaceSnapshot",701}702handler := func(ctx context.Context, req interface{}) (interface{}, error) {703return srv.(WorkspaceServiceServer).WaitForWorkspaceSnapshot(ctx, req.(*WaitForWorkspaceSnapshotRequest))704}705return interceptor(ctx, in, info, handler)706}707708func _WorkspaceService_UpdateWorkspacePort_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {709in := new(UpdateWorkspacePortRequest)710if err := dec(in); err != nil {711return nil, err712}713if interceptor == nil {714return srv.(WorkspaceServiceServer).UpdateWorkspacePort(ctx, in)715}716info := &grpc.UnaryServerInfo{717Server: srv,718FullMethod: "/gitpod.v1.WorkspaceService/UpdateWorkspacePort",719}720handler := func(ctx context.Context, req interface{}) (interface{}, error) {721return srv.(WorkspaceServiceServer).UpdateWorkspacePort(ctx, req.(*UpdateWorkspacePortRequest))722}723return interceptor(ctx, in, info, handler)724}725726// WorkspaceService_ServiceDesc is the grpc.ServiceDesc for WorkspaceService service.727// It's only intended for direct use with grpc.RegisterService,728// and not to be introspected or modified (even as a copy)729var WorkspaceService_ServiceDesc = grpc.ServiceDesc{730ServiceName: "gitpod.v1.WorkspaceService",731HandlerType: (*WorkspaceServiceServer)(nil),732Methods: []grpc.MethodDesc{733{734MethodName: "GetWorkspace",735Handler: _WorkspaceService_GetWorkspace_Handler,736},737{738MethodName: "ListWorkspaces",739Handler: _WorkspaceService_ListWorkspaces_Handler,740},741{742MethodName: "ListWorkspaceSessions",743Handler: _WorkspaceService_ListWorkspaceSessions_Handler,744},745{746MethodName: "CreateAndStartWorkspace",747Handler: _WorkspaceService_CreateAndStartWorkspace_Handler,748},749{750MethodName: "StartWorkspace",751Handler: _WorkspaceService_StartWorkspace_Handler,752},753{754MethodName: "UpdateWorkspace",755Handler: _WorkspaceService_UpdateWorkspace_Handler,756},757{758MethodName: "StopWorkspace",759Handler: _WorkspaceService_StopWorkspace_Handler,760},761{762MethodName: "DeleteWorkspace",763Handler: _WorkspaceService_DeleteWorkspace_Handler,764},765{766MethodName: "ListWorkspaceClasses",767Handler: _WorkspaceService_ListWorkspaceClasses_Handler,768},769{770MethodName: "ParseContextURL",771Handler: _WorkspaceService_ParseContextURL_Handler,772},773{774MethodName: "GetWorkspaceDefaultImage",775Handler: _WorkspaceService_GetWorkspaceDefaultImage_Handler,776},777{778MethodName: "SendHeartBeat",779Handler: _WorkspaceService_SendHeartBeat_Handler,780},781{782MethodName: "GetWorkspaceOwnerToken",783Handler: _WorkspaceService_GetWorkspaceOwnerToken_Handler,784},785{786MethodName: "GetWorkspaceEditorCredentials",787Handler: _WorkspaceService_GetWorkspaceEditorCredentials_Handler,788},789{790MethodName: "CreateWorkspaceSnapshot",791Handler: _WorkspaceService_CreateWorkspaceSnapshot_Handler,792},793{794MethodName: "WaitForWorkspaceSnapshot",795Handler: _WorkspaceService_WaitForWorkspaceSnapshot_Handler,796},797{798MethodName: "UpdateWorkspacePort",799Handler: _WorkspaceService_UpdateWorkspacePort_Handler,800},801},802Streams: []grpc.StreamDesc{803{804StreamName: "WatchWorkspaceStatus",805Handler: _WorkspaceService_WatchWorkspaceStatus_Handler,806ServerStreams: true,807},808},809Metadata: "gitpod/v1/workspace.proto",810}811812813