From bf7467c36f59c35af97566154d5813544b97ecfd Mon Sep 17 00:00:00 2001 From: devops-bot Date: Sat, 9 May 2026 19:22:30 +0000 Subject: [PATCH] Update protobuf definitions: 50a27971 By allanger Commit link: https://gitea.badhouseplants.net/softplayer/softplayer-proto/commit/50a27971572ea3540b61c0aa0478488ca8324139 Pipeline link: https://ci.badhouseplants.net/repos/34/pipeline/60 --- pkg/accounts/v1/accounts_v1.pb.go | 16 ++--- pkg/accounts/v1/accounts_v1_grpc.pb.go | 84 ++++++++++++-------------- 2 files changed, 48 insertions(+), 52 deletions(-) diff --git a/pkg/accounts/v1/accounts_v1.pb.go b/pkg/accounts/v1/accounts_v1.pb.go index 9b0ee16..921357c 100644 --- a/pkg/accounts/v1/accounts_v1.pb.go +++ b/pkg/accounts/v1/accounts_v1.pb.go @@ -488,13 +488,13 @@ const file_accounts_v1_accounts_v1_proto_rawDesc = "" + "\bverified\x18\x01 \x01(\bR\bverified\"4\n" + "\x13RefreshTokenRequest\x12\x1d\n" + "\n" + - "session_id\x18\x01 \x01(\tR\tsessionId2\xe3\x01\n" + + "session_id\x18\x01 \x01(\tR\tsessionId2\x97\x01\n" + "\x15AccountsNoAuthService\x12>\n" + "\x06SignIn\x12\x1a.accounts.v1.SignInRequest\x1a\x16.google.protobuf.Empty\"\x00\x12>\n" + - "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x00\x12J\n" + - "\fRefreshToken\x12 .accounts.v1.RefreshTokenRequest\x1a\x16.google.protobuf.Empty\"\x002u\n" + + "\x06SignUp\x12\x1a.accounts.v1.SignUpRequest\x1a\x16.google.protobuf.Empty\"\x002\xb7\x01\n" + "\x13AccountsAuthService\x12^\n" + - "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" + "\x0fIsEmailVerified\x12#.accounts.v1.IsEmailVerifiedRequest\x1a$.accounts.v1.IsEmailVerifiedResponse\"\x00\x12@\n" + + "\fRefreshToken\x12\x16.google.protobuf.Empty\x1a\x16.google.protobuf.Empty\"\x00BIZGgitea.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts/v1b\x06proto3" var ( file_accounts_v1_accounts_v1_proto_rawDescOnce sync.Once @@ -528,12 +528,12 @@ var file_accounts_v1_accounts_v1_proto_depIdxs = []int32{ 1, // 3: accounts.v1.IsEmailVerifiedRequest.data:type_name -> accounts.v1.AccountData 3, // 4: accounts.v1.AccountsNoAuthService.SignIn:input_type -> accounts.v1.SignInRequest 2, // 5: accounts.v1.AccountsNoAuthService.SignUp:input_type -> accounts.v1.SignUpRequest - 8, // 6: accounts.v1.AccountsNoAuthService.RefreshToken:input_type -> accounts.v1.RefreshTokenRequest - 6, // 7: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 6, // 6: accounts.v1.AccountsAuthService.IsEmailVerified:input_type -> accounts.v1.IsEmailVerifiedRequest + 9, // 7: accounts.v1.AccountsAuthService.RefreshToken:input_type -> google.protobuf.Empty 9, // 8: accounts.v1.AccountsNoAuthService.SignIn:output_type -> google.protobuf.Empty 9, // 9: accounts.v1.AccountsNoAuthService.SignUp:output_type -> google.protobuf.Empty - 9, // 10: accounts.v1.AccountsNoAuthService.RefreshToken:output_type -> google.protobuf.Empty - 7, // 11: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 7, // 10: accounts.v1.AccountsAuthService.IsEmailVerified:output_type -> accounts.v1.IsEmailVerifiedResponse + 9, // 11: accounts.v1.AccountsAuthService.RefreshToken:output_type -> google.protobuf.Empty 8, // [8:12] is the sub-list for method output_type 4, // [4:8] is the sub-list for method input_type 4, // [4:4] is the sub-list for extension type_name diff --git a/pkg/accounts/v1/accounts_v1_grpc.pb.go b/pkg/accounts/v1/accounts_v1_grpc.pb.go index 0e657f0..9fe5e0e 100644 --- a/pkg/accounts/v1/accounts_v1_grpc.pb.go +++ b/pkg/accounts/v1/accounts_v1_grpc.pb.go @@ -22,9 +22,8 @@ import ( const _ = grpc.SupportPackageIsVersion9 const ( - AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" - AccountsNoAuthService_SignUp_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignUp" - AccountsNoAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsNoAuthService/RefreshToken" + AccountsNoAuthService_SignIn_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignIn" + AccountsNoAuthService_SignUp_FullMethodName = "/accounts.v1.AccountsNoAuthService/SignUp" ) // AccountsNoAuthServiceClient is the client API for AccountsNoAuthService service. @@ -38,9 +37,6 @@ type AccountsNoAuthServiceClient interface { SignIn(ctx context.Context, in *SignInRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Create a new account SignUp(ctx context.Context, in *SignUpRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) - // RefreshToken doesn't use regular auth methods, it recieves the token in data, - // checks whether a session with this token exists and create a new one if yes - RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) } type accountsNoAuthServiceClient struct { @@ -71,16 +67,6 @@ func (c *accountsNoAuthServiceClient) SignUp(ctx context.Context, in *SignUpRequ return out, nil } -func (c *accountsNoAuthServiceClient) RefreshToken(ctx context.Context, in *RefreshTokenRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, AccountsNoAuthService_RefreshToken_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - // AccountsNoAuthServiceServer is the server API for AccountsNoAuthService service. // All implementations should embed UnimplementedAccountsNoAuthServiceServer // for forward compatibility. @@ -92,9 +78,6 @@ type AccountsNoAuthServiceServer interface { SignIn(context.Context, *SignInRequest) (*emptypb.Empty, error) // Create a new account SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) - // RefreshToken doesn't use regular auth methods, it recieves the token in data, - // checks whether a session with this token exists and create a new one if yes - RefreshToken(context.Context, *RefreshTokenRequest) (*emptypb.Empty, error) } // UnimplementedAccountsNoAuthServiceServer should be embedded to have @@ -110,9 +93,6 @@ func (UnimplementedAccountsNoAuthServiceServer) SignIn(context.Context, *SignInR func (UnimplementedAccountsNoAuthServiceServer) SignUp(context.Context, *SignUpRequest) (*emptypb.Empty, error) { return nil, status.Error(codes.Unimplemented, "method SignUp not implemented") } -func (UnimplementedAccountsNoAuthServiceServer) RefreshToken(context.Context, *RefreshTokenRequest) (*emptypb.Empty, error) { - return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented") -} func (UnimplementedAccountsNoAuthServiceServer) testEmbeddedByValue() {} // UnsafeAccountsNoAuthServiceServer may be embedded to opt out of forward compatibility for this service. @@ -169,24 +149,6 @@ func _AccountsNoAuthService_SignUp_Handler(srv interface{}, ctx context.Context, return interceptor(ctx, in, info, handler) } -func _AccountsNoAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(RefreshTokenRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: AccountsNoAuthService_RefreshToken_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(AccountsNoAuthServiceServer).RefreshToken(ctx, req.(*RefreshTokenRequest)) - } - return interceptor(ctx, in, info, handler) -} - // AccountsNoAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsNoAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -202,10 +164,6 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ MethodName: "SignUp", Handler: _AccountsNoAuthService_SignUp_Handler, }, - { - MethodName: "RefreshToken", - Handler: _AccountsNoAuthService_RefreshToken_Handler, - }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/v1/accounts_v1.proto", @@ -213,6 +171,7 @@ var AccountsNoAuthService_ServiceDesc = grpc.ServiceDesc{ const ( AccountsAuthService_IsEmailVerified_FullMethodName = "/accounts.v1.AccountsAuthService/IsEmailVerified" + AccountsAuthService_RefreshToken_FullMethodName = "/accounts.v1.AccountsAuthService/RefreshToken" ) // AccountsAuthServiceClient is the client API for AccountsAuthService service. @@ -225,6 +184,7 @@ const ( type AccountsAuthServiceClient interface { // Is email for the current account verified IsEmailVerified(ctx context.Context, in *IsEmailVerifiedRequest, opts ...grpc.CallOption) (*IsEmailVerifiedResponse, error) + RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) } type accountsAuthServiceClient struct { @@ -245,6 +205,16 @@ func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsE return out, nil } +func (c *accountsAuthServiceClient) RefreshToken(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { + cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) + out := new(emptypb.Empty) + err := c.cc.Invoke(ctx, AccountsAuthService_RefreshToken_FullMethodName, in, out, cOpts...) + if err != nil { + return nil, err + } + return out, nil +} + // AccountsAuthServiceServer is the server API for AccountsAuthService service. // All implementations should embed UnimplementedAccountsAuthServiceServer // for forward compatibility. @@ -255,6 +225,7 @@ func (c *accountsAuthServiceClient) IsEmailVerified(ctx context.Context, in *IsE type AccountsAuthServiceServer interface { // Is email for the current account verified IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) + RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) } // UnimplementedAccountsAuthServiceServer should be embedded to have @@ -267,6 +238,9 @@ type UnimplementedAccountsAuthServiceServer struct{} func (UnimplementedAccountsAuthServiceServer) IsEmailVerified(context.Context, *IsEmailVerifiedRequest) (*IsEmailVerifiedResponse, error) { return nil, status.Error(codes.Unimplemented, "method IsEmailVerified not implemented") } +func (UnimplementedAccountsAuthServiceServer) RefreshToken(context.Context, *emptypb.Empty) (*emptypb.Empty, error) { + return nil, status.Error(codes.Unimplemented, "method RefreshToken not implemented") +} func (UnimplementedAccountsAuthServiceServer) testEmbeddedByValue() {} // UnsafeAccountsAuthServiceServer may be embedded to opt out of forward compatibility for this service. @@ -305,6 +279,24 @@ func _AccountsAuthService_IsEmailVerified_Handler(srv interface{}, ctx context.C return interceptor(ctx, in, info, handler) } +func _AccountsAuthService_RefreshToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(emptypb.Empty) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(AccountsAuthServiceServer).RefreshToken(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: AccountsAuthService_RefreshToken_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(AccountsAuthServiceServer).RefreshToken(ctx, req.(*emptypb.Empty)) + } + return interceptor(ctx, in, info, handler) +} + // AccountsAuthService_ServiceDesc is the grpc.ServiceDesc for AccountsAuthService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) @@ -316,6 +308,10 @@ var AccountsAuthService_ServiceDesc = grpc.ServiceDesc{ MethodName: "IsEmailVerified", Handler: _AccountsAuthService_IsEmailVerified_Handler, }, + { + MethodName: "RefreshToken", + Handler: _AccountsAuthService_RefreshToken_Handler, + }, }, Streams: []grpc.StreamDesc{}, Metadata: "accounts/v1/accounts_v1.proto",