// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.1 // - protoc (unknown) // source: test/v1/test_v1.proto package v1 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 ( TestNoAuthService_Ping_FullMethodName = "/test.v1.TestNoAuthService/Ping" ) // TestNoAuthServiceClient is the client API for TestNoAuthService 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. // // * // Service for handling environments type TestNoAuthServiceClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) } type testNoAuthServiceClient struct { cc grpc.ClientConnInterface } func NewTestNoAuthServiceClient(cc grpc.ClientConnInterface) TestNoAuthServiceClient { return &testNoAuthServiceClient{cc} } func (c *testNoAuthServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PingResponse) err := c.cc.Invoke(ctx, TestNoAuthService_Ping_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // TestNoAuthServiceServer is the server API for TestNoAuthService service. // All implementations should embed UnimplementedTestNoAuthServiceServer // for forward compatibility. // // * // Service for handling environments type TestNoAuthServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) } // UnimplementedTestNoAuthServiceServer should 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 UnimplementedTestNoAuthServiceServer struct{} func (UnimplementedTestNoAuthServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } func (UnimplementedTestNoAuthServiceServer) testEmbeddedByValue() {} // UnsafeTestNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TestNoAuthServiceServer will // result in compilation errors. type UnsafeTestNoAuthServiceServer interface { mustEmbedUnimplementedTestNoAuthServiceServer() } func RegisterTestNoAuthServiceServer(s grpc.ServiceRegistrar, srv TestNoAuthServiceServer) { // If the following call panics, it indicates UnimplementedTestNoAuthServiceServer 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(&TestNoAuthService_ServiceDesc, srv) } func _TestNoAuthService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PingRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TestNoAuthServiceServer).Ping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: TestNoAuthService_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestNoAuthServiceServer).Ping(ctx, req.(*PingRequest)) } return interceptor(ctx, in, info, handler) } // TestNoAuthService_ServiceDesc is the grpc.ServiceDesc for TestNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var TestNoAuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "test.v1.TestNoAuthService", HandlerType: (*TestNoAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _TestNoAuthService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test/v1/test_v1.proto", } const ( TestAuthService_Pong_FullMethodName = "/test.v1.TestAuthService/Pong" ) // TestAuthServiceClient is the client API for TestAuthService 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 TestAuthServiceClient interface { Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) } type testAuthServiceClient struct { cc grpc.ClientConnInterface } func NewTestAuthServiceClient(cc grpc.ClientConnInterface) TestAuthServiceClient { return &testAuthServiceClient{cc} } func (c *testAuthServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PongResponse) err := c.cc.Invoke(ctx, TestAuthService_Pong_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // TestAuthServiceServer is the server API for TestAuthService service. // All implementations should embed UnimplementedTestAuthServiceServer // for forward compatibility. type TestAuthServiceServer interface { Pong(context.Context, *PongRequest) (*PongResponse, error) } // UnimplementedTestAuthServiceServer should 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 UnimplementedTestAuthServiceServer struct{} func (UnimplementedTestAuthServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) { return nil, status.Error(codes.Unimplemented, "method Pong not implemented") } func (UnimplementedTestAuthServiceServer) testEmbeddedByValue() {} // UnsafeTestAuthServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to TestAuthServiceServer will // result in compilation errors. type UnsafeTestAuthServiceServer interface { mustEmbedUnimplementedTestAuthServiceServer() } func RegisterTestAuthServiceServer(s grpc.ServiceRegistrar, srv TestAuthServiceServer) { // If the following call panics, it indicates UnimplementedTestAuthServiceServer 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(&TestAuthService_ServiceDesc, srv) } func _TestAuthService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PongRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(TestAuthServiceServer).Pong(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: TestAuthService_Pong_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(TestAuthServiceServer).Pong(ctx, req.(*PongRequest)) } return interceptor(ctx, in, info, handler) } // TestAuthService_ServiceDesc is the grpc.ServiceDesc for TestAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var TestAuthService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "test.v1.TestAuthService", HandlerType: (*TestAuthServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Pong", Handler: _TestAuthService_Pong_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "test/v1/test_v1.proto", }