client/golang/relation/friend.pb.go

1050 lines
34 KiB
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.8
// protoc (unknown)
// source: friend.proto
package relation
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
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 ApplyFetchReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` //版本号
Applys []*ApplyItem `protobuf:"bytes,3,rep,name=applys,proto3" json:"applys,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApplyFetchReply) Reset() {
*x = ApplyFetchReply{}
mi := &file_friend_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApplyFetchReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApplyFetchReply) ProtoMessage() {}
func (x *ApplyFetchReply) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApplyFetchReply.ProtoReflect.Descriptor instead.
func (*ApplyFetchReply) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{0}
}
func (x *ApplyFetchReply) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
func (x *ApplyFetchReply) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *ApplyFetchReply) GetApplys() []*ApplyItem {
if x != nil {
return x.Applys
}
return nil
}
type ApplyItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 唯一标识
From *RelationItem `protobuf:"bytes,2,opt,name=from,proto3" json:"from,omitempty"`
Message *MessageItem `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
CreatedAt string `protobuf:"bytes,4,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` //时间
Status int32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // 状态
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApplyItem) Reset() {
*x = ApplyItem{}
mi := &file_friend_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApplyItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApplyItem) ProtoMessage() {}
func (x *ApplyItem) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApplyItem.ProtoReflect.Descriptor instead.
func (*ApplyItem) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{1}
}
func (x *ApplyItem) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *ApplyItem) GetFrom() *RelationItem {
if x != nil {
return x.From
}
return nil
}
func (x *ApplyItem) GetMessage() *MessageItem {
if x != nil {
return x.Message
}
return nil
}
func (x *ApplyItem) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
func (x *ApplyItem) GetStatus() int32 {
if x != nil {
return x.Status
}
return 0
}
type ApplyDoRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ToId int64 `protobuf:"varint,1,opt,name=to_id,json=toId,proto3" json:"to_id,omitempty"` // 目标人的唯一ID
ToIdentity string `protobuf:"bytes,2,opt,name=to_identity,json=toIdentity,proto3" json:"to_identity,omitempty"` //目标人的唯一标识
Body string `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"` //留言正文
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApplyDoRequest) Reset() {
*x = ApplyDoRequest{}
mi := &file_friend_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApplyDoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApplyDoRequest) ProtoMessage() {}
func (x *ApplyDoRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApplyDoRequest.ProtoReflect.Descriptor instead.
func (*ApplyDoRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{2}
}
func (x *ApplyDoRequest) GetToId() int64 {
if x != nil {
return x.ToId
}
return 0
}
func (x *ApplyDoRequest) GetToIdentity() string {
if x != nil {
return x.ToIdentity
}
return ""
}
func (x *ApplyDoRequest) GetBody() string {
if x != nil {
return x.Body
}
return ""
}
type ApplyDoPassRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
FriendRelationId int64 `protobuf:"varint,1,opt,name=friend_relation_id,json=friendRelationId,proto3" json:"friend_relation_id,omitempty"` // 为将要通过的好友会员通行证唯一ID
FriendRelationIdentity string `protobuf:"bytes,2,opt,name=friend_relation_identity,json=friendRelationIdentity,proto3" json:"friend_relation_identity,omitempty"` // 为将要通过的好友会员通行证唯一Identity
ApplyIdentity string `protobuf:"bytes,3,opt,name=apply_identity,json=applyIdentity,proto3" json:"apply_identity,omitempty"` // 申请的唯一标识
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApplyDoPassRequest) Reset() {
*x = ApplyDoPassRequest{}
mi := &file_friend_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApplyDoPassRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApplyDoPassRequest) ProtoMessage() {}
func (x *ApplyDoPassRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApplyDoPassRequest.ProtoReflect.Descriptor instead.
func (*ApplyDoPassRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{3}
}
func (x *ApplyDoPassRequest) GetFriendRelationId() int64 {
if x != nil {
return x.FriendRelationId
}
return 0
}
func (x *ApplyDoPassRequest) GetFriendRelationIdentity() string {
if x != nil {
return x.FriendRelationIdentity
}
return ""
}
func (x *ApplyDoPassRequest) GetApplyIdentity() string {
if x != nil {
return x.ApplyIdentity
}
return ""
}
type ApplyMessageRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
ApplyId int64 `protobuf:"varint,1,opt,name=apply_id,json=applyId,proto3" json:"apply_id,omitempty"` // 申请ID
Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` //留言正文
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ApplyMessageRequest) Reset() {
*x = ApplyMessageRequest{}
mi := &file_friend_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ApplyMessageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ApplyMessageRequest) ProtoMessage() {}
func (x *ApplyMessageRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ApplyMessageRequest.ProtoReflect.Descriptor instead.
func (*ApplyMessageRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{4}
}
func (x *ApplyMessageRequest) GetApplyId() int64 {
if x != nil {
return x.ApplyId
}
return 0
}
func (x *ApplyMessageRequest) GetBody() string {
if x != nil {
return x.Body
}
return ""
}
type PartFriendReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` //版本号
Friends []*RelationItem `protobuf:"bytes,4,rep,name=friends,proto3" json:"friends,omitempty"` //好友信息
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PartFriendReply) Reset() {
*x = PartFriendReply{}
mi := &file_friend_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PartFriendReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PartFriendReply) ProtoMessage() {}
func (x *PartFriendReply) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use PartFriendReply.ProtoReflect.Descriptor instead.
func (*PartFriendReply) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{5}
}
func (x *PartFriendReply) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
func (x *PartFriendReply) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *PartFriendReply) GetFriends() []*RelationItem {
if x != nil {
return x.Friends
}
return nil
}
type FriendsReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Total int32 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Version int64 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"` //版本号
Tags []*TagItem `protobuf:"bytes,3,rep,name=tags,proto3" json:"tags,omitempty"` //分组标签信息
Friends []*RelationItem `protobuf:"bytes,4,rep,name=friends,proto3" json:"friends,omitempty"` //好友信息
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FriendsReply) Reset() {
*x = FriendsReply{}
mi := &file_friend_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FriendsReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FriendsReply) ProtoMessage() {}
func (x *FriendsReply) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FriendsReply.ProtoReflect.Descriptor instead.
func (*FriendsReply) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{6}
}
func (x *FriendsReply) GetTotal() int32 {
if x != nil {
return x.Total
}
return 0
}
func (x *FriendsReply) GetVersion() int64 {
if x != nil {
return x.Version
}
return 0
}
func (x *FriendsReply) GetTags() []*TagItem {
if x != nil {
return x.Tags
}
return nil
}
func (x *FriendsReply) GetFriends() []*RelationItem {
if x != nil {
return x.Friends
}
return nil
}
type FriendApplyGetReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Data *RelationItem `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // 会员信息卡片
Message []*MessageItem `protobuf:"bytes,2,rep,name=message,proto3" json:"message,omitempty"` //聊天记录
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FriendApplyGetReply) Reset() {
*x = FriendApplyGetReply{}
mi := &file_friend_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FriendApplyGetReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FriendApplyGetReply) ProtoMessage() {}
func (x *FriendApplyGetReply) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FriendApplyGetReply.ProtoReflect.Descriptor instead.
func (*FriendApplyGetReply) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{7}
}
func (x *FriendApplyGetReply) GetData() *RelationItem {
if x != nil {
return x.Data
}
return nil
}
func (x *FriendApplyGetReply) GetMessage() []*MessageItem {
if x != nil {
return x.Message
}
return nil
}
type MessageItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
RelationIdentity string `protobuf:"bytes,1,opt,name=relation_identity,json=relationIdentity,proto3" json:"relation_identity,omitempty"` //发送者
Body string `protobuf:"bytes,2,opt,name=body,proto3" json:"body,omitempty"` //正文
CreatedAt string `protobuf:"bytes,3,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` //时间
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *MessageItem) Reset() {
*x = MessageItem{}
mi := &file_friend_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *MessageItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*MessageItem) ProtoMessage() {}
func (x *MessageItem) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use MessageItem.ProtoReflect.Descriptor instead.
func (*MessageItem) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{8}
}
func (x *MessageItem) GetRelationIdentity() string {
if x != nil {
return x.RelationIdentity
}
return ""
}
func (x *MessageItem) GetBody() string {
if x != nil {
return x.Body
}
return ""
}
func (x *MessageItem) GetCreatedAt() string {
if x != nil {
return x.CreatedAt
}
return ""
}
type ModifyNicknameRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // 会员唯一标识
Nickname string `protobuf:"bytes,2,opt,name=nickname,proto3" json:"nickname,omitempty"` // 新的备注名称
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ModifyNicknameRequest) Reset() {
*x = ModifyNicknameRequest{}
mi := &file_friend_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ModifyNicknameRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ModifyNicknameRequest) ProtoMessage() {}
func (x *ModifyNicknameRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ModifyNicknameRequest.ProtoReflect.Descriptor instead.
func (*ModifyNicknameRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{9}
}
func (x *ModifyNicknameRequest) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *ModifyNicknameRequest) GetNickname() string {
if x != nil {
return x.Nickname
}
return ""
}
type FriendTagsReply struct {
state protoimpl.MessageState `protogen:"open.v1"`
Total int64 `protobuf:"varint,1,opt,name=total,proto3" json:"total,omitempty"` // 总记录数
Data []*TagItem `protobuf:"bytes,2,rep,name=data,proto3" json:"data,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *FriendTagsReply) Reset() {
*x = FriendTagsReply{}
mi := &file_friend_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *FriendTagsReply) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FriendTagsReply) ProtoMessage() {}
func (x *FriendTagsReply) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use FriendTagsReply.ProtoReflect.Descriptor instead.
func (*FriendTagsReply) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{10}
}
func (x *FriendTagsReply) GetTotal() int64 {
if x != nil {
return x.Total
}
return 0
}
func (x *FriendTagsReply) GetData() []*TagItem {
if x != nil {
return x.Data
}
return nil
}
type TagItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` //好友标签ID
Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` // 标签唯一标识
FriendTotal int64 `protobuf:"varint,3,opt,name=friend_total,json=friendTotal,proto3" json:"friend_total,omitempty"` // 标签成员统计
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名称
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TagItem) Reset() {
*x = TagItem{}
mi := &file_friend_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TagItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TagItem) ProtoMessage() {}
func (x *TagItem) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TagItem.ProtoReflect.Descriptor instead.
func (*TagItem) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{11}
}
func (x *TagItem) GetId() int64 {
if x != nil {
return x.Id
}
return 0
}
func (x *TagItem) GetIdentity() string {
if x != nil {
return x.Identity
}
return ""
}
func (x *TagItem) GetFriendTotal() int64 {
if x != nil {
return x.FriendTotal
}
return 0
}
func (x *TagItem) GetTagName() string {
if x != nil {
return x.TagName
}
return ""
}
type TagDoCreateRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TagName string `protobuf:"bytes,1,opt,name=tag_name,json=tagName,proto3" json:"tag_name,omitempty"` // 标签名称
FriendIdentity []string `protobuf:"bytes,2,rep,name=friend_identity,json=friendIdentity,proto3" json:"friend_identity,omitempty"` //成员identity
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TagDoCreateRequest) Reset() {
*x = TagDoCreateRequest{}
mi := &file_friend_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TagDoCreateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TagDoCreateRequest) ProtoMessage() {}
func (x *TagDoCreateRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TagDoCreateRequest.ProtoReflect.Descriptor instead.
func (*TagDoCreateRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{12}
}
func (x *TagDoCreateRequest) GetTagName() string {
if x != nil {
return x.TagName
}
return ""
}
func (x *TagDoCreateRequest) GetFriendIdentity() []string {
if x != nil {
return x.FriendIdentity
}
return nil
}
type TagDoUpdateRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
TagIdentity string `protobuf:"bytes,1,opt,name=tag_identity,json=tagIdentity,proto3" json:"tag_identity,omitempty"` // 标签唯一标识
FriendIdentity string `protobuf:"bytes,2,opt,name=friend_identity,json=friendIdentity,proto3" json:"friend_identity,omitempty"` //成员identity
Direction string `protobuf:"bytes,3,opt,name=direction,proto3" json:"direction,omitempty"` //操作方式ADD增加成员,DEL删除成员
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TagDoUpdateRequest) Reset() {
*x = TagDoUpdateRequest{}
mi := &file_friend_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TagDoUpdateRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TagDoUpdateRequest) ProtoMessage() {}
func (x *TagDoUpdateRequest) ProtoReflect() protoreflect.Message {
mi := &file_friend_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TagDoUpdateRequest.ProtoReflect.Descriptor instead.
func (*TagDoUpdateRequest) Descriptor() ([]byte, []int) {
return file_friend_proto_rawDescGZIP(), []int{13}
}
func (x *TagDoUpdateRequest) GetTagIdentity() string {
if x != nil {
return x.TagIdentity
}
return ""
}
func (x *TagDoUpdateRequest) GetFriendIdentity() string {
if x != nil {
return x.FriendIdentity
}
return ""
}
func (x *TagDoUpdateRequest) GetDirection() string {
if x != nil {
return x.Direction
}
return ""
}
var File_friend_proto protoreflect.FileDescriptor
const file_friend_proto_rawDesc = "" +
"\n" +
"\ffriend.proto\x12\brelation\x1a\fblocks.proto\"n\n" +
"\x0fApplyFetchReply\x12\x14\n" +
"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
"\aversion\x18\x02 \x01(\x03R\aversion\x12+\n" +
"\x06applys\x18\x03 \x03(\v2\x13.relation.ApplyItemR\x06applys\"\xbb\x01\n" +
"\tApplyItem\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12*\n" +
"\x04from\x18\x02 \x01(\v2\x16.relation.RelationItemR\x04from\x12/\n" +
"\amessage\x18\x03 \x01(\v2\x15.relation.MessageItemR\amessage\x12\x1d\n" +
"\n" +
"created_at\x18\x04 \x01(\tR\tcreatedAt\x12\x16\n" +
"\x06status\x18\x05 \x01(\x05R\x06status\"Z\n" +
"\x0eApplyDoRequest\x12\x13\n" +
"\x05to_id\x18\x01 \x01(\x03R\x04toId\x12\x1f\n" +
"\vto_identity\x18\x02 \x01(\tR\n" +
"toIdentity\x12\x12\n" +
"\x04body\x18\x03 \x01(\tR\x04body\"\xa3\x01\n" +
"\x12ApplyDoPassRequest\x12,\n" +
"\x12friend_relation_id\x18\x01 \x01(\x03R\x10friendRelationId\x128\n" +
"\x18friend_relation_identity\x18\x02 \x01(\tR\x16friendRelationIdentity\x12%\n" +
"\x0eapply_identity\x18\x03 \x01(\tR\rapplyIdentity\"D\n" +
"\x13ApplyMessageRequest\x12\x19\n" +
"\bapply_id\x18\x01 \x01(\x03R\aapplyId\x12\x12\n" +
"\x04body\x18\x02 \x01(\tR\x04body\"s\n" +
"\x0fPartFriendReply\x12\x14\n" +
"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
"\aversion\x18\x02 \x01(\x03R\aversion\x120\n" +
"\afriends\x18\x04 \x03(\v2\x16.relation.RelationItemR\afriends\"\x97\x01\n" +
"\fFriendsReply\x12\x14\n" +
"\x05total\x18\x01 \x01(\x05R\x05total\x12\x18\n" +
"\aversion\x18\x02 \x01(\x03R\aversion\x12%\n" +
"\x04tags\x18\x03 \x03(\v2\x11.relation.TagItemR\x04tags\x120\n" +
"\afriends\x18\x04 \x03(\v2\x16.relation.RelationItemR\afriends\"r\n" +
"\x13FriendApplyGetReply\x12*\n" +
"\x04data\x18\x01 \x01(\v2\x16.relation.RelationItemR\x04data\x12/\n" +
"\amessage\x18\x02 \x03(\v2\x15.relation.MessageItemR\amessage\"m\n" +
"\vMessageItem\x12+\n" +
"\x11relation_identity\x18\x01 \x01(\tR\x10relationIdentity\x12\x12\n" +
"\x04body\x18\x02 \x01(\tR\x04body\x12\x1d\n" +
"\n" +
"created_at\x18\x03 \x01(\tR\tcreatedAt\"O\n" +
"\x15ModifyNicknameRequest\x12\x1a\n" +
"\bidentity\x18\x01 \x01(\tR\bidentity\x12\x1a\n" +
"\bnickname\x18\x02 \x01(\tR\bnickname\"N\n" +
"\x0fFriendTagsReply\x12\x14\n" +
"\x05total\x18\x01 \x01(\x03R\x05total\x12%\n" +
"\x04data\x18\x02 \x03(\v2\x11.relation.TagItemR\x04data\"s\n" +
"\aTagItem\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x03R\x02id\x12\x1a\n" +
"\bidentity\x18\x02 \x01(\tR\bidentity\x12!\n" +
"\ffriend_total\x18\x03 \x01(\x03R\vfriendTotal\x12\x19\n" +
"\btag_name\x18\x04 \x01(\tR\atagName\"X\n" +
"\x12TagDoCreateRequest\x12\x19\n" +
"\btag_name\x18\x01 \x01(\tR\atagName\x12'\n" +
"\x0ffriend_identity\x18\x02 \x03(\tR\x0efriendIdentity\"~\n" +
"\x12TagDoUpdateRequest\x12!\n" +
"\ftag_identity\x18\x01 \x01(\tR\vtagIdentity\x12'\n" +
"\x0ffriend_identity\x18\x02 \x01(\tR\x0efriendIdentity\x12\x1c\n" +
"\tdirection\x18\x03 \x01(\tR\tdirection2\xc8\b\n" +
"\x06Friend\x12<\n" +
"\x06Search\x12\x17.relation.SearchRequest\x1a\x19.relation.PartFriendReply\x129\n" +
"\x05Fetch\x12\x18.relation.VersionRequest\x1a\x16.relation.FriendsReply\x125\n" +
"\x03Get\x12\x16.relation.IdentRequest\x1a\x16.relation.RelationItem\x12H\n" +
"\x0eModifyNickname\x12\x1f.relation.ModifyNicknameRequest\x1a\x15.relation.StatusReply\x12:\n" +
"\tDoPopular\x12\x16.relation.IdentRequest\x1a\x15.relation.StatusReply\x12<\n" +
"\vUndoPopular\x12\x16.relation.IdentRequest\x1a\x15.relation.StatusReply\x127\n" +
"\x06Delete\x12\x16.relation.IdentRequest\x1a\x15.relation.StatusReply\x12A\n" +
"\n" +
"ApplyFetch\x12\x18.relation.VersionRequest\x1a\x19.relation.ApplyFetchReply\x12A\n" +
"\bApplyGet\x12\x16.relation.IdentRequest\x1a\x1d.relation.FriendApplyGetReply\x12:\n" +
"\aApplyDo\x12\x18.relation.ApplyDoRequest\x1a\x15.relation.StatusReply\x12F\n" +
"\x0eApplyDoMessage\x12\x1d.relation.ApplyMessageRequest\x1a\x15.relation.StatusReply\x12B\n" +
"\vApplyDoPass\x12\x1c.relation.ApplyDoPassRequest\x1a\x15.relation.StatusReply\x12>\n" +
"\rApplyDoReject\x12\x16.relation.IdentRequest\x1a\x15.relation.StatusReply\x126\n" +
"\bTagFetch\x12\x0f.relation.Empty\x1a\x19.relation.FriendTagsReply\x12C\n" +
"\x0eTagMemberFetch\x12\x16.relation.IdentRequest\x1a\x19.relation.PartFriendReply\x12B\n" +
"\vTagDoCreate\x12\x1c.relation.TagDoCreateRequest\x1a\x15.relation.StatusReply\x12B\n" +
"\vTagDoUpdate\x12\x1c.relation.TagDoUpdateRequest\x1a\x15.relation.StatusReplyB\fZ\n" +
".;relationb\x06proto3"
var (
file_friend_proto_rawDescOnce sync.Once
file_friend_proto_rawDescData []byte
)
func file_friend_proto_rawDescGZIP() []byte {
file_friend_proto_rawDescOnce.Do(func() {
file_friend_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_friend_proto_rawDesc), len(file_friend_proto_rawDesc)))
})
return file_friend_proto_rawDescData
}
var file_friend_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_friend_proto_goTypes = []any{
(*ApplyFetchReply)(nil), // 0: relation.ApplyFetchReply
(*ApplyItem)(nil), // 1: relation.ApplyItem
(*ApplyDoRequest)(nil), // 2: relation.ApplyDoRequest
(*ApplyDoPassRequest)(nil), // 3: relation.ApplyDoPassRequest
(*ApplyMessageRequest)(nil), // 4: relation.ApplyMessageRequest
(*PartFriendReply)(nil), // 5: relation.PartFriendReply
(*FriendsReply)(nil), // 6: relation.FriendsReply
(*FriendApplyGetReply)(nil), // 7: relation.FriendApplyGetReply
(*MessageItem)(nil), // 8: relation.MessageItem
(*ModifyNicknameRequest)(nil), // 9: relation.ModifyNicknameRequest
(*FriendTagsReply)(nil), // 10: relation.FriendTagsReply
(*TagItem)(nil), // 11: relation.TagItem
(*TagDoCreateRequest)(nil), // 12: relation.TagDoCreateRequest
(*TagDoUpdateRequest)(nil), // 13: relation.TagDoUpdateRequest
(*RelationItem)(nil), // 14: relation.RelationItem
(*SearchRequest)(nil), // 15: relation.SearchRequest
(*VersionRequest)(nil), // 16: relation.VersionRequest
(*IdentRequest)(nil), // 17: relation.IdentRequest
(*Empty)(nil), // 18: relation.Empty
(*StatusReply)(nil), // 19: relation.StatusReply
}
var file_friend_proto_depIdxs = []int32{
1, // 0: relation.ApplyFetchReply.applys:type_name -> relation.ApplyItem
14, // 1: relation.ApplyItem.from:type_name -> relation.RelationItem
8, // 2: relation.ApplyItem.message:type_name -> relation.MessageItem
14, // 3: relation.PartFriendReply.friends:type_name -> relation.RelationItem
11, // 4: relation.FriendsReply.tags:type_name -> relation.TagItem
14, // 5: relation.FriendsReply.friends:type_name -> relation.RelationItem
14, // 6: relation.FriendApplyGetReply.data:type_name -> relation.RelationItem
8, // 7: relation.FriendApplyGetReply.message:type_name -> relation.MessageItem
11, // 8: relation.FriendTagsReply.data:type_name -> relation.TagItem
15, // 9: relation.Friend.Search:input_type -> relation.SearchRequest
16, // 10: relation.Friend.Fetch:input_type -> relation.VersionRequest
17, // 11: relation.Friend.Get:input_type -> relation.IdentRequest
9, // 12: relation.Friend.ModifyNickname:input_type -> relation.ModifyNicknameRequest
17, // 13: relation.Friend.DoPopular:input_type -> relation.IdentRequest
17, // 14: relation.Friend.UndoPopular:input_type -> relation.IdentRequest
17, // 15: relation.Friend.Delete:input_type -> relation.IdentRequest
16, // 16: relation.Friend.ApplyFetch:input_type -> relation.VersionRequest
17, // 17: relation.Friend.ApplyGet:input_type -> relation.IdentRequest
2, // 18: relation.Friend.ApplyDo:input_type -> relation.ApplyDoRequest
4, // 19: relation.Friend.ApplyDoMessage:input_type -> relation.ApplyMessageRequest
3, // 20: relation.Friend.ApplyDoPass:input_type -> relation.ApplyDoPassRequest
17, // 21: relation.Friend.ApplyDoReject:input_type -> relation.IdentRequest
18, // 22: relation.Friend.TagFetch:input_type -> relation.Empty
17, // 23: relation.Friend.TagMemberFetch:input_type -> relation.IdentRequest
12, // 24: relation.Friend.TagDoCreate:input_type -> relation.TagDoCreateRequest
13, // 25: relation.Friend.TagDoUpdate:input_type -> relation.TagDoUpdateRequest
5, // 26: relation.Friend.Search:output_type -> relation.PartFriendReply
6, // 27: relation.Friend.Fetch:output_type -> relation.FriendsReply
14, // 28: relation.Friend.Get:output_type -> relation.RelationItem
19, // 29: relation.Friend.ModifyNickname:output_type -> relation.StatusReply
19, // 30: relation.Friend.DoPopular:output_type -> relation.StatusReply
19, // 31: relation.Friend.UndoPopular:output_type -> relation.StatusReply
19, // 32: relation.Friend.Delete:output_type -> relation.StatusReply
0, // 33: relation.Friend.ApplyFetch:output_type -> relation.ApplyFetchReply
7, // 34: relation.Friend.ApplyGet:output_type -> relation.FriendApplyGetReply
19, // 35: relation.Friend.ApplyDo:output_type -> relation.StatusReply
19, // 36: relation.Friend.ApplyDoMessage:output_type -> relation.StatusReply
19, // 37: relation.Friend.ApplyDoPass:output_type -> relation.StatusReply
19, // 38: relation.Friend.ApplyDoReject:output_type -> relation.StatusReply
10, // 39: relation.Friend.TagFetch:output_type -> relation.FriendTagsReply
5, // 40: relation.Friend.TagMemberFetch:output_type -> relation.PartFriendReply
19, // 41: relation.Friend.TagDoCreate:output_type -> relation.StatusReply
19, // 42: relation.Friend.TagDoUpdate:output_type -> relation.StatusReply
26, // [26:43] is the sub-list for method output_type
9, // [9:26] is the sub-list for method input_type
9, // [9:9] is the sub-list for extension type_name
9, // [9:9] is the sub-list for extension extendee
0, // [0:9] is the sub-list for field type_name
}
func init() { file_friend_proto_init() }
func file_friend_proto_init() {
if File_friend_proto != nil {
return
}
file_blocks_proto_init()
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_friend_proto_rawDesc), len(file_friend_proto_rawDesc)),
NumEnums: 0,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_friend_proto_goTypes,
DependencyIndexes: file_friend_proto_depIdxs,
MessageInfos: file_friend_proto_msgTypes,
}.Build()
File_friend_proto = out.File
file_friend_proto_goTypes = nil
file_friend_proto_depIdxs = nil
}