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/identityprovider_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/identityprovider.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
// IdentityProviderServiceClient is the client API for IdentityProviderService 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 IdentityProviderServiceClient interface {
29
// GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken)
30
GetIDToken(ctx context.Context, in *GetIDTokenRequest, opts ...grpc.CallOption) (*GetIDTokenResponse, error)
31
}
32
33
type identityProviderServiceClient struct {
34
cc grpc.ClientConnInterface
35
}
36
37
func NewIdentityProviderServiceClient(cc grpc.ClientConnInterface) IdentityProviderServiceClient {
38
return &identityProviderServiceClient{cc}
39
}
40
41
func (c *identityProviderServiceClient) GetIDToken(ctx context.Context, in *GetIDTokenRequest, opts ...grpc.CallOption) (*GetIDTokenResponse, error) {
42
out := new(GetIDTokenResponse)
43
err := c.cc.Invoke(ctx, "/gitpod.experimental.v1.IdentityProviderService/GetIDToken", in, out, opts...)
44
if err != nil {
45
return nil, err
46
}
47
return out, nil
48
}
49
50
// IdentityProviderServiceServer is the server API for IdentityProviderService service.
51
// All implementations must embed UnimplementedIdentityProviderServiceServer
52
// for forward compatibility
53
type IdentityProviderServiceServer interface {
54
// GetIDToken produces a new OIDC ID token (https://openid.net/specs/openid-connect-core-1_0.html#ImplicitIDToken)
55
GetIDToken(context.Context, *GetIDTokenRequest) (*GetIDTokenResponse, error)
56
mustEmbedUnimplementedIdentityProviderServiceServer()
57
}
58
59
// UnimplementedIdentityProviderServiceServer must be embedded to have forward compatible implementations.
60
type UnimplementedIdentityProviderServiceServer struct {
61
}
62
63
func (UnimplementedIdentityProviderServiceServer) GetIDToken(context.Context, *GetIDTokenRequest) (*GetIDTokenResponse, error) {
64
return nil, status.Errorf(codes.Unimplemented, "method GetIDToken not implemented")
65
}
66
func (UnimplementedIdentityProviderServiceServer) mustEmbedUnimplementedIdentityProviderServiceServer() {
67
}
68
69
// UnsafeIdentityProviderServiceServer may be embedded to opt out of forward compatibility for this service.
70
// Use of this interface is not recommended, as added methods to IdentityProviderServiceServer will
71
// result in compilation errors.
72
type UnsafeIdentityProviderServiceServer interface {
73
mustEmbedUnimplementedIdentityProviderServiceServer()
74
}
75
76
func RegisterIdentityProviderServiceServer(s grpc.ServiceRegistrar, srv IdentityProviderServiceServer) {
77
s.RegisterService(&IdentityProviderService_ServiceDesc, srv)
78
}
79
80
func _IdentityProviderService_GetIDToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
81
in := new(GetIDTokenRequest)
82
if err := dec(in); err != nil {
83
return nil, err
84
}
85
if interceptor == nil {
86
return srv.(IdentityProviderServiceServer).GetIDToken(ctx, in)
87
}
88
info := &grpc.UnaryServerInfo{
89
Server: srv,
90
FullMethod: "/gitpod.experimental.v1.IdentityProviderService/GetIDToken",
91
}
92
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
93
return srv.(IdentityProviderServiceServer).GetIDToken(ctx, req.(*GetIDTokenRequest))
94
}
95
return interceptor(ctx, in, info, handler)
96
}
97
98
// IdentityProviderService_ServiceDesc is the grpc.ServiceDesc for IdentityProviderService service.
99
// It's only intended for direct use with grpc.RegisterService,
100
// and not to be introspected or modified (even as a copy)
101
var IdentityProviderService_ServiceDesc = grpc.ServiceDesc{
102
ServiceName: "gitpod.experimental.v1.IdentityProviderService",
103
HandlerType: (*IdentityProviderServiceServer)(nil),
104
Methods: []grpc.MethodDesc{
105
{
106
MethodName: "GetIDToken",
107
Handler: _IdentityProviderService_GetIDToken_Handler,
108
},
109
},
110
Streams: []grpc.StreamDesc{},
111
Metadata: "gitpod/experimental/v1/identityprovider.proto",
112
}
113
114