|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
// source: user/user.proto
|
|
|
|
|
|
package user // import "Open_IM/pkg/proto/user"
|
|
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
|
import fmt "fmt"
|
|
|
import math "math"
|
|
|
import conversation "Open_IM/pkg/proto/conversation"
|
|
|
import sdk_ws "Open_IM/pkg/proto/sdk_ws"
|
|
|
|
|
|
import (
|
|
|
context "golang.org/x/net/context"
|
|
|
grpc "google.golang.org/grpc"
|
|
|
)
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ = proto.Marshal
|
|
|
var _ = fmt.Errorf
|
|
|
var _ = math.Inf
|
|
|
|
|
|
// 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
|
|
|
|
|
|
type GetAllUserIDReq struct {
|
|
|
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,1,opt,name=pagination" json:"pagination,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetAllUserIDReq) Reset() { *m = GetAllUserIDReq{} }
|
|
|
func (m *GetAllUserIDReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetAllUserIDReq) ProtoMessage() {}
|
|
|
func (*GetAllUserIDReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{0}
|
|
|
}
|
|
|
func (m *GetAllUserIDReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetAllUserIDReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetAllUserIDReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetAllUserIDReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetAllUserIDReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetAllUserIDReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetAllUserIDReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetAllUserIDReq.Size(m)
|
|
|
}
|
|
|
func (m *GetAllUserIDReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetAllUserIDReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetAllUserIDReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetAllUserIDReq) GetPagination() *sdk_ws.RequestPagination {
|
|
|
if m != nil {
|
|
|
return m.Pagination
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type GetAllUserIDResp struct {
|
|
|
Total int32 `protobuf:"varint,1,opt,name=total" json:"total,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 (m *GetAllUserIDResp) Reset() { *m = GetAllUserIDResp{} }
|
|
|
func (m *GetAllUserIDResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetAllUserIDResp) ProtoMessage() {}
|
|
|
func (*GetAllUserIDResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{1}
|
|
|
}
|
|
|
func (m *GetAllUserIDResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetAllUserIDResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetAllUserIDResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetAllUserIDResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetAllUserIDResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetAllUserIDResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetAllUserIDResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetAllUserIDResp.Size(m)
|
|
|
}
|
|
|
func (m *GetAllUserIDResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetAllUserIDResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetAllUserIDResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetAllUserIDResp) GetTotal() int32 {
|
|
|
if m != nil {
|
|
|
return m.Total
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *GetAllUserIDResp) GetUserIDList() []string {
|
|
|
if m != nil {
|
|
|
return m.UserIDList
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type AccountCheckReq struct {
|
|
|
CheckUserIDs []string `protobuf:"bytes,1,rep,name=checkUserIDs" json:"checkUserIDs,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *AccountCheckReq) Reset() { *m = AccountCheckReq{} }
|
|
|
func (m *AccountCheckReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*AccountCheckReq) ProtoMessage() {}
|
|
|
func (*AccountCheckReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{2}
|
|
|
}
|
|
|
func (m *AccountCheckReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_AccountCheckReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *AccountCheckReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_AccountCheckReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *AccountCheckReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_AccountCheckReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *AccountCheckReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_AccountCheckReq.Size(m)
|
|
|
}
|
|
|
func (m *AccountCheckReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_AccountCheckReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_AccountCheckReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *AccountCheckReq) GetCheckUserIDs() []string {
|
|
|
if m != nil {
|
|
|
return m.CheckUserIDs
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type AccountCheckResp struct {
|
|
|
Results []*AccountCheckRespSingleUserStatus `protobuf:"bytes,1,rep,name=results" json:"results,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *AccountCheckResp) Reset() { *m = AccountCheckResp{} }
|
|
|
func (m *AccountCheckResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*AccountCheckResp) ProtoMessage() {}
|
|
|
func (*AccountCheckResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{3}
|
|
|
}
|
|
|
func (m *AccountCheckResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_AccountCheckResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *AccountCheckResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_AccountCheckResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *AccountCheckResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_AccountCheckResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *AccountCheckResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_AccountCheckResp.Size(m)
|
|
|
}
|
|
|
func (m *AccountCheckResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_AccountCheckResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_AccountCheckResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *AccountCheckResp) GetResults() []*AccountCheckRespSingleUserStatus {
|
|
|
if m != nil {
|
|
|
return m.Results
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type AccountCheckRespSingleUserStatus struct {
|
|
|
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
|
|
|
AccountStatus string `protobuf:"bytes,2,opt,name=accountStatus" json:"accountStatus,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *AccountCheckRespSingleUserStatus) Reset() { *m = AccountCheckRespSingleUserStatus{} }
|
|
|
func (m *AccountCheckRespSingleUserStatus) String() string { return proto.CompactTextString(m) }
|
|
|
func (*AccountCheckRespSingleUserStatus) ProtoMessage() {}
|
|
|
func (*AccountCheckRespSingleUserStatus) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{3, 0}
|
|
|
}
|
|
|
func (m *AccountCheckRespSingleUserStatus) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_AccountCheckRespSingleUserStatus.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *AccountCheckRespSingleUserStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_AccountCheckRespSingleUserStatus.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *AccountCheckRespSingleUserStatus) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_AccountCheckRespSingleUserStatus.Merge(dst, src)
|
|
|
}
|
|
|
func (m *AccountCheckRespSingleUserStatus) XXX_Size() int {
|
|
|
return xxx_messageInfo_AccountCheckRespSingleUserStatus.Size(m)
|
|
|
}
|
|
|
func (m *AccountCheckRespSingleUserStatus) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_AccountCheckRespSingleUserStatus.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_AccountCheckRespSingleUserStatus proto.InternalMessageInfo
|
|
|
|
|
|
func (m *AccountCheckRespSingleUserStatus) GetUserID() string {
|
|
|
if m != nil {
|
|
|
return m.UserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *AccountCheckRespSingleUserStatus) GetAccountStatus() string {
|
|
|
if m != nil {
|
|
|
return m.AccountStatus
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type GetUsersInfoReq struct {
|
|
|
UserIDs []string `protobuf:"bytes,1,rep,name=userIDs" json:"userIDs,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersInfoReq) Reset() { *m = GetUsersInfoReq{} }
|
|
|
func (m *GetUsersInfoReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUsersInfoReq) ProtoMessage() {}
|
|
|
func (*GetUsersInfoReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{4}
|
|
|
}
|
|
|
func (m *GetUsersInfoReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetUsersInfoReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetUsersInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetUsersInfoReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetUsersInfoReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUsersInfoReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetUsersInfoReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetUsersInfoReq.Size(m)
|
|
|
}
|
|
|
func (m *GetUsersInfoReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUsersInfoReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUsersInfoReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUsersInfoReq) GetUserIDs() []string {
|
|
|
if m != nil {
|
|
|
return m.UserIDs
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type GetUsersInfoResp struct {
|
|
|
UsersInfo []*sdk_ws.UserInfo `protobuf:"bytes,1,rep,name=usersInfo" json:"usersInfo,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersInfoResp) Reset() { *m = GetUsersInfoResp{} }
|
|
|
func (m *GetUsersInfoResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUsersInfoResp) ProtoMessage() {}
|
|
|
func (*GetUsersInfoResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{5}
|
|
|
}
|
|
|
func (m *GetUsersInfoResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetUsersInfoResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetUsersInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetUsersInfoResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetUsersInfoResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUsersInfoResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetUsersInfoResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetUsersInfoResp.Size(m)
|
|
|
}
|
|
|
func (m *GetUsersInfoResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUsersInfoResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUsersInfoResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUsersInfoResp) GetUsersInfo() []*sdk_ws.UserInfo {
|
|
|
if m != nil {
|
|
|
return m.UsersInfo
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type UpdateUserInfoReq struct {
|
|
|
UserInfo *sdk_ws.UserInfo `protobuf:"bytes,1,opt,name=userInfo" json:"userInfo,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserInfoReq) Reset() { *m = UpdateUserInfoReq{} }
|
|
|
func (m *UpdateUserInfoReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*UpdateUserInfoReq) ProtoMessage() {}
|
|
|
func (*UpdateUserInfoReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{6}
|
|
|
}
|
|
|
func (m *UpdateUserInfoReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_UpdateUserInfoReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *UpdateUserInfoReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_UpdateUserInfoReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *UpdateUserInfoReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_UpdateUserInfoReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *UpdateUserInfoReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_UpdateUserInfoReq.Size(m)
|
|
|
}
|
|
|
func (m *UpdateUserInfoReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_UpdateUserInfoReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_UpdateUserInfoReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *UpdateUserInfoReq) GetUserInfo() *sdk_ws.UserInfo {
|
|
|
if m != nil {
|
|
|
return m.UserInfo
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type UpdateUserInfoResp struct {
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *UpdateUserInfoResp) Reset() { *m = UpdateUserInfoResp{} }
|
|
|
func (m *UpdateUserInfoResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*UpdateUserInfoResp) ProtoMessage() {}
|
|
|
func (*UpdateUserInfoResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{7}
|
|
|
}
|
|
|
func (m *UpdateUserInfoResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_UpdateUserInfoResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *UpdateUserInfoResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_UpdateUserInfoResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *UpdateUserInfoResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_UpdateUserInfoResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *UpdateUserInfoResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_UpdateUserInfoResp.Size(m)
|
|
|
}
|
|
|
func (m *UpdateUserInfoResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_UpdateUserInfoResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_UpdateUserInfoResp proto.InternalMessageInfo
|
|
|
|
|
|
type SetGlobalRecvMessageOptReq struct {
|
|
|
UserID string `protobuf:"bytes,1,opt,name=userID" json:"userID,omitempty"`
|
|
|
GlobalRecvMsgOpt int32 `protobuf:"varint,3,opt,name=globalRecvMsgOpt" json:"globalRecvMsgOpt,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetGlobalRecvMessageOptReq) Reset() { *m = SetGlobalRecvMessageOptReq{} }
|
|
|
func (m *SetGlobalRecvMessageOptReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetGlobalRecvMessageOptReq) ProtoMessage() {}
|
|
|
func (*SetGlobalRecvMessageOptReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{8}
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetGlobalRecvMessageOptReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetGlobalRecvMessageOptReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptReq.Size(m)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetGlobalRecvMessageOptReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetGlobalRecvMessageOptReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *SetGlobalRecvMessageOptReq) GetUserID() string {
|
|
|
if m != nil {
|
|
|
return m.UserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SetGlobalRecvMessageOptReq) GetGlobalRecvMsgOpt() int32 {
|
|
|
if m != nil {
|
|
|
return m.GlobalRecvMsgOpt
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
type SetGlobalRecvMessageOptResp struct {
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetGlobalRecvMessageOptResp) Reset() { *m = SetGlobalRecvMessageOptResp{} }
|
|
|
func (m *SetGlobalRecvMessageOptResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetGlobalRecvMessageOptResp) ProtoMessage() {}
|
|
|
func (*SetGlobalRecvMessageOptResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{9}
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetGlobalRecvMessageOptResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetGlobalRecvMessageOptResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetGlobalRecvMessageOptResp.Size(m)
|
|
|
}
|
|
|
func (m *SetGlobalRecvMessageOptResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetGlobalRecvMessageOptResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetGlobalRecvMessageOptResp proto.InternalMessageInfo
|
|
|
|
|
|
type SetConversationReq struct {
|
|
|
Conversation *conversation.Conversation `protobuf:"bytes,1,opt,name=conversation" json:"conversation,omitempty"`
|
|
|
NotificationType int32 `protobuf:"varint,2,opt,name=notificationType" json:"notificationType,omitempty"`
|
|
|
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetConversationReq) Reset() { *m = SetConversationReq{} }
|
|
|
func (m *SetConversationReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetConversationReq) ProtoMessage() {}
|
|
|
func (*SetConversationReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{10}
|
|
|
}
|
|
|
func (m *SetConversationReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetConversationReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetConversationReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetConversationReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetConversationReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetConversationReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetConversationReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetConversationReq.Size(m)
|
|
|
}
|
|
|
func (m *SetConversationReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetConversationReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetConversationReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *SetConversationReq) GetConversation() *conversation.Conversation {
|
|
|
if m != nil {
|
|
|
return m.Conversation
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *SetConversationReq) GetNotificationType() int32 {
|
|
|
if m != nil {
|
|
|
return m.NotificationType
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *SetConversationReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type SetConversationResp struct {
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetConversationResp) Reset() { *m = SetConversationResp{} }
|
|
|
func (m *SetConversationResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetConversationResp) ProtoMessage() {}
|
|
|
func (*SetConversationResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{11}
|
|
|
}
|
|
|
func (m *SetConversationResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetConversationResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetConversationResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetConversationResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetConversationResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetConversationResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetConversationResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetConversationResp.Size(m)
|
|
|
}
|
|
|
func (m *SetConversationResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetConversationResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetConversationResp proto.InternalMessageInfo
|
|
|
|
|
|
type SetRecvMsgOptReq struct {
|
|
|
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
|
|
|
ConversationID string `protobuf:"bytes,2,opt,name=conversationID" json:"conversationID,omitempty"`
|
|
|
RecvMsgOpt int32 `protobuf:"varint,3,opt,name=recvMsgOpt" json:"recvMsgOpt,omitempty"`
|
|
|
NotificationType int32 `protobuf:"varint,4,opt,name=notificationType" json:"notificationType,omitempty"`
|
|
|
OperationID string `protobuf:"bytes,5,opt,name=operationID" json:"operationID,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) Reset() { *m = SetRecvMsgOptReq{} }
|
|
|
func (m *SetRecvMsgOptReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetRecvMsgOptReq) ProtoMessage() {}
|
|
|
func (*SetRecvMsgOptReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{12}
|
|
|
}
|
|
|
func (m *SetRecvMsgOptReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetRecvMsgOptReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetRecvMsgOptReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetRecvMsgOptReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetRecvMsgOptReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetRecvMsgOptReq.Size(m)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetRecvMsgOptReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetRecvMsgOptReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) GetOwnerUserID() string {
|
|
|
if m != nil {
|
|
|
return m.OwnerUserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) GetConversationID() string {
|
|
|
if m != nil {
|
|
|
return m.ConversationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) GetRecvMsgOpt() int32 {
|
|
|
if m != nil {
|
|
|
return m.RecvMsgOpt
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) GetNotificationType() int32 {
|
|
|
if m != nil {
|
|
|
return m.NotificationType
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type SetRecvMsgOptResp struct {
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *SetRecvMsgOptResp) Reset() { *m = SetRecvMsgOptResp{} }
|
|
|
func (m *SetRecvMsgOptResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*SetRecvMsgOptResp) ProtoMessage() {}
|
|
|
func (*SetRecvMsgOptResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{13}
|
|
|
}
|
|
|
func (m *SetRecvMsgOptResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_SetRecvMsgOptResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_SetRecvMsgOptResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *SetRecvMsgOptResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_SetRecvMsgOptResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_SetRecvMsgOptResp.Size(m)
|
|
|
}
|
|
|
func (m *SetRecvMsgOptResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_SetRecvMsgOptResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_SetRecvMsgOptResp proto.InternalMessageInfo
|
|
|
|
|
|
type GetConversationReq struct {
|
|
|
ConversationID string `protobuf:"bytes,1,opt,name=conversationID" json:"conversationID,omitempty"`
|
|
|
OwnerUserID string `protobuf:"bytes,2,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
|
|
|
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationReq) Reset() { *m = GetConversationReq{} }
|
|
|
func (m *GetConversationReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetConversationReq) ProtoMessage() {}
|
|
|
func (*GetConversationReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{14}
|
|
|
}
|
|
|
func (m *GetConversationReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetConversationReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetConversationReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetConversationReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetConversationReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetConversationReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetConversationReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetConversationReq.Size(m)
|
|
|
}
|
|
|
func (m *GetConversationReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetConversationReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetConversationReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetConversationReq) GetConversationID() string {
|
|
|
if m != nil {
|
|
|
return m.ConversationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationReq) GetOwnerUserID() string {
|
|
|
if m != nil {
|
|
|
return m.OwnerUserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type GetConversationResp struct {
|
|
|
Conversation *conversation.Conversation `protobuf:"bytes,2,opt,name=conversation" json:"conversation,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationResp) Reset() { *m = GetConversationResp{} }
|
|
|
func (m *GetConversationResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetConversationResp) ProtoMessage() {}
|
|
|
func (*GetConversationResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{15}
|
|
|
}
|
|
|
func (m *GetConversationResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetConversationResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetConversationResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetConversationResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetConversationResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetConversationResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetConversationResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetConversationResp.Size(m)
|
|
|
}
|
|
|
func (m *GetConversationResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetConversationResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetConversationResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetConversationResp) GetConversation() *conversation.Conversation {
|
|
|
if m != nil {
|
|
|
return m.Conversation
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type GetConversationsReq struct {
|
|
|
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,omitempty"`
|
|
|
ConversationIDs []string `protobuf:"bytes,2,rep,name=conversationIDs" json:"conversationIDs,omitempty"`
|
|
|
OperationID string `protobuf:"bytes,3,opt,name=operationID" json:"operationID,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationsReq) Reset() { *m = GetConversationsReq{} }
|
|
|
func (m *GetConversationsReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetConversationsReq) ProtoMessage() {}
|
|
|
func (*GetConversationsReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{16}
|
|
|
}
|
|
|
func (m *GetConversationsReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetConversationsReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetConversationsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetConversationsReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetConversationsReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetConversationsReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetConversationsReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetConversationsReq.Size(m)
|
|
|
}
|
|
|
func (m *GetConversationsReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetConversationsReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetConversationsReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetConversationsReq) GetOwnerUserID() string {
|
|
|
if m != nil {
|
|
|
return m.OwnerUserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationsReq) GetConversationIDs() []string {
|
|
|
if m != nil {
|
|
|
return m.ConversationIDs
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationsReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type GetConversationsResp struct {
|
|
|
Conversations []*conversation.Conversation `protobuf:"bytes,2,rep,name=conversations" json:"conversations,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetConversationsResp) Reset() { *m = GetConversationsResp{} }
|
|
|
func (m *GetConversationsResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetConversationsResp) ProtoMessage() {}
|
|
|
func (*GetConversationsResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{17}
|
|
|
}
|
|
|
func (m *GetConversationsResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetConversationsResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetConversationsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetConversationsResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetConversationsResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetConversationsResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetConversationsResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetConversationsResp.Size(m)
|
|
|
}
|
|
|
func (m *GetConversationsResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetConversationsResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetConversationsResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetConversationsResp) GetConversations() []*conversation.Conversation {
|
|
|
if m != nil {
|
|
|
return m.Conversations
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type GetAllConversationsReq struct {
|
|
|
OwnerUserID string `protobuf:"bytes,1,opt,name=ownerUserID" json:"ownerUserID,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 (m *GetAllConversationsReq) Reset() { *m = GetAllConversationsReq{} }
|
|
|
func (m *GetAllConversationsReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetAllConversationsReq) ProtoMessage() {}
|
|
|
func (*GetAllConversationsReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{18}
|
|
|
}
|
|
|
func (m *GetAllConversationsReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetAllConversationsReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetAllConversationsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetAllConversationsReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetAllConversationsReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetAllConversationsReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetAllConversationsReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetAllConversationsReq.Size(m)
|
|
|
}
|
|
|
func (m *GetAllConversationsReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetAllConversationsReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetAllConversationsReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetAllConversationsReq) GetOwnerUserID() string {
|
|
|
if m != nil {
|
|
|
return m.OwnerUserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetAllConversationsReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type GetAllConversationsResp struct {
|
|
|
Conversations []*conversation.Conversation `protobuf:"bytes,2,rep,name=conversations" json:"conversations,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetAllConversationsResp) Reset() { *m = GetAllConversationsResp{} }
|
|
|
func (m *GetAllConversationsResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetAllConversationsResp) ProtoMessage() {}
|
|
|
func (*GetAllConversationsResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{19}
|
|
|
}
|
|
|
func (m *GetAllConversationsResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetAllConversationsResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetAllConversationsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetAllConversationsResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetAllConversationsResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetAllConversationsResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetAllConversationsResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetAllConversationsResp.Size(m)
|
|
|
}
|
|
|
func (m *GetAllConversationsResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetAllConversationsResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetAllConversationsResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetAllConversationsResp) GetConversations() []*conversation.Conversation {
|
|
|
if m != nil {
|
|
|
return m.Conversations
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type BatchSetConversationsReq struct {
|
|
|
Conversations []*conversation.Conversation `protobuf:"bytes,1,rep,name=conversations" json:"conversations,omitempty"`
|
|
|
OwnerUserID string `protobuf:"bytes,2,opt,name=OwnerUserID" json:"OwnerUserID,omitempty"`
|
|
|
NotificationType int32 `protobuf:"varint,3,opt,name=notificationType" json:"notificationType,omitempty"`
|
|
|
OperationID string `protobuf:"bytes,4,opt,name=OperationID" json:"OperationID,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsReq) Reset() { *m = BatchSetConversationsReq{} }
|
|
|
func (m *BatchSetConversationsReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*BatchSetConversationsReq) ProtoMessage() {}
|
|
|
func (*BatchSetConversationsReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{20}
|
|
|
}
|
|
|
func (m *BatchSetConversationsReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_BatchSetConversationsReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *BatchSetConversationsReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_BatchSetConversationsReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *BatchSetConversationsReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_BatchSetConversationsReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *BatchSetConversationsReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_BatchSetConversationsReq.Size(m)
|
|
|
}
|
|
|
func (m *BatchSetConversationsReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_BatchSetConversationsReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_BatchSetConversationsReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *BatchSetConversationsReq) GetConversations() []*conversation.Conversation {
|
|
|
if m != nil {
|
|
|
return m.Conversations
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsReq) GetOwnerUserID() string {
|
|
|
if m != nil {
|
|
|
return m.OwnerUserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsReq) GetNotificationType() int32 {
|
|
|
if m != nil {
|
|
|
return m.NotificationType
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsReq) GetOperationID() string {
|
|
|
if m != nil {
|
|
|
return m.OperationID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type BatchSetConversationsResp struct {
|
|
|
Success []string `protobuf:"bytes,2,rep,name=Success" json:"Success,omitempty"`
|
|
|
Failed []string `protobuf:"bytes,3,rep,name=Failed" json:"Failed,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsResp) Reset() { *m = BatchSetConversationsResp{} }
|
|
|
func (m *BatchSetConversationsResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*BatchSetConversationsResp) ProtoMessage() {}
|
|
|
func (*BatchSetConversationsResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{21}
|
|
|
}
|
|
|
func (m *BatchSetConversationsResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_BatchSetConversationsResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *BatchSetConversationsResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_BatchSetConversationsResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *BatchSetConversationsResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_BatchSetConversationsResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *BatchSetConversationsResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_BatchSetConversationsResp.Size(m)
|
|
|
}
|
|
|
func (m *BatchSetConversationsResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_BatchSetConversationsResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_BatchSetConversationsResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *BatchSetConversationsResp) GetSuccess() []string {
|
|
|
if m != nil {
|
|
|
return m.Success
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *BatchSetConversationsResp) GetFailed() []string {
|
|
|
if m != nil {
|
|
|
return m.Failed
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type GetUsersReq struct {
|
|
|
Pagination *sdk_ws.RequestPagination `protobuf:"bytes,2,opt,name=pagination" json:"pagination,omitempty"`
|
|
|
UserName string `protobuf:"bytes,3,opt,name=userName" json:"userName,omitempty"`
|
|
|
UserID string `protobuf:"bytes,4,opt,name=userID" json:"userID,omitempty"`
|
|
|
Content string `protobuf:"bytes,5,opt,name=content" json:"content,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersReq) Reset() { *m = GetUsersReq{} }
|
|
|
func (m *GetUsersReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUsersReq) ProtoMessage() {}
|
|
|
func (*GetUsersReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{22}
|
|
|
}
|
|
|
func (m *GetUsersReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetUsersReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetUsersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetUsersReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetUsersReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUsersReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetUsersReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetUsersReq.Size(m)
|
|
|
}
|
|
|
func (m *GetUsersReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUsersReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUsersReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUsersReq) GetPagination() *sdk_ws.RequestPagination {
|
|
|
if m != nil {
|
|
|
return m.Pagination
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersReq) GetUserName() string {
|
|
|
if m != nil {
|
|
|
return m.UserName
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersReq) GetUserID() string {
|
|
|
if m != nil {
|
|
|
return m.UserID
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersReq) GetContent() string {
|
|
|
if m != nil {
|
|
|
return m.Content
|
|
|
}
|
|
|
return ""
|
|
|
}
|
|
|
|
|
|
type GetUsersResp struct {
|
|
|
Total int32 `protobuf:"varint,1,opt,name=total" json:"total,omitempty"`
|
|
|
Users []*sdk_ws.UserInfo `protobuf:"bytes,2,rep,name=users" json:"users,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersResp) Reset() { *m = GetUsersResp{} }
|
|
|
func (m *GetUsersResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*GetUsersResp) ProtoMessage() {}
|
|
|
func (*GetUsersResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{23}
|
|
|
}
|
|
|
func (m *GetUsersResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_GetUsersResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *GetUsersResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_GetUsersResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *GetUsersResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_GetUsersResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *GetUsersResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_GetUsersResp.Size(m)
|
|
|
}
|
|
|
func (m *GetUsersResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_GetUsersResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_GetUsersResp proto.InternalMessageInfo
|
|
|
|
|
|
func (m *GetUsersResp) GetTotal() int32 {
|
|
|
if m != nil {
|
|
|
return m.Total
|
|
|
}
|
|
|
return 0
|
|
|
}
|
|
|
|
|
|
func (m *GetUsersResp) GetUsers() []*sdk_ws.UserInfo {
|
|
|
if m != nil {
|
|
|
return m.Users
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type UserRegisterReq struct {
|
|
|
Users []*sdk_ws.UserInfo `protobuf:"bytes,1,rep,name=users" json:"users,omitempty"`
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *UserRegisterReq) Reset() { *m = UserRegisterReq{} }
|
|
|
func (m *UserRegisterReq) String() string { return proto.CompactTextString(m) }
|
|
|
func (*UserRegisterReq) ProtoMessage() {}
|
|
|
func (*UserRegisterReq) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{24}
|
|
|
}
|
|
|
func (m *UserRegisterReq) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_UserRegisterReq.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *UserRegisterReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_UserRegisterReq.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *UserRegisterReq) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_UserRegisterReq.Merge(dst, src)
|
|
|
}
|
|
|
func (m *UserRegisterReq) XXX_Size() int {
|
|
|
return xxx_messageInfo_UserRegisterReq.Size(m)
|
|
|
}
|
|
|
func (m *UserRegisterReq) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_UserRegisterReq.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_UserRegisterReq proto.InternalMessageInfo
|
|
|
|
|
|
func (m *UserRegisterReq) GetUsers() []*sdk_ws.UserInfo {
|
|
|
if m != nil {
|
|
|
return m.Users
|
|
|
}
|
|
|
return nil
|
|
|
}
|
|
|
|
|
|
type UserRegisterResp struct {
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
}
|
|
|
|
|
|
func (m *UserRegisterResp) Reset() { *m = UserRegisterResp{} }
|
|
|
func (m *UserRegisterResp) String() string { return proto.CompactTextString(m) }
|
|
|
func (*UserRegisterResp) ProtoMessage() {}
|
|
|
func (*UserRegisterResp) Descriptor() ([]byte, []int) {
|
|
|
return fileDescriptor_user_ca0d4cfbb41aa43a, []int{25}
|
|
|
}
|
|
|
func (m *UserRegisterResp) XXX_Unmarshal(b []byte) error {
|
|
|
return xxx_messageInfo_UserRegisterResp.Unmarshal(m, b)
|
|
|
}
|
|
|
func (m *UserRegisterResp) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
return xxx_messageInfo_UserRegisterResp.Marshal(b, m, deterministic)
|
|
|
}
|
|
|
func (dst *UserRegisterResp) XXX_Merge(src proto.Message) {
|
|
|
xxx_messageInfo_UserRegisterResp.Merge(dst, src)
|
|
|
}
|
|
|
func (m *UserRegisterResp) XXX_Size() int {
|
|
|
return xxx_messageInfo_UserRegisterResp.Size(m)
|
|
|
}
|
|
|
func (m *UserRegisterResp) XXX_DiscardUnknown() {
|
|
|
xxx_messageInfo_UserRegisterResp.DiscardUnknown(m)
|
|
|
}
|
|
|
|
|
|
var xxx_messageInfo_UserRegisterResp proto.InternalMessageInfo
|
|
|
|
|
|
func init() {
|
|
|
proto.RegisterType((*GetAllUserIDReq)(nil), "user.getAllUserIDReq")
|
|
|
proto.RegisterType((*GetAllUserIDResp)(nil), "user.getAllUserIDResp")
|
|
|
proto.RegisterType((*AccountCheckReq)(nil), "user.accountCheckReq")
|
|
|
proto.RegisterType((*AccountCheckResp)(nil), "user.accountCheckResp")
|
|
|
proto.RegisterType((*AccountCheckRespSingleUserStatus)(nil), "user.accountCheckResp.singleUserStatus")
|
|
|
proto.RegisterType((*GetUsersInfoReq)(nil), "user.getUsersInfoReq")
|
|
|
proto.RegisterType((*GetUsersInfoResp)(nil), "user.getUsersInfoResp")
|
|
|
proto.RegisterType((*UpdateUserInfoReq)(nil), "user.updateUserInfoReq")
|
|
|
proto.RegisterType((*UpdateUserInfoResp)(nil), "user.updateUserInfoResp")
|
|
|
proto.RegisterType((*SetGlobalRecvMessageOptReq)(nil), "user.setGlobalRecvMessageOptReq")
|
|
|
proto.RegisterType((*SetGlobalRecvMessageOptResp)(nil), "user.setGlobalRecvMessageOptResp")
|
|
|
proto.RegisterType((*SetConversationReq)(nil), "user.setConversationReq")
|
|
|
proto.RegisterType((*SetConversationResp)(nil), "user.setConversationResp")
|
|
|
proto.RegisterType((*SetRecvMsgOptReq)(nil), "user.setRecvMsgOptReq")
|
|
|
proto.RegisterType((*SetRecvMsgOptResp)(nil), "user.setRecvMsgOptResp")
|
|
|
proto.RegisterType((*GetConversationReq)(nil), "user.getConversationReq")
|
|
|
proto.RegisterType((*GetConversationResp)(nil), "user.getConversationResp")
|
|
|
proto.RegisterType((*GetConversationsReq)(nil), "user.getConversationsReq")
|
|
|
proto.RegisterType((*GetConversationsResp)(nil), "user.getConversationsResp")
|
|
|
proto.RegisterType((*GetAllConversationsReq)(nil), "user.getAllConversationsReq")
|
|
|
proto.RegisterType((*GetAllConversationsResp)(nil), "user.getAllConversationsResp")
|
|
|
proto.RegisterType((*BatchSetConversationsReq)(nil), "user.batchSetConversationsReq")
|
|
|
proto.RegisterType((*BatchSetConversationsResp)(nil), "user.batchSetConversationsResp")
|
|
|
proto.RegisterType((*GetUsersReq)(nil), "user.getUsersReq")
|
|
|
proto.RegisterType((*GetUsersResp)(nil), "user.getUsersResp")
|
|
|
proto.RegisterType((*UserRegisterReq)(nil), "user.userRegisterReq")
|
|
|
proto.RegisterType((*UserRegisterResp)(nil), "user.userRegisterResp")
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
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.SupportPackageIsVersion4
|
|
|
|
|
|
// Client API for User service
|
|
|
|
|
|
type UserClient interface {
|
|
|
// 获取指定的用户信息 全字段
|
|
|
GetUsersInfo(ctx context.Context, in *GetUsersInfoReq, opts ...grpc.CallOption) (*GetUsersInfoResp, error)
|
|
|
// 更新用户信息
|
|
|
UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error)
|
|
|
// 设置用户消息接收选项
|
|
|
SetGlobalRecvMessageOpt(ctx context.Context, in *SetGlobalRecvMessageOptReq, opts ...grpc.CallOption) (*SetGlobalRecvMessageOptResp, error)
|
|
|
// 检查userID是否存在
|
|
|
AccountCheck(ctx context.Context, in *AccountCheckReq, opts ...grpc.CallOption) (*AccountCheckResp, error)
|
|
|
// 翻页(或指定userID,昵称)拉取用户信息 全字段
|
|
|
GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error)
|
|
|
// 用户注册
|
|
|
UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterResp, error)
|
|
|
}
|
|
|
|
|
|
type userClient struct {
|
|
|
cc *grpc.ClientConn
|
|
|
}
|
|
|
|
|
|
func NewUserClient(cc *grpc.ClientConn) UserClient {
|
|
|
return &userClient{cc}
|
|
|
}
|
|
|
|
|
|
func (c *userClient) GetUsersInfo(ctx context.Context, in *GetUsersInfoReq, opts ...grpc.CallOption) (*GetUsersInfoResp, error) {
|
|
|
out := new(GetUsersInfoResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/getUsersInfo", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userClient) UpdateUserInfo(ctx context.Context, in *UpdateUserInfoReq, opts ...grpc.CallOption) (*UpdateUserInfoResp, error) {
|
|
|
out := new(UpdateUserInfoResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/updateUserInfo", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userClient) SetGlobalRecvMessageOpt(ctx context.Context, in *SetGlobalRecvMessageOptReq, opts ...grpc.CallOption) (*SetGlobalRecvMessageOptResp, error) {
|
|
|
out := new(SetGlobalRecvMessageOptResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/setGlobalRecvMessageOpt", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userClient) AccountCheck(ctx context.Context, in *AccountCheckReq, opts ...grpc.CallOption) (*AccountCheckResp, error) {
|
|
|
out := new(AccountCheckResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/accountCheck", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userClient) GetUsers(ctx context.Context, in *GetUsersReq, opts ...grpc.CallOption) (*GetUsersResp, error) {
|
|
|
out := new(GetUsersResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/getUsers", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
func (c *userClient) UserRegister(ctx context.Context, in *UserRegisterReq, opts ...grpc.CallOption) (*UserRegisterResp, error) {
|
|
|
out := new(UserRegisterResp)
|
|
|
err := grpc.Invoke(ctx, "/user.user/userRegister", in, out, c.cc, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
// Server API for User service
|
|
|
|
|
|
type UserServer interface {
|
|
|
// 获取指定的用户信息 全字段
|
|
|
GetUsersInfo(context.Context, *GetUsersInfoReq) (*GetUsersInfoResp, error)
|
|
|
// 更新用户信息
|
|
|
UpdateUserInfo(context.Context, *UpdateUserInfoReq) (*UpdateUserInfoResp, error)
|
|
|
// 设置用户消息接收选项
|
|
|
SetGlobalRecvMessageOpt(context.Context, *SetGlobalRecvMessageOptReq) (*SetGlobalRecvMessageOptResp, error)
|
|
|
// 检查userID是否存在
|
|
|
AccountCheck(context.Context, *AccountCheckReq) (*AccountCheckResp, error)
|
|
|
// 翻页(或指定userID,昵称)拉取用户信息 全字段
|
|
|
GetUsers(context.Context, *GetUsersReq) (*GetUsersResp, error)
|
|
|
// 用户注册
|
|
|
UserRegister(context.Context, *UserRegisterReq) (*UserRegisterResp, error)
|
|
|
}
|
|
|
|
|
|
func RegisterUserServer(s *grpc.Server, srv UserServer) {
|
|
|
s.RegisterService(&_User_serviceDesc, srv)
|
|
|
}
|
|
|
|
|
|
func _User_GetUsersInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetUsersInfoReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).GetUsersInfo(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/GetUsersInfo",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).GetUsersInfo(ctx, req.(*GetUsersInfoReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _User_UpdateUserInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(UpdateUserInfoReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).UpdateUserInfo(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/UpdateUserInfo",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).UpdateUserInfo(ctx, req.(*UpdateUserInfoReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _User_SetGlobalRecvMessageOpt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(SetGlobalRecvMessageOptReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).SetGlobalRecvMessageOpt(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/SetGlobalRecvMessageOpt",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).SetGlobalRecvMessageOpt(ctx, req.(*SetGlobalRecvMessageOptReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _User_AccountCheck_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(AccountCheckReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).AccountCheck(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/AccountCheck",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).AccountCheck(ctx, req.(*AccountCheckReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _User_GetUsers_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(GetUsersReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).GetUsers(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/GetUsers",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).GetUsers(ctx, req.(*GetUsersReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
func _User_UserRegister_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(UserRegisterReq)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
return srv.(UserServer).UserRegister(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
FullMethod: "/user.user/UserRegister",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
return srv.(UserServer).UserRegister(ctx, req.(*UserRegisterReq))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
var _User_serviceDesc = grpc.ServiceDesc{
|
|
|
ServiceName: "user.user",
|
|
|
HandlerType: (*UserServer)(nil),
|
|
|
Methods: []grpc.MethodDesc{
|
|
|
{
|
|
|
MethodName: "getUsersInfo",
|
|
|
Handler: _User_GetUsersInfo_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "updateUserInfo",
|
|
|
Handler: _User_UpdateUserInfo_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "setGlobalRecvMessageOpt",
|
|
|
Handler: _User_SetGlobalRecvMessageOpt_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "accountCheck",
|
|
|
Handler: _User_AccountCheck_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "getUsers",
|
|
|
Handler: _User_GetUsers_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "userRegister",
|
|
|
Handler: _User_UserRegister_Handler,
|
|
|
},
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "user/user.proto",
|
|
|
}
|
|
|
|
|
|
func init() { proto.RegisterFile("user/user.proto", fileDescriptor_user_ca0d4cfbb41aa43a) }
|
|
|
|
|
|
var fileDescriptor_user_ca0d4cfbb41aa43a = []byte{
|
|
|
// 926 bytes of a gzipped FileDescriptorProto
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x56, 0x51, 0x6f, 0xdc, 0x44,
|
|
|
0x10, 0x96, 0xef, 0x72, 0x4d, 0x33, 0x49, 0x9b, 0xcb, 0x26, 0x4d, 0x8c, 0xa3, 0xa2, 0xb0, 0xaa,
|
|
|
0x20, 0x02, 0xf5, 0x4e, 0x0d, 0x42, 0x80, 0x10, 0x88, 0x92, 0x13, 0x70, 0x52, 0x8f, 0xab, 0x1c,
|
|
|
0xa2, 0x22, 0x40, 0x04, 0xc7, 0xd9, 0xba, 0x56, 0xae, 0xf6, 0xc6, 0xb3, 0x4e, 0xc4, 0x1b, 0x12,
|
|
|
0x3f, 0x83, 0x27, 0x78, 0xe1, 0xbf, 0x20, 0x7e, 0x14, 0xda, 0x5d, 0x3b, 0xb7, 0xf6, 0xda, 0x69,
|
|
|
0x1a, 0x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