108 lines
3.6 KiB
Go
108 lines
3.6 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.2.0
|
|
// - protoc (unknown)
|
|
// source: cosmos/base/node/v1beta1/query.proto
|
|
|
|
package nodev1beta1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.32.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion7
|
|
|
|
// ServiceClient is the client API for Service service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type ServiceClient interface {
|
|
// Config queries for the operator configuration.
|
|
Config(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error)
|
|
}
|
|
|
|
type serviceClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewServiceClient(cc grpc.ClientConnInterface) ServiceClient {
|
|
return &serviceClient{cc}
|
|
}
|
|
|
|
func (c *serviceClient) Config(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (*ConfigResponse, error) {
|
|
out := new(ConfigResponse)
|
|
err := c.cc.Invoke(ctx, "/cosmos.base.node.v1beta1.Service/Config", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ServiceServer is the server API for Service service.
|
|
// All implementations must embed UnimplementedServiceServer
|
|
// for forward compatibility
|
|
type ServiceServer interface {
|
|
// Config queries for the operator configuration.
|
|
Config(context.Context, *ConfigRequest) (*ConfigResponse, error)
|
|
mustEmbedUnimplementedServiceServer()
|
|
}
|
|
|
|
// UnimplementedServiceServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedServiceServer struct {
|
|
}
|
|
|
|
func (UnimplementedServiceServer) Config(context.Context, *ConfigRequest) (*ConfigResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Config not implemented")
|
|
}
|
|
func (UnimplementedServiceServer) mustEmbedUnimplementedServiceServer() {}
|
|
|
|
// UnsafeServiceServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ServiceServer will
|
|
// result in compilation errors.
|
|
type UnsafeServiceServer interface {
|
|
mustEmbedUnimplementedServiceServer()
|
|
}
|
|
|
|
func RegisterServiceServer(s grpc.ServiceRegistrar, srv ServiceServer) {
|
|
s.RegisterService(&Service_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Service_Config_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ConfigRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ServiceServer).Config(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/cosmos.base.node.v1beta1.Service/Config",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ServiceServer).Config(ctx, req.(*ConfigRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Service_ServiceDesc is the grpc.ServiceDesc for Service service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Service_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "cosmos.base.node.v1beta1.Service",
|
|
HandlerType: (*ServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Config",
|
|
Handler: _Service_Config_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "cosmos/base/node/v1beta1/query.proto",
|
|
}
|