chore: generate protos (#20582)
This commit is contained in:
parent
ce0d28761a
commit
031b0c94ed
5365
api/cosmos/streaming/v1/grpc.pulsar.go
Normal file
5365
api/cosmos/streaming/v1/grpc.pulsar.go
Normal file
File diff suppressed because it is too large
Load Diff
150
api/cosmos/streaming/v1/grpc_grpc.pb.go
Normal file
150
api/cosmos/streaming/v1/grpc_grpc.pb.go
Normal file
@ -0,0 +1,150 @@
|
||||
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
||||
// versions:
|
||||
// - protoc-gen-go-grpc v1.3.0
|
||||
// - protoc (unknown)
|
||||
// source: cosmos/streaming/v1/grpc.proto
|
||||
|
||||
package streamingv1
|
||||
|
||||
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
|
||||
|
||||
const (
|
||||
ListenerService_ListenDeliverBlock_FullMethodName = "/cosmos.streaming.v1.ListenerService/ListenDeliverBlock"
|
||||
ListenerService_ListenStateChanges_FullMethodName = "/cosmos.streaming.v1.ListenerService/ListenStateChanges"
|
||||
)
|
||||
|
||||
// ListenerServiceClient is the client API for ListenerService 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 ListenerServiceClient interface {
|
||||
// ListenDeliverBlock is the corresponding endpoint for Listener.ListenDeliverBlock
|
||||
ListenDeliverBlock(ctx context.Context, in *ListenDeliverBlockRequest, opts ...grpc.CallOption) (*ListenDeliverBlockResponse, error)
|
||||
// ListenStateChanges is the corresponding endpoint for Listener.ListenStateChanges
|
||||
ListenStateChanges(ctx context.Context, in *ListenStateChangesRequest, opts ...grpc.CallOption) (*ListenStateChangesResponse, error)
|
||||
}
|
||||
|
||||
type listenerServiceClient struct {
|
||||
cc grpc.ClientConnInterface
|
||||
}
|
||||
|
||||
func NewListenerServiceClient(cc grpc.ClientConnInterface) ListenerServiceClient {
|
||||
return &listenerServiceClient{cc}
|
||||
}
|
||||
|
||||
func (c *listenerServiceClient) ListenDeliverBlock(ctx context.Context, in *ListenDeliverBlockRequest, opts ...grpc.CallOption) (*ListenDeliverBlockResponse, error) {
|
||||
out := new(ListenDeliverBlockResponse)
|
||||
err := c.cc.Invoke(ctx, ListenerService_ListenDeliverBlock_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *listenerServiceClient) ListenStateChanges(ctx context.Context, in *ListenStateChangesRequest, opts ...grpc.CallOption) (*ListenStateChangesResponse, error) {
|
||||
out := new(ListenStateChangesResponse)
|
||||
err := c.cc.Invoke(ctx, ListenerService_ListenStateChanges_FullMethodName, in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ListenerServiceServer is the server API for ListenerService service.
|
||||
// All implementations must embed UnimplementedListenerServiceServer
|
||||
// for forward compatibility
|
||||
type ListenerServiceServer interface {
|
||||
// ListenDeliverBlock is the corresponding endpoint for Listener.ListenDeliverBlock
|
||||
ListenDeliverBlock(context.Context, *ListenDeliverBlockRequest) (*ListenDeliverBlockResponse, error)
|
||||
// ListenStateChanges is the corresponding endpoint for Listener.ListenStateChanges
|
||||
ListenStateChanges(context.Context, *ListenStateChangesRequest) (*ListenStateChangesResponse, error)
|
||||
mustEmbedUnimplementedListenerServiceServer()
|
||||
}
|
||||
|
||||
// UnimplementedListenerServiceServer must be embedded to have forward compatible implementations.
|
||||
type UnimplementedListenerServiceServer struct {
|
||||
}
|
||||
|
||||
func (UnimplementedListenerServiceServer) ListenDeliverBlock(context.Context, *ListenDeliverBlockRequest) (*ListenDeliverBlockResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListenDeliverBlock not implemented")
|
||||
}
|
||||
func (UnimplementedListenerServiceServer) ListenStateChanges(context.Context, *ListenStateChangesRequest) (*ListenStateChangesResponse, error) {
|
||||
return nil, status.Errorf(codes.Unimplemented, "method ListenStateChanges not implemented")
|
||||
}
|
||||
func (UnimplementedListenerServiceServer) mustEmbedUnimplementedListenerServiceServer() {}
|
||||
|
||||
// UnsafeListenerServiceServer may be embedded to opt out of forward compatibility for this service.
|
||||
// Use of this interface is not recommended, as added methods to ListenerServiceServer will
|
||||
// result in compilation errors.
|
||||
type UnsafeListenerServiceServer interface {
|
||||
mustEmbedUnimplementedListenerServiceServer()
|
||||
}
|
||||
|
||||
func RegisterListenerServiceServer(s grpc.ServiceRegistrar, srv ListenerServiceServer) {
|
||||
s.RegisterService(&ListenerService_ServiceDesc, srv)
|
||||
}
|
||||
|
||||
func _ListenerService_ListenDeliverBlock_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListenDeliverBlockRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ListenerServiceServer).ListenDeliverBlock(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ListenerService_ListenDeliverBlock_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ListenerServiceServer).ListenDeliverBlock(ctx, req.(*ListenDeliverBlockRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ListenerService_ListenStateChanges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListenStateChangesRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ListenerServiceServer).ListenStateChanges(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: ListenerService_ListenStateChanges_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ListenerServiceServer).ListenStateChanges(ctx, req.(*ListenStateChangesRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// ListenerService_ServiceDesc is the grpc.ServiceDesc for ListenerService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
var ListenerService_ServiceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "cosmos.streaming.v1.ListenerService",
|
||||
HandlerType: (*ListenerServiceServer)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "ListenDeliverBlock",
|
||||
Handler: _ListenerService_ListenDeliverBlock_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListenStateChanges",
|
||||
Handler: _ListenerService_ListenStateChanges_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "cosmos/streaming/v1/grpc.proto",
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user