github.com/letsencrypt/boulder@v0.20251208.0/ra/proto/ra_grpc.pb.go (about)

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  // versions:
     3  // - protoc-gen-go-grpc v1.5.1
     4  // - protoc             v3.20.1
     5  // source: ra.proto
     6  
     7  package proto
     8  
     9  import (
    10  	context "context"
    11  	proto "github.com/letsencrypt/boulder/core/proto"
    12  	grpc "google.golang.org/grpc"
    13  	codes "google.golang.org/grpc/codes"
    14  	status "google.golang.org/grpc/status"
    15  	emptypb "google.golang.org/protobuf/types/known/emptypb"
    16  )
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the grpc package it is being compiled against.
    20  // Requires gRPC-Go v1.64.0 or later.
    21  const _ = grpc.SupportPackageIsVersion9
    22  
    23  const (
    24  	RegistrationAuthority_NewRegistration_FullMethodName                   = "/ra.RegistrationAuthority/NewRegistration"
    25  	RegistrationAuthority_UpdateRegistrationKey_FullMethodName             = "/ra.RegistrationAuthority/UpdateRegistrationKey"
    26  	RegistrationAuthority_DeactivateRegistration_FullMethodName            = "/ra.RegistrationAuthority/DeactivateRegistration"
    27  	RegistrationAuthority_PerformValidation_FullMethodName                 = "/ra.RegistrationAuthority/PerformValidation"
    28  	RegistrationAuthority_DeactivateAuthorization_FullMethodName           = "/ra.RegistrationAuthority/DeactivateAuthorization"
    29  	RegistrationAuthority_RevokeCertByApplicant_FullMethodName             = "/ra.RegistrationAuthority/RevokeCertByApplicant"
    30  	RegistrationAuthority_RevokeCertByKey_FullMethodName                   = "/ra.RegistrationAuthority/RevokeCertByKey"
    31  	RegistrationAuthority_AdministrativelyRevokeCertificate_FullMethodName = "/ra.RegistrationAuthority/AdministrativelyRevokeCertificate"
    32  	RegistrationAuthority_NewOrder_FullMethodName                          = "/ra.RegistrationAuthority/NewOrder"
    33  	RegistrationAuthority_GetAuthorization_FullMethodName                  = "/ra.RegistrationAuthority/GetAuthorization"
    34  	RegistrationAuthority_FinalizeOrder_FullMethodName                     = "/ra.RegistrationAuthority/FinalizeOrder"
    35  	RegistrationAuthority_UnpauseAccount_FullMethodName                    = "/ra.RegistrationAuthority/UnpauseAccount"
    36  	RegistrationAuthority_AddRateLimitOverride_FullMethodName              = "/ra.RegistrationAuthority/AddRateLimitOverride"
    37  )
    38  
    39  // RegistrationAuthorityClient is the client API for RegistrationAuthority service.
    40  //
    41  // 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.
    42  type RegistrationAuthorityClient interface {
    43  	NewRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*proto.Registration, error)
    44  	UpdateRegistrationKey(ctx context.Context, in *UpdateRegistrationKeyRequest, opts ...grpc.CallOption) (*proto.Registration, error)
    45  	DeactivateRegistration(ctx context.Context, in *DeactivateRegistrationRequest, opts ...grpc.CallOption) (*proto.Registration, error)
    46  	PerformValidation(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*proto.Authorization, error)
    47  	DeactivateAuthorization(ctx context.Context, in *proto.Authorization, opts ...grpc.CallOption) (*emptypb.Empty, error)
    48  	RevokeCertByApplicant(ctx context.Context, in *RevokeCertByApplicantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    49  	RevokeCertByKey(ctx context.Context, in *RevokeCertByKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    50  	AdministrativelyRevokeCertificate(ctx context.Context, in *AdministrativelyRevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
    51  	NewOrder(ctx context.Context, in *NewOrderRequest, opts ...grpc.CallOption) (*proto.Order, error)
    52  	GetAuthorization(ctx context.Context, in *GetAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error)
    53  	FinalizeOrder(ctx context.Context, in *FinalizeOrderRequest, opts ...grpc.CallOption) (*proto.Order, error)
    54  	UnpauseAccount(ctx context.Context, in *UnpauseAccountRequest, opts ...grpc.CallOption) (*UnpauseAccountResponse, error)
    55  	AddRateLimitOverride(ctx context.Context, in *AddRateLimitOverrideRequest, opts ...grpc.CallOption) (*AddRateLimitOverrideResponse, error)
    56  }
    57  
    58  type registrationAuthorityClient struct {
    59  	cc grpc.ClientConnInterface
    60  }
    61  
    62  func NewRegistrationAuthorityClient(cc grpc.ClientConnInterface) RegistrationAuthorityClient {
    63  	return &registrationAuthorityClient{cc}
    64  }
    65  
    66  func (c *registrationAuthorityClient) NewRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*proto.Registration, error) {
    67  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
    68  	out := new(proto.Registration)
    69  	err := c.cc.Invoke(ctx, RegistrationAuthority_NewRegistration_FullMethodName, in, out, cOpts...)
    70  	if err != nil {
    71  		return nil, err
    72  	}
    73  	return out, nil
    74  }
    75  
    76  func (c *registrationAuthorityClient) UpdateRegistrationKey(ctx context.Context, in *UpdateRegistrationKeyRequest, opts ...grpc.CallOption) (*proto.Registration, error) {
    77  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
    78  	out := new(proto.Registration)
    79  	err := c.cc.Invoke(ctx, RegistrationAuthority_UpdateRegistrationKey_FullMethodName, in, out, cOpts...)
    80  	if err != nil {
    81  		return nil, err
    82  	}
    83  	return out, nil
    84  }
    85  
    86  func (c *registrationAuthorityClient) DeactivateRegistration(ctx context.Context, in *DeactivateRegistrationRequest, opts ...grpc.CallOption) (*proto.Registration, error) {
    87  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
    88  	out := new(proto.Registration)
    89  	err := c.cc.Invoke(ctx, RegistrationAuthority_DeactivateRegistration_FullMethodName, in, out, cOpts...)
    90  	if err != nil {
    91  		return nil, err
    92  	}
    93  	return out, nil
    94  }
    95  
    96  func (c *registrationAuthorityClient) PerformValidation(ctx context.Context, in *PerformValidationRequest, opts ...grpc.CallOption) (*proto.Authorization, error) {
    97  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
    98  	out := new(proto.Authorization)
    99  	err := c.cc.Invoke(ctx, RegistrationAuthority_PerformValidation_FullMethodName, in, out, cOpts...)
   100  	if err != nil {
   101  		return nil, err
   102  	}
   103  	return out, nil
   104  }
   105  
   106  func (c *registrationAuthorityClient) DeactivateAuthorization(ctx context.Context, in *proto.Authorization, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   107  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   108  	out := new(emptypb.Empty)
   109  	err := c.cc.Invoke(ctx, RegistrationAuthority_DeactivateAuthorization_FullMethodName, in, out, cOpts...)
   110  	if err != nil {
   111  		return nil, err
   112  	}
   113  	return out, nil
   114  }
   115  
   116  func (c *registrationAuthorityClient) RevokeCertByApplicant(ctx context.Context, in *RevokeCertByApplicantRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   117  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   118  	out := new(emptypb.Empty)
   119  	err := c.cc.Invoke(ctx, RegistrationAuthority_RevokeCertByApplicant_FullMethodName, in, out, cOpts...)
   120  	if err != nil {
   121  		return nil, err
   122  	}
   123  	return out, nil
   124  }
   125  
   126  func (c *registrationAuthorityClient) RevokeCertByKey(ctx context.Context, in *RevokeCertByKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   127  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   128  	out := new(emptypb.Empty)
   129  	err := c.cc.Invoke(ctx, RegistrationAuthority_RevokeCertByKey_FullMethodName, in, out, cOpts...)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return out, nil
   134  }
   135  
   136  func (c *registrationAuthorityClient) AdministrativelyRevokeCertificate(ctx context.Context, in *AdministrativelyRevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
   137  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   138  	out := new(emptypb.Empty)
   139  	err := c.cc.Invoke(ctx, RegistrationAuthority_AdministrativelyRevokeCertificate_FullMethodName, in, out, cOpts...)
   140  	if err != nil {
   141  		return nil, err
   142  	}
   143  	return out, nil
   144  }
   145  
   146  func (c *registrationAuthorityClient) NewOrder(ctx context.Context, in *NewOrderRequest, opts ...grpc.CallOption) (*proto.Order, error) {
   147  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   148  	out := new(proto.Order)
   149  	err := c.cc.Invoke(ctx, RegistrationAuthority_NewOrder_FullMethodName, in, out, cOpts...)
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	return out, nil
   154  }
   155  
   156  func (c *registrationAuthorityClient) GetAuthorization(ctx context.Context, in *GetAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error) {
   157  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   158  	out := new(proto.Authorization)
   159  	err := c.cc.Invoke(ctx, RegistrationAuthority_GetAuthorization_FullMethodName, in, out, cOpts...)
   160  	if err != nil {
   161  		return nil, err
   162  	}
   163  	return out, nil
   164  }
   165  
   166  func (c *registrationAuthorityClient) FinalizeOrder(ctx context.Context, in *FinalizeOrderRequest, opts ...grpc.CallOption) (*proto.Order, error) {
   167  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   168  	out := new(proto.Order)
   169  	err := c.cc.Invoke(ctx, RegistrationAuthority_FinalizeOrder_FullMethodName, in, out, cOpts...)
   170  	if err != nil {
   171  		return nil, err
   172  	}
   173  	return out, nil
   174  }
   175  
   176  func (c *registrationAuthorityClient) UnpauseAccount(ctx context.Context, in *UnpauseAccountRequest, opts ...grpc.CallOption) (*UnpauseAccountResponse, error) {
   177  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   178  	out := new(UnpauseAccountResponse)
   179  	err := c.cc.Invoke(ctx, RegistrationAuthority_UnpauseAccount_FullMethodName, in, out, cOpts...)
   180  	if err != nil {
   181  		return nil, err
   182  	}
   183  	return out, nil
   184  }
   185  
   186  func (c *registrationAuthorityClient) AddRateLimitOverride(ctx context.Context, in *AddRateLimitOverrideRequest, opts ...grpc.CallOption) (*AddRateLimitOverrideResponse, error) {
   187  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   188  	out := new(AddRateLimitOverrideResponse)
   189  	err := c.cc.Invoke(ctx, RegistrationAuthority_AddRateLimitOverride_FullMethodName, in, out, cOpts...)
   190  	if err != nil {
   191  		return nil, err
   192  	}
   193  	return out, nil
   194  }
   195  
   196  // RegistrationAuthorityServer is the server API for RegistrationAuthority service.
   197  // All implementations must embed UnimplementedRegistrationAuthorityServer
   198  // for forward compatibility.
   199  type RegistrationAuthorityServer interface {
   200  	NewRegistration(context.Context, *proto.Registration) (*proto.Registration, error)
   201  	UpdateRegistrationKey(context.Context, *UpdateRegistrationKeyRequest) (*proto.Registration, error)
   202  	DeactivateRegistration(context.Context, *DeactivateRegistrationRequest) (*proto.Registration, error)
   203  	PerformValidation(context.Context, *PerformValidationRequest) (*proto.Authorization, error)
   204  	DeactivateAuthorization(context.Context, *proto.Authorization) (*emptypb.Empty, error)
   205  	RevokeCertByApplicant(context.Context, *RevokeCertByApplicantRequest) (*emptypb.Empty, error)
   206  	RevokeCertByKey(context.Context, *RevokeCertByKeyRequest) (*emptypb.Empty, error)
   207  	AdministrativelyRevokeCertificate(context.Context, *AdministrativelyRevokeCertificateRequest) (*emptypb.Empty, error)
   208  	NewOrder(context.Context, *NewOrderRequest) (*proto.Order, error)
   209  	GetAuthorization(context.Context, *GetAuthorizationRequest) (*proto.Authorization, error)
   210  	FinalizeOrder(context.Context, *FinalizeOrderRequest) (*proto.Order, error)
   211  	UnpauseAccount(context.Context, *UnpauseAccountRequest) (*UnpauseAccountResponse, error)
   212  	AddRateLimitOverride(context.Context, *AddRateLimitOverrideRequest) (*AddRateLimitOverrideResponse, error)
   213  	mustEmbedUnimplementedRegistrationAuthorityServer()
   214  }
   215  
   216  // UnimplementedRegistrationAuthorityServer must be embedded to have
   217  // forward compatible implementations.
   218  //
   219  // NOTE: this should be embedded by value instead of pointer to avoid a nil
   220  // pointer dereference when methods are called.
   221  type UnimplementedRegistrationAuthorityServer struct{}
   222  
   223  func (UnimplementedRegistrationAuthorityServer) NewRegistration(context.Context, *proto.Registration) (*proto.Registration, error) {
   224  	return nil, status.Errorf(codes.Unimplemented, "method NewRegistration not implemented")
   225  }
   226  func (UnimplementedRegistrationAuthorityServer) UpdateRegistrationKey(context.Context, *UpdateRegistrationKeyRequest) (*proto.Registration, error) {
   227  	return nil, status.Errorf(codes.Unimplemented, "method UpdateRegistrationKey not implemented")
   228  }
   229  func (UnimplementedRegistrationAuthorityServer) DeactivateRegistration(context.Context, *DeactivateRegistrationRequest) (*proto.Registration, error) {
   230  	return nil, status.Errorf(codes.Unimplemented, "method DeactivateRegistration not implemented")
   231  }
   232  func (UnimplementedRegistrationAuthorityServer) PerformValidation(context.Context, *PerformValidationRequest) (*proto.Authorization, error) {
   233  	return nil, status.Errorf(codes.Unimplemented, "method PerformValidation not implemented")
   234  }
   235  func (UnimplementedRegistrationAuthorityServer) DeactivateAuthorization(context.Context, *proto.Authorization) (*emptypb.Empty, error) {
   236  	return nil, status.Errorf(codes.Unimplemented, "method DeactivateAuthorization not implemented")
   237  }
   238  func (UnimplementedRegistrationAuthorityServer) RevokeCertByApplicant(context.Context, *RevokeCertByApplicantRequest) (*emptypb.Empty, error) {
   239  	return nil, status.Errorf(codes.Unimplemented, "method RevokeCertByApplicant not implemented")
   240  }
   241  func (UnimplementedRegistrationAuthorityServer) RevokeCertByKey(context.Context, *RevokeCertByKeyRequest) (*emptypb.Empty, error) {
   242  	return nil, status.Errorf(codes.Unimplemented, "method RevokeCertByKey not implemented")
   243  }
   244  func (UnimplementedRegistrationAuthorityServer) AdministrativelyRevokeCertificate(context.Context, *AdministrativelyRevokeCertificateRequest) (*emptypb.Empty, error) {
   245  	return nil, status.Errorf(codes.Unimplemented, "method AdministrativelyRevokeCertificate not implemented")
   246  }
   247  func (UnimplementedRegistrationAuthorityServer) NewOrder(context.Context, *NewOrderRequest) (*proto.Order, error) {
   248  	return nil, status.Errorf(codes.Unimplemented, "method NewOrder not implemented")
   249  }
   250  func (UnimplementedRegistrationAuthorityServer) GetAuthorization(context.Context, *GetAuthorizationRequest) (*proto.Authorization, error) {
   251  	return nil, status.Errorf(codes.Unimplemented, "method GetAuthorization not implemented")
   252  }
   253  func (UnimplementedRegistrationAuthorityServer) FinalizeOrder(context.Context, *FinalizeOrderRequest) (*proto.Order, error) {
   254  	return nil, status.Errorf(codes.Unimplemented, "method FinalizeOrder not implemented")
   255  }
   256  func (UnimplementedRegistrationAuthorityServer) UnpauseAccount(context.Context, *UnpauseAccountRequest) (*UnpauseAccountResponse, error) {
   257  	return nil, status.Errorf(codes.Unimplemented, "method UnpauseAccount not implemented")
   258  }
   259  func (UnimplementedRegistrationAuthorityServer) AddRateLimitOverride(context.Context, *AddRateLimitOverrideRequest) (*AddRateLimitOverrideResponse, error) {
   260  	return nil, status.Errorf(codes.Unimplemented, "method AddRateLimitOverride not implemented")
   261  }
   262  func (UnimplementedRegistrationAuthorityServer) mustEmbedUnimplementedRegistrationAuthorityServer() {}
   263  func (UnimplementedRegistrationAuthorityServer) testEmbeddedByValue()                               {}
   264  
   265  // UnsafeRegistrationAuthorityServer may be embedded to opt out of forward compatibility for this service.
   266  // Use of this interface is not recommended, as added methods to RegistrationAuthorityServer will
   267  // result in compilation errors.
   268  type UnsafeRegistrationAuthorityServer interface {
   269  	mustEmbedUnimplementedRegistrationAuthorityServer()
   270  }
   271  
   272  func RegisterRegistrationAuthorityServer(s grpc.ServiceRegistrar, srv RegistrationAuthorityServer) {
   273  	// If the following call pancis, it indicates UnimplementedRegistrationAuthorityServer was
   274  	// embedded by pointer and is nil.  This will cause panics if an
   275  	// unimplemented method is ever invoked, so we test this at initialization
   276  	// time to prevent it from happening at runtime later due to I/O.
   277  	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
   278  		t.testEmbeddedByValue()
   279  	}
   280  	s.RegisterService(&RegistrationAuthority_ServiceDesc, srv)
   281  }
   282  
   283  func _RegistrationAuthority_NewRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   284  	in := new(proto.Registration)
   285  	if err := dec(in); err != nil {
   286  		return nil, err
   287  	}
   288  	if interceptor == nil {
   289  		return srv.(RegistrationAuthorityServer).NewRegistration(ctx, in)
   290  	}
   291  	info := &grpc.UnaryServerInfo{
   292  		Server:     srv,
   293  		FullMethod: RegistrationAuthority_NewRegistration_FullMethodName,
   294  	}
   295  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   296  		return srv.(RegistrationAuthorityServer).NewRegistration(ctx, req.(*proto.Registration))
   297  	}
   298  	return interceptor(ctx, in, info, handler)
   299  }
   300  
   301  func _RegistrationAuthority_UpdateRegistrationKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   302  	in := new(UpdateRegistrationKeyRequest)
   303  	if err := dec(in); err != nil {
   304  		return nil, err
   305  	}
   306  	if interceptor == nil {
   307  		return srv.(RegistrationAuthorityServer).UpdateRegistrationKey(ctx, in)
   308  	}
   309  	info := &grpc.UnaryServerInfo{
   310  		Server:     srv,
   311  		FullMethod: RegistrationAuthority_UpdateRegistrationKey_FullMethodName,
   312  	}
   313  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   314  		return srv.(RegistrationAuthorityServer).UpdateRegistrationKey(ctx, req.(*UpdateRegistrationKeyRequest))
   315  	}
   316  	return interceptor(ctx, in, info, handler)
   317  }
   318  
   319  func _RegistrationAuthority_DeactivateRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   320  	in := new(DeactivateRegistrationRequest)
   321  	if err := dec(in); err != nil {
   322  		return nil, err
   323  	}
   324  	if interceptor == nil {
   325  		return srv.(RegistrationAuthorityServer).DeactivateRegistration(ctx, in)
   326  	}
   327  	info := &grpc.UnaryServerInfo{
   328  		Server:     srv,
   329  		FullMethod: RegistrationAuthority_DeactivateRegistration_FullMethodName,
   330  	}
   331  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   332  		return srv.(RegistrationAuthorityServer).DeactivateRegistration(ctx, req.(*DeactivateRegistrationRequest))
   333  	}
   334  	return interceptor(ctx, in, info, handler)
   335  }
   336  
   337  func _RegistrationAuthority_PerformValidation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   338  	in := new(PerformValidationRequest)
   339  	if err := dec(in); err != nil {
   340  		return nil, err
   341  	}
   342  	if interceptor == nil {
   343  		return srv.(RegistrationAuthorityServer).PerformValidation(ctx, in)
   344  	}
   345  	info := &grpc.UnaryServerInfo{
   346  		Server:     srv,
   347  		FullMethod: RegistrationAuthority_PerformValidation_FullMethodName,
   348  	}
   349  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   350  		return srv.(RegistrationAuthorityServer).PerformValidation(ctx, req.(*PerformValidationRequest))
   351  	}
   352  	return interceptor(ctx, in, info, handler)
   353  }
   354  
   355  func _RegistrationAuthority_DeactivateAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   356  	in := new(proto.Authorization)
   357  	if err := dec(in); err != nil {
   358  		return nil, err
   359  	}
   360  	if interceptor == nil {
   361  		return srv.(RegistrationAuthorityServer).DeactivateAuthorization(ctx, in)
   362  	}
   363  	info := &grpc.UnaryServerInfo{
   364  		Server:     srv,
   365  		FullMethod: RegistrationAuthority_DeactivateAuthorization_FullMethodName,
   366  	}
   367  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   368  		return srv.(RegistrationAuthorityServer).DeactivateAuthorization(ctx, req.(*proto.Authorization))
   369  	}
   370  	return interceptor(ctx, in, info, handler)
   371  }
   372  
   373  func _RegistrationAuthority_RevokeCertByApplicant_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   374  	in := new(RevokeCertByApplicantRequest)
   375  	if err := dec(in); err != nil {
   376  		return nil, err
   377  	}
   378  	if interceptor == nil {
   379  		return srv.(RegistrationAuthorityServer).RevokeCertByApplicant(ctx, in)
   380  	}
   381  	info := &grpc.UnaryServerInfo{
   382  		Server:     srv,
   383  		FullMethod: RegistrationAuthority_RevokeCertByApplicant_FullMethodName,
   384  	}
   385  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   386  		return srv.(RegistrationAuthorityServer).RevokeCertByApplicant(ctx, req.(*RevokeCertByApplicantRequest))
   387  	}
   388  	return interceptor(ctx, in, info, handler)
   389  }
   390  
   391  func _RegistrationAuthority_RevokeCertByKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   392  	in := new(RevokeCertByKeyRequest)
   393  	if err := dec(in); err != nil {
   394  		return nil, err
   395  	}
   396  	if interceptor == nil {
   397  		return srv.(RegistrationAuthorityServer).RevokeCertByKey(ctx, in)
   398  	}
   399  	info := &grpc.UnaryServerInfo{
   400  		Server:     srv,
   401  		FullMethod: RegistrationAuthority_RevokeCertByKey_FullMethodName,
   402  	}
   403  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   404  		return srv.(RegistrationAuthorityServer).RevokeCertByKey(ctx, req.(*RevokeCertByKeyRequest))
   405  	}
   406  	return interceptor(ctx, in, info, handler)
   407  }
   408  
   409  func _RegistrationAuthority_AdministrativelyRevokeCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   410  	in := new(AdministrativelyRevokeCertificateRequest)
   411  	if err := dec(in); err != nil {
   412  		return nil, err
   413  	}
   414  	if interceptor == nil {
   415  		return srv.(RegistrationAuthorityServer).AdministrativelyRevokeCertificate(ctx, in)
   416  	}
   417  	info := &grpc.UnaryServerInfo{
   418  		Server:     srv,
   419  		FullMethod: RegistrationAuthority_AdministrativelyRevokeCertificate_FullMethodName,
   420  	}
   421  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   422  		return srv.(RegistrationAuthorityServer).AdministrativelyRevokeCertificate(ctx, req.(*AdministrativelyRevokeCertificateRequest))
   423  	}
   424  	return interceptor(ctx, in, info, handler)
   425  }
   426  
   427  func _RegistrationAuthority_NewOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   428  	in := new(NewOrderRequest)
   429  	if err := dec(in); err != nil {
   430  		return nil, err
   431  	}
   432  	if interceptor == nil {
   433  		return srv.(RegistrationAuthorityServer).NewOrder(ctx, in)
   434  	}
   435  	info := &grpc.UnaryServerInfo{
   436  		Server:     srv,
   437  		FullMethod: RegistrationAuthority_NewOrder_FullMethodName,
   438  	}
   439  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   440  		return srv.(RegistrationAuthorityServer).NewOrder(ctx, req.(*NewOrderRequest))
   441  	}
   442  	return interceptor(ctx, in, info, handler)
   443  }
   444  
   445  func _RegistrationAuthority_GetAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   446  	in := new(GetAuthorizationRequest)
   447  	if err := dec(in); err != nil {
   448  		return nil, err
   449  	}
   450  	if interceptor == nil {
   451  		return srv.(RegistrationAuthorityServer).GetAuthorization(ctx, in)
   452  	}
   453  	info := &grpc.UnaryServerInfo{
   454  		Server:     srv,
   455  		FullMethod: RegistrationAuthority_GetAuthorization_FullMethodName,
   456  	}
   457  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   458  		return srv.(RegistrationAuthorityServer).GetAuthorization(ctx, req.(*GetAuthorizationRequest))
   459  	}
   460  	return interceptor(ctx, in, info, handler)
   461  }
   462  
   463  func _RegistrationAuthority_FinalizeOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   464  	in := new(FinalizeOrderRequest)
   465  	if err := dec(in); err != nil {
   466  		return nil, err
   467  	}
   468  	if interceptor == nil {
   469  		return srv.(RegistrationAuthorityServer).FinalizeOrder(ctx, in)
   470  	}
   471  	info := &grpc.UnaryServerInfo{
   472  		Server:     srv,
   473  		FullMethod: RegistrationAuthority_FinalizeOrder_FullMethodName,
   474  	}
   475  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   476  		return srv.(RegistrationAuthorityServer).FinalizeOrder(ctx, req.(*FinalizeOrderRequest))
   477  	}
   478  	return interceptor(ctx, in, info, handler)
   479  }
   480  
   481  func _RegistrationAuthority_UnpauseAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   482  	in := new(UnpauseAccountRequest)
   483  	if err := dec(in); err != nil {
   484  		return nil, err
   485  	}
   486  	if interceptor == nil {
   487  		return srv.(RegistrationAuthorityServer).UnpauseAccount(ctx, in)
   488  	}
   489  	info := &grpc.UnaryServerInfo{
   490  		Server:     srv,
   491  		FullMethod: RegistrationAuthority_UnpauseAccount_FullMethodName,
   492  	}
   493  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   494  		return srv.(RegistrationAuthorityServer).UnpauseAccount(ctx, req.(*UnpauseAccountRequest))
   495  	}
   496  	return interceptor(ctx, in, info, handler)
   497  }
   498  
   499  func _RegistrationAuthority_AddRateLimitOverride_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   500  	in := new(AddRateLimitOverrideRequest)
   501  	if err := dec(in); err != nil {
   502  		return nil, err
   503  	}
   504  	if interceptor == nil {
   505  		return srv.(RegistrationAuthorityServer).AddRateLimitOverride(ctx, in)
   506  	}
   507  	info := &grpc.UnaryServerInfo{
   508  		Server:     srv,
   509  		FullMethod: RegistrationAuthority_AddRateLimitOverride_FullMethodName,
   510  	}
   511  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   512  		return srv.(RegistrationAuthorityServer).AddRateLimitOverride(ctx, req.(*AddRateLimitOverrideRequest))
   513  	}
   514  	return interceptor(ctx, in, info, handler)
   515  }
   516  
   517  // RegistrationAuthority_ServiceDesc is the grpc.ServiceDesc for RegistrationAuthority service.
   518  // It's only intended for direct use with grpc.RegisterService,
   519  // and not to be introspected or modified (even as a copy)
   520  var RegistrationAuthority_ServiceDesc = grpc.ServiceDesc{
   521  	ServiceName: "ra.RegistrationAuthority",
   522  	HandlerType: (*RegistrationAuthorityServer)(nil),
   523  	Methods: []grpc.MethodDesc{
   524  		{
   525  			MethodName: "NewRegistration",
   526  			Handler:    _RegistrationAuthority_NewRegistration_Handler,
   527  		},
   528  		{
   529  			MethodName: "UpdateRegistrationKey",
   530  			Handler:    _RegistrationAuthority_UpdateRegistrationKey_Handler,
   531  		},
   532  		{
   533  			MethodName: "DeactivateRegistration",
   534  			Handler:    _RegistrationAuthority_DeactivateRegistration_Handler,
   535  		},
   536  		{
   537  			MethodName: "PerformValidation",
   538  			Handler:    _RegistrationAuthority_PerformValidation_Handler,
   539  		},
   540  		{
   541  			MethodName: "DeactivateAuthorization",
   542  			Handler:    _RegistrationAuthority_DeactivateAuthorization_Handler,
   543  		},
   544  		{
   545  			MethodName: "RevokeCertByApplicant",
   546  			Handler:    _RegistrationAuthority_RevokeCertByApplicant_Handler,
   547  		},
   548  		{
   549  			MethodName: "RevokeCertByKey",
   550  			Handler:    _RegistrationAuthority_RevokeCertByKey_Handler,
   551  		},
   552  		{
   553  			MethodName: "AdministrativelyRevokeCertificate",
   554  			Handler:    _RegistrationAuthority_AdministrativelyRevokeCertificate_Handler,
   555  		},
   556  		{
   557  			MethodName: "NewOrder",
   558  			Handler:    _RegistrationAuthority_NewOrder_Handler,
   559  		},
   560  		{
   561  			MethodName: "GetAuthorization",
   562  			Handler:    _RegistrationAuthority_GetAuthorization_Handler,
   563  		},
   564  		{
   565  			MethodName: "FinalizeOrder",
   566  			Handler:    _RegistrationAuthority_FinalizeOrder_Handler,
   567  		},
   568  		{
   569  			MethodName: "UnpauseAccount",
   570  			Handler:    _RegistrationAuthority_UnpauseAccount_Handler,
   571  		},
   572  		{
   573  			MethodName: "AddRateLimitOverride",
   574  			Handler:    _RegistrationAuthority_AddRateLimitOverride_Handler,
   575  		},
   576  	},
   577  	Streams:  []grpc.StreamDesc{},
   578  	Metadata: "ra.proto",
   579  }
   580  
   581  const (
   582  	SCTProvider_GetSCTs_FullMethodName = "/ra.SCTProvider/GetSCTs"
   583  )
   584  
   585  // SCTProviderClient is the client API for SCTProvider service.
   586  //
   587  // 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.
   588  type SCTProviderClient interface {
   589  	GetSCTs(ctx context.Context, in *SCTRequest, opts ...grpc.CallOption) (*SCTResponse, error)
   590  }
   591  
   592  type sCTProviderClient struct {
   593  	cc grpc.ClientConnInterface
   594  }
   595  
   596  func NewSCTProviderClient(cc grpc.ClientConnInterface) SCTProviderClient {
   597  	return &sCTProviderClient{cc}
   598  }
   599  
   600  func (c *sCTProviderClient) GetSCTs(ctx context.Context, in *SCTRequest, opts ...grpc.CallOption) (*SCTResponse, error) {
   601  	cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
   602  	out := new(SCTResponse)
   603  	err := c.cc.Invoke(ctx, SCTProvider_GetSCTs_FullMethodName, in, out, cOpts...)
   604  	if err != nil {
   605  		return nil, err
   606  	}
   607  	return out, nil
   608  }
   609  
   610  // SCTProviderServer is the server API for SCTProvider service.
   611  // All implementations must embed UnimplementedSCTProviderServer
   612  // for forward compatibility.
   613  type SCTProviderServer interface {
   614  	GetSCTs(context.Context, *SCTRequest) (*SCTResponse, error)
   615  	mustEmbedUnimplementedSCTProviderServer()
   616  }
   617  
   618  // UnimplementedSCTProviderServer must be embedded to have
   619  // forward compatible implementations.
   620  //
   621  // NOTE: this should be embedded by value instead of pointer to avoid a nil
   622  // pointer dereference when methods are called.
   623  type UnimplementedSCTProviderServer struct{}
   624  
   625  func (UnimplementedSCTProviderServer) GetSCTs(context.Context, *SCTRequest) (*SCTResponse, error) {
   626  	return nil, status.Errorf(codes.Unimplemented, "method GetSCTs not implemented")
   627  }
   628  func (UnimplementedSCTProviderServer) mustEmbedUnimplementedSCTProviderServer() {}
   629  func (UnimplementedSCTProviderServer) testEmbeddedByValue()                     {}
   630  
   631  // UnsafeSCTProviderServer may be embedded to opt out of forward compatibility for this service.
   632  // Use of this interface is not recommended, as added methods to SCTProviderServer will
   633  // result in compilation errors.
   634  type UnsafeSCTProviderServer interface {
   635  	mustEmbedUnimplementedSCTProviderServer()
   636  }
   637  
   638  func RegisterSCTProviderServer(s grpc.ServiceRegistrar, srv SCTProviderServer) {
   639  	// If the following call pancis, it indicates UnimplementedSCTProviderServer was
   640  	// embedded by pointer and is nil.  This will cause panics if an
   641  	// unimplemented method is ever invoked, so we test this at initialization
   642  	// time to prevent it from happening at runtime later due to I/O.
   643  	if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
   644  		t.testEmbeddedByValue()
   645  	}
   646  	s.RegisterService(&SCTProvider_ServiceDesc, srv)
   647  }
   648  
   649  func _SCTProvider_GetSCTs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   650  	in := new(SCTRequest)
   651  	if err := dec(in); err != nil {
   652  		return nil, err
   653  	}
   654  	if interceptor == nil {
   655  		return srv.(SCTProviderServer).GetSCTs(ctx, in)
   656  	}
   657  	info := &grpc.UnaryServerInfo{
   658  		Server:     srv,
   659  		FullMethod: SCTProvider_GetSCTs_FullMethodName,
   660  	}
   661  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   662  		return srv.(SCTProviderServer).GetSCTs(ctx, req.(*SCTRequest))
   663  	}
   664  	return interceptor(ctx, in, info, handler)
   665  }
   666  
   667  // SCTProvider_ServiceDesc is the grpc.ServiceDesc for SCTProvider service.
   668  // It's only intended for direct use with grpc.RegisterService,
   669  // and not to be introspected or modified (even as a copy)
   670  var SCTProvider_ServiceDesc = grpc.ServiceDesc{
   671  	ServiceName: "ra.SCTProvider",
   672  	HandlerType: (*SCTProviderServer)(nil),
   673  	Methods: []grpc.MethodDesc{
   674  		{
   675  			MethodName: "GetSCTs",
   676  			Handler:    _SCTProvider_GetSCTs_Handler,
   677  		},
   678  	},
   679  	Streams:  []grpc.StreamDesc{},
   680  	Metadata: "ra.proto",
   681  }