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