| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357 | // Code generated by protoc-gen-go-grpc. DO NOT EDIT.package userimport (	context "context"	base "git.ikuban.com/server/pw-protobuf/api/base"	chat "git.ikuban.com/server/pw-protobuf/api/chat"	partner "git.ikuban.com/server/pw-protobuf/api/partner"	grpc "google.golang.org/grpc"	codes "google.golang.org/grpc/codes"	status "google.golang.org/grpc/status"	emptypb "google.golang.org/protobuf/types/known/emptypb")// 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// UserClient is the client API for User 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 UserClient interface {	UpdateUserInformation(ctx context.Context, in *UpdateUserInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)	SendPhoneCode(ctx context.Context, in *SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	CheckPhoneCode(ctx context.Context, in *CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)	CheckUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error)	CreateUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error)	GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error)	GetUserHomeInfo(ctx context.Context, in *base.UserIDParam, opts ...grpc.CallOption) (*UserHomeInfo, error)}type userClient struct {	cc grpc.ClientConnInterface}func NewUserClient(cc grpc.ClientConnInterface) UserClient {	return &userClient{cc}}func (c *userClient) UpdateUserInformation(ctx context.Context, in *UpdateUserInformationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.user.User/UpdateUserInformation", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {	out := new(UserInfo)	err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) SendPhoneCode(ctx context.Context, in *SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) CheckPhoneCode(ctx context.Context, in *CheckPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {	out := new(emptypb.Empty)	err := c.cc.Invoke(ctx, "/api.user.User/CheckPhoneCode", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) CheckUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CheckUserPartnerIsRelationshipReply, error) {	out := new(chat.CheckUserPartnerIsRelationshipReply)	err := c.cc.Invoke(ctx, "/api.user.User/CheckUserPartnerIsRelationship", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) CreateUserPartnerIsRelationship(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*chat.CreateUserPartnerIsRelationshipReply, error) {	out := new(chat.CreateUserPartnerIsRelationshipReply)	err := c.cc.Invoke(ctx, "/api.user.User/CreateUserPartnerIsRelationship", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) GetPartnerCircleInfo(ctx context.Context, in *base.PartnerIDParam, opts ...grpc.CallOption) (*partner.PartnerCircleInfo, error) {	out := new(partner.PartnerCircleInfo)	err := c.cc.Invoke(ctx, "/api.user.User/GetPartnerCircleInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}func (c *userClient) GetUserHomeInfo(ctx context.Context, in *base.UserIDParam, opts ...grpc.CallOption) (*UserHomeInfo, error) {	out := new(UserHomeInfo)	err := c.cc.Invoke(ctx, "/api.user.User/GetUserHomeInfo", in, out, opts...)	if err != nil {		return nil, err	}	return out, nil}// UserServer is the server API for User service.// All implementations must embed UnimplementedUserServer// for forward compatibilitytype UserServer interface {	UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error)	GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)	SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error)	CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error)	CheckUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error)	CreateUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error)	GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*partner.PartnerCircleInfo, error)	GetUserHomeInfo(context.Context, *base.UserIDParam) (*UserHomeInfo, error)	mustEmbedUnimplementedUserServer()}// UnimplementedUserServer must be embedded to have forward compatible implementations.type UnimplementedUserServer struct {}func (UnimplementedUserServer) UpdateUserInformation(context.Context, *UpdateUserInformationRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method UpdateUserInformation not implemented")}func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")}func (UnimplementedUserServer) SendPhoneCode(context.Context, *SendPhoneCodeRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")}func (UnimplementedUserServer) CheckPhoneCode(context.Context, *CheckPhoneCodeRequest) (*emptypb.Empty, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckPhoneCode not implemented")}func (UnimplementedUserServer) CheckUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CheckUserPartnerIsRelationshipReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CheckUserPartnerIsRelationship not implemented")}func (UnimplementedUserServer) CreateUserPartnerIsRelationship(context.Context, *base.PartnerIDParam) (*chat.CreateUserPartnerIsRelationshipReply, error) {	return nil, status.Errorf(codes.Unimplemented, "method CreateUserPartnerIsRelationship not implemented")}func (UnimplementedUserServer) GetPartnerCircleInfo(context.Context, *base.PartnerIDParam) (*partner.PartnerCircleInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetPartnerCircleInfo not implemented")}func (UnimplementedUserServer) GetUserHomeInfo(context.Context, *base.UserIDParam) (*UserHomeInfo, error) {	return nil, status.Errorf(codes.Unimplemented, "method GetUserHomeInfo not implemented")}func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}// UnsafeUserServer may be embedded to opt out of forward compatibility for this service.// Use of this interface is not recommended, as added methods to UserServer will// result in compilation errors.type UnsafeUserServer interface {	mustEmbedUnimplementedUserServer()}func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {	s.RegisterService(&User_ServiceDesc, srv)}func _User_UpdateUserInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(UpdateUserInformationRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).UpdateUserInformation(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/UpdateUserInformation",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).UpdateUserInformation(ctx, req.(*UpdateUserInformationRequest))	}	return interceptor(ctx, in, info, handler)}func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(emptypb.Empty)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).GetUserInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/GetUserInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).GetUserInfo(ctx, req.(*emptypb.Empty))	}	return interceptor(ctx, in, info, handler)}func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(SendPhoneCodeRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).SendPhoneCode(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/SendPhoneCode",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).SendPhoneCode(ctx, req.(*SendPhoneCodeRequest))	}	return interceptor(ctx, in, info, handler)}func _User_CheckPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(CheckPhoneCodeRequest)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).CheckPhoneCode(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/CheckPhoneCode",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).CheckPhoneCode(ctx, req.(*CheckPhoneCodeRequest))	}	return interceptor(ctx, in, info, handler)}func _User_CheckUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(base.PartnerIDParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/CheckUserPartnerIsRelationship",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).CheckUserPartnerIsRelationship(ctx, req.(*base.PartnerIDParam))	}	return interceptor(ctx, in, info, handler)}func _User_CreateUserPartnerIsRelationship_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(base.PartnerIDParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).CreateUserPartnerIsRelationship(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/CreateUserPartnerIsRelationship",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).CreateUserPartnerIsRelationship(ctx, req.(*base.PartnerIDParam))	}	return interceptor(ctx, in, info, handler)}func _User_GetPartnerCircleInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(base.PartnerIDParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).GetPartnerCircleInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/GetPartnerCircleInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).GetPartnerCircleInfo(ctx, req.(*base.PartnerIDParam))	}	return interceptor(ctx, in, info, handler)}func _User_GetUserHomeInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {	in := new(base.UserIDParam)	if err := dec(in); err != nil {		return nil, err	}	if interceptor == nil {		return srv.(UserServer).GetUserHomeInfo(ctx, in)	}	info := &grpc.UnaryServerInfo{		Server:     srv,		FullMethod: "/api.user.User/GetUserHomeInfo",	}	handler := func(ctx context.Context, req interface{}) (interface{}, error) {		return srv.(UserServer).GetUserHomeInfo(ctx, req.(*base.UserIDParam))	}	return interceptor(ctx, in, info, handler)}// User_ServiceDesc is the grpc.ServiceDesc for User service.// It's only intended for direct use with grpc.RegisterService,// and not to be introspected or modified (even as a copy)var User_ServiceDesc = grpc.ServiceDesc{	ServiceName: "api.user.User",	HandlerType: (*UserServer)(nil),	Methods: []grpc.MethodDesc{		{			MethodName: "UpdateUserInformation",			Handler:    _User_UpdateUserInformation_Handler,		},		{			MethodName: "GetUserInfo",			Handler:    _User_GetUserInfo_Handler,		},		{			MethodName: "SendPhoneCode",			Handler:    _User_SendPhoneCode_Handler,		},		{			MethodName: "CheckPhoneCode",			Handler:    _User_CheckPhoneCode_Handler,		},		{			MethodName: "CheckUserPartnerIsRelationship",			Handler:    _User_CheckUserPartnerIsRelationship_Handler,		},		{			MethodName: "CreateUserPartnerIsRelationship",			Handler:    _User_CreateUserPartnerIsRelationship_Handler,		},		{			MethodName: "GetPartnerCircleInfo",			Handler:    _User_GetPartnerCircleInfo_Handler,		},		{			MethodName: "GetUserHomeInfo",			Handler:    _User_GetUserHomeInfo_Handler,		},	},	Streams:  []grpc.StreamDesc{},	Metadata: "user.proto",}
 |