2022-08-02 10:26:28 +00:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.2.0
2023-05-01 22:34:33 +00:00
// - protoc v3.19.6
2022-08-02 10:26:28 +00:00
// source: comasvc.proto
package grpcapi
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.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
// MobilityAccountsClient is the client API for MobilityAccounts 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 MobilityAccountsClient interface {
Register ( ctx context . Context , in * RegisterRequest , opts ... grpc . CallOption ) ( * RegisterResponse , error )
UpdateData ( ctx context . Context , in * UpdateDataRequest , opts ... grpc . CallOption ) ( * UpdateDataResponse , error )
2023-03-29 10:59:08 +00:00
UpdatePhoneNumber ( ctx context . Context , in * UpdatePhoneNumberRequest , opts ... grpc . CallOption ) ( * UpdatePhoneNumberResponse , error )
2022-08-02 10:26:28 +00:00
GetAccount ( ctx context . Context , in * GetAccountRequest , opts ... grpc . CallOption ) ( * GetAccountResponse , error )
2022-09-06 13:03:39 +00:00
GetAccountUsername ( ctx context . Context , in * GetAccountUsernameRequest , opts ... grpc . CallOption ) ( * GetAccountUsernameResponse , error )
2022-08-02 10:26:28 +00:00
GetAccounts ( ctx context . Context , in * GetAccountsRequest , opts ... grpc . CallOption ) ( * GetAccountsResponse , error )
2022-08-11 15:14:21 +00:00
GetAccountsBatch ( ctx context . Context , in * GetAccountsBatchRequest , opts ... grpc . CallOption ) ( * GetAccountsBatchResponse , error )
2022-08-02 10:26:28 +00:00
// Authentication functions
Login ( ctx context . Context , in * LoginRequest , opts ... grpc . CallOption ) ( * LoginResponse , error )
ChangePassword ( ctx context . Context , in * ChangePasswordRequest , opts ... grpc . CallOption ) ( * ChangePasswordResponse , error )
}
type mobilityAccountsClient struct {
cc grpc . ClientConnInterface
}
func NewMobilityAccountsClient ( cc grpc . ClientConnInterface ) MobilityAccountsClient {
return & mobilityAccountsClient { cc }
}
func ( c * mobilityAccountsClient ) Register ( ctx context . Context , in * RegisterRequest , opts ... grpc . CallOption ) ( * RegisterResponse , error ) {
out := new ( RegisterResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/Register" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * mobilityAccountsClient ) UpdateData ( ctx context . Context , in * UpdateDataRequest , opts ... grpc . CallOption ) ( * UpdateDataResponse , error ) {
out := new ( UpdateDataResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/UpdateData" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2023-03-29 10:59:08 +00:00
func ( c * mobilityAccountsClient ) UpdatePhoneNumber ( ctx context . Context , in * UpdatePhoneNumberRequest , opts ... grpc . CallOption ) ( * UpdatePhoneNumberResponse , error ) {
out := new ( UpdatePhoneNumberResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/UpdatePhoneNumber" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-08-02 10:26:28 +00:00
func ( c * mobilityAccountsClient ) GetAccount ( ctx context . Context , in * GetAccountRequest , opts ... grpc . CallOption ) ( * GetAccountResponse , error ) {
out := new ( GetAccountResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/GetAccount" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-09-06 13:03:39 +00:00
func ( c * mobilityAccountsClient ) GetAccountUsername ( ctx context . Context , in * GetAccountUsernameRequest , opts ... grpc . CallOption ) ( * GetAccountUsernameResponse , error ) {
out := new ( GetAccountUsernameResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/GetAccountUsername" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-08-02 10:26:28 +00:00
func ( c * mobilityAccountsClient ) GetAccounts ( ctx context . Context , in * GetAccountsRequest , opts ... grpc . CallOption ) ( * GetAccountsResponse , error ) {
out := new ( GetAccountsResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/GetAccounts" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-08-11 15:14:21 +00:00
func ( c * mobilityAccountsClient ) GetAccountsBatch ( ctx context . Context , in * GetAccountsBatchRequest , opts ... grpc . CallOption ) ( * GetAccountsBatchResponse , error ) {
out := new ( GetAccountsBatchResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/GetAccountsBatch" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
2022-08-02 10:26:28 +00:00
func ( c * mobilityAccountsClient ) Login ( ctx context . Context , in * LoginRequest , opts ... grpc . CallOption ) ( * LoginResponse , error ) {
out := new ( LoginResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/Login" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
func ( c * mobilityAccountsClient ) ChangePassword ( ctx context . Context , in * ChangePasswordRequest , opts ... grpc . CallOption ) ( * ChangePasswordResponse , error ) {
out := new ( ChangePasswordResponse )
err := c . cc . Invoke ( ctx , "/MobilityAccounts/ChangePassword" , in , out , opts ... )
if err != nil {
return nil , err
}
return out , nil
}
// MobilityAccountsServer is the server API for MobilityAccounts service.
// All implementations must embed UnimplementedMobilityAccountsServer
// for forward compatibility
type MobilityAccountsServer interface {
Register ( context . Context , * RegisterRequest ) ( * RegisterResponse , error )
UpdateData ( context . Context , * UpdateDataRequest ) ( * UpdateDataResponse , error )
2023-03-29 10:59:08 +00:00
UpdatePhoneNumber ( context . Context , * UpdatePhoneNumberRequest ) ( * UpdatePhoneNumberResponse , error )
2022-08-02 10:26:28 +00:00
GetAccount ( context . Context , * GetAccountRequest ) ( * GetAccountResponse , error )
2022-09-06 13:03:39 +00:00
GetAccountUsername ( context . Context , * GetAccountUsernameRequest ) ( * GetAccountUsernameResponse , error )
2022-08-02 10:26:28 +00:00
GetAccounts ( context . Context , * GetAccountsRequest ) ( * GetAccountsResponse , error )
2022-08-11 15:14:21 +00:00
GetAccountsBatch ( context . Context , * GetAccountsBatchRequest ) ( * GetAccountsBatchResponse , error )
2022-08-02 10:26:28 +00:00
// Authentication functions
Login ( context . Context , * LoginRequest ) ( * LoginResponse , error )
ChangePassword ( context . Context , * ChangePasswordRequest ) ( * ChangePasswordResponse , error )
mustEmbedUnimplementedMobilityAccountsServer ( )
}
// UnimplementedMobilityAccountsServer must be embedded to have forward compatible implementations.
type UnimplementedMobilityAccountsServer struct {
}
func ( UnimplementedMobilityAccountsServer ) Register ( context . Context , * RegisterRequest ) ( * RegisterResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Register not implemented" )
}
func ( UnimplementedMobilityAccountsServer ) UpdateData ( context . Context , * UpdateDataRequest ) ( * UpdateDataResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdateData not implemented" )
}
2023-03-29 10:59:08 +00:00
func ( UnimplementedMobilityAccountsServer ) UpdatePhoneNumber ( context . Context , * UpdatePhoneNumberRequest ) ( * UpdatePhoneNumberResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method UpdatePhoneNumber not implemented" )
}
2022-08-02 10:26:28 +00:00
func ( UnimplementedMobilityAccountsServer ) GetAccount ( context . Context , * GetAccountRequest ) ( * GetAccountResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetAccount not implemented" )
}
2022-09-06 13:03:39 +00:00
func ( UnimplementedMobilityAccountsServer ) GetAccountUsername ( context . Context , * GetAccountUsernameRequest ) ( * GetAccountUsernameResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetAccountUsername not implemented" )
}
2022-08-02 10:26:28 +00:00
func ( UnimplementedMobilityAccountsServer ) GetAccounts ( context . Context , * GetAccountsRequest ) ( * GetAccountsResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetAccounts not implemented" )
}
2022-08-11 15:14:21 +00:00
func ( UnimplementedMobilityAccountsServer ) GetAccountsBatch ( context . Context , * GetAccountsBatchRequest ) ( * GetAccountsBatchResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method GetAccountsBatch not implemented" )
}
2022-08-02 10:26:28 +00:00
func ( UnimplementedMobilityAccountsServer ) Login ( context . Context , * LoginRequest ) ( * LoginResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method Login not implemented" )
}
func ( UnimplementedMobilityAccountsServer ) ChangePassword ( context . Context , * ChangePasswordRequest ) ( * ChangePasswordResponse , error ) {
return nil , status . Errorf ( codes . Unimplemented , "method ChangePassword not implemented" )
}
func ( UnimplementedMobilityAccountsServer ) mustEmbedUnimplementedMobilityAccountsServer ( ) { }
// UnsafeMobilityAccountsServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to MobilityAccountsServer will
// result in compilation errors.
type UnsafeMobilityAccountsServer interface {
mustEmbedUnimplementedMobilityAccountsServer ( )
}
func RegisterMobilityAccountsServer ( s grpc . ServiceRegistrar , srv MobilityAccountsServer ) {
s . RegisterService ( & MobilityAccounts_ServiceDesc , srv )
}
func _MobilityAccounts_Register_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( RegisterRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . Register ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/Register" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . Register ( ctx , req . ( * RegisterRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MobilityAccounts_UpdateData_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdateDataRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . UpdateData ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/UpdateData" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . UpdateData ( ctx , req . ( * UpdateDataRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2023-03-29 10:59:08 +00:00
func _MobilityAccounts_UpdatePhoneNumber_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( UpdatePhoneNumberRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . UpdatePhoneNumber ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/UpdatePhoneNumber" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . UpdatePhoneNumber ( ctx , req . ( * UpdatePhoneNumberRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-08-02 10:26:28 +00:00
func _MobilityAccounts_GetAccount_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetAccountRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . GetAccount ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/GetAccount" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . GetAccount ( ctx , req . ( * GetAccountRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-09-06 13:03:39 +00:00
func _MobilityAccounts_GetAccountUsername_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetAccountUsernameRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . GetAccountUsername ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/GetAccountUsername" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . GetAccountUsername ( ctx , req . ( * GetAccountUsernameRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-08-02 10:26:28 +00:00
func _MobilityAccounts_GetAccounts_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetAccountsRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . GetAccounts ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/GetAccounts" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . GetAccounts ( ctx , req . ( * GetAccountsRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-08-11 15:14:21 +00:00
func _MobilityAccounts_GetAccountsBatch_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( GetAccountsBatchRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . GetAccountsBatch ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/GetAccountsBatch" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . GetAccountsBatch ( ctx , req . ( * GetAccountsBatchRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
2022-08-02 10:26:28 +00:00
func _MobilityAccounts_Login_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( LoginRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . Login ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/Login" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . Login ( ctx , req . ( * LoginRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _MobilityAccounts_ChangePassword_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( ChangePasswordRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( MobilityAccountsServer ) . ChangePassword ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : "/MobilityAccounts/ChangePassword" ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( MobilityAccountsServer ) . ChangePassword ( ctx , req . ( * ChangePasswordRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
// MobilityAccounts_ServiceDesc is the grpc.ServiceDesc for MobilityAccounts service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var MobilityAccounts_ServiceDesc = grpc . ServiceDesc {
ServiceName : "MobilityAccounts" ,
HandlerType : ( * MobilityAccountsServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Register" ,
Handler : _MobilityAccounts_Register_Handler ,
} ,
{
MethodName : "UpdateData" ,
Handler : _MobilityAccounts_UpdateData_Handler ,
} ,
2023-03-29 10:59:08 +00:00
{
MethodName : "UpdatePhoneNumber" ,
Handler : _MobilityAccounts_UpdatePhoneNumber_Handler ,
} ,
2022-08-02 10:26:28 +00:00
{
MethodName : "GetAccount" ,
Handler : _MobilityAccounts_GetAccount_Handler ,
} ,
2022-09-06 13:03:39 +00:00
{
MethodName : "GetAccountUsername" ,
Handler : _MobilityAccounts_GetAccountUsername_Handler ,
} ,
2022-08-02 10:26:28 +00:00
{
MethodName : "GetAccounts" ,
Handler : _MobilityAccounts_GetAccounts_Handler ,
} ,
2022-08-11 15:14:21 +00:00
{
MethodName : "GetAccountsBatch" ,
Handler : _MobilityAccounts_GetAccountsBatch_Handler ,
} ,
2022-08-02 10:26:28 +00:00
{
MethodName : "Login" ,
Handler : _MobilityAccounts_Login_Handler ,
} ,
{
MethodName : "ChangePassword" ,
Handler : _MobilityAccounts_ChangePassword_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
Metadata : "comasvc.proto" ,
}