github.com/number571/tendermint@v0.34.11-gost/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  	// 251 bytes of a gzipped FileDescriptorProto
    31  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x52, 0x28, 0x49, 0xcd, 0x4b,
    32  	0x49, 0x2d, 0xca, 0xcd, 0xcc, 0x2b, 0xd1, 0x2f, 0x28, 0xca, 0x2c, 0x2b, 0x4b, 0xcc, 0xd1, 0x2f,
    33  	0x4e, 0x2d, 0x2a, 0xcb, 0x4c, 0x4e, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x12, 0x42, 0xa8,
    34  	0xd0, 0x83, 0xaa, 0x90, 0x92, 0xc3, 0xa2, 0xab, 0xa4, 0xb2, 0x20, 0xb5, 0x18, 0xa2, 0xc7, 0x68,
    35  	0x09, 0x13, 0x97, 0x40, 0x40, 0x51, 0x66, 0x59, 0x58, 0x62, 0x4e, 0x66, 0x4a, 0x62, 0x49, 0x7e,
    36  	0x91, 0x63, 0x80, 0xa7, 0x50, 0x10, 0x17, 0xa7, 0x7b, 0x6a, 0x49, 0x40, 0x69, 0x92, 0x77, 0x6a,
    37  	0xa5, 0x90, 0xa2, 0x1e, 0xa6, 0xb1, 0x7a, 0x10, 0xb9, 0xa0, 0xd4, 0xc2, 0xd2, 0xd4, 0xe2, 0x12,
    38  	0x29, 0x25, 0x7c, 0x4a, 0x8a, 0x0b, 0xf2, 0xf3, 0x8a, 0x53, 0x85, 0xc2, 0xb9, 0x38, 0x82, 0x33,
    39  	0xd3, 0xf3, 0xc2, 0xf2, 0x4b, 0x52, 0x85, 0x94, 0xb1, 0xa9, 0x87, 0xc9, 0xc2, 0x0c, 0x55, 0xc3,
    40  	0xa5, 0x28, 0x35, 0x05, 0xa2, 0x0c, 0x6a, 0x70, 0x32, 0x17, 0x0f, 0x48, 0x34, 0xa0, 0x28, 0xbf,
    41  	0x20, 0xbf, 0x38, 0x31, 0x47, 0x48, 0x1d, 0x97, 0x3e, 0x98, 0x0a, 0x98, 0x05, 0x5a, 0xb8, 0x2d,
    42  	0x40, 0x28, 0x85, 0x58, 0xe2, 0x14, 0x7c, 0xe2, 0x91, 0x1c, 0xe3, 0x85, 0x47, 0x72, 0x8c, 0x0f,
    43  	0x1e, 0xc9, 0x31, 0x4e, 0x78, 0x2c, 0xc7, 0x70, 0xe1, 0xb1, 0x1c, 0xc3, 0x8d, 0xc7, 0x72, 0x0c,
    44  	0x51, 0x96, 0xe9, 0x99, 0x25, 0x19, 0xa5, 0x49, 0x7a, 0xc9, 0xf9, 0xb9, 0xfa, 0x48, 0x61, 0x8d,
    45  	0x12, 0xec, 0xf9, 0x25, 0xf9, 0xfa, 0x98, 0xf1, 0x90, 0xc4, 0x06, 0x96, 0x31, 0x06, 0x04, 0x00,
    46  	0x00, 0xff, 0xff, 0x42, 0x60, 0x24, 0x48, 0xda, 0x01, 0x00, 0x00,
    47  }
    48  
    49  // Reference imports to suppress errors if they are not otherwise used.
    50  var _ context.Context
    51  var _ grpc.ClientConn
    52  
    53  // This is a compile-time assertion to ensure that this generated file
    54  // is compatible with the grpc package it is being compiled against.
    55  const _ = grpc.SupportPackageIsVersion4
    56  
    57  // PrivValidatorAPIClient is the client API for PrivValidatorAPI service.
    58  //
    59  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
    60  type PrivValidatorAPIClient interface {
    61  	GetPubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error)
    62  	SignVote(ctx context.Context, in *SignVoteRequest, opts ...grpc.CallOption) (*SignedVoteResponse, error)
    63  	SignProposal(ctx context.Context, in *SignProposalRequest, opts ...grpc.CallOption) (*SignedProposalResponse, error)
    64  }
    65  
    66  type privValidatorAPIClient struct {
    67  	cc *grpc.ClientConn
    68  }
    69  
    70  func NewPrivValidatorAPIClient(cc *grpc.ClientConn) PrivValidatorAPIClient {
    71  	return &privValidatorAPIClient{cc}
    72  }
    73  
    74  func (c *privValidatorAPIClient) GetPubKey(ctx context.Context, in *PubKeyRequest, opts ...grpc.CallOption) (*PubKeyResponse, error) {
    75  	out := new(PubKeyResponse)
    76  	err := c.cc.Invoke(ctx, "/tendermint.privval.PrivValidatorAPI/GetPubKey", in, out, opts...)
    77  	if err != nil {
    78  		return nil, err
    79  	}
    80  	return out, nil
    81  }
    82  
    83  func (c *privValidatorAPIClient) SignVote(ctx context.Context, in *SignVoteRequest, opts ...grpc.CallOption) (*SignedVoteResponse, error) {
    84  	out := new(SignedVoteResponse)
    85  	err := c.cc.Invoke(ctx, "/tendermint.privval.PrivValidatorAPI/SignVote", in, out, opts...)
    86  	if err != nil {
    87  		return nil, err
    88  	}
    89  	return out, nil
    90  }
    91  
    92  func (c *privValidatorAPIClient) SignProposal(ctx context.Context, in *SignProposalRequest, opts ...grpc.CallOption) (*SignedProposalResponse, error) {
    93  	out := new(SignedProposalResponse)
    94  	err := c.cc.Invoke(ctx, "/tendermint.privval.PrivValidatorAPI/SignProposal", in, out, opts...)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return out, nil
    99  }
   100  
   101  // PrivValidatorAPIServer is the server API for PrivValidatorAPI service.
   102  type PrivValidatorAPIServer interface {
   103  	GetPubKey(context.Context, *PubKeyRequest) (*PubKeyResponse, error)
   104  	SignVote(context.Context, *SignVoteRequest) (*SignedVoteResponse, error)
   105  	SignProposal(context.Context, *SignProposalRequest) (*SignedProposalResponse, error)
   106  }
   107  
   108  // UnimplementedPrivValidatorAPIServer can be embedded to have forward compatible implementations.
   109  type UnimplementedPrivValidatorAPIServer struct {
   110  }
   111  
   112  func (*UnimplementedPrivValidatorAPIServer) GetPubKey(ctx context.Context, req *PubKeyRequest) (*PubKeyResponse, error) {
   113  	return nil, status.Errorf(codes.Unimplemented, "method GetPubKey not implemented")
   114  }
   115  func (*UnimplementedPrivValidatorAPIServer) SignVote(ctx context.Context, req *SignVoteRequest) (*SignedVoteResponse, error) {
   116  	return nil, status.Errorf(codes.Unimplemented, "method SignVote not implemented")
   117  }
   118  func (*UnimplementedPrivValidatorAPIServer) SignProposal(ctx context.Context, req *SignProposalRequest) (*SignedProposalResponse, error) {
   119  	return nil, status.Errorf(codes.Unimplemented, "method SignProposal not implemented")
   120  }
   121  
   122  func RegisterPrivValidatorAPIServer(s *grpc.Server, srv PrivValidatorAPIServer) {
   123  	s.RegisterService(&_PrivValidatorAPI_serviceDesc, srv)
   124  }
   125  
   126  func _PrivValidatorAPI_GetPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   127  	in := new(PubKeyRequest)
   128  	if err := dec(in); err != nil {
   129  		return nil, err
   130  	}
   131  	if interceptor == nil {
   132  		return srv.(PrivValidatorAPIServer).GetPubKey(ctx, in)
   133  	}
   134  	info := &grpc.UnaryServerInfo{
   135  		Server:     srv,
   136  		FullMethod: "/tendermint.privval.PrivValidatorAPI/GetPubKey",
   137  	}
   138  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   139  		return srv.(PrivValidatorAPIServer).GetPubKey(ctx, req.(*PubKeyRequest))
   140  	}
   141  	return interceptor(ctx, in, info, handler)
   142  }
   143  
   144  func _PrivValidatorAPI_SignVote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   145  	in := new(SignVoteRequest)
   146  	if err := dec(in); err != nil {
   147  		return nil, err
   148  	}
   149  	if interceptor == nil {
   150  		return srv.(PrivValidatorAPIServer).SignVote(ctx, in)
   151  	}
   152  	info := &grpc.UnaryServerInfo{
   153  		Server:     srv,
   154  		FullMethod: "/tendermint.privval.PrivValidatorAPI/SignVote",
   155  	}
   156  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   157  		return srv.(PrivValidatorAPIServer).SignVote(ctx, req.(*SignVoteRequest))
   158  	}
   159  	return interceptor(ctx, in, info, handler)
   160  }
   161  
   162  func _PrivValidatorAPI_SignProposal_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   163  	in := new(SignProposalRequest)
   164  	if err := dec(in); err != nil {
   165  		return nil, err
   166  	}
   167  	if interceptor == nil {
   168  		return srv.(PrivValidatorAPIServer).SignProposal(ctx, in)
   169  	}
   170  	info := &grpc.UnaryServerInfo{
   171  		Server:     srv,
   172  		FullMethod: "/tendermint.privval.PrivValidatorAPI/SignProposal",
   173  	}
   174  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   175  		return srv.(PrivValidatorAPIServer).SignProposal(ctx, req.(*SignProposalRequest))
   176  	}
   177  	return interceptor(ctx, in, info, handler)
   178  }
   179  
   180  var _PrivValidatorAPI_serviceDesc = grpc.ServiceDesc{
   181  	ServiceName: "tendermint.privval.PrivValidatorAPI",
   182  	HandlerType: (*PrivValidatorAPIServer)(nil),
   183  	Methods: []grpc.MethodDesc{
   184  		{
   185  			MethodName: "GetPubKey",
   186  			Handler:    _PrivValidatorAPI_GetPubKey_Handler,
   187  		},
   188  		{
   189  			MethodName: "SignVote",
   190  			Handler:    _PrivValidatorAPI_SignVote_Handler,
   191  		},
   192  		{
   193  			MethodName: "SignProposal",
   194  			Handler:    _PrivValidatorAPI_SignProposal_Handler,
   195  		},
   196  	},
   197  	Streams:  []grpc.StreamDesc{},
   198  	Metadata: "tendermint/privval/service.proto",
   199  }