chat_grpc.pb.go 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. package chat
  3. import (
  4. grpc "google.golang.org/grpc"
  5. )
  6. // This is a compile-time assertion to ensure that this generated file
  7. // is compatible with the grpc package it is being compiled against.
  8. // Requires gRPC-Go v1.32.0 or later.
  9. const _ = grpc.SupportPackageIsVersion7
  10. // ChatClient is the client API for Chat service.
  11. //
  12. // 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.
  13. type ChatClient interface {
  14. }
  15. type chatClient struct {
  16. cc grpc.ClientConnInterface
  17. }
  18. func NewChatClient(cc grpc.ClientConnInterface) ChatClient {
  19. return &chatClient{cc}
  20. }
  21. // ChatServer is the server API for Chat service.
  22. // All implementations must embed UnimplementedChatServer
  23. // for forward compatibility
  24. type ChatServer interface {
  25. mustEmbedUnimplementedChatServer()
  26. }
  27. // UnimplementedChatServer must be embedded to have forward compatible implementations.
  28. type UnimplementedChatServer struct {
  29. }
  30. func (UnimplementedChatServer) mustEmbedUnimplementedChatServer() {}
  31. // UnsafeChatServer may be embedded to opt out of forward compatibility for this service.
  32. // Use of this interface is not recommended, as added methods to ChatServer will
  33. // result in compilation errors.
  34. type UnsafeChatServer interface {
  35. mustEmbedUnimplementedChatServer()
  36. }
  37. func RegisterChatServer(s grpc.ServiceRegistrar, srv ChatServer) {
  38. s.RegisterService(&Chat_ServiceDesc, srv)
  39. }
  40. // Chat_ServiceDesc is the grpc.ServiceDesc for Chat service.
  41. // It's only intended for direct use with grpc.RegisterService,
  42. // and not to be introspected or modified (even as a copy)
  43. var Chat_ServiceDesc = grpc.ServiceDesc{
  44. ServiceName: "api.chat.Chat",
  45. HandlerType: (*ChatServer)(nil),
  46. Methods: []grpc.MethodDesc{},
  47. Streams: []grpc.StreamDesc{},
  48. Metadata: "chat.proto",
  49. }