Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterRelationshipServer(s grpc.ServiceRegistrar, srv RelationshipServer)
- type AddFriendRequest
- func (*AddFriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendRequest) GetRequest() *relationship.FriendRequest
- func (*AddFriendRequest) ProtoMessage()
- func (x *AddFriendRequest) ProtoReflect() protoreflect.Message
- func (x *AddFriendRequest) Reset()
- func (x *AddFriendRequest) String() string
- type AddFriendResponse
- func (*AddFriendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendResponse) GetFriendsSince() *timestamppb.Timestamp
- func (x *AddFriendResponse) GetResult() AddFriendResponse_AddFriendResult
- func (*AddFriendResponse) ProtoMessage()
- func (x *AddFriendResponse) ProtoReflect() protoreflect.Message
- func (x *AddFriendResponse) Reset()
- func (x *AddFriendResponse) String() string
- type AddFriendResponse_AddFriendResult
- func (AddFriendResponse_AddFriendResult) Descriptor() protoreflect.EnumDescriptor
- func (x AddFriendResponse_AddFriendResult) Enum() *AddFriendResponse_AddFriendResult
- func (AddFriendResponse_AddFriendResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddFriendResponse_AddFriendResult) Number() protoreflect.EnumNumber
- func (x AddFriendResponse_AddFriendResult) String() string
- func (AddFriendResponse_AddFriendResult) Type() protoreflect.EnumType
- type BlockedListResponse
- func (*BlockedListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *BlockedListResponse) GetBlockedPlayerIds() []string
- func (*BlockedListResponse) ProtoMessage()
- func (x *BlockedListResponse) ProtoReflect() protoreflect.Message
- func (x *BlockedListResponse) Reset()
- func (x *BlockedListResponse) String() string
- type CreateBlockRequest
- func (*CreateBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBlockRequest) GetBlock() *relationship.PlayerBlock
- func (*CreateBlockRequest) ProtoMessage()
- func (x *CreateBlockRequest) ProtoReflect() protoreflect.Message
- func (x *CreateBlockRequest) Reset()
- func (x *CreateBlockRequest) String() string
- type CreateBlockResponse
- func (*CreateBlockResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateBlockResponse) GetResult() CreateBlockResponse_CreateBlockResult
- func (*CreateBlockResponse) ProtoMessage()
- func (x *CreateBlockResponse) ProtoReflect() protoreflect.Message
- func (x *CreateBlockResponse) Reset()
- func (x *CreateBlockResponse) String() string
- type CreateBlockResponse_CreateBlockResult
- func (CreateBlockResponse_CreateBlockResult) Descriptor() protoreflect.EnumDescriptor
- func (x CreateBlockResponse_CreateBlockResult) Enum() *CreateBlockResponse_CreateBlockResult
- func (CreateBlockResponse_CreateBlockResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x CreateBlockResponse_CreateBlockResult) Number() protoreflect.EnumNumber
- func (x CreateBlockResponse_CreateBlockResult) String() string
- func (CreateBlockResponse_CreateBlockResult) Type() protoreflect.EnumType
- type DeleteBlockRequest
- func (*DeleteBlockRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteBlockRequest) GetIssuerId() string
- func (x *DeleteBlockRequest) GetTargetId() string
- func (*DeleteBlockRequest) ProtoMessage()
- func (x *DeleteBlockRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteBlockRequest) Reset()
- func (x *DeleteBlockRequest) String() string
- type DeleteBlockResponse
- type DenyFriendRequestRequest
- func (*DenyFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DenyFriendRequestRequest) GetIssuerId() string
- func (x *DenyFriendRequestRequest) GetTargetId() string
- func (*DenyFriendRequestRequest) ProtoMessage()
- func (x *DenyFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *DenyFriendRequestRequest) Reset()
- func (x *DenyFriendRequestRequest) String() string
- type DenyFriendRequestResponse
- func (*DenyFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DenyFriendRequestResponse) GetResult() DenyFriendRequestResponse_DenyFriendRequestResult
- func (*DenyFriendRequestResponse) ProtoMessage()
- func (x *DenyFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *DenyFriendRequestResponse) Reset()
- func (x *DenyFriendRequestResponse) String() string
- type DenyFriendRequestResponse_DenyFriendRequestResult
- func (DenyFriendRequestResponse_DenyFriendRequestResult) Descriptor() protoreflect.EnumDescriptor
- func (x DenyFriendRequestResponse_DenyFriendRequestResult) Enum() *DenyFriendRequestResponse_DenyFriendRequestResult
- func (DenyFriendRequestResponse_DenyFriendRequestResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x DenyFriendRequestResponse_DenyFriendRequestResult) Number() protoreflect.EnumNumber
- func (x DenyFriendRequestResponse_DenyFriendRequestResult) String() string
- func (DenyFriendRequestResponse_DenyFriendRequestResult) Type() protoreflect.EnumType
- type FriendListResponse
- func (*FriendListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *FriendListResponse) GetFriends() []*FriendListResponse_FriendListPlayer
- func (*FriendListResponse) ProtoMessage()
- func (x *FriendListResponse) ProtoReflect() protoreflect.Message
- func (x *FriendListResponse) Reset()
- func (x *FriendListResponse) String() string
- type FriendListResponse_FriendListPlayer
- func (*FriendListResponse_FriendListPlayer) Descriptor() ([]byte, []int)deprecated
- func (x *FriendListResponse_FriendListPlayer) GetFriendsSince() *timestamppb.Timestamp
- func (x *FriendListResponse_FriendListPlayer) GetId() string
- func (*FriendListResponse_FriendListPlayer) ProtoMessage()
- func (x *FriendListResponse_FriendListPlayer) ProtoReflect() protoreflect.Message
- func (x *FriendListResponse_FriendListPlayer) Reset()
- func (x *FriendListResponse_FriendListPlayer) String() string
- type GetBlockedListRequest
- func (*GetBlockedListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetBlockedListRequest) GetPlayerId() string
- func (*GetBlockedListRequest) ProtoMessage()
- func (x *GetBlockedListRequest) ProtoReflect() protoreflect.Message
- func (x *GetBlockedListRequest) Reset()
- func (x *GetBlockedListRequest) String() string
- type GetFriendListRequest
- func (*GetFriendListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendListRequest) GetPlayerId() string
- func (*GetFriendListRequest) ProtoMessage()
- func (x *GetFriendListRequest) ProtoReflect() protoreflect.Message
- func (x *GetFriendListRequest) Reset()
- func (x *GetFriendListRequest) String() string
- type GetPendingFriendRequestListRequest
- func (*GetPendingFriendRequestListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPendingFriendRequestListRequest) GetIncoming() bool
- func (x *GetPendingFriendRequestListRequest) GetIssuerId() string
- func (*GetPendingFriendRequestListRequest) ProtoMessage()
- func (x *GetPendingFriendRequestListRequest) ProtoReflect() protoreflect.Message
- func (x *GetPendingFriendRequestListRequest) Reset()
- func (x *GetPendingFriendRequestListRequest) String() string
- type IsBlockedRequest
- func (*IsBlockedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *IsBlockedRequest) GetIssuerId() string
- func (x *IsBlockedRequest) GetTargetId() string
- func (*IsBlockedRequest) ProtoMessage()
- func (x *IsBlockedRequest) ProtoReflect() protoreflect.Message
- func (x *IsBlockedRequest) Reset()
- func (x *IsBlockedRequest) String() string
- type IsBlockedResponse
- func (*IsBlockedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *IsBlockedResponse) GetBlock() *relationship.PlayerBlock
- func (*IsBlockedResponse) ProtoMessage()
- func (x *IsBlockedResponse) ProtoReflect() protoreflect.Message
- func (x *IsBlockedResponse) Reset()
- func (x *IsBlockedResponse) String() string
- type MassDenyFriendRequestRequest
- func (*MassDenyFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *MassDenyFriendRequestRequest) GetIncoming() bool
- func (x *MassDenyFriendRequestRequest) GetIssuerId() string
- func (*MassDenyFriendRequestRequest) ProtoMessage()
- func (x *MassDenyFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *MassDenyFriendRequestRequest) Reset()
- func (x *MassDenyFriendRequestRequest) String() string
- type MassDenyFriendRequestResponse
- func (*MassDenyFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MassDenyFriendRequestResponse) GetRequestsDenied() uint32
- func (*MassDenyFriendRequestResponse) ProtoMessage()
- func (x *MassDenyFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *MassDenyFriendRequestResponse) Reset()
- func (x *MassDenyFriendRequestResponse) String() string
- type PendingFriendListResponse
- func (*PendingFriendListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *PendingFriendListResponse) GetRequests() []*PendingFriendListResponse_RequestedFriendPlayer
- func (*PendingFriendListResponse) ProtoMessage()
- func (x *PendingFriendListResponse) ProtoReflect() protoreflect.Message
- func (x *PendingFriendListResponse) Reset()
- func (x *PendingFriendListResponse) String() string
- type PendingFriendListResponse_RequestedFriendPlayer
- func (*PendingFriendListResponse_RequestedFriendPlayer) Descriptor() ([]byte, []int)deprecated
- func (x *PendingFriendListResponse_RequestedFriendPlayer) GetRequestTime() *timestamppb.Timestamp
- func (x *PendingFriendListResponse_RequestedFriendPlayer) GetRequesterId() string
- func (x *PendingFriendListResponse_RequestedFriendPlayer) GetTargetId() string
- func (*PendingFriendListResponse_RequestedFriendPlayer) ProtoMessage()
- func (x *PendingFriendListResponse_RequestedFriendPlayer) ProtoReflect() protoreflect.Message
- func (x *PendingFriendListResponse_RequestedFriendPlayer) Reset()
- func (x *PendingFriendListResponse_RequestedFriendPlayer) String() string
- type RelationshipClient
- type RelationshipServer
- type RemoveFriendRequest
- func (*RemoveFriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFriendRequest) GetSenderId() string
- func (x *RemoveFriendRequest) GetSenderUsername() string
- func (x *RemoveFriendRequest) GetTargetId() string
- func (*RemoveFriendRequest) ProtoMessage()
- func (x *RemoveFriendRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveFriendRequest) Reset()
- func (x *RemoveFriendRequest) String() string
- type RemoveFriendResponse
- func (*RemoveFriendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveFriendResponse) GetResult() RemoveFriendResponse_RemoveFriendResult
- func (*RemoveFriendResponse) ProtoMessage()
- func (x *RemoveFriendResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveFriendResponse) Reset()
- func (x *RemoveFriendResponse) String() string
- type RemoveFriendResponse_RemoveFriendResult
- func (RemoveFriendResponse_RemoveFriendResult) Descriptor() protoreflect.EnumDescriptor
- func (x RemoveFriendResponse_RemoveFriendResult) Enum() *RemoveFriendResponse_RemoveFriendResult
- func (RemoveFriendResponse_RemoveFriendResult) EnumDescriptor() ([]byte, []int)deprecated
- func (x RemoveFriendResponse_RemoveFriendResult) Number() protoreflect.EnumNumber
- func (x RemoveFriendResponse_RemoveFriendResult) String() string
- func (RemoveFriendResponse_RemoveFriendResult) Type() protoreflect.EnumType
- type UnimplementedRelationshipServer
- func (UnimplementedRelationshipServer) AddFriend(context.Context, *AddFriendRequest) (*AddFriendResponse, error)
- func (UnimplementedRelationshipServer) CreateBlock(context.Context, *CreateBlockRequest) (*CreateBlockResponse, error)
- func (UnimplementedRelationshipServer) DeleteBlock(context.Context, *DeleteBlockRequest) (*DeleteBlockResponse, error)
- func (UnimplementedRelationshipServer) DenyFriendRequest(context.Context, *DenyFriendRequestRequest) (*DenyFriendRequestResponse, error)
- func (UnimplementedRelationshipServer) GetBlockedList(context.Context, *GetBlockedListRequest) (*BlockedListResponse, error)
- func (UnimplementedRelationshipServer) GetFriendList(context.Context, *GetFriendListRequest) (*FriendListResponse, error)
- func (UnimplementedRelationshipServer) GetPendingFriendRequestList(context.Context, *GetPendingFriendRequestListRequest) (*PendingFriendListResponse, error)
- func (UnimplementedRelationshipServer) IsBlocked(context.Context, *IsBlockedRequest) (*IsBlockedResponse, error)
- func (UnimplementedRelationshipServer) MassDenyFriendRequest(context.Context, *MassDenyFriendRequestRequest) (*MassDenyFriendRequestResponse, error)
- func (UnimplementedRelationshipServer) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error)
- type UnsafeRelationshipServer
Constants ¶
const ( Relationship_AddFriend_FullMethodName = "/emortal.grpc.relationship.Relationship/AddFriend" Relationship_RemoveFriend_FullMethodName = "/emortal.grpc.relationship.Relationship/RemoveFriend" Relationship_DenyFriendRequest_FullMethodName = "/emortal.grpc.relationship.Relationship/DenyFriendRequest" Relationship_MassDenyFriendRequest_FullMethodName = "/emortal.grpc.relationship.Relationship/MassDenyFriendRequest" Relationship_GetFriendList_FullMethodName = "/emortal.grpc.relationship.Relationship/GetFriendList" Relationship_GetPendingFriendRequestList_FullMethodName = "/emortal.grpc.relationship.Relationship/GetPendingFriendRequestList" Relationship_CreateBlock_FullMethodName = "/emortal.grpc.relationship.Relationship/CreateBlock" Relationship_DeleteBlock_FullMethodName = "/emortal.grpc.relationship.Relationship/DeleteBlock" Relationship_IsBlocked_FullMethodName = "/emortal.grpc.relationship.Relationship/IsBlocked" Relationship_GetBlockedList_FullMethodName = "/emortal.grpc.relationship.Relationship/GetBlockedList" )
Variables ¶
var ( AddFriendResponse_AddFriendResult_name = map[int32]string{ 0: "REQUEST_SENT", 1: "FRIEND_ADDED", 2: "ALREADY_FRIENDS", 3: "ALREADY_REQUESTED", 4: "YOU_BLOCKED", 5: "PRIVACY_BLOCKED", } AddFriendResponse_AddFriendResult_value = map[string]int32{ "REQUEST_SENT": 0, "FRIEND_ADDED": 1, "ALREADY_FRIENDS": 2, "ALREADY_REQUESTED": 3, "YOU_BLOCKED": 4, "PRIVACY_BLOCKED": 5, } )
Enum value maps for AddFriendResponse_AddFriendResult.
var ( RemoveFriendResponse_RemoveFriendResult_name = map[int32]string{ 0: "REMOVED", 1: "NOT_FRIENDS", } RemoveFriendResponse_RemoveFriendResult_value = map[string]int32{ "REMOVED": 0, "NOT_FRIENDS": 1, } )
Enum value maps for RemoveFriendResponse_RemoveFriendResult.
var ( DenyFriendRequestResponse_DenyFriendRequestResult_name = map[int32]string{ 0: "DENIED", 1: "NO_REQUEST", } DenyFriendRequestResponse_DenyFriendRequestResult_value = map[string]int32{ "DENIED": 0, "NO_REQUEST": 1, } )
Enum value maps for DenyFriendRequestResponse_DenyFriendRequestResult.
var ( CreateBlockResponse_CreateBlockResult_name = map[int32]string{ 0: "SUCCESS", 1: "ALREADY_BLOCKED", 2: "FAILED_FRIENDS", } CreateBlockResponse_CreateBlockResult_value = map[string]int32{ "SUCCESS": 0, "ALREADY_BLOCKED": 1, "FAILED_FRIENDS": 2, } )
Enum value maps for CreateBlockResponse_CreateBlockResult.
var File_relationship_grpc_proto protoreflect.FileDescriptor
var Relationship_ServiceDesc = grpc.ServiceDesc{ ServiceName: "emortal.grpc.relationship.Relationship", HandlerType: (*RelationshipServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFriend", Handler: _Relationship_AddFriend_Handler, }, { MethodName: "RemoveFriend", Handler: _Relationship_RemoveFriend_Handler, }, { MethodName: "DenyFriendRequest", Handler: _Relationship_DenyFriendRequest_Handler, }, { MethodName: "MassDenyFriendRequest", Handler: _Relationship_MassDenyFriendRequest_Handler, }, { MethodName: "GetFriendList", Handler: _Relationship_GetFriendList_Handler, }, { MethodName: "GetPendingFriendRequestList", Handler: _Relationship_GetPendingFriendRequestList_Handler, }, { MethodName: "CreateBlock", Handler: _Relationship_CreateBlock_Handler, }, { MethodName: "DeleteBlock", Handler: _Relationship_DeleteBlock_Handler, }, { MethodName: "IsBlocked", Handler: _Relationship_IsBlocked_Handler, }, { MethodName: "GetBlockedList", Handler: _Relationship_GetBlockedList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "relationship/grpc.proto", }
Relationship_ServiceDesc is the grpc.ServiceDesc for Relationship service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterRelationshipServer ¶
func RegisterRelationshipServer(s grpc.ServiceRegistrar, srv RelationshipServer)
Types ¶
type AddFriendRequest ¶
type AddFriendRequest struct { Request *relationship.FriendRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` // contains filtered or unexported fields }
func (*AddFriendRequest) Descriptor
deprecated
func (*AddFriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendRequest.ProtoReflect.Descriptor instead.
func (*AddFriendRequest) GetRequest ¶
func (x *AddFriendRequest) GetRequest() *relationship.FriendRequest
func (*AddFriendRequest) ProtoMessage ¶
func (*AddFriendRequest) ProtoMessage()
func (*AddFriendRequest) ProtoReflect ¶
func (x *AddFriendRequest) ProtoReflect() protoreflect.Message
func (*AddFriendRequest) Reset ¶
func (x *AddFriendRequest) Reset()
func (*AddFriendRequest) String ¶
func (x *AddFriendRequest) String() string
type AddFriendResponse ¶
type AddFriendResponse struct { Result AddFriendResponse_AddFriendResult `` /* 131-byte string literal not displayed */ FriendsSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=friends_since,json=friendsSince,proto3,oneof" json:"friends_since,omitempty"` // contains filtered or unexported fields }
func (*AddFriendResponse) Descriptor
deprecated
func (*AddFriendResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendResponse.ProtoReflect.Descriptor instead.
func (*AddFriendResponse) GetFriendsSince ¶
func (x *AddFriendResponse) GetFriendsSince() *timestamppb.Timestamp
func (*AddFriendResponse) GetResult ¶
func (x *AddFriendResponse) GetResult() AddFriendResponse_AddFriendResult
func (*AddFriendResponse) ProtoMessage ¶
func (*AddFriendResponse) ProtoMessage()
func (*AddFriendResponse) ProtoReflect ¶
func (x *AddFriendResponse) ProtoReflect() protoreflect.Message
func (*AddFriendResponse) Reset ¶
func (x *AddFriendResponse) Reset()
func (*AddFriendResponse) String ¶
func (x *AddFriendResponse) String() string
type AddFriendResponse_AddFriendResult ¶
type AddFriendResponse_AddFriendResult int32
const ( AddFriendResponse_REQUEST_SENT AddFriendResponse_AddFriendResult = 0 AddFriendResponse_FRIEND_ADDED AddFriendResponse_AddFriendResult = 1 AddFriendResponse_ALREADY_FRIENDS AddFriendResponse_AddFriendResult = 2 AddFriendResponse_ALREADY_REQUESTED AddFriendResponse_AddFriendResult = 3 AddFriendResponse_YOU_BLOCKED AddFriendResponse_AddFriendResult = 4 AddFriendResponse_PRIVACY_BLOCKED AddFriendResponse_AddFriendResult = 5 )
func (AddFriendResponse_AddFriendResult) Descriptor ¶
func (AddFriendResponse_AddFriendResult) Descriptor() protoreflect.EnumDescriptor
func (AddFriendResponse_AddFriendResult) Enum ¶
func (x AddFriendResponse_AddFriendResult) Enum() *AddFriendResponse_AddFriendResult
func (AddFriendResponse_AddFriendResult) EnumDescriptor
deprecated
func (AddFriendResponse_AddFriendResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddFriendResponse_AddFriendResult.Descriptor instead.
func (AddFriendResponse_AddFriendResult) Number ¶
func (x AddFriendResponse_AddFriendResult) Number() protoreflect.EnumNumber
func (AddFriendResponse_AddFriendResult) String ¶
func (x AddFriendResponse_AddFriendResult) String() string
func (AddFriendResponse_AddFriendResult) Type ¶
func (AddFriendResponse_AddFriendResult) Type() protoreflect.EnumType
type BlockedListResponse ¶
type BlockedListResponse struct { BlockedPlayerIds []string `protobuf:"bytes,1,rep,name=blocked_player_ids,json=blockedPlayerIds,proto3" json:"blocked_player_ids,omitempty"` // contains filtered or unexported fields }
func (*BlockedListResponse) Descriptor
deprecated
func (*BlockedListResponse) Descriptor() ([]byte, []int)
Deprecated: Use BlockedListResponse.ProtoReflect.Descriptor instead.
func (*BlockedListResponse) GetBlockedPlayerIds ¶
func (x *BlockedListResponse) GetBlockedPlayerIds() []string
func (*BlockedListResponse) ProtoMessage ¶
func (*BlockedListResponse) ProtoMessage()
func (*BlockedListResponse) ProtoReflect ¶
func (x *BlockedListResponse) ProtoReflect() protoreflect.Message
func (*BlockedListResponse) Reset ¶
func (x *BlockedListResponse) Reset()
func (*BlockedListResponse) String ¶
func (x *BlockedListResponse) String() string
type CreateBlockRequest ¶
type CreateBlockRequest struct { Block *relationship.PlayerBlock `protobuf:"bytes,1,opt,name=block,proto3" json:"block,omitempty"` // contains filtered or unexported fields }
func (*CreateBlockRequest) Descriptor
deprecated
func (*CreateBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlockRequest.ProtoReflect.Descriptor instead.
func (*CreateBlockRequest) GetBlock ¶
func (x *CreateBlockRequest) GetBlock() *relationship.PlayerBlock
func (*CreateBlockRequest) ProtoMessage ¶
func (*CreateBlockRequest) ProtoMessage()
func (*CreateBlockRequest) ProtoReflect ¶
func (x *CreateBlockRequest) ProtoReflect() protoreflect.Message
func (*CreateBlockRequest) Reset ¶
func (x *CreateBlockRequest) Reset()
func (*CreateBlockRequest) String ¶
func (x *CreateBlockRequest) String() string
type CreateBlockResponse ¶
type CreateBlockResponse struct { Result CreateBlockResponse_CreateBlockResult `` /* 135-byte string literal not displayed */ // contains filtered or unexported fields }
func (*CreateBlockResponse) Descriptor
deprecated
func (*CreateBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateBlockResponse.ProtoReflect.Descriptor instead.
func (*CreateBlockResponse) GetResult ¶
func (x *CreateBlockResponse) GetResult() CreateBlockResponse_CreateBlockResult
func (*CreateBlockResponse) ProtoMessage ¶
func (*CreateBlockResponse) ProtoMessage()
func (*CreateBlockResponse) ProtoReflect ¶
func (x *CreateBlockResponse) ProtoReflect() protoreflect.Message
func (*CreateBlockResponse) Reset ¶
func (x *CreateBlockResponse) Reset()
func (*CreateBlockResponse) String ¶
func (x *CreateBlockResponse) String() string
type CreateBlockResponse_CreateBlockResult ¶
type CreateBlockResponse_CreateBlockResult int32
const ( CreateBlockResponse_SUCCESS CreateBlockResponse_CreateBlockResult = 0 CreateBlockResponse_ALREADY_BLOCKED CreateBlockResponse_CreateBlockResult = 1 // You can't block someone you're friends with CreateBlockResponse_FAILED_FRIENDS CreateBlockResponse_CreateBlockResult = 2 )
func (CreateBlockResponse_CreateBlockResult) Descriptor ¶
func (CreateBlockResponse_CreateBlockResult) Descriptor() protoreflect.EnumDescriptor
func (CreateBlockResponse_CreateBlockResult) EnumDescriptor
deprecated
func (CreateBlockResponse_CreateBlockResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use CreateBlockResponse_CreateBlockResult.Descriptor instead.
func (CreateBlockResponse_CreateBlockResult) Number ¶
func (x CreateBlockResponse_CreateBlockResult) Number() protoreflect.EnumNumber
func (CreateBlockResponse_CreateBlockResult) String ¶
func (x CreateBlockResponse_CreateBlockResult) String() string
func (CreateBlockResponse_CreateBlockResult) Type ¶
func (CreateBlockResponse_CreateBlockResult) Type() protoreflect.EnumType
type DeleteBlockRequest ¶
type DeleteBlockRequest struct { IssuerId string `protobuf:"bytes,1,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"` TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // contains filtered or unexported fields }
func (*DeleteBlockRequest) Descriptor
deprecated
func (*DeleteBlockRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBlockRequest.ProtoReflect.Descriptor instead.
func (*DeleteBlockRequest) GetIssuerId ¶
func (x *DeleteBlockRequest) GetIssuerId() string
func (*DeleteBlockRequest) GetTargetId ¶
func (x *DeleteBlockRequest) GetTargetId() string
func (*DeleteBlockRequest) ProtoMessage ¶
func (*DeleteBlockRequest) ProtoMessage()
func (*DeleteBlockRequest) ProtoReflect ¶
func (x *DeleteBlockRequest) ProtoReflect() protoreflect.Message
func (*DeleteBlockRequest) Reset ¶
func (x *DeleteBlockRequest) Reset()
func (*DeleteBlockRequest) String ¶
func (x *DeleteBlockRequest) String() string
type DeleteBlockResponse ¶
type DeleteBlockResponse struct {
// contains filtered or unexported fields
}
func (*DeleteBlockResponse) Descriptor
deprecated
func (*DeleteBlockResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBlockResponse.ProtoReflect.Descriptor instead.
func (*DeleteBlockResponse) ProtoMessage ¶
func (*DeleteBlockResponse) ProtoMessage()
func (*DeleteBlockResponse) ProtoReflect ¶
func (x *DeleteBlockResponse) ProtoReflect() protoreflect.Message
func (*DeleteBlockResponse) Reset ¶
func (x *DeleteBlockResponse) Reset()
func (*DeleteBlockResponse) String ¶
func (x *DeleteBlockResponse) String() string
type DenyFriendRequestRequest ¶
type DenyFriendRequestRequest struct { IssuerId string `protobuf:"bytes,1,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"` TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // contains filtered or unexported fields }
func (*DenyFriendRequestRequest) Descriptor
deprecated
func (*DenyFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use DenyFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*DenyFriendRequestRequest) GetIssuerId ¶
func (x *DenyFriendRequestRequest) GetIssuerId() string
func (*DenyFriendRequestRequest) GetTargetId ¶
func (x *DenyFriendRequestRequest) GetTargetId() string
func (*DenyFriendRequestRequest) ProtoMessage ¶
func (*DenyFriendRequestRequest) ProtoMessage()
func (*DenyFriendRequestRequest) ProtoReflect ¶
func (x *DenyFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*DenyFriendRequestRequest) Reset ¶
func (x *DenyFriendRequestRequest) Reset()
func (*DenyFriendRequestRequest) String ¶
func (x *DenyFriendRequestRequest) String() string
type DenyFriendRequestResponse ¶
type DenyFriendRequestResponse struct { Result DenyFriendRequestResponse_DenyFriendRequestResult `` /* 147-byte string literal not displayed */ // contains filtered or unexported fields }
func (*DenyFriendRequestResponse) Descriptor
deprecated
func (*DenyFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use DenyFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*DenyFriendRequestResponse) GetResult ¶
func (x *DenyFriendRequestResponse) GetResult() DenyFriendRequestResponse_DenyFriendRequestResult
func (*DenyFriendRequestResponse) ProtoMessage ¶
func (*DenyFriendRequestResponse) ProtoMessage()
func (*DenyFriendRequestResponse) ProtoReflect ¶
func (x *DenyFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*DenyFriendRequestResponse) Reset ¶
func (x *DenyFriendRequestResponse) Reset()
func (*DenyFriendRequestResponse) String ¶
func (x *DenyFriendRequestResponse) String() string
type DenyFriendRequestResponse_DenyFriendRequestResult ¶
type DenyFriendRequestResponse_DenyFriendRequestResult int32
const ( DenyFriendRequestResponse_DENIED DenyFriendRequestResponse_DenyFriendRequestResult = 0 DenyFriendRequestResponse_NO_REQUEST DenyFriendRequestResponse_DenyFriendRequestResult = 1 )
func (DenyFriendRequestResponse_DenyFriendRequestResult) Descriptor ¶
func (DenyFriendRequestResponse_DenyFriendRequestResult) Descriptor() protoreflect.EnumDescriptor
func (DenyFriendRequestResponse_DenyFriendRequestResult) EnumDescriptor
deprecated
func (DenyFriendRequestResponse_DenyFriendRequestResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use DenyFriendRequestResponse_DenyFriendRequestResult.Descriptor instead.
func (DenyFriendRequestResponse_DenyFriendRequestResult) Number ¶
func (x DenyFriendRequestResponse_DenyFriendRequestResult) Number() protoreflect.EnumNumber
func (DenyFriendRequestResponse_DenyFriendRequestResult) String ¶
func (x DenyFriendRequestResponse_DenyFriendRequestResult) String() string
type FriendListResponse ¶
type FriendListResponse struct { Friends []*FriendListResponse_FriendListPlayer `protobuf:"bytes,1,rep,name=friends,proto3" json:"friends,omitempty"` // contains filtered or unexported fields }
func (*FriendListResponse) Descriptor
deprecated
func (*FriendListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FriendListResponse.ProtoReflect.Descriptor instead.
func (*FriendListResponse) GetFriends ¶
func (x *FriendListResponse) GetFriends() []*FriendListResponse_FriendListPlayer
func (*FriendListResponse) ProtoMessage ¶
func (*FriendListResponse) ProtoMessage()
func (*FriendListResponse) ProtoReflect ¶
func (x *FriendListResponse) ProtoReflect() protoreflect.Message
func (*FriendListResponse) Reset ¶
func (x *FriendListResponse) Reset()
func (*FriendListResponse) String ¶
func (x *FriendListResponse) String() string
type FriendListResponse_FriendListPlayer ¶
type FriendListResponse_FriendListPlayer struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` FriendsSince *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=friends_since,json=friendsSince,proto3" json:"friends_since,omitempty"` // contains filtered or unexported fields }
func (*FriendListResponse_FriendListPlayer) Descriptor
deprecated
func (*FriendListResponse_FriendListPlayer) Descriptor() ([]byte, []int)
Deprecated: Use FriendListResponse_FriendListPlayer.ProtoReflect.Descriptor instead.
func (*FriendListResponse_FriendListPlayer) GetFriendsSince ¶
func (x *FriendListResponse_FriendListPlayer) GetFriendsSince() *timestamppb.Timestamp
func (*FriendListResponse_FriendListPlayer) GetId ¶
func (x *FriendListResponse_FriendListPlayer) GetId() string
func (*FriendListResponse_FriendListPlayer) ProtoMessage ¶
func (*FriendListResponse_FriendListPlayer) ProtoMessage()
func (*FriendListResponse_FriendListPlayer) ProtoReflect ¶
func (x *FriendListResponse_FriendListPlayer) ProtoReflect() protoreflect.Message
func (*FriendListResponse_FriendListPlayer) Reset ¶
func (x *FriendListResponse_FriendListPlayer) Reset()
func (*FriendListResponse_FriendListPlayer) String ¶
func (x *FriendListResponse_FriendListPlayer) String() string
type GetBlockedListRequest ¶
type GetBlockedListRequest struct { PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` // contains filtered or unexported fields }
func (*GetBlockedListRequest) Descriptor
deprecated
func (*GetBlockedListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBlockedListRequest.ProtoReflect.Descriptor instead.
func (*GetBlockedListRequest) GetPlayerId ¶
func (x *GetBlockedListRequest) GetPlayerId() string
func (*GetBlockedListRequest) ProtoMessage ¶
func (*GetBlockedListRequest) ProtoMessage()
func (*GetBlockedListRequest) ProtoReflect ¶
func (x *GetBlockedListRequest) ProtoReflect() protoreflect.Message
func (*GetBlockedListRequest) Reset ¶
func (x *GetBlockedListRequest) Reset()
func (*GetBlockedListRequest) String ¶
func (x *GetBlockedListRequest) String() string
type GetFriendListRequest ¶
type GetFriendListRequest struct { PlayerId string `protobuf:"bytes,1,opt,name=player_id,json=playerId,proto3" json:"player_id,omitempty"` // contains filtered or unexported fields }
func (*GetFriendListRequest) Descriptor
deprecated
func (*GetFriendListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendListRequest.ProtoReflect.Descriptor instead.
func (*GetFriendListRequest) GetPlayerId ¶
func (x *GetFriendListRequest) GetPlayerId() string
func (*GetFriendListRequest) ProtoMessage ¶
func (*GetFriendListRequest) ProtoMessage()
func (*GetFriendListRequest) ProtoReflect ¶
func (x *GetFriendListRequest) ProtoReflect() protoreflect.Message
func (*GetFriendListRequest) Reset ¶
func (x *GetFriendListRequest) Reset()
func (*GetFriendListRequest) String ¶
func (x *GetFriendListRequest) String() string
type GetPendingFriendRequestListRequest ¶
type GetPendingFriendRequestListRequest struct { IssuerId string `protobuf:"bytes,1,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"` Incoming bool `protobuf:"varint,2,opt,name=incoming,proto3" json:"incoming,omitempty"` // contains filtered or unexported fields }
func (*GetPendingFriendRequestListRequest) Descriptor
deprecated
func (*GetPendingFriendRequestListRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPendingFriendRequestListRequest.ProtoReflect.Descriptor instead.
func (*GetPendingFriendRequestListRequest) GetIncoming ¶
func (x *GetPendingFriendRequestListRequest) GetIncoming() bool
func (*GetPendingFriendRequestListRequest) GetIssuerId ¶
func (x *GetPendingFriendRequestListRequest) GetIssuerId() string
func (*GetPendingFriendRequestListRequest) ProtoMessage ¶
func (*GetPendingFriendRequestListRequest) ProtoMessage()
func (*GetPendingFriendRequestListRequest) ProtoReflect ¶
func (x *GetPendingFriendRequestListRequest) ProtoReflect() protoreflect.Message
func (*GetPendingFriendRequestListRequest) Reset ¶
func (x *GetPendingFriendRequestListRequest) Reset()
func (*GetPendingFriendRequestListRequest) String ¶
func (x *GetPendingFriendRequestListRequest) String() string
type IsBlockedRequest ¶
type IsBlockedRequest struct { IssuerId string `protobuf:"bytes,1,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"` TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // contains filtered or unexported fields }
func (*IsBlockedRequest) Descriptor
deprecated
func (*IsBlockedRequest) Descriptor() ([]byte, []int)
Deprecated: Use IsBlockedRequest.ProtoReflect.Descriptor instead.
func (*IsBlockedRequest) GetIssuerId ¶
func (x *IsBlockedRequest) GetIssuerId() string
func (*IsBlockedRequest) GetTargetId ¶
func (x *IsBlockedRequest) GetTargetId() string
func (*IsBlockedRequest) ProtoMessage ¶
func (*IsBlockedRequest) ProtoMessage()
func (*IsBlockedRequest) ProtoReflect ¶
func (x *IsBlockedRequest) ProtoReflect() protoreflect.Message
func (*IsBlockedRequest) Reset ¶
func (x *IsBlockedRequest) Reset()
func (*IsBlockedRequest) String ¶
func (x *IsBlockedRequest) String() string
type IsBlockedResponse ¶
type IsBlockedResponse struct { // block is not present if not blocked, otherwise it is present // If both players have blocked each other, the issuer's block is prioritised. Block *relationship.PlayerBlock `protobuf:"bytes,1,opt,name=block,proto3,oneof" json:"block,omitempty"` // contains filtered or unexported fields }
func (*IsBlockedResponse) Descriptor
deprecated
func (*IsBlockedResponse) Descriptor() ([]byte, []int)
Deprecated: Use IsBlockedResponse.ProtoReflect.Descriptor instead.
func (*IsBlockedResponse) GetBlock ¶
func (x *IsBlockedResponse) GetBlock() *relationship.PlayerBlock
func (*IsBlockedResponse) ProtoMessage ¶
func (*IsBlockedResponse) ProtoMessage()
func (*IsBlockedResponse) ProtoReflect ¶
func (x *IsBlockedResponse) ProtoReflect() protoreflect.Message
func (*IsBlockedResponse) Reset ¶
func (x *IsBlockedResponse) Reset()
func (*IsBlockedResponse) String ¶
func (x *IsBlockedResponse) String() string
type MassDenyFriendRequestRequest ¶
type MassDenyFriendRequestRequest struct { IssuerId string `protobuf:"bytes,1,opt,name=issuer_id,json=issuerId,proto3" json:"issuer_id,omitempty"` // incoming, will deny all incoming requests // otherwise, will deny all outgoing requests Incoming bool `protobuf:"varint,2,opt,name=incoming,proto3" json:"incoming,omitempty"` // contains filtered or unexported fields }
func (*MassDenyFriendRequestRequest) Descriptor
deprecated
func (*MassDenyFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use MassDenyFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*MassDenyFriendRequestRequest) GetIncoming ¶
func (x *MassDenyFriendRequestRequest) GetIncoming() bool
func (*MassDenyFriendRequestRequest) GetIssuerId ¶
func (x *MassDenyFriendRequestRequest) GetIssuerId() string
func (*MassDenyFriendRequestRequest) ProtoMessage ¶
func (*MassDenyFriendRequestRequest) ProtoMessage()
func (*MassDenyFriendRequestRequest) ProtoReflect ¶
func (x *MassDenyFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*MassDenyFriendRequestRequest) Reset ¶
func (x *MassDenyFriendRequestRequest) Reset()
func (*MassDenyFriendRequestRequest) String ¶
func (x *MassDenyFriendRequestRequest) String() string
type MassDenyFriendRequestResponse ¶
type MassDenyFriendRequestResponse struct { RequestsDenied uint32 `protobuf:"varint,1,opt,name=requests_denied,json=requestsDenied,proto3" json:"requests_denied,omitempty"` // contains filtered or unexported fields }
func (*MassDenyFriendRequestResponse) Descriptor
deprecated
func (*MassDenyFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use MassDenyFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*MassDenyFriendRequestResponse) GetRequestsDenied ¶
func (x *MassDenyFriendRequestResponse) GetRequestsDenied() uint32
func (*MassDenyFriendRequestResponse) ProtoMessage ¶
func (*MassDenyFriendRequestResponse) ProtoMessage()
func (*MassDenyFriendRequestResponse) ProtoReflect ¶
func (x *MassDenyFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*MassDenyFriendRequestResponse) Reset ¶
func (x *MassDenyFriendRequestResponse) Reset()
func (*MassDenyFriendRequestResponse) String ¶
func (x *MassDenyFriendRequestResponse) String() string
type PendingFriendListResponse ¶
type PendingFriendListResponse struct { Requests []*PendingFriendListResponse_RequestedFriendPlayer `protobuf:"bytes,1,rep,name=requests,proto3" json:"requests,omitempty"` // contains filtered or unexported fields }
func (*PendingFriendListResponse) Descriptor
deprecated
func (*PendingFriendListResponse) Descriptor() ([]byte, []int)
Deprecated: Use PendingFriendListResponse.ProtoReflect.Descriptor instead.
func (*PendingFriendListResponse) GetRequests ¶
func (x *PendingFriendListResponse) GetRequests() []*PendingFriendListResponse_RequestedFriendPlayer
func (*PendingFriendListResponse) ProtoMessage ¶
func (*PendingFriendListResponse) ProtoMessage()
func (*PendingFriendListResponse) ProtoReflect ¶
func (x *PendingFriendListResponse) ProtoReflect() protoreflect.Message
func (*PendingFriendListResponse) Reset ¶
func (x *PendingFriendListResponse) Reset()
func (*PendingFriendListResponse) String ¶
func (x *PendingFriendListResponse) String() string
type PendingFriendListResponse_RequestedFriendPlayer ¶
type PendingFriendListResponse_RequestedFriendPlayer struct { RequesterId string `protobuf:"bytes,1,opt,name=requester_id,json=requesterId,proto3" json:"requester_id,omitempty"` TargetId string `protobuf:"bytes,2,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` RequestTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` // contains filtered or unexported fields }
func (*PendingFriendListResponse_RequestedFriendPlayer) Descriptor
deprecated
func (*PendingFriendListResponse_RequestedFriendPlayer) Descriptor() ([]byte, []int)
Deprecated: Use PendingFriendListResponse_RequestedFriendPlayer.ProtoReflect.Descriptor instead.
func (*PendingFriendListResponse_RequestedFriendPlayer) GetRequestTime ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) GetRequestTime() *timestamppb.Timestamp
func (*PendingFriendListResponse_RequestedFriendPlayer) GetRequesterId ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) GetRequesterId() string
func (*PendingFriendListResponse_RequestedFriendPlayer) GetTargetId ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) GetTargetId() string
func (*PendingFriendListResponse_RequestedFriendPlayer) ProtoMessage ¶
func (*PendingFriendListResponse_RequestedFriendPlayer) ProtoMessage()
func (*PendingFriendListResponse_RequestedFriendPlayer) ProtoReflect ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) ProtoReflect() protoreflect.Message
func (*PendingFriendListResponse_RequestedFriendPlayer) Reset ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) Reset()
func (*PendingFriendListResponse_RequestedFriendPlayer) String ¶
func (x *PendingFriendListResponse_RequestedFriendPlayer) String() string
type RelationshipClient ¶
type RelationshipClient interface { AddFriend(ctx context.Context, in *AddFriendRequest, opts ...grpc.CallOption) (*AddFriendResponse, error) RemoveFriend(ctx context.Context, in *RemoveFriendRequest, opts ...grpc.CallOption) (*RemoveFriendResponse, error) DenyFriendRequest(ctx context.Context, in *DenyFriendRequestRequest, opts ...grpc.CallOption) (*DenyFriendRequestResponse, error) MassDenyFriendRequest(ctx context.Context, in *MassDenyFriendRequestRequest, opts ...grpc.CallOption) (*MassDenyFriendRequestResponse, error) GetFriendList(ctx context.Context, in *GetFriendListRequest, opts ...grpc.CallOption) (*FriendListResponse, error) GetPendingFriendRequestList(ctx context.Context, in *GetPendingFriendRequestListRequest, opts ...grpc.CallOption) (*PendingFriendListResponse, error) CreateBlock(ctx context.Context, in *CreateBlockRequest, opts ...grpc.CallOption) (*CreateBlockResponse, error) DeleteBlock(ctx context.Context, in *DeleteBlockRequest, opts ...grpc.CallOption) (*DeleteBlockResponse, error) IsBlocked(ctx context.Context, in *IsBlockedRequest, opts ...grpc.CallOption) (*IsBlockedResponse, error) GetBlockedList(ctx context.Context, in *GetBlockedListRequest, opts ...grpc.CallOption) (*BlockedListResponse, error) }
RelationshipClient is the client API for Relationship service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewRelationshipClient ¶
func NewRelationshipClient(cc grpc.ClientConnInterface) RelationshipClient
type RelationshipServer ¶
type RelationshipServer interface { AddFriend(context.Context, *AddFriendRequest) (*AddFriendResponse, error) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error) DenyFriendRequest(context.Context, *DenyFriendRequestRequest) (*DenyFriendRequestResponse, error) MassDenyFriendRequest(context.Context, *MassDenyFriendRequestRequest) (*MassDenyFriendRequestResponse, error) GetFriendList(context.Context, *GetFriendListRequest) (*FriendListResponse, error) GetPendingFriendRequestList(context.Context, *GetPendingFriendRequestListRequest) (*PendingFriendListResponse, error) CreateBlock(context.Context, *CreateBlockRequest) (*CreateBlockResponse, error) DeleteBlock(context.Context, *DeleteBlockRequest) (*DeleteBlockResponse, error) IsBlocked(context.Context, *IsBlockedRequest) (*IsBlockedResponse, error) GetBlockedList(context.Context, *GetBlockedListRequest) (*BlockedListResponse, error) // contains filtered or unexported methods }
RelationshipServer is the server API for Relationship service. All implementations must embed UnimplementedRelationshipServer for forward compatibility.
type RemoveFriendRequest ¶
type RemoveFriendRequest struct { SenderId string `protobuf:"bytes,1,opt,name=sender_id,json=senderId,proto3" json:"sender_id,omitempty"` SenderUsername string `protobuf:"bytes,2,opt,name=sender_username,json=senderUsername,proto3" json:"sender_username,omitempty"` TargetId string `protobuf:"bytes,3,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveFriendRequest) Descriptor
deprecated
func (*RemoveFriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFriendRequest.ProtoReflect.Descriptor instead.
func (*RemoveFriendRequest) GetSenderId ¶
func (x *RemoveFriendRequest) GetSenderId() string
func (*RemoveFriendRequest) GetSenderUsername ¶
func (x *RemoveFriendRequest) GetSenderUsername() string
func (*RemoveFriendRequest) GetTargetId ¶
func (x *RemoveFriendRequest) GetTargetId() string
func (*RemoveFriendRequest) ProtoMessage ¶
func (*RemoveFriendRequest) ProtoMessage()
func (*RemoveFriendRequest) ProtoReflect ¶
func (x *RemoveFriendRequest) ProtoReflect() protoreflect.Message
func (*RemoveFriendRequest) Reset ¶
func (x *RemoveFriendRequest) Reset()
func (*RemoveFriendRequest) String ¶
func (x *RemoveFriendRequest) String() string
type RemoveFriendResponse ¶
type RemoveFriendResponse struct { Result RemoveFriendResponse_RemoveFriendResult `` /* 137-byte string literal not displayed */ // contains filtered or unexported fields }
func (*RemoveFriendResponse) Descriptor
deprecated
func (*RemoveFriendResponse) Descriptor() ([]byte, []int)
Deprecated: Use RemoveFriendResponse.ProtoReflect.Descriptor instead.
func (*RemoveFriendResponse) GetResult ¶
func (x *RemoveFriendResponse) GetResult() RemoveFriendResponse_RemoveFriendResult
func (*RemoveFriendResponse) ProtoMessage ¶
func (*RemoveFriendResponse) ProtoMessage()
func (*RemoveFriendResponse) ProtoReflect ¶
func (x *RemoveFriendResponse) ProtoReflect() protoreflect.Message
func (*RemoveFriendResponse) Reset ¶
func (x *RemoveFriendResponse) Reset()
func (*RemoveFriendResponse) String ¶
func (x *RemoveFriendResponse) String() string
type RemoveFriendResponse_RemoveFriendResult ¶
type RemoveFriendResponse_RemoveFriendResult int32
const ( RemoveFriendResponse_REMOVED RemoveFriendResponse_RemoveFriendResult = 0 RemoveFriendResponse_NOT_FRIENDS RemoveFriendResponse_RemoveFriendResult = 1 )
func (RemoveFriendResponse_RemoveFriendResult) Descriptor ¶
func (RemoveFriendResponse_RemoveFriendResult) Descriptor() protoreflect.EnumDescriptor
func (RemoveFriendResponse_RemoveFriendResult) EnumDescriptor
deprecated
func (RemoveFriendResponse_RemoveFriendResult) EnumDescriptor() ([]byte, []int)
Deprecated: Use RemoveFriendResponse_RemoveFriendResult.Descriptor instead.
func (RemoveFriendResponse_RemoveFriendResult) Number ¶
func (x RemoveFriendResponse_RemoveFriendResult) Number() protoreflect.EnumNumber
func (RemoveFriendResponse_RemoveFriendResult) String ¶
func (x RemoveFriendResponse_RemoveFriendResult) String() string
func (RemoveFriendResponse_RemoveFriendResult) Type ¶
func (RemoveFriendResponse_RemoveFriendResult) Type() protoreflect.EnumType
type UnimplementedRelationshipServer ¶
type UnimplementedRelationshipServer struct{}
UnimplementedRelationshipServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedRelationshipServer) AddFriend ¶
func (UnimplementedRelationshipServer) AddFriend(context.Context, *AddFriendRequest) (*AddFriendResponse, error)
func (UnimplementedRelationshipServer) CreateBlock ¶
func (UnimplementedRelationshipServer) CreateBlock(context.Context, *CreateBlockRequest) (*CreateBlockResponse, error)
func (UnimplementedRelationshipServer) DeleteBlock ¶
func (UnimplementedRelationshipServer) DeleteBlock(context.Context, *DeleteBlockRequest) (*DeleteBlockResponse, error)
func (UnimplementedRelationshipServer) DenyFriendRequest ¶
func (UnimplementedRelationshipServer) DenyFriendRequest(context.Context, *DenyFriendRequestRequest) (*DenyFriendRequestResponse, error)
func (UnimplementedRelationshipServer) GetBlockedList ¶
func (UnimplementedRelationshipServer) GetBlockedList(context.Context, *GetBlockedListRequest) (*BlockedListResponse, error)
func (UnimplementedRelationshipServer) GetFriendList ¶
func (UnimplementedRelationshipServer) GetFriendList(context.Context, *GetFriendListRequest) (*FriendListResponse, error)
func (UnimplementedRelationshipServer) GetPendingFriendRequestList ¶
func (UnimplementedRelationshipServer) GetPendingFriendRequestList(context.Context, *GetPendingFriendRequestListRequest) (*PendingFriendListResponse, error)
func (UnimplementedRelationshipServer) IsBlocked ¶
func (UnimplementedRelationshipServer) IsBlocked(context.Context, *IsBlockedRequest) (*IsBlockedResponse, error)
func (UnimplementedRelationshipServer) MassDenyFriendRequest ¶
func (UnimplementedRelationshipServer) MassDenyFriendRequest(context.Context, *MassDenyFriendRequestRequest) (*MassDenyFriendRequestResponse, error)
func (UnimplementedRelationshipServer) RemoveFriend ¶
func (UnimplementedRelationshipServer) RemoveFriend(context.Context, *RemoveFriendRequest) (*RemoveFriendResponse, error)
type UnsafeRelationshipServer ¶
type UnsafeRelationshipServer interface {
// contains filtered or unexported methods
}
UnsafeRelationshipServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RelationshipServer will result in compilation errors.