From 0f4959475dc96b4e5ea8ae3988502d138347341d Mon Sep 17 00:00:00 2001 From: devops-bot Date: Mon, 11 May 2026 09:46:40 +0000 Subject: [PATCH] Update protobuf definitions: dbd64234 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/dbd64234397853a9ea2413fb29bd92b6fea3cec5 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/67 --- pkg/test/v1/test_v1.pb.go | 14 ++-- pkg/test/v1/test_v1_grpc.pb.go | 124 ++++++++++++++++----------------- 2 files changed, 69 insertions(+), 69 deletions(-) diff --git a/pkg/test/v1/test_v1.pb.go b/pkg/test/v1/test_v1.pb.go index d255f3d..63f7b20 100644 --- a/pkg/test/v1/test_v1.pb.go +++ b/pkg/test/v1/test_v1.pb.go @@ -174,9 +174,9 @@ const file_test_v1_test_v1_proto_rawDesc = "" + "\fPingResponse\"\r\n" + "\vPongRequest\"\x0e\n" + "\fPongResponse2J\n" + - "\x11TestNoAuthService\x125\n" + - "\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x002H\n" + - "\x0fTestAuthService\x125\n" + + "\x11PublicTestService\x125\n" + + "\x04Ping\x12\x14.test.v1.PingRequest\x1a\x15.test.v1.PingResponse\"\x002D\n" + + "\vTestService\x125\n" + "\x04Pong\x12\x14.test.v1.PongRequest\x1a\x15.test.v1.PongResponse\"\x00BEZCgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/test/v1b\x06proto3" var ( @@ -199,10 +199,10 @@ var file_test_v1_test_v1_proto_goTypes = []any{ (*PongResponse)(nil), // 3: test.v1.PongResponse } var file_test_v1_test_v1_proto_depIdxs = []int32{ - 0, // 0: test.v1.TestNoAuthService.Ping:input_type -> test.v1.PingRequest - 2, // 1: test.v1.TestAuthService.Pong:input_type -> test.v1.PongRequest - 1, // 2: test.v1.TestNoAuthService.Ping:output_type -> test.v1.PingResponse - 3, // 3: test.v1.TestAuthService.Pong:output_type -> test.v1.PongResponse + 0, // 0: test.v1.PublicTestService.Ping:input_type -> test.v1.PingRequest + 2, // 1: test.v1.TestService.Pong:input_type -> test.v1.PongRequest + 1, // 2: test.v1.PublicTestService.Ping:output_type -> test.v1.PingResponse + 3, // 3: test.v1.TestService.Pong:output_type -> test.v1.PongResponse 2, // [2:4] is the sub-list for method output_type 0, // [0:2] is the sub-list for method input_type 0, // [0:0] is the sub-list for extension type_name diff --git a/pkg/test/v1/test_v1_grpc.pb.go b/pkg/test/v1/test_v1_grpc.pb.go index 1926f34..d00c602 100644 --- a/pkg/test/v1/test_v1_grpc.pb.go +++ b/pkg/test/v1/test_v1_grpc.pb.go @@ -19,105 +19,105 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - TestNoAuthService_Ping_FullMethodName = "/test.v1.TestNoAuthService/Ping" + PublicTestService_Ping_FullMethodName = "/test.v1.PublicTestService/Ping" ) -// TestNoAuthServiceClient is the client API for TestNoAuthService service. +// PublicTestServiceClient is the client API for PublicTestService 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 { +type PublicTestServiceClient interface { Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) } -type testNoAuthServiceClient struct { +type publicTestServiceClient struct { cc grpc.ClientConnInterface } -func NewTestNoAuthServiceClient(cc grpc.ClientConnInterface) TestNoAuthServiceClient { - return &testNoAuthServiceClient{cc} +func NewPublicTestServiceClient(cc grpc.ClientConnInterface) PublicTestServiceClient { + return &publicTestServiceClient{cc} } -func (c *testNoAuthServiceClient) Ping(ctx context.Context, in *PingRequest, opts ...grpc.CallOption) (*PingResponse, error) { +func (c *publicTestServiceClient) 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...) + err := c.cc.Invoke(ctx, PublicTestService_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 +// PublicTestServiceServer is the server API for PublicTestService service. +// All implementations should embed UnimplementedPublicTestServiceServer // for forward compatibility. // // * // Service for handling environments -type TestNoAuthServiceServer interface { +type PublicTestServiceServer interface { Ping(context.Context, *PingRequest) (*PingResponse, error) } -// UnimplementedTestNoAuthServiceServer should be embedded to have +// UnimplementedPublicTestServiceServer 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{} +type UnimplementedPublicTestServiceServer struct{} -func (UnimplementedTestNoAuthServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { +func (UnimplementedPublicTestServiceServer) Ping(context.Context, *PingRequest) (*PingResponse, error) { return nil, status.Error(codes.Unimplemented, "method Ping not implemented") } -func (UnimplementedTestNoAuthServiceServer) testEmbeddedByValue() {} +func (UnimplementedPublicTestServiceServer) 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 +// UnsafePublicTestServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to PublicTestServiceServer will // result in compilation errors. -type UnsafeTestNoAuthServiceServer interface { - mustEmbedUnimplementedTestNoAuthServiceServer() +type UnsafePublicTestServiceServer interface { + mustEmbedUnimplementedPublicTestServiceServer() } -func RegisterTestNoAuthServiceServer(s grpc.ServiceRegistrar, srv TestNoAuthServiceServer) { - // If the following call panics, it indicates UnimplementedTestNoAuthServiceServer was +func RegisterPublicTestServiceServer(s grpc.ServiceRegistrar, srv PublicTestServiceServer) { + // If the following call panics, it indicates UnimplementedPublicTestServiceServer 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) + s.RegisterService(&PublicTestService_ServiceDesc, srv) } -func _TestNoAuthService_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _PublicTestService_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) + return srv.(PublicTestServiceServer).Ping(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: TestNoAuthService_Ping_FullMethodName, + FullMethod: PublicTestService_Ping_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestNoAuthServiceServer).Ping(ctx, req.(*PingRequest)) + return srv.(PublicTestServiceServer).Ping(ctx, req.(*PingRequest)) } return interceptor(ctx, in, info, handler) } -// TestNoAuthService_ServiceDesc is the grpc.ServiceDesc for TestNoAuthService service. +// PublicTestService_ServiceDesc is the grpc.ServiceDesc for PublicTestService 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), +var PublicTestService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.v1.PublicTestService", + HandlerType: (*PublicTestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", - Handler: _TestNoAuthService_Ping_Handler, + Handler: _PublicTestService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, @@ -125,99 +125,99 @@ var TestNoAuthService_ServiceDesc = grpc.ServiceDesc{ } const ( - TestAuthService_Pong_FullMethodName = "/test.v1.TestAuthService/Pong" + TestService_Pong_FullMethodName = "/test.v1.TestService/Pong" ) -// TestAuthServiceClient is the client API for TestAuthService service. +// TestServiceClient is the client API for TestService 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 { +type TestServiceClient interface { Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) } -type testAuthServiceClient struct { +type testServiceClient struct { cc grpc.ClientConnInterface } -func NewTestAuthServiceClient(cc grpc.ClientConnInterface) TestAuthServiceClient { - return &testAuthServiceClient{cc} +func NewTestServiceClient(cc grpc.ClientConnInterface) TestServiceClient { + return &testServiceClient{cc} } -func (c *testAuthServiceClient) Pong(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) { +func (c *testServiceClient) 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...) + err := c.cc.Invoke(ctx, TestService_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 +// TestServiceServer is the server API for TestService service. +// All implementations should embed UnimplementedTestServiceServer // for forward compatibility. -type TestAuthServiceServer interface { +type TestServiceServer interface { Pong(context.Context, *PongRequest) (*PongResponse, error) } -// UnimplementedTestAuthServiceServer should be embedded to have +// UnimplementedTestServiceServer 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{} +type UnimplementedTestServiceServer struct{} -func (UnimplementedTestAuthServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) { +func (UnimplementedTestServiceServer) Pong(context.Context, *PongRequest) (*PongResponse, error) { return nil, status.Error(codes.Unimplemented, "method Pong not implemented") } -func (UnimplementedTestAuthServiceServer) testEmbeddedByValue() {} +func (UnimplementedTestServiceServer) 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 +// UnsafeTestServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to TestServiceServer will // result in compilation errors. -type UnsafeTestAuthServiceServer interface { - mustEmbedUnimplementedTestAuthServiceServer() +type UnsafeTestServiceServer interface { + mustEmbedUnimplementedTestServiceServer() } -func RegisterTestAuthServiceServer(s grpc.ServiceRegistrar, srv TestAuthServiceServer) { - // If the following call panics, it indicates UnimplementedTestAuthServiceServer was +func RegisterTestServiceServer(s grpc.ServiceRegistrar, srv TestServiceServer) { + // If the following call panics, it indicates UnimplementedTestServiceServer 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) + s.RegisterService(&TestService_ServiceDesc, srv) } -func _TestAuthService_Pong_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { +func _TestService_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) + return srv.(TestServiceServer).Pong(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: TestAuthService_Pong_FullMethodName, + FullMethod: TestService_Pong_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(TestAuthServiceServer).Pong(ctx, req.(*PongRequest)) + return srv.(TestServiceServer).Pong(ctx, req.(*PongRequest)) } return interceptor(ctx, in, info, handler) } -// TestAuthService_ServiceDesc is the grpc.ServiceDesc for TestAuthService service. +// TestService_ServiceDesc is the grpc.ServiceDesc for TestService 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), +var TestService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "test.v1.TestService", + HandlerType: (*TestServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Pong", - Handler: _TestAuthService_Pong_Handler, + Handler: _TestService_Pong_Handler, }, }, Streams: []grpc.StreamDesc{},