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.

121 lines
4.4 KiB

1 year ago
1 year ago
  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.5.1
  4. // - protoc v5.28.1
  5. // source: mount.proto
  6. package mount_pb
  7. import (
  8. context "context"
  9. grpc "google.golang.org/grpc"
  10. codes "google.golang.org/grpc/codes"
  11. status "google.golang.org/grpc/status"
  12. )
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the grpc package it is being compiled against.
  15. // Requires gRPC-Go v1.64.0 or later.
  16. const _ = grpc.SupportPackageIsVersion9
  17. const (
  18. SeaweedMount_Configure_FullMethodName = "/messaging_pb.SeaweedMount/Configure"
  19. )
  20. // SeaweedMountClient is the client API for SeaweedMount service.
  21. //
  22. // 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.
  23. type SeaweedMountClient interface {
  24. Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error)
  25. }
  26. type seaweedMountClient struct {
  27. cc grpc.ClientConnInterface
  28. }
  29. func NewSeaweedMountClient(cc grpc.ClientConnInterface) SeaweedMountClient {
  30. return &seaweedMountClient{cc}
  31. }
  32. func (c *seaweedMountClient) Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*ConfigureResponse, error) {
  33. cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
  34. out := new(ConfigureResponse)
  35. err := c.cc.Invoke(ctx, SeaweedMount_Configure_FullMethodName, in, out, cOpts...)
  36. if err != nil {
  37. return nil, err
  38. }
  39. return out, nil
  40. }
  41. // SeaweedMountServer is the server API for SeaweedMount service.
  42. // All implementations must embed UnimplementedSeaweedMountServer
  43. // for forward compatibility.
  44. type SeaweedMountServer interface {
  45. Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error)
  46. mustEmbedUnimplementedSeaweedMountServer()
  47. }
  48. // UnimplementedSeaweedMountServer must be embedded to have
  49. // forward compatible implementations.
  50. //
  51. // NOTE: this should be embedded by value instead of pointer to avoid a nil
  52. // pointer dereference when methods are called.
  53. type UnimplementedSeaweedMountServer struct{}
  54. func (UnimplementedSeaweedMountServer) Configure(context.Context, *ConfigureRequest) (*ConfigureResponse, error) {
  55. return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
  56. }
  57. func (UnimplementedSeaweedMountServer) mustEmbedUnimplementedSeaweedMountServer() {}
  58. func (UnimplementedSeaweedMountServer) testEmbeddedByValue() {}
  59. // UnsafeSeaweedMountServer may be embedded to opt out of forward compatibility for this service.
  60. // Use of this interface is not recommended, as added methods to SeaweedMountServer will
  61. // result in compilation errors.
  62. type UnsafeSeaweedMountServer interface {
  63. mustEmbedUnimplementedSeaweedMountServer()
  64. }
  65. func RegisterSeaweedMountServer(s grpc.ServiceRegistrar, srv SeaweedMountServer) {
  66. // If the following call pancis, it indicates UnimplementedSeaweedMountServer was
  67. // embedded by pointer and is nil. This will cause panics if an
  68. // unimplemented method is ever invoked, so we test this at initialization
  69. // time to prevent it from happening at runtime later due to I/O.
  70. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
  71. t.testEmbeddedByValue()
  72. }
  73. s.RegisterService(&SeaweedMount_ServiceDesc, srv)
  74. }
  75. func _SeaweedMount_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  76. in := new(ConfigureRequest)
  77. if err := dec(in); err != nil {
  78. return nil, err
  79. }
  80. if interceptor == nil {
  81. return srv.(SeaweedMountServer).Configure(ctx, in)
  82. }
  83. info := &grpc.UnaryServerInfo{
  84. Server: srv,
  85. FullMethod: SeaweedMount_Configure_FullMethodName,
  86. }
  87. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  88. return srv.(SeaweedMountServer).Configure(ctx, req.(*ConfigureRequest))
  89. }
  90. return interceptor(ctx, in, info, handler)
  91. }
  92. // SeaweedMount_ServiceDesc is the grpc.ServiceDesc for SeaweedMount service.
  93. // It's only intended for direct use with grpc.RegisterService,
  94. // and not to be introspected or modified (even as a copy)
  95. var SeaweedMount_ServiceDesc = grpc.ServiceDesc{
  96. ServiceName: "messaging_pb.SeaweedMount",
  97. HandlerType: (*SeaweedMountServer)(nil),
  98. Methods: []grpc.MethodDesc{
  99. {
  100. MethodName: "Configure",
  101. Handler: _SeaweedMount_Configure_Handler,
  102. },
  103. },
  104. Streams: []grpc.StreamDesc{},
  105. Metadata: "mount.proto",
  106. }