// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.0 // - protoc v6.33.1 // source: account.proto package gen import ( context "context" grpc "google.golang.org/grpc" codes "google.golang.org/grpc/codes" status "google.golang.org/grpc/status" wrapperspb "google.golang.org/protobuf/types/known/wrapperspb" ) // 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 ( AccountService_GetAccount_FullMethodName = "/proto.AccountService/GetAccount" AccountService_GetBotAccount_FullMethodName = "/proto.AccountService/GetBotAccount" AccountService_GetAccountBatch_FullMethodName = "/proto.AccountService/GetAccountBatch" AccountService_GetBotAccountBatch_FullMethodName = "/proto.AccountService/GetBotAccountBatch" AccountService_LookupAccountBatch_FullMethodName = "/proto.AccountService/LookupAccountBatch" AccountService_SearchAccount_FullMethodName = "/proto.AccountService/SearchAccount" AccountService_ListAccounts_FullMethodName = "/proto.AccountService/ListAccounts" AccountService_GetAccountStatus_FullMethodName = "/proto.AccountService/GetAccountStatus" AccountService_GetAccountStatusBatch_FullMethodName = "/proto.AccountService/GetAccountStatusBatch" AccountService_GetProfile_FullMethodName = "/proto.AccountService/GetProfile" AccountService_ListContacts_FullMethodName = "/proto.AccountService/ListContacts" AccountService_ListBadges_FullMethodName = "/proto.AccountService/ListBadges" AccountService_ListAuthFactors_FullMethodName = "/proto.AccountService/ListAuthFactors" AccountService_ListConnections_FullMethodName = "/proto.AccountService/ListConnections" AccountService_ListRelationships_FullMethodName = "/proto.AccountService/ListRelationships" AccountService_GetRelationship_FullMethodName = "/proto.AccountService/GetRelationship" AccountService_HasRelationship_FullMethodName = "/proto.AccountService/HasRelationship" AccountService_ListFriends_FullMethodName = "/proto.AccountService/ListFriends" AccountService_ListBlocked_FullMethodName = "/proto.AccountService/ListBlocked" ) // AccountServiceClient is the client API for AccountService 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. // // AccountService provides CRUD operations for user accounts and related entities type AccountServiceClient interface { // Account Operations GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) GetBotAccount(ctx context.Context, in *GetBotAccountRequest, opts ...grpc.CallOption) (*Account, error) GetAccountBatch(ctx context.Context, in *GetAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) GetBotAccountBatch(ctx context.Context, in *GetBotAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) LookupAccountBatch(ctx context.Context, in *LookupAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) SearchAccount(ctx context.Context, in *SearchAccountRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) GetAccountStatus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*AccountStatus, error) GetAccountStatusBatch(ctx context.Context, in *GetAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountStatusBatchResponse, error) // Profile Operations GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*AccountProfile, error) // Contact Operations ListContacts(ctx context.Context, in *ListContactsRequest, opts ...grpc.CallOption) (*ListContactsResponse, error) // Badge Operations ListBadges(ctx context.Context, in *ListBadgesRequest, opts ...grpc.CallOption) (*ListBadgesResponse, error) // Authentication Factor Operations ListAuthFactors(ctx context.Context, in *ListAuthFactorsRequest, opts ...grpc.CallOption) (*ListAuthFactorsResponse, error) // Connection Operations ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error) // Relationship Operations ListRelationships(ctx context.Context, in *ListRelationshipsRequest, opts ...grpc.CallOption) (*ListRelationshipsResponse, error) GetRelationship(ctx context.Context, in *GetRelationshipRequest, opts ...grpc.CallOption) (*GetRelationshipResponse, error) HasRelationship(ctx context.Context, in *GetRelationshipRequest, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) ListFriends(ctx context.Context, in *ListRelationshipSimpleRequest, opts ...grpc.CallOption) (*ListRelationshipSimpleResponse, error) ListBlocked(ctx context.Context, in *ListRelationshipSimpleRequest, opts ...grpc.CallOption) (*ListRelationshipSimpleResponse, error) } type accountServiceClient struct { cc grpc.ClientConnInterface } func NewAccountServiceClient(cc grpc.ClientConnInterface) AccountServiceClient { return &accountServiceClient{cc} } func (c *accountServiceClient) GetAccount(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*Account, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Account) err := c.cc.Invoke(ctx, AccountService_GetAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetBotAccount(ctx context.Context, in *GetBotAccountRequest, opts ...grpc.CallOption) (*Account, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(Account) err := c.cc.Invoke(ctx, AccountService_GetBotAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetAccountBatch(ctx context.Context, in *GetAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountBatchResponse) err := c.cc.Invoke(ctx, AccountService_GetAccountBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetBotAccountBatch(ctx context.Context, in *GetBotAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountBatchResponse) err := c.cc.Invoke(ctx, AccountService_GetBotAccountBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) LookupAccountBatch(ctx context.Context, in *LookupAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountBatchResponse) err := c.cc.Invoke(ctx, AccountService_LookupAccountBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) SearchAccount(ctx context.Context, in *SearchAccountRequest, opts ...grpc.CallOption) (*GetAccountBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountBatchResponse) err := c.cc.Invoke(ctx, AccountService_SearchAccount_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListAccounts(ctx context.Context, in *ListAccountsRequest, opts ...grpc.CallOption) (*ListAccountsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAccountsResponse) err := c.cc.Invoke(ctx, AccountService_ListAccounts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetAccountStatus(ctx context.Context, in *GetAccountRequest, opts ...grpc.CallOption) (*AccountStatus, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountStatus) err := c.cc.Invoke(ctx, AccountService_GetAccountStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetAccountStatusBatch(ctx context.Context, in *GetAccountBatchRequest, opts ...grpc.CallOption) (*GetAccountStatusBatchResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetAccountStatusBatchResponse) err := c.cc.Invoke(ctx, AccountService_GetAccountStatusBatch_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetProfile(ctx context.Context, in *GetProfileRequest, opts ...grpc.CallOption) (*AccountProfile, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(AccountProfile) err := c.cc.Invoke(ctx, AccountService_GetProfile_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListContacts(ctx context.Context, in *ListContactsRequest, opts ...grpc.CallOption) (*ListContactsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListContactsResponse) err := c.cc.Invoke(ctx, AccountService_ListContacts_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListBadges(ctx context.Context, in *ListBadgesRequest, opts ...grpc.CallOption) (*ListBadgesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListBadgesResponse) err := c.cc.Invoke(ctx, AccountService_ListBadges_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListAuthFactors(ctx context.Context, in *ListAuthFactorsRequest, opts ...grpc.CallOption) (*ListAuthFactorsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListAuthFactorsResponse) err := c.cc.Invoke(ctx, AccountService_ListAuthFactors_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListConnections(ctx context.Context, in *ListConnectionsRequest, opts ...grpc.CallOption) (*ListConnectionsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListConnectionsResponse) err := c.cc.Invoke(ctx, AccountService_ListConnections_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListRelationships(ctx context.Context, in *ListRelationshipsRequest, opts ...grpc.CallOption) (*ListRelationshipsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRelationshipsResponse) err := c.cc.Invoke(ctx, AccountService_ListRelationships_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) GetRelationship(ctx context.Context, in *GetRelationshipRequest, opts ...grpc.CallOption) (*GetRelationshipResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetRelationshipResponse) err := c.cc.Invoke(ctx, AccountService_GetRelationship_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) HasRelationship(ctx context.Context, in *GetRelationshipRequest, opts ...grpc.CallOption) (*wrapperspb.BoolValue, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(wrapperspb.BoolValue) err := c.cc.Invoke(ctx, AccountService_HasRelationship_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListFriends(ctx context.Context, in *ListRelationshipSimpleRequest, opts ...grpc.CallOption) (*ListRelationshipSimpleResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRelationshipSimpleResponse) err := c.cc.Invoke(ctx, AccountService_ListFriends_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *accountServiceClient) ListBlocked(ctx context.Context, in *ListRelationshipSimpleRequest, opts ...grpc.CallOption) (*ListRelationshipSimpleResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListRelationshipSimpleResponse) err := c.cc.Invoke(ctx, AccountService_ListBlocked_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // AccountServiceServer is the server API for AccountService service. // All implementations must embed UnimplementedAccountServiceServer // for forward compatibility. // // AccountService provides CRUD operations for user accounts and related entities type AccountServiceServer interface { // Account Operations GetAccount(context.Context, *GetAccountRequest) (*Account, error) GetBotAccount(context.Context, *GetBotAccountRequest) (*Account, error) GetAccountBatch(context.Context, *GetAccountBatchRequest) (*GetAccountBatchResponse, error) GetBotAccountBatch(context.Context, *GetBotAccountBatchRequest) (*GetAccountBatchResponse, error) LookupAccountBatch(context.Context, *LookupAccountBatchRequest) (*GetAccountBatchResponse, error) SearchAccount(context.Context, *SearchAccountRequest) (*GetAccountBatchResponse, error) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) GetAccountStatus(context.Context, *GetAccountRequest) (*AccountStatus, error) GetAccountStatusBatch(context.Context, *GetAccountBatchRequest) (*GetAccountStatusBatchResponse, error) // Profile Operations GetProfile(context.Context, *GetProfileRequest) (*AccountProfile, error) // Contact Operations ListContacts(context.Context, *ListContactsRequest) (*ListContactsResponse, error) // Badge Operations ListBadges(context.Context, *ListBadgesRequest) (*ListBadgesResponse, error) // Authentication Factor Operations ListAuthFactors(context.Context, *ListAuthFactorsRequest) (*ListAuthFactorsResponse, error) // Connection Operations ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error) // Relationship Operations ListRelationships(context.Context, *ListRelationshipsRequest) (*ListRelationshipsResponse, error) GetRelationship(context.Context, *GetRelationshipRequest) (*GetRelationshipResponse, error) HasRelationship(context.Context, *GetRelationshipRequest) (*wrapperspb.BoolValue, error) ListFriends(context.Context, *ListRelationshipSimpleRequest) (*ListRelationshipSimpleResponse, error) ListBlocked(context.Context, *ListRelationshipSimpleRequest) (*ListRelationshipSimpleResponse, error) mustEmbedUnimplementedAccountServiceServer() } // UnimplementedAccountServiceServer 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 UnimplementedAccountServiceServer struct{} func (UnimplementedAccountServiceServer) GetAccount(context.Context, *GetAccountRequest) (*Account, error) { return nil, status.Error(codes.Unimplemented, "method GetAccount not implemented") } func (UnimplementedAccountServiceServer) GetBotAccount(context.Context, *GetBotAccountRequest) (*Account, error) { return nil, status.Error(codes.Unimplemented, "method GetBotAccount not implemented") } func (UnimplementedAccountServiceServer) GetAccountBatch(context.Context, *GetAccountBatchRequest) (*GetAccountBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAccountBatch not implemented") } func (UnimplementedAccountServiceServer) GetBotAccountBatch(context.Context, *GetBotAccountBatchRequest) (*GetAccountBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetBotAccountBatch not implemented") } func (UnimplementedAccountServiceServer) LookupAccountBatch(context.Context, *LookupAccountBatchRequest) (*GetAccountBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method LookupAccountBatch not implemented") } func (UnimplementedAccountServiceServer) SearchAccount(context.Context, *SearchAccountRequest) (*GetAccountBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method SearchAccount not implemented") } func (UnimplementedAccountServiceServer) ListAccounts(context.Context, *ListAccountsRequest) (*ListAccountsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAccounts not implemented") } func (UnimplementedAccountServiceServer) GetAccountStatus(context.Context, *GetAccountRequest) (*AccountStatus, error) { return nil, status.Error(codes.Unimplemented, "method GetAccountStatus not implemented") } func (UnimplementedAccountServiceServer) GetAccountStatusBatch(context.Context, *GetAccountBatchRequest) (*GetAccountStatusBatchResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetAccountStatusBatch not implemented") } func (UnimplementedAccountServiceServer) GetProfile(context.Context, *GetProfileRequest) (*AccountProfile, error) { return nil, status.Error(codes.Unimplemented, "method GetProfile not implemented") } func (UnimplementedAccountServiceServer) ListContacts(context.Context, *ListContactsRequest) (*ListContactsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListContacts not implemented") } func (UnimplementedAccountServiceServer) ListBadges(context.Context, *ListBadgesRequest) (*ListBadgesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListBadges not implemented") } func (UnimplementedAccountServiceServer) ListAuthFactors(context.Context, *ListAuthFactorsRequest) (*ListAuthFactorsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListAuthFactors not implemented") } func (UnimplementedAccountServiceServer) ListConnections(context.Context, *ListConnectionsRequest) (*ListConnectionsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListConnections not implemented") } func (UnimplementedAccountServiceServer) ListRelationships(context.Context, *ListRelationshipsRequest) (*ListRelationshipsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListRelationships not implemented") } func (UnimplementedAccountServiceServer) GetRelationship(context.Context, *GetRelationshipRequest) (*GetRelationshipResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetRelationship not implemented") } func (UnimplementedAccountServiceServer) HasRelationship(context.Context, *GetRelationshipRequest) (*wrapperspb.BoolValue, error) { return nil, status.Error(codes.Unimplemented, "method HasRelationship not implemented") } func (UnimplementedAccountServiceServer) ListFriends(context.Context, *ListRelationshipSimpleRequest) (*ListRelationshipSimpleResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListFriends not implemented") } func (UnimplementedAccountServiceServer) ListBlocked(context.Context, *ListRelationshipSimpleRequest) (*ListRelationshipSimpleResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListBlocked not implemented") } func (UnimplementedAccountServiceServer) mustEmbedUnimplementedAccountServiceServer() {} func (UnimplementedAccountServiceServer) testEmbeddedByValue() {} // UnsafeAccountServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to AccountServiceServer will // result in compilation errors. type UnsafeAccountServiceServer interface { mustEmbedUnimplementedAccountServiceServer() } func RegisterAccountServiceServer(s grpc.ServiceRegistrar, srv AccountServiceServer) { // If the following call panics, it indicates UnimplementedAccountServiceServer 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(&AccountService_ServiceDesc, srv) } func _AccountService_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.(AccountServiceServer).GetAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetAccount(ctx, req.(*GetAccountRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetBotAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBotAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetBotAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetBotAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetBotAccount(ctx, req.(*GetBotAccountRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetAccountBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAccountBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetAccountBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetAccountBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetAccountBatch(ctx, req.(*GetAccountBatchRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetBotAccountBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetBotAccountBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetBotAccountBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetBotAccountBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetBotAccountBatch(ctx, req.(*GetBotAccountBatchRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_LookupAccountBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(LookupAccountBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).LookupAccountBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_LookupAccountBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).LookupAccountBatch(ctx, req.(*LookupAccountBatchRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_SearchAccount_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SearchAccountRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).SearchAccount(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_SearchAccount_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).SearchAccount(ctx, req.(*SearchAccountRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListAccounts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAccountsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListAccounts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListAccounts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListAccounts(ctx, req.(*ListAccountsRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetAccountStatus_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.(AccountServiceServer).GetAccountStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetAccountStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetAccountStatus(ctx, req.(*GetAccountRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetAccountStatusBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetAccountBatchRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetAccountStatusBatch(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetAccountStatusBatch_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetAccountStatusBatch(ctx, req.(*GetAccountBatchRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetProfile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetProfileRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetProfile(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetProfile_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetProfile(ctx, req.(*GetProfileRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListContacts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListContactsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListContacts(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListContacts_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListContacts(ctx, req.(*ListContactsRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListBadges_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListBadgesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListBadges(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListBadges_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListBadges(ctx, req.(*ListBadgesRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListAuthFactors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListAuthFactorsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListAuthFactors(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListAuthFactors_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListAuthFactors(ctx, req.(*ListAuthFactorsRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListConnections_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListConnectionsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListConnections(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListConnections_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListConnections(ctx, req.(*ListConnectionsRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListRelationships_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRelationshipsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListRelationships(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListRelationships_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListRelationships(ctx, req.(*ListRelationshipsRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_GetRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetRelationshipRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).GetRelationship(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_GetRelationship_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).GetRelationship(ctx, req.(*GetRelationshipRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_HasRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetRelationshipRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).HasRelationship(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_HasRelationship_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).HasRelationship(ctx, req.(*GetRelationshipRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListFriends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRelationshipSimpleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListFriends(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListFriends_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListFriends(ctx, req.(*ListRelationshipSimpleRequest)) } return interceptor(ctx, in, info, handler) } func _AccountService_ListBlocked_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListRelationshipSimpleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(AccountServiceServer).ListBlocked(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: AccountService_ListBlocked_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(AccountServiceServer).ListBlocked(ctx, req.(*ListRelationshipSimpleRequest)) } return interceptor(ctx, in, info, handler) } // AccountService_ServiceDesc is the grpc.ServiceDesc for AccountService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var AccountService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.AccountService", HandlerType: (*AccountServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAccount", Handler: _AccountService_GetAccount_Handler, }, { MethodName: "GetBotAccount", Handler: _AccountService_GetBotAccount_Handler, }, { MethodName: "GetAccountBatch", Handler: _AccountService_GetAccountBatch_Handler, }, { MethodName: "GetBotAccountBatch", Handler: _AccountService_GetBotAccountBatch_Handler, }, { MethodName: "LookupAccountBatch", Handler: _AccountService_LookupAccountBatch_Handler, }, { MethodName: "SearchAccount", Handler: _AccountService_SearchAccount_Handler, }, { MethodName: "ListAccounts", Handler: _AccountService_ListAccounts_Handler, }, { MethodName: "GetAccountStatus", Handler: _AccountService_GetAccountStatus_Handler, }, { MethodName: "GetAccountStatusBatch", Handler: _AccountService_GetAccountStatusBatch_Handler, }, { MethodName: "GetProfile", Handler: _AccountService_GetProfile_Handler, }, { MethodName: "ListContacts", Handler: _AccountService_ListContacts_Handler, }, { MethodName: "ListBadges", Handler: _AccountService_ListBadges_Handler, }, { MethodName: "ListAuthFactors", Handler: _AccountService_ListAuthFactors_Handler, }, { MethodName: "ListConnections", Handler: _AccountService_ListConnections_Handler, }, { MethodName: "ListRelationships", Handler: _AccountService_ListRelationships_Handler, }, { MethodName: "GetRelationship", Handler: _AccountService_GetRelationship_Handler, }, { MethodName: "HasRelationship", Handler: _AccountService_HasRelationship_Handler, }, { MethodName: "ListFriends", Handler: _AccountService_ListFriends_Handler, }, { MethodName: "ListBlocked", Handler: _AccountService_ListBlocked_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account.proto", } const ( ActionLogService_CreateActionLog_FullMethodName = "/proto.ActionLogService/CreateActionLog" ActionLogService_ListActionLogs_FullMethodName = "/proto.ActionLogService/ListActionLogs" ) // ActionLogServiceClient is the client API for ActionLogService 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. // // ActionLogService provides operations for action logs type ActionLogServiceClient interface { CreateActionLog(ctx context.Context, in *CreateActionLogRequest, opts ...grpc.CallOption) (*CreateActionLogResponse, error) ListActionLogs(ctx context.Context, in *ListActionLogsRequest, opts ...grpc.CallOption) (*ListActionLogsResponse, error) } type actionLogServiceClient struct { cc grpc.ClientConnInterface } func NewActionLogServiceClient(cc grpc.ClientConnInterface) ActionLogServiceClient { return &actionLogServiceClient{cc} } func (c *actionLogServiceClient) CreateActionLog(ctx context.Context, in *CreateActionLogRequest, opts ...grpc.CallOption) (*CreateActionLogResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(CreateActionLogResponse) err := c.cc.Invoke(ctx, ActionLogService_CreateActionLog_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *actionLogServiceClient) ListActionLogs(ctx context.Context, in *ListActionLogsRequest, opts ...grpc.CallOption) (*ListActionLogsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListActionLogsResponse) err := c.cc.Invoke(ctx, ActionLogService_ListActionLogs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // ActionLogServiceServer is the server API for ActionLogService service. // All implementations must embed UnimplementedActionLogServiceServer // for forward compatibility. // // ActionLogService provides operations for action logs type ActionLogServiceServer interface { CreateActionLog(context.Context, *CreateActionLogRequest) (*CreateActionLogResponse, error) ListActionLogs(context.Context, *ListActionLogsRequest) (*ListActionLogsResponse, error) mustEmbedUnimplementedActionLogServiceServer() } // UnimplementedActionLogServiceServer 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 UnimplementedActionLogServiceServer struct{} func (UnimplementedActionLogServiceServer) CreateActionLog(context.Context, *CreateActionLogRequest) (*CreateActionLogResponse, error) { return nil, status.Error(codes.Unimplemented, "method CreateActionLog not implemented") } func (UnimplementedActionLogServiceServer) ListActionLogs(context.Context, *ListActionLogsRequest) (*ListActionLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListActionLogs not implemented") } func (UnimplementedActionLogServiceServer) mustEmbedUnimplementedActionLogServiceServer() {} func (UnimplementedActionLogServiceServer) testEmbeddedByValue() {} // UnsafeActionLogServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ActionLogServiceServer will // result in compilation errors. type UnsafeActionLogServiceServer interface { mustEmbedUnimplementedActionLogServiceServer() } func RegisterActionLogServiceServer(s grpc.ServiceRegistrar, srv ActionLogServiceServer) { // If the following call panics, it indicates UnimplementedActionLogServiceServer 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(&ActionLogService_ServiceDesc, srv) } func _ActionLogService_CreateActionLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(CreateActionLogRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ActionLogServiceServer).CreateActionLog(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ActionLogService_CreateActionLog_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ActionLogServiceServer).CreateActionLog(ctx, req.(*CreateActionLogRequest)) } return interceptor(ctx, in, info, handler) } func _ActionLogService_ListActionLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListActionLogsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ActionLogServiceServer).ListActionLogs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ActionLogService_ListActionLogs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ActionLogServiceServer).ListActionLogs(ctx, req.(*ListActionLogsRequest)) } return interceptor(ctx, in, info, handler) } // ActionLogService_ServiceDesc is the grpc.ServiceDesc for ActionLogService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ActionLogService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.ActionLogService", HandlerType: (*ActionLogServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateActionLog", Handler: _ActionLogService_CreateActionLog_Handler, }, { MethodName: "ListActionLogs", Handler: _ActionLogService_ListActionLogs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "account.proto", }