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.

105 lines
3.6 KiB

  1. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
  2. // versions:
  3. // - protoc-gen-go-grpc v1.2.0
  4. // - protoc v3.21.4
  5. // source: s3.proto
  6. package s3_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.32.0 or later.
  16. const _ = grpc.SupportPackageIsVersion7
  17. // SeaweedS3Client is the client API for SeaweedS3 service.
  18. //
  19. // 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.
  20. type SeaweedS3Client interface {
  21. Configure(ctx context.Context, in *S3ConfigureRequest, opts ...grpc.CallOption) (*S3ConfigureResponse, error)
  22. }
  23. type seaweedS3Client struct {
  24. cc grpc.ClientConnInterface
  25. }
  26. func NewSeaweedS3Client(cc grpc.ClientConnInterface) SeaweedS3Client {
  27. return &seaweedS3Client{cc}
  28. }
  29. func (c *seaweedS3Client) Configure(ctx context.Context, in *S3ConfigureRequest, opts ...grpc.CallOption) (*S3ConfigureResponse, error) {
  30. out := new(S3ConfigureResponse)
  31. err := c.cc.Invoke(ctx, "/messaging_pb.SeaweedS3/Configure", in, out, opts...)
  32. if err != nil {
  33. return nil, err
  34. }
  35. return out, nil
  36. }
  37. // SeaweedS3Server is the server API for SeaweedS3 service.
  38. // All implementations must embed UnimplementedSeaweedS3Server
  39. // for forward compatibility
  40. type SeaweedS3Server interface {
  41. Configure(context.Context, *S3ConfigureRequest) (*S3ConfigureResponse, error)
  42. mustEmbedUnimplementedSeaweedS3Server()
  43. }
  44. // UnimplementedSeaweedS3Server must be embedded to have forward compatible implementations.
  45. type UnimplementedSeaweedS3Server struct {
  46. }
  47. func (UnimplementedSeaweedS3Server) Configure(context.Context, *S3ConfigureRequest) (*S3ConfigureResponse, error) {
  48. return nil, status.Errorf(codes.Unimplemented, "method Configure not implemented")
  49. }
  50. func (UnimplementedSeaweedS3Server) mustEmbedUnimplementedSeaweedS3Server() {}
  51. // UnsafeSeaweedS3Server may be embedded to opt out of forward compatibility for this service.
  52. // Use of this interface is not recommended, as added methods to SeaweedS3Server will
  53. // result in compilation errors.
  54. type UnsafeSeaweedS3Server interface {
  55. mustEmbedUnimplementedSeaweedS3Server()
  56. }
  57. func RegisterSeaweedS3Server(s grpc.ServiceRegistrar, srv SeaweedS3Server) {
  58. s.RegisterService(&SeaweedS3_ServiceDesc, srv)
  59. }
  60. func _SeaweedS3_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  61. in := new(S3ConfigureRequest)
  62. if err := dec(in); err != nil {
  63. return nil, err
  64. }
  65. if interceptor == nil {
  66. return srv.(SeaweedS3Server).Configure(ctx, in)
  67. }
  68. info := &grpc.UnaryServerInfo{
  69. Server: srv,
  70. FullMethod: "/messaging_pb.SeaweedS3/Configure",
  71. }
  72. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  73. return srv.(SeaweedS3Server).Configure(ctx, req.(*S3ConfigureRequest))
  74. }
  75. return interceptor(ctx, in, info, handler)
  76. }
  77. // SeaweedS3_ServiceDesc is the grpc.ServiceDesc for SeaweedS3 service.
  78. // It's only intended for direct use with grpc.RegisterService,
  79. // and not to be introspected or modified (even as a copy)
  80. var SeaweedS3_ServiceDesc = grpc.ServiceDesc{
  81. ServiceName: "messaging_pb.SeaweedS3",
  82. HandlerType: (*SeaweedS3Server)(nil),
  83. Methods: []grpc.MethodDesc{
  84. {
  85. MethodName: "Configure",
  86. Handler: _SeaweedS3_Configure_Handler,
  87. },
  88. },
  89. Streams: []grpc.StreamDesc{},
  90. Metadata: "s3.proto",
  91. }