...

Source file src/github.com/letsencrypt/boulder/sa/proto/sa_grpc.pb.go

Documentation: github.com/letsencrypt/boulder/sa/proto

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  // versions:
     3  // - protoc-gen-go-grpc v1.2.0
     4  // - protoc             v3.20.1
     5  // source: sa.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  	timestamppb "google.golang.org/protobuf/types/known/timestamppb"
    17  )
    18  
    19  // This is a compile-time assertion to ensure that this generated file
    20  // is compatible with the grpc package it is being compiled against.
    21  // Requires gRPC-Go v1.32.0 or later.
    22  const _ = grpc.SupportPackageIsVersion7
    23  
    24  // StorageAuthorityReadOnlyClient is the client API for StorageAuthorityReadOnly 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.
    27  type StorageAuthorityReadOnlyClient interface {
    28  	CountCertificatesByNames(ctx context.Context, in *CountCertificatesByNamesRequest, opts ...grpc.CallOption) (*CountByNames, error)
    29  	CountFQDNSets(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Count, error)
    30  	CountInvalidAuthorizations2(ctx context.Context, in *CountInvalidAuthorizationsRequest, opts ...grpc.CallOption) (*Count, error)
    31  	CountOrders(ctx context.Context, in *CountOrdersRequest, opts ...grpc.CallOption) (*Count, error)
    32  	CountPendingAuthorizations2(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*Count, error)
    33  	CountRegistrationsByIP(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error)
    34  	CountRegistrationsByIPRange(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error)
    35  	FQDNSetExists(ctx context.Context, in *FQDNSetExistsRequest, opts ...grpc.CallOption) (*Exists, error)
    36  	FQDNSetTimestampsForWindow(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Timestamps, error)
    37  	GetAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*proto.Authorization, error)
    38  	GetAuthorizations2(ctx context.Context, in *GetAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
    39  	GetCertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error)
    40  	GetCertificateStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.CertificateStatus, error)
    41  	GetMaxExpiration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*timestamppb.Timestamp, error)
    42  	GetOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*proto.Order, error)
    43  	GetOrderForNames(ctx context.Context, in *GetOrderForNamesRequest, opts ...grpc.CallOption) (*proto.Order, error)
    44  	GetPendingAuthorization2(ctx context.Context, in *GetPendingAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error)
    45  	GetRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*proto.Registration, error)
    46  	GetRegistrationByKey(ctx context.Context, in *JSONWebKey, opts ...grpc.CallOption) (*proto.Registration, error)
    47  	GetRevocationStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*RevocationStatus, error)
    48  	GetRevokedCerts(ctx context.Context, in *GetRevokedCertsRequest, opts ...grpc.CallOption) (StorageAuthorityReadOnly_GetRevokedCertsClient, error)
    49  	GetSerialMetadata(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*SerialMetadata, error)
    50  	GetValidAuthorizations2(ctx context.Context, in *GetValidAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
    51  	GetValidOrderAuthorizations2(ctx context.Context, in *GetValidOrderAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
    52  	IncidentsForSerial(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*Incidents, error)
    53  	KeyBlocked(ctx context.Context, in *KeyBlockedRequest, opts ...grpc.CallOption) (*Exists, error)
    54  	PreviousCertificateExists(ctx context.Context, in *PreviousCertificateExistsRequest, opts ...grpc.CallOption) (*Exists, error)
    55  	SerialsForIncident(ctx context.Context, in *SerialsForIncidentRequest, opts ...grpc.CallOption) (StorageAuthorityReadOnly_SerialsForIncidentClient, error)
    56  }
    57  
    58  type storageAuthorityReadOnlyClient struct {
    59  	cc grpc.ClientConnInterface
    60  }
    61  
    62  func NewStorageAuthorityReadOnlyClient(cc grpc.ClientConnInterface) StorageAuthorityReadOnlyClient {
    63  	return &storageAuthorityReadOnlyClient{cc}
    64  }
    65  
    66  func (c *storageAuthorityReadOnlyClient) CountCertificatesByNames(ctx context.Context, in *CountCertificatesByNamesRequest, opts ...grpc.CallOption) (*CountByNames, error) {
    67  	out := new(CountByNames)
    68  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountCertificatesByNames", in, out, opts...)
    69  	if err != nil {
    70  		return nil, err
    71  	}
    72  	return out, nil
    73  }
    74  
    75  func (c *storageAuthorityReadOnlyClient) CountFQDNSets(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Count, error) {
    76  	out := new(Count)
    77  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountFQDNSets", in, out, opts...)
    78  	if err != nil {
    79  		return nil, err
    80  	}
    81  	return out, nil
    82  }
    83  
    84  func (c *storageAuthorityReadOnlyClient) CountInvalidAuthorizations2(ctx context.Context, in *CountInvalidAuthorizationsRequest, opts ...grpc.CallOption) (*Count, error) {
    85  	out := new(Count)
    86  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountInvalidAuthorizations2", in, out, opts...)
    87  	if err != nil {
    88  		return nil, err
    89  	}
    90  	return out, nil
    91  }
    92  
    93  func (c *storageAuthorityReadOnlyClient) CountOrders(ctx context.Context, in *CountOrdersRequest, opts ...grpc.CallOption) (*Count, error) {
    94  	out := new(Count)
    95  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountOrders", in, out, opts...)
    96  	if err != nil {
    97  		return nil, err
    98  	}
    99  	return out, nil
   100  }
   101  
   102  func (c *storageAuthorityReadOnlyClient) CountPendingAuthorizations2(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*Count, error) {
   103  	out := new(Count)
   104  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountPendingAuthorizations2", in, out, opts...)
   105  	if err != nil {
   106  		return nil, err
   107  	}
   108  	return out, nil
   109  }
   110  
   111  func (c *storageAuthorityReadOnlyClient) CountRegistrationsByIP(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error) {
   112  	out := new(Count)
   113  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountRegistrationsByIP", in, out, opts...)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return out, nil
   118  }
   119  
   120  func (c *storageAuthorityReadOnlyClient) CountRegistrationsByIPRange(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error) {
   121  	out := new(Count)
   122  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/CountRegistrationsByIPRange", in, out, opts...)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return out, nil
   127  }
   128  
   129  func (c *storageAuthorityReadOnlyClient) FQDNSetExists(ctx context.Context, in *FQDNSetExistsRequest, opts ...grpc.CallOption) (*Exists, error) {
   130  	out := new(Exists)
   131  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/FQDNSetExists", in, out, opts...)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return out, nil
   136  }
   137  
   138  func (c *storageAuthorityReadOnlyClient) FQDNSetTimestampsForWindow(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Timestamps, error) {
   139  	out := new(Timestamps)
   140  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/FQDNSetTimestampsForWindow", in, out, opts...)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return out, nil
   145  }
   146  
   147  func (c *storageAuthorityReadOnlyClient) GetAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*proto.Authorization, error) {
   148  	out := new(proto.Authorization)
   149  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetAuthorization2", in, out, opts...)
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	return out, nil
   154  }
   155  
   156  func (c *storageAuthorityReadOnlyClient) GetAuthorizations2(ctx context.Context, in *GetAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
   157  	out := new(Authorizations)
   158  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetAuthorizations2", in, out, opts...)
   159  	if err != nil {
   160  		return nil, err
   161  	}
   162  	return out, nil
   163  }
   164  
   165  func (c *storageAuthorityReadOnlyClient) GetCertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error) {
   166  	out := new(proto.Certificate)
   167  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetCertificate", in, out, opts...)
   168  	if err != nil {
   169  		return nil, err
   170  	}
   171  	return out, nil
   172  }
   173  
   174  func (c *storageAuthorityReadOnlyClient) GetCertificateStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.CertificateStatus, error) {
   175  	out := new(proto.CertificateStatus)
   176  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetCertificateStatus", in, out, opts...)
   177  	if err != nil {
   178  		return nil, err
   179  	}
   180  	return out, nil
   181  }
   182  
   183  func (c *storageAuthorityReadOnlyClient) GetMaxExpiration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*timestamppb.Timestamp, error) {
   184  	out := new(timestamppb.Timestamp)
   185  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetMaxExpiration", in, out, opts...)
   186  	if err != nil {
   187  		return nil, err
   188  	}
   189  	return out, nil
   190  }
   191  
   192  func (c *storageAuthorityReadOnlyClient) GetOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*proto.Order, error) {
   193  	out := new(proto.Order)
   194  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetOrder", in, out, opts...)
   195  	if err != nil {
   196  		return nil, err
   197  	}
   198  	return out, nil
   199  }
   200  
   201  func (c *storageAuthorityReadOnlyClient) GetOrderForNames(ctx context.Context, in *GetOrderForNamesRequest, opts ...grpc.CallOption) (*proto.Order, error) {
   202  	out := new(proto.Order)
   203  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetOrderForNames", in, out, opts...)
   204  	if err != nil {
   205  		return nil, err
   206  	}
   207  	return out, nil
   208  }
   209  
   210  func (c *storageAuthorityReadOnlyClient) GetPendingAuthorization2(ctx context.Context, in *GetPendingAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error) {
   211  	out := new(proto.Authorization)
   212  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetPendingAuthorization2", in, out, opts...)
   213  	if err != nil {
   214  		return nil, err
   215  	}
   216  	return out, nil
   217  }
   218  
   219  func (c *storageAuthorityReadOnlyClient) GetRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*proto.Registration, error) {
   220  	out := new(proto.Registration)
   221  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetRegistration", in, out, opts...)
   222  	if err != nil {
   223  		return nil, err
   224  	}
   225  	return out, nil
   226  }
   227  
   228  func (c *storageAuthorityReadOnlyClient) GetRegistrationByKey(ctx context.Context, in *JSONWebKey, opts ...grpc.CallOption) (*proto.Registration, error) {
   229  	out := new(proto.Registration)
   230  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetRegistrationByKey", in, out, opts...)
   231  	if err != nil {
   232  		return nil, err
   233  	}
   234  	return out, nil
   235  }
   236  
   237  func (c *storageAuthorityReadOnlyClient) GetRevocationStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*RevocationStatus, error) {
   238  	out := new(RevocationStatus)
   239  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetRevocationStatus", in, out, opts...)
   240  	if err != nil {
   241  		return nil, err
   242  	}
   243  	return out, nil
   244  }
   245  
   246  func (c *storageAuthorityReadOnlyClient) GetRevokedCerts(ctx context.Context, in *GetRevokedCertsRequest, opts ...grpc.CallOption) (StorageAuthorityReadOnly_GetRevokedCertsClient, error) {
   247  	stream, err := c.cc.NewStream(ctx, &StorageAuthorityReadOnly_ServiceDesc.Streams[0], "/sa.StorageAuthorityReadOnly/GetRevokedCerts", opts...)
   248  	if err != nil {
   249  		return nil, err
   250  	}
   251  	x := &storageAuthorityReadOnlyGetRevokedCertsClient{stream}
   252  	if err := x.ClientStream.SendMsg(in); err != nil {
   253  		return nil, err
   254  	}
   255  	if err := x.ClientStream.CloseSend(); err != nil {
   256  		return nil, err
   257  	}
   258  	return x, nil
   259  }
   260  
   261  type StorageAuthorityReadOnly_GetRevokedCertsClient interface {
   262  	Recv() (*proto.CRLEntry, error)
   263  	grpc.ClientStream
   264  }
   265  
   266  type storageAuthorityReadOnlyGetRevokedCertsClient struct {
   267  	grpc.ClientStream
   268  }
   269  
   270  func (x *storageAuthorityReadOnlyGetRevokedCertsClient) Recv() (*proto.CRLEntry, error) {
   271  	m := new(proto.CRLEntry)
   272  	if err := x.ClientStream.RecvMsg(m); err != nil {
   273  		return nil, err
   274  	}
   275  	return m, nil
   276  }
   277  
   278  func (c *storageAuthorityReadOnlyClient) GetSerialMetadata(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*SerialMetadata, error) {
   279  	out := new(SerialMetadata)
   280  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetSerialMetadata", in, out, opts...)
   281  	if err != nil {
   282  		return nil, err
   283  	}
   284  	return out, nil
   285  }
   286  
   287  func (c *storageAuthorityReadOnlyClient) GetValidAuthorizations2(ctx context.Context, in *GetValidAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
   288  	out := new(Authorizations)
   289  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetValidAuthorizations2", in, out, opts...)
   290  	if err != nil {
   291  		return nil, err
   292  	}
   293  	return out, nil
   294  }
   295  
   296  func (c *storageAuthorityReadOnlyClient) GetValidOrderAuthorizations2(ctx context.Context, in *GetValidOrderAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
   297  	out := new(Authorizations)
   298  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/GetValidOrderAuthorizations2", in, out, opts...)
   299  	if err != nil {
   300  		return nil, err
   301  	}
   302  	return out, nil
   303  }
   304  
   305  func (c *storageAuthorityReadOnlyClient) IncidentsForSerial(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*Incidents, error) {
   306  	out := new(Incidents)
   307  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/IncidentsForSerial", in, out, opts...)
   308  	if err != nil {
   309  		return nil, err
   310  	}
   311  	return out, nil
   312  }
   313  
   314  func (c *storageAuthorityReadOnlyClient) KeyBlocked(ctx context.Context, in *KeyBlockedRequest, opts ...grpc.CallOption) (*Exists, error) {
   315  	out := new(Exists)
   316  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/KeyBlocked", in, out, opts...)
   317  	if err != nil {
   318  		return nil, err
   319  	}
   320  	return out, nil
   321  }
   322  
   323  func (c *storageAuthorityReadOnlyClient) PreviousCertificateExists(ctx context.Context, in *PreviousCertificateExistsRequest, opts ...grpc.CallOption) (*Exists, error) {
   324  	out := new(Exists)
   325  	err := c.cc.Invoke(ctx, "/sa.StorageAuthorityReadOnly/PreviousCertificateExists", in, out, opts...)
   326  	if err != nil {
   327  		return nil, err
   328  	}
   329  	return out, nil
   330  }
   331  
   332  func (c *storageAuthorityReadOnlyClient) SerialsForIncident(ctx context.Context, in *SerialsForIncidentRequest, opts ...grpc.CallOption) (StorageAuthorityReadOnly_SerialsForIncidentClient, error) {
   333  	stream, err := c.cc.NewStream(ctx, &StorageAuthorityReadOnly_ServiceDesc.Streams[1], "/sa.StorageAuthorityReadOnly/SerialsForIncident", opts...)
   334  	if err != nil {
   335  		return nil, err
   336  	}
   337  	x := &storageAuthorityReadOnlySerialsForIncidentClient{stream}
   338  	if err := x.ClientStream.SendMsg(in); err != nil {
   339  		return nil, err
   340  	}
   341  	if err := x.ClientStream.CloseSend(); err != nil {
   342  		return nil, err
   343  	}
   344  	return x, nil
   345  }
   346  
   347  type StorageAuthorityReadOnly_SerialsForIncidentClient interface {
   348  	Recv() (*IncidentSerial, error)
   349  	grpc.ClientStream
   350  }
   351  
   352  type storageAuthorityReadOnlySerialsForIncidentClient struct {
   353  	grpc.ClientStream
   354  }
   355  
   356  func (x *storageAuthorityReadOnlySerialsForIncidentClient) Recv() (*IncidentSerial, error) {
   357  	m := new(IncidentSerial)
   358  	if err := x.ClientStream.RecvMsg(m); err != nil {
   359  		return nil, err
   360  	}
   361  	return m, nil
   362  }
   363  
   364  // StorageAuthorityReadOnlyServer is the server API for StorageAuthorityReadOnly service.
   365  // All implementations must embed UnimplementedStorageAuthorityReadOnlyServer
   366  // for forward compatibility
   367  type StorageAuthorityReadOnlyServer interface {
   368  	CountCertificatesByNames(context.Context, *CountCertificatesByNamesRequest) (*CountByNames, error)
   369  	CountFQDNSets(context.Context, *CountFQDNSetsRequest) (*Count, error)
   370  	CountInvalidAuthorizations2(context.Context, *CountInvalidAuthorizationsRequest) (*Count, error)
   371  	CountOrders(context.Context, *CountOrdersRequest) (*Count, error)
   372  	CountPendingAuthorizations2(context.Context, *RegistrationID) (*Count, error)
   373  	CountRegistrationsByIP(context.Context, *CountRegistrationsByIPRequest) (*Count, error)
   374  	CountRegistrationsByIPRange(context.Context, *CountRegistrationsByIPRequest) (*Count, error)
   375  	FQDNSetExists(context.Context, *FQDNSetExistsRequest) (*Exists, error)
   376  	FQDNSetTimestampsForWindow(context.Context, *CountFQDNSetsRequest) (*Timestamps, error)
   377  	GetAuthorization2(context.Context, *AuthorizationID2) (*proto.Authorization, error)
   378  	GetAuthorizations2(context.Context, *GetAuthorizationsRequest) (*Authorizations, error)
   379  	GetCertificate(context.Context, *Serial) (*proto.Certificate, error)
   380  	GetCertificateStatus(context.Context, *Serial) (*proto.CertificateStatus, error)
   381  	GetMaxExpiration(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error)
   382  	GetOrder(context.Context, *OrderRequest) (*proto.Order, error)
   383  	GetOrderForNames(context.Context, *GetOrderForNamesRequest) (*proto.Order, error)
   384  	GetPendingAuthorization2(context.Context, *GetPendingAuthorizationRequest) (*proto.Authorization, error)
   385  	GetRegistration(context.Context, *RegistrationID) (*proto.Registration, error)
   386  	GetRegistrationByKey(context.Context, *JSONWebKey) (*proto.Registration, error)
   387  	GetRevocationStatus(context.Context, *Serial) (*RevocationStatus, error)
   388  	GetRevokedCerts(*GetRevokedCertsRequest, StorageAuthorityReadOnly_GetRevokedCertsServer) error
   389  	GetSerialMetadata(context.Context, *Serial) (*SerialMetadata, error)
   390  	GetValidAuthorizations2(context.Context, *GetValidAuthorizationsRequest) (*Authorizations, error)
   391  	GetValidOrderAuthorizations2(context.Context, *GetValidOrderAuthorizationsRequest) (*Authorizations, error)
   392  	IncidentsForSerial(context.Context, *Serial) (*Incidents, error)
   393  	KeyBlocked(context.Context, *KeyBlockedRequest) (*Exists, error)
   394  	PreviousCertificateExists(context.Context, *PreviousCertificateExistsRequest) (*Exists, error)
   395  	SerialsForIncident(*SerialsForIncidentRequest, StorageAuthorityReadOnly_SerialsForIncidentServer) error
   396  	mustEmbedUnimplementedStorageAuthorityReadOnlyServer()
   397  }
   398  
   399  // UnimplementedStorageAuthorityReadOnlyServer must be embedded to have forward compatible implementations.
   400  type UnimplementedStorageAuthorityReadOnlyServer struct {
   401  }
   402  
   403  func (UnimplementedStorageAuthorityReadOnlyServer) CountCertificatesByNames(context.Context, *CountCertificatesByNamesRequest) (*CountByNames, error) {
   404  	return nil, status.Errorf(codes.Unimplemented, "method CountCertificatesByNames not implemented")
   405  }
   406  func (UnimplementedStorageAuthorityReadOnlyServer) CountFQDNSets(context.Context, *CountFQDNSetsRequest) (*Count, error) {
   407  	return nil, status.Errorf(codes.Unimplemented, "method CountFQDNSets not implemented")
   408  }
   409  func (UnimplementedStorageAuthorityReadOnlyServer) CountInvalidAuthorizations2(context.Context, *CountInvalidAuthorizationsRequest) (*Count, error) {
   410  	return nil, status.Errorf(codes.Unimplemented, "method CountInvalidAuthorizations2 not implemented")
   411  }
   412  func (UnimplementedStorageAuthorityReadOnlyServer) CountOrders(context.Context, *CountOrdersRequest) (*Count, error) {
   413  	return nil, status.Errorf(codes.Unimplemented, "method CountOrders not implemented")
   414  }
   415  func (UnimplementedStorageAuthorityReadOnlyServer) CountPendingAuthorizations2(context.Context, *RegistrationID) (*Count, error) {
   416  	return nil, status.Errorf(codes.Unimplemented, "method CountPendingAuthorizations2 not implemented")
   417  }
   418  func (UnimplementedStorageAuthorityReadOnlyServer) CountRegistrationsByIP(context.Context, *CountRegistrationsByIPRequest) (*Count, error) {
   419  	return nil, status.Errorf(codes.Unimplemented, "method CountRegistrationsByIP not implemented")
   420  }
   421  func (UnimplementedStorageAuthorityReadOnlyServer) CountRegistrationsByIPRange(context.Context, *CountRegistrationsByIPRequest) (*Count, error) {
   422  	return nil, status.Errorf(codes.Unimplemented, "method CountRegistrationsByIPRange not implemented")
   423  }
   424  func (UnimplementedStorageAuthorityReadOnlyServer) FQDNSetExists(context.Context, *FQDNSetExistsRequest) (*Exists, error) {
   425  	return nil, status.Errorf(codes.Unimplemented, "method FQDNSetExists not implemented")
   426  }
   427  func (UnimplementedStorageAuthorityReadOnlyServer) FQDNSetTimestampsForWindow(context.Context, *CountFQDNSetsRequest) (*Timestamps, error) {
   428  	return nil, status.Errorf(codes.Unimplemented, "method FQDNSetTimestampsForWindow not implemented")
   429  }
   430  func (UnimplementedStorageAuthorityReadOnlyServer) GetAuthorization2(context.Context, *AuthorizationID2) (*proto.Authorization, error) {
   431  	return nil, status.Errorf(codes.Unimplemented, "method GetAuthorization2 not implemented")
   432  }
   433  func (UnimplementedStorageAuthorityReadOnlyServer) GetAuthorizations2(context.Context, *GetAuthorizationsRequest) (*Authorizations, error) {
   434  	return nil, status.Errorf(codes.Unimplemented, "method GetAuthorizations2 not implemented")
   435  }
   436  func (UnimplementedStorageAuthorityReadOnlyServer) GetCertificate(context.Context, *Serial) (*proto.Certificate, error) {
   437  	return nil, status.Errorf(codes.Unimplemented, "method GetCertificate not implemented")
   438  }
   439  func (UnimplementedStorageAuthorityReadOnlyServer) GetCertificateStatus(context.Context, *Serial) (*proto.CertificateStatus, error) {
   440  	return nil, status.Errorf(codes.Unimplemented, "method GetCertificateStatus not implemented")
   441  }
   442  func (UnimplementedStorageAuthorityReadOnlyServer) GetMaxExpiration(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error) {
   443  	return nil, status.Errorf(codes.Unimplemented, "method GetMaxExpiration not implemented")
   444  }
   445  func (UnimplementedStorageAuthorityReadOnlyServer) GetOrder(context.Context, *OrderRequest) (*proto.Order, error) {
   446  	return nil, status.Errorf(codes.Unimplemented, "method GetOrder not implemented")
   447  }
   448  func (UnimplementedStorageAuthorityReadOnlyServer) GetOrderForNames(context.Context, *GetOrderForNamesRequest) (*proto.Order, error) {
   449  	return nil, status.Errorf(codes.Unimplemented, "method GetOrderForNames not implemented")
   450  }
   451  func (UnimplementedStorageAuthorityReadOnlyServer) GetPendingAuthorization2(context.Context, *GetPendingAuthorizationRequest) (*proto.Authorization, error) {
   452  	return nil, status.Errorf(codes.Unimplemented, "method GetPendingAuthorization2 not implemented")
   453  }
   454  func (UnimplementedStorageAuthorityReadOnlyServer) GetRegistration(context.Context, *RegistrationID) (*proto.Registration, error) {
   455  	return nil, status.Errorf(codes.Unimplemented, "method GetRegistration not implemented")
   456  }
   457  func (UnimplementedStorageAuthorityReadOnlyServer) GetRegistrationByKey(context.Context, *JSONWebKey) (*proto.Registration, error) {
   458  	return nil, status.Errorf(codes.Unimplemented, "method GetRegistrationByKey not implemented")
   459  }
   460  func (UnimplementedStorageAuthorityReadOnlyServer) GetRevocationStatus(context.Context, *Serial) (*RevocationStatus, error) {
   461  	return nil, status.Errorf(codes.Unimplemented, "method GetRevocationStatus not implemented")
   462  }
   463  func (UnimplementedStorageAuthorityReadOnlyServer) GetRevokedCerts(*GetRevokedCertsRequest, StorageAuthorityReadOnly_GetRevokedCertsServer) error {
   464  	return status.Errorf(codes.Unimplemented, "method GetRevokedCerts not implemented")
   465  }
   466  func (UnimplementedStorageAuthorityReadOnlyServer) GetSerialMetadata(context.Context, *Serial) (*SerialMetadata, error) {
   467  	return nil, status.Errorf(codes.Unimplemented, "method GetSerialMetadata not implemented")
   468  }
   469  func (UnimplementedStorageAuthorityReadOnlyServer) GetValidAuthorizations2(context.Context, *GetValidAuthorizationsRequest) (*Authorizations, error) {
   470  	return nil, status.Errorf(codes.Unimplemented, "method GetValidAuthorizations2 not implemented")
   471  }
   472  func (UnimplementedStorageAuthorityReadOnlyServer) GetValidOrderAuthorizations2(context.Context, *GetValidOrderAuthorizationsRequest) (*Authorizations, error) {
   473  	return nil, status.Errorf(codes.Unimplemented, "method GetValidOrderAuthorizations2 not implemented")
   474  }
   475  func (UnimplementedStorageAuthorityReadOnlyServer) IncidentsForSerial(context.Context, *Serial) (*Incidents, error) {
   476  	return nil, status.Errorf(codes.Unimplemented, "method IncidentsForSerial not implemented")
   477  }
   478  func (UnimplementedStorageAuthorityReadOnlyServer) KeyBlocked(context.Context, *KeyBlockedRequest) (*Exists, error) {
   479  	return nil, status.Errorf(codes.Unimplemented, "method KeyBlocked not implemented")
   480  }
   481  func (UnimplementedStorageAuthorityReadOnlyServer) PreviousCertificateExists(context.Context, *PreviousCertificateExistsRequest) (*Exists, error) {
   482  	return nil, status.Errorf(codes.Unimplemented, "method PreviousCertificateExists not implemented")
   483  }
   484  func (UnimplementedStorageAuthorityReadOnlyServer) SerialsForIncident(*SerialsForIncidentRequest, StorageAuthorityReadOnly_SerialsForIncidentServer) error {
   485  	return status.Errorf(codes.Unimplemented, "method SerialsForIncident not implemented")
   486  }
   487  func (UnimplementedStorageAuthorityReadOnlyServer) mustEmbedUnimplementedStorageAuthorityReadOnlyServer() {
   488  }
   489  
   490  // UnsafeStorageAuthorityReadOnlyServer may be embedded to opt out of forward compatibility for this service.
   491  // Use of this interface is not recommended, as added methods to StorageAuthorityReadOnlyServer will
   492  // result in compilation errors.
   493  type UnsafeStorageAuthorityReadOnlyServer interface {
   494  	mustEmbedUnimplementedStorageAuthorityReadOnlyServer()
   495  }
   496  
   497  func RegisterStorageAuthorityReadOnlyServer(s grpc.ServiceRegistrar, srv StorageAuthorityReadOnlyServer) {
   498  	s.RegisterService(&StorageAuthorityReadOnly_ServiceDesc, srv)
   499  }
   500  
   501  func _StorageAuthorityReadOnly_CountCertificatesByNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   502  	in := new(CountCertificatesByNamesRequest)
   503  	if err := dec(in); err != nil {
   504  		return nil, err
   505  	}
   506  	if interceptor == nil {
   507  		return srv.(StorageAuthorityReadOnlyServer).CountCertificatesByNames(ctx, in)
   508  	}
   509  	info := &grpc.UnaryServerInfo{
   510  		Server:     srv,
   511  		FullMethod: "/sa.StorageAuthorityReadOnly/CountCertificatesByNames",
   512  	}
   513  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   514  		return srv.(StorageAuthorityReadOnlyServer).CountCertificatesByNames(ctx, req.(*CountCertificatesByNamesRequest))
   515  	}
   516  	return interceptor(ctx, in, info, handler)
   517  }
   518  
   519  func _StorageAuthorityReadOnly_CountFQDNSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   520  	in := new(CountFQDNSetsRequest)
   521  	if err := dec(in); err != nil {
   522  		return nil, err
   523  	}
   524  	if interceptor == nil {
   525  		return srv.(StorageAuthorityReadOnlyServer).CountFQDNSets(ctx, in)
   526  	}
   527  	info := &grpc.UnaryServerInfo{
   528  		Server:     srv,
   529  		FullMethod: "/sa.StorageAuthorityReadOnly/CountFQDNSets",
   530  	}
   531  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   532  		return srv.(StorageAuthorityReadOnlyServer).CountFQDNSets(ctx, req.(*CountFQDNSetsRequest))
   533  	}
   534  	return interceptor(ctx, in, info, handler)
   535  }
   536  
   537  func _StorageAuthorityReadOnly_CountInvalidAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   538  	in := new(CountInvalidAuthorizationsRequest)
   539  	if err := dec(in); err != nil {
   540  		return nil, err
   541  	}
   542  	if interceptor == nil {
   543  		return srv.(StorageAuthorityReadOnlyServer).CountInvalidAuthorizations2(ctx, in)
   544  	}
   545  	info := &grpc.UnaryServerInfo{
   546  		Server:     srv,
   547  		FullMethod: "/sa.StorageAuthorityReadOnly/CountInvalidAuthorizations2",
   548  	}
   549  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   550  		return srv.(StorageAuthorityReadOnlyServer).CountInvalidAuthorizations2(ctx, req.(*CountInvalidAuthorizationsRequest))
   551  	}
   552  	return interceptor(ctx, in, info, handler)
   553  }
   554  
   555  func _StorageAuthorityReadOnly_CountOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   556  	in := new(CountOrdersRequest)
   557  	if err := dec(in); err != nil {
   558  		return nil, err
   559  	}
   560  	if interceptor == nil {
   561  		return srv.(StorageAuthorityReadOnlyServer).CountOrders(ctx, in)
   562  	}
   563  	info := &grpc.UnaryServerInfo{
   564  		Server:     srv,
   565  		FullMethod: "/sa.StorageAuthorityReadOnly/CountOrders",
   566  	}
   567  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   568  		return srv.(StorageAuthorityReadOnlyServer).CountOrders(ctx, req.(*CountOrdersRequest))
   569  	}
   570  	return interceptor(ctx, in, info, handler)
   571  }
   572  
   573  func _StorageAuthorityReadOnly_CountPendingAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   574  	in := new(RegistrationID)
   575  	if err := dec(in); err != nil {
   576  		return nil, err
   577  	}
   578  	if interceptor == nil {
   579  		return srv.(StorageAuthorityReadOnlyServer).CountPendingAuthorizations2(ctx, in)
   580  	}
   581  	info := &grpc.UnaryServerInfo{
   582  		Server:     srv,
   583  		FullMethod: "/sa.StorageAuthorityReadOnly/CountPendingAuthorizations2",
   584  	}
   585  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   586  		return srv.(StorageAuthorityReadOnlyServer).CountPendingAuthorizations2(ctx, req.(*RegistrationID))
   587  	}
   588  	return interceptor(ctx, in, info, handler)
   589  }
   590  
   591  func _StorageAuthorityReadOnly_CountRegistrationsByIP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   592  	in := new(CountRegistrationsByIPRequest)
   593  	if err := dec(in); err != nil {
   594  		return nil, err
   595  	}
   596  	if interceptor == nil {
   597  		return srv.(StorageAuthorityReadOnlyServer).CountRegistrationsByIP(ctx, in)
   598  	}
   599  	info := &grpc.UnaryServerInfo{
   600  		Server:     srv,
   601  		FullMethod: "/sa.StorageAuthorityReadOnly/CountRegistrationsByIP",
   602  	}
   603  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   604  		return srv.(StorageAuthorityReadOnlyServer).CountRegistrationsByIP(ctx, req.(*CountRegistrationsByIPRequest))
   605  	}
   606  	return interceptor(ctx, in, info, handler)
   607  }
   608  
   609  func _StorageAuthorityReadOnly_CountRegistrationsByIPRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   610  	in := new(CountRegistrationsByIPRequest)
   611  	if err := dec(in); err != nil {
   612  		return nil, err
   613  	}
   614  	if interceptor == nil {
   615  		return srv.(StorageAuthorityReadOnlyServer).CountRegistrationsByIPRange(ctx, in)
   616  	}
   617  	info := &grpc.UnaryServerInfo{
   618  		Server:     srv,
   619  		FullMethod: "/sa.StorageAuthorityReadOnly/CountRegistrationsByIPRange",
   620  	}
   621  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   622  		return srv.(StorageAuthorityReadOnlyServer).CountRegistrationsByIPRange(ctx, req.(*CountRegistrationsByIPRequest))
   623  	}
   624  	return interceptor(ctx, in, info, handler)
   625  }
   626  
   627  func _StorageAuthorityReadOnly_FQDNSetExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   628  	in := new(FQDNSetExistsRequest)
   629  	if err := dec(in); err != nil {
   630  		return nil, err
   631  	}
   632  	if interceptor == nil {
   633  		return srv.(StorageAuthorityReadOnlyServer).FQDNSetExists(ctx, in)
   634  	}
   635  	info := &grpc.UnaryServerInfo{
   636  		Server:     srv,
   637  		FullMethod: "/sa.StorageAuthorityReadOnly/FQDNSetExists",
   638  	}
   639  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   640  		return srv.(StorageAuthorityReadOnlyServer).FQDNSetExists(ctx, req.(*FQDNSetExistsRequest))
   641  	}
   642  	return interceptor(ctx, in, info, handler)
   643  }
   644  
   645  func _StorageAuthorityReadOnly_FQDNSetTimestampsForWindow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   646  	in := new(CountFQDNSetsRequest)
   647  	if err := dec(in); err != nil {
   648  		return nil, err
   649  	}
   650  	if interceptor == nil {
   651  		return srv.(StorageAuthorityReadOnlyServer).FQDNSetTimestampsForWindow(ctx, in)
   652  	}
   653  	info := &grpc.UnaryServerInfo{
   654  		Server:     srv,
   655  		FullMethod: "/sa.StorageAuthorityReadOnly/FQDNSetTimestampsForWindow",
   656  	}
   657  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   658  		return srv.(StorageAuthorityReadOnlyServer).FQDNSetTimestampsForWindow(ctx, req.(*CountFQDNSetsRequest))
   659  	}
   660  	return interceptor(ctx, in, info, handler)
   661  }
   662  
   663  func _StorageAuthorityReadOnly_GetAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   664  	in := new(AuthorizationID2)
   665  	if err := dec(in); err != nil {
   666  		return nil, err
   667  	}
   668  	if interceptor == nil {
   669  		return srv.(StorageAuthorityReadOnlyServer).GetAuthorization2(ctx, in)
   670  	}
   671  	info := &grpc.UnaryServerInfo{
   672  		Server:     srv,
   673  		FullMethod: "/sa.StorageAuthorityReadOnly/GetAuthorization2",
   674  	}
   675  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   676  		return srv.(StorageAuthorityReadOnlyServer).GetAuthorization2(ctx, req.(*AuthorizationID2))
   677  	}
   678  	return interceptor(ctx, in, info, handler)
   679  }
   680  
   681  func _StorageAuthorityReadOnly_GetAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   682  	in := new(GetAuthorizationsRequest)
   683  	if err := dec(in); err != nil {
   684  		return nil, err
   685  	}
   686  	if interceptor == nil {
   687  		return srv.(StorageAuthorityReadOnlyServer).GetAuthorizations2(ctx, in)
   688  	}
   689  	info := &grpc.UnaryServerInfo{
   690  		Server:     srv,
   691  		FullMethod: "/sa.StorageAuthorityReadOnly/GetAuthorizations2",
   692  	}
   693  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   694  		return srv.(StorageAuthorityReadOnlyServer).GetAuthorizations2(ctx, req.(*GetAuthorizationsRequest))
   695  	}
   696  	return interceptor(ctx, in, info, handler)
   697  }
   698  
   699  func _StorageAuthorityReadOnly_GetCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   700  	in := new(Serial)
   701  	if err := dec(in); err != nil {
   702  		return nil, err
   703  	}
   704  	if interceptor == nil {
   705  		return srv.(StorageAuthorityReadOnlyServer).GetCertificate(ctx, in)
   706  	}
   707  	info := &grpc.UnaryServerInfo{
   708  		Server:     srv,
   709  		FullMethod: "/sa.StorageAuthorityReadOnly/GetCertificate",
   710  	}
   711  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   712  		return srv.(StorageAuthorityReadOnlyServer).GetCertificate(ctx, req.(*Serial))
   713  	}
   714  	return interceptor(ctx, in, info, handler)
   715  }
   716  
   717  func _StorageAuthorityReadOnly_GetCertificateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   718  	in := new(Serial)
   719  	if err := dec(in); err != nil {
   720  		return nil, err
   721  	}
   722  	if interceptor == nil {
   723  		return srv.(StorageAuthorityReadOnlyServer).GetCertificateStatus(ctx, in)
   724  	}
   725  	info := &grpc.UnaryServerInfo{
   726  		Server:     srv,
   727  		FullMethod: "/sa.StorageAuthorityReadOnly/GetCertificateStatus",
   728  	}
   729  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   730  		return srv.(StorageAuthorityReadOnlyServer).GetCertificateStatus(ctx, req.(*Serial))
   731  	}
   732  	return interceptor(ctx, in, info, handler)
   733  }
   734  
   735  func _StorageAuthorityReadOnly_GetMaxExpiration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   736  	in := new(emptypb.Empty)
   737  	if err := dec(in); err != nil {
   738  		return nil, err
   739  	}
   740  	if interceptor == nil {
   741  		return srv.(StorageAuthorityReadOnlyServer).GetMaxExpiration(ctx, in)
   742  	}
   743  	info := &grpc.UnaryServerInfo{
   744  		Server:     srv,
   745  		FullMethod: "/sa.StorageAuthorityReadOnly/GetMaxExpiration",
   746  	}
   747  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   748  		return srv.(StorageAuthorityReadOnlyServer).GetMaxExpiration(ctx, req.(*emptypb.Empty))
   749  	}
   750  	return interceptor(ctx, in, info, handler)
   751  }
   752  
   753  func _StorageAuthorityReadOnly_GetOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   754  	in := new(OrderRequest)
   755  	if err := dec(in); err != nil {
   756  		return nil, err
   757  	}
   758  	if interceptor == nil {
   759  		return srv.(StorageAuthorityReadOnlyServer).GetOrder(ctx, in)
   760  	}
   761  	info := &grpc.UnaryServerInfo{
   762  		Server:     srv,
   763  		FullMethod: "/sa.StorageAuthorityReadOnly/GetOrder",
   764  	}
   765  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   766  		return srv.(StorageAuthorityReadOnlyServer).GetOrder(ctx, req.(*OrderRequest))
   767  	}
   768  	return interceptor(ctx, in, info, handler)
   769  }
   770  
   771  func _StorageAuthorityReadOnly_GetOrderForNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   772  	in := new(GetOrderForNamesRequest)
   773  	if err := dec(in); err != nil {
   774  		return nil, err
   775  	}
   776  	if interceptor == nil {
   777  		return srv.(StorageAuthorityReadOnlyServer).GetOrderForNames(ctx, in)
   778  	}
   779  	info := &grpc.UnaryServerInfo{
   780  		Server:     srv,
   781  		FullMethod: "/sa.StorageAuthorityReadOnly/GetOrderForNames",
   782  	}
   783  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   784  		return srv.(StorageAuthorityReadOnlyServer).GetOrderForNames(ctx, req.(*GetOrderForNamesRequest))
   785  	}
   786  	return interceptor(ctx, in, info, handler)
   787  }
   788  
   789  func _StorageAuthorityReadOnly_GetPendingAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   790  	in := new(GetPendingAuthorizationRequest)
   791  	if err := dec(in); err != nil {
   792  		return nil, err
   793  	}
   794  	if interceptor == nil {
   795  		return srv.(StorageAuthorityReadOnlyServer).GetPendingAuthorization2(ctx, in)
   796  	}
   797  	info := &grpc.UnaryServerInfo{
   798  		Server:     srv,
   799  		FullMethod: "/sa.StorageAuthorityReadOnly/GetPendingAuthorization2",
   800  	}
   801  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   802  		return srv.(StorageAuthorityReadOnlyServer).GetPendingAuthorization2(ctx, req.(*GetPendingAuthorizationRequest))
   803  	}
   804  	return interceptor(ctx, in, info, handler)
   805  }
   806  
   807  func _StorageAuthorityReadOnly_GetRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   808  	in := new(RegistrationID)
   809  	if err := dec(in); err != nil {
   810  		return nil, err
   811  	}
   812  	if interceptor == nil {
   813  		return srv.(StorageAuthorityReadOnlyServer).GetRegistration(ctx, in)
   814  	}
   815  	info := &grpc.UnaryServerInfo{
   816  		Server:     srv,
   817  		FullMethod: "/sa.StorageAuthorityReadOnly/GetRegistration",
   818  	}
   819  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   820  		return srv.(StorageAuthorityReadOnlyServer).GetRegistration(ctx, req.(*RegistrationID))
   821  	}
   822  	return interceptor(ctx, in, info, handler)
   823  }
   824  
   825  func _StorageAuthorityReadOnly_GetRegistrationByKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   826  	in := new(JSONWebKey)
   827  	if err := dec(in); err != nil {
   828  		return nil, err
   829  	}
   830  	if interceptor == nil {
   831  		return srv.(StorageAuthorityReadOnlyServer).GetRegistrationByKey(ctx, in)
   832  	}
   833  	info := &grpc.UnaryServerInfo{
   834  		Server:     srv,
   835  		FullMethod: "/sa.StorageAuthorityReadOnly/GetRegistrationByKey",
   836  	}
   837  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   838  		return srv.(StorageAuthorityReadOnlyServer).GetRegistrationByKey(ctx, req.(*JSONWebKey))
   839  	}
   840  	return interceptor(ctx, in, info, handler)
   841  }
   842  
   843  func _StorageAuthorityReadOnly_GetRevocationStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   844  	in := new(Serial)
   845  	if err := dec(in); err != nil {
   846  		return nil, err
   847  	}
   848  	if interceptor == nil {
   849  		return srv.(StorageAuthorityReadOnlyServer).GetRevocationStatus(ctx, in)
   850  	}
   851  	info := &grpc.UnaryServerInfo{
   852  		Server:     srv,
   853  		FullMethod: "/sa.StorageAuthorityReadOnly/GetRevocationStatus",
   854  	}
   855  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   856  		return srv.(StorageAuthorityReadOnlyServer).GetRevocationStatus(ctx, req.(*Serial))
   857  	}
   858  	return interceptor(ctx, in, info, handler)
   859  }
   860  
   861  func _StorageAuthorityReadOnly_GetRevokedCerts_Handler(srv interface{}, stream grpc.ServerStream) error {
   862  	m := new(GetRevokedCertsRequest)
   863  	if err := stream.RecvMsg(m); err != nil {
   864  		return err
   865  	}
   866  	return srv.(StorageAuthorityReadOnlyServer).GetRevokedCerts(m, &storageAuthorityReadOnlyGetRevokedCertsServer{stream})
   867  }
   868  
   869  type StorageAuthorityReadOnly_GetRevokedCertsServer interface {
   870  	Send(*proto.CRLEntry) error
   871  	grpc.ServerStream
   872  }
   873  
   874  type storageAuthorityReadOnlyGetRevokedCertsServer struct {
   875  	grpc.ServerStream
   876  }
   877  
   878  func (x *storageAuthorityReadOnlyGetRevokedCertsServer) Send(m *proto.CRLEntry) error {
   879  	return x.ServerStream.SendMsg(m)
   880  }
   881  
   882  func _StorageAuthorityReadOnly_GetSerialMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   883  	in := new(Serial)
   884  	if err := dec(in); err != nil {
   885  		return nil, err
   886  	}
   887  	if interceptor == nil {
   888  		return srv.(StorageAuthorityReadOnlyServer).GetSerialMetadata(ctx, in)
   889  	}
   890  	info := &grpc.UnaryServerInfo{
   891  		Server:     srv,
   892  		FullMethod: "/sa.StorageAuthorityReadOnly/GetSerialMetadata",
   893  	}
   894  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   895  		return srv.(StorageAuthorityReadOnlyServer).GetSerialMetadata(ctx, req.(*Serial))
   896  	}
   897  	return interceptor(ctx, in, info, handler)
   898  }
   899  
   900  func _StorageAuthorityReadOnly_GetValidAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   901  	in := new(GetValidAuthorizationsRequest)
   902  	if err := dec(in); err != nil {
   903  		return nil, err
   904  	}
   905  	if interceptor == nil {
   906  		return srv.(StorageAuthorityReadOnlyServer).GetValidAuthorizations2(ctx, in)
   907  	}
   908  	info := &grpc.UnaryServerInfo{
   909  		Server:     srv,
   910  		FullMethod: "/sa.StorageAuthorityReadOnly/GetValidAuthorizations2",
   911  	}
   912  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   913  		return srv.(StorageAuthorityReadOnlyServer).GetValidAuthorizations2(ctx, req.(*GetValidAuthorizationsRequest))
   914  	}
   915  	return interceptor(ctx, in, info, handler)
   916  }
   917  
   918  func _StorageAuthorityReadOnly_GetValidOrderAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   919  	in := new(GetValidOrderAuthorizationsRequest)
   920  	if err := dec(in); err != nil {
   921  		return nil, err
   922  	}
   923  	if interceptor == nil {
   924  		return srv.(StorageAuthorityReadOnlyServer).GetValidOrderAuthorizations2(ctx, in)
   925  	}
   926  	info := &grpc.UnaryServerInfo{
   927  		Server:     srv,
   928  		FullMethod: "/sa.StorageAuthorityReadOnly/GetValidOrderAuthorizations2",
   929  	}
   930  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   931  		return srv.(StorageAuthorityReadOnlyServer).GetValidOrderAuthorizations2(ctx, req.(*GetValidOrderAuthorizationsRequest))
   932  	}
   933  	return interceptor(ctx, in, info, handler)
   934  }
   935  
   936  func _StorageAuthorityReadOnly_IncidentsForSerial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   937  	in := new(Serial)
   938  	if err := dec(in); err != nil {
   939  		return nil, err
   940  	}
   941  	if interceptor == nil {
   942  		return srv.(StorageAuthorityReadOnlyServer).IncidentsForSerial(ctx, in)
   943  	}
   944  	info := &grpc.UnaryServerInfo{
   945  		Server:     srv,
   946  		FullMethod: "/sa.StorageAuthorityReadOnly/IncidentsForSerial",
   947  	}
   948  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   949  		return srv.(StorageAuthorityReadOnlyServer).IncidentsForSerial(ctx, req.(*Serial))
   950  	}
   951  	return interceptor(ctx, in, info, handler)
   952  }
   953  
   954  func _StorageAuthorityReadOnly_KeyBlocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   955  	in := new(KeyBlockedRequest)
   956  	if err := dec(in); err != nil {
   957  		return nil, err
   958  	}
   959  	if interceptor == nil {
   960  		return srv.(StorageAuthorityReadOnlyServer).KeyBlocked(ctx, in)
   961  	}
   962  	info := &grpc.UnaryServerInfo{
   963  		Server:     srv,
   964  		FullMethod: "/sa.StorageAuthorityReadOnly/KeyBlocked",
   965  	}
   966  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   967  		return srv.(StorageAuthorityReadOnlyServer).KeyBlocked(ctx, req.(*KeyBlockedRequest))
   968  	}
   969  	return interceptor(ctx, in, info, handler)
   970  }
   971  
   972  func _StorageAuthorityReadOnly_PreviousCertificateExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   973  	in := new(PreviousCertificateExistsRequest)
   974  	if err := dec(in); err != nil {
   975  		return nil, err
   976  	}
   977  	if interceptor == nil {
   978  		return srv.(StorageAuthorityReadOnlyServer).PreviousCertificateExists(ctx, in)
   979  	}
   980  	info := &grpc.UnaryServerInfo{
   981  		Server:     srv,
   982  		FullMethod: "/sa.StorageAuthorityReadOnly/PreviousCertificateExists",
   983  	}
   984  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   985  		return srv.(StorageAuthorityReadOnlyServer).PreviousCertificateExists(ctx, req.(*PreviousCertificateExistsRequest))
   986  	}
   987  	return interceptor(ctx, in, info, handler)
   988  }
   989  
   990  func _StorageAuthorityReadOnly_SerialsForIncident_Handler(srv interface{}, stream grpc.ServerStream) error {
   991  	m := new(SerialsForIncidentRequest)
   992  	if err := stream.RecvMsg(m); err != nil {
   993  		return err
   994  	}
   995  	return srv.(StorageAuthorityReadOnlyServer).SerialsForIncident(m, &storageAuthorityReadOnlySerialsForIncidentServer{stream})
   996  }
   997  
   998  type StorageAuthorityReadOnly_SerialsForIncidentServer interface {
   999  	Send(*IncidentSerial) error
  1000  	grpc.ServerStream
  1001  }
  1002  
  1003  type storageAuthorityReadOnlySerialsForIncidentServer struct {
  1004  	grpc.ServerStream
  1005  }
  1006  
  1007  func (x *storageAuthorityReadOnlySerialsForIncidentServer) Send(m *IncidentSerial) error {
  1008  	return x.ServerStream.SendMsg(m)
  1009  }
  1010  
  1011  // StorageAuthorityReadOnly_ServiceDesc is the grpc.ServiceDesc for StorageAuthorityReadOnly service.
  1012  // It's only intended for direct use with grpc.RegisterService,
  1013  // and not to be introspected or modified (even as a copy)
  1014  var StorageAuthorityReadOnly_ServiceDesc = grpc.ServiceDesc{
  1015  	ServiceName: "sa.StorageAuthorityReadOnly",
  1016  	HandlerType: (*StorageAuthorityReadOnlyServer)(nil),
  1017  	Methods: []grpc.MethodDesc{
  1018  		{
  1019  			MethodName: "CountCertificatesByNames",
  1020  			Handler:    _StorageAuthorityReadOnly_CountCertificatesByNames_Handler,
  1021  		},
  1022  		{
  1023  			MethodName: "CountFQDNSets",
  1024  			Handler:    _StorageAuthorityReadOnly_CountFQDNSets_Handler,
  1025  		},
  1026  		{
  1027  			MethodName: "CountInvalidAuthorizations2",
  1028  			Handler:    _StorageAuthorityReadOnly_CountInvalidAuthorizations2_Handler,
  1029  		},
  1030  		{
  1031  			MethodName: "CountOrders",
  1032  			Handler:    _StorageAuthorityReadOnly_CountOrders_Handler,
  1033  		},
  1034  		{
  1035  			MethodName: "CountPendingAuthorizations2",
  1036  			Handler:    _StorageAuthorityReadOnly_CountPendingAuthorizations2_Handler,
  1037  		},
  1038  		{
  1039  			MethodName: "CountRegistrationsByIP",
  1040  			Handler:    _StorageAuthorityReadOnly_CountRegistrationsByIP_Handler,
  1041  		},
  1042  		{
  1043  			MethodName: "CountRegistrationsByIPRange",
  1044  			Handler:    _StorageAuthorityReadOnly_CountRegistrationsByIPRange_Handler,
  1045  		},
  1046  		{
  1047  			MethodName: "FQDNSetExists",
  1048  			Handler:    _StorageAuthorityReadOnly_FQDNSetExists_Handler,
  1049  		},
  1050  		{
  1051  			MethodName: "FQDNSetTimestampsForWindow",
  1052  			Handler:    _StorageAuthorityReadOnly_FQDNSetTimestampsForWindow_Handler,
  1053  		},
  1054  		{
  1055  			MethodName: "GetAuthorization2",
  1056  			Handler:    _StorageAuthorityReadOnly_GetAuthorization2_Handler,
  1057  		},
  1058  		{
  1059  			MethodName: "GetAuthorizations2",
  1060  			Handler:    _StorageAuthorityReadOnly_GetAuthorizations2_Handler,
  1061  		},
  1062  		{
  1063  			MethodName: "GetCertificate",
  1064  			Handler:    _StorageAuthorityReadOnly_GetCertificate_Handler,
  1065  		},
  1066  		{
  1067  			MethodName: "GetCertificateStatus",
  1068  			Handler:    _StorageAuthorityReadOnly_GetCertificateStatus_Handler,
  1069  		},
  1070  		{
  1071  			MethodName: "GetMaxExpiration",
  1072  			Handler:    _StorageAuthorityReadOnly_GetMaxExpiration_Handler,
  1073  		},
  1074  		{
  1075  			MethodName: "GetOrder",
  1076  			Handler:    _StorageAuthorityReadOnly_GetOrder_Handler,
  1077  		},
  1078  		{
  1079  			MethodName: "GetOrderForNames",
  1080  			Handler:    _StorageAuthorityReadOnly_GetOrderForNames_Handler,
  1081  		},
  1082  		{
  1083  			MethodName: "GetPendingAuthorization2",
  1084  			Handler:    _StorageAuthorityReadOnly_GetPendingAuthorization2_Handler,
  1085  		},
  1086  		{
  1087  			MethodName: "GetRegistration",
  1088  			Handler:    _StorageAuthorityReadOnly_GetRegistration_Handler,
  1089  		},
  1090  		{
  1091  			MethodName: "GetRegistrationByKey",
  1092  			Handler:    _StorageAuthorityReadOnly_GetRegistrationByKey_Handler,
  1093  		},
  1094  		{
  1095  			MethodName: "GetRevocationStatus",
  1096  			Handler:    _StorageAuthorityReadOnly_GetRevocationStatus_Handler,
  1097  		},
  1098  		{
  1099  			MethodName: "GetSerialMetadata",
  1100  			Handler:    _StorageAuthorityReadOnly_GetSerialMetadata_Handler,
  1101  		},
  1102  		{
  1103  			MethodName: "GetValidAuthorizations2",
  1104  			Handler:    _StorageAuthorityReadOnly_GetValidAuthorizations2_Handler,
  1105  		},
  1106  		{
  1107  			MethodName: "GetValidOrderAuthorizations2",
  1108  			Handler:    _StorageAuthorityReadOnly_GetValidOrderAuthorizations2_Handler,
  1109  		},
  1110  		{
  1111  			MethodName: "IncidentsForSerial",
  1112  			Handler:    _StorageAuthorityReadOnly_IncidentsForSerial_Handler,
  1113  		},
  1114  		{
  1115  			MethodName: "KeyBlocked",
  1116  			Handler:    _StorageAuthorityReadOnly_KeyBlocked_Handler,
  1117  		},
  1118  		{
  1119  			MethodName: "PreviousCertificateExists",
  1120  			Handler:    _StorageAuthorityReadOnly_PreviousCertificateExists_Handler,
  1121  		},
  1122  	},
  1123  	Streams: []grpc.StreamDesc{
  1124  		{
  1125  			StreamName:    "GetRevokedCerts",
  1126  			Handler:       _StorageAuthorityReadOnly_GetRevokedCerts_Handler,
  1127  			ServerStreams: true,
  1128  		},
  1129  		{
  1130  			StreamName:    "SerialsForIncident",
  1131  			Handler:       _StorageAuthorityReadOnly_SerialsForIncident_Handler,
  1132  			ServerStreams: true,
  1133  		},
  1134  	},
  1135  	Metadata: "sa.proto",
  1136  }
  1137  
  1138  // StorageAuthorityClient is the client API for StorageAuthority service.
  1139  //
  1140  // 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.
  1141  type StorageAuthorityClient interface {
  1142  	// Getters: this list must be identical to the StorageAuthorityReadOnly rpcs.
  1143  	CountCertificatesByNames(ctx context.Context, in *CountCertificatesByNamesRequest, opts ...grpc.CallOption) (*CountByNames, error)
  1144  	CountFQDNSets(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Count, error)
  1145  	CountInvalidAuthorizations2(ctx context.Context, in *CountInvalidAuthorizationsRequest, opts ...grpc.CallOption) (*Count, error)
  1146  	CountOrders(ctx context.Context, in *CountOrdersRequest, opts ...grpc.CallOption) (*Count, error)
  1147  	CountPendingAuthorizations2(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*Count, error)
  1148  	CountRegistrationsByIP(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error)
  1149  	CountRegistrationsByIPRange(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error)
  1150  	FQDNSetExists(ctx context.Context, in *FQDNSetExistsRequest, opts ...grpc.CallOption) (*Exists, error)
  1151  	FQDNSetTimestampsForWindow(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Timestamps, error)
  1152  	GetAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*proto.Authorization, error)
  1153  	GetAuthorizations2(ctx context.Context, in *GetAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
  1154  	GetCertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error)
  1155  	GetCertificateStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.CertificateStatus, error)
  1156  	GetMaxExpiration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*timestamppb.Timestamp, error)
  1157  	GetOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*proto.Order, error)
  1158  	GetOrderForNames(ctx context.Context, in *GetOrderForNamesRequest, opts ...grpc.CallOption) (*proto.Order, error)
  1159  	GetPendingAuthorization2(ctx context.Context, in *GetPendingAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error)
  1160  	GetRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*proto.Registration, error)
  1161  	GetRegistrationByKey(ctx context.Context, in *JSONWebKey, opts ...grpc.CallOption) (*proto.Registration, error)
  1162  	GetRevocationStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*RevocationStatus, error)
  1163  	GetRevokedCerts(ctx context.Context, in *GetRevokedCertsRequest, opts ...grpc.CallOption) (StorageAuthority_GetRevokedCertsClient, error)
  1164  	GetSerialMetadata(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*SerialMetadata, error)
  1165  	GetValidAuthorizations2(ctx context.Context, in *GetValidAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
  1166  	GetValidOrderAuthorizations2(ctx context.Context, in *GetValidOrderAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error)
  1167  	IncidentsForSerial(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*Incidents, error)
  1168  	KeyBlocked(ctx context.Context, in *KeyBlockedRequest, opts ...grpc.CallOption) (*Exists, error)
  1169  	PreviousCertificateExists(ctx context.Context, in *PreviousCertificateExistsRequest, opts ...grpc.CallOption) (*Exists, error)
  1170  	SerialsForIncident(ctx context.Context, in *SerialsForIncidentRequest, opts ...grpc.CallOption) (StorageAuthority_SerialsForIncidentClient, error)
  1171  	// Adders
  1172  	AddBlockedKey(ctx context.Context, in *AddBlockedKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1173  	AddCertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1174  	AddPrecertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1175  	SetCertificateStatusReady(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1176  	AddSerial(ctx context.Context, in *AddSerialRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1177  	DeactivateAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1178  	DeactivateRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1179  	FinalizeAuthorization2(ctx context.Context, in *FinalizeAuthorizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1180  	FinalizeOrder(ctx context.Context, in *FinalizeOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1181  	NewOrderAndAuthzs(ctx context.Context, in *NewOrderAndAuthzsRequest, opts ...grpc.CallOption) (*proto.Order, error)
  1182  	NewRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*proto.Registration, error)
  1183  	RevokeCertificate(ctx context.Context, in *RevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1184  	SetOrderError(ctx context.Context, in *SetOrderErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1185  	SetOrderProcessing(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1186  	UpdateRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1187  	UpdateRevokedCertificate(ctx context.Context, in *RevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1188  	LeaseCRLShard(ctx context.Context, in *LeaseCRLShardRequest, opts ...grpc.CallOption) (*LeaseCRLShardResponse, error)
  1189  	UpdateCRLShard(ctx context.Context, in *UpdateCRLShardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
  1190  }
  1191  
  1192  type storageAuthorityClient struct {
  1193  	cc grpc.ClientConnInterface
  1194  }
  1195  
  1196  func NewStorageAuthorityClient(cc grpc.ClientConnInterface) StorageAuthorityClient {
  1197  	return &storageAuthorityClient{cc}
  1198  }
  1199  
  1200  func (c *storageAuthorityClient) CountCertificatesByNames(ctx context.Context, in *CountCertificatesByNamesRequest, opts ...grpc.CallOption) (*CountByNames, error) {
  1201  	out := new(CountByNames)
  1202  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountCertificatesByNames", in, out, opts...)
  1203  	if err != nil {
  1204  		return nil, err
  1205  	}
  1206  	return out, nil
  1207  }
  1208  
  1209  func (c *storageAuthorityClient) CountFQDNSets(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Count, error) {
  1210  	out := new(Count)
  1211  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountFQDNSets", in, out, opts...)
  1212  	if err != nil {
  1213  		return nil, err
  1214  	}
  1215  	return out, nil
  1216  }
  1217  
  1218  func (c *storageAuthorityClient) CountInvalidAuthorizations2(ctx context.Context, in *CountInvalidAuthorizationsRequest, opts ...grpc.CallOption) (*Count, error) {
  1219  	out := new(Count)
  1220  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountInvalidAuthorizations2", in, out, opts...)
  1221  	if err != nil {
  1222  		return nil, err
  1223  	}
  1224  	return out, nil
  1225  }
  1226  
  1227  func (c *storageAuthorityClient) CountOrders(ctx context.Context, in *CountOrdersRequest, opts ...grpc.CallOption) (*Count, error) {
  1228  	out := new(Count)
  1229  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountOrders", in, out, opts...)
  1230  	if err != nil {
  1231  		return nil, err
  1232  	}
  1233  	return out, nil
  1234  }
  1235  
  1236  func (c *storageAuthorityClient) CountPendingAuthorizations2(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*Count, error) {
  1237  	out := new(Count)
  1238  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountPendingAuthorizations2", in, out, opts...)
  1239  	if err != nil {
  1240  		return nil, err
  1241  	}
  1242  	return out, nil
  1243  }
  1244  
  1245  func (c *storageAuthorityClient) CountRegistrationsByIP(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error) {
  1246  	out := new(Count)
  1247  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountRegistrationsByIP", in, out, opts...)
  1248  	if err != nil {
  1249  		return nil, err
  1250  	}
  1251  	return out, nil
  1252  }
  1253  
  1254  func (c *storageAuthorityClient) CountRegistrationsByIPRange(ctx context.Context, in *CountRegistrationsByIPRequest, opts ...grpc.CallOption) (*Count, error) {
  1255  	out := new(Count)
  1256  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/CountRegistrationsByIPRange", in, out, opts...)
  1257  	if err != nil {
  1258  		return nil, err
  1259  	}
  1260  	return out, nil
  1261  }
  1262  
  1263  func (c *storageAuthorityClient) FQDNSetExists(ctx context.Context, in *FQDNSetExistsRequest, opts ...grpc.CallOption) (*Exists, error) {
  1264  	out := new(Exists)
  1265  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/FQDNSetExists", in, out, opts...)
  1266  	if err != nil {
  1267  		return nil, err
  1268  	}
  1269  	return out, nil
  1270  }
  1271  
  1272  func (c *storageAuthorityClient) FQDNSetTimestampsForWindow(ctx context.Context, in *CountFQDNSetsRequest, opts ...grpc.CallOption) (*Timestamps, error) {
  1273  	out := new(Timestamps)
  1274  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/FQDNSetTimestampsForWindow", in, out, opts...)
  1275  	if err != nil {
  1276  		return nil, err
  1277  	}
  1278  	return out, nil
  1279  }
  1280  
  1281  func (c *storageAuthorityClient) GetAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*proto.Authorization, error) {
  1282  	out := new(proto.Authorization)
  1283  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetAuthorization2", in, out, opts...)
  1284  	if err != nil {
  1285  		return nil, err
  1286  	}
  1287  	return out, nil
  1288  }
  1289  
  1290  func (c *storageAuthorityClient) GetAuthorizations2(ctx context.Context, in *GetAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
  1291  	out := new(Authorizations)
  1292  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetAuthorizations2", in, out, opts...)
  1293  	if err != nil {
  1294  		return nil, err
  1295  	}
  1296  	return out, nil
  1297  }
  1298  
  1299  func (c *storageAuthorityClient) GetCertificate(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.Certificate, error) {
  1300  	out := new(proto.Certificate)
  1301  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetCertificate", in, out, opts...)
  1302  	if err != nil {
  1303  		return nil, err
  1304  	}
  1305  	return out, nil
  1306  }
  1307  
  1308  func (c *storageAuthorityClient) GetCertificateStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*proto.CertificateStatus, error) {
  1309  	out := new(proto.CertificateStatus)
  1310  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetCertificateStatus", in, out, opts...)
  1311  	if err != nil {
  1312  		return nil, err
  1313  	}
  1314  	return out, nil
  1315  }
  1316  
  1317  func (c *storageAuthorityClient) GetMaxExpiration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*timestamppb.Timestamp, error) {
  1318  	out := new(timestamppb.Timestamp)
  1319  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetMaxExpiration", in, out, opts...)
  1320  	if err != nil {
  1321  		return nil, err
  1322  	}
  1323  	return out, nil
  1324  }
  1325  
  1326  func (c *storageAuthorityClient) GetOrder(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*proto.Order, error) {
  1327  	out := new(proto.Order)
  1328  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetOrder", in, out, opts...)
  1329  	if err != nil {
  1330  		return nil, err
  1331  	}
  1332  	return out, nil
  1333  }
  1334  
  1335  func (c *storageAuthorityClient) GetOrderForNames(ctx context.Context, in *GetOrderForNamesRequest, opts ...grpc.CallOption) (*proto.Order, error) {
  1336  	out := new(proto.Order)
  1337  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetOrderForNames", in, out, opts...)
  1338  	if err != nil {
  1339  		return nil, err
  1340  	}
  1341  	return out, nil
  1342  }
  1343  
  1344  func (c *storageAuthorityClient) GetPendingAuthorization2(ctx context.Context, in *GetPendingAuthorizationRequest, opts ...grpc.CallOption) (*proto.Authorization, error) {
  1345  	out := new(proto.Authorization)
  1346  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetPendingAuthorization2", in, out, opts...)
  1347  	if err != nil {
  1348  		return nil, err
  1349  	}
  1350  	return out, nil
  1351  }
  1352  
  1353  func (c *storageAuthorityClient) GetRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*proto.Registration, error) {
  1354  	out := new(proto.Registration)
  1355  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetRegistration", in, out, opts...)
  1356  	if err != nil {
  1357  		return nil, err
  1358  	}
  1359  	return out, nil
  1360  }
  1361  
  1362  func (c *storageAuthorityClient) GetRegistrationByKey(ctx context.Context, in *JSONWebKey, opts ...grpc.CallOption) (*proto.Registration, error) {
  1363  	out := new(proto.Registration)
  1364  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetRegistrationByKey", in, out, opts...)
  1365  	if err != nil {
  1366  		return nil, err
  1367  	}
  1368  	return out, nil
  1369  }
  1370  
  1371  func (c *storageAuthorityClient) GetRevocationStatus(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*RevocationStatus, error) {
  1372  	out := new(RevocationStatus)
  1373  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetRevocationStatus", in, out, opts...)
  1374  	if err != nil {
  1375  		return nil, err
  1376  	}
  1377  	return out, nil
  1378  }
  1379  
  1380  func (c *storageAuthorityClient) GetRevokedCerts(ctx context.Context, in *GetRevokedCertsRequest, opts ...grpc.CallOption) (StorageAuthority_GetRevokedCertsClient, error) {
  1381  	stream, err := c.cc.NewStream(ctx, &StorageAuthority_ServiceDesc.Streams[0], "/sa.StorageAuthority/GetRevokedCerts", opts...)
  1382  	if err != nil {
  1383  		return nil, err
  1384  	}
  1385  	x := &storageAuthorityGetRevokedCertsClient{stream}
  1386  	if err := x.ClientStream.SendMsg(in); err != nil {
  1387  		return nil, err
  1388  	}
  1389  	if err := x.ClientStream.CloseSend(); err != nil {
  1390  		return nil, err
  1391  	}
  1392  	return x, nil
  1393  }
  1394  
  1395  type StorageAuthority_GetRevokedCertsClient interface {
  1396  	Recv() (*proto.CRLEntry, error)
  1397  	grpc.ClientStream
  1398  }
  1399  
  1400  type storageAuthorityGetRevokedCertsClient struct {
  1401  	grpc.ClientStream
  1402  }
  1403  
  1404  func (x *storageAuthorityGetRevokedCertsClient) Recv() (*proto.CRLEntry, error) {
  1405  	m := new(proto.CRLEntry)
  1406  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1407  		return nil, err
  1408  	}
  1409  	return m, nil
  1410  }
  1411  
  1412  func (c *storageAuthorityClient) GetSerialMetadata(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*SerialMetadata, error) {
  1413  	out := new(SerialMetadata)
  1414  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetSerialMetadata", in, out, opts...)
  1415  	if err != nil {
  1416  		return nil, err
  1417  	}
  1418  	return out, nil
  1419  }
  1420  
  1421  func (c *storageAuthorityClient) GetValidAuthorizations2(ctx context.Context, in *GetValidAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
  1422  	out := new(Authorizations)
  1423  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetValidAuthorizations2", in, out, opts...)
  1424  	if err != nil {
  1425  		return nil, err
  1426  	}
  1427  	return out, nil
  1428  }
  1429  
  1430  func (c *storageAuthorityClient) GetValidOrderAuthorizations2(ctx context.Context, in *GetValidOrderAuthorizationsRequest, opts ...grpc.CallOption) (*Authorizations, error) {
  1431  	out := new(Authorizations)
  1432  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/GetValidOrderAuthorizations2", in, out, opts...)
  1433  	if err != nil {
  1434  		return nil, err
  1435  	}
  1436  	return out, nil
  1437  }
  1438  
  1439  func (c *storageAuthorityClient) IncidentsForSerial(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*Incidents, error) {
  1440  	out := new(Incidents)
  1441  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/IncidentsForSerial", in, out, opts...)
  1442  	if err != nil {
  1443  		return nil, err
  1444  	}
  1445  	return out, nil
  1446  }
  1447  
  1448  func (c *storageAuthorityClient) KeyBlocked(ctx context.Context, in *KeyBlockedRequest, opts ...grpc.CallOption) (*Exists, error) {
  1449  	out := new(Exists)
  1450  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/KeyBlocked", in, out, opts...)
  1451  	if err != nil {
  1452  		return nil, err
  1453  	}
  1454  	return out, nil
  1455  }
  1456  
  1457  func (c *storageAuthorityClient) PreviousCertificateExists(ctx context.Context, in *PreviousCertificateExistsRequest, opts ...grpc.CallOption) (*Exists, error) {
  1458  	out := new(Exists)
  1459  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/PreviousCertificateExists", in, out, opts...)
  1460  	if err != nil {
  1461  		return nil, err
  1462  	}
  1463  	return out, nil
  1464  }
  1465  
  1466  func (c *storageAuthorityClient) SerialsForIncident(ctx context.Context, in *SerialsForIncidentRequest, opts ...grpc.CallOption) (StorageAuthority_SerialsForIncidentClient, error) {
  1467  	stream, err := c.cc.NewStream(ctx, &StorageAuthority_ServiceDesc.Streams[1], "/sa.StorageAuthority/SerialsForIncident", opts...)
  1468  	if err != nil {
  1469  		return nil, err
  1470  	}
  1471  	x := &storageAuthoritySerialsForIncidentClient{stream}
  1472  	if err := x.ClientStream.SendMsg(in); err != nil {
  1473  		return nil, err
  1474  	}
  1475  	if err := x.ClientStream.CloseSend(); err != nil {
  1476  		return nil, err
  1477  	}
  1478  	return x, nil
  1479  }
  1480  
  1481  type StorageAuthority_SerialsForIncidentClient interface {
  1482  	Recv() (*IncidentSerial, error)
  1483  	grpc.ClientStream
  1484  }
  1485  
  1486  type storageAuthoritySerialsForIncidentClient struct {
  1487  	grpc.ClientStream
  1488  }
  1489  
  1490  func (x *storageAuthoritySerialsForIncidentClient) Recv() (*IncidentSerial, error) {
  1491  	m := new(IncidentSerial)
  1492  	if err := x.ClientStream.RecvMsg(m); err != nil {
  1493  		return nil, err
  1494  	}
  1495  	return m, nil
  1496  }
  1497  
  1498  func (c *storageAuthorityClient) AddBlockedKey(ctx context.Context, in *AddBlockedKeyRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1499  	out := new(emptypb.Empty)
  1500  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/AddBlockedKey", in, out, opts...)
  1501  	if err != nil {
  1502  		return nil, err
  1503  	}
  1504  	return out, nil
  1505  }
  1506  
  1507  func (c *storageAuthorityClient) AddCertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1508  	out := new(emptypb.Empty)
  1509  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/AddCertificate", in, out, opts...)
  1510  	if err != nil {
  1511  		return nil, err
  1512  	}
  1513  	return out, nil
  1514  }
  1515  
  1516  func (c *storageAuthorityClient) AddPrecertificate(ctx context.Context, in *AddCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1517  	out := new(emptypb.Empty)
  1518  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/AddPrecertificate", in, out, opts...)
  1519  	if err != nil {
  1520  		return nil, err
  1521  	}
  1522  	return out, nil
  1523  }
  1524  
  1525  func (c *storageAuthorityClient) SetCertificateStatusReady(ctx context.Context, in *Serial, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1526  	out := new(emptypb.Empty)
  1527  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/SetCertificateStatusReady", in, out, opts...)
  1528  	if err != nil {
  1529  		return nil, err
  1530  	}
  1531  	return out, nil
  1532  }
  1533  
  1534  func (c *storageAuthorityClient) AddSerial(ctx context.Context, in *AddSerialRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1535  	out := new(emptypb.Empty)
  1536  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/AddSerial", in, out, opts...)
  1537  	if err != nil {
  1538  		return nil, err
  1539  	}
  1540  	return out, nil
  1541  }
  1542  
  1543  func (c *storageAuthorityClient) DeactivateAuthorization2(ctx context.Context, in *AuthorizationID2, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1544  	out := new(emptypb.Empty)
  1545  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/DeactivateAuthorization2", in, out, opts...)
  1546  	if err != nil {
  1547  		return nil, err
  1548  	}
  1549  	return out, nil
  1550  }
  1551  
  1552  func (c *storageAuthorityClient) DeactivateRegistration(ctx context.Context, in *RegistrationID, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1553  	out := new(emptypb.Empty)
  1554  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/DeactivateRegistration", in, out, opts...)
  1555  	if err != nil {
  1556  		return nil, err
  1557  	}
  1558  	return out, nil
  1559  }
  1560  
  1561  func (c *storageAuthorityClient) FinalizeAuthorization2(ctx context.Context, in *FinalizeAuthorizationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1562  	out := new(emptypb.Empty)
  1563  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/FinalizeAuthorization2", in, out, opts...)
  1564  	if err != nil {
  1565  		return nil, err
  1566  	}
  1567  	return out, nil
  1568  }
  1569  
  1570  func (c *storageAuthorityClient) FinalizeOrder(ctx context.Context, in *FinalizeOrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1571  	out := new(emptypb.Empty)
  1572  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/FinalizeOrder", in, out, opts...)
  1573  	if err != nil {
  1574  		return nil, err
  1575  	}
  1576  	return out, nil
  1577  }
  1578  
  1579  func (c *storageAuthorityClient) NewOrderAndAuthzs(ctx context.Context, in *NewOrderAndAuthzsRequest, opts ...grpc.CallOption) (*proto.Order, error) {
  1580  	out := new(proto.Order)
  1581  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/NewOrderAndAuthzs", in, out, opts...)
  1582  	if err != nil {
  1583  		return nil, err
  1584  	}
  1585  	return out, nil
  1586  }
  1587  
  1588  func (c *storageAuthorityClient) NewRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*proto.Registration, error) {
  1589  	out := new(proto.Registration)
  1590  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/NewRegistration", in, out, opts...)
  1591  	if err != nil {
  1592  		return nil, err
  1593  	}
  1594  	return out, nil
  1595  }
  1596  
  1597  func (c *storageAuthorityClient) RevokeCertificate(ctx context.Context, in *RevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1598  	out := new(emptypb.Empty)
  1599  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/RevokeCertificate", in, out, opts...)
  1600  	if err != nil {
  1601  		return nil, err
  1602  	}
  1603  	return out, nil
  1604  }
  1605  
  1606  func (c *storageAuthorityClient) SetOrderError(ctx context.Context, in *SetOrderErrorRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1607  	out := new(emptypb.Empty)
  1608  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/SetOrderError", in, out, opts...)
  1609  	if err != nil {
  1610  		return nil, err
  1611  	}
  1612  	return out, nil
  1613  }
  1614  
  1615  func (c *storageAuthorityClient) SetOrderProcessing(ctx context.Context, in *OrderRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1616  	out := new(emptypb.Empty)
  1617  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/SetOrderProcessing", in, out, opts...)
  1618  	if err != nil {
  1619  		return nil, err
  1620  	}
  1621  	return out, nil
  1622  }
  1623  
  1624  func (c *storageAuthorityClient) UpdateRegistration(ctx context.Context, in *proto.Registration, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1625  	out := new(emptypb.Empty)
  1626  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/UpdateRegistration", in, out, opts...)
  1627  	if err != nil {
  1628  		return nil, err
  1629  	}
  1630  	return out, nil
  1631  }
  1632  
  1633  func (c *storageAuthorityClient) UpdateRevokedCertificate(ctx context.Context, in *RevokeCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1634  	out := new(emptypb.Empty)
  1635  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/UpdateRevokedCertificate", in, out, opts...)
  1636  	if err != nil {
  1637  		return nil, err
  1638  	}
  1639  	return out, nil
  1640  }
  1641  
  1642  func (c *storageAuthorityClient) LeaseCRLShard(ctx context.Context, in *LeaseCRLShardRequest, opts ...grpc.CallOption) (*LeaseCRLShardResponse, error) {
  1643  	out := new(LeaseCRLShardResponse)
  1644  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/LeaseCRLShard", in, out, opts...)
  1645  	if err != nil {
  1646  		return nil, err
  1647  	}
  1648  	return out, nil
  1649  }
  1650  
  1651  func (c *storageAuthorityClient) UpdateCRLShard(ctx context.Context, in *UpdateCRLShardRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
  1652  	out := new(emptypb.Empty)
  1653  	err := c.cc.Invoke(ctx, "/sa.StorageAuthority/UpdateCRLShard", in, out, opts...)
  1654  	if err != nil {
  1655  		return nil, err
  1656  	}
  1657  	return out, nil
  1658  }
  1659  
  1660  // StorageAuthorityServer is the server API for StorageAuthority service.
  1661  // All implementations must embed UnimplementedStorageAuthorityServer
  1662  // for forward compatibility
  1663  type StorageAuthorityServer interface {
  1664  	// Getters: this list must be identical to the StorageAuthorityReadOnly rpcs.
  1665  	CountCertificatesByNames(context.Context, *CountCertificatesByNamesRequest) (*CountByNames, error)
  1666  	CountFQDNSets(context.Context, *CountFQDNSetsRequest) (*Count, error)
  1667  	CountInvalidAuthorizations2(context.Context, *CountInvalidAuthorizationsRequest) (*Count, error)
  1668  	CountOrders(context.Context, *CountOrdersRequest) (*Count, error)
  1669  	CountPendingAuthorizations2(context.Context, *RegistrationID) (*Count, error)
  1670  	CountRegistrationsByIP(context.Context, *CountRegistrationsByIPRequest) (*Count, error)
  1671  	CountRegistrationsByIPRange(context.Context, *CountRegistrationsByIPRequest) (*Count, error)
  1672  	FQDNSetExists(context.Context, *FQDNSetExistsRequest) (*Exists, error)
  1673  	FQDNSetTimestampsForWindow(context.Context, *CountFQDNSetsRequest) (*Timestamps, error)
  1674  	GetAuthorization2(context.Context, *AuthorizationID2) (*proto.Authorization, error)
  1675  	GetAuthorizations2(context.Context, *GetAuthorizationsRequest) (*Authorizations, error)
  1676  	GetCertificate(context.Context, *Serial) (*proto.Certificate, error)
  1677  	GetCertificateStatus(context.Context, *Serial) (*proto.CertificateStatus, error)
  1678  	GetMaxExpiration(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error)
  1679  	GetOrder(context.Context, *OrderRequest) (*proto.Order, error)
  1680  	GetOrderForNames(context.Context, *GetOrderForNamesRequest) (*proto.Order, error)
  1681  	GetPendingAuthorization2(context.Context, *GetPendingAuthorizationRequest) (*proto.Authorization, error)
  1682  	GetRegistration(context.Context, *RegistrationID) (*proto.Registration, error)
  1683  	GetRegistrationByKey(context.Context, *JSONWebKey) (*proto.Registration, error)
  1684  	GetRevocationStatus(context.Context, *Serial) (*RevocationStatus, error)
  1685  	GetRevokedCerts(*GetRevokedCertsRequest, StorageAuthority_GetRevokedCertsServer) error
  1686  	GetSerialMetadata(context.Context, *Serial) (*SerialMetadata, error)
  1687  	GetValidAuthorizations2(context.Context, *GetValidAuthorizationsRequest) (*Authorizations, error)
  1688  	GetValidOrderAuthorizations2(context.Context, *GetValidOrderAuthorizationsRequest) (*Authorizations, error)
  1689  	IncidentsForSerial(context.Context, *Serial) (*Incidents, error)
  1690  	KeyBlocked(context.Context, *KeyBlockedRequest) (*Exists, error)
  1691  	PreviousCertificateExists(context.Context, *PreviousCertificateExistsRequest) (*Exists, error)
  1692  	SerialsForIncident(*SerialsForIncidentRequest, StorageAuthority_SerialsForIncidentServer) error
  1693  	// Adders
  1694  	AddBlockedKey(context.Context, *AddBlockedKeyRequest) (*emptypb.Empty, error)
  1695  	AddCertificate(context.Context, *AddCertificateRequest) (*emptypb.Empty, error)
  1696  	AddPrecertificate(context.Context, *AddCertificateRequest) (*emptypb.Empty, error)
  1697  	SetCertificateStatusReady(context.Context, *Serial) (*emptypb.Empty, error)
  1698  	AddSerial(context.Context, *AddSerialRequest) (*emptypb.Empty, error)
  1699  	DeactivateAuthorization2(context.Context, *AuthorizationID2) (*emptypb.Empty, error)
  1700  	DeactivateRegistration(context.Context, *RegistrationID) (*emptypb.Empty, error)
  1701  	FinalizeAuthorization2(context.Context, *FinalizeAuthorizationRequest) (*emptypb.Empty, error)
  1702  	FinalizeOrder(context.Context, *FinalizeOrderRequest) (*emptypb.Empty, error)
  1703  	NewOrderAndAuthzs(context.Context, *NewOrderAndAuthzsRequest) (*proto.Order, error)
  1704  	NewRegistration(context.Context, *proto.Registration) (*proto.Registration, error)
  1705  	RevokeCertificate(context.Context, *RevokeCertificateRequest) (*emptypb.Empty, error)
  1706  	SetOrderError(context.Context, *SetOrderErrorRequest) (*emptypb.Empty, error)
  1707  	SetOrderProcessing(context.Context, *OrderRequest) (*emptypb.Empty, error)
  1708  	UpdateRegistration(context.Context, *proto.Registration) (*emptypb.Empty, error)
  1709  	UpdateRevokedCertificate(context.Context, *RevokeCertificateRequest) (*emptypb.Empty, error)
  1710  	LeaseCRLShard(context.Context, *LeaseCRLShardRequest) (*LeaseCRLShardResponse, error)
  1711  	UpdateCRLShard(context.Context, *UpdateCRLShardRequest) (*emptypb.Empty, error)
  1712  	mustEmbedUnimplementedStorageAuthorityServer()
  1713  }
  1714  
  1715  // UnimplementedStorageAuthorityServer must be embedded to have forward compatible implementations.
  1716  type UnimplementedStorageAuthorityServer struct {
  1717  }
  1718  
  1719  func (UnimplementedStorageAuthorityServer) CountCertificatesByNames(context.Context, *CountCertificatesByNamesRequest) (*CountByNames, error) {
  1720  	return nil, status.Errorf(codes.Unimplemented, "method CountCertificatesByNames not implemented")
  1721  }
  1722  func (UnimplementedStorageAuthorityServer) CountFQDNSets(context.Context, *CountFQDNSetsRequest) (*Count, error) {
  1723  	return nil, status.Errorf(codes.Unimplemented, "method CountFQDNSets not implemented")
  1724  }
  1725  func (UnimplementedStorageAuthorityServer) CountInvalidAuthorizations2(context.Context, *CountInvalidAuthorizationsRequest) (*Count, error) {
  1726  	return nil, status.Errorf(codes.Unimplemented, "method CountInvalidAuthorizations2 not implemented")
  1727  }
  1728  func (UnimplementedStorageAuthorityServer) CountOrders(context.Context, *CountOrdersRequest) (*Count, error) {
  1729  	return nil, status.Errorf(codes.Unimplemented, "method CountOrders not implemented")
  1730  }
  1731  func (UnimplementedStorageAuthorityServer) CountPendingAuthorizations2(context.Context, *RegistrationID) (*Count, error) {
  1732  	return nil, status.Errorf(codes.Unimplemented, "method CountPendingAuthorizations2 not implemented")
  1733  }
  1734  func (UnimplementedStorageAuthorityServer) CountRegistrationsByIP(context.Context, *CountRegistrationsByIPRequest) (*Count, error) {
  1735  	return nil, status.Errorf(codes.Unimplemented, "method CountRegistrationsByIP not implemented")
  1736  }
  1737  func (UnimplementedStorageAuthorityServer) CountRegistrationsByIPRange(context.Context, *CountRegistrationsByIPRequest) (*Count, error) {
  1738  	return nil, status.Errorf(codes.Unimplemented, "method CountRegistrationsByIPRange not implemented")
  1739  }
  1740  func (UnimplementedStorageAuthorityServer) FQDNSetExists(context.Context, *FQDNSetExistsRequest) (*Exists, error) {
  1741  	return nil, status.Errorf(codes.Unimplemented, "method FQDNSetExists not implemented")
  1742  }
  1743  func (UnimplementedStorageAuthorityServer) FQDNSetTimestampsForWindow(context.Context, *CountFQDNSetsRequest) (*Timestamps, error) {
  1744  	return nil, status.Errorf(codes.Unimplemented, "method FQDNSetTimestampsForWindow not implemented")
  1745  }
  1746  func (UnimplementedStorageAuthorityServer) GetAuthorization2(context.Context, *AuthorizationID2) (*proto.Authorization, error) {
  1747  	return nil, status.Errorf(codes.Unimplemented, "method GetAuthorization2 not implemented")
  1748  }
  1749  func (UnimplementedStorageAuthorityServer) GetAuthorizations2(context.Context, *GetAuthorizationsRequest) (*Authorizations, error) {
  1750  	return nil, status.Errorf(codes.Unimplemented, "method GetAuthorizations2 not implemented")
  1751  }
  1752  func (UnimplementedStorageAuthorityServer) GetCertificate(context.Context, *Serial) (*proto.Certificate, error) {
  1753  	return nil, status.Errorf(codes.Unimplemented, "method GetCertificate not implemented")
  1754  }
  1755  func (UnimplementedStorageAuthorityServer) GetCertificateStatus(context.Context, *Serial) (*proto.CertificateStatus, error) {
  1756  	return nil, status.Errorf(codes.Unimplemented, "method GetCertificateStatus not implemented")
  1757  }
  1758  func (UnimplementedStorageAuthorityServer) GetMaxExpiration(context.Context, *emptypb.Empty) (*timestamppb.Timestamp, error) {
  1759  	return nil, status.Errorf(codes.Unimplemented, "method GetMaxExpiration not implemented")
  1760  }
  1761  func (UnimplementedStorageAuthorityServer) GetOrder(context.Context, *OrderRequest) (*proto.Order, error) {
  1762  	return nil, status.Errorf(codes.Unimplemented, "method GetOrder not implemented")
  1763  }
  1764  func (UnimplementedStorageAuthorityServer) GetOrderForNames(context.Context, *GetOrderForNamesRequest) (*proto.Order, error) {
  1765  	return nil, status.Errorf(codes.Unimplemented, "method GetOrderForNames not implemented")
  1766  }
  1767  func (UnimplementedStorageAuthorityServer) GetPendingAuthorization2(context.Context, *GetPendingAuthorizationRequest) (*proto.Authorization, error) {
  1768  	return nil, status.Errorf(codes.Unimplemented, "method GetPendingAuthorization2 not implemented")
  1769  }
  1770  func (UnimplementedStorageAuthorityServer) GetRegistration(context.Context, *RegistrationID) (*proto.Registration, error) {
  1771  	return nil, status.Errorf(codes.Unimplemented, "method GetRegistration not implemented")
  1772  }
  1773  func (UnimplementedStorageAuthorityServer) GetRegistrationByKey(context.Context, *JSONWebKey) (*proto.Registration, error) {
  1774  	return nil, status.Errorf(codes.Unimplemented, "method GetRegistrationByKey not implemented")
  1775  }
  1776  func (UnimplementedStorageAuthorityServer) GetRevocationStatus(context.Context, *Serial) (*RevocationStatus, error) {
  1777  	return nil, status.Errorf(codes.Unimplemented, "method GetRevocationStatus not implemented")
  1778  }
  1779  func (UnimplementedStorageAuthorityServer) GetRevokedCerts(*GetRevokedCertsRequest, StorageAuthority_GetRevokedCertsServer) error {
  1780  	return status.Errorf(codes.Unimplemented, "method GetRevokedCerts not implemented")
  1781  }
  1782  func (UnimplementedStorageAuthorityServer) GetSerialMetadata(context.Context, *Serial) (*SerialMetadata, error) {
  1783  	return nil, status.Errorf(codes.Unimplemented, "method GetSerialMetadata not implemented")
  1784  }
  1785  func (UnimplementedStorageAuthorityServer) GetValidAuthorizations2(context.Context, *GetValidAuthorizationsRequest) (*Authorizations, error) {
  1786  	return nil, status.Errorf(codes.Unimplemented, "method GetValidAuthorizations2 not implemented")
  1787  }
  1788  func (UnimplementedStorageAuthorityServer) GetValidOrderAuthorizations2(context.Context, *GetValidOrderAuthorizationsRequest) (*Authorizations, error) {
  1789  	return nil, status.Errorf(codes.Unimplemented, "method GetValidOrderAuthorizations2 not implemented")
  1790  }
  1791  func (UnimplementedStorageAuthorityServer) IncidentsForSerial(context.Context, *Serial) (*Incidents, error) {
  1792  	return nil, status.Errorf(codes.Unimplemented, "method IncidentsForSerial not implemented")
  1793  }
  1794  func (UnimplementedStorageAuthorityServer) KeyBlocked(context.Context, *KeyBlockedRequest) (*Exists, error) {
  1795  	return nil, status.Errorf(codes.Unimplemented, "method KeyBlocked not implemented")
  1796  }
  1797  func (UnimplementedStorageAuthorityServer) PreviousCertificateExists(context.Context, *PreviousCertificateExistsRequest) (*Exists, error) {
  1798  	return nil, status.Errorf(codes.Unimplemented, "method PreviousCertificateExists not implemented")
  1799  }
  1800  func (UnimplementedStorageAuthorityServer) SerialsForIncident(*SerialsForIncidentRequest, StorageAuthority_SerialsForIncidentServer) error {
  1801  	return status.Errorf(codes.Unimplemented, "method SerialsForIncident not implemented")
  1802  }
  1803  func (UnimplementedStorageAuthorityServer) AddBlockedKey(context.Context, *AddBlockedKeyRequest) (*emptypb.Empty, error) {
  1804  	return nil, status.Errorf(codes.Unimplemented, "method AddBlockedKey not implemented")
  1805  }
  1806  func (UnimplementedStorageAuthorityServer) AddCertificate(context.Context, *AddCertificateRequest) (*emptypb.Empty, error) {
  1807  	return nil, status.Errorf(codes.Unimplemented, "method AddCertificate not implemented")
  1808  }
  1809  func (UnimplementedStorageAuthorityServer) AddPrecertificate(context.Context, *AddCertificateRequest) (*emptypb.Empty, error) {
  1810  	return nil, status.Errorf(codes.Unimplemented, "method AddPrecertificate not implemented")
  1811  }
  1812  func (UnimplementedStorageAuthorityServer) SetCertificateStatusReady(context.Context, *Serial) (*emptypb.Empty, error) {
  1813  	return nil, status.Errorf(codes.Unimplemented, "method SetCertificateStatusReady not implemented")
  1814  }
  1815  func (UnimplementedStorageAuthorityServer) AddSerial(context.Context, *AddSerialRequest) (*emptypb.Empty, error) {
  1816  	return nil, status.Errorf(codes.Unimplemented, "method AddSerial not implemented")
  1817  }
  1818  func (UnimplementedStorageAuthorityServer) DeactivateAuthorization2(context.Context, *AuthorizationID2) (*emptypb.Empty, error) {
  1819  	return nil, status.Errorf(codes.Unimplemented, "method DeactivateAuthorization2 not implemented")
  1820  }
  1821  func (UnimplementedStorageAuthorityServer) DeactivateRegistration(context.Context, *RegistrationID) (*emptypb.Empty, error) {
  1822  	return nil, status.Errorf(codes.Unimplemented, "method DeactivateRegistration not implemented")
  1823  }
  1824  func (UnimplementedStorageAuthorityServer) FinalizeAuthorization2(context.Context, *FinalizeAuthorizationRequest) (*emptypb.Empty, error) {
  1825  	return nil, status.Errorf(codes.Unimplemented, "method FinalizeAuthorization2 not implemented")
  1826  }
  1827  func (UnimplementedStorageAuthorityServer) FinalizeOrder(context.Context, *FinalizeOrderRequest) (*emptypb.Empty, error) {
  1828  	return nil, status.Errorf(codes.Unimplemented, "method FinalizeOrder not implemented")
  1829  }
  1830  func (UnimplementedStorageAuthorityServer) NewOrderAndAuthzs(context.Context, *NewOrderAndAuthzsRequest) (*proto.Order, error) {
  1831  	return nil, status.Errorf(codes.Unimplemented, "method NewOrderAndAuthzs not implemented")
  1832  }
  1833  func (UnimplementedStorageAuthorityServer) NewRegistration(context.Context, *proto.Registration) (*proto.Registration, error) {
  1834  	return nil, status.Errorf(codes.Unimplemented, "method NewRegistration not implemented")
  1835  }
  1836  func (UnimplementedStorageAuthorityServer) RevokeCertificate(context.Context, *RevokeCertificateRequest) (*emptypb.Empty, error) {
  1837  	return nil, status.Errorf(codes.Unimplemented, "method RevokeCertificate not implemented")
  1838  }
  1839  func (UnimplementedStorageAuthorityServer) SetOrderError(context.Context, *SetOrderErrorRequest) (*emptypb.Empty, error) {
  1840  	return nil, status.Errorf(codes.Unimplemented, "method SetOrderError not implemented")
  1841  }
  1842  func (UnimplementedStorageAuthorityServer) SetOrderProcessing(context.Context, *OrderRequest) (*emptypb.Empty, error) {
  1843  	return nil, status.Errorf(codes.Unimplemented, "method SetOrderProcessing not implemented")
  1844  }
  1845  func (UnimplementedStorageAuthorityServer) UpdateRegistration(context.Context, *proto.Registration) (*emptypb.Empty, error) {
  1846  	return nil, status.Errorf(codes.Unimplemented, "method UpdateRegistration not implemented")
  1847  }
  1848  func (UnimplementedStorageAuthorityServer) UpdateRevokedCertificate(context.Context, *RevokeCertificateRequest) (*emptypb.Empty, error) {
  1849  	return nil, status.Errorf(codes.Unimplemented, "method UpdateRevokedCertificate not implemented")
  1850  }
  1851  func (UnimplementedStorageAuthorityServer) LeaseCRLShard(context.Context, *LeaseCRLShardRequest) (*LeaseCRLShardResponse, error) {
  1852  	return nil, status.Errorf(codes.Unimplemented, "method LeaseCRLShard not implemented")
  1853  }
  1854  func (UnimplementedStorageAuthorityServer) UpdateCRLShard(context.Context, *UpdateCRLShardRequest) (*emptypb.Empty, error) {
  1855  	return nil, status.Errorf(codes.Unimplemented, "method UpdateCRLShard not implemented")
  1856  }
  1857  func (UnimplementedStorageAuthorityServer) mustEmbedUnimplementedStorageAuthorityServer() {}
  1858  
  1859  // UnsafeStorageAuthorityServer may be embedded to opt out of forward compatibility for this service.
  1860  // Use of this interface is not recommended, as added methods to StorageAuthorityServer will
  1861  // result in compilation errors.
  1862  type UnsafeStorageAuthorityServer interface {
  1863  	mustEmbedUnimplementedStorageAuthorityServer()
  1864  }
  1865  
  1866  func RegisterStorageAuthorityServer(s grpc.ServiceRegistrar, srv StorageAuthorityServer) {
  1867  	s.RegisterService(&StorageAuthority_ServiceDesc, srv)
  1868  }
  1869  
  1870  func _StorageAuthority_CountCertificatesByNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1871  	in := new(CountCertificatesByNamesRequest)
  1872  	if err := dec(in); err != nil {
  1873  		return nil, err
  1874  	}
  1875  	if interceptor == nil {
  1876  		return srv.(StorageAuthorityServer).CountCertificatesByNames(ctx, in)
  1877  	}
  1878  	info := &grpc.UnaryServerInfo{
  1879  		Server:     srv,
  1880  		FullMethod: "/sa.StorageAuthority/CountCertificatesByNames",
  1881  	}
  1882  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1883  		return srv.(StorageAuthorityServer).CountCertificatesByNames(ctx, req.(*CountCertificatesByNamesRequest))
  1884  	}
  1885  	return interceptor(ctx, in, info, handler)
  1886  }
  1887  
  1888  func _StorageAuthority_CountFQDNSets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1889  	in := new(CountFQDNSetsRequest)
  1890  	if err := dec(in); err != nil {
  1891  		return nil, err
  1892  	}
  1893  	if interceptor == nil {
  1894  		return srv.(StorageAuthorityServer).CountFQDNSets(ctx, in)
  1895  	}
  1896  	info := &grpc.UnaryServerInfo{
  1897  		Server:     srv,
  1898  		FullMethod: "/sa.StorageAuthority/CountFQDNSets",
  1899  	}
  1900  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1901  		return srv.(StorageAuthorityServer).CountFQDNSets(ctx, req.(*CountFQDNSetsRequest))
  1902  	}
  1903  	return interceptor(ctx, in, info, handler)
  1904  }
  1905  
  1906  func _StorageAuthority_CountInvalidAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1907  	in := new(CountInvalidAuthorizationsRequest)
  1908  	if err := dec(in); err != nil {
  1909  		return nil, err
  1910  	}
  1911  	if interceptor == nil {
  1912  		return srv.(StorageAuthorityServer).CountInvalidAuthorizations2(ctx, in)
  1913  	}
  1914  	info := &grpc.UnaryServerInfo{
  1915  		Server:     srv,
  1916  		FullMethod: "/sa.StorageAuthority/CountInvalidAuthorizations2",
  1917  	}
  1918  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1919  		return srv.(StorageAuthorityServer).CountInvalidAuthorizations2(ctx, req.(*CountInvalidAuthorizationsRequest))
  1920  	}
  1921  	return interceptor(ctx, in, info, handler)
  1922  }
  1923  
  1924  func _StorageAuthority_CountOrders_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1925  	in := new(CountOrdersRequest)
  1926  	if err := dec(in); err != nil {
  1927  		return nil, err
  1928  	}
  1929  	if interceptor == nil {
  1930  		return srv.(StorageAuthorityServer).CountOrders(ctx, in)
  1931  	}
  1932  	info := &grpc.UnaryServerInfo{
  1933  		Server:     srv,
  1934  		FullMethod: "/sa.StorageAuthority/CountOrders",
  1935  	}
  1936  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1937  		return srv.(StorageAuthorityServer).CountOrders(ctx, req.(*CountOrdersRequest))
  1938  	}
  1939  	return interceptor(ctx, in, info, handler)
  1940  }
  1941  
  1942  func _StorageAuthority_CountPendingAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1943  	in := new(RegistrationID)
  1944  	if err := dec(in); err != nil {
  1945  		return nil, err
  1946  	}
  1947  	if interceptor == nil {
  1948  		return srv.(StorageAuthorityServer).CountPendingAuthorizations2(ctx, in)
  1949  	}
  1950  	info := &grpc.UnaryServerInfo{
  1951  		Server:     srv,
  1952  		FullMethod: "/sa.StorageAuthority/CountPendingAuthorizations2",
  1953  	}
  1954  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1955  		return srv.(StorageAuthorityServer).CountPendingAuthorizations2(ctx, req.(*RegistrationID))
  1956  	}
  1957  	return interceptor(ctx, in, info, handler)
  1958  }
  1959  
  1960  func _StorageAuthority_CountRegistrationsByIP_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1961  	in := new(CountRegistrationsByIPRequest)
  1962  	if err := dec(in); err != nil {
  1963  		return nil, err
  1964  	}
  1965  	if interceptor == nil {
  1966  		return srv.(StorageAuthorityServer).CountRegistrationsByIP(ctx, in)
  1967  	}
  1968  	info := &grpc.UnaryServerInfo{
  1969  		Server:     srv,
  1970  		FullMethod: "/sa.StorageAuthority/CountRegistrationsByIP",
  1971  	}
  1972  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1973  		return srv.(StorageAuthorityServer).CountRegistrationsByIP(ctx, req.(*CountRegistrationsByIPRequest))
  1974  	}
  1975  	return interceptor(ctx, in, info, handler)
  1976  }
  1977  
  1978  func _StorageAuthority_CountRegistrationsByIPRange_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1979  	in := new(CountRegistrationsByIPRequest)
  1980  	if err := dec(in); err != nil {
  1981  		return nil, err
  1982  	}
  1983  	if interceptor == nil {
  1984  		return srv.(StorageAuthorityServer).CountRegistrationsByIPRange(ctx, in)
  1985  	}
  1986  	info := &grpc.UnaryServerInfo{
  1987  		Server:     srv,
  1988  		FullMethod: "/sa.StorageAuthority/CountRegistrationsByIPRange",
  1989  	}
  1990  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  1991  		return srv.(StorageAuthorityServer).CountRegistrationsByIPRange(ctx, req.(*CountRegistrationsByIPRequest))
  1992  	}
  1993  	return interceptor(ctx, in, info, handler)
  1994  }
  1995  
  1996  func _StorageAuthority_FQDNSetExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  1997  	in := new(FQDNSetExistsRequest)
  1998  	if err := dec(in); err != nil {
  1999  		return nil, err
  2000  	}
  2001  	if interceptor == nil {
  2002  		return srv.(StorageAuthorityServer).FQDNSetExists(ctx, in)
  2003  	}
  2004  	info := &grpc.UnaryServerInfo{
  2005  		Server:     srv,
  2006  		FullMethod: "/sa.StorageAuthority/FQDNSetExists",
  2007  	}
  2008  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2009  		return srv.(StorageAuthorityServer).FQDNSetExists(ctx, req.(*FQDNSetExistsRequest))
  2010  	}
  2011  	return interceptor(ctx, in, info, handler)
  2012  }
  2013  
  2014  func _StorageAuthority_FQDNSetTimestampsForWindow_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2015  	in := new(CountFQDNSetsRequest)
  2016  	if err := dec(in); err != nil {
  2017  		return nil, err
  2018  	}
  2019  	if interceptor == nil {
  2020  		return srv.(StorageAuthorityServer).FQDNSetTimestampsForWindow(ctx, in)
  2021  	}
  2022  	info := &grpc.UnaryServerInfo{
  2023  		Server:     srv,
  2024  		FullMethod: "/sa.StorageAuthority/FQDNSetTimestampsForWindow",
  2025  	}
  2026  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2027  		return srv.(StorageAuthorityServer).FQDNSetTimestampsForWindow(ctx, req.(*CountFQDNSetsRequest))
  2028  	}
  2029  	return interceptor(ctx, in, info, handler)
  2030  }
  2031  
  2032  func _StorageAuthority_GetAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2033  	in := new(AuthorizationID2)
  2034  	if err := dec(in); err != nil {
  2035  		return nil, err
  2036  	}
  2037  	if interceptor == nil {
  2038  		return srv.(StorageAuthorityServer).GetAuthorization2(ctx, in)
  2039  	}
  2040  	info := &grpc.UnaryServerInfo{
  2041  		Server:     srv,
  2042  		FullMethod: "/sa.StorageAuthority/GetAuthorization2",
  2043  	}
  2044  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2045  		return srv.(StorageAuthorityServer).GetAuthorization2(ctx, req.(*AuthorizationID2))
  2046  	}
  2047  	return interceptor(ctx, in, info, handler)
  2048  }
  2049  
  2050  func _StorageAuthority_GetAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2051  	in := new(GetAuthorizationsRequest)
  2052  	if err := dec(in); err != nil {
  2053  		return nil, err
  2054  	}
  2055  	if interceptor == nil {
  2056  		return srv.(StorageAuthorityServer).GetAuthorizations2(ctx, in)
  2057  	}
  2058  	info := &grpc.UnaryServerInfo{
  2059  		Server:     srv,
  2060  		FullMethod: "/sa.StorageAuthority/GetAuthorizations2",
  2061  	}
  2062  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2063  		return srv.(StorageAuthorityServer).GetAuthorizations2(ctx, req.(*GetAuthorizationsRequest))
  2064  	}
  2065  	return interceptor(ctx, in, info, handler)
  2066  }
  2067  
  2068  func _StorageAuthority_GetCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2069  	in := new(Serial)
  2070  	if err := dec(in); err != nil {
  2071  		return nil, err
  2072  	}
  2073  	if interceptor == nil {
  2074  		return srv.(StorageAuthorityServer).GetCertificate(ctx, in)
  2075  	}
  2076  	info := &grpc.UnaryServerInfo{
  2077  		Server:     srv,
  2078  		FullMethod: "/sa.StorageAuthority/GetCertificate",
  2079  	}
  2080  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2081  		return srv.(StorageAuthorityServer).GetCertificate(ctx, req.(*Serial))
  2082  	}
  2083  	return interceptor(ctx, in, info, handler)
  2084  }
  2085  
  2086  func _StorageAuthority_GetCertificateStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2087  	in := new(Serial)
  2088  	if err := dec(in); err != nil {
  2089  		return nil, err
  2090  	}
  2091  	if interceptor == nil {
  2092  		return srv.(StorageAuthorityServer).GetCertificateStatus(ctx, in)
  2093  	}
  2094  	info := &grpc.UnaryServerInfo{
  2095  		Server:     srv,
  2096  		FullMethod: "/sa.StorageAuthority/GetCertificateStatus",
  2097  	}
  2098  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2099  		return srv.(StorageAuthorityServer).GetCertificateStatus(ctx, req.(*Serial))
  2100  	}
  2101  	return interceptor(ctx, in, info, handler)
  2102  }
  2103  
  2104  func _StorageAuthority_GetMaxExpiration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2105  	in := new(emptypb.Empty)
  2106  	if err := dec(in); err != nil {
  2107  		return nil, err
  2108  	}
  2109  	if interceptor == nil {
  2110  		return srv.(StorageAuthorityServer).GetMaxExpiration(ctx, in)
  2111  	}
  2112  	info := &grpc.UnaryServerInfo{
  2113  		Server:     srv,
  2114  		FullMethod: "/sa.StorageAuthority/GetMaxExpiration",
  2115  	}
  2116  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2117  		return srv.(StorageAuthorityServer).GetMaxExpiration(ctx, req.(*emptypb.Empty))
  2118  	}
  2119  	return interceptor(ctx, in, info, handler)
  2120  }
  2121  
  2122  func _StorageAuthority_GetOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2123  	in := new(OrderRequest)
  2124  	if err := dec(in); err != nil {
  2125  		return nil, err
  2126  	}
  2127  	if interceptor == nil {
  2128  		return srv.(StorageAuthorityServer).GetOrder(ctx, in)
  2129  	}
  2130  	info := &grpc.UnaryServerInfo{
  2131  		Server:     srv,
  2132  		FullMethod: "/sa.StorageAuthority/GetOrder",
  2133  	}
  2134  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2135  		return srv.(StorageAuthorityServer).GetOrder(ctx, req.(*OrderRequest))
  2136  	}
  2137  	return interceptor(ctx, in, info, handler)
  2138  }
  2139  
  2140  func _StorageAuthority_GetOrderForNames_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2141  	in := new(GetOrderForNamesRequest)
  2142  	if err := dec(in); err != nil {
  2143  		return nil, err
  2144  	}
  2145  	if interceptor == nil {
  2146  		return srv.(StorageAuthorityServer).GetOrderForNames(ctx, in)
  2147  	}
  2148  	info := &grpc.UnaryServerInfo{
  2149  		Server:     srv,
  2150  		FullMethod: "/sa.StorageAuthority/GetOrderForNames",
  2151  	}
  2152  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2153  		return srv.(StorageAuthorityServer).GetOrderForNames(ctx, req.(*GetOrderForNamesRequest))
  2154  	}
  2155  	return interceptor(ctx, in, info, handler)
  2156  }
  2157  
  2158  func _StorageAuthority_GetPendingAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2159  	in := new(GetPendingAuthorizationRequest)
  2160  	if err := dec(in); err != nil {
  2161  		return nil, err
  2162  	}
  2163  	if interceptor == nil {
  2164  		return srv.(StorageAuthorityServer).GetPendingAuthorization2(ctx, in)
  2165  	}
  2166  	info := &grpc.UnaryServerInfo{
  2167  		Server:     srv,
  2168  		FullMethod: "/sa.StorageAuthority/GetPendingAuthorization2",
  2169  	}
  2170  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2171  		return srv.(StorageAuthorityServer).GetPendingAuthorization2(ctx, req.(*GetPendingAuthorizationRequest))
  2172  	}
  2173  	return interceptor(ctx, in, info, handler)
  2174  }
  2175  
  2176  func _StorageAuthority_GetRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2177  	in := new(RegistrationID)
  2178  	if err := dec(in); err != nil {
  2179  		return nil, err
  2180  	}
  2181  	if interceptor == nil {
  2182  		return srv.(StorageAuthorityServer).GetRegistration(ctx, in)
  2183  	}
  2184  	info := &grpc.UnaryServerInfo{
  2185  		Server:     srv,
  2186  		FullMethod: "/sa.StorageAuthority/GetRegistration",
  2187  	}
  2188  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2189  		return srv.(StorageAuthorityServer).GetRegistration(ctx, req.(*RegistrationID))
  2190  	}
  2191  	return interceptor(ctx, in, info, handler)
  2192  }
  2193  
  2194  func _StorageAuthority_GetRegistrationByKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2195  	in := new(JSONWebKey)
  2196  	if err := dec(in); err != nil {
  2197  		return nil, err
  2198  	}
  2199  	if interceptor == nil {
  2200  		return srv.(StorageAuthorityServer).GetRegistrationByKey(ctx, in)
  2201  	}
  2202  	info := &grpc.UnaryServerInfo{
  2203  		Server:     srv,
  2204  		FullMethod: "/sa.StorageAuthority/GetRegistrationByKey",
  2205  	}
  2206  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2207  		return srv.(StorageAuthorityServer).GetRegistrationByKey(ctx, req.(*JSONWebKey))
  2208  	}
  2209  	return interceptor(ctx, in, info, handler)
  2210  }
  2211  
  2212  func _StorageAuthority_GetRevocationStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2213  	in := new(Serial)
  2214  	if err := dec(in); err != nil {
  2215  		return nil, err
  2216  	}
  2217  	if interceptor == nil {
  2218  		return srv.(StorageAuthorityServer).GetRevocationStatus(ctx, in)
  2219  	}
  2220  	info := &grpc.UnaryServerInfo{
  2221  		Server:     srv,
  2222  		FullMethod: "/sa.StorageAuthority/GetRevocationStatus",
  2223  	}
  2224  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2225  		return srv.(StorageAuthorityServer).GetRevocationStatus(ctx, req.(*Serial))
  2226  	}
  2227  	return interceptor(ctx, in, info, handler)
  2228  }
  2229  
  2230  func _StorageAuthority_GetRevokedCerts_Handler(srv interface{}, stream grpc.ServerStream) error {
  2231  	m := new(GetRevokedCertsRequest)
  2232  	if err := stream.RecvMsg(m); err != nil {
  2233  		return err
  2234  	}
  2235  	return srv.(StorageAuthorityServer).GetRevokedCerts(m, &storageAuthorityGetRevokedCertsServer{stream})
  2236  }
  2237  
  2238  type StorageAuthority_GetRevokedCertsServer interface {
  2239  	Send(*proto.CRLEntry) error
  2240  	grpc.ServerStream
  2241  }
  2242  
  2243  type storageAuthorityGetRevokedCertsServer struct {
  2244  	grpc.ServerStream
  2245  }
  2246  
  2247  func (x *storageAuthorityGetRevokedCertsServer) Send(m *proto.CRLEntry) error {
  2248  	return x.ServerStream.SendMsg(m)
  2249  }
  2250  
  2251  func _StorageAuthority_GetSerialMetadata_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2252  	in := new(Serial)
  2253  	if err := dec(in); err != nil {
  2254  		return nil, err
  2255  	}
  2256  	if interceptor == nil {
  2257  		return srv.(StorageAuthorityServer).GetSerialMetadata(ctx, in)
  2258  	}
  2259  	info := &grpc.UnaryServerInfo{
  2260  		Server:     srv,
  2261  		FullMethod: "/sa.StorageAuthority/GetSerialMetadata",
  2262  	}
  2263  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2264  		return srv.(StorageAuthorityServer).GetSerialMetadata(ctx, req.(*Serial))
  2265  	}
  2266  	return interceptor(ctx, in, info, handler)
  2267  }
  2268  
  2269  func _StorageAuthority_GetValidAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2270  	in := new(GetValidAuthorizationsRequest)
  2271  	if err := dec(in); err != nil {
  2272  		return nil, err
  2273  	}
  2274  	if interceptor == nil {
  2275  		return srv.(StorageAuthorityServer).GetValidAuthorizations2(ctx, in)
  2276  	}
  2277  	info := &grpc.UnaryServerInfo{
  2278  		Server:     srv,
  2279  		FullMethod: "/sa.StorageAuthority/GetValidAuthorizations2",
  2280  	}
  2281  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2282  		return srv.(StorageAuthorityServer).GetValidAuthorizations2(ctx, req.(*GetValidAuthorizationsRequest))
  2283  	}
  2284  	return interceptor(ctx, in, info, handler)
  2285  }
  2286  
  2287  func _StorageAuthority_GetValidOrderAuthorizations2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2288  	in := new(GetValidOrderAuthorizationsRequest)
  2289  	if err := dec(in); err != nil {
  2290  		return nil, err
  2291  	}
  2292  	if interceptor == nil {
  2293  		return srv.(StorageAuthorityServer).GetValidOrderAuthorizations2(ctx, in)
  2294  	}
  2295  	info := &grpc.UnaryServerInfo{
  2296  		Server:     srv,
  2297  		FullMethod: "/sa.StorageAuthority/GetValidOrderAuthorizations2",
  2298  	}
  2299  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2300  		return srv.(StorageAuthorityServer).GetValidOrderAuthorizations2(ctx, req.(*GetValidOrderAuthorizationsRequest))
  2301  	}
  2302  	return interceptor(ctx, in, info, handler)
  2303  }
  2304  
  2305  func _StorageAuthority_IncidentsForSerial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2306  	in := new(Serial)
  2307  	if err := dec(in); err != nil {
  2308  		return nil, err
  2309  	}
  2310  	if interceptor == nil {
  2311  		return srv.(StorageAuthorityServer).IncidentsForSerial(ctx, in)
  2312  	}
  2313  	info := &grpc.UnaryServerInfo{
  2314  		Server:     srv,
  2315  		FullMethod: "/sa.StorageAuthority/IncidentsForSerial",
  2316  	}
  2317  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2318  		return srv.(StorageAuthorityServer).IncidentsForSerial(ctx, req.(*Serial))
  2319  	}
  2320  	return interceptor(ctx, in, info, handler)
  2321  }
  2322  
  2323  func _StorageAuthority_KeyBlocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2324  	in := new(KeyBlockedRequest)
  2325  	if err := dec(in); err != nil {
  2326  		return nil, err
  2327  	}
  2328  	if interceptor == nil {
  2329  		return srv.(StorageAuthorityServer).KeyBlocked(ctx, in)
  2330  	}
  2331  	info := &grpc.UnaryServerInfo{
  2332  		Server:     srv,
  2333  		FullMethod: "/sa.StorageAuthority/KeyBlocked",
  2334  	}
  2335  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2336  		return srv.(StorageAuthorityServer).KeyBlocked(ctx, req.(*KeyBlockedRequest))
  2337  	}
  2338  	return interceptor(ctx, in, info, handler)
  2339  }
  2340  
  2341  func _StorageAuthority_PreviousCertificateExists_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2342  	in := new(PreviousCertificateExistsRequest)
  2343  	if err := dec(in); err != nil {
  2344  		return nil, err
  2345  	}
  2346  	if interceptor == nil {
  2347  		return srv.(StorageAuthorityServer).PreviousCertificateExists(ctx, in)
  2348  	}
  2349  	info := &grpc.UnaryServerInfo{
  2350  		Server:     srv,
  2351  		FullMethod: "/sa.StorageAuthority/PreviousCertificateExists",
  2352  	}
  2353  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2354  		return srv.(StorageAuthorityServer).PreviousCertificateExists(ctx, req.(*PreviousCertificateExistsRequest))
  2355  	}
  2356  	return interceptor(ctx, in, info, handler)
  2357  }
  2358  
  2359  func _StorageAuthority_SerialsForIncident_Handler(srv interface{}, stream grpc.ServerStream) error {
  2360  	m := new(SerialsForIncidentRequest)
  2361  	if err := stream.RecvMsg(m); err != nil {
  2362  		return err
  2363  	}
  2364  	return srv.(StorageAuthorityServer).SerialsForIncident(m, &storageAuthoritySerialsForIncidentServer{stream})
  2365  }
  2366  
  2367  type StorageAuthority_SerialsForIncidentServer interface {
  2368  	Send(*IncidentSerial) error
  2369  	grpc.ServerStream
  2370  }
  2371  
  2372  type storageAuthoritySerialsForIncidentServer struct {
  2373  	grpc.ServerStream
  2374  }
  2375  
  2376  func (x *storageAuthoritySerialsForIncidentServer) Send(m *IncidentSerial) error {
  2377  	return x.ServerStream.SendMsg(m)
  2378  }
  2379  
  2380  func _StorageAuthority_AddBlockedKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2381  	in := new(AddBlockedKeyRequest)
  2382  	if err := dec(in); err != nil {
  2383  		return nil, err
  2384  	}
  2385  	if interceptor == nil {
  2386  		return srv.(StorageAuthorityServer).AddBlockedKey(ctx, in)
  2387  	}
  2388  	info := &grpc.UnaryServerInfo{
  2389  		Server:     srv,
  2390  		FullMethod: "/sa.StorageAuthority/AddBlockedKey",
  2391  	}
  2392  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2393  		return srv.(StorageAuthorityServer).AddBlockedKey(ctx, req.(*AddBlockedKeyRequest))
  2394  	}
  2395  	return interceptor(ctx, in, info, handler)
  2396  }
  2397  
  2398  func _StorageAuthority_AddCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2399  	in := new(AddCertificateRequest)
  2400  	if err := dec(in); err != nil {
  2401  		return nil, err
  2402  	}
  2403  	if interceptor == nil {
  2404  		return srv.(StorageAuthorityServer).AddCertificate(ctx, in)
  2405  	}
  2406  	info := &grpc.UnaryServerInfo{
  2407  		Server:     srv,
  2408  		FullMethod: "/sa.StorageAuthority/AddCertificate",
  2409  	}
  2410  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2411  		return srv.(StorageAuthorityServer).AddCertificate(ctx, req.(*AddCertificateRequest))
  2412  	}
  2413  	return interceptor(ctx, in, info, handler)
  2414  }
  2415  
  2416  func _StorageAuthority_AddPrecertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2417  	in := new(AddCertificateRequest)
  2418  	if err := dec(in); err != nil {
  2419  		return nil, err
  2420  	}
  2421  	if interceptor == nil {
  2422  		return srv.(StorageAuthorityServer).AddPrecertificate(ctx, in)
  2423  	}
  2424  	info := &grpc.UnaryServerInfo{
  2425  		Server:     srv,
  2426  		FullMethod: "/sa.StorageAuthority/AddPrecertificate",
  2427  	}
  2428  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2429  		return srv.(StorageAuthorityServer).AddPrecertificate(ctx, req.(*AddCertificateRequest))
  2430  	}
  2431  	return interceptor(ctx, in, info, handler)
  2432  }
  2433  
  2434  func _StorageAuthority_SetCertificateStatusReady_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2435  	in := new(Serial)
  2436  	if err := dec(in); err != nil {
  2437  		return nil, err
  2438  	}
  2439  	if interceptor == nil {
  2440  		return srv.(StorageAuthorityServer).SetCertificateStatusReady(ctx, in)
  2441  	}
  2442  	info := &grpc.UnaryServerInfo{
  2443  		Server:     srv,
  2444  		FullMethod: "/sa.StorageAuthority/SetCertificateStatusReady",
  2445  	}
  2446  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2447  		return srv.(StorageAuthorityServer).SetCertificateStatusReady(ctx, req.(*Serial))
  2448  	}
  2449  	return interceptor(ctx, in, info, handler)
  2450  }
  2451  
  2452  func _StorageAuthority_AddSerial_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2453  	in := new(AddSerialRequest)
  2454  	if err := dec(in); err != nil {
  2455  		return nil, err
  2456  	}
  2457  	if interceptor == nil {
  2458  		return srv.(StorageAuthorityServer).AddSerial(ctx, in)
  2459  	}
  2460  	info := &grpc.UnaryServerInfo{
  2461  		Server:     srv,
  2462  		FullMethod: "/sa.StorageAuthority/AddSerial",
  2463  	}
  2464  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2465  		return srv.(StorageAuthorityServer).AddSerial(ctx, req.(*AddSerialRequest))
  2466  	}
  2467  	return interceptor(ctx, in, info, handler)
  2468  }
  2469  
  2470  func _StorageAuthority_DeactivateAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2471  	in := new(AuthorizationID2)
  2472  	if err := dec(in); err != nil {
  2473  		return nil, err
  2474  	}
  2475  	if interceptor == nil {
  2476  		return srv.(StorageAuthorityServer).DeactivateAuthorization2(ctx, in)
  2477  	}
  2478  	info := &grpc.UnaryServerInfo{
  2479  		Server:     srv,
  2480  		FullMethod: "/sa.StorageAuthority/DeactivateAuthorization2",
  2481  	}
  2482  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2483  		return srv.(StorageAuthorityServer).DeactivateAuthorization2(ctx, req.(*AuthorizationID2))
  2484  	}
  2485  	return interceptor(ctx, in, info, handler)
  2486  }
  2487  
  2488  func _StorageAuthority_DeactivateRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2489  	in := new(RegistrationID)
  2490  	if err := dec(in); err != nil {
  2491  		return nil, err
  2492  	}
  2493  	if interceptor == nil {
  2494  		return srv.(StorageAuthorityServer).DeactivateRegistration(ctx, in)
  2495  	}
  2496  	info := &grpc.UnaryServerInfo{
  2497  		Server:     srv,
  2498  		FullMethod: "/sa.StorageAuthority/DeactivateRegistration",
  2499  	}
  2500  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2501  		return srv.(StorageAuthorityServer).DeactivateRegistration(ctx, req.(*RegistrationID))
  2502  	}
  2503  	return interceptor(ctx, in, info, handler)
  2504  }
  2505  
  2506  func _StorageAuthority_FinalizeAuthorization2_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2507  	in := new(FinalizeAuthorizationRequest)
  2508  	if err := dec(in); err != nil {
  2509  		return nil, err
  2510  	}
  2511  	if interceptor == nil {
  2512  		return srv.(StorageAuthorityServer).FinalizeAuthorization2(ctx, in)
  2513  	}
  2514  	info := &grpc.UnaryServerInfo{
  2515  		Server:     srv,
  2516  		FullMethod: "/sa.StorageAuthority/FinalizeAuthorization2",
  2517  	}
  2518  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2519  		return srv.(StorageAuthorityServer).FinalizeAuthorization2(ctx, req.(*FinalizeAuthorizationRequest))
  2520  	}
  2521  	return interceptor(ctx, in, info, handler)
  2522  }
  2523  
  2524  func _StorageAuthority_FinalizeOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2525  	in := new(FinalizeOrderRequest)
  2526  	if err := dec(in); err != nil {
  2527  		return nil, err
  2528  	}
  2529  	if interceptor == nil {
  2530  		return srv.(StorageAuthorityServer).FinalizeOrder(ctx, in)
  2531  	}
  2532  	info := &grpc.UnaryServerInfo{
  2533  		Server:     srv,
  2534  		FullMethod: "/sa.StorageAuthority/FinalizeOrder",
  2535  	}
  2536  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2537  		return srv.(StorageAuthorityServer).FinalizeOrder(ctx, req.(*FinalizeOrderRequest))
  2538  	}
  2539  	return interceptor(ctx, in, info, handler)
  2540  }
  2541  
  2542  func _StorageAuthority_NewOrderAndAuthzs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2543  	in := new(NewOrderAndAuthzsRequest)
  2544  	if err := dec(in); err != nil {
  2545  		return nil, err
  2546  	}
  2547  	if interceptor == nil {
  2548  		return srv.(StorageAuthorityServer).NewOrderAndAuthzs(ctx, in)
  2549  	}
  2550  	info := &grpc.UnaryServerInfo{
  2551  		Server:     srv,
  2552  		FullMethod: "/sa.StorageAuthority/NewOrderAndAuthzs",
  2553  	}
  2554  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2555  		return srv.(StorageAuthorityServer).NewOrderAndAuthzs(ctx, req.(*NewOrderAndAuthzsRequest))
  2556  	}
  2557  	return interceptor(ctx, in, info, handler)
  2558  }
  2559  
  2560  func _StorageAuthority_NewRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2561  	in := new(proto.Registration)
  2562  	if err := dec(in); err != nil {
  2563  		return nil, err
  2564  	}
  2565  	if interceptor == nil {
  2566  		return srv.(StorageAuthorityServer).NewRegistration(ctx, in)
  2567  	}
  2568  	info := &grpc.UnaryServerInfo{
  2569  		Server:     srv,
  2570  		FullMethod: "/sa.StorageAuthority/NewRegistration",
  2571  	}
  2572  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2573  		return srv.(StorageAuthorityServer).NewRegistration(ctx, req.(*proto.Registration))
  2574  	}
  2575  	return interceptor(ctx, in, info, handler)
  2576  }
  2577  
  2578  func _StorageAuthority_RevokeCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2579  	in := new(RevokeCertificateRequest)
  2580  	if err := dec(in); err != nil {
  2581  		return nil, err
  2582  	}
  2583  	if interceptor == nil {
  2584  		return srv.(StorageAuthorityServer).RevokeCertificate(ctx, in)
  2585  	}
  2586  	info := &grpc.UnaryServerInfo{
  2587  		Server:     srv,
  2588  		FullMethod: "/sa.StorageAuthority/RevokeCertificate",
  2589  	}
  2590  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2591  		return srv.(StorageAuthorityServer).RevokeCertificate(ctx, req.(*RevokeCertificateRequest))
  2592  	}
  2593  	return interceptor(ctx, in, info, handler)
  2594  }
  2595  
  2596  func _StorageAuthority_SetOrderError_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2597  	in := new(SetOrderErrorRequest)
  2598  	if err := dec(in); err != nil {
  2599  		return nil, err
  2600  	}
  2601  	if interceptor == nil {
  2602  		return srv.(StorageAuthorityServer).SetOrderError(ctx, in)
  2603  	}
  2604  	info := &grpc.UnaryServerInfo{
  2605  		Server:     srv,
  2606  		FullMethod: "/sa.StorageAuthority/SetOrderError",
  2607  	}
  2608  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2609  		return srv.(StorageAuthorityServer).SetOrderError(ctx, req.(*SetOrderErrorRequest))
  2610  	}
  2611  	return interceptor(ctx, in, info, handler)
  2612  }
  2613  
  2614  func _StorageAuthority_SetOrderProcessing_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2615  	in := new(OrderRequest)
  2616  	if err := dec(in); err != nil {
  2617  		return nil, err
  2618  	}
  2619  	if interceptor == nil {
  2620  		return srv.(StorageAuthorityServer).SetOrderProcessing(ctx, in)
  2621  	}
  2622  	info := &grpc.UnaryServerInfo{
  2623  		Server:     srv,
  2624  		FullMethod: "/sa.StorageAuthority/SetOrderProcessing",
  2625  	}
  2626  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2627  		return srv.(StorageAuthorityServer).SetOrderProcessing(ctx, req.(*OrderRequest))
  2628  	}
  2629  	return interceptor(ctx, in, info, handler)
  2630  }
  2631  
  2632  func _StorageAuthority_UpdateRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2633  	in := new(proto.Registration)
  2634  	if err := dec(in); err != nil {
  2635  		return nil, err
  2636  	}
  2637  	if interceptor == nil {
  2638  		return srv.(StorageAuthorityServer).UpdateRegistration(ctx, in)
  2639  	}
  2640  	info := &grpc.UnaryServerInfo{
  2641  		Server:     srv,
  2642  		FullMethod: "/sa.StorageAuthority/UpdateRegistration",
  2643  	}
  2644  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2645  		return srv.(StorageAuthorityServer).UpdateRegistration(ctx, req.(*proto.Registration))
  2646  	}
  2647  	return interceptor(ctx, in, info, handler)
  2648  }
  2649  
  2650  func _StorageAuthority_UpdateRevokedCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2651  	in := new(RevokeCertificateRequest)
  2652  	if err := dec(in); err != nil {
  2653  		return nil, err
  2654  	}
  2655  	if interceptor == nil {
  2656  		return srv.(StorageAuthorityServer).UpdateRevokedCertificate(ctx, in)
  2657  	}
  2658  	info := &grpc.UnaryServerInfo{
  2659  		Server:     srv,
  2660  		FullMethod: "/sa.StorageAuthority/UpdateRevokedCertificate",
  2661  	}
  2662  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2663  		return srv.(StorageAuthorityServer).UpdateRevokedCertificate(ctx, req.(*RevokeCertificateRequest))
  2664  	}
  2665  	return interceptor(ctx, in, info, handler)
  2666  }
  2667  
  2668  func _StorageAuthority_LeaseCRLShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2669  	in := new(LeaseCRLShardRequest)
  2670  	if err := dec(in); err != nil {
  2671  		return nil, err
  2672  	}
  2673  	if interceptor == nil {
  2674  		return srv.(StorageAuthorityServer).LeaseCRLShard(ctx, in)
  2675  	}
  2676  	info := &grpc.UnaryServerInfo{
  2677  		Server:     srv,
  2678  		FullMethod: "/sa.StorageAuthority/LeaseCRLShard",
  2679  	}
  2680  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2681  		return srv.(StorageAuthorityServer).LeaseCRLShard(ctx, req.(*LeaseCRLShardRequest))
  2682  	}
  2683  	return interceptor(ctx, in, info, handler)
  2684  }
  2685  
  2686  func _StorageAuthority_UpdateCRLShard_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  2687  	in := new(UpdateCRLShardRequest)
  2688  	if err := dec(in); err != nil {
  2689  		return nil, err
  2690  	}
  2691  	if interceptor == nil {
  2692  		return srv.(StorageAuthorityServer).UpdateCRLShard(ctx, in)
  2693  	}
  2694  	info := &grpc.UnaryServerInfo{
  2695  		Server:     srv,
  2696  		FullMethod: "/sa.StorageAuthority/UpdateCRLShard",
  2697  	}
  2698  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  2699  		return srv.(StorageAuthorityServer).UpdateCRLShard(ctx, req.(*UpdateCRLShardRequest))
  2700  	}
  2701  	return interceptor(ctx, in, info, handler)
  2702  }
  2703  
  2704  // StorageAuthority_ServiceDesc is the grpc.ServiceDesc for StorageAuthority service.
  2705  // It's only intended for direct use with grpc.RegisterService,
  2706  // and not to be introspected or modified (even as a copy)
  2707  var StorageAuthority_ServiceDesc = grpc.ServiceDesc{
  2708  	ServiceName: "sa.StorageAuthority",
  2709  	HandlerType: (*StorageAuthorityServer)(nil),
  2710  	Methods: []grpc.MethodDesc{
  2711  		{
  2712  			MethodName: "CountCertificatesByNames",
  2713  			Handler:    _StorageAuthority_CountCertificatesByNames_Handler,
  2714  		},
  2715  		{
  2716  			MethodName: "CountFQDNSets",
  2717  			Handler:    _StorageAuthority_CountFQDNSets_Handler,
  2718  		},
  2719  		{
  2720  			MethodName: "CountInvalidAuthorizations2",
  2721  			Handler:    _StorageAuthority_CountInvalidAuthorizations2_Handler,
  2722  		},
  2723  		{
  2724  			MethodName: "CountOrders",
  2725  			Handler:    _StorageAuthority_CountOrders_Handler,
  2726  		},
  2727  		{
  2728  			MethodName: "CountPendingAuthorizations2",
  2729  			Handler:    _StorageAuthority_CountPendingAuthorizations2_Handler,
  2730  		},
  2731  		{
  2732  			MethodName: "CountRegistrationsByIP",
  2733  			Handler:    _StorageAuthority_CountRegistrationsByIP_Handler,
  2734  		},
  2735  		{
  2736  			MethodName: "CountRegistrationsByIPRange",
  2737  			Handler:    _StorageAuthority_CountRegistrationsByIPRange_Handler,
  2738  		},
  2739  		{
  2740  			MethodName: "FQDNSetExists",
  2741  			Handler:    _StorageAuthority_FQDNSetExists_Handler,
  2742  		},
  2743  		{
  2744  			MethodName: "FQDNSetTimestampsForWindow",
  2745  			Handler:    _StorageAuthority_FQDNSetTimestampsForWindow_Handler,
  2746  		},
  2747  		{
  2748  			MethodName: "GetAuthorization2",
  2749  			Handler:    _StorageAuthority_GetAuthorization2_Handler,
  2750  		},
  2751  		{
  2752  			MethodName: "GetAuthorizations2",
  2753  			Handler:    _StorageAuthority_GetAuthorizations2_Handler,
  2754  		},
  2755  		{
  2756  			MethodName: "GetCertificate",
  2757  			Handler:    _StorageAuthority_GetCertificate_Handler,
  2758  		},
  2759  		{
  2760  			MethodName: "GetCertificateStatus",
  2761  			Handler:    _StorageAuthority_GetCertificateStatus_Handler,
  2762  		},
  2763  		{
  2764  			MethodName: "GetMaxExpiration",
  2765  			Handler:    _StorageAuthority_GetMaxExpiration_Handler,
  2766  		},
  2767  		{
  2768  			MethodName: "GetOrder",
  2769  			Handler:    _StorageAuthority_GetOrder_Handler,
  2770  		},
  2771  		{
  2772  			MethodName: "GetOrderForNames",
  2773  			Handler:    _StorageAuthority_GetOrderForNames_Handler,
  2774  		},
  2775  		{
  2776  			MethodName: "GetPendingAuthorization2",
  2777  			Handler:    _StorageAuthority_GetPendingAuthorization2_Handler,
  2778  		},
  2779  		{
  2780  			MethodName: "GetRegistration",
  2781  			Handler:    _StorageAuthority_GetRegistration_Handler,
  2782  		},
  2783  		{
  2784  			MethodName: "GetRegistrationByKey",
  2785  			Handler:    _StorageAuthority_GetRegistrationByKey_Handler,
  2786  		},
  2787  		{
  2788  			MethodName: "GetRevocationStatus",
  2789  			Handler:    _StorageAuthority_GetRevocationStatus_Handler,
  2790  		},
  2791  		{
  2792  			MethodName: "GetSerialMetadata",
  2793  			Handler:    _StorageAuthority_GetSerialMetadata_Handler,
  2794  		},
  2795  		{
  2796  			MethodName: "GetValidAuthorizations2",
  2797  			Handler:    _StorageAuthority_GetValidAuthorizations2_Handler,
  2798  		},
  2799  		{
  2800  			MethodName: "GetValidOrderAuthorizations2",
  2801  			Handler:    _StorageAuthority_GetValidOrderAuthorizations2_Handler,
  2802  		},
  2803  		{
  2804  			MethodName: "IncidentsForSerial",
  2805  			Handler:    _StorageAuthority_IncidentsForSerial_Handler,
  2806  		},
  2807  		{
  2808  			MethodName: "KeyBlocked",
  2809  			Handler:    _StorageAuthority_KeyBlocked_Handler,
  2810  		},
  2811  		{
  2812  			MethodName: "PreviousCertificateExists",
  2813  			Handler:    _StorageAuthority_PreviousCertificateExists_Handler,
  2814  		},
  2815  		{
  2816  			MethodName: "AddBlockedKey",
  2817  			Handler:    _StorageAuthority_AddBlockedKey_Handler,
  2818  		},
  2819  		{
  2820  			MethodName: "AddCertificate",
  2821  			Handler:    _StorageAuthority_AddCertificate_Handler,
  2822  		},
  2823  		{
  2824  			MethodName: "AddPrecertificate",
  2825  			Handler:    _StorageAuthority_AddPrecertificate_Handler,
  2826  		},
  2827  		{
  2828  			MethodName: "SetCertificateStatusReady",
  2829  			Handler:    _StorageAuthority_SetCertificateStatusReady_Handler,
  2830  		},
  2831  		{
  2832  			MethodName: "AddSerial",
  2833  			Handler:    _StorageAuthority_AddSerial_Handler,
  2834  		},
  2835  		{
  2836  			MethodName: "DeactivateAuthorization2",
  2837  			Handler:    _StorageAuthority_DeactivateAuthorization2_Handler,
  2838  		},
  2839  		{
  2840  			MethodName: "DeactivateRegistration",
  2841  			Handler:    _StorageAuthority_DeactivateRegistration_Handler,
  2842  		},
  2843  		{
  2844  			MethodName: "FinalizeAuthorization2",
  2845  			Handler:    _StorageAuthority_FinalizeAuthorization2_Handler,
  2846  		},
  2847  		{
  2848  			MethodName: "FinalizeOrder",
  2849  			Handler:    _StorageAuthority_FinalizeOrder_Handler,
  2850  		},
  2851  		{
  2852  			MethodName: "NewOrderAndAuthzs",
  2853  			Handler:    _StorageAuthority_NewOrderAndAuthzs_Handler,
  2854  		},
  2855  		{
  2856  			MethodName: "NewRegistration",
  2857  			Handler:    _StorageAuthority_NewRegistration_Handler,
  2858  		},
  2859  		{
  2860  			MethodName: "RevokeCertificate",
  2861  			Handler:    _StorageAuthority_RevokeCertificate_Handler,
  2862  		},
  2863  		{
  2864  			MethodName: "SetOrderError",
  2865  			Handler:    _StorageAuthority_SetOrderError_Handler,
  2866  		},
  2867  		{
  2868  			MethodName: "SetOrderProcessing",
  2869  			Handler:    _StorageAuthority_SetOrderProcessing_Handler,
  2870  		},
  2871  		{
  2872  			MethodName: "UpdateRegistration",
  2873  			Handler:    _StorageAuthority_UpdateRegistration_Handler,
  2874  		},
  2875  		{
  2876  			MethodName: "UpdateRevokedCertificate",
  2877  			Handler:    _StorageAuthority_UpdateRevokedCertificate_Handler,
  2878  		},
  2879  		{
  2880  			MethodName: "LeaseCRLShard",
  2881  			Handler:    _StorageAuthority_LeaseCRLShard_Handler,
  2882  		},
  2883  		{
  2884  			MethodName: "UpdateCRLShard",
  2885  			Handler:    _StorageAuthority_UpdateCRLShard_Handler,
  2886  		},
  2887  	},
  2888  	Streams: []grpc.StreamDesc{
  2889  		{
  2890  			StreamName:    "GetRevokedCerts",
  2891  			Handler:       _StorageAuthority_GetRevokedCerts_Handler,
  2892  			ServerStreams: true,
  2893  		},
  2894  		{
  2895  			StreamName:    "SerialsForIncident",
  2896  			Handler:       _StorageAuthority_SerialsForIncident_Handler,
  2897  			ServerStreams: true,
  2898  		},
  2899  	},
  2900  	Metadata: "sa.proto",
  2901  }
  2902  

View as plain text