silvermobi/servers/grpcapi/proto/silvermobi-service_grpc.pb.go

730 lines
30 KiB
Go
Raw Normal View History

2023-08-08 10:28:43 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2024-08-02 13:11:30 +00:00
// - protoc-gen-go-grpc v1.5.1
2023-08-08 10:28:43 +00:00
// - protoc v3.12.4
// source: silvermobi-service.proto
package proto
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.
2024-08-02 13:11:30 +00:00
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc.SupportPackageIsVersion9
2023-08-08 10:28:43 +00:00
const (
2023-12-08 06:35:04 +00:00
SilvermobiGRPC_AuthLogin_FullMethodName = "/SilvermobiGRPC/AuthLogin"
SilvermobiGRPC_AuthRegister_FullMethodName = "/SilvermobiGRPC/AuthRegister"
SilvermobiGRPC_ForgetAccount_FullMethodName = "/SilvermobiGRPC/ForgetAccount"
SilvermobiGRPC_UpdatePassword_FullMethodName = "/SilvermobiGRPC/UpdatePassword"
SilvermobiGRPC_SetPhoneNumber_FullMethodName = "/SilvermobiGRPC/SetPhoneNumber"
SilvermobiGRPC_VerifyPhoneNumber_FullMethodName = "/SilvermobiGRPC/VerifyPhoneNumber"
SilvermobiGRPC_SetBirthDate_FullMethodName = "/SilvermobiGRPC/SetBirthDate"
SilvermobiGRPC_SetAccountType_FullMethodName = "/SilvermobiGRPC/SetAccountType"
SilvermobiGRPC_GetAccountType_FullMethodName = "/SilvermobiGRPC/GetAccountType"
SilvermobiGRPC_SetKeyValue_FullMethodName = "/SilvermobiGRPC/SetKeyValue"
SilvermobiGRPC_GetKeyValue_FullMethodName = "/SilvermobiGRPC/GetKeyValue"
SilvermobiGRPC_GetValidation_FullMethodName = "/SilvermobiGRPC/GetValidation"
SilvermobiGRPC_GeoAutocomplete_FullMethodName = "/SilvermobiGRPC/GeoAutocomplete"
SilvermobiGRPC_GeoRoute_FullMethodName = "/SilvermobiGRPC/GeoRoute"
SilvermobiGRPC_GeoRouteWithReturn_FullMethodName = "/SilvermobiGRPC/GeoRouteWithReturn"
SilvermobiGRPC_PutFirebaseToken_FullMethodName = "/SilvermobiGRPC/PutFirebaseToken"
SilvermobiGRPC_GetAccountInfo_FullMethodName = "/SilvermobiGRPC/GetAccountInfo"
2023-08-08 10:28:43 +00:00
)
// SilvermobiGRPCClient is the client API for SilvermobiGRPC 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 SilvermobiGRPCClient interface {
AuthLogin(ctx context.Context, in *AuthLoginRequest, opts ...grpc.CallOption) (*AuthLoginResponse, error)
AuthRegister(ctx context.Context, in *AuthRegisterRequest, opts ...grpc.CallOption) (*AuthRegisterResponse, error)
ForgetAccount(ctx context.Context, in *ForgetAccountRequest, opts ...grpc.CallOption) (*ForgetAccountResponse, error)
UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error)
SetPhoneNumber(ctx context.Context, in *SetPhoneNumberRequest, opts ...grpc.CallOption) (*SetPhoneNumberResponse, error)
VerifyPhoneNumber(ctx context.Context, in *VerifyPhoneNumberRequest, opts ...grpc.CallOption) (*VerifyPhoneNumberResponse, error)
SetBirthDate(ctx context.Context, in *BirthDateRequest, opts ...grpc.CallOption) (*BirthDateResponse, error)
2023-09-19 09:06:20 +00:00
SetAccountType(ctx context.Context, in *AccountTypeRequest, opts ...grpc.CallOption) (*AccountTypeResponse, error)
GetAccountType(ctx context.Context, in *AccountTypeRequest, opts ...grpc.CallOption) (*AccountTypeResponse, error)
2023-08-08 10:28:43 +00:00
SetKeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error)
GetKeyValue(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*ValueResponse, error)
GetValidation(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error)
2023-12-08 06:35:04 +00:00
GeoAutocomplete(ctx context.Context, in *GeoAutocompleteRequest, opts ...grpc.CallOption) (*GeoAutocompleteResponse, error)
GeoRoute(ctx context.Context, in *GeoRouteRequest, opts ...grpc.CallOption) (*GeoRouteResponse, error)
GeoRouteWithReturn(ctx context.Context, in *GeoRouteWithReturnRequest, opts ...grpc.CallOption) (*GeoRouteWithReturnResponse, error)
PutFirebaseToken(ctx context.Context, in *FirebaseTokenRequest, opts ...grpc.CallOption) (*FirebaseTokenResponse, error)
GetAccountInfo(ctx context.Context, in *AccountInfoRequest, opts ...grpc.CallOption) (*AccountInfoResponse, error)
2023-08-08 10:28:43 +00:00
}
type silvermobiGRPCClient struct {
cc grpc.ClientConnInterface
}
func NewSilvermobiGRPCClient(cc grpc.ClientConnInterface) SilvermobiGRPCClient {
return &silvermobiGRPCClient{cc}
}
func (c *silvermobiGRPCClient) AuthLogin(ctx context.Context, in *AuthLoginRequest, opts ...grpc.CallOption) (*AuthLoginResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(AuthLoginResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_AuthLogin_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) AuthRegister(ctx context.Context, in *AuthRegisterRequest, opts ...grpc.CallOption) (*AuthRegisterResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(AuthRegisterResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_AuthRegister_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) ForgetAccount(ctx context.Context, in *ForgetAccountRequest, opts ...grpc.CallOption) (*ForgetAccountResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(ForgetAccountResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_ForgetAccount_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) UpdatePassword(ctx context.Context, in *UpdatePasswordRequest, opts ...grpc.CallOption) (*UpdatePasswordResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(UpdatePasswordResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_UpdatePassword_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) SetPhoneNumber(ctx context.Context, in *SetPhoneNumberRequest, opts ...grpc.CallOption) (*SetPhoneNumberResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(SetPhoneNumberResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_SetPhoneNumber_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) VerifyPhoneNumber(ctx context.Context, in *VerifyPhoneNumberRequest, opts ...grpc.CallOption) (*VerifyPhoneNumberResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(VerifyPhoneNumberResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_VerifyPhoneNumber_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) SetBirthDate(ctx context.Context, in *BirthDateRequest, opts ...grpc.CallOption) (*BirthDateResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(BirthDateResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_SetBirthDate_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
2023-09-19 09:06:20 +00:00
func (c *silvermobiGRPCClient) SetAccountType(ctx context.Context, in *AccountTypeRequest, opts ...grpc.CallOption) (*AccountTypeResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-09-19 09:06:20 +00:00
out := new(AccountTypeResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_SetAccountType_FullMethodName, in, out, cOpts...)
2023-09-19 09:06:20 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GetAccountType(ctx context.Context, in *AccountTypeRequest, opts ...grpc.CallOption) (*AccountTypeResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-09-19 09:06:20 +00:00
out := new(AccountTypeResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GetAccountType_FullMethodName, in, out, cOpts...)
2023-09-19 09:06:20 +00:00
if err != nil {
return nil, err
}
return out, nil
}
2023-08-08 10:28:43 +00:00
func (c *silvermobiGRPCClient) SetKeyValue(ctx context.Context, in *KeyValueRequest, opts ...grpc.CallOption) (*KeyValueResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(KeyValueResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_SetKeyValue_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GetKeyValue(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*ValueResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(ValueResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GetKeyValue_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GetValidation(ctx context.Context, in *ValidationRequest, opts ...grpc.CallOption) (*ValidationResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-08-08 10:28:43 +00:00
out := new(ValidationResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GetValidation_FullMethodName, in, out, cOpts...)
2023-08-08 10:28:43 +00:00
if err != nil {
return nil, err
}
return out, nil
}
2023-12-08 06:35:04 +00:00
func (c *silvermobiGRPCClient) GeoAutocomplete(ctx context.Context, in *GeoAutocompleteRequest, opts ...grpc.CallOption) (*GeoAutocompleteResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-12-08 06:35:04 +00:00
out := new(GeoAutocompleteResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GeoAutocomplete_FullMethodName, in, out, cOpts...)
2023-12-08 06:35:04 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GeoRoute(ctx context.Context, in *GeoRouteRequest, opts ...grpc.CallOption) (*GeoRouteResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-12-08 06:35:04 +00:00
out := new(GeoRouteResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GeoRoute_FullMethodName, in, out, cOpts...)
2023-12-08 06:35:04 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GeoRouteWithReturn(ctx context.Context, in *GeoRouteWithReturnRequest, opts ...grpc.CallOption) (*GeoRouteWithReturnResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-12-08 06:35:04 +00:00
out := new(GeoRouteWithReturnResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GeoRouteWithReturn_FullMethodName, in, out, cOpts...)
2023-12-08 06:35:04 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) PutFirebaseToken(ctx context.Context, in *FirebaseTokenRequest, opts ...grpc.CallOption) (*FirebaseTokenResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-12-08 06:35:04 +00:00
out := new(FirebaseTokenResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_PutFirebaseToken_FullMethodName, in, out, cOpts...)
2023-12-08 06:35:04 +00:00
if err != nil {
return nil, err
}
return out, nil
}
func (c *silvermobiGRPCClient) GetAccountInfo(ctx context.Context, in *AccountInfoRequest, opts ...grpc.CallOption) (*AccountInfoResponse, error) {
2024-08-02 13:11:30 +00:00
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
2023-12-08 06:35:04 +00:00
out := new(AccountInfoResponse)
2024-08-02 13:11:30 +00:00
err := c.cc.Invoke(ctx, SilvermobiGRPC_GetAccountInfo_FullMethodName, in, out, cOpts...)
2023-12-08 06:35:04 +00:00
if err != nil {
return nil, err
}
return out, nil
}
2023-08-08 10:28:43 +00:00
// SilvermobiGRPCServer is the server API for SilvermobiGRPC service.
// All implementations must embed UnimplementedSilvermobiGRPCServer
2024-08-02 13:11:30 +00:00
// for forward compatibility.
2023-08-08 10:28:43 +00:00
type SilvermobiGRPCServer interface {
AuthLogin(context.Context, *AuthLoginRequest) (*AuthLoginResponse, error)
AuthRegister(context.Context, *AuthRegisterRequest) (*AuthRegisterResponse, error)
ForgetAccount(context.Context, *ForgetAccountRequest) (*ForgetAccountResponse, error)
UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error)
SetPhoneNumber(context.Context, *SetPhoneNumberRequest) (*SetPhoneNumberResponse, error)
VerifyPhoneNumber(context.Context, *VerifyPhoneNumberRequest) (*VerifyPhoneNumberResponse, error)
SetBirthDate(context.Context, *BirthDateRequest) (*BirthDateResponse, error)
2023-09-19 09:06:20 +00:00
SetAccountType(context.Context, *AccountTypeRequest) (*AccountTypeResponse, error)
GetAccountType(context.Context, *AccountTypeRequest) (*AccountTypeResponse, error)
2023-08-08 10:28:43 +00:00
SetKeyValue(context.Context, *KeyValueRequest) (*KeyValueResponse, error)
GetKeyValue(context.Context, *KeyRequest) (*ValueResponse, error)
GetValidation(context.Context, *ValidationRequest) (*ValidationResponse, error)
2023-12-08 06:35:04 +00:00
GeoAutocomplete(context.Context, *GeoAutocompleteRequest) (*GeoAutocompleteResponse, error)
GeoRoute(context.Context, *GeoRouteRequest) (*GeoRouteResponse, error)
GeoRouteWithReturn(context.Context, *GeoRouteWithReturnRequest) (*GeoRouteWithReturnResponse, error)
PutFirebaseToken(context.Context, *FirebaseTokenRequest) (*FirebaseTokenResponse, error)
GetAccountInfo(context.Context, *AccountInfoRequest) (*AccountInfoResponse, error)
2023-08-08 10:28:43 +00:00
mustEmbedUnimplementedSilvermobiGRPCServer()
}
2024-08-02 13:11:30 +00:00
// UnimplementedSilvermobiGRPCServer must 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 UnimplementedSilvermobiGRPCServer struct{}
2023-08-08 10:28:43 +00:00
func (UnimplementedSilvermobiGRPCServer) AuthLogin(context.Context, *AuthLoginRequest) (*AuthLoginResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AuthLogin not implemented")
}
func (UnimplementedSilvermobiGRPCServer) AuthRegister(context.Context, *AuthRegisterRequest) (*AuthRegisterResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AuthRegister not implemented")
}
func (UnimplementedSilvermobiGRPCServer) ForgetAccount(context.Context, *ForgetAccountRequest) (*ForgetAccountResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ForgetAccount not implemented")
}
func (UnimplementedSilvermobiGRPCServer) UpdatePassword(context.Context, *UpdatePasswordRequest) (*UpdatePasswordResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdatePassword not implemented")
}
func (UnimplementedSilvermobiGRPCServer) SetPhoneNumber(context.Context, *SetPhoneNumberRequest) (*SetPhoneNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetPhoneNumber not implemented")
}
func (UnimplementedSilvermobiGRPCServer) VerifyPhoneNumber(context.Context, *VerifyPhoneNumberRequest) (*VerifyPhoneNumberResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method VerifyPhoneNumber not implemented")
}
func (UnimplementedSilvermobiGRPCServer) SetBirthDate(context.Context, *BirthDateRequest) (*BirthDateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetBirthDate not implemented")
}
2023-09-19 09:06:20 +00:00
func (UnimplementedSilvermobiGRPCServer) SetAccountType(context.Context, *AccountTypeRequest) (*AccountTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetAccountType not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GetAccountType(context.Context, *AccountTypeRequest) (*AccountTypeResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAccountType not implemented")
}
2023-08-08 10:28:43 +00:00
func (UnimplementedSilvermobiGRPCServer) SetKeyValue(context.Context, *KeyValueRequest) (*KeyValueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SetKeyValue not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GetKeyValue(context.Context, *KeyRequest) (*ValueResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetKeyValue not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GetValidation(context.Context, *ValidationRequest) (*ValidationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetValidation not implemented")
}
2023-12-08 06:35:04 +00:00
func (UnimplementedSilvermobiGRPCServer) GeoAutocomplete(context.Context, *GeoAutocompleteRequest) (*GeoAutocompleteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GeoAutocomplete not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GeoRoute(context.Context, *GeoRouteRequest) (*GeoRouteResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GeoRoute not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GeoRouteWithReturn(context.Context, *GeoRouteWithReturnRequest) (*GeoRouteWithReturnResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GeoRouteWithReturn not implemented")
}
func (UnimplementedSilvermobiGRPCServer) PutFirebaseToken(context.Context, *FirebaseTokenRequest) (*FirebaseTokenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method PutFirebaseToken not implemented")
}
func (UnimplementedSilvermobiGRPCServer) GetAccountInfo(context.Context, *AccountInfoRequest) (*AccountInfoResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAccountInfo not implemented")
}
2023-08-08 10:28:43 +00:00
func (UnimplementedSilvermobiGRPCServer) mustEmbedUnimplementedSilvermobiGRPCServer() {}
2024-08-02 13:11:30 +00:00
func (UnimplementedSilvermobiGRPCServer) testEmbeddedByValue() {}
2023-08-08 10:28:43 +00:00
// UnsafeSilvermobiGRPCServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to SilvermobiGRPCServer will
// result in compilation errors.
type UnsafeSilvermobiGRPCServer interface {
mustEmbedUnimplementedSilvermobiGRPCServer()
}
func RegisterSilvermobiGRPCServer(s grpc.ServiceRegistrar, srv SilvermobiGRPCServer) {
2024-08-02 13:11:30 +00:00
// If the following call pancis, it indicates UnimplementedSilvermobiGRPCServer 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()
}
2023-08-08 10:28:43 +00:00
s.RegisterService(&SilvermobiGRPC_ServiceDesc, srv)
}
func _SilvermobiGRPC_AuthLogin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthLoginRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).AuthLogin(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_AuthLogin_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).AuthLogin(ctx, req.(*AuthLoginRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_AuthRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AuthRegisterRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).AuthRegister(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_AuthRegister_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).AuthRegister(ctx, req.(*AuthRegisterRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_ForgetAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ForgetAccountRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).ForgetAccount(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_ForgetAccount_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).ForgetAccount(ctx, req.(*ForgetAccountRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_UpdatePassword_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdatePasswordRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).UpdatePassword(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_UpdatePassword_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).UpdatePassword(ctx, req.(*UpdatePasswordRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_SetPhoneNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SetPhoneNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).SetPhoneNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_SetPhoneNumber_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).SetPhoneNumber(ctx, req.(*SetPhoneNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_VerifyPhoneNumber_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(VerifyPhoneNumberRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).VerifyPhoneNumber(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_VerifyPhoneNumber_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).VerifyPhoneNumber(ctx, req.(*VerifyPhoneNumberRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_SetBirthDate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(BirthDateRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).SetBirthDate(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_SetBirthDate_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).SetBirthDate(ctx, req.(*BirthDateRequest))
}
return interceptor(ctx, in, info, handler)
}
2023-09-19 09:06:20 +00:00
func _SilvermobiGRPC_SetAccountType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).SetAccountType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_SetAccountType_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).SetAccountType(ctx, req.(*AccountTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GetAccountType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountTypeRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GetAccountType(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GetAccountType_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GetAccountType(ctx, req.(*AccountTypeRequest))
}
return interceptor(ctx, in, info, handler)
}
2023-08-08 10:28:43 +00:00
func _SilvermobiGRPC_SetKeyValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeyValueRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).SetKeyValue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_SetKeyValue_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).SetKeyValue(ctx, req.(*KeyValueRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GetKeyValue_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GetKeyValue(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GetKeyValue_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GetKeyValue(ctx, req.(*KeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GetValidation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ValidationRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GetValidation(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GetValidation_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GetValidation(ctx, req.(*ValidationRequest))
}
return interceptor(ctx, in, info, handler)
}
2023-12-08 06:35:04 +00:00
func _SilvermobiGRPC_GeoAutocomplete_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GeoAutocompleteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GeoAutocomplete(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GeoAutocomplete_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GeoAutocomplete(ctx, req.(*GeoAutocompleteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GeoRoute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GeoRouteRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GeoRoute(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GeoRoute_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GeoRoute(ctx, req.(*GeoRouteRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GeoRouteWithReturn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GeoRouteWithReturnRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GeoRouteWithReturn(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GeoRouteWithReturn_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GeoRouteWithReturn(ctx, req.(*GeoRouteWithReturnRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_PutFirebaseToken_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FirebaseTokenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).PutFirebaseToken(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_PutFirebaseToken_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).PutFirebaseToken(ctx, req.(*FirebaseTokenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _SilvermobiGRPC_GetAccountInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AccountInfoRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(SilvermobiGRPCServer).GetAccountInfo(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: SilvermobiGRPC_GetAccountInfo_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(SilvermobiGRPCServer).GetAccountInfo(ctx, req.(*AccountInfoRequest))
}
return interceptor(ctx, in, info, handler)
}
2023-08-08 10:28:43 +00:00
// SilvermobiGRPC_ServiceDesc is the grpc.ServiceDesc for SilvermobiGRPC service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var SilvermobiGRPC_ServiceDesc = grpc.ServiceDesc{
ServiceName: "SilvermobiGRPC",
HandlerType: (*SilvermobiGRPCServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "AuthLogin",
Handler: _SilvermobiGRPC_AuthLogin_Handler,
},
{
MethodName: "AuthRegister",
Handler: _SilvermobiGRPC_AuthRegister_Handler,
},
{
MethodName: "ForgetAccount",
Handler: _SilvermobiGRPC_ForgetAccount_Handler,
},
{
MethodName: "UpdatePassword",
Handler: _SilvermobiGRPC_UpdatePassword_Handler,
},
{
MethodName: "SetPhoneNumber",
Handler: _SilvermobiGRPC_SetPhoneNumber_Handler,
},
{
MethodName: "VerifyPhoneNumber",
Handler: _SilvermobiGRPC_VerifyPhoneNumber_Handler,
},
{
MethodName: "SetBirthDate",
Handler: _SilvermobiGRPC_SetBirthDate_Handler,
},
2023-09-19 09:06:20 +00:00
{
MethodName: "SetAccountType",
Handler: _SilvermobiGRPC_SetAccountType_Handler,
},
{
MethodName: "GetAccountType",
Handler: _SilvermobiGRPC_GetAccountType_Handler,
},
2023-08-08 10:28:43 +00:00
{
MethodName: "SetKeyValue",
Handler: _SilvermobiGRPC_SetKeyValue_Handler,
},
{
MethodName: "GetKeyValue",
Handler: _SilvermobiGRPC_GetKeyValue_Handler,
},
{
MethodName: "GetValidation",
Handler: _SilvermobiGRPC_GetValidation_Handler,
},
2023-12-08 06:35:04 +00:00
{
MethodName: "GeoAutocomplete",
Handler: _SilvermobiGRPC_GeoAutocomplete_Handler,
},
{
MethodName: "GeoRoute",
Handler: _SilvermobiGRPC_GeoRoute_Handler,
},
{
MethodName: "GeoRouteWithReturn",
Handler: _SilvermobiGRPC_GeoRouteWithReturn_Handler,
},
{
MethodName: "PutFirebaseToken",
Handler: _SilvermobiGRPC_PutFirebaseToken_Handler,
},
{
MethodName: "GetAccountInfo",
Handler: _SilvermobiGRPC_GetAccountInfo_Handler,
},
2023-08-08 10:28:43 +00:00
},
Streams: []grpc.StreamDesc{},
Metadata: "silvermobi-service.proto",
}