chore: auto-generate protobuf files [skip ci]
This commit is contained in:
@@ -1298,6 +1298,170 @@ func (x *GetBlockedUsersResponse) GetBlockedUsers() []*BlockedUserItem {
|
||||
return nil
|
||||
}
|
||||
|
||||
type SystemGetProfileBatchRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
UserIds []string `protobuf:"bytes,1,rep,name=user_ids,json=userIds,proto3" json:"user_ids,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchRequest) Reset() {
|
||||
*x = SystemGetProfileBatchRequest{}
|
||||
mi := &file_users_users_proto_msgTypes[21]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchRequest) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SystemGetProfileBatchRequest) ProtoMessage() {}
|
||||
|
||||
func (x *SystemGetProfileBatchRequest) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_users_proto_msgTypes[21]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SystemGetProfileBatchRequest.ProtoReflect.Descriptor instead.
|
||||
func (*SystemGetProfileBatchRequest) Descriptor() ([]byte, []int) {
|
||||
return file_users_users_proto_rawDescGZIP(), []int{21}
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchRequest) GetUserIds() []string {
|
||||
if x != nil {
|
||||
return x.UserIds
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type ProfileBasicItem struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
||||
Email *string `protobuf:"bytes,2,opt,name=email,proto3,oneof" json:"email,omitempty"`
|
||||
Phone *string `protobuf:"bytes,3,opt,name=phone,proto3,oneof" json:"phone,omitempty"`
|
||||
FullName *string `protobuf:"bytes,4,opt,name=full_name,json=fullName,proto3,oneof" json:"full_name,omitempty"`
|
||||
IsPublic bool `protobuf:"varint,5,opt,name=is_public,json=isPublic,proto3" json:"is_public,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) Reset() {
|
||||
*x = ProfileBasicItem{}
|
||||
mi := &file_users_users_proto_msgTypes[22]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*ProfileBasicItem) ProtoMessage() {}
|
||||
|
||||
func (x *ProfileBasicItem) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_users_proto_msgTypes[22]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use ProfileBasicItem.ProtoReflect.Descriptor instead.
|
||||
func (*ProfileBasicItem) Descriptor() ([]byte, []int) {
|
||||
return file_users_users_proto_rawDescGZIP(), []int{22}
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) GetId() string {
|
||||
if x != nil {
|
||||
return x.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) GetEmail() string {
|
||||
if x != nil && x.Email != nil {
|
||||
return *x.Email
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) GetPhone() string {
|
||||
if x != nil && x.Phone != nil {
|
||||
return *x.Phone
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) GetFullName() string {
|
||||
if x != nil && x.FullName != nil {
|
||||
return *x.FullName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (x *ProfileBasicItem) GetIsPublic() bool {
|
||||
if x != nil {
|
||||
return x.IsPublic
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
type SystemGetProfileBatchResponse struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
Profiles []*ProfileBasicItem `protobuf:"bytes,1,rep,name=profiles,proto3" json:"profiles,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchResponse) Reset() {
|
||||
*x = SystemGetProfileBatchResponse{}
|
||||
mi := &file_users_users_proto_msgTypes[23]
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchResponse) String() string {
|
||||
return protoimpl.X.MessageStringOf(x)
|
||||
}
|
||||
|
||||
func (*SystemGetProfileBatchResponse) ProtoMessage() {}
|
||||
|
||||
func (x *SystemGetProfileBatchResponse) ProtoReflect() protoreflect.Message {
|
||||
mi := &file_users_users_proto_msgTypes[23]
|
||||
if x != nil {
|
||||
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
||||
if ms.LoadMessageInfo() == nil {
|
||||
ms.StoreMessageInfo(mi)
|
||||
}
|
||||
return ms
|
||||
}
|
||||
return mi.MessageOf(x)
|
||||
}
|
||||
|
||||
// Deprecated: Use SystemGetProfileBatchResponse.ProtoReflect.Descriptor instead.
|
||||
func (*SystemGetProfileBatchResponse) Descriptor() ([]byte, []int) {
|
||||
return file_users_users_proto_rawDescGZIP(), []int{23}
|
||||
}
|
||||
|
||||
func (x *SystemGetProfileBatchResponse) GetProfiles() []*ProfileBasicItem {
|
||||
if x != nil {
|
||||
return x.Profiles
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
var File_users_users_proto protoreflect.FileDescriptor
|
||||
|
||||
const file_users_users_proto_rawDesc = "" +
|
||||
@@ -1447,7 +1611,21 @@ const file_users_users_proto_rawDesc = "" +
|
||||
"\n" +
|
||||
"blocker_id\x18\x01 \x01(\tR\tblockerId\"Y\n" +
|
||||
"\x17GetBlockedUsersResponse\x12>\n" +
|
||||
"\rblocked_users\x18\x01 \x03(\v2\x19.users.v1.BlockedUserItemR\fblockedUsers2\xd8\x05\n" +
|
||||
"\rblocked_users\x18\x01 \x03(\v2\x19.users.v1.BlockedUserItemR\fblockedUsers\"9\n" +
|
||||
"\x1cSystemGetProfileBatchRequest\x12\x19\n" +
|
||||
"\buser_ids\x18\x01 \x03(\tR\auserIds\"\xb9\x01\n" +
|
||||
"\x10ProfileBasicItem\x12\x0e\n" +
|
||||
"\x02id\x18\x01 \x01(\tR\x02id\x12\x19\n" +
|
||||
"\x05email\x18\x02 \x01(\tH\x00R\x05email\x88\x01\x01\x12\x19\n" +
|
||||
"\x05phone\x18\x03 \x01(\tH\x01R\x05phone\x88\x01\x01\x12 \n" +
|
||||
"\tfull_name\x18\x04 \x01(\tH\x02R\bfullName\x88\x01\x01\x12\x1b\n" +
|
||||
"\tis_public\x18\x05 \x01(\bR\bisPublicB\b\n" +
|
||||
"\x06_emailB\b\n" +
|
||||
"\x06_phoneB\f\n" +
|
||||
"\n" +
|
||||
"_full_name\"W\n" +
|
||||
"\x1dSystemGetProfileBatchResponse\x126\n" +
|
||||
"\bprofiles\x18\x01 \x03(\v2\x1a.users.v1.ProfileBasicItemR\bprofiles2\xc2\x06\n" +
|
||||
"\fUsersService\x12G\n" +
|
||||
"\n" +
|
||||
"GetProfile\x12\x1b.users.v1.GetProfileRequest\x1a\x1c.users.v1.GetProfileResponse\x12P\n" +
|
||||
@@ -1459,7 +1637,8 @@ const file_users_users_proto_rawDesc = "" +
|
||||
"\x0fGetBlockedUsers\x12 .users.v1.GetBlockedUsersRequest\x1a!.users.v1.GetBlockedUsersResponse\x12G\n" +
|
||||
"\n" +
|
||||
"AddContact\x12\x1b.users.v1.AddContactRequest\x1a\x1c.users.v1.AddContactResponse\x12J\n" +
|
||||
"\vGetContacts\x12\x1c.users.v1.GetContactsRequest\x1a\x1d.users.v1.GetContactsResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
||||
"\vGetContacts\x12\x1c.users.v1.GetContactsRequest\x1a\x1d.users.v1.GetContactsResponse\x12h\n" +
|
||||
"\x15SystemGetProfileBatch\x12&.users.v1.SystemGetProfileBatchRequest\x1a'.users.v1.SystemGetProfileBatchResponseB*Z(git.lendry.ru/lendry-erp/proto.git/go;pbb\x06proto3"
|
||||
|
||||
var (
|
||||
file_users_users_proto_rawDescOnce sync.Once
|
||||
@@ -1473,58 +1652,64 @@ func file_users_users_proto_rawDescGZIP() []byte {
|
||||
return file_users_users_proto_rawDescData
|
||||
}
|
||||
|
||||
var file_users_users_proto_msgTypes = make([]protoimpl.MessageInfo, 21)
|
||||
var file_users_users_proto_msgTypes = make([]protoimpl.MessageInfo, 24)
|
||||
var file_users_users_proto_goTypes = []any{
|
||||
(*UserSettingsMessage)(nil), // 0: users.v1.UserSettingsMessage
|
||||
(*GetProfileRequest)(nil), // 1: users.v1.GetProfileRequest
|
||||
(*GetProfileResponse)(nil), // 2: users.v1.GetProfileResponse
|
||||
(*UpdateProfileRequest)(nil), // 3: users.v1.UpdateProfileRequest
|
||||
(*UpdateProfileResponse)(nil), // 4: users.v1.UpdateProfileResponse
|
||||
(*CreateProfileRequest)(nil), // 5: users.v1.CreateProfileRequest
|
||||
(*CreateProfileResponse)(nil), // 6: users.v1.CreateProfileResponse
|
||||
(*SoftDeleteProfileRequest)(nil), // 7: users.v1.SoftDeleteProfileRequest
|
||||
(*SoftDeleteProfileResponse)(nil), // 8: users.v1.SoftDeleteProfileResponse
|
||||
(*ContactItem)(nil), // 9: users.v1.ContactItem
|
||||
(*AddContactRequest)(nil), // 10: users.v1.AddContactRequest
|
||||
(*AddContactResponse)(nil), // 11: users.v1.AddContactResponse
|
||||
(*GetContactsRequest)(nil), // 12: users.v1.GetContactsRequest
|
||||
(*GetContactsResponse)(nil), // 13: users.v1.GetContactsResponse
|
||||
(*BlockedUserItem)(nil), // 14: users.v1.BlockedUserItem
|
||||
(*BlockUserRequest)(nil), // 15: users.v1.BlockUserRequest
|
||||
(*BlockUserResponse)(nil), // 16: users.v1.BlockUserResponse
|
||||
(*UnblockUserRequest)(nil), // 17: users.v1.UnblockUserRequest
|
||||
(*UnblockUserResponse)(nil), // 18: users.v1.UnblockUserResponse
|
||||
(*GetBlockedUsersRequest)(nil), // 19: users.v1.GetBlockedUsersRequest
|
||||
(*GetBlockedUsersResponse)(nil), // 20: users.v1.GetBlockedUsersResponse
|
||||
(*UserSettingsMessage)(nil), // 0: users.v1.UserSettingsMessage
|
||||
(*GetProfileRequest)(nil), // 1: users.v1.GetProfileRequest
|
||||
(*GetProfileResponse)(nil), // 2: users.v1.GetProfileResponse
|
||||
(*UpdateProfileRequest)(nil), // 3: users.v1.UpdateProfileRequest
|
||||
(*UpdateProfileResponse)(nil), // 4: users.v1.UpdateProfileResponse
|
||||
(*CreateProfileRequest)(nil), // 5: users.v1.CreateProfileRequest
|
||||
(*CreateProfileResponse)(nil), // 6: users.v1.CreateProfileResponse
|
||||
(*SoftDeleteProfileRequest)(nil), // 7: users.v1.SoftDeleteProfileRequest
|
||||
(*SoftDeleteProfileResponse)(nil), // 8: users.v1.SoftDeleteProfileResponse
|
||||
(*ContactItem)(nil), // 9: users.v1.ContactItem
|
||||
(*AddContactRequest)(nil), // 10: users.v1.AddContactRequest
|
||||
(*AddContactResponse)(nil), // 11: users.v1.AddContactResponse
|
||||
(*GetContactsRequest)(nil), // 12: users.v1.GetContactsRequest
|
||||
(*GetContactsResponse)(nil), // 13: users.v1.GetContactsResponse
|
||||
(*BlockedUserItem)(nil), // 14: users.v1.BlockedUserItem
|
||||
(*BlockUserRequest)(nil), // 15: users.v1.BlockUserRequest
|
||||
(*BlockUserResponse)(nil), // 16: users.v1.BlockUserResponse
|
||||
(*UnblockUserRequest)(nil), // 17: users.v1.UnblockUserRequest
|
||||
(*UnblockUserResponse)(nil), // 18: users.v1.UnblockUserResponse
|
||||
(*GetBlockedUsersRequest)(nil), // 19: users.v1.GetBlockedUsersRequest
|
||||
(*GetBlockedUsersResponse)(nil), // 20: users.v1.GetBlockedUsersResponse
|
||||
(*SystemGetProfileBatchRequest)(nil), // 21: users.v1.SystemGetProfileBatchRequest
|
||||
(*ProfileBasicItem)(nil), // 22: users.v1.ProfileBasicItem
|
||||
(*SystemGetProfileBatchResponse)(nil), // 23: users.v1.SystemGetProfileBatchResponse
|
||||
}
|
||||
var file_users_users_proto_depIdxs = []int32{
|
||||
0, // 0: users.v1.GetProfileResponse.settings:type_name -> users.v1.UserSettingsMessage
|
||||
0, // 1: users.v1.UpdateProfileRequest.settings:type_name -> users.v1.UserSettingsMessage
|
||||
9, // 2: users.v1.GetContactsResponse.contacts:type_name -> users.v1.ContactItem
|
||||
14, // 3: users.v1.GetBlockedUsersResponse.blocked_users:type_name -> users.v1.BlockedUserItem
|
||||
1, // 4: users.v1.UsersService.GetProfile:input_type -> users.v1.GetProfileRequest
|
||||
3, // 5: users.v1.UsersService.UpdateProfile:input_type -> users.v1.UpdateProfileRequest
|
||||
5, // 6: users.v1.UsersService.CreateProfile:input_type -> users.v1.CreateProfileRequest
|
||||
7, // 7: users.v1.UsersService.SoftDeleteProfile:input_type -> users.v1.SoftDeleteProfileRequest
|
||||
15, // 8: users.v1.UsersService.BlockUser:input_type -> users.v1.BlockUserRequest
|
||||
17, // 9: users.v1.UsersService.UnblockUser:input_type -> users.v1.UnblockUserRequest
|
||||
19, // 10: users.v1.UsersService.GetBlockedUsers:input_type -> users.v1.GetBlockedUsersRequest
|
||||
10, // 11: users.v1.UsersService.AddContact:input_type -> users.v1.AddContactRequest
|
||||
12, // 12: users.v1.UsersService.GetContacts:input_type -> users.v1.GetContactsRequest
|
||||
2, // 13: users.v1.UsersService.GetProfile:output_type -> users.v1.GetProfileResponse
|
||||
4, // 14: users.v1.UsersService.UpdateProfile:output_type -> users.v1.UpdateProfileResponse
|
||||
6, // 15: users.v1.UsersService.CreateProfile:output_type -> users.v1.CreateProfileResponse
|
||||
8, // 16: users.v1.UsersService.SoftDeleteProfile:output_type -> users.v1.SoftDeleteProfileResponse
|
||||
16, // 17: users.v1.UsersService.BlockUser:output_type -> users.v1.BlockUserResponse
|
||||
18, // 18: users.v1.UsersService.UnblockUser:output_type -> users.v1.UnblockUserResponse
|
||||
20, // 19: users.v1.UsersService.GetBlockedUsers:output_type -> users.v1.GetBlockedUsersResponse
|
||||
11, // 20: users.v1.UsersService.AddContact:output_type -> users.v1.AddContactResponse
|
||||
13, // 21: users.v1.UsersService.GetContacts:output_type -> users.v1.GetContactsResponse
|
||||
13, // [13:22] is the sub-list for method output_type
|
||||
4, // [4:13] is the sub-list for method input_type
|
||||
4, // [4:4] is the sub-list for extension type_name
|
||||
4, // [4:4] is the sub-list for extension extendee
|
||||
0, // [0:4] is the sub-list for field type_name
|
||||
22, // 4: users.v1.SystemGetProfileBatchResponse.profiles:type_name -> users.v1.ProfileBasicItem
|
||||
1, // 5: users.v1.UsersService.GetProfile:input_type -> users.v1.GetProfileRequest
|
||||
3, // 6: users.v1.UsersService.UpdateProfile:input_type -> users.v1.UpdateProfileRequest
|
||||
5, // 7: users.v1.UsersService.CreateProfile:input_type -> users.v1.CreateProfileRequest
|
||||
7, // 8: users.v1.UsersService.SoftDeleteProfile:input_type -> users.v1.SoftDeleteProfileRequest
|
||||
15, // 9: users.v1.UsersService.BlockUser:input_type -> users.v1.BlockUserRequest
|
||||
17, // 10: users.v1.UsersService.UnblockUser:input_type -> users.v1.UnblockUserRequest
|
||||
19, // 11: users.v1.UsersService.GetBlockedUsers:input_type -> users.v1.GetBlockedUsersRequest
|
||||
10, // 12: users.v1.UsersService.AddContact:input_type -> users.v1.AddContactRequest
|
||||
12, // 13: users.v1.UsersService.GetContacts:input_type -> users.v1.GetContactsRequest
|
||||
21, // 14: users.v1.UsersService.SystemGetProfileBatch:input_type -> users.v1.SystemGetProfileBatchRequest
|
||||
2, // 15: users.v1.UsersService.GetProfile:output_type -> users.v1.GetProfileResponse
|
||||
4, // 16: users.v1.UsersService.UpdateProfile:output_type -> users.v1.UpdateProfileResponse
|
||||
6, // 17: users.v1.UsersService.CreateProfile:output_type -> users.v1.CreateProfileResponse
|
||||
8, // 18: users.v1.UsersService.SoftDeleteProfile:output_type -> users.v1.SoftDeleteProfileResponse
|
||||
16, // 19: users.v1.UsersService.BlockUser:output_type -> users.v1.BlockUserResponse
|
||||
18, // 20: users.v1.UsersService.UnblockUser:output_type -> users.v1.UnblockUserResponse
|
||||
20, // 21: users.v1.UsersService.GetBlockedUsers:output_type -> users.v1.GetBlockedUsersResponse
|
||||
11, // 22: users.v1.UsersService.AddContact:output_type -> users.v1.AddContactResponse
|
||||
13, // 23: users.v1.UsersService.GetContacts:output_type -> users.v1.GetContactsResponse
|
||||
23, // 24: users.v1.UsersService.SystemGetProfileBatch:output_type -> users.v1.SystemGetProfileBatchResponse
|
||||
15, // [15:25] is the sub-list for method output_type
|
||||
5, // [5:15] is the sub-list for method input_type
|
||||
5, // [5:5] is the sub-list for extension type_name
|
||||
5, // [5:5] is the sub-list for extension extendee
|
||||
0, // [0:5] is the sub-list for field type_name
|
||||
}
|
||||
|
||||
func init() { file_users_users_proto_init() }
|
||||
@@ -1538,13 +1723,14 @@ func file_users_users_proto_init() {
|
||||
file_users_users_proto_msgTypes[5].OneofWrappers = []any{}
|
||||
file_users_users_proto_msgTypes[9].OneofWrappers = []any{}
|
||||
file_users_users_proto_msgTypes[10].OneofWrappers = []any{}
|
||||
file_users_users_proto_msgTypes[22].OneofWrappers = []any{}
|
||||
type x struct{}
|
||||
out := protoimpl.TypeBuilder{
|
||||
File: protoimpl.DescBuilder{
|
||||
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
||||
RawDescriptor: unsafe.Slice(unsafe.StringData(file_users_users_proto_rawDesc), len(file_users_users_proto_rawDesc)),
|
||||
NumEnums: 0,
|
||||
NumMessages: 21,
|
||||
NumMessages: 24,
|
||||
NumExtensions: 0,
|
||||
NumServices: 1,
|
||||
},
|
||||
|
||||
@@ -19,15 +19,16 @@ import (
|
||||
const _ = grpc.SupportPackageIsVersion9
|
||||
|
||||
const (
|
||||
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
|
||||
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
|
||||
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
|
||||
UsersService_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
|
||||
UsersService_BlockUser_FullMethodName = "/users.v1.UsersService/BlockUser"
|
||||
UsersService_UnblockUser_FullMethodName = "/users.v1.UsersService/UnblockUser"
|
||||
UsersService_GetBlockedUsers_FullMethodName = "/users.v1.UsersService/GetBlockedUsers"
|
||||
UsersService_AddContact_FullMethodName = "/users.v1.UsersService/AddContact"
|
||||
UsersService_GetContacts_FullMethodName = "/users.v1.UsersService/GetContacts"
|
||||
UsersService_GetProfile_FullMethodName = "/users.v1.UsersService/GetProfile"
|
||||
UsersService_UpdateProfile_FullMethodName = "/users.v1.UsersService/UpdateProfile"
|
||||
UsersService_CreateProfile_FullMethodName = "/users.v1.UsersService/CreateProfile"
|
||||
UsersService_SoftDeleteProfile_FullMethodName = "/users.v1.UsersService/SoftDeleteProfile"
|
||||
UsersService_BlockUser_FullMethodName = "/users.v1.UsersService/BlockUser"
|
||||
UsersService_UnblockUser_FullMethodName = "/users.v1.UsersService/UnblockUser"
|
||||
UsersService_GetBlockedUsers_FullMethodName = "/users.v1.UsersService/GetBlockedUsers"
|
||||
UsersService_AddContact_FullMethodName = "/users.v1.UsersService/AddContact"
|
||||
UsersService_GetContacts_FullMethodName = "/users.v1.UsersService/GetContacts"
|
||||
UsersService_SystemGetProfileBatch_FullMethodName = "/users.v1.UsersService/SystemGetProfileBatch"
|
||||
)
|
||||
|
||||
// UsersServiceClient is the client API for UsersService service.
|
||||
@@ -45,6 +46,7 @@ type UsersServiceClient interface {
|
||||
GetBlockedUsers(ctx context.Context, in *GetBlockedUsersRequest, opts ...grpc.CallOption) (*GetBlockedUsersResponse, error)
|
||||
AddContact(ctx context.Context, in *AddContactRequest, opts ...grpc.CallOption) (*AddContactResponse, error)
|
||||
GetContacts(ctx context.Context, in *GetContactsRequest, opts ...grpc.CallOption) (*GetContactsResponse, error)
|
||||
SystemGetProfileBatch(ctx context.Context, in *SystemGetProfileBatchRequest, opts ...grpc.CallOption) (*SystemGetProfileBatchResponse, error)
|
||||
}
|
||||
|
||||
type usersServiceClient struct {
|
||||
@@ -145,6 +147,16 @@ func (c *usersServiceClient) GetContacts(ctx context.Context, in *GetContactsReq
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *usersServiceClient) SystemGetProfileBatch(ctx context.Context, in *SystemGetProfileBatchRequest, opts ...grpc.CallOption) (*SystemGetProfileBatchResponse, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(SystemGetProfileBatchResponse)
|
||||
err := c.cc.Invoke(ctx, UsersService_SystemGetProfileBatch_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// UsersServiceServer is the server API for UsersService service.
|
||||
// All implementations must embed UnimplementedUsersServiceServer
|
||||
// for forward compatibility.
|
||||
@@ -160,6 +172,7 @@ type UsersServiceServer interface {
|
||||
GetBlockedUsers(context.Context, *GetBlockedUsersRequest) (*GetBlockedUsersResponse, error)
|
||||
AddContact(context.Context, *AddContactRequest) (*AddContactResponse, error)
|
||||
GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error)
|
||||
SystemGetProfileBatch(context.Context, *SystemGetProfileBatchRequest) (*SystemGetProfileBatchResponse, error)
|
||||
mustEmbedUnimplementedUsersServiceServer()
|
||||
}
|
||||
|
||||
@@ -197,6 +210,9 @@ func (UnimplementedUsersServiceServer) AddContact(context.Context, *AddContactRe
|
||||
func (UnimplementedUsersServiceServer) GetContacts(context.Context, *GetContactsRequest) (*GetContactsResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetContacts not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) SystemGetProfileBatch(context.Context, *SystemGetProfileBatchRequest) (*SystemGetProfileBatchResponse, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method SystemGetProfileBatch not implemented")
|
||||
}
|
||||
func (UnimplementedUsersServiceServer) mustEmbedUnimplementedUsersServiceServer() {}
|
||||
func (UnimplementedUsersServiceServer) testEmbeddedByValue() {}
|
||||
|
||||
@@ -380,6 +396,24 @@ func _UsersService_GetContacts_Handler(srv interface{}, ctx context.Context, dec
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _UsersService_SystemGetProfileBatch_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(SystemGetProfileBatchRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UsersServiceServer).SystemGetProfileBatch(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: UsersService_SystemGetProfileBatch_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UsersServiceServer).SystemGetProfileBatch(ctx, req.(*SystemGetProfileBatchRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
// UsersService_ServiceDesc is the grpc.ServiceDesc for UsersService service.
|
||||
// It's only intended for direct use with grpc.RegisterService,
|
||||
// and not to be introspected or modified (even as a copy)
|
||||
@@ -423,6 +457,10 @@ var UsersService_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetContacts",
|
||||
Handler: _UsersService_GetContacts_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "SystemGetProfileBatch",
|
||||
Handler: _UsersService_SystemGetProfileBatch_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "users/users.proto",
|
||||
|
||||
Reference in New Issue
Block a user