github.com/prysmaticlabs/prysm@v1.4.4/proto/eth/v1alpha1/validator.pb.gw.go (about)

     1  // Code generated by protoc-gen-grpc-gateway. DO NOT EDIT.
     2  // source: proto/eth/v1alpha1/validator.proto
     3  
     4  /*
     5  Package eth is a reverse proxy.
     6  
     7  It translates gRPC into RESTful JSON APIs.
     8  */
     9  package eth
    10  
    11  import (
    12  	"context"
    13  	"io"
    14  	"net/http"
    15  
    16  	"github.com/golang/protobuf/ptypes/empty"
    17  	emptypb "github.com/golang/protobuf/ptypes/empty"
    18  	"github.com/grpc-ecosystem/grpc-gateway/v2/runtime"
    19  	"github.com/grpc-ecosystem/grpc-gateway/v2/utilities"
    20  	github_com_prysmaticlabs_eth2_types "github.com/prysmaticlabs/eth2-types"
    21  	"google.golang.org/grpc"
    22  	"google.golang.org/grpc/codes"
    23  	"google.golang.org/grpc/grpclog"
    24  	"google.golang.org/grpc/metadata"
    25  	"google.golang.org/grpc/status"
    26  	"google.golang.org/protobuf/proto"
    27  )
    28  
    29  // Suppress "imported and not used" errors
    30  var _ codes.Code
    31  var _ io.Reader
    32  var _ status.Status
    33  var _ = runtime.String
    34  var _ = utilities.NewDoubleArray
    35  var _ = metadata.Join
    36  var _ = github_com_prysmaticlabs_eth2_types.Epoch(0)
    37  var _ = emptypb.Empty{}
    38  var _ = empty.Empty{}
    39  
    40  var (
    41  	filter_BeaconNodeValidator_GetDuties_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
    42  )
    43  
    44  func request_BeaconNodeValidator_GetDuties_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    45  	var protoReq DutiesRequest
    46  	var metadata runtime.ServerMetadata
    47  
    48  	if err := req.ParseForm(); err != nil {
    49  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    50  	}
    51  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetDuties_0); err != nil {
    52  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    53  	}
    54  
    55  	msg, err := client.GetDuties(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
    56  	return msg, metadata, err
    57  
    58  }
    59  
    60  func local_request_BeaconNodeValidator_GetDuties_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
    61  	var protoReq DutiesRequest
    62  	var metadata runtime.ServerMetadata
    63  
    64  	if err := req.ParseForm(); err != nil {
    65  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    66  	}
    67  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetDuties_0); err != nil {
    68  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    69  	}
    70  
    71  	msg, err := server.GetDuties(ctx, &protoReq)
    72  	return msg, metadata, err
    73  
    74  }
    75  
    76  var (
    77  	filter_BeaconNodeValidator_StreamDuties_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
    78  )
    79  
    80  func request_BeaconNodeValidator_StreamDuties_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (BeaconNodeValidator_StreamDutiesClient, runtime.ServerMetadata, error) {
    81  	var protoReq DutiesRequest
    82  	var metadata runtime.ServerMetadata
    83  
    84  	if err := req.ParseForm(); err != nil {
    85  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    86  	}
    87  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_StreamDuties_0); err != nil {
    88  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
    89  	}
    90  
    91  	stream, err := client.StreamDuties(ctx, &protoReq)
    92  	if err != nil {
    93  		return nil, metadata, err
    94  	}
    95  	header, err := stream.Header()
    96  	if err != nil {
    97  		return nil, metadata, err
    98  	}
    99  	metadata.HeaderMD = header
   100  	return stream, metadata, nil
   101  
   102  }
   103  
   104  var (
   105  	filter_BeaconNodeValidator_DomainData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   106  )
   107  
   108  func request_BeaconNodeValidator_DomainData_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   109  	var protoReq DomainRequest
   110  	var metadata runtime.ServerMetadata
   111  
   112  	if err := req.ParseForm(); err != nil {
   113  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   114  	}
   115  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_DomainData_0); err != nil {
   116  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   117  	}
   118  
   119  	msg, err := client.DomainData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   120  	return msg, metadata, err
   121  
   122  }
   123  
   124  func local_request_BeaconNodeValidator_DomainData_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   125  	var protoReq DomainRequest
   126  	var metadata runtime.ServerMetadata
   127  
   128  	if err := req.ParseForm(); err != nil {
   129  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   130  	}
   131  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_DomainData_0); err != nil {
   132  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   133  	}
   134  
   135  	msg, err := server.DomainData(ctx, &protoReq)
   136  	return msg, metadata, err
   137  
   138  }
   139  
   140  func request_BeaconNodeValidator_WaitForChainStart_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (BeaconNodeValidator_WaitForChainStartClient, runtime.ServerMetadata, error) {
   141  	var protoReq emptypb.Empty
   142  	var metadata runtime.ServerMetadata
   143  
   144  	stream, err := client.WaitForChainStart(ctx, &protoReq)
   145  	if err != nil {
   146  		return nil, metadata, err
   147  	}
   148  	header, err := stream.Header()
   149  	if err != nil {
   150  		return nil, metadata, err
   151  	}
   152  	metadata.HeaderMD = header
   153  	return stream, metadata, nil
   154  
   155  }
   156  
   157  var (
   158  	filter_BeaconNodeValidator_WaitForActivation_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   159  )
   160  
   161  func request_BeaconNodeValidator_WaitForActivation_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (BeaconNodeValidator_WaitForActivationClient, runtime.ServerMetadata, error) {
   162  	var protoReq ValidatorActivationRequest
   163  	var metadata runtime.ServerMetadata
   164  
   165  	if err := req.ParseForm(); err != nil {
   166  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   167  	}
   168  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_WaitForActivation_0); err != nil {
   169  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   170  	}
   171  
   172  	stream, err := client.WaitForActivation(ctx, &protoReq)
   173  	if err != nil {
   174  		return nil, metadata, err
   175  	}
   176  	header, err := stream.Header()
   177  	if err != nil {
   178  		return nil, metadata, err
   179  	}
   180  	metadata.HeaderMD = header
   181  	return stream, metadata, nil
   182  
   183  }
   184  
   185  var (
   186  	filter_BeaconNodeValidator_ValidatorIndex_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   187  )
   188  
   189  func request_BeaconNodeValidator_ValidatorIndex_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   190  	var protoReq ValidatorIndexRequest
   191  	var metadata runtime.ServerMetadata
   192  
   193  	if err := req.ParseForm(); err != nil {
   194  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   195  	}
   196  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_ValidatorIndex_0); err != nil {
   197  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   198  	}
   199  
   200  	msg, err := client.ValidatorIndex(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   201  	return msg, metadata, err
   202  
   203  }
   204  
   205  func local_request_BeaconNodeValidator_ValidatorIndex_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   206  	var protoReq ValidatorIndexRequest
   207  	var metadata runtime.ServerMetadata
   208  
   209  	if err := req.ParseForm(); err != nil {
   210  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   211  	}
   212  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_ValidatorIndex_0); err != nil {
   213  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   214  	}
   215  
   216  	msg, err := server.ValidatorIndex(ctx, &protoReq)
   217  	return msg, metadata, err
   218  
   219  }
   220  
   221  var (
   222  	filter_BeaconNodeValidator_ValidatorStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   223  )
   224  
   225  func request_BeaconNodeValidator_ValidatorStatus_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   226  	var protoReq ValidatorStatusRequest
   227  	var metadata runtime.ServerMetadata
   228  
   229  	if err := req.ParseForm(); err != nil {
   230  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   231  	}
   232  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_ValidatorStatus_0); err != nil {
   233  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   234  	}
   235  
   236  	msg, err := client.ValidatorStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   237  	return msg, metadata, err
   238  
   239  }
   240  
   241  func local_request_BeaconNodeValidator_ValidatorStatus_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   242  	var protoReq ValidatorStatusRequest
   243  	var metadata runtime.ServerMetadata
   244  
   245  	if err := req.ParseForm(); err != nil {
   246  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   247  	}
   248  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_ValidatorStatus_0); err != nil {
   249  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   250  	}
   251  
   252  	msg, err := server.ValidatorStatus(ctx, &protoReq)
   253  	return msg, metadata, err
   254  
   255  }
   256  
   257  var (
   258  	filter_BeaconNodeValidator_MultipleValidatorStatus_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   259  )
   260  
   261  func request_BeaconNodeValidator_MultipleValidatorStatus_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   262  	var protoReq MultipleValidatorStatusRequest
   263  	var metadata runtime.ServerMetadata
   264  
   265  	if err := req.ParseForm(); err != nil {
   266  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   267  	}
   268  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_MultipleValidatorStatus_0); err != nil {
   269  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   270  	}
   271  
   272  	msg, err := client.MultipleValidatorStatus(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   273  	return msg, metadata, err
   274  
   275  }
   276  
   277  func local_request_BeaconNodeValidator_MultipleValidatorStatus_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   278  	var protoReq MultipleValidatorStatusRequest
   279  	var metadata runtime.ServerMetadata
   280  
   281  	if err := req.ParseForm(); err != nil {
   282  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   283  	}
   284  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_MultipleValidatorStatus_0); err != nil {
   285  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   286  	}
   287  
   288  	msg, err := server.MultipleValidatorStatus(ctx, &protoReq)
   289  	return msg, metadata, err
   290  
   291  }
   292  
   293  var (
   294  	filter_BeaconNodeValidator_GetBlock_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   295  )
   296  
   297  func request_BeaconNodeValidator_GetBlock_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   298  	var protoReq BlockRequest
   299  	var metadata runtime.ServerMetadata
   300  
   301  	if err := req.ParseForm(); err != nil {
   302  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   303  	}
   304  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetBlock_0); err != nil {
   305  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   306  	}
   307  
   308  	msg, err := client.GetBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   309  	return msg, metadata, err
   310  
   311  }
   312  
   313  func local_request_BeaconNodeValidator_GetBlock_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   314  	var protoReq BlockRequest
   315  	var metadata runtime.ServerMetadata
   316  
   317  	if err := req.ParseForm(); err != nil {
   318  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   319  	}
   320  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetBlock_0); err != nil {
   321  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   322  	}
   323  
   324  	msg, err := server.GetBlock(ctx, &protoReq)
   325  	return msg, metadata, err
   326  
   327  }
   328  
   329  func request_BeaconNodeValidator_ProposeBlock_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   330  	var protoReq SignedBeaconBlock
   331  	var metadata runtime.ServerMetadata
   332  
   333  	newReader, berr := utilities.IOReaderFactory(req.Body)
   334  	if berr != nil {
   335  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   336  	}
   337  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   338  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   339  	}
   340  
   341  	msg, err := client.ProposeBlock(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   342  	return msg, metadata, err
   343  
   344  }
   345  
   346  func local_request_BeaconNodeValidator_ProposeBlock_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   347  	var protoReq SignedBeaconBlock
   348  	var metadata runtime.ServerMetadata
   349  
   350  	newReader, berr := utilities.IOReaderFactory(req.Body)
   351  	if berr != nil {
   352  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   353  	}
   354  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   355  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   356  	}
   357  
   358  	msg, err := server.ProposeBlock(ctx, &protoReq)
   359  	return msg, metadata, err
   360  
   361  }
   362  
   363  var (
   364  	filter_BeaconNodeValidator_GetAttestationData_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   365  )
   366  
   367  func request_BeaconNodeValidator_GetAttestationData_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   368  	var protoReq AttestationDataRequest
   369  	var metadata runtime.ServerMetadata
   370  
   371  	if err := req.ParseForm(); err != nil {
   372  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   373  	}
   374  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetAttestationData_0); err != nil {
   375  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   376  	}
   377  
   378  	msg, err := client.GetAttestationData(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   379  	return msg, metadata, err
   380  
   381  }
   382  
   383  func local_request_BeaconNodeValidator_GetAttestationData_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   384  	var protoReq AttestationDataRequest
   385  	var metadata runtime.ServerMetadata
   386  
   387  	if err := req.ParseForm(); err != nil {
   388  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   389  	}
   390  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_GetAttestationData_0); err != nil {
   391  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   392  	}
   393  
   394  	msg, err := server.GetAttestationData(ctx, &protoReq)
   395  	return msg, metadata, err
   396  
   397  }
   398  
   399  func request_BeaconNodeValidator_ProposeAttestation_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   400  	var protoReq Attestation
   401  	var metadata runtime.ServerMetadata
   402  
   403  	newReader, berr := utilities.IOReaderFactory(req.Body)
   404  	if berr != nil {
   405  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   406  	}
   407  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   408  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   409  	}
   410  
   411  	msg, err := client.ProposeAttestation(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   412  	return msg, metadata, err
   413  
   414  }
   415  
   416  func local_request_BeaconNodeValidator_ProposeAttestation_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   417  	var protoReq Attestation
   418  	var metadata runtime.ServerMetadata
   419  
   420  	newReader, berr := utilities.IOReaderFactory(req.Body)
   421  	if berr != nil {
   422  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   423  	}
   424  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   425  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   426  	}
   427  
   428  	msg, err := server.ProposeAttestation(ctx, &protoReq)
   429  	return msg, metadata, err
   430  
   431  }
   432  
   433  func request_BeaconNodeValidator_SubmitAggregateSelectionProof_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   434  	var protoReq AggregateSelectionRequest
   435  	var metadata runtime.ServerMetadata
   436  
   437  	newReader, berr := utilities.IOReaderFactory(req.Body)
   438  	if berr != nil {
   439  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   440  	}
   441  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   442  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   443  	}
   444  
   445  	msg, err := client.SubmitAggregateSelectionProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   446  	return msg, metadata, err
   447  
   448  }
   449  
   450  func local_request_BeaconNodeValidator_SubmitAggregateSelectionProof_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   451  	var protoReq AggregateSelectionRequest
   452  	var metadata runtime.ServerMetadata
   453  
   454  	newReader, berr := utilities.IOReaderFactory(req.Body)
   455  	if berr != nil {
   456  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   457  	}
   458  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   459  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   460  	}
   461  
   462  	msg, err := server.SubmitAggregateSelectionProof(ctx, &protoReq)
   463  	return msg, metadata, err
   464  
   465  }
   466  
   467  func request_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   468  	var protoReq SignedAggregateSubmitRequest
   469  	var metadata runtime.ServerMetadata
   470  
   471  	newReader, berr := utilities.IOReaderFactory(req.Body)
   472  	if berr != nil {
   473  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   474  	}
   475  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   476  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   477  	}
   478  
   479  	msg, err := client.SubmitSignedAggregateSelectionProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   480  	return msg, metadata, err
   481  
   482  }
   483  
   484  func local_request_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   485  	var protoReq SignedAggregateSubmitRequest
   486  	var metadata runtime.ServerMetadata
   487  
   488  	newReader, berr := utilities.IOReaderFactory(req.Body)
   489  	if berr != nil {
   490  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   491  	}
   492  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   493  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   494  	}
   495  
   496  	msg, err := server.SubmitSignedAggregateSelectionProof(ctx, &protoReq)
   497  	return msg, metadata, err
   498  
   499  }
   500  
   501  func request_BeaconNodeValidator_ProposeExit_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   502  	var protoReq SignedVoluntaryExit
   503  	var metadata runtime.ServerMetadata
   504  
   505  	newReader, berr := utilities.IOReaderFactory(req.Body)
   506  	if berr != nil {
   507  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   508  	}
   509  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   510  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   511  	}
   512  
   513  	msg, err := client.ProposeExit(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   514  	return msg, metadata, err
   515  
   516  }
   517  
   518  func local_request_BeaconNodeValidator_ProposeExit_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   519  	var protoReq SignedVoluntaryExit
   520  	var metadata runtime.ServerMetadata
   521  
   522  	newReader, berr := utilities.IOReaderFactory(req.Body)
   523  	if berr != nil {
   524  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   525  	}
   526  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   527  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   528  	}
   529  
   530  	msg, err := server.ProposeExit(ctx, &protoReq)
   531  	return msg, metadata, err
   532  
   533  }
   534  
   535  func request_BeaconNodeValidator_SubscribeCommitteeSubnets_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   536  	var protoReq CommitteeSubnetsSubscribeRequest
   537  	var metadata runtime.ServerMetadata
   538  
   539  	newReader, berr := utilities.IOReaderFactory(req.Body)
   540  	if berr != nil {
   541  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   542  	}
   543  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   544  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   545  	}
   546  
   547  	msg, err := client.SubscribeCommitteeSubnets(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   548  	return msg, metadata, err
   549  
   550  }
   551  
   552  func local_request_BeaconNodeValidator_SubscribeCommitteeSubnets_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   553  	var protoReq CommitteeSubnetsSubscribeRequest
   554  	var metadata runtime.ServerMetadata
   555  
   556  	newReader, berr := utilities.IOReaderFactory(req.Body)
   557  	if berr != nil {
   558  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr)
   559  	}
   560  	if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF {
   561  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   562  	}
   563  
   564  	msg, err := server.SubscribeCommitteeSubnets(ctx, &protoReq)
   565  	return msg, metadata, err
   566  
   567  }
   568  
   569  var (
   570  	filter_BeaconNodeValidator_CheckDoppelGanger_0 = &utilities.DoubleArray{Encoding: map[string]int{}, Base: []int(nil), Check: []int(nil)}
   571  )
   572  
   573  func request_BeaconNodeValidator_CheckDoppelGanger_0(ctx context.Context, marshaler runtime.Marshaler, client BeaconNodeValidatorClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   574  	var protoReq DoppelGangerRequest
   575  	var metadata runtime.ServerMetadata
   576  
   577  	if err := req.ParseForm(); err != nil {
   578  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   579  	}
   580  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_CheckDoppelGanger_0); err != nil {
   581  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   582  	}
   583  
   584  	msg, err := client.CheckDoppelGanger(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
   585  	return msg, metadata, err
   586  
   587  }
   588  
   589  func local_request_BeaconNodeValidator_CheckDoppelGanger_0(ctx context.Context, marshaler runtime.Marshaler, server BeaconNodeValidatorServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
   590  	var protoReq DoppelGangerRequest
   591  	var metadata runtime.ServerMetadata
   592  
   593  	if err := req.ParseForm(); err != nil {
   594  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   595  	}
   596  	if err := runtime.PopulateQueryParameters(&protoReq, req.Form, filter_BeaconNodeValidator_CheckDoppelGanger_0); err != nil {
   597  		return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
   598  	}
   599  
   600  	msg, err := server.CheckDoppelGanger(ctx, &protoReq)
   601  	return msg, metadata, err
   602  
   603  }
   604  
   605  // RegisterBeaconNodeValidatorHandlerServer registers the http handlers for service BeaconNodeValidator to "mux".
   606  // UnaryRPC     :call BeaconNodeValidatorServer directly.
   607  // StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
   608  // Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterBeaconNodeValidatorHandlerFromEndpoint instead.
   609  func RegisterBeaconNodeValidatorHandlerServer(ctx context.Context, mux *runtime.ServeMux, server BeaconNodeValidatorServer) error {
   610  
   611  	mux.Handle("GET", pattern_BeaconNodeValidator_GetDuties_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   612  		ctx, cancel := context.WithCancel(req.Context())
   613  		defer cancel()
   614  		var stream runtime.ServerTransportStream
   615  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   616  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   617  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetDuties")
   618  		if err != nil {
   619  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   620  			return
   621  		}
   622  		resp, md, err := local_request_BeaconNodeValidator_GetDuties_0(rctx, inboundMarshaler, server, req, pathParams)
   623  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   624  		ctx = runtime.NewServerMetadataContext(ctx, md)
   625  		if err != nil {
   626  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   627  			return
   628  		}
   629  
   630  		forward_BeaconNodeValidator_GetDuties_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   631  
   632  	})
   633  
   634  	mux.Handle("GET", pattern_BeaconNodeValidator_StreamDuties_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   635  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   636  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   637  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   638  		return
   639  	})
   640  
   641  	mux.Handle("GET", pattern_BeaconNodeValidator_DomainData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   642  		ctx, cancel := context.WithCancel(req.Context())
   643  		defer cancel()
   644  		var stream runtime.ServerTransportStream
   645  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   646  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   647  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/DomainData")
   648  		if err != nil {
   649  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   650  			return
   651  		}
   652  		resp, md, err := local_request_BeaconNodeValidator_DomainData_0(rctx, inboundMarshaler, server, req, pathParams)
   653  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   654  		ctx = runtime.NewServerMetadataContext(ctx, md)
   655  		if err != nil {
   656  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   657  			return
   658  		}
   659  
   660  		forward_BeaconNodeValidator_DomainData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   661  
   662  	})
   663  
   664  	mux.Handle("GET", pattern_BeaconNodeValidator_WaitForChainStart_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   665  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   666  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   667  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   668  		return
   669  	})
   670  
   671  	mux.Handle("GET", pattern_BeaconNodeValidator_WaitForActivation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   672  		err := status.Error(codes.Unimplemented, "streaming calls are not yet supported in the in-process transport")
   673  		_, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   674  		runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   675  		return
   676  	})
   677  
   678  	mux.Handle("GET", pattern_BeaconNodeValidator_ValidatorIndex_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   679  		ctx, cancel := context.WithCancel(req.Context())
   680  		defer cancel()
   681  		var stream runtime.ServerTransportStream
   682  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   683  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   684  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorIndex")
   685  		if err != nil {
   686  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   687  			return
   688  		}
   689  		resp, md, err := local_request_BeaconNodeValidator_ValidatorIndex_0(rctx, inboundMarshaler, server, req, pathParams)
   690  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   691  		ctx = runtime.NewServerMetadataContext(ctx, md)
   692  		if err != nil {
   693  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   694  			return
   695  		}
   696  
   697  		forward_BeaconNodeValidator_ValidatorIndex_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   698  
   699  	})
   700  
   701  	mux.Handle("GET", pattern_BeaconNodeValidator_ValidatorStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   702  		ctx, cancel := context.WithCancel(req.Context())
   703  		defer cancel()
   704  		var stream runtime.ServerTransportStream
   705  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   706  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   707  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorStatus")
   708  		if err != nil {
   709  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   710  			return
   711  		}
   712  		resp, md, err := local_request_BeaconNodeValidator_ValidatorStatus_0(rctx, inboundMarshaler, server, req, pathParams)
   713  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   714  		ctx = runtime.NewServerMetadataContext(ctx, md)
   715  		if err != nil {
   716  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   717  			return
   718  		}
   719  
   720  		forward_BeaconNodeValidator_ValidatorStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   721  
   722  	})
   723  
   724  	mux.Handle("GET", pattern_BeaconNodeValidator_MultipleValidatorStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   725  		ctx, cancel := context.WithCancel(req.Context())
   726  		defer cancel()
   727  		var stream runtime.ServerTransportStream
   728  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   729  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   730  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/MultipleValidatorStatus")
   731  		if err != nil {
   732  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   733  			return
   734  		}
   735  		resp, md, err := local_request_BeaconNodeValidator_MultipleValidatorStatus_0(rctx, inboundMarshaler, server, req, pathParams)
   736  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   737  		ctx = runtime.NewServerMetadataContext(ctx, md)
   738  		if err != nil {
   739  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   740  			return
   741  		}
   742  
   743  		forward_BeaconNodeValidator_MultipleValidatorStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   744  
   745  	})
   746  
   747  	mux.Handle("GET", pattern_BeaconNodeValidator_GetBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   748  		ctx, cancel := context.WithCancel(req.Context())
   749  		defer cancel()
   750  		var stream runtime.ServerTransportStream
   751  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   752  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   753  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetBlock")
   754  		if err != nil {
   755  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   756  			return
   757  		}
   758  		resp, md, err := local_request_BeaconNodeValidator_GetBlock_0(rctx, inboundMarshaler, server, req, pathParams)
   759  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   760  		ctx = runtime.NewServerMetadataContext(ctx, md)
   761  		if err != nil {
   762  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   763  			return
   764  		}
   765  
   766  		forward_BeaconNodeValidator_GetBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   767  
   768  	})
   769  
   770  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   771  		ctx, cancel := context.WithCancel(req.Context())
   772  		defer cancel()
   773  		var stream runtime.ServerTransportStream
   774  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   775  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   776  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeBlock")
   777  		if err != nil {
   778  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   779  			return
   780  		}
   781  		resp, md, err := local_request_BeaconNodeValidator_ProposeBlock_0(rctx, inboundMarshaler, server, req, pathParams)
   782  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   783  		ctx = runtime.NewServerMetadataContext(ctx, md)
   784  		if err != nil {
   785  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   786  			return
   787  		}
   788  
   789  		forward_BeaconNodeValidator_ProposeBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   790  
   791  	})
   792  
   793  	mux.Handle("GET", pattern_BeaconNodeValidator_GetAttestationData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   794  		ctx, cancel := context.WithCancel(req.Context())
   795  		defer cancel()
   796  		var stream runtime.ServerTransportStream
   797  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   798  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   799  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetAttestationData")
   800  		if err != nil {
   801  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   802  			return
   803  		}
   804  		resp, md, err := local_request_BeaconNodeValidator_GetAttestationData_0(rctx, inboundMarshaler, server, req, pathParams)
   805  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   806  		ctx = runtime.NewServerMetadataContext(ctx, md)
   807  		if err != nil {
   808  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   809  			return
   810  		}
   811  
   812  		forward_BeaconNodeValidator_GetAttestationData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   813  
   814  	})
   815  
   816  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeAttestation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   817  		ctx, cancel := context.WithCancel(req.Context())
   818  		defer cancel()
   819  		var stream runtime.ServerTransportStream
   820  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   821  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   822  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeAttestation")
   823  		if err != nil {
   824  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   825  			return
   826  		}
   827  		resp, md, err := local_request_BeaconNodeValidator_ProposeAttestation_0(rctx, inboundMarshaler, server, req, pathParams)
   828  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   829  		ctx = runtime.NewServerMetadataContext(ctx, md)
   830  		if err != nil {
   831  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   832  			return
   833  		}
   834  
   835  		forward_BeaconNodeValidator_ProposeAttestation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   836  
   837  	})
   838  
   839  	mux.Handle("POST", pattern_BeaconNodeValidator_SubmitAggregateSelectionProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   840  		ctx, cancel := context.WithCancel(req.Context())
   841  		defer cancel()
   842  		var stream runtime.ServerTransportStream
   843  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   844  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   845  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitAggregateSelectionProof")
   846  		if err != nil {
   847  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   848  			return
   849  		}
   850  		resp, md, err := local_request_BeaconNodeValidator_SubmitAggregateSelectionProof_0(rctx, inboundMarshaler, server, req, pathParams)
   851  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   852  		ctx = runtime.NewServerMetadataContext(ctx, md)
   853  		if err != nil {
   854  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   855  			return
   856  		}
   857  
   858  		forward_BeaconNodeValidator_SubmitAggregateSelectionProof_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   859  
   860  	})
   861  
   862  	mux.Handle("POST", pattern_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   863  		ctx, cancel := context.WithCancel(req.Context())
   864  		defer cancel()
   865  		var stream runtime.ServerTransportStream
   866  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   867  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   868  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitSignedAggregateSelectionProof")
   869  		if err != nil {
   870  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   871  			return
   872  		}
   873  		resp, md, err := local_request_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(rctx, inboundMarshaler, server, req, pathParams)
   874  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   875  		ctx = runtime.NewServerMetadataContext(ctx, md)
   876  		if err != nil {
   877  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   878  			return
   879  		}
   880  
   881  		forward_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   882  
   883  	})
   884  
   885  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeExit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   886  		ctx, cancel := context.WithCancel(req.Context())
   887  		defer cancel()
   888  		var stream runtime.ServerTransportStream
   889  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   890  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   891  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeExit")
   892  		if err != nil {
   893  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   894  			return
   895  		}
   896  		resp, md, err := local_request_BeaconNodeValidator_ProposeExit_0(rctx, inboundMarshaler, server, req, pathParams)
   897  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   898  		ctx = runtime.NewServerMetadataContext(ctx, md)
   899  		if err != nil {
   900  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   901  			return
   902  		}
   903  
   904  		forward_BeaconNodeValidator_ProposeExit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   905  
   906  	})
   907  
   908  	mux.Handle("POST", pattern_BeaconNodeValidator_SubscribeCommitteeSubnets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   909  		ctx, cancel := context.WithCancel(req.Context())
   910  		defer cancel()
   911  		var stream runtime.ServerTransportStream
   912  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   913  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   914  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubscribeCommitteeSubnets")
   915  		if err != nil {
   916  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   917  			return
   918  		}
   919  		resp, md, err := local_request_BeaconNodeValidator_SubscribeCommitteeSubnets_0(rctx, inboundMarshaler, server, req, pathParams)
   920  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   921  		ctx = runtime.NewServerMetadataContext(ctx, md)
   922  		if err != nil {
   923  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   924  			return
   925  		}
   926  
   927  		forward_BeaconNodeValidator_SubscribeCommitteeSubnets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   928  
   929  	})
   930  
   931  	mux.Handle("GET", pattern_BeaconNodeValidator_CheckDoppelGanger_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   932  		ctx, cancel := context.WithCancel(req.Context())
   933  		defer cancel()
   934  		var stream runtime.ServerTransportStream
   935  		ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
   936  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   937  		rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/CheckDoppelGanger")
   938  		if err != nil {
   939  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   940  			return
   941  		}
   942  		resp, md, err := local_request_BeaconNodeValidator_CheckDoppelGanger_0(rctx, inboundMarshaler, server, req, pathParams)
   943  		md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
   944  		ctx = runtime.NewServerMetadataContext(ctx, md)
   945  		if err != nil {
   946  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
   947  			return
   948  		}
   949  
   950  		forward_BeaconNodeValidator_CheckDoppelGanger_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
   951  
   952  	})
   953  
   954  	return nil
   955  }
   956  
   957  // RegisterBeaconNodeValidatorHandlerFromEndpoint is same as RegisterBeaconNodeValidatorHandler but
   958  // automatically dials to "endpoint" and closes the connection when "ctx" gets done.
   959  func RegisterBeaconNodeValidatorHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) {
   960  	conn, err := grpc.Dial(endpoint, opts...)
   961  	if err != nil {
   962  		return err
   963  	}
   964  	defer func() {
   965  		if err != nil {
   966  			if cerr := conn.Close(); cerr != nil {
   967  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   968  			}
   969  			return
   970  		}
   971  		go func() {
   972  			<-ctx.Done()
   973  			if cerr := conn.Close(); cerr != nil {
   974  				grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr)
   975  			}
   976  		}()
   977  	}()
   978  
   979  	return RegisterBeaconNodeValidatorHandler(ctx, mux, conn)
   980  }
   981  
   982  // RegisterBeaconNodeValidatorHandler registers the http handlers for service BeaconNodeValidator to "mux".
   983  // The handlers forward requests to the grpc endpoint over "conn".
   984  func RegisterBeaconNodeValidatorHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error {
   985  	return RegisterBeaconNodeValidatorHandlerClient(ctx, mux, NewBeaconNodeValidatorClient(conn))
   986  }
   987  
   988  // RegisterBeaconNodeValidatorHandlerClient registers the http handlers for service BeaconNodeValidator
   989  // to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "BeaconNodeValidatorClient".
   990  // Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "BeaconNodeValidatorClient"
   991  // doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
   992  // "BeaconNodeValidatorClient" to call the correct interceptors.
   993  func RegisterBeaconNodeValidatorHandlerClient(ctx context.Context, mux *runtime.ServeMux, client BeaconNodeValidatorClient) error {
   994  
   995  	mux.Handle("GET", pattern_BeaconNodeValidator_GetDuties_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
   996  		ctx, cancel := context.WithCancel(req.Context())
   997  		defer cancel()
   998  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
   999  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetDuties")
  1000  		if err != nil {
  1001  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1002  			return
  1003  		}
  1004  		resp, md, err := request_BeaconNodeValidator_GetDuties_0(rctx, inboundMarshaler, client, req, pathParams)
  1005  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1006  		if err != nil {
  1007  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1008  			return
  1009  		}
  1010  
  1011  		forward_BeaconNodeValidator_GetDuties_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1012  
  1013  	})
  1014  
  1015  	mux.Handle("GET", pattern_BeaconNodeValidator_StreamDuties_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1016  		ctx, cancel := context.WithCancel(req.Context())
  1017  		defer cancel()
  1018  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1019  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/StreamDuties")
  1020  		if err != nil {
  1021  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1022  			return
  1023  		}
  1024  		resp, md, err := request_BeaconNodeValidator_StreamDuties_0(rctx, inboundMarshaler, client, req, pathParams)
  1025  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1026  		if err != nil {
  1027  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1028  			return
  1029  		}
  1030  
  1031  		forward_BeaconNodeValidator_StreamDuties_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1032  
  1033  	})
  1034  
  1035  	mux.Handle("GET", pattern_BeaconNodeValidator_DomainData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1036  		ctx, cancel := context.WithCancel(req.Context())
  1037  		defer cancel()
  1038  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1039  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/DomainData")
  1040  		if err != nil {
  1041  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1042  			return
  1043  		}
  1044  		resp, md, err := request_BeaconNodeValidator_DomainData_0(rctx, inboundMarshaler, client, req, pathParams)
  1045  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1046  		if err != nil {
  1047  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1048  			return
  1049  		}
  1050  
  1051  		forward_BeaconNodeValidator_DomainData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1052  
  1053  	})
  1054  
  1055  	mux.Handle("GET", pattern_BeaconNodeValidator_WaitForChainStart_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1056  		ctx, cancel := context.WithCancel(req.Context())
  1057  		defer cancel()
  1058  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1059  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForChainStart")
  1060  		if err != nil {
  1061  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1062  			return
  1063  		}
  1064  		resp, md, err := request_BeaconNodeValidator_WaitForChainStart_0(rctx, inboundMarshaler, client, req, pathParams)
  1065  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1066  		if err != nil {
  1067  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1068  			return
  1069  		}
  1070  
  1071  		forward_BeaconNodeValidator_WaitForChainStart_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1072  
  1073  	})
  1074  
  1075  	mux.Handle("GET", pattern_BeaconNodeValidator_WaitForActivation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1076  		ctx, cancel := context.WithCancel(req.Context())
  1077  		defer cancel()
  1078  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1079  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/WaitForActivation")
  1080  		if err != nil {
  1081  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1082  			return
  1083  		}
  1084  		resp, md, err := request_BeaconNodeValidator_WaitForActivation_0(rctx, inboundMarshaler, client, req, pathParams)
  1085  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1086  		if err != nil {
  1087  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1088  			return
  1089  		}
  1090  
  1091  		forward_BeaconNodeValidator_WaitForActivation_0(ctx, mux, outboundMarshaler, w, req, func() (proto.Message, error) { return resp.Recv() }, mux.GetForwardResponseOptions()...)
  1092  
  1093  	})
  1094  
  1095  	mux.Handle("GET", pattern_BeaconNodeValidator_ValidatorIndex_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1096  		ctx, cancel := context.WithCancel(req.Context())
  1097  		defer cancel()
  1098  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1099  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorIndex")
  1100  		if err != nil {
  1101  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1102  			return
  1103  		}
  1104  		resp, md, err := request_BeaconNodeValidator_ValidatorIndex_0(rctx, inboundMarshaler, client, req, pathParams)
  1105  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1106  		if err != nil {
  1107  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1108  			return
  1109  		}
  1110  
  1111  		forward_BeaconNodeValidator_ValidatorIndex_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1112  
  1113  	})
  1114  
  1115  	mux.Handle("GET", pattern_BeaconNodeValidator_ValidatorStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1116  		ctx, cancel := context.WithCancel(req.Context())
  1117  		defer cancel()
  1118  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1119  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ValidatorStatus")
  1120  		if err != nil {
  1121  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1122  			return
  1123  		}
  1124  		resp, md, err := request_BeaconNodeValidator_ValidatorStatus_0(rctx, inboundMarshaler, client, req, pathParams)
  1125  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1126  		if err != nil {
  1127  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1128  			return
  1129  		}
  1130  
  1131  		forward_BeaconNodeValidator_ValidatorStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1132  
  1133  	})
  1134  
  1135  	mux.Handle("GET", pattern_BeaconNodeValidator_MultipleValidatorStatus_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1136  		ctx, cancel := context.WithCancel(req.Context())
  1137  		defer cancel()
  1138  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1139  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/MultipleValidatorStatus")
  1140  		if err != nil {
  1141  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1142  			return
  1143  		}
  1144  		resp, md, err := request_BeaconNodeValidator_MultipleValidatorStatus_0(rctx, inboundMarshaler, client, req, pathParams)
  1145  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1146  		if err != nil {
  1147  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1148  			return
  1149  		}
  1150  
  1151  		forward_BeaconNodeValidator_MultipleValidatorStatus_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1152  
  1153  	})
  1154  
  1155  	mux.Handle("GET", pattern_BeaconNodeValidator_GetBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1156  		ctx, cancel := context.WithCancel(req.Context())
  1157  		defer cancel()
  1158  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1159  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetBlock")
  1160  		if err != nil {
  1161  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1162  			return
  1163  		}
  1164  		resp, md, err := request_BeaconNodeValidator_GetBlock_0(rctx, inboundMarshaler, client, req, pathParams)
  1165  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1166  		if err != nil {
  1167  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1168  			return
  1169  		}
  1170  
  1171  		forward_BeaconNodeValidator_GetBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1172  
  1173  	})
  1174  
  1175  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeBlock_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1176  		ctx, cancel := context.WithCancel(req.Context())
  1177  		defer cancel()
  1178  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1179  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeBlock")
  1180  		if err != nil {
  1181  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1182  			return
  1183  		}
  1184  		resp, md, err := request_BeaconNodeValidator_ProposeBlock_0(rctx, inboundMarshaler, client, req, pathParams)
  1185  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1186  		if err != nil {
  1187  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1188  			return
  1189  		}
  1190  
  1191  		forward_BeaconNodeValidator_ProposeBlock_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1192  
  1193  	})
  1194  
  1195  	mux.Handle("GET", pattern_BeaconNodeValidator_GetAttestationData_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1196  		ctx, cancel := context.WithCancel(req.Context())
  1197  		defer cancel()
  1198  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1199  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/GetAttestationData")
  1200  		if err != nil {
  1201  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1202  			return
  1203  		}
  1204  		resp, md, err := request_BeaconNodeValidator_GetAttestationData_0(rctx, inboundMarshaler, client, req, pathParams)
  1205  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1206  		if err != nil {
  1207  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1208  			return
  1209  		}
  1210  
  1211  		forward_BeaconNodeValidator_GetAttestationData_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1212  
  1213  	})
  1214  
  1215  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeAttestation_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1216  		ctx, cancel := context.WithCancel(req.Context())
  1217  		defer cancel()
  1218  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1219  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeAttestation")
  1220  		if err != nil {
  1221  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1222  			return
  1223  		}
  1224  		resp, md, err := request_BeaconNodeValidator_ProposeAttestation_0(rctx, inboundMarshaler, client, req, pathParams)
  1225  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1226  		if err != nil {
  1227  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1228  			return
  1229  		}
  1230  
  1231  		forward_BeaconNodeValidator_ProposeAttestation_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1232  
  1233  	})
  1234  
  1235  	mux.Handle("POST", pattern_BeaconNodeValidator_SubmitAggregateSelectionProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1236  		ctx, cancel := context.WithCancel(req.Context())
  1237  		defer cancel()
  1238  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1239  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitAggregateSelectionProof")
  1240  		if err != nil {
  1241  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1242  			return
  1243  		}
  1244  		resp, md, err := request_BeaconNodeValidator_SubmitAggregateSelectionProof_0(rctx, inboundMarshaler, client, req, pathParams)
  1245  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1246  		if err != nil {
  1247  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1248  			return
  1249  		}
  1250  
  1251  		forward_BeaconNodeValidator_SubmitAggregateSelectionProof_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1252  
  1253  	})
  1254  
  1255  	mux.Handle("POST", pattern_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1256  		ctx, cancel := context.WithCancel(req.Context())
  1257  		defer cancel()
  1258  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1259  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubmitSignedAggregateSelectionProof")
  1260  		if err != nil {
  1261  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1262  			return
  1263  		}
  1264  		resp, md, err := request_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(rctx, inboundMarshaler, client, req, pathParams)
  1265  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1266  		if err != nil {
  1267  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1268  			return
  1269  		}
  1270  
  1271  		forward_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1272  
  1273  	})
  1274  
  1275  	mux.Handle("POST", pattern_BeaconNodeValidator_ProposeExit_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1276  		ctx, cancel := context.WithCancel(req.Context())
  1277  		defer cancel()
  1278  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1279  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/ProposeExit")
  1280  		if err != nil {
  1281  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1282  			return
  1283  		}
  1284  		resp, md, err := request_BeaconNodeValidator_ProposeExit_0(rctx, inboundMarshaler, client, req, pathParams)
  1285  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1286  		if err != nil {
  1287  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1288  			return
  1289  		}
  1290  
  1291  		forward_BeaconNodeValidator_ProposeExit_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1292  
  1293  	})
  1294  
  1295  	mux.Handle("POST", pattern_BeaconNodeValidator_SubscribeCommitteeSubnets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1296  		ctx, cancel := context.WithCancel(req.Context())
  1297  		defer cancel()
  1298  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1299  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/SubscribeCommitteeSubnets")
  1300  		if err != nil {
  1301  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1302  			return
  1303  		}
  1304  		resp, md, err := request_BeaconNodeValidator_SubscribeCommitteeSubnets_0(rctx, inboundMarshaler, client, req, pathParams)
  1305  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1306  		if err != nil {
  1307  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1308  			return
  1309  		}
  1310  
  1311  		forward_BeaconNodeValidator_SubscribeCommitteeSubnets_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1312  
  1313  	})
  1314  
  1315  	mux.Handle("GET", pattern_BeaconNodeValidator_CheckDoppelGanger_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
  1316  		ctx, cancel := context.WithCancel(req.Context())
  1317  		defer cancel()
  1318  		inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
  1319  		rctx, err := runtime.AnnotateContext(ctx, mux, req, "/ethereum.eth.v1alpha1.BeaconNodeValidator/CheckDoppelGanger")
  1320  		if err != nil {
  1321  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1322  			return
  1323  		}
  1324  		resp, md, err := request_BeaconNodeValidator_CheckDoppelGanger_0(rctx, inboundMarshaler, client, req, pathParams)
  1325  		ctx = runtime.NewServerMetadataContext(ctx, md)
  1326  		if err != nil {
  1327  			runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
  1328  			return
  1329  		}
  1330  
  1331  		forward_BeaconNodeValidator_CheckDoppelGanger_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
  1332  
  1333  	})
  1334  
  1335  	return nil
  1336  }
  1337  
  1338  var (
  1339  	pattern_BeaconNodeValidator_GetDuties_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "duties"}, ""))
  1340  
  1341  	pattern_BeaconNodeValidator_StreamDuties_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "validator", "duties", "stream"}, ""))
  1342  
  1343  	pattern_BeaconNodeValidator_DomainData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "domain"}, ""))
  1344  
  1345  	pattern_BeaconNodeValidator_WaitForChainStart_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "validator", "chainstart", "stream"}, ""))
  1346  
  1347  	pattern_BeaconNodeValidator_WaitForActivation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "validator", "activation", "stream"}, ""))
  1348  
  1349  	pattern_BeaconNodeValidator_ValidatorIndex_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "index"}, ""))
  1350  
  1351  	pattern_BeaconNodeValidator_ValidatorStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "status"}, ""))
  1352  
  1353  	pattern_BeaconNodeValidator_MultipleValidatorStatus_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "statuses"}, ""))
  1354  
  1355  	pattern_BeaconNodeValidator_GetBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "block"}, ""))
  1356  
  1357  	pattern_BeaconNodeValidator_ProposeBlock_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "block"}, ""))
  1358  
  1359  	pattern_BeaconNodeValidator_GetAttestationData_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "attestation"}, ""))
  1360  
  1361  	pattern_BeaconNodeValidator_ProposeAttestation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "attestation"}, ""))
  1362  
  1363  	pattern_BeaconNodeValidator_SubmitAggregateSelectionProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "aggregate"}, ""))
  1364  
  1365  	pattern_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "aggregate"}, ""))
  1366  
  1367  	pattern_BeaconNodeValidator_ProposeExit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "exit"}, ""))
  1368  
  1369  	pattern_BeaconNodeValidator_SubscribeCommitteeSubnets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3, 2, 4}, []string{"eth", "v1alpha1", "validator", "subnet", "subscribe"}, ""))
  1370  
  1371  	pattern_BeaconNodeValidator_CheckDoppelGanger_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"eth", "v1alpha1", "validator", "doppelganger"}, ""))
  1372  )
  1373  
  1374  var (
  1375  	forward_BeaconNodeValidator_GetDuties_0 = runtime.ForwardResponseMessage
  1376  
  1377  	forward_BeaconNodeValidator_StreamDuties_0 = runtime.ForwardResponseStream
  1378  
  1379  	forward_BeaconNodeValidator_DomainData_0 = runtime.ForwardResponseMessage
  1380  
  1381  	forward_BeaconNodeValidator_WaitForChainStart_0 = runtime.ForwardResponseStream
  1382  
  1383  	forward_BeaconNodeValidator_WaitForActivation_0 = runtime.ForwardResponseStream
  1384  
  1385  	forward_BeaconNodeValidator_ValidatorIndex_0 = runtime.ForwardResponseMessage
  1386  
  1387  	forward_BeaconNodeValidator_ValidatorStatus_0 = runtime.ForwardResponseMessage
  1388  
  1389  	forward_BeaconNodeValidator_MultipleValidatorStatus_0 = runtime.ForwardResponseMessage
  1390  
  1391  	forward_BeaconNodeValidator_GetBlock_0 = runtime.ForwardResponseMessage
  1392  
  1393  	forward_BeaconNodeValidator_ProposeBlock_0 = runtime.ForwardResponseMessage
  1394  
  1395  	forward_BeaconNodeValidator_GetAttestationData_0 = runtime.ForwardResponseMessage
  1396  
  1397  	forward_BeaconNodeValidator_ProposeAttestation_0 = runtime.ForwardResponseMessage
  1398  
  1399  	forward_BeaconNodeValidator_SubmitAggregateSelectionProof_0 = runtime.ForwardResponseMessage
  1400  
  1401  	forward_BeaconNodeValidator_SubmitSignedAggregateSelectionProof_0 = runtime.ForwardResponseMessage
  1402  
  1403  	forward_BeaconNodeValidator_ProposeExit_0 = runtime.ForwardResponseMessage
  1404  
  1405  	forward_BeaconNodeValidator_SubscribeCommitteeSubnets_0 = runtime.ForwardResponseMessage
  1406  
  1407  	forward_BeaconNodeValidator_CheckDoppelGanger_0 = runtime.ForwardResponseMessage
  1408  )