diff --git a/internal/rpc/cache/cache.go b/internal/rpc/cache/cache.go index 6e1eed5aa..dc2fb0d17 100644 --- a/internal/rpc/cache/cache.go +++ b/internal/rpc/cache/cache.go @@ -6,10 +6,12 @@ import ( rocksCache "Open_IM/pkg/common/db/rocks_cache" "Open_IM/pkg/common/log" promePkg "Open_IM/pkg/common/prometheus" - "Open_IM/pkg/grpc-etcdv3/getcdv3" + "Open_IM/pkg/common/trace_log" pbCache "Open_IM/pkg/proto/cache" + sdkws "Open_IM/pkg/proto/sdk_ws" "Open_IM/pkg/utils" "context" + "github.com/OpenIMSDK/getcdv3" "net" "strconv" "strings" @@ -75,7 +77,7 @@ func (s *cacheServer) Run() { } } log.NewInfo("", "rpcRegisterIP", rpcRegisterIP) - err = getcdv3.RegisterEtcd(s.etcdSchema, strings.Join(s.etcdAddr, ","), rpcRegisterIP, s.rpcPort, s.rpcRegisterName, 10) + err = getcdv3.RegisterEtcd(s.etcdSchema, strings.Join(s.etcdAddr, ","), rpcRegisterIP, s.rpcPort, s.rpcRegisterName, 10, "") if err != nil { log.NewError("0", "RegisterEtcd failed ", err.Error()) panic(utils.Wrap(err, "register cache module rpc to etcd err")) @@ -89,91 +91,97 @@ func (s *cacheServer) Run() { log.NewInfo("0", "message cms rpc success") } -func (s *cacheServer) GetFriendIDListFromCache(_ context.Context, req *pbCache.GetFriendIDListFromCacheReq) (resp *pbCache.GetFriendIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbCache.GetFriendIDListFromCacheResp{CommonResp: &pbCache.CommonResp{}} - friendIDList, err := rocksCache.GetFriendIDListFromCache(req.UserID) +func (s *cacheServer) GetFriendIDListFromCache(ctx context.Context, req *pbCache.GetFriendIDListFromCacheReq) (resp *pbCache.GetFriendIDListFromCacheResp, err error) { + resp = &pbCache.GetFriendIDListFromCacheResp{CommonResp: &sdkws.CommonResp{}} + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + friendIDList, err := rocksCache.GetFriendIDListFromCache(ctx, req.UserID) if err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetFriendIDListFromCache", err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg - return resp, nil + constant.SetErrorForResp(err, resp.CommonResp) + return } - log.NewDebug(req.OperationID, utils.GetSelfFuncName(), friendIDList) resp.UserIDList = friendIDList - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String()) - return resp, nil + return } // this is for dtm call -func (s *cacheServer) DelFriendIDListFromCache(_ context.Context, req *pbCache.DelFriendIDListFromCacheReq) (resp *pbCache.DelFriendIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbCache.DelFriendIDListFromCacheResp{CommonResp: &pbCache.CommonResp{}} - if err := rocksCache.DelFriendIDListFromCache(req.UserID); err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "args: ", req.UserID, err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = err.Error() - return resp, nil +func (s *cacheServer) DelFriendIDListFromCache(ctx context.Context, req *pbCache.DelFriendIDListFromCacheReq) (resp *pbCache.DelFriendIDListFromCacheResp, err error) { + resp = &pbCache.DelFriendIDListFromCacheResp{CommonResp: &sdkws.CommonResp{}} + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + if err := rocksCache.DelFriendIDListFromCache(ctx, req.UserID); err != nil { + constant.SetErrorForResp(err, resp.CommonResp) + return } log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", resp.String()) - return resp, nil + return } -func (s *cacheServer) GetBlackIDListFromCache(_ context.Context, req *pbCache.GetBlackIDListFromCacheReq) (resp *pbCache.GetBlackIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbCache.GetBlackIDListFromCacheResp{CommonResp: &pbCache.CommonResp{}} - blackUserIDList, err := rocksCache.GetBlackListFromCache(req.UserID) +func (s *cacheServer) GetBlackIDListFromCache(ctx context.Context, req *pbCache.GetBlackIDListFromCacheReq) (resp *pbCache.GetBlackIDListFromCacheResp, err error) { + resp = &pbCache.GetBlackIDListFromCacheResp{CommonResp: &sdkws.CommonResp{}} + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + blackUserIDList, err := rocksCache.GetBlackListFromCache(ctx, req.UserID) if err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "AddFriendToCache failed", err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg - return resp, nil + constant.SetErrorForResp(err, resp.CommonResp) + return } - log.NewDebug(req.OperationID, utils.GetSelfFuncName(), blackUserIDList) resp.UserIDList = blackUserIDList - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String()) - return resp, nil + return } -func (s *cacheServer) DelBlackIDListFromCache(_ context.Context, req *pbCache.DelBlackIDListFromCacheReq) (resp *pbCache.DelBlackIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbCache.DelBlackIDListFromCacheResp{CommonResp: &pbCache.CommonResp{}} - if err := rocksCache.DelBlackIDListFromCache(req.UserID); err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "args: ", req.UserID, err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = err.Error() - return resp, nil +func (s *cacheServer) DelBlackIDListFromCache(ctx context.Context, req *pbCache.DelBlackIDListFromCacheReq) (resp *pbCache.DelBlackIDListFromCacheResp, err error) { + resp = &pbCache.DelBlackIDListFromCacheResp{CommonResp: &sdkws.CommonResp{}} + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + if err := rocksCache.DelBlackIDListFromCache(ctx, req.UserID); err != nil { + constant.SetErrorForResp(err, resp.CommonResp) + return } log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", resp.String()) return resp, nil } -func (s *cacheServer) GetGroupMemberIDListFromCache(_ context.Context, req *pbCache.GetGroupMemberIDListFromCacheReq) (resp *pbCache.GetGroupMemberIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) +func (s *cacheServer) GetGroupMemberIDListFromCache(ctx context.Context, req *pbCache.GetGroupMemberIDListFromCacheReq) (resp *pbCache.GetGroupMemberIDListFromCacheResp, err error) { resp = &pbCache.GetGroupMemberIDListFromCacheResp{ - CommonResp: &pbCache.CommonResp{}, + CommonResp: &sdkws.CommonResp{}, } - userIDList, err := rocksCache.GetGroupMemberIDListFromCache(req.GroupID) + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + userIDList, err := rocksCache.GetGroupMemberIDListFromCache(ctx, req.GroupID) if err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetGroupMemberIDListFromCache failed", err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = constant.ErrDB.ErrMsg + constant.SetErrorForResp(err, resp.CommonResp) return resp, nil } resp.UserIDList = userIDList - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "resp: ", resp.String()) return resp, nil } -func (s *cacheServer) DelGroupMemberIDListFromCache(_ context.Context, req *pbCache.DelGroupMemberIDListFromCacheReq) (resp *pbCache.DelGroupMemberIDListFromCacheResp, err error) { - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbCache.DelGroupMemberIDListFromCacheResp{CommonResp: &pbCache.CommonResp{}} - if err := rocksCache.DelGroupMemberIDListFromCache(req.GroupID); err != nil { - log.NewError(req.OperationID, utils.GetSelfFuncName(), "args: ", req.GroupID, err.Error()) - resp.CommonResp.ErrCode = constant.ErrDB.ErrCode - resp.CommonResp.ErrMsg = err.Error() +func (s *cacheServer) DelGroupMemberIDListFromCache(ctx context.Context, req *pbCache.DelGroupMemberIDListFromCacheReq) (resp *pbCache.DelGroupMemberIDListFromCacheResp, err error) { + resp = &pbCache.DelGroupMemberIDListFromCacheResp{CommonResp: &sdkws.CommonResp{}} + ctx = trace_log.NewRpcCtx(ctx, utils.GetSelfFuncName(), req.OperationID) + defer func() { + trace_log.SetContextInfo(ctx, utils.GetFuncName(1), nil, "req", req.String(), "resp", resp.String()) + trace_log.ShowLog(ctx) + }() + if err := rocksCache.DelGroupMemberIDListFromCache(ctx, req.GroupID); err != nil { + constant.SetErrorForResp(err, resp.CommonResp) return resp, nil } - log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", resp.String()) return resp, nil } diff --git a/pkg/common/constant/error.go b/pkg/common/constant/error.go index 13ec923e8..94b4270b0 100644 --- a/pkg/common/constant/error.go +++ b/pkg/common/constant/error.go @@ -111,7 +111,7 @@ func SetErrorForResp(err error, commonResp *sdkws.CommonResp) { commonResp.DetailErrMsg = err.Error() } -func CommonResp2Err(resp sdkws.CommonResp) error { +func CommonResp2Err(resp *sdkws.CommonResp) error { if resp.ErrCode != NoError { return errors.New(fmt.Sprintf("call rpc error, errCode is %d, errMsg is %s, detailErrMsg is %s", resp.ErrCode, resp.ErrMsg, resp.DetailErrMsg)) } diff --git a/pkg/proto/cache/cache.pb.go b/pkg/proto/cache/cache.pb.go index e8da57bb6..bf903873b 100644 --- a/pkg/proto/cache/cache.pb.go +++ b/pkg/proto/cache/cache.pb.go @@ -1,1093 +1,582 @@ // Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.27.1 -// protoc v3.15.5 // source: cache/cache.proto -package cache +package cache // import "Open_IM/pkg/proto/cache" + +import proto "github.com/golang/protobuf/proto" +import fmt "fmt" +import math "math" +import sdk_ws "Open_IM/pkg/proto/sdk_ws" import ( - context "context" + context "golang.org/x/net/context" grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) -type CommonResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - ErrCode int32 `protobuf:"varint,1,opt,name=errCode,proto3" json:"errCode,omitempty"` - ErrMsg string `protobuf:"bytes,2,opt,name=errMsg,proto3" json:"errMsg,omitempty"` -} - -func (x *CommonResp) Reset() { - *x = CommonResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *CommonResp) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*CommonResp) ProtoMessage() {} +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf -func (x *CommonResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} +// This is a compile-time assertion to ensure that this generated file +// is compatible with the proto package it is being compiled against. +// A compilation error at this line likely means your copy of the +// proto package needs to be updated. +const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package -// Deprecated: Use CommonResp.ProtoReflect.Descriptor instead. -func (*CommonResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{0} +type GetFriendIDListFromCacheReq struct { + UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *CommonResp) GetErrCode() int32 { - if x != nil { - return x.ErrCode - } - return 0 +func (m *GetFriendIDListFromCacheReq) Reset() { *m = GetFriendIDListFromCacheReq{} } +func (m *GetFriendIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*GetFriendIDListFromCacheReq) ProtoMessage() {} +func (*GetFriendIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{0} } - -func (x *CommonResp) GetErrMsg() string { - if x != nil { - return x.ErrMsg - } - return "" +func (m *GetFriendIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendIDListFromCacheReq.Unmarshal(m, b) } - -type GetFriendIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` +func (m *GetFriendIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendIDListFromCacheReq.Marshal(b, m, deterministic) } - -func (x *GetFriendIDListFromCacheReq) Reset() { - *x = GetFriendIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (dst *GetFriendIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendIDListFromCacheReq.Merge(dst, src) } - -func (x *GetFriendIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetFriendIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_GetFriendIDListFromCacheReq.Size(m) } - -func (*GetFriendIDListFromCacheReq) ProtoMessage() {} - -func (x *GetFriendIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetFriendIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendIDListFromCacheReq.DiscardUnknown(m) } -// Deprecated: Use GetFriendIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*GetFriendIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{1} -} +var xxx_messageInfo_GetFriendIDListFromCacheReq proto.InternalMessageInfo -func (x *GetFriendIDListFromCacheReq) GetUserID() string { - if x != nil { - return x.UserID +func (m *GetFriendIDListFromCacheReq) GetUserID() string { + if m != nil { + return m.UserID } return "" } -func (x *GetFriendIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *GetFriendIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } type GetFriendIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserIDList []string `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"` - CommonResp *CommonResp `protobuf:"bytes,2,opt,name=commonResp,proto3" json:"commonResp,omitempty"` + UserIDList []string `protobuf:"bytes,1,rep,name=userIDList" json:"userIDList,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,2,opt,name=commonResp" json:"commonResp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetFriendIDListFromCacheResp) Reset() { - *x = GetFriendIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetFriendIDListFromCacheResp) Reset() { *m = GetFriendIDListFromCacheResp{} } +func (m *GetFriendIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*GetFriendIDListFromCacheResp) ProtoMessage() {} +func (*GetFriendIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{1} } - -func (x *GetFriendIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetFriendIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetFriendIDListFromCacheResp.Unmarshal(m, b) } - -func (*GetFriendIDListFromCacheResp) ProtoMessage() {} - -func (x *GetFriendIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetFriendIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetFriendIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use GetFriendIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*GetFriendIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{2} +func (dst *GetFriendIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetFriendIDListFromCacheResp.Merge(dst, src) } +func (m *GetFriendIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_GetFriendIDListFromCacheResp.Size(m) +} +func (m *GetFriendIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetFriendIDListFromCacheResp.DiscardUnknown(m) +} + +var xxx_messageInfo_GetFriendIDListFromCacheResp proto.InternalMessageInfo -func (x *GetFriendIDListFromCacheResp) GetUserIDList() []string { - if x != nil { - return x.UserIDList +func (m *GetFriendIDListFromCacheResp) GetUserIDList() []string { + if m != nil { + return m.UserIDList } return nil } -func (x *GetFriendIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +func (m *GetFriendIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } type DelFriendIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` + UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelFriendIDListFromCacheReq) Reset() { - *x = DelFriendIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelFriendIDListFromCacheReq) Reset() { *m = DelFriendIDListFromCacheReq{} } +func (m *DelFriendIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*DelFriendIDListFromCacheReq) ProtoMessage() {} +func (*DelFriendIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{2} } - -func (x *DelFriendIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelFriendIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelFriendIDListFromCacheReq.Unmarshal(m, b) } - -func (*DelFriendIDListFromCacheReq) ProtoMessage() {} - -func (x *DelFriendIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelFriendIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelFriendIDListFromCacheReq.Marshal(b, m, deterministic) } - -// Deprecated: Use DelFriendIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*DelFriendIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{3} +func (dst *DelFriendIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelFriendIDListFromCacheReq.Merge(dst, src) +} +func (m *DelFriendIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_DelFriendIDListFromCacheReq.Size(m) +} +func (m *DelFriendIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_DelFriendIDListFromCacheReq.DiscardUnknown(m) } -func (x *DelFriendIDListFromCacheReq) GetUserID() string { - if x != nil { - return x.UserID +var xxx_messageInfo_DelFriendIDListFromCacheReq proto.InternalMessageInfo + +func (m *DelFriendIDListFromCacheReq) GetUserID() string { + if m != nil { + return m.UserID } return "" } -func (x *DelFriendIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *DelFriendIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } type DelFriendIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelFriendIDListFromCacheResp) Reset() { - *x = DelFriendIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelFriendIDListFromCacheResp) Reset() { *m = DelFriendIDListFromCacheResp{} } +func (m *DelFriendIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*DelFriendIDListFromCacheResp) ProtoMessage() {} +func (*DelFriendIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{3} } - -func (x *DelFriendIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelFriendIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelFriendIDListFromCacheResp.Unmarshal(m, b) } - -func (*DelFriendIDListFromCacheResp) ProtoMessage() {} - -func (x *DelFriendIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelFriendIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelFriendIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use DelFriendIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*DelFriendIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{4} +func (dst *DelFriendIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelFriendIDListFromCacheResp.Merge(dst, src) +} +func (m *DelFriendIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_DelFriendIDListFromCacheResp.Size(m) +} +func (m *DelFriendIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_DelFriendIDListFromCacheResp.DiscardUnknown(m) } -func (x *DelFriendIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +var xxx_messageInfo_DelFriendIDListFromCacheResp proto.InternalMessageInfo + +func (m *DelFriendIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } type GetBlackIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` + UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBlackIDListFromCacheReq) Reset() { - *x = GetBlackIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBlackIDListFromCacheReq) Reset() { *m = GetBlackIDListFromCacheReq{} } +func (m *GetBlackIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*GetBlackIDListFromCacheReq) ProtoMessage() {} +func (*GetBlackIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{4} } - -func (x *GetBlackIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBlackIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBlackIDListFromCacheReq.Unmarshal(m, b) } - -func (*GetBlackIDListFromCacheReq) ProtoMessage() {} - -func (x *GetBlackIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetBlackIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBlackIDListFromCacheReq.Marshal(b, m, deterministic) } - -// Deprecated: Use GetBlackIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*GetBlackIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{5} +func (dst *GetBlackIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlackIDListFromCacheReq.Merge(dst, src) +} +func (m *GetBlackIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_GetBlackIDListFromCacheReq.Size(m) } +func (m *GetBlackIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlackIDListFromCacheReq.DiscardUnknown(m) +} + +var xxx_messageInfo_GetBlackIDListFromCacheReq proto.InternalMessageInfo -func (x *GetBlackIDListFromCacheReq) GetUserID() string { - if x != nil { - return x.UserID +func (m *GetBlackIDListFromCacheReq) GetUserID() string { + if m != nil { + return m.UserID } return "" } -func (x *GetBlackIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *GetBlackIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } type GetBlackIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserIDList []string `protobuf:"bytes,1,rep,name=userIDList,proto3" json:"userIDList,omitempty"` - CommonResp *CommonResp `protobuf:"bytes,2,opt,name=commonResp,proto3" json:"commonResp,omitempty"` + UserIDList []string `protobuf:"bytes,1,rep,name=userIDList" json:"userIDList,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,2,opt,name=commonResp" json:"commonResp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetBlackIDListFromCacheResp) Reset() { - *x = GetBlackIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetBlackIDListFromCacheResp) Reset() { *m = GetBlackIDListFromCacheResp{} } +func (m *GetBlackIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*GetBlackIDListFromCacheResp) ProtoMessage() {} +func (*GetBlackIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{5} } - -func (x *GetBlackIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetBlackIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetBlackIDListFromCacheResp.Unmarshal(m, b) } - -func (*GetBlackIDListFromCacheResp) ProtoMessage() {} - -func (x *GetBlackIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetBlackIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetBlackIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use GetBlackIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*GetBlackIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{6} +func (dst *GetBlackIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetBlackIDListFromCacheResp.Merge(dst, src) +} +func (m *GetBlackIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_GetBlackIDListFromCacheResp.Size(m) +} +func (m *GetBlackIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetBlackIDListFromCacheResp.DiscardUnknown(m) } -func (x *GetBlackIDListFromCacheResp) GetUserIDList() []string { - if x != nil { - return x.UserIDList +var xxx_messageInfo_GetBlackIDListFromCacheResp proto.InternalMessageInfo + +func (m *GetBlackIDListFromCacheResp) GetUserIDList() []string { + if m != nil { + return m.UserIDList } return nil } -func (x *GetBlackIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +func (m *GetBlackIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } type DelBlackIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - UserID string `protobuf:"bytes,1,opt,name=userID,proto3" json:"userID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` + UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelBlackIDListFromCacheReq) Reset() { - *x = DelBlackIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelBlackIDListFromCacheReq) Reset() { *m = DelBlackIDListFromCacheReq{} } +func (m *DelBlackIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*DelBlackIDListFromCacheReq) ProtoMessage() {} +func (*DelBlackIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{6} } - -func (x *DelBlackIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelBlackIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelBlackIDListFromCacheReq.Unmarshal(m, b) } - -func (*DelBlackIDListFromCacheReq) ProtoMessage() {} - -func (x *DelBlackIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelBlackIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelBlackIDListFromCacheReq.Marshal(b, m, deterministic) } - -// Deprecated: Use DelBlackIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*DelBlackIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{7} +func (dst *DelBlackIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelBlackIDListFromCacheReq.Merge(dst, src) +} +func (m *DelBlackIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_DelBlackIDListFromCacheReq.Size(m) +} +func (m *DelBlackIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_DelBlackIDListFromCacheReq.DiscardUnknown(m) } -func (x *DelBlackIDListFromCacheReq) GetUserID() string { - if x != nil { - return x.UserID +var xxx_messageInfo_DelBlackIDListFromCacheReq proto.InternalMessageInfo + +func (m *DelBlackIDListFromCacheReq) GetUserID() string { + if m != nil { + return m.UserID } return "" } -func (x *DelBlackIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *DelBlackIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } type DelBlackIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelBlackIDListFromCacheResp) Reset() { - *x = DelBlackIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelBlackIDListFromCacheResp) Reset() { *m = DelBlackIDListFromCacheResp{} } +func (m *DelBlackIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*DelBlackIDListFromCacheResp) ProtoMessage() {} +func (*DelBlackIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{7} } - -func (x *DelBlackIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelBlackIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelBlackIDListFromCacheResp.Unmarshal(m, b) } - -func (*DelBlackIDListFromCacheResp) ProtoMessage() {} - -func (x *DelBlackIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelBlackIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelBlackIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use DelBlackIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*DelBlackIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{8} +func (dst *DelBlackIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelBlackIDListFromCacheResp.Merge(dst, src) +} +func (m *DelBlackIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_DelBlackIDListFromCacheResp.Size(m) } +func (m *DelBlackIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_DelBlackIDListFromCacheResp.DiscardUnknown(m) +} + +var xxx_messageInfo_DelBlackIDListFromCacheResp proto.InternalMessageInfo -func (x *DelBlackIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +func (m *DelBlackIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } type GetGroupMemberIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - OperationID string `protobuf:"bytes,1,opt,name=operationID,proto3" json:"operationID,omitempty"` - GroupID string `protobuf:"bytes,2,opt,name=groupID,proto3" json:"groupID,omitempty"` + OperationID string `protobuf:"bytes,1,opt,name=operationID" json:"operationID,omitempty"` + GroupID string `protobuf:"bytes,2,opt,name=groupID" json:"groupID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetGroupMemberIDListFromCacheReq) Reset() { - *x = GetGroupMemberIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetGroupMemberIDListFromCacheReq) Reset() { *m = GetGroupMemberIDListFromCacheReq{} } +func (m *GetGroupMemberIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*GetGroupMemberIDListFromCacheReq) ProtoMessage() {} +func (*GetGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{8} } - -func (x *GetGroupMemberIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetGroupMemberIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Unmarshal(m, b) } - -func (*GetGroupMemberIDListFromCacheReq) ProtoMessage() {} - -func (x *GetGroupMemberIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetGroupMemberIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Marshal(b, m, deterministic) } - -// Deprecated: Use GetGroupMemberIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*GetGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{9} +func (dst *GetGroupMemberIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Merge(dst, src) +} +func (m *GetGroupMemberIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_GetGroupMemberIDListFromCacheReq.Size(m) } +func (m *GetGroupMemberIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_GetGroupMemberIDListFromCacheReq.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGroupMemberIDListFromCacheReq proto.InternalMessageInfo -func (x *GetGroupMemberIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *GetGroupMemberIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } -func (x *GetGroupMemberIDListFromCacheReq) GetGroupID() string { - if x != nil { - return x.GroupID +func (m *GetGroupMemberIDListFromCacheReq) GetGroupID() string { + if m != nil { + return m.GroupID } return "" } type GetGroupMemberIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"` - UserIDList []string `protobuf:"bytes,2,rep,name=userIDList,proto3" json:"userIDList,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` + UserIDList []string `protobuf:"bytes,2,rep,name=userIDList" json:"userIDList,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *GetGroupMemberIDListFromCacheResp) Reset() { - *x = GetGroupMemberIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *GetGroupMemberIDListFromCacheResp) Reset() { *m = GetGroupMemberIDListFromCacheResp{} } +func (m *GetGroupMemberIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*GetGroupMemberIDListFromCacheResp) ProtoMessage() {} +func (*GetGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{9} } - -func (x *GetGroupMemberIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *GetGroupMemberIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Unmarshal(m, b) } - -func (*GetGroupMemberIDListFromCacheResp) ProtoMessage() {} - -func (x *GetGroupMemberIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *GetGroupMemberIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use GetGroupMemberIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*GetGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{10} +func (dst *GetGroupMemberIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Merge(dst, src) } +func (m *GetGroupMemberIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_GetGroupMemberIDListFromCacheResp.Size(m) +} +func (m *GetGroupMemberIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_GetGroupMemberIDListFromCacheResp.DiscardUnknown(m) +} + +var xxx_messageInfo_GetGroupMemberIDListFromCacheResp proto.InternalMessageInfo -func (x *GetGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +func (m *GetGroupMemberIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } -func (x *GetGroupMemberIDListFromCacheResp) GetUserIDList() []string { - if x != nil { - return x.UserIDList +func (m *GetGroupMemberIDListFromCacheResp) GetUserIDList() []string { + if m != nil { + return m.UserIDList } return nil } type DelGroupMemberIDListFromCacheReq struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - GroupID string `protobuf:"bytes,1,opt,name=groupID,proto3" json:"groupID,omitempty"` - OperationID string `protobuf:"bytes,2,opt,name=operationID,proto3" json:"operationID,omitempty"` + GroupID string `protobuf:"bytes,1,opt,name=groupID" json:"groupID,omitempty"` + OperationID string `protobuf:"bytes,2,opt,name=operationID" json:"operationID,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelGroupMemberIDListFromCacheReq) Reset() { - *x = DelGroupMemberIDListFromCacheReq{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelGroupMemberIDListFromCacheReq) Reset() { *m = DelGroupMemberIDListFromCacheReq{} } +func (m *DelGroupMemberIDListFromCacheReq) String() string { return proto.CompactTextString(m) } +func (*DelGroupMemberIDListFromCacheReq) ProtoMessage() {} +func (*DelGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{10} } - -func (x *DelGroupMemberIDListFromCacheReq) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelGroupMemberIDListFromCacheReq) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelGroupMemberIDListFromCacheReq.Unmarshal(m, b) } - -func (*DelGroupMemberIDListFromCacheReq) ProtoMessage() {} - -func (x *DelGroupMemberIDListFromCacheReq) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelGroupMemberIDListFromCacheReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelGroupMemberIDListFromCacheReq.Marshal(b, m, deterministic) } - -// Deprecated: Use DelGroupMemberIDListFromCacheReq.ProtoReflect.Descriptor instead. -func (*DelGroupMemberIDListFromCacheReq) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{11} +func (dst *DelGroupMemberIDListFromCacheReq) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelGroupMemberIDListFromCacheReq.Merge(dst, src) } +func (m *DelGroupMemberIDListFromCacheReq) XXX_Size() int { + return xxx_messageInfo_DelGroupMemberIDListFromCacheReq.Size(m) +} +func (m *DelGroupMemberIDListFromCacheReq) XXX_DiscardUnknown() { + xxx_messageInfo_DelGroupMemberIDListFromCacheReq.DiscardUnknown(m) +} + +var xxx_messageInfo_DelGroupMemberIDListFromCacheReq proto.InternalMessageInfo -func (x *DelGroupMemberIDListFromCacheReq) GetGroupID() string { - if x != nil { - return x.GroupID +func (m *DelGroupMemberIDListFromCacheReq) GetGroupID() string { + if m != nil { + return m.GroupID } return "" } -func (x *DelGroupMemberIDListFromCacheReq) GetOperationID() string { - if x != nil { - return x.OperationID +func (m *DelGroupMemberIDListFromCacheReq) GetOperationID() string { + if m != nil { + return m.OperationID } return "" } type DelGroupMemberIDListFromCacheResp struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - CommonResp *CommonResp `protobuf:"bytes,1,opt,name=commonResp,proto3" json:"commonResp,omitempty"` + CommonResp *sdk_ws.CommonResp `protobuf:"bytes,1,opt,name=commonResp" json:"commonResp,omitempty"` + XXX_NoUnkeyedLiteral struct{} `json:"-"` + XXX_unrecognized []byte `json:"-"` + XXX_sizecache int32 `json:"-"` } -func (x *DelGroupMemberIDListFromCacheResp) Reset() { - *x = DelGroupMemberIDListFromCacheResp{} - if protoimpl.UnsafeEnabled { - mi := &file_cache_cache_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } +func (m *DelGroupMemberIDListFromCacheResp) Reset() { *m = DelGroupMemberIDListFromCacheResp{} } +func (m *DelGroupMemberIDListFromCacheResp) String() string { return proto.CompactTextString(m) } +func (*DelGroupMemberIDListFromCacheResp) ProtoMessage() {} +func (*DelGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int) { + return fileDescriptor_cache_e3bd73ca9c307fc2, []int{11} } - -func (x *DelGroupMemberIDListFromCacheResp) String() string { - return protoimpl.X.MessageStringOf(x) +func (m *DelGroupMemberIDListFromCacheResp) XXX_Unmarshal(b []byte) error { + return xxx_messageInfo_DelGroupMemberIDListFromCacheResp.Unmarshal(m, b) } - -func (*DelGroupMemberIDListFromCacheResp) ProtoMessage() {} - -func (x *DelGroupMemberIDListFromCacheResp) ProtoReflect() protoreflect.Message { - mi := &file_cache_cache_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) +func (m *DelGroupMemberIDListFromCacheResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { + return xxx_messageInfo_DelGroupMemberIDListFromCacheResp.Marshal(b, m, deterministic) } - -// Deprecated: Use DelGroupMemberIDListFromCacheResp.ProtoReflect.Descriptor instead. -func (*DelGroupMemberIDListFromCacheResp) Descriptor() ([]byte, []int) { - return file_cache_cache_proto_rawDescGZIP(), []int{12} +func (dst *DelGroupMemberIDListFromCacheResp) XXX_Merge(src proto.Message) { + xxx_messageInfo_DelGroupMemberIDListFromCacheResp.Merge(dst, src) +} +func (m *DelGroupMemberIDListFromCacheResp) XXX_Size() int { + return xxx_messageInfo_DelGroupMemberIDListFromCacheResp.Size(m) +} +func (m *DelGroupMemberIDListFromCacheResp) XXX_DiscardUnknown() { + xxx_messageInfo_DelGroupMemberIDListFromCacheResp.DiscardUnknown(m) } -func (x *DelGroupMemberIDListFromCacheResp) GetCommonResp() *CommonResp { - if x != nil { - return x.CommonResp +var xxx_messageInfo_DelGroupMemberIDListFromCacheResp proto.InternalMessageInfo + +func (m *DelGroupMemberIDListFromCacheResp) GetCommonResp() *sdk_ws.CommonResp { + if m != nil { + return m.CommonResp } return nil } -var File_cache_cache_proto protoreflect.FileDescriptor - -var file_cache_cache_proto_rawDesc = []byte{ - 0x0a, 0x11, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2f, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x63, 0x61, 0x63, 0x68, 0x65, 0x22, 0x3e, 0x0a, 0x0a, 0x43, 0x6f, - 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x65, 0x72, 0x72, 0x43, - 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x07, 0x65, 0x72, 0x72, 0x43, 0x6f, - 0x64, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x06, 0x65, 0x72, 0x72, 0x4d, 0x73, 0x67, 0x22, 0x57, 0x0a, 0x1b, 0x47, 0x65, - 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, - 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, - 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, - 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x49, 0x44, 0x22, 0x71, 0x0a, 0x1c, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, - 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, - 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x4c, - 0x69, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x57, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x46, 0x72, 0x69, - 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x20, 0x0a, - 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, - 0x51, 0x0a, 0x1c, 0x44, 0x65, 0x6c, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, - 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, - 0x31, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x22, 0x56, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, - 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, - 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, - 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, - 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x70, 0x0a, 0x1b, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, 0x0a, 0x0a, 0x75, 0x73, 0x65, - 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0a, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x31, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, - 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, - 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, - 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x56, 0x0a, 0x1a, - 0x44, 0x65, 0x6c, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, - 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x12, 0x16, 0x0a, 0x06, 0x75, 0x73, - 0x65, 0x72, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, - 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, - 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x50, 0x0a, 0x1b, 0x44, 0x65, 0x6c, 0x42, 0x6c, 0x61, 0x63, 0x6b, - 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x22, 0x5e, 0x0a, 0x20, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, - 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x12, 0x20, 0x0a, 0x0b, 0x6f, 0x70, - 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x12, 0x18, 0x0a, 0x07, - 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, - 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x22, 0x76, 0x0a, 0x21, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, - 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, - 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x0a, 0x63, - 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x11, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, - 0x73, 0x70, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x12, 0x1e, - 0x0a, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x18, 0x02, 0x20, 0x03, - 0x28, 0x09, 0x52, 0x0a, 0x75, 0x73, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x22, 0x5e, - 0x0a, 0x20, 0x44, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, - 0x65, 0x71, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x49, 0x44, 0x12, 0x20, 0x0a, 0x0b, - 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x18, 0x02, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0b, 0x6f, 0x70, 0x65, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x44, 0x22, 0x56, - 0x0a, 0x21, 0x44, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, - 0x65, 0x73, 0x70, 0x12, 0x31, 0x0a, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, - 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x52, 0x0a, 0x63, 0x6f, 0x6d, 0x6d, - 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x32, 0xfd, 0x04, 0x0a, 0x05, 0x63, 0x61, 0x63, 0x68, 0x65, - 0x12, 0x63, 0x0a, 0x18, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, - 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x22, 0x2e, 0x63, - 0x61, 0x63, 0x68, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x44, - 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, - 0x1a, 0x23, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x46, 0x72, 0x69, 0x65, - 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x63, 0x0a, 0x18, 0x44, 0x65, 0x6c, 0x46, 0x72, 0x69, 0x65, - 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, - 0x65, 0x12, 0x22, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x46, 0x72, 0x69, - 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x23, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x44, 0x65, - 0x6c, 0x46, 0x72, 0x69, 0x65, 0x6e, 0x64, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, - 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x17, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x21, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x47, 0x65, - 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, - 0x2e, 0x47, 0x65, 0x74, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, - 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x60, 0x0a, 0x17, - 0x44, 0x65, 0x6c, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, - 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, 0x21, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, - 0x44, 0x65, 0x6c, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, - 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x22, 0x2e, 0x63, 0x61, 0x63, - 0x68, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x42, 0x6c, 0x61, 0x63, 0x6b, 0x49, 0x44, 0x4c, 0x69, 0x73, - 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x12, 0x72, - 0x0a, 0x1d, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, - 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x12, - 0x27, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, - 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, - 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, - 0x2e, 0x47, 0x65, 0x74, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, - 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, - 0x73, 0x70, 0x12, 0x72, 0x0a, 0x1d, 0x44, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, - 0x6d, 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, - 0x63, 0x68, 0x65, 0x12, 0x27, 0x2e, 0x63, 0x61, 0x63, 0x68, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x47, - 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, - 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, 0x68, 0x65, 0x52, 0x65, 0x71, 0x1a, 0x28, 0x2e, 0x63, - 0x61, 0x63, 0x68, 0x65, 0x2e, 0x44, 0x65, 0x6c, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x4d, 0x65, 0x6d, - 0x62, 0x65, 0x72, 0x49, 0x44, 0x4c, 0x69, 0x73, 0x74, 0x46, 0x72, 0x6f, 0x6d, 0x43, 0x61, 0x63, - 0x68, 0x65, 0x52, 0x65, 0x73, 0x70, 0x42, 0x1f, 0x5a, 0x1d, 0x4f, 0x70, 0x65, 0x6e, 0x5f, 0x49, - 0x4d, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x61, 0x63, 0x68, - 0x65, 0x3b, 0x63, 0x61, 0x63, 0x68, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_cache_cache_proto_rawDescOnce sync.Once - file_cache_cache_proto_rawDescData = file_cache_cache_proto_rawDesc -) - -func file_cache_cache_proto_rawDescGZIP() []byte { - file_cache_cache_proto_rawDescOnce.Do(func() { - file_cache_cache_proto_rawDescData = protoimpl.X.CompressGZIP(file_cache_cache_proto_rawDescData) - }) - return file_cache_cache_proto_rawDescData -} - -var file_cache_cache_proto_msgTypes = make([]protoimpl.MessageInfo, 13) -var file_cache_cache_proto_goTypes = []interface{}{ - (*CommonResp)(nil), // 0: cache.CommonResp - (*GetFriendIDListFromCacheReq)(nil), // 1: cache.GetFriendIDListFromCacheReq - (*GetFriendIDListFromCacheResp)(nil), // 2: cache.GetFriendIDListFromCacheResp - (*DelFriendIDListFromCacheReq)(nil), // 3: cache.DelFriendIDListFromCacheReq - (*DelFriendIDListFromCacheResp)(nil), // 4: cache.DelFriendIDListFromCacheResp - (*GetBlackIDListFromCacheReq)(nil), // 5: cache.GetBlackIDListFromCacheReq - (*GetBlackIDListFromCacheResp)(nil), // 6: cache.GetBlackIDListFromCacheResp - (*DelBlackIDListFromCacheReq)(nil), // 7: cache.DelBlackIDListFromCacheReq - (*DelBlackIDListFromCacheResp)(nil), // 8: cache.DelBlackIDListFromCacheResp - (*GetGroupMemberIDListFromCacheReq)(nil), // 9: cache.GetGroupMemberIDListFromCacheReq - (*GetGroupMemberIDListFromCacheResp)(nil), // 10: cache.GetGroupMemberIDListFromCacheResp - (*DelGroupMemberIDListFromCacheReq)(nil), // 11: cache.DelGroupMemberIDListFromCacheReq - (*DelGroupMemberIDListFromCacheResp)(nil), // 12: cache.DelGroupMemberIDListFromCacheResp -} -var file_cache_cache_proto_depIdxs = []int32{ - 0, // 0: cache.GetFriendIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 0, // 1: cache.DelFriendIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 0, // 2: cache.GetBlackIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 0, // 3: cache.DelBlackIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 0, // 4: cache.GetGroupMemberIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 0, // 5: cache.DelGroupMemberIDListFromCacheResp.commonResp:type_name -> cache.CommonResp - 1, // 6: cache.cache.GetFriendIDListFromCache:input_type -> cache.GetFriendIDListFromCacheReq - 3, // 7: cache.cache.DelFriendIDListFromCache:input_type -> cache.DelFriendIDListFromCacheReq - 5, // 8: cache.cache.GetBlackIDListFromCache:input_type -> cache.GetBlackIDListFromCacheReq - 7, // 9: cache.cache.DelBlackIDListFromCache:input_type -> cache.DelBlackIDListFromCacheReq - 9, // 10: cache.cache.GetGroupMemberIDListFromCache:input_type -> cache.GetGroupMemberIDListFromCacheReq - 11, // 11: cache.cache.DelGroupMemberIDListFromCache:input_type -> cache.DelGroupMemberIDListFromCacheReq - 2, // 12: cache.cache.GetFriendIDListFromCache:output_type -> cache.GetFriendIDListFromCacheResp - 4, // 13: cache.cache.DelFriendIDListFromCache:output_type -> cache.DelFriendIDListFromCacheResp - 6, // 14: cache.cache.GetBlackIDListFromCache:output_type -> cache.GetBlackIDListFromCacheResp - 8, // 15: cache.cache.DelBlackIDListFromCache:output_type -> cache.DelBlackIDListFromCacheResp - 10, // 16: cache.cache.GetGroupMemberIDListFromCache:output_type -> cache.GetGroupMemberIDListFromCacheResp - 12, // 17: cache.cache.DelGroupMemberIDListFromCache:output_type -> cache.DelGroupMemberIDListFromCacheResp - 12, // [12:18] is the sub-list for method output_type - 6, // [6:12] is the sub-list for method input_type - 6, // [6:6] is the sub-list for extension type_name - 6, // [6:6] is the sub-list for extension extendee - 0, // [0:6] is the sub-list for field type_name -} - -func init() { file_cache_cache_proto_init() } -func file_cache_cache_proto_init() { - if File_cache_cache_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_cache_cache_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*CommonResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFriendIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetFriendIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelFriendIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelFriendIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlackIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetBlackIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelBlackIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelBlackIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGroupMemberIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetGroupMemberIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelGroupMemberIDListFromCacheReq); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_cache_cache_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DelGroupMemberIDListFromCacheResp); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_cache_cache_proto_rawDesc, - NumEnums: 0, - NumMessages: 13, - NumExtensions: 0, - NumServices: 1, - }, - GoTypes: file_cache_cache_proto_goTypes, - DependencyIndexes: file_cache_cache_proto_depIdxs, - MessageInfos: file_cache_cache_proto_msgTypes, - }.Build() - File_cache_cache_proto = out.File - file_cache_cache_proto_rawDesc = nil - file_cache_cache_proto_goTypes = nil - file_cache_cache_proto_depIdxs = nil +func init() { + proto.RegisterType((*GetFriendIDListFromCacheReq)(nil), "cache.GetFriendIDListFromCacheReq") + proto.RegisterType((*GetFriendIDListFromCacheResp)(nil), "cache.GetFriendIDListFromCacheResp") + proto.RegisterType((*DelFriendIDListFromCacheReq)(nil), "cache.DelFriendIDListFromCacheReq") + proto.RegisterType((*DelFriendIDListFromCacheResp)(nil), "cache.DelFriendIDListFromCacheResp") + proto.RegisterType((*GetBlackIDListFromCacheReq)(nil), "cache.GetBlackIDListFromCacheReq") + proto.RegisterType((*GetBlackIDListFromCacheResp)(nil), "cache.GetBlackIDListFromCacheResp") + proto.RegisterType((*DelBlackIDListFromCacheReq)(nil), "cache.DelBlackIDListFromCacheReq") + proto.RegisterType((*DelBlackIDListFromCacheResp)(nil), "cache.DelBlackIDListFromCacheResp") + proto.RegisterType((*GetGroupMemberIDListFromCacheReq)(nil), "cache.GetGroupMemberIDListFromCacheReq") + proto.RegisterType((*GetGroupMemberIDListFromCacheResp)(nil), "cache.GetGroupMemberIDListFromCacheResp") + proto.RegisterType((*DelGroupMemberIDListFromCacheReq)(nil), "cache.DelGroupMemberIDListFromCacheReq") + proto.RegisterType((*DelGroupMemberIDListFromCacheResp)(nil), "cache.DelGroupMemberIDListFromCacheResp") } // Reference imports to suppress errors if they are not otherwise used. var _ context.Context -var _ grpc.ClientConnInterface +var _ grpc.ClientConn // This is a compile-time assertion to ensure that this generated file // is compatible with the grpc package it is being compiled against. -const _ = grpc.SupportPackageIsVersion6 +const _ = grpc.SupportPackageIsVersion4 + +// Client API for Cache service -// CacheClient is the client API for Cache service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. type CacheClient interface { // friendInfo GetFriendIDListFromCache(ctx context.Context, in *GetFriendIDListFromCacheReq, opts ...grpc.CallOption) (*GetFriendIDListFromCacheResp, error) @@ -1104,16 +593,16 @@ type CacheClient interface { } type cacheClient struct { - cc grpc.ClientConnInterface + cc *grpc.ClientConn } -func NewCacheClient(cc grpc.ClientConnInterface) CacheClient { +func NewCacheClient(cc *grpc.ClientConn) CacheClient { return &cacheClient{cc} } func (c *cacheClient) GetFriendIDListFromCache(ctx context.Context, in *GetFriendIDListFromCacheReq, opts ...grpc.CallOption) (*GetFriendIDListFromCacheResp, error) { out := new(GetFriendIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/GetFriendIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/GetFriendIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1122,7 +611,7 @@ func (c *cacheClient) GetFriendIDListFromCache(ctx context.Context, in *GetFrien func (c *cacheClient) DelFriendIDListFromCache(ctx context.Context, in *DelFriendIDListFromCacheReq, opts ...grpc.CallOption) (*DelFriendIDListFromCacheResp, error) { out := new(DelFriendIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/DelFriendIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/DelFriendIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1131,7 +620,7 @@ func (c *cacheClient) DelFriendIDListFromCache(ctx context.Context, in *DelFrien func (c *cacheClient) GetBlackIDListFromCache(ctx context.Context, in *GetBlackIDListFromCacheReq, opts ...grpc.CallOption) (*GetBlackIDListFromCacheResp, error) { out := new(GetBlackIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/GetBlackIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/GetBlackIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1140,7 +629,7 @@ func (c *cacheClient) GetBlackIDListFromCache(ctx context.Context, in *GetBlackI func (c *cacheClient) DelBlackIDListFromCache(ctx context.Context, in *DelBlackIDListFromCacheReq, opts ...grpc.CallOption) (*DelBlackIDListFromCacheResp, error) { out := new(DelBlackIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/DelBlackIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/DelBlackIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1149,7 +638,7 @@ func (c *cacheClient) DelBlackIDListFromCache(ctx context.Context, in *DelBlackI func (c *cacheClient) GetGroupMemberIDListFromCache(ctx context.Context, in *GetGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*GetGroupMemberIDListFromCacheResp, error) { out := new(GetGroupMemberIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/GetGroupMemberIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/GetGroupMemberIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } @@ -1158,14 +647,15 @@ func (c *cacheClient) GetGroupMemberIDListFromCache(ctx context.Context, in *Get func (c *cacheClient) DelGroupMemberIDListFromCache(ctx context.Context, in *DelGroupMemberIDListFromCacheReq, opts ...grpc.CallOption) (*DelGroupMemberIDListFromCacheResp, error) { out := new(DelGroupMemberIDListFromCacheResp) - err := c.cc.Invoke(ctx, "/cache.cache/DelGroupMemberIDListFromCache", in, out, opts...) + err := grpc.Invoke(ctx, "/cache.cache/DelGroupMemberIDListFromCache", in, out, c.cc, opts...) if err != nil { return nil, err } return out, nil } -// CacheServer is the server API for Cache service. +// Server API for Cache service + type CacheServer interface { // friendInfo GetFriendIDListFromCache(context.Context, *GetFriendIDListFromCacheReq) (*GetFriendIDListFromCacheResp, error) @@ -1181,29 +671,6 @@ type CacheServer interface { DelGroupMemberIDListFromCache(context.Context, *DelGroupMemberIDListFromCacheReq) (*DelGroupMemberIDListFromCacheResp, error) } -// UnimplementedCacheServer can be embedded to have forward compatible implementations. -type UnimplementedCacheServer struct { -} - -func (*UnimplementedCacheServer) GetFriendIDListFromCache(context.Context, *GetFriendIDListFromCacheReq) (*GetFriendIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetFriendIDListFromCache not implemented") -} -func (*UnimplementedCacheServer) DelFriendIDListFromCache(context.Context, *DelFriendIDListFromCacheReq) (*DelFriendIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelFriendIDListFromCache not implemented") -} -func (*UnimplementedCacheServer) GetBlackIDListFromCache(context.Context, *GetBlackIDListFromCacheReq) (*GetBlackIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetBlackIDListFromCache not implemented") -} -func (*UnimplementedCacheServer) DelBlackIDListFromCache(context.Context, *DelBlackIDListFromCacheReq) (*DelBlackIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelBlackIDListFromCache not implemented") -} -func (*UnimplementedCacheServer) GetGroupMemberIDListFromCache(context.Context, *GetGroupMemberIDListFromCacheReq) (*GetGroupMemberIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method GetGroupMemberIDListFromCache not implemented") -} -func (*UnimplementedCacheServer) DelGroupMemberIDListFromCache(context.Context, *DelGroupMemberIDListFromCacheReq) (*DelGroupMemberIDListFromCacheResp, error) { - return nil, status.Errorf(codes.Unimplemented, "method DelGroupMemberIDListFromCache not implemented") -} - func RegisterCacheServer(s *grpc.Server, srv CacheServer) { s.RegisterService(&_Cache_serviceDesc, srv) } @@ -1348,3 +815,39 @@ var _Cache_serviceDesc = grpc.ServiceDesc{ Streams: []grpc.StreamDesc{}, Metadata: "cache/cache.proto", } + +func init() { proto.RegisterFile("cache/cache.proto", fileDescriptor_cache_e3bd73ca9c307fc2) } + +var fileDescriptor_cache_e3bd73ca9c307fc2 = []byte{ + // 466 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0x41, 0x8f, 0x93, 0x40, + 0x14, 0x0e, 0xab, 0xae, 0xd9, 0xb7, 0x27, 0xe7, 0xa0, 0x04, 0xb7, 0x4a, 0xf1, 0x20, 0x97, 0x85, + 0x64, 0x3d, 0x1a, 0x2f, 0x5b, 0x52, 0x42, 0x62, 0x63, 0x82, 0x49, 0x4d, 0x8c, 0x8a, 0x94, 0x4e, + 0x2a, 0x29, 0x30, 0xe3, 0x0c, 0xb5, 0x17, 0xbd, 0xf8, 0xbf, 0x4d, 0xcc, 0x0c, 0x96, 0x52, 0x74, + 0xa0, 0xa6, 0xed, 0x85, 0x64, 0x66, 0xde, 0xbc, 0xef, 0xfb, 0x78, 0xef, 0x7d, 0x03, 0x0f, 0x92, + 0x38, 0xf9, 0x82, 0x5d, 0xf9, 0x75, 0x28, 0x23, 0x25, 0x41, 0xf7, 0xe4, 0xc2, 0xb0, 0xdf, 0x50, + 0x5c, 0x5c, 0x07, 0x93, 0xeb, 0xb7, 0x98, 0x7d, 0xc3, 0xcc, 0xa5, 0xcb, 0x85, 0x2b, 0x03, 0x5c, + 0x3e, 0x5f, 0x46, 0x6b, 0xee, 0xae, 0x79, 0x75, 0xc1, 0x7a, 0x07, 0x8f, 0x7d, 0x5c, 0x8e, 0x59, + 0x8a, 0x8b, 0x79, 0xe0, 0xbd, 0x4e, 0x79, 0x39, 0x66, 0x24, 0x1f, 0x89, 0x2c, 0x21, 0xfe, 0x8a, + 0x1e, 0xc2, 0xf9, 0x8a, 0x63, 0x16, 0x78, 0xba, 0x66, 0x6a, 0xf6, 0x45, 0xf8, 0x67, 0x85, 0x4c, + 0xb8, 0x24, 0x14, 0xb3, 0xb8, 0x4c, 0x49, 0x11, 0x78, 0xfa, 0x99, 0x3c, 0x6c, 0x6e, 0x59, 0x3f, + 0xe0, 0x4a, 0x9d, 0x98, 0x53, 0xf4, 0x04, 0xa0, 0xca, 0x25, 0x8e, 0x74, 0xcd, 0xbc, 0x63, 0x5f, + 0x84, 0x8d, 0x1d, 0xf4, 0x0a, 0x20, 0x21, 0x79, 0x4e, 0x0a, 0x11, 0x2d, 0x01, 0x2e, 0x6f, 0x06, + 0x0e, 0x97, 0x7a, 0xa2, 0x98, 0xa6, 0x11, 0x8d, 0x59, 0x9c, 0x73, 0x67, 0x54, 0x07, 0x85, 0x8d, + 0x0b, 0x42, 0x97, 0x87, 0xb3, 0x13, 0xe8, 0xfa, 0x08, 0x57, 0xea, 0xc4, 0x9c, 0xb6, 0x78, 0x6b, + 0xff, 0xcb, 0x7b, 0x0a, 0x86, 0x8f, 0xcb, 0xdb, 0x2c, 0x4e, 0x96, 0x47, 0xa5, 0xfd, 0x5d, 0xd6, + 0xf9, 0xdf, 0x79, 0x4f, 0x5f, 0x8d, 0x29, 0x18, 0x1e, 0xce, 0x8e, 0xaf, 0xea, 0x83, 0xac, 0xb2, + 0x52, 0xd5, 0x81, 0xb5, 0xf8, 0x04, 0xa6, 0x8f, 0x4b, 0x9f, 0x91, 0x15, 0x9d, 0xe0, 0x7c, 0xb6, + 0xf9, 0x19, 0x3b, 0xdc, 0x5b, 0x1c, 0xb5, 0xbf, 0x38, 0x22, 0x1d, 0xee, 0x2f, 0x44, 0x8a, 0x5a, + 0xc1, 0x66, 0x69, 0xfd, 0xd4, 0x60, 0xd8, 0x03, 0x70, 0xb0, 0x88, 0x56, 0x65, 0xcf, 0xda, 0x95, + 0x15, 0x22, 0x3d, 0x9c, 0x75, 0x8b, 0x6c, 0x48, 0xd0, 0x76, 0x24, 0xec, 0x51, 0xa2, 0x19, 0x0c, + 0x7b, 0xf2, 0x1f, 0xac, 0xf1, 0xe6, 0xd7, 0x5d, 0xa8, 0x8c, 0x0f, 0x25, 0xa0, 0xab, 0x5c, 0x07, + 0x59, 0x4e, 0xe5, 0x94, 0x1d, 0x7e, 0x67, 0x3c, 0xeb, 0x8d, 0xe1, 0x54, 0x80, 0xa8, 0x2c, 0xa0, + 0x06, 0xe9, 0x30, 0x9f, 0x1a, 0xa4, 0xd3, 0x47, 0x3e, 0xc3, 0x23, 0xc5, 0xc0, 0xa2, 0xe1, 0x96, + 0xa4, 0x62, 0xa4, 0x0c, 0xab, 0x2f, 0xa4, 0x42, 0x50, 0x0c, 0x4f, 0x8d, 0xa0, 0x1e, 0x5a, 0xc3, + 0xea, 0x0b, 0xe1, 0x14, 0x31, 0x18, 0x74, 0xf6, 0x37, 0x7a, 0xbe, 0xa5, 0xd9, 0xd9, 0x81, 0x86, + 0xbd, 0x5f, 0x60, 0x85, 0xd9, 0xd9, 0x6f, 0x35, 0x66, 0x5f, 0xd7, 0xd7, 0x98, 0xbd, 0xed, 0x7b, + 0xfb, 0xf4, 0xfd, 0x40, 0x3c, 0xb8, 0x51, 0x30, 0x69, 0xbc, 0xb4, 0xf2, 0xf2, 0x4b, 0xf9, 0x9d, + 0x9d, 0xcb, 0xad, 0x17, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xff, 0xcd, 0x0e, 0x4c, 0xb2, 0x07, + 0x00, 0x00, +} diff --git a/pkg/proto/cache/cache.proto b/pkg/proto/cache/cache.proto index 970a77a58..09e960ae2 100644 --- a/pkg/proto/cache/cache.proto +++ b/pkg/proto/cache/cache.proto @@ -1,11 +1,8 @@ syntax = "proto3"; +import "Open-IM-Server/pkg/proto/sdk_ws/ws.proto"; option go_package = "Open_IM/pkg/proto/cache;cache"; package cache; -message CommonResp{ - int32 errCode = 1; - string errMsg = 2; -} message GetFriendIDListFromCacheReq { string userID = 1; @@ -14,7 +11,7 @@ message GetFriendIDListFromCacheReq { message GetFriendIDListFromCacheResp { repeated string userIDList = 1; - CommonResp commonResp = 2; + server_api_params.CommonResp commonResp = 2; } message DelFriendIDListFromCacheReq { @@ -23,7 +20,7 @@ message DelFriendIDListFromCacheReq { } message DelFriendIDListFromCacheResp { - CommonResp commonResp = 1; + server_api_params.CommonResp commonResp = 1; } message GetBlackIDListFromCacheReq { @@ -33,7 +30,7 @@ message GetBlackIDListFromCacheReq { message GetBlackIDListFromCacheResp { repeated string userIDList = 1; - CommonResp commonResp = 2; + server_api_params.CommonResp commonResp = 2; } message DelBlackIDListFromCacheReq { @@ -42,7 +39,7 @@ message DelBlackIDListFromCacheReq { } message DelBlackIDListFromCacheResp { - CommonResp commonResp = 1; + server_api_params.CommonResp commonResp = 1; } message GetGroupMemberIDListFromCacheReq { @@ -51,7 +48,7 @@ message GetGroupMemberIDListFromCacheReq { } message GetGroupMemberIDListFromCacheResp { - CommonResp commonResp = 1; + server_api_params.CommonResp commonResp = 1; repeated string userIDList = 2; } @@ -61,7 +58,7 @@ message DelGroupMemberIDListFromCacheReq { } message DelGroupMemberIDListFromCacheResp { - CommonResp commonResp = 1; + server_api_params.CommonResp commonResp = 1; } service cache{