Files
admin-cli/go-cli/genproto/helios/waitlist/waitlist_grpc.pb.go
T

274 lines
11 KiB
Go

// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.5.1
// - protoc v5.28.3
// source: helios/waitlist/waitlist.proto
package pbwaitlist
import (
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
const (
WaitlistService_AddToWaitlist_FullMethodName = "/helios.waitlist.WaitlistService/AddToWaitlist"
WaitlistService_GetWaitlist_FullMethodName = "/helios.waitlist.WaitlistService/GetWaitlist"
WaitlistService_GetWaitlistEntry_FullMethodName = "/helios.waitlist.WaitlistService/GetWaitlistEntry"
WaitlistService_InviteWaitlistEntrant_FullMethodName = "/helios.waitlist.WaitlistService/InviteWaitlistEntrant"
WaitlistService_Inquiry_FullMethodName = "/helios.waitlist.WaitlistService/Inquiry"
)
// WaitlistServiceClient is the client API for WaitlistService service.
//
// 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.
type WaitlistServiceClient interface {
AddToWaitlist(ctx context.Context, in *AddToWaitlistRequest, opts ...grpc.CallOption) (*AddToWaitlistResponse, error)
GetWaitlist(ctx context.Context, in *GetWaitlistRequest, opts ...grpc.CallOption) (*GetWaitlistResponse, error)
GetWaitlistEntry(ctx context.Context, in *GetWaitlistEntryRequest, opts ...grpc.CallOption) (*GetWaitlistEntryResponse, error)
InviteWaitlistEntrant(ctx context.Context, in *InviteWaitlistEntrantRequest, opts ...grpc.CallOption) (*InviteWaitlistEntrantResponse, error)
Inquiry(ctx context.Context, in *InquiryRequest, opts ...grpc.CallOption) (*InquiryResponse, error)
}
type waitlistServiceClient struct {
cc grpc.ClientConnInterface
}
func NewWaitlistServiceClient(cc grpc.ClientConnInterface) WaitlistServiceClient {
return &waitlistServiceClient{cc}
}
func (c *waitlistServiceClient) AddToWaitlist(ctx context.Context, in *AddToWaitlistRequest, opts ...grpc.CallOption) (*AddToWaitlistResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(AddToWaitlistResponse)
err := c.cc.Invoke(ctx, WaitlistService_AddToWaitlist_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *waitlistServiceClient) GetWaitlist(ctx context.Context, in *GetWaitlistRequest, opts ...grpc.CallOption) (*GetWaitlistResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetWaitlistResponse)
err := c.cc.Invoke(ctx, WaitlistService_GetWaitlist_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *waitlistServiceClient) GetWaitlistEntry(ctx context.Context, in *GetWaitlistEntryRequest, opts ...grpc.CallOption) (*GetWaitlistEntryResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(GetWaitlistEntryResponse)
err := c.cc.Invoke(ctx, WaitlistService_GetWaitlistEntry_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *waitlistServiceClient) InviteWaitlistEntrant(ctx context.Context, in *InviteWaitlistEntrantRequest, opts ...grpc.CallOption) (*InviteWaitlistEntrantResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(InviteWaitlistEntrantResponse)
err := c.cc.Invoke(ctx, WaitlistService_InviteWaitlistEntrant_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *waitlistServiceClient) Inquiry(ctx context.Context, in *InquiryRequest, opts ...grpc.CallOption) (*InquiryResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(InquiryResponse)
err := c.cc.Invoke(ctx, WaitlistService_Inquiry_FullMethodName, in, out, cOpts...)
if err != nil {
return nil, err
}
return out, nil
}
// WaitlistServiceServer is the server API for WaitlistService service.
// All implementations must embed UnimplementedWaitlistServiceServer
// for forward compatibility.
type WaitlistServiceServer interface {
AddToWaitlist(context.Context, *AddToWaitlistRequest) (*AddToWaitlistResponse, error)
GetWaitlist(context.Context, *GetWaitlistRequest) (*GetWaitlistResponse, error)
GetWaitlistEntry(context.Context, *GetWaitlistEntryRequest) (*GetWaitlistEntryResponse, error)
InviteWaitlistEntrant(context.Context, *InviteWaitlistEntrantRequest) (*InviteWaitlistEntrantResponse, error)
Inquiry(context.Context, *InquiryRequest) (*InquiryResponse, error)
mustEmbedUnimplementedWaitlistServiceServer()
}
// UnimplementedWaitlistServiceServer must be embedded to have
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedWaitlistServiceServer struct{}
func (UnimplementedWaitlistServiceServer) AddToWaitlist(context.Context, *AddToWaitlistRequest) (*AddToWaitlistResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AddToWaitlist not implemented")
}
func (UnimplementedWaitlistServiceServer) GetWaitlist(context.Context, *GetWaitlistRequest) (*GetWaitlistResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWaitlist not implemented")
}
func (UnimplementedWaitlistServiceServer) GetWaitlistEntry(context.Context, *GetWaitlistEntryRequest) (*GetWaitlistEntryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetWaitlistEntry not implemented")
}
func (UnimplementedWaitlistServiceServer) InviteWaitlistEntrant(context.Context, *InviteWaitlistEntrantRequest) (*InviteWaitlistEntrantResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method InviteWaitlistEntrant not implemented")
}
func (UnimplementedWaitlistServiceServer) Inquiry(context.Context, *InquiryRequest) (*InquiryResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Inquiry not implemented")
}
func (UnimplementedWaitlistServiceServer) mustEmbedUnimplementedWaitlistServiceServer() {}
func (UnimplementedWaitlistServiceServer) testEmbeddedByValue() {}
// UnsafeWaitlistServiceServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to WaitlistServiceServer will
// result in compilation errors.
type UnsafeWaitlistServiceServer interface {
mustEmbedUnimplementedWaitlistServiceServer()
}
func RegisterWaitlistServiceServer(s grpc.ServiceRegistrar, srv WaitlistServiceServer) {
// If the following call pancis, it indicates UnimplementedWaitlistServiceServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
t.testEmbeddedByValue()
}
s.RegisterService(&WaitlistService_ServiceDesc, srv)
}
func _WaitlistService_AddToWaitlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AddToWaitlistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WaitlistServiceServer).AddToWaitlist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WaitlistService_AddToWaitlist_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WaitlistServiceServer).AddToWaitlist(ctx, req.(*AddToWaitlistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WaitlistService_GetWaitlist_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWaitlistRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WaitlistServiceServer).GetWaitlist(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WaitlistService_GetWaitlist_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WaitlistServiceServer).GetWaitlist(ctx, req.(*GetWaitlistRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WaitlistService_GetWaitlistEntry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetWaitlistEntryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WaitlistServiceServer).GetWaitlistEntry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WaitlistService_GetWaitlistEntry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WaitlistServiceServer).GetWaitlistEntry(ctx, req.(*GetWaitlistEntryRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WaitlistService_InviteWaitlistEntrant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InviteWaitlistEntrantRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WaitlistServiceServer).InviteWaitlistEntrant(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WaitlistService_InviteWaitlistEntrant_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WaitlistServiceServer).InviteWaitlistEntrant(ctx, req.(*InviteWaitlistEntrantRequest))
}
return interceptor(ctx, in, info, handler)
}
func _WaitlistService_Inquiry_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(InquiryRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(WaitlistServiceServer).Inquiry(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: WaitlistService_Inquiry_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(WaitlistServiceServer).Inquiry(ctx, req.(*InquiryRequest))
}
return interceptor(ctx, in, info, handler)
}
// WaitlistService_ServiceDesc is the grpc.ServiceDesc for WaitlistService service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var WaitlistService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "helios.waitlist.WaitlistService",
HandlerType: (*WaitlistServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "AddToWaitlist",
Handler: _WaitlistService_AddToWaitlist_Handler,
},
{
MethodName: "GetWaitlist",
Handler: _WaitlistService_GetWaitlist_Handler,
},
{
MethodName: "GetWaitlistEntry",
Handler: _WaitlistService_GetWaitlistEntry_Handler,
},
{
MethodName: "InviteWaitlistEntrant",
Handler: _WaitlistService_InviteWaitlistEntrant_Handler,
},
{
MethodName: "Inquiry",
Handler: _WaitlistService_Inquiry_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "helios/waitlist/waitlist.proto",
}