github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/proto/tendermint/privval/service.pb.go (about)

     1  // Code generated by protoc-gen-gogo. DO NOT EDIT.
     2  // source: tendermint/privval/service.proto
     3  
     4  package privval
     5  
     6  import (
     7  	context "context"
     8  	fmt "fmt"
     9  	proto "github.com/gogo/protobuf/proto"
    10  	grpc "google.golang.org/grpc"
    11  	codes "google.golang.org/grpc/codes"
    12  	status "google.golang.org/grpc/status"
    13  	math "math"
    14  )
    15  
    16  // Reference imports to suppress errors if they are not otherwise used.
    17  var _ = proto.Marshal
    18  var _ = fmt.Errorf
    19  var _ = math.Inf
    20  
    21  // This is a compile-time assertion to ensure that this generated file
    22  // is compatible with the proto package it is being compiled against.
    23  // A compilation error at this line likely means your copy of the
    24  // proto package needs to be updated.
    25  const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
    26  
    27  func init() { proto.RegisterFile("tendermint/privval/service.proto", fileDescriptor_7afe74f9f46d3dc9) }
    28  
    29  var fileDescriptor_7afe74f9f46d3dc9 = []byte{
    30  	// 267 bytes of a gzipped FileDescriptorProto
    31  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xb1, 0x4a, 0xc4, 0x40,
    32  	0x10, 0x86, 0x13, 0x0b, 0xd1, 0x60, 0x21, 0x0b, 0x36, 0x57, 0x2c, 0x16, 0x2a, 0x28, 0x24, 0x0b,
    33  	0x5a, 0x5b, 0x68, 0x23, 0x62, 0x13, 0x14, 0x4e, 0x11, 0x2c, 0x36, 0xc9, 0x70, 0x37, 0x90, 0xdb,
    34  	0x59, 0x77, 0x27, 0x81, 0x7b, 0x0b, 0x9f, 0xc6, 0x67, 0xb0, 0xbc, 0xd2, 0x52, 0x92, 0x17, 0x11,
    35  	0xcd, 0x85, 0x43, 0x3c, 0x63, 0x3b, 0xf3, 0x7d, 0xff, 0x5f, 0xfc, 0xd1, 0x3e, 0x83, 0x29, 0xc0,
    36  	0xcd, 0xd0, 0xb0, 0xb2, 0x0e, 0xeb, 0x5a, 0x97, 0xca, 0x83, 0xab, 0x31, 0x87, 0xc4, 0x3a, 0x62,
    37  	0x12, 0x7b, 0x1e, 0x70, 0x05, 0x25, 0x4b, 0x68, 0x24, 0xd7, 0x88, 0x3c, 0xb7, 0xe0, 0x3b, 0xed,
    38  	0xf4, 0x75, 0x23, 0xda, 0x4d, 0x1d, 0xd6, 0x63, 0x5d, 0x62, 0xa1, 0x99, 0xdc, 0x45, 0x7a, 0x2d,
    39  	0x1e, 0xa2, 0xed, 0x2b, 0xe0, 0xb4, 0xca, 0x6e, 0x60, 0x2e, 0x0e, 0x92, 0xb5, 0xc9, 0x49, 0xf7,
    40  	0xbe, 0x85, 0xe7, 0x0a, 0x3c, 0x8f, 0x0e, 0xff, 0xa1, 0xbc, 0x25, 0xe3, 0x41, 0x3c, 0x45, 0x5b,
    41  	0x77, 0x38, 0x31, 0x63, 0x62, 0x10, 0x47, 0x7f, 0x28, 0x3d, 0xd0, 0x47, 0x1f, 0x0f, 0x70, 0x50,
    42  	0x74, 0xe4, 0x32, 0x1e, 0xa3, 0x9d, 0xaf, 0x6b, 0xea, 0xc8, 0x92, 0xd7, 0xa5, 0x38, 0x19, 0x50,
    43  	0x7b, 0xa8, 0xaf, 0x89, 0x07, 0x6b, 0x56, 0x74, 0x57, 0x75, 0x79, 0xff, 0xd6, 0xc8, 0x70, 0xd1,
    44  	0xc8, 0xf0, 0xa3, 0x91, 0xe1, 0x4b, 0x2b, 0x83, 0x45, 0x2b, 0x83, 0xf7, 0x56, 0x06, 0x8f, 0xe7,
    45  	0x13, 0xe4, 0x69, 0x95, 0x25, 0x39, 0xcd, 0x94, 0x76, 0x18, 0x6b, 0x93, 0x4f, 0xc9, 0x29, 0x0f,
    46  	0x18, 0xff, 0x18, 0x83, 0x98, 0xd4, 0xef, 0x75, 0xb2, 0xcd, 0xef, 0xcf, 0xd9, 0x67, 0x00, 0x00,
    47  	0x00, 0xff, 0xff, 0xcf, 0x10, 0xb9, 0xf1, 0xf3, 0x01, 0x00, 0x00,
    48  }
    49  
    50  // Reference imports to suppress errors if they are not otherwise used.
    51  var _ context.Context
    52  var _ grpc.ClientConn
    53  
    54  // This is a compile-time assertion to ensure that this generated file
    55  // is compatible with the grpc package it is being compiled against.
    56  const _ = grpc.SupportPackageIsVersion4
    57  
    58  // PrivValidatorAPIClient is the client API for PrivValidatorAPI service.
    59  //
    60  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    61  type PrivValidatorAPIClient interface {
    62  	GetPubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error)
    63  	SignVote(ctx context.Context, in *SignVoteRequest, opts ...grpc.CallOption) (*SignedVoteResponse, error)
    64  	SignProposal(ctx context.Context, in *SignProposalRequest, opts ...grpc.CallOption) (*SignedProposalResponse, error)
    65  }
    66  
    67  type privValidatorAPIClient struct {
    68  	cc *grpc.ClientConn
    69  }
    70  
    71  func NewPrivValidatorAPIClient(cc *grpc.ClientConn) PrivValidatorAPIClient {
    72  	return &privValidatorAPIClient{cc}
    73  }
    74  
    75  func (c *privValidatorAPIClient) GetPubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error) {
    76  	out := new(PubKeyResponse)
    77  	err := c.cc.Invoke(ctx, "/seitendermint.privval.PrivValidatorAPI/GetPubKey", in, out, opts...)
    78  	if err != nil {
    79  		return nil, err
    80  	}
    81  	return out, nil
    82  }
    83  
    84  func (c *privValidatorAPIClient) SignVote(ctx context.Context, in *SignVoteRequest, opts ...grpc.CallOption) (*SignedVoteResponse, error) {
    85  	out := new(SignedVoteResponse)
    86  	err := c.cc.Invoke(ctx, "/seitendermint.privval.PrivValidatorAPI/SignVote", in, out, opts...)
    87  	if err != nil {
    88  		return nil, err
    89  	}
    90  	return out, nil
    91  }
    92  
    93  func (c *privValidatorAPIClient) SignProposal(ctx context.Context, in *SignProposalRequest, opts ...grpc.CallOption) (*SignedProposalResponse, error) {
    94  	out := new(SignedProposalResponse)
    95  	err := c.cc.Invoke(ctx, "/seitendermint.privval.PrivValidatorAPI/SignProposal", in, out, opts...)
    96  	if err != nil {
    97  		return nil, err
    98  	}
    99  	return out, nil
   100  }
   101  
   102  // PrivValidatorAPIServer is the server API for PrivValidatorAPI service.
   103  type PrivValidatorAPIServer interface {
   104  	GetPubKey(context.Context, *PubKeyRequest) (*PubKeyResponse, error)
   105  	SignVote(context.Context, *SignVoteRequest) (*SignedVoteResponse, error)
   106  	SignProposal(context.Context, *SignProposalRequest) (*SignedProposalResponse, error)
   107  }
   108  
   109  // UnimplementedPrivValidatorAPIServer can be embedded to have forward compatible implementations.
   110  type UnimplementedPrivValidatorAPIServer struct {
   111  }
   112  
   113  func (*UnimplementedPrivValidatorAPIServer) GetPubKey(ctx context.Context, req *PubKeyRequest) (*PubKeyResponse, error) {
   114  	return nil, status.Errorf(codes.Unimplemented, "method GetPubKey not implemented")
   115  }
   116  func (*UnimplementedPrivValidatorAPIServer) SignVote(ctx context.Context, req *SignVoteRequest) (*SignedVoteResponse, error) {
   117  	return nil, status.Errorf(codes.Unimplemented, "method SignVote not implemented")
   118  }
   119  func (*UnimplementedPrivValidatorAPIServer) SignProposal(ctx context.Context, req *SignProposalRequest) (*SignedProposalResponse, error) {
   120  	return nil, status.Errorf(codes.Unimplemented, "method SignProposal not implemented")
   121  }
   122  
   123  func RegisterPrivValidatorAPIServer(s *grpc.Server, srv PrivValidatorAPIServer) {
   124  	s.RegisterService(&_PrivValidatorAPI_serviceDesc, srv)
   125  }
   126  
   127  func _PrivValidatorAPI_GetPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   128  	in := new(PubKeyRequest)
   129  	if err := dec(in); err != nil {
   130  		return nil, err
   131  	}
   132  	if interceptor == nil {
   133  		return srv.(PrivValidatorAPIServer).GetPubKey(ctx, in)
   134  	}
   135  	info := &grpc.UnaryServerInfo{
   136  		Server:     srv,
   137  		FullMethod: "/seitendermint.privval.PrivValidatorAPI/GetPubKey",
   138  	}
   139  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   140  		return srv.(PrivValidatorAPIServer).GetPubKey(ctx, req.(*PubKeyRequest))
   141  	}
   142  	return interceptor(ctx, in, info, handler)
   143  }
   144  
   145  func _PrivValidatorAPI_SignVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   146  	in := new(SignVoteRequest)
   147  	if err := dec(in); err != nil {
   148  		return nil, err
   149  	}
   150  	if interceptor == nil {
   151  		return srv.(PrivValidatorAPIServer).SignVote(ctx, in)
   152  	}
   153  	info := &grpc.UnaryServerInfo{
   154  		Server:     srv,
   155  		FullMethod: "/seitendermint.privval.PrivValidatorAPI/SignVote",
   156  	}
   157  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   158  		return srv.(PrivValidatorAPIServer).SignVote(ctx, req.(*SignVoteRequest))
   159  	}
   160  	return interceptor(ctx, in, info, handler)
   161  }
   162  
   163  func _PrivValidatorAPI_SignProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   164  	in := new(SignProposalRequest)
   165  	if err := dec(in); err != nil {
   166  		return nil, err
   167  	}
   168  	if interceptor == nil {
   169  		return srv.(PrivValidatorAPIServer).SignProposal(ctx, in)
   170  	}
   171  	info := &grpc.UnaryServerInfo{
   172  		Server:     srv,
   173  		FullMethod: "/seitendermint.privval.PrivValidatorAPI/SignProposal",
   174  	}
   175  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   176  		return srv.(PrivValidatorAPIServer).SignProposal(ctx, req.(*SignProposalRequest))
   177  	}
   178  	return interceptor(ctx, in, info, handler)
   179  }
   180  
   181  var _PrivValidatorAPI_serviceDesc = grpc.ServiceDesc{
   182  	ServiceName: "seitendermint.privval.PrivValidatorAPI",
   183  	HandlerType: (*PrivValidatorAPIServer)(nil),
   184  	Methods: []grpc.MethodDesc{
   185  		{
   186  			MethodName: "GetPubKey",
   187  			Handler:    _PrivValidatorAPI_GetPubKey_Handler,
   188  		},
   189  		{
   190  			MethodName: "SignVote",
   191  			Handler:    _PrivValidatorAPI_SignVote_Handler,
   192  		},
   193  		{
   194  			MethodName: "SignProposal",
   195  			Handler:    _PrivValidatorAPI_SignProposal_Handler,
   196  		},
   197  	},
   198  	Streams:  []grpc.StreamDesc{},
   199  	Metadata: "tendermint/privval/service.proto",
   200  }