You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							750 lines
						
					
					
						
							38 KiB
						
					
					
				
			
		
		
		
			
			
			
		
		
	
	
							750 lines
						
					
					
						
							38 KiB
						
					
					
				
								// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
							 | 
						|
								// versions:
							 | 
						|
								// - protoc-gen-go-grpc v1.5.1
							 | 
						|
								// - protoc             v5.29.3
							 | 
						|
								// source: mq_broker.proto
							 | 
						|
								
							 | 
						|
								package mq_pb
							 | 
						|
								
							 | 
						|
								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.64.0 or later.
							 | 
						|
								const _ = grpc.SupportPackageIsVersion9
							 | 
						|
								
							 | 
						|
								const (
							 | 
						|
									SeaweedMessaging_FindBrokerLeader_FullMethodName           = "/messaging_pb.SeaweedMessaging/FindBrokerLeader"
							 | 
						|
									SeaweedMessaging_PublisherToPubBalancer_FullMethodName     = "/messaging_pb.SeaweedMessaging/PublisherToPubBalancer"
							 | 
						|
									SeaweedMessaging_BalanceTopics_FullMethodName              = "/messaging_pb.SeaweedMessaging/BalanceTopics"
							 | 
						|
									SeaweedMessaging_ListTopics_FullMethodName                 = "/messaging_pb.SeaweedMessaging/ListTopics"
							 | 
						|
									SeaweedMessaging_ConfigureTopic_FullMethodName             = "/messaging_pb.SeaweedMessaging/ConfigureTopic"
							 | 
						|
									SeaweedMessaging_LookupTopicBrokers_FullMethodName         = "/messaging_pb.SeaweedMessaging/LookupTopicBrokers"
							 | 
						|
									SeaweedMessaging_GetTopicConfiguration_FullMethodName      = "/messaging_pb.SeaweedMessaging/GetTopicConfiguration"
							 | 
						|
									SeaweedMessaging_GetTopicPublishers_FullMethodName         = "/messaging_pb.SeaweedMessaging/GetTopicPublishers"
							 | 
						|
									SeaweedMessaging_GetTopicSubscribers_FullMethodName        = "/messaging_pb.SeaweedMessaging/GetTopicSubscribers"
							 | 
						|
									SeaweedMessaging_AssignTopicPartitions_FullMethodName      = "/messaging_pb.SeaweedMessaging/AssignTopicPartitions"
							 | 
						|
									SeaweedMessaging_ClosePublishers_FullMethodName            = "/messaging_pb.SeaweedMessaging/ClosePublishers"
							 | 
						|
									SeaweedMessaging_CloseSubscribers_FullMethodName           = "/messaging_pb.SeaweedMessaging/CloseSubscribers"
							 | 
						|
									SeaweedMessaging_SubscriberToSubCoordinator_FullMethodName = "/messaging_pb.SeaweedMessaging/SubscriberToSubCoordinator"
							 | 
						|
									SeaweedMessaging_PublishMessage_FullMethodName             = "/messaging_pb.SeaweedMessaging/PublishMessage"
							 | 
						|
									SeaweedMessaging_SubscribeMessage_FullMethodName           = "/messaging_pb.SeaweedMessaging/SubscribeMessage"
							 | 
						|
									SeaweedMessaging_PublishFollowMe_FullMethodName            = "/messaging_pb.SeaweedMessaging/PublishFollowMe"
							 | 
						|
									SeaweedMessaging_SubscribeFollowMe_FullMethodName          = "/messaging_pb.SeaweedMessaging/SubscribeFollowMe"
							 | 
						|
									SeaweedMessaging_GetUnflushedMessages_FullMethodName       = "/messaging_pb.SeaweedMessaging/GetUnflushedMessages"
							 | 
						|
								)
							 | 
						|
								
							 | 
						|
								// SeaweedMessagingClient is the client API for SeaweedMessaging 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 SeaweedMessagingClient interface {
							 | 
						|
									// control plane
							 | 
						|
									FindBrokerLeader(ctx context.Context, in *FindBrokerLeaderRequest, opts ...grpc.CallOption) (*FindBrokerLeaderResponse, error)
							 | 
						|
									// control plane for balancer
							 | 
						|
									PublisherToPubBalancer(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse], error)
							 | 
						|
									BalanceTopics(ctx context.Context, in *BalanceTopicsRequest, opts ...grpc.CallOption) (*BalanceTopicsResponse, error)
							 | 
						|
									// control plane for topic partitions
							 | 
						|
									ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error)
							 | 
						|
									ConfigureTopic(ctx context.Context, in *ConfigureTopicRequest, opts ...grpc.CallOption) (*ConfigureTopicResponse, error)
							 | 
						|
									LookupTopicBrokers(ctx context.Context, in *LookupTopicBrokersRequest, opts ...grpc.CallOption) (*LookupTopicBrokersResponse, error)
							 | 
						|
									GetTopicConfiguration(ctx context.Context, in *GetTopicConfigurationRequest, opts ...grpc.CallOption) (*GetTopicConfigurationResponse, error)
							 | 
						|
									GetTopicPublishers(ctx context.Context, in *GetTopicPublishersRequest, opts ...grpc.CallOption) (*GetTopicPublishersResponse, error)
							 | 
						|
									GetTopicSubscribers(ctx context.Context, in *GetTopicSubscribersRequest, opts ...grpc.CallOption) (*GetTopicSubscribersResponse, error)
							 | 
						|
									// invoked by the balancer, running on each broker
							 | 
						|
									AssignTopicPartitions(ctx context.Context, in *AssignTopicPartitionsRequest, opts ...grpc.CallOption) (*AssignTopicPartitionsResponse, error)
							 | 
						|
									ClosePublishers(ctx context.Context, in *ClosePublishersRequest, opts ...grpc.CallOption) (*ClosePublishersResponse, error)
							 | 
						|
									CloseSubscribers(ctx context.Context, in *CloseSubscribersRequest, opts ...grpc.CallOption) (*CloseSubscribersResponse, error)
							 | 
						|
									// subscriber connects to broker balancer, which coordinates with the subscribers
							 | 
						|
									SubscriberToSubCoordinator(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse], error)
							 | 
						|
									// data plane for each topic partition
							 | 
						|
									PublishMessage(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublishMessageRequest, PublishMessageResponse], error)
							 | 
						|
									SubscribeMessage(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SubscribeMessageRequest, SubscribeMessageResponse], error)
							 | 
						|
									// The lead broker asks a follower broker to follow itself
							 | 
						|
									PublishFollowMe(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublishFollowMeRequest, PublishFollowMeResponse], error)
							 | 
						|
									SubscribeFollowMe(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SubscribeFollowMeRequest, SubscribeFollowMeResponse], error)
							 | 
						|
									// SQL query support - get unflushed messages from broker's in-memory buffer (streaming)
							 | 
						|
									GetUnflushedMessages(ctx context.Context, in *GetUnflushedMessagesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetUnflushedMessagesResponse], error)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								type seaweedMessagingClient struct {
							 | 
						|
									cc grpc.ClientConnInterface
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func NewSeaweedMessagingClient(cc grpc.ClientConnInterface) SeaweedMessagingClient {
							 | 
						|
									return &seaweedMessagingClient{cc}
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) FindBrokerLeader(ctx context.Context, in *FindBrokerLeaderRequest, opts ...grpc.CallOption) (*FindBrokerLeaderResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(FindBrokerLeaderResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_FindBrokerLeader_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) PublisherToPubBalancer(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[0], SeaweedMessaging_PublisherToPubBalancer_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublisherToPubBalancerClient = grpc.BidiStreamingClient[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) BalanceTopics(ctx context.Context, in *BalanceTopicsRequest, opts ...grpc.CallOption) (*BalanceTopicsResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(BalanceTopicsResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_BalanceTopics_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) ListTopics(ctx context.Context, in *ListTopicsRequest, opts ...grpc.CallOption) (*ListTopicsResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(ListTopicsResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_ListTopics_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) ConfigureTopic(ctx context.Context, in *ConfigureTopicRequest, opts ...grpc.CallOption) (*ConfigureTopicResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(ConfigureTopicResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_ConfigureTopic_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) LookupTopicBrokers(ctx context.Context, in *LookupTopicBrokersRequest, opts ...grpc.CallOption) (*LookupTopicBrokersResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(LookupTopicBrokersResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_LookupTopicBrokers_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) GetTopicConfiguration(ctx context.Context, in *GetTopicConfigurationRequest, opts ...grpc.CallOption) (*GetTopicConfigurationResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(GetTopicConfigurationResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_GetTopicConfiguration_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) GetTopicPublishers(ctx context.Context, in *GetTopicPublishersRequest, opts ...grpc.CallOption) (*GetTopicPublishersResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(GetTopicPublishersResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_GetTopicPublishers_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) GetTopicSubscribers(ctx context.Context, in *GetTopicSubscribersRequest, opts ...grpc.CallOption) (*GetTopicSubscribersResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(GetTopicSubscribersResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_GetTopicSubscribers_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) AssignTopicPartitions(ctx context.Context, in *AssignTopicPartitionsRequest, opts ...grpc.CallOption) (*AssignTopicPartitionsResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(AssignTopicPartitionsResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_AssignTopicPartitions_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) ClosePublishers(ctx context.Context, in *ClosePublishersRequest, opts ...grpc.CallOption) (*ClosePublishersResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(ClosePublishersResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_ClosePublishers_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) CloseSubscribers(ctx context.Context, in *CloseSubscribersRequest, opts ...grpc.CallOption) (*CloseSubscribersResponse, error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									out := new(CloseSubscribersResponse)
							 | 
						|
									err := c.cc.Invoke(ctx, SeaweedMessaging_CloseSubscribers_FullMethodName, in, out, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return out, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) SubscriberToSubCoordinator(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[1], SeaweedMessaging_SubscriberToSubCoordinator_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscriberToSubCoordinatorClient = grpc.BidiStreamingClient[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) PublishMessage(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublishMessageRequest, PublishMessageResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[2], SeaweedMessaging_PublishMessage_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[PublishMessageRequest, PublishMessageResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublishMessageClient = grpc.BidiStreamingClient[PublishMessageRequest, PublishMessageResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) SubscribeMessage(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SubscribeMessageRequest, SubscribeMessageResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[3], SeaweedMessaging_SubscribeMessage_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[SubscribeMessageRequest, SubscribeMessageResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscribeMessageClient = grpc.BidiStreamingClient[SubscribeMessageRequest, SubscribeMessageResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) PublishFollowMe(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[PublishFollowMeRequest, PublishFollowMeResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[4], SeaweedMessaging_PublishFollowMe_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[PublishFollowMeRequest, PublishFollowMeResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublishFollowMeClient = grpc.BidiStreamingClient[PublishFollowMeRequest, PublishFollowMeResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) SubscribeFollowMe(ctx context.Context, opts ...grpc.CallOption) (grpc.ClientStreamingClient[SubscribeFollowMeRequest, SubscribeFollowMeResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[5], SeaweedMessaging_SubscribeFollowMe_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[SubscribeFollowMeRequest, SubscribeFollowMeResponse]{ClientStream: stream}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscribeFollowMeClient = grpc.ClientStreamingClient[SubscribeFollowMeRequest, SubscribeFollowMeResponse]
							 | 
						|
								
							 | 
						|
								func (c *seaweedMessagingClient) GetUnflushedMessages(ctx context.Context, in *GetUnflushedMessagesRequest, opts ...grpc.CallOption) (grpc.ServerStreamingClient[GetUnflushedMessagesResponse], error) {
							 | 
						|
									cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
							 | 
						|
									stream, err := c.cc.NewStream(ctx, &SeaweedMessaging_ServiceDesc.Streams[6], SeaweedMessaging_GetUnflushedMessages_FullMethodName, cOpts...)
							 | 
						|
									if err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									x := &grpc.GenericClientStream[GetUnflushedMessagesRequest, GetUnflushedMessagesResponse]{ClientStream: stream}
							 | 
						|
									if err := x.ClientStream.SendMsg(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if err := x.ClientStream.CloseSend(); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									return x, nil
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_GetUnflushedMessagesClient = grpc.ServerStreamingClient[GetUnflushedMessagesResponse]
							 | 
						|
								
							 | 
						|
								// SeaweedMessagingServer is the server API for SeaweedMessaging service.
							 | 
						|
								// All implementations must embed UnimplementedSeaweedMessagingServer
							 | 
						|
								// for forward compatibility.
							 | 
						|
								type SeaweedMessagingServer interface {
							 | 
						|
									// control plane
							 | 
						|
									FindBrokerLeader(context.Context, *FindBrokerLeaderRequest) (*FindBrokerLeaderResponse, error)
							 | 
						|
									// control plane for balancer
							 | 
						|
									PublisherToPubBalancer(grpc.BidiStreamingServer[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]) error
							 | 
						|
									BalanceTopics(context.Context, *BalanceTopicsRequest) (*BalanceTopicsResponse, error)
							 | 
						|
									// control plane for topic partitions
							 | 
						|
									ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error)
							 | 
						|
									ConfigureTopic(context.Context, *ConfigureTopicRequest) (*ConfigureTopicResponse, error)
							 | 
						|
									LookupTopicBrokers(context.Context, *LookupTopicBrokersRequest) (*LookupTopicBrokersResponse, error)
							 | 
						|
									GetTopicConfiguration(context.Context, *GetTopicConfigurationRequest) (*GetTopicConfigurationResponse, error)
							 | 
						|
									GetTopicPublishers(context.Context, *GetTopicPublishersRequest) (*GetTopicPublishersResponse, error)
							 | 
						|
									GetTopicSubscribers(context.Context, *GetTopicSubscribersRequest) (*GetTopicSubscribersResponse, error)
							 | 
						|
									// invoked by the balancer, running on each broker
							 | 
						|
									AssignTopicPartitions(context.Context, *AssignTopicPartitionsRequest) (*AssignTopicPartitionsResponse, error)
							 | 
						|
									ClosePublishers(context.Context, *ClosePublishersRequest) (*ClosePublishersResponse, error)
							 | 
						|
									CloseSubscribers(context.Context, *CloseSubscribersRequest) (*CloseSubscribersResponse, error)
							 | 
						|
									// subscriber connects to broker balancer, which coordinates with the subscribers
							 | 
						|
									SubscriberToSubCoordinator(grpc.BidiStreamingServer[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]) error
							 | 
						|
									// data plane for each topic partition
							 | 
						|
									PublishMessage(grpc.BidiStreamingServer[PublishMessageRequest, PublishMessageResponse]) error
							 | 
						|
									SubscribeMessage(grpc.BidiStreamingServer[SubscribeMessageRequest, SubscribeMessageResponse]) error
							 | 
						|
									// The lead broker asks a follower broker to follow itself
							 | 
						|
									PublishFollowMe(grpc.BidiStreamingServer[PublishFollowMeRequest, PublishFollowMeResponse]) error
							 | 
						|
									SubscribeFollowMe(grpc.ClientStreamingServer[SubscribeFollowMeRequest, SubscribeFollowMeResponse]) error
							 | 
						|
									// SQL query support - get unflushed messages from broker's in-memory buffer (streaming)
							 | 
						|
									GetUnflushedMessages(*GetUnflushedMessagesRequest, grpc.ServerStreamingServer[GetUnflushedMessagesResponse]) error
							 | 
						|
									mustEmbedUnimplementedSeaweedMessagingServer()
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// UnimplementedSeaweedMessagingServer must be embedded to have
							 | 
						|
								// forward compatible implementations.
							 | 
						|
								//
							 | 
						|
								// NOTE: this should be embedded by value instead of pointer to avoid a nil
							 | 
						|
								// pointer dereference when methods are called.
							 | 
						|
								type UnimplementedSeaweedMessagingServer struct{}
							 | 
						|
								
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) FindBrokerLeader(context.Context, *FindBrokerLeaderRequest) (*FindBrokerLeaderResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method FindBrokerLeader not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) PublisherToPubBalancer(grpc.BidiStreamingServer[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method PublisherToPubBalancer not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) BalanceTopics(context.Context, *BalanceTopicsRequest) (*BalanceTopicsResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method BalanceTopics not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) ListTopics(context.Context, *ListTopicsRequest) (*ListTopicsResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method ListTopics not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) ConfigureTopic(context.Context, *ConfigureTopicRequest) (*ConfigureTopicResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method ConfigureTopic not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) LookupTopicBrokers(context.Context, *LookupTopicBrokersRequest) (*LookupTopicBrokersResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method LookupTopicBrokers not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) GetTopicConfiguration(context.Context, *GetTopicConfigurationRequest) (*GetTopicConfigurationResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method GetTopicConfiguration not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) GetTopicPublishers(context.Context, *GetTopicPublishersRequest) (*GetTopicPublishersResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method GetTopicPublishers not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) GetTopicSubscribers(context.Context, *GetTopicSubscribersRequest) (*GetTopicSubscribersResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method GetTopicSubscribers not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) AssignTopicPartitions(context.Context, *AssignTopicPartitionsRequest) (*AssignTopicPartitionsResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method AssignTopicPartitions not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) ClosePublishers(context.Context, *ClosePublishersRequest) (*ClosePublishersResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method ClosePublishers not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) CloseSubscribers(context.Context, *CloseSubscribersRequest) (*CloseSubscribersResponse, error) {
							 | 
						|
									return nil, status.Errorf(codes.Unimplemented, "method CloseSubscribers not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) SubscriberToSubCoordinator(grpc.BidiStreamingServer[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method SubscriberToSubCoordinator not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) PublishMessage(grpc.BidiStreamingServer[PublishMessageRequest, PublishMessageResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method PublishMessage not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) SubscribeMessage(grpc.BidiStreamingServer[SubscribeMessageRequest, SubscribeMessageResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method SubscribeMessage not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) PublishFollowMe(grpc.BidiStreamingServer[PublishFollowMeRequest, PublishFollowMeResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method PublishFollowMe not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) SubscribeFollowMe(grpc.ClientStreamingServer[SubscribeFollowMeRequest, SubscribeFollowMeResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method SubscribeFollowMe not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) GetUnflushedMessages(*GetUnflushedMessagesRequest, grpc.ServerStreamingServer[GetUnflushedMessagesResponse]) error {
							 | 
						|
									return status.Errorf(codes.Unimplemented, "method GetUnflushedMessages not implemented")
							 | 
						|
								}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) mustEmbedUnimplementedSeaweedMessagingServer() {}
							 | 
						|
								func (UnimplementedSeaweedMessagingServer) testEmbeddedByValue()                          {}
							 | 
						|
								
							 | 
						|
								// UnsafeSeaweedMessagingServer may be embedded to opt out of forward compatibility for this service.
							 | 
						|
								// Use of this interface is not recommended, as added methods to SeaweedMessagingServer will
							 | 
						|
								// result in compilation errors.
							 | 
						|
								type UnsafeSeaweedMessagingServer interface {
							 | 
						|
									mustEmbedUnimplementedSeaweedMessagingServer()
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func RegisterSeaweedMessagingServer(s grpc.ServiceRegistrar, srv SeaweedMessagingServer) {
							 | 
						|
									// If the following call pancis, it indicates UnimplementedSeaweedMessagingServer was
							 | 
						|
									// embedded by pointer and is nil.  This will cause panics if an
							 | 
						|
									// unimplemented method is ever invoked, so we test this at initialization
							 | 
						|
									// time to prevent it from happening at runtime later due to I/O.
							 | 
						|
									if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
							 | 
						|
										t.testEmbeddedByValue()
							 | 
						|
									}
							 | 
						|
									s.RegisterService(&SeaweedMessaging_ServiceDesc, srv)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_FindBrokerLeader_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(FindBrokerLeaderRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).FindBrokerLeader(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_FindBrokerLeader_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).FindBrokerLeader(ctx, req.(*FindBrokerLeaderRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_PublisherToPubBalancer_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).PublisherToPubBalancer(&grpc.GenericServerStream[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublisherToPubBalancerServer = grpc.BidiStreamingServer[PublisherToPubBalancerRequest, PublisherToPubBalancerResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_BalanceTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(BalanceTopicsRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).BalanceTopics(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_BalanceTopics_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).BalanceTopics(ctx, req.(*BalanceTopicsRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_ListTopics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(ListTopicsRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).ListTopics(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_ListTopics_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).ListTopics(ctx, req.(*ListTopicsRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_ConfigureTopic_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(ConfigureTopicRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).ConfigureTopic(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_ConfigureTopic_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).ConfigureTopic(ctx, req.(*ConfigureTopicRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_LookupTopicBrokers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(LookupTopicBrokersRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).LookupTopicBrokers(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_LookupTopicBrokers_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).LookupTopicBrokers(ctx, req.(*LookupTopicBrokersRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_GetTopicConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(GetTopicConfigurationRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicConfiguration(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_GetTopicConfiguration_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicConfiguration(ctx, req.(*GetTopicConfigurationRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_GetTopicPublishers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(GetTopicPublishersRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicPublishers(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_GetTopicPublishers_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicPublishers(ctx, req.(*GetTopicPublishersRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_GetTopicSubscribers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(GetTopicSubscribersRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicSubscribers(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_GetTopicSubscribers_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).GetTopicSubscribers(ctx, req.(*GetTopicSubscribersRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_AssignTopicPartitions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(AssignTopicPartitionsRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).AssignTopicPartitions(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_AssignTopicPartitions_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).AssignTopicPartitions(ctx, req.(*AssignTopicPartitionsRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_ClosePublishers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(ClosePublishersRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).ClosePublishers(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_ClosePublishers_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).ClosePublishers(ctx, req.(*ClosePublishersRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_CloseSubscribers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
							 | 
						|
									in := new(CloseSubscribersRequest)
							 | 
						|
									if err := dec(in); err != nil {
							 | 
						|
										return nil, err
							 | 
						|
									}
							 | 
						|
									if interceptor == nil {
							 | 
						|
										return srv.(SeaweedMessagingServer).CloseSubscribers(ctx, in)
							 | 
						|
									}
							 | 
						|
									info := &grpc.UnaryServerInfo{
							 | 
						|
										Server:     srv,
							 | 
						|
										FullMethod: SeaweedMessaging_CloseSubscribers_FullMethodName,
							 | 
						|
									}
							 | 
						|
									handler := func(ctx context.Context, req interface{}) (interface{}, error) {
							 | 
						|
										return srv.(SeaweedMessagingServer).CloseSubscribers(ctx, req.(*CloseSubscribersRequest))
							 | 
						|
									}
							 | 
						|
									return interceptor(ctx, in, info, handler)
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_SubscriberToSubCoordinator_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).SubscriberToSubCoordinator(&grpc.GenericServerStream[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscriberToSubCoordinatorServer = grpc.BidiStreamingServer[SubscriberToSubCoordinatorRequest, SubscriberToSubCoordinatorResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_PublishMessage_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).PublishMessage(&grpc.GenericServerStream[PublishMessageRequest, PublishMessageResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublishMessageServer = grpc.BidiStreamingServer[PublishMessageRequest, PublishMessageResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_SubscribeMessage_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).SubscribeMessage(&grpc.GenericServerStream[SubscribeMessageRequest, SubscribeMessageResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscribeMessageServer = grpc.BidiStreamingServer[SubscribeMessageRequest, SubscribeMessageResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_PublishFollowMe_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).PublishFollowMe(&grpc.GenericServerStream[PublishFollowMeRequest, PublishFollowMeResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_PublishFollowMeServer = grpc.BidiStreamingServer[PublishFollowMeRequest, PublishFollowMeResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_SubscribeFollowMe_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									return srv.(SeaweedMessagingServer).SubscribeFollowMe(&grpc.GenericServerStream[SubscribeFollowMeRequest, SubscribeFollowMeResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_SubscribeFollowMeServer = grpc.ClientStreamingServer[SubscribeFollowMeRequest, SubscribeFollowMeResponse]
							 | 
						|
								
							 | 
						|
								func _SeaweedMessaging_GetUnflushedMessages_Handler(srv interface{}, stream grpc.ServerStream) error {
							 | 
						|
									m := new(GetUnflushedMessagesRequest)
							 | 
						|
									if err := stream.RecvMsg(m); err != nil {
							 | 
						|
										return err
							 | 
						|
									}
							 | 
						|
									return srv.(SeaweedMessagingServer).GetUnflushedMessages(m, &grpc.GenericServerStream[GetUnflushedMessagesRequest, GetUnflushedMessagesResponse]{ServerStream: stream})
							 | 
						|
								}
							 | 
						|
								
							 | 
						|
								// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
							 | 
						|
								type SeaweedMessaging_GetUnflushedMessagesServer = grpc.ServerStreamingServer[GetUnflushedMessagesResponse]
							 | 
						|
								
							 | 
						|
								// SeaweedMessaging_ServiceDesc is the grpc.ServiceDesc for SeaweedMessaging service.
							 | 
						|
								// It's only intended for direct use with grpc.RegisterService,
							 | 
						|
								// and not to be introspected or modified (even as a copy)
							 | 
						|
								var SeaweedMessaging_ServiceDesc = grpc.ServiceDesc{
							 | 
						|
									ServiceName: "messaging_pb.SeaweedMessaging",
							 | 
						|
									HandlerType: (*SeaweedMessagingServer)(nil),
							 | 
						|
									Methods: []grpc.MethodDesc{
							 | 
						|
										{
							 | 
						|
											MethodName: "FindBrokerLeader",
							 | 
						|
											Handler:    _SeaweedMessaging_FindBrokerLeader_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "BalanceTopics",
							 | 
						|
											Handler:    _SeaweedMessaging_BalanceTopics_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "ListTopics",
							 | 
						|
											Handler:    _SeaweedMessaging_ListTopics_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "ConfigureTopic",
							 | 
						|
											Handler:    _SeaweedMessaging_ConfigureTopic_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "LookupTopicBrokers",
							 | 
						|
											Handler:    _SeaweedMessaging_LookupTopicBrokers_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "GetTopicConfiguration",
							 | 
						|
											Handler:    _SeaweedMessaging_GetTopicConfiguration_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "GetTopicPublishers",
							 | 
						|
											Handler:    _SeaweedMessaging_GetTopicPublishers_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "GetTopicSubscribers",
							 | 
						|
											Handler:    _SeaweedMessaging_GetTopicSubscribers_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "AssignTopicPartitions",
							 | 
						|
											Handler:    _SeaweedMessaging_AssignTopicPartitions_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "ClosePublishers",
							 | 
						|
											Handler:    _SeaweedMessaging_ClosePublishers_Handler,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											MethodName: "CloseSubscribers",
							 | 
						|
											Handler:    _SeaweedMessaging_CloseSubscribers_Handler,
							 | 
						|
										},
							 | 
						|
									},
							 | 
						|
									Streams: []grpc.StreamDesc{
							 | 
						|
										{
							 | 
						|
											StreamName:    "PublisherToPubBalancer",
							 | 
						|
											Handler:       _SeaweedMessaging_PublisherToPubBalancer_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "SubscriberToSubCoordinator",
							 | 
						|
											Handler:       _SeaweedMessaging_SubscriberToSubCoordinator_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "PublishMessage",
							 | 
						|
											Handler:       _SeaweedMessaging_PublishMessage_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "SubscribeMessage",
							 | 
						|
											Handler:       _SeaweedMessaging_SubscribeMessage_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "PublishFollowMe",
							 | 
						|
											Handler:       _SeaweedMessaging_PublishFollowMe_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "SubscribeFollowMe",
							 | 
						|
											Handler:       _SeaweedMessaging_SubscribeFollowMe_Handler,
							 | 
						|
											ClientStreams: true,
							 | 
						|
										},
							 | 
						|
										{
							 | 
						|
											StreamName:    "GetUnflushedMessages",
							 | 
						|
											Handler:       _SeaweedMessaging_GetUnflushedMessages_Handler,
							 | 
						|
											ServerStreams: true,
							 | 
						|
										},
							 | 
						|
									},
							 | 
						|
									Metadata: "mq_broker.proto",
							 | 
						|
								}
							 |