|
| 1 | +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| 2 | +// versions: |
| 3 | +// - protoc-gen-go-grpc v1.3.0 |
| 4 | +// - protoc (unknown) |
| 5 | +// source: usvl/v1/query.proto |
| 6 | + |
| 7 | +package usvlv1 |
| 8 | + |
| 9 | +import ( |
| 10 | + context "context" |
| 11 | + grpc "google.golang.org/grpc" |
| 12 | + codes "google.golang.org/grpc/codes" |
| 13 | + status "google.golang.org/grpc/status" |
| 14 | +) |
| 15 | + |
| 16 | +// This is a compile-time assertion to ensure that this generated file |
| 17 | +// is compatible with the grpc package it is being compiled against. |
| 18 | +// Requires gRPC-Go v1.32.0 or later. |
| 19 | +const _ = grpc.SupportPackageIsVersion7 |
| 20 | + |
| 21 | +const ( |
| 22 | + Query_Params_FullMethodName = "/usvl.v1.Query/Params" |
| 23 | +) |
| 24 | + |
| 25 | +// QueryClient is the client API for Query service. |
| 26 | +// |
| 27 | +// 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. |
| 28 | +type QueryClient interface { |
| 29 | + // Params queries all parameters of the module. |
| 30 | + Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) |
| 31 | +} |
| 32 | + |
| 33 | +type queryClient struct { |
| 34 | + cc grpc.ClientConnInterface |
| 35 | +} |
| 36 | + |
| 37 | +func NewQueryClient(cc grpc.ClientConnInterface) QueryClient { |
| 38 | + return &queryClient{cc} |
| 39 | +} |
| 40 | + |
| 41 | +func (c *queryClient) Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) { |
| 42 | + out := new(QueryParamsResponse) |
| 43 | + err := c.cc.Invoke(ctx, Query_Params_FullMethodName, in, out, opts...) |
| 44 | + if err != nil { |
| 45 | + return nil, err |
| 46 | + } |
| 47 | + return out, nil |
| 48 | +} |
| 49 | + |
| 50 | +// QueryServer is the server API for Query service. |
| 51 | +// All implementations must embed UnimplementedQueryServer |
| 52 | +// for forward compatibility |
| 53 | +type QueryServer interface { |
| 54 | + // Params queries all parameters of the module. |
| 55 | + Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) |
| 56 | + mustEmbedUnimplementedQueryServer() |
| 57 | +} |
| 58 | + |
| 59 | +// UnimplementedQueryServer must be embedded to have forward compatible implementations. |
| 60 | +type UnimplementedQueryServer struct { |
| 61 | +} |
| 62 | + |
| 63 | +func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) { |
| 64 | + return nil, status.Errorf(codes.Unimplemented, "method Params not implemented") |
| 65 | +} |
| 66 | +func (UnimplementedQueryServer) mustEmbedUnimplementedQueryServer() {} |
| 67 | + |
| 68 | +// UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. |
| 69 | +// Use of this interface is not recommended, as added methods to QueryServer will |
| 70 | +// result in compilation errors. |
| 71 | +type UnsafeQueryServer interface { |
| 72 | + mustEmbedUnimplementedQueryServer() |
| 73 | +} |
| 74 | + |
| 75 | +func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer) { |
| 76 | + s.RegisterService(&Query_ServiceDesc, srv) |
| 77 | +} |
| 78 | + |
| 79 | +func _Query_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 80 | + in := new(QueryParamsRequest) |
| 81 | + if err := dec(in); err != nil { |
| 82 | + return nil, err |
| 83 | + } |
| 84 | + if interceptor == nil { |
| 85 | + return srv.(QueryServer).Params(ctx, in) |
| 86 | + } |
| 87 | + info := &grpc.UnaryServerInfo{ |
| 88 | + Server: srv, |
| 89 | + FullMethod: Query_Params_FullMethodName, |
| 90 | + } |
| 91 | + handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 92 | + return srv.(QueryServer).Params(ctx, req.(*QueryParamsRequest)) |
| 93 | + } |
| 94 | + return interceptor(ctx, in, info, handler) |
| 95 | +} |
| 96 | + |
| 97 | +// Query_ServiceDesc is the grpc.ServiceDesc for Query service. |
| 98 | +// It's only intended for direct use with grpc.RegisterService, |
| 99 | +// and not to be introspected or modified (even as a copy) |
| 100 | +var Query_ServiceDesc = grpc.ServiceDesc{ |
| 101 | + ServiceName: "usvl.v1.Query", |
| 102 | + HandlerType: (*QueryServer)(nil), |
| 103 | + Methods: []grpc.MethodDesc{ |
| 104 | + { |
| 105 | + MethodName: "Params", |
| 106 | + Handler: _Query_Params_Handler, |
| 107 | + }, |
| 108 | + }, |
| 109 | + Streams: []grpc.StreamDesc{}, |
| 110 | + Metadata: "usvl/v1/query.proto", |
| 111 | +} |
0 commit comments