// Source of truth: guildhouse monorepo // services/bascule-proto/proto/bascule/v1/ceremony.proto // This file is a copy for Go code generation. Do not edit here. // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.3.0 // - protoc v3.21.12 // source: bascule/v1/ceremony.proto package basculev1 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.32.0 or later. const _ = grpc.SupportPackageIsVersion7 const ( CeremonyService_CreateCeremony_FullMethodName = "/bascule.v1.CeremonyService/CreateCeremony" CeremonyService_ApproveCeremony_FullMethodName = "/bascule.v1.CeremonyService/ApproveCeremony" CeremonyService_DenyCeremony_FullMethodName = "/bascule.v1.CeremonyService/DenyCeremony" CeremonyService_CancelCeremony_FullMethodName = "/bascule.v1.CeremonyService/CancelCeremony" CeremonyService_GetCeremony_FullMethodName = "/bascule.v1.CeremonyService/GetCeremony" CeremonyService_ListPendingCeremonies_FullMethodName = "/bascule.v1.CeremonyService/ListPendingCeremonies" CeremonyService_GetCeremonyProof_FullMethodName = "/bascule.v1.CeremonyService/GetCeremonyProof" ) // CeremonyServiceClient is the client API for CeremonyService 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 CeremonyServiceClient interface { // Create a new governance ceremony. CreateCeremony(ctx context.Context, in *CreateCeremonyRequest, opts ...grpc.CallOption) (*CreateCeremonyResponse, error) // Record an approval or denial on a pending ceremony. ApproveCeremony(ctx context.Context, in *ApproveCeremonyRequest, opts ...grpc.CallOption) (*ApproveCeremonyResponse, error) // Deny a pending ceremony. DenyCeremony(ctx context.Context, in *DenyCeremonyRequest, opts ...grpc.CallOption) (*DenyCeremonyResponse, error) // Cancel a pending ceremony (requestor or admin). CancelCeremony(ctx context.Context, in *CancelCeremonyRequest, opts ...grpc.CallOption) (*CancelCeremonyResponse, error) // Get the current status of a ceremony. GetCeremony(ctx context.Context, in *GetCeremonyRequest, opts ...grpc.CallOption) (*GetCeremonyResponse, error) // List pending ceremonies, optionally filtered. ListPendingCeremonies(ctx context.Context, in *ListPendingCeremoniesRequest, opts ...grpc.CallOption) (*ListPendingCeremoniesResponse, error) // Get the resolution proof for a completed ceremony. GetCeremonyProof(ctx context.Context, in *GetCeremonyProofRequest, opts ...grpc.CallOption) (*GetCeremonyProofResponse, error) } type ceremonyServiceClient struct { cc grpc.ClientConnInterface } func NewCeremonyServiceClient(cc grpc.ClientConnInterface) CeremonyServiceClient { return &ceremonyServiceClient{cc} } func (c *ceremonyServiceClient) CreateCeremony(ctx context.Context, in *CreateCeremonyRequest, opts ...grpc.CallOption) (*CreateCeremonyResponse, error) { out := new(CreateCeremonyResponse) err := c.cc.Invoke(ctx, CeremonyService_CreateCeremony_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) ApproveCeremony(ctx context.Context, in *ApproveCeremonyRequest, opts ...grpc.CallOption) (*ApproveCeremonyResponse, error) { out := new(ApproveCeremonyResponse) err := c.cc.Invoke(ctx, CeremonyService_ApproveCeremony_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) DenyCeremony(ctx context.Context, in *DenyCeremonyRequest, opts ...grpc.CallOption) (*DenyCeremonyResponse, error) { out := new(DenyCeremonyResponse) err := c.cc.Invoke(ctx, CeremonyService_DenyCeremony_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) CancelCeremony(ctx context.Context, in *CancelCeremonyRequest, opts ...grpc.CallOption) (*CancelCeremonyResponse, error) { out := new(CancelCeremonyResponse) err := c.cc.Invoke(ctx, CeremonyService_CancelCeremony_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) GetCeremony(ctx context.Context, in *GetCeremonyRequest, opts ...grpc.CallOption) (*GetCeremonyResponse, error) { out := new(GetCeremonyResponse) err := c.cc.Invoke(ctx, CeremonyService_GetCeremony_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) ListPendingCeremonies(ctx context.Context, in *ListPendingCeremoniesRequest, opts ...grpc.CallOption) (*ListPendingCeremoniesResponse, error) { out := new(ListPendingCeremoniesResponse) err := c.cc.Invoke(ctx, CeremonyService_ListPendingCeremonies_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } func (c *ceremonyServiceClient) GetCeremonyProof(ctx context.Context, in *GetCeremonyProofRequest, opts ...grpc.CallOption) (*GetCeremonyProofResponse, error) { out := new(GetCeremonyProofResponse) err := c.cc.Invoke(ctx, CeremonyService_GetCeremonyProof_FullMethodName, in, out, opts...) if err != nil { return nil, err } return out, nil } // CeremonyServiceServer is the server API for CeremonyService service. // All implementations must embed UnimplementedCeremonyServiceServer // for forward compatibility type CeremonyServiceServer interface { // Create a new governance ceremony. CreateCeremony(context.Context, *CreateCeremonyRequest) (*CreateCeremonyResponse, error) // Record an approval or denial on a pending ceremony. ApproveCeremony(context.Context, *ApproveCeremonyRequest) (*ApproveCeremonyResponse, error) // Deny a pending ceremony. DenyCeremony(context.Context, *DenyCeremonyRequest) (*DenyCeremonyResponse, error) // Cancel a pending ceremony (requestor or admin). CancelCeremony(context.Context, *CancelCeremonyRequest) (*CancelCeremonyResponse, error) // Get the current status of a ceremony. GetCeremony(context.Context, *GetCeremonyRequest) (*GetCeremonyResponse, error) // List pending ceremonies, optionally filtered. ListPendingCeremonies(context.Context, *ListPendingCeremoniesRequest) (*ListPendingCeremoniesResponse, error) // Get the resolution proof for a completed ceremony. GetCeremonyProof(context.Context, *GetCeremonyProofRequest) (*GetCeremonyProofResponse, error) mustEmbedUnimplementedCeremonyServiceServer() } // UnimplementedCeremonyServiceServer must be embedded to have forward compatible implementations. type UnimplementedCeremonyServiceServer struct { } func (UnimplementedCeremonyServiceServer) CreateCeremony(context.Context, *CreateCeremonyRequest) (*CreateCeremonyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CreateCeremony not implemented") } func (UnimplementedCeremonyServiceServer) ApproveCeremony(context.Context, *ApproveCeremonyRequest) (*ApproveCeremonyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ApproveCeremony not implemented") } func (UnimplementedCeremonyServiceServer) DenyCeremony(context.Context, *DenyCeremonyRequest) (*DenyCeremonyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method DenyCeremony not implemented") } func (UnimplementedCeremonyServiceServer) CancelCeremony(context.Context, *CancelCeremonyRequest) (*CancelCeremonyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method CancelCeremony not implemented") } func (UnimplementedCeremonyServiceServer) GetCeremony(context.Context, *GetCeremonyRequest) (*GetCeremonyResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCeremony not implemented") } func (UnimplementedCeremonyServiceServer) ListPendingCeremonies(context.Context, *ListPendingCeremoniesRequest) (*ListPendingCeremoniesResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListPendingCeremonies not implemented") } func (UnimplementedCeremonyServiceServer) GetCeremonyProof(context.Context, *GetCeremonyProofRequest) (*GetCeremonyProofResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method GetCeremonyProof not implemented") } func (UnimplementedCeremonyServiceServer) mustEmbedUnimplementedCeremonyServiceServer() {} // UnsafeCeremonyServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to CeremonyServiceServer will // result in compilation errors. type UnsafeCeremonyServiceServer interface { mustEmbedUnimplementedCeremonyServiceServer() } func RegisterCeremonyServiceServer(s grpc.ServiceRegistrar, srv CeremonyServiceServer) { s.RegisterService(&CeremonyService_ServiceDesc, srv) } func _CeremonyService_CreateCeremony_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateCeremonyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).CreateCeremony(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_CreateCeremony_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).CreateCeremony(ctx, req.(*CreateCeremonyRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_ApproveCeremony_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ApproveCeremonyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).ApproveCeremony(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_ApproveCeremony_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).ApproveCeremony(ctx, req.(*ApproveCeremonyRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_DenyCeremony_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DenyCeremonyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).DenyCeremony(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_DenyCeremony_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).DenyCeremony(ctx, req.(*DenyCeremonyRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_CancelCeremony_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CancelCeremonyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).CancelCeremony(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_CancelCeremony_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).CancelCeremony(ctx, req.(*CancelCeremonyRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_GetCeremony_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCeremonyRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).GetCeremony(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_GetCeremony_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).GetCeremony(ctx, req.(*GetCeremonyRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_ListPendingCeremonies_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListPendingCeremoniesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).ListPendingCeremonies(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_ListPendingCeremonies_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).ListPendingCeremonies(ctx, req.(*ListPendingCeremoniesRequest)) } return interceptor(ctx, in, info, handler) } func _CeremonyService_GetCeremonyProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetCeremonyProofRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(CeremonyServiceServer).GetCeremonyProof(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: CeremonyService_GetCeremonyProof_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(CeremonyServiceServer).GetCeremonyProof(ctx, req.(*GetCeremonyProofRequest)) } return interceptor(ctx, in, info, handler) } // CeremonyService_ServiceDesc is the grpc.ServiceDesc for CeremonyService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var CeremonyService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "bascule.v1.CeremonyService", HandlerType: (*CeremonyServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateCeremony", Handler: _CeremonyService_CreateCeremony_Handler, }, { MethodName: "ApproveCeremony", Handler: _CeremonyService_ApproveCeremony_Handler, }, { MethodName: "DenyCeremony", Handler: _CeremonyService_DenyCeremony_Handler, }, { MethodName: "CancelCeremony", Handler: _CeremonyService_CancelCeremony_Handler, }, { MethodName: "GetCeremony", Handler: _CeremonyService_GetCeremony_Handler, }, { MethodName: "ListPendingCeremonies", Handler: _CeremonyService_ListPendingCeremonies_Handler, }, { MethodName: "GetCeremonyProof", Handler: _CeremonyService_GetCeremonyProof_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "bascule/v1/ceremony.proto", }