Documentation ¶
Index ¶
- Variables
- func RegisterFriendServiceServer(s grpc.ServiceRegistrar, srv FriendServiceServer)
- type AddFriendResponse
- func (*AddFriendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendResponse) GetError() *errors.Error
- func (x *AddFriendResponse) GetResult() *AddFriendResult
- func (*AddFriendResponse) ProtoMessage()
- func (x *AddFriendResponse) ProtoReflect() protoreflect.Message
- func (x *AddFriendResponse) Reset()
- func (x *AddFriendResponse) String() string
- func (m *AddFriendResponse) Validate() error
- func (m *AddFriendResponse) ValidateAll() error
- type AddFriendResponseMultiError
- type AddFriendResponseValidationError
- func (e AddFriendResponseValidationError) Cause() error
- func (e AddFriendResponseValidationError) Error() string
- func (e AddFriendResponseValidationError) ErrorName() string
- func (e AddFriendResponseValidationError) Field() string
- func (e AddFriendResponseValidationError) Key() bool
- func (e AddFriendResponseValidationError) Reason() string
- type AddFriendResult
- func (*AddFriendResult) Descriptor() ([]byte, []int)deprecated
- func (x *AddFriendResult) GetFriendRequest() *FriendRequest
- func (x *AddFriendResult) GetStatus() AddFriendStatus
- func (*AddFriendResult) ProtoMessage()
- func (x *AddFriendResult) ProtoReflect() protoreflect.Message
- func (x *AddFriendResult) Reset()
- func (x *AddFriendResult) String() string
- func (m *AddFriendResult) Validate() error
- func (m *AddFriendResult) ValidateAll() error
- type AddFriendResultMultiError
- type AddFriendResultValidationError
- func (e AddFriendResultValidationError) Cause() error
- func (e AddFriendResultValidationError) Error() string
- func (e AddFriendResultValidationError) ErrorName() string
- func (e AddFriendResultValidationError) Field() string
- func (e AddFriendResultValidationError) Key() bool
- func (e AddFriendResultValidationError) Reason() string
- type AddFriendStatus
- func (AddFriendStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AddFriendStatus) Enum() *AddFriendStatus
- func (AddFriendStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AddFriendStatus) Number() protoreflect.EnumNumber
- func (x AddFriendStatus) String() string
- func (AddFriendStatus) Type() protoreflect.EnumType
- type BaseFriendRequest
- func (*BaseFriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BaseFriendRequest) GetFriendUid() int64
- func (x *BaseFriendRequest) GetUid() int64
- func (*BaseFriendRequest) ProtoMessage()
- func (x *BaseFriendRequest) ProtoReflect() protoreflect.Message
- func (x *BaseFriendRequest) Reset()
- func (x *BaseFriendRequest) String() string
- func (m *BaseFriendRequest) Validate() error
- func (m *BaseFriendRequest) ValidateAll() error
- type BaseFriendRequestMultiError
- type BaseFriendRequestValidationError
- func (e BaseFriendRequestValidationError) Cause() error
- func (e BaseFriendRequestValidationError) Error() string
- func (e BaseFriendRequestValidationError) ErrorName() string
- func (e BaseFriendRequestValidationError) Field() string
- func (e BaseFriendRequestValidationError) Key() bool
- func (e BaseFriendRequestValidationError) Reason() string
- type CheckSendMessageAbilityRequest
- func (*CheckSendMessageAbilityRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckSendMessageAbilityRequest) GetFromUid() int64
- func (x *CheckSendMessageAbilityRequest) GetSessionType() v1.SessionType
- func (x *CheckSendMessageAbilityRequest) GetToUid() int64
- func (*CheckSendMessageAbilityRequest) ProtoMessage()
- func (x *CheckSendMessageAbilityRequest) ProtoReflect() protoreflect.Message
- func (x *CheckSendMessageAbilityRequest) Reset()
- func (x *CheckSendMessageAbilityRequest) String() string
- func (m *CheckSendMessageAbilityRequest) Validate() error
- func (m *CheckSendMessageAbilityRequest) ValidateAll() error
- type CheckSendMessageAbilityRequestMultiError
- type CheckSendMessageAbilityRequestValidationError
- func (e CheckSendMessageAbilityRequestValidationError) Cause() error
- func (e CheckSendMessageAbilityRequestValidationError) Error() string
- func (e CheckSendMessageAbilityRequestValidationError) ErrorName() string
- func (e CheckSendMessageAbilityRequestValidationError) Field() string
- func (e CheckSendMessageAbilityRequestValidationError) Key() bool
- func (e CheckSendMessageAbilityRequestValidationError) Reason() string
- type CheckSendMessageAbilityResponse
- func (*CheckSendMessageAbilityResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckSendMessageAbilityResponse) GetError() *errors.Error
- func (x *CheckSendMessageAbilityResponse) GetSessionId() string
- func (*CheckSendMessageAbilityResponse) ProtoMessage()
- func (x *CheckSendMessageAbilityResponse) ProtoReflect() protoreflect.Message
- func (x *CheckSendMessageAbilityResponse) Reset()
- func (x *CheckSendMessageAbilityResponse) String() string
- func (m *CheckSendMessageAbilityResponse) Validate() error
- func (m *CheckSendMessageAbilityResponse) ValidateAll() error
- type CheckSendMessageAbilityResponseMultiError
- type CheckSendMessageAbilityResponseValidationError
- func (e CheckSendMessageAbilityResponseValidationError) Cause() error
- func (e CheckSendMessageAbilityResponseValidationError) Error() string
- func (e CheckSendMessageAbilityResponseValidationError) ErrorName() string
- func (e CheckSendMessageAbilityResponseValidationError) Field() string
- func (e CheckSendMessageAbilityResponseValidationError) Key() bool
- func (e CheckSendMessageAbilityResponseValidationError) Reason() string
- type ConfirmFriendRequestAction
- func (ConfirmFriendRequestAction) Descriptor() protoreflect.EnumDescriptor
- func (x ConfirmFriendRequestAction) Enum() *ConfirmFriendRequestAction
- func (ConfirmFriendRequestAction) EnumDescriptor() ([]byte, []int)deprecated
- func (x ConfirmFriendRequestAction) Number() protoreflect.EnumNumber
- func (x ConfirmFriendRequestAction) String() string
- func (ConfirmFriendRequestAction) Type() protoreflect.EnumType
- type ConfirmFriendRequestRequest
- func (*ConfirmFriendRequestRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfirmFriendRequestRequest) GetAction() ConfirmFriendRequestAction
- func (x *ConfirmFriendRequestRequest) GetFriendRequestId() uint64
- func (x *ConfirmFriendRequestRequest) GetUid() int64
- func (*ConfirmFriendRequestRequest) ProtoMessage()
- func (x *ConfirmFriendRequestRequest) ProtoReflect() protoreflect.Message
- func (x *ConfirmFriendRequestRequest) Reset()
- func (x *ConfirmFriendRequestRequest) String() string
- func (m *ConfirmFriendRequestRequest) Validate() error
- func (m *ConfirmFriendRequestRequest) ValidateAll() error
- type ConfirmFriendRequestRequestMultiError
- type ConfirmFriendRequestRequestValidationError
- func (e ConfirmFriendRequestRequestValidationError) Cause() error
- func (e ConfirmFriendRequestRequestValidationError) Error() string
- func (e ConfirmFriendRequestRequestValidationError) ErrorName() string
- func (e ConfirmFriendRequestRequestValidationError) Field() string
- func (e ConfirmFriendRequestRequestValidationError) Key() bool
- func (e ConfirmFriendRequestRequestValidationError) Reason() string
- type Friend
- func (*Friend) Descriptor() ([]byte, []int)deprecated
- func (x *Friend) GetCreatedAt() int64
- func (x *Friend) GetFriendAvatar() string
- func (x *Friend) GetFriendName() string
- func (x *Friend) GetFriendUid() int64
- func (x *Friend) GetStatus() FriendStatus
- func (x *Friend) GetUid() int64
- func (x *Friend) GetUpdatedAt() int64
- func (*Friend) ProtoMessage()
- func (x *Friend) ProtoReflect() protoreflect.Message
- func (x *Friend) Reset()
- func (x *Friend) String() string
- func (m *Friend) Validate() error
- func (m *Friend) ValidateAll() error
- type FriendMultiError
- type FriendRequest
- func (*FriendRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FriendRequest) GetCreatedAt() int64
- func (x *FriendRequest) GetFriendAvatar() string
- func (x *FriendRequest) GetFriendName() string
- func (x *FriendRequest) GetFriendUid() int64
- func (x *FriendRequest) GetId() uint64
- func (x *FriendRequest) GetStatus() FriendRequestStatus
- func (x *FriendRequest) GetUid() int64
- func (x *FriendRequest) GetUpdatedAt() int64
- func (*FriendRequest) ProtoMessage()
- func (x *FriendRequest) ProtoReflect() protoreflect.Message
- func (x *FriendRequest) Reset()
- func (x *FriendRequest) String() string
- func (m *FriendRequest) Validate() error
- func (m *FriendRequest) ValidateAll() error
- type FriendRequestMultiError
- type FriendRequestStatus
- func (FriendRequestStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FriendRequestStatus) Enum() *FriendRequestStatus
- func (FriendRequestStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendRequestStatus) Number() protoreflect.EnumNumber
- func (x FriendRequestStatus) String() string
- func (FriendRequestStatus) Type() protoreflect.EnumType
- type FriendRequestValidationError
- func (e FriendRequestValidationError) Cause() error
- func (e FriendRequestValidationError) Error() string
- func (e FriendRequestValidationError) ErrorName() string
- func (e FriendRequestValidationError) Field() string
- func (e FriendRequestValidationError) Key() bool
- func (e FriendRequestValidationError) Reason() string
- type FriendServiceClient
- type FriendServiceServer
- type FriendStatus
- func (x FriendStatus) CanUpdateStatus(targetStatus FriendStatus) bool
- func (FriendStatus) Descriptor() protoreflect.EnumDescriptor
- func (x FriendStatus) Enum() *FriendStatus
- func (FriendStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x FriendStatus) Number() protoreflect.EnumNumber
- func (x FriendStatus) String() string
- func (FriendStatus) Type() protoreflect.EnumType
- type FriendValidationError
- type GetFriendRequestResponse
- func (*GetFriendRequestResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendRequestResponse) GetError() *errors.Error
- func (x *GetFriendRequestResponse) GetFriendRequest() *FriendRequest
- func (*GetFriendRequestResponse) ProtoMessage()
- func (x *GetFriendRequestResponse) ProtoReflect() protoreflect.Message
- func (x *GetFriendRequestResponse) Reset()
- func (x *GetFriendRequestResponse) String() string
- func (m *GetFriendRequestResponse) Validate() error
- func (m *GetFriendRequestResponse) ValidateAll() error
- type GetFriendRequestResponseMultiError
- type GetFriendRequestResponseValidationError
- func (e GetFriendRequestResponseValidationError) Cause() error
- func (e GetFriendRequestResponseValidationError) Error() string
- func (e GetFriendRequestResponseValidationError) ErrorName() string
- func (e GetFriendRequestResponseValidationError) Field() string
- func (e GetFriendRequestResponseValidationError) Key() bool
- func (e GetFriendRequestResponseValidationError) Reason() string
- type GetFriendResponse
- func (*GetFriendResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFriendResponse) GetError() *errors.Error
- func (x *GetFriendResponse) GetFriend() *Friend
- func (*GetFriendResponse) ProtoMessage()
- func (x *GetFriendResponse) ProtoReflect() protoreflect.Message
- func (x *GetFriendResponse) Reset()
- func (x *GetFriendResponse) String() string
- func (m *GetFriendResponse) Validate() error
- func (m *GetFriendResponse) ValidateAll() error
- type GetFriendResponseMultiError
- type GetFriendResponseValidationError
- func (e GetFriendResponseValidationError) Cause() error
- func (e GetFriendResponseValidationError) Error() string
- func (e GetFriendResponseValidationError) ErrorName() string
- func (e GetFriendResponseValidationError) Field() string
- func (e GetFriendResponseValidationError) Key() bool
- func (e GetFriendResponseValidationError) Reason() string
- type QueryFriendListRequest
- func (*QueryFriendListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFriendListRequest) GetUid() int64
- func (*QueryFriendListRequest) ProtoMessage()
- func (x *QueryFriendListRequest) ProtoReflect() protoreflect.Message
- func (x *QueryFriendListRequest) Reset()
- func (x *QueryFriendListRequest) String() string
- func (m *QueryFriendListRequest) Validate() error
- func (m *QueryFriendListRequest) ValidateAll() error
- type QueryFriendListRequestMultiError
- type QueryFriendListRequestValidationError
- func (e QueryFriendListRequestValidationError) Cause() error
- func (e QueryFriendListRequestValidationError) Error() string
- func (e QueryFriendListRequestValidationError) ErrorName() string
- func (e QueryFriendListRequestValidationError) Field() string
- func (e QueryFriendListRequestValidationError) Key() bool
- func (e QueryFriendListRequestValidationError) Reason() string
- type QueryFriendListResponse
- func (*QueryFriendListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFriendListResponse) GetError() *errors.Error
- func (x *QueryFriendListResponse) GetFriendList() []*Friend
- func (*QueryFriendListResponse) ProtoMessage()
- func (x *QueryFriendListResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFriendListResponse) Reset()
- func (x *QueryFriendListResponse) String() string
- func (m *QueryFriendListResponse) Validate() error
- func (m *QueryFriendListResponse) ValidateAll() error
- type QueryFriendListResponseMultiError
- type QueryFriendListResponseValidationError
- func (e QueryFriendListResponseValidationError) Cause() error
- func (e QueryFriendListResponseValidationError) Error() string
- func (e QueryFriendListResponseValidationError) ErrorName() string
- func (e QueryFriendListResponseValidationError) Field() string
- func (e QueryFriendListResponseValidationError) Key() bool
- func (e QueryFriendListResponseValidationError) Reason() string
- type QueryFriendRequestListRequest
- func (*QueryFriendRequestListRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFriendRequestListRequest) GetStatus() FriendRequestStatus
- func (x *QueryFriendRequestListRequest) GetUid() int64
- func (*QueryFriendRequestListRequest) ProtoMessage()
- func (x *QueryFriendRequestListRequest) ProtoReflect() protoreflect.Message
- func (x *QueryFriendRequestListRequest) Reset()
- func (x *QueryFriendRequestListRequest) String() string
- func (m *QueryFriendRequestListRequest) Validate() error
- func (m *QueryFriendRequestListRequest) ValidateAll() error
- type QueryFriendRequestListRequestMultiError
- type QueryFriendRequestListRequestValidationError
- func (e QueryFriendRequestListRequestValidationError) Cause() error
- func (e QueryFriendRequestListRequestValidationError) Error() string
- func (e QueryFriendRequestListRequestValidationError) ErrorName() string
- func (e QueryFriendRequestListRequestValidationError) Field() string
- func (e QueryFriendRequestListRequestValidationError) Key() bool
- func (e QueryFriendRequestListRequestValidationError) Reason() string
- type QueryFriendRequestListResponse
- func (*QueryFriendRequestListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryFriendRequestListResponse) GetError() *errors.Error
- func (x *QueryFriendRequestListResponse) GetFriendRequestList() []*FriendRequest
- func (*QueryFriendRequestListResponse) ProtoMessage()
- func (x *QueryFriendRequestListResponse) ProtoReflect() protoreflect.Message
- func (x *QueryFriendRequestListResponse) Reset()
- func (x *QueryFriendRequestListResponse) String() string
- func (m *QueryFriendRequestListResponse) Validate() error
- func (m *QueryFriendRequestListResponse) ValidateAll() error
- type QueryFriendRequestListResponseMultiError
- type QueryFriendRequestListResponseValidationError
- func (e QueryFriendRequestListResponseValidationError) Cause() error
- func (e QueryFriendRequestListResponseValidationError) Error() string
- func (e QueryFriendRequestListResponseValidationError) ErrorName() string
- func (e QueryFriendRequestListResponseValidationError) Field() string
- func (e QueryFriendRequestListResponseValidationError) Key() bool
- func (e QueryFriendRequestListResponseValidationError) Reason() string
- type UnimplementedFriendServiceServer
- func (UnimplementedFriendServiceServer) AddFriend(context.Context, *BaseFriendRequest) (*AddFriendResponse, error)
- func (UnimplementedFriendServiceServer) CheckSendMessageAbility(context.Context, *CheckSendMessageAbilityRequest) (*CheckSendMessageAbilityResponse, error)
- func (UnimplementedFriendServiceServer) ConfirmFriendRequest(context.Context, *ConfirmFriendRequestRequest) (*errors.Error, error)
- func (UnimplementedFriendServiceServer) GetFriend(context.Context, *BaseFriendRequest) (*GetFriendResponse, error)
- func (UnimplementedFriendServiceServer) GetFriendRequest(context.Context, *BaseFriendRequest) (*GetFriendRequestResponse, error)
- func (UnimplementedFriendServiceServer) IsFriend(context.Context, *BaseFriendRequest) (*errors.Error, error)
- func (UnimplementedFriendServiceServer) QueryFriendList(context.Context, *QueryFriendListRequest) (*QueryFriendListResponse, error)
- func (UnimplementedFriendServiceServer) QueryFriendRequestList(context.Context, *QueryFriendRequestListRequest) (*QueryFriendRequestListResponse, error)
- func (UnimplementedFriendServiceServer) UpdateFriendStatus(context.Context, *UpdateFriendStatusRequest) (*errors.Error, error)
- type UnsafeFriendServiceServer
- type UpdateFriendStatusRequest
- func (*UpdateFriendStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateFriendStatusRequest) GetInfo() *BaseFriendRequest
- func (x *UpdateFriendStatusRequest) GetStatus() FriendStatus
- func (*UpdateFriendStatusRequest) ProtoMessage()
- func (x *UpdateFriendStatusRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateFriendStatusRequest) Reset()
- func (x *UpdateFriendStatusRequest) String() string
- func (m *UpdateFriendStatusRequest) Validate() error
- func (m *UpdateFriendStatusRequest) ValidateAll() error
- type UpdateFriendStatusRequestMultiError
- type UpdateFriendStatusRequestValidationError
- func (e UpdateFriendStatusRequestValidationError) Cause() error
- func (e UpdateFriendStatusRequestValidationError) Error() string
- func (e UpdateFriendStatusRequestValidationError) ErrorName() string
- func (e UpdateFriendStatusRequestValidationError) Field() string
- func (e UpdateFriendStatusRequestValidationError) Key() bool
- func (e UpdateFriendStatusRequestValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( FriendStatus_name = map[int32]string{ 0: "FRIEND", 1: "STRANGER", 2: "BLOCKED", 3: "UNBLOCKED", } FriendStatus_value = map[string]int32{ "FRIEND": 0, "STRANGER": 1, "BLOCKED": 2, "UNBLOCKED": 3, } )
Enum value maps for FriendStatus.
var ( FriendRequestStatus_name = map[int32]string{ 0: "REQUESTED", 1: "ACCEPTED", 2: "REJECTED", } FriendRequestStatus_value = map[string]int32{ "REQUESTED": 0, "ACCEPTED": 1, "REJECTED": 2, } )
Enum value maps for FriendRequestStatus.
var ( AddFriendStatus_name = map[int32]string{ 0: "SEND_REQUEST_SUCCESS", 1: "ALREADY_SENT_REQUEST", 2: "ADD_FRIEND_SUCCESS", 3: "BLOCKED_BY_ME", 4: "BLOCKED_BY_FRIEND", } AddFriendStatus_value = map[string]int32{ "SEND_REQUEST_SUCCESS": 0, "ALREADY_SENT_REQUEST": 1, "ADD_FRIEND_SUCCESS": 2, "BLOCKED_BY_ME": 3, "BLOCKED_BY_FRIEND": 4, } )
Enum value maps for AddFriendStatus.
var ( ConfirmFriendRequestAction_name = map[int32]string{ 0: "ACCEPT", 1: "REJECT", } ConfirmFriendRequestAction_value = map[string]int32{ "ACCEPT": 0, "REJECT": 1, } )
Enum value maps for ConfirmFriendRequestAction.
var File_user_friend_v1_friend_proto protoreflect.FileDescriptor
var FriendService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "api.user.friend.v1.FriendService", HandlerType: (*FriendServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddFriend", Handler: _FriendService_AddFriend_Handler, }, { MethodName: "ConfirmFriendRequest", Handler: _FriendService_ConfirmFriendRequest_Handler, }, { MethodName: "GetFriendRequest", Handler: _FriendService_GetFriendRequest_Handler, }, { MethodName: "QueryFriendRequestList", Handler: _FriendService_QueryFriendRequestList_Handler, }, { MethodName: "UpdateFriendStatus", Handler: _FriendService_UpdateFriendStatus_Handler, }, { MethodName: "IsFriend", Handler: _FriendService_IsFriend_Handler, }, { MethodName: "GetFriend", Handler: _FriendService_GetFriend_Handler, }, { MethodName: "QueryFriendList", Handler: _FriendService_QueryFriendList_Handler, }, { MethodName: "CheckSendMessageAbility", Handler: _FriendService_CheckSendMessageAbility_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "user/friend/v1/friend.proto", }
FriendService_ServiceDesc is the grpc.ServiceDesc for FriendService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterFriendServiceServer ¶
func RegisterFriendServiceServer(s grpc.ServiceRegistrar, srv FriendServiceServer)
Types ¶
type AddFriendResponse ¶
type AddFriendResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Result *AddFriendResult `protobuf:"bytes,2,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*AddFriendResponse) Descriptor
deprecated
func (*AddFriendResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendResponse.ProtoReflect.Descriptor instead.
func (*AddFriendResponse) GetError ¶ added in v0.0.9
func (x *AddFriendResponse) GetError() *errors.Error
func (*AddFriendResponse) GetResult ¶
func (x *AddFriendResponse) GetResult() *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
func (*AddFriendResponse) Validate ¶
func (m *AddFriendResponse) Validate() error
Validate checks the field values on AddFriendResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddFriendResponse) ValidateAll ¶
func (m *AddFriendResponse) ValidateAll() error
ValidateAll checks the field values on AddFriendResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddFriendResponseMultiError, or nil if none found.
type AddFriendResponseMultiError ¶
type AddFriendResponseMultiError []error
AddFriendResponseMultiError is an error wrapping multiple validation errors returned by AddFriendResponse.ValidateAll() if the designated constraints aren't met.
func (AddFriendResponseMultiError) AllErrors ¶
func (m AddFriendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddFriendResponseMultiError) Error ¶
func (m AddFriendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddFriendResponseValidationError ¶
type AddFriendResponseValidationError struct {
// contains filtered or unexported fields
}
AddFriendResponseValidationError is the validation error returned by AddFriendResponse.Validate if the designated constraints aren't met.
func (AddFriendResponseValidationError) Cause ¶
func (e AddFriendResponseValidationError) Cause() error
Cause function returns cause value.
func (AddFriendResponseValidationError) Error ¶
func (e AddFriendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddFriendResponseValidationError) ErrorName ¶
func (e AddFriendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddFriendResponseValidationError) Field ¶
func (e AddFriendResponseValidationError) Field() string
Field function returns field value.
func (AddFriendResponseValidationError) Key ¶
func (e AddFriendResponseValidationError) Key() bool
Key function returns key value.
func (AddFriendResponseValidationError) Reason ¶
func (e AddFriendResponseValidationError) Reason() string
Reason function returns reason value.
type AddFriendResult ¶
type AddFriendResult struct { Status AddFriendStatus `protobuf:"varint,1,opt,name=status,proto3,enum=api.user.friend.v1.AddFriendStatus" json:"status,omitempty"` FriendRequest *FriendRequest `protobuf:"bytes,2,opt,name=friend_request,json=friendRequest,proto3" json:"friend_request,omitempty"` // contains filtered or unexported fields }
func (*AddFriendResult) Descriptor
deprecated
func (*AddFriendResult) Descriptor() ([]byte, []int)
Deprecated: Use AddFriendResult.ProtoReflect.Descriptor instead.
func (*AddFriendResult) GetFriendRequest ¶
func (x *AddFriendResult) GetFriendRequest() *FriendRequest
func (*AddFriendResult) GetStatus ¶
func (x *AddFriendResult) GetStatus() AddFriendStatus
func (*AddFriendResult) ProtoMessage ¶
func (*AddFriendResult) ProtoMessage()
func (*AddFriendResult) ProtoReflect ¶
func (x *AddFriendResult) ProtoReflect() protoreflect.Message
func (*AddFriendResult) Reset ¶
func (x *AddFriendResult) Reset()
func (*AddFriendResult) String ¶
func (x *AddFriendResult) String() string
func (*AddFriendResult) Validate ¶
func (m *AddFriendResult) Validate() error
Validate checks the field values on AddFriendResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AddFriendResult) ValidateAll ¶
func (m *AddFriendResult) ValidateAll() error
ValidateAll checks the field values on AddFriendResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AddFriendResultMultiError, or nil if none found.
type AddFriendResultMultiError ¶
type AddFriendResultMultiError []error
AddFriendResultMultiError is an error wrapping multiple validation errors returned by AddFriendResult.ValidateAll() if the designated constraints aren't met.
func (AddFriendResultMultiError) AllErrors ¶
func (m AddFriendResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddFriendResultMultiError) Error ¶
func (m AddFriendResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddFriendResultValidationError ¶
type AddFriendResultValidationError struct {
// contains filtered or unexported fields
}
AddFriendResultValidationError is the validation error returned by AddFriendResult.Validate if the designated constraints aren't met.
func (AddFriendResultValidationError) Cause ¶
func (e AddFriendResultValidationError) Cause() error
Cause function returns cause value.
func (AddFriendResultValidationError) Error ¶
func (e AddFriendResultValidationError) Error() string
Error satisfies the builtin error interface
func (AddFriendResultValidationError) ErrorName ¶
func (e AddFriendResultValidationError) ErrorName() string
ErrorName returns error name.
func (AddFriendResultValidationError) Field ¶
func (e AddFriendResultValidationError) Field() string
Field function returns field value.
func (AddFriendResultValidationError) Key ¶
func (e AddFriendResultValidationError) Key() bool
Key function returns key value.
func (AddFriendResultValidationError) Reason ¶
func (e AddFriendResultValidationError) Reason() string
Reason function returns reason value.
type AddFriendStatus ¶
type AddFriendStatus int32
const ( AddFriendStatus_SEND_REQUEST_SUCCESS AddFriendStatus = 0 AddFriendStatus_ALREADY_SENT_REQUEST AddFriendStatus = 1 AddFriendStatus_ADD_FRIEND_SUCCESS AddFriendStatus = 2 AddFriendStatus_BLOCKED_BY_ME AddFriendStatus = 3 AddFriendStatus_BLOCKED_BY_FRIEND AddFriendStatus = 4 )
func (AddFriendStatus) Descriptor ¶
func (AddFriendStatus) Descriptor() protoreflect.EnumDescriptor
func (AddFriendStatus) Enum ¶
func (x AddFriendStatus) Enum() *AddFriendStatus
func (AddFriendStatus) EnumDescriptor
deprecated
func (AddFriendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AddFriendStatus.Descriptor instead.
func (AddFriendStatus) Number ¶
func (x AddFriendStatus) Number() protoreflect.EnumNumber
func (AddFriendStatus) String ¶
func (x AddFriendStatus) String() string
func (AddFriendStatus) Type ¶
func (AddFriendStatus) Type() protoreflect.EnumType
type BaseFriendRequest ¶
type BaseFriendRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` FriendUid int64 `protobuf:"varint,2,opt,name=friend_uid,json=friendUid,proto3" json:"friend_uid,omitempty"` // contains filtered or unexported fields }
func (*BaseFriendRequest) Descriptor
deprecated
func (*BaseFriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use BaseFriendRequest.ProtoReflect.Descriptor instead.
func (*BaseFriendRequest) GetFriendUid ¶
func (x *BaseFriendRequest) GetFriendUid() int64
func (*BaseFriendRequest) GetUid ¶
func (x *BaseFriendRequest) GetUid() int64
func (*BaseFriendRequest) ProtoMessage ¶
func (*BaseFriendRequest) ProtoMessage()
func (*BaseFriendRequest) ProtoReflect ¶
func (x *BaseFriendRequest) ProtoReflect() protoreflect.Message
func (*BaseFriendRequest) Reset ¶
func (x *BaseFriendRequest) Reset()
func (*BaseFriendRequest) String ¶
func (x *BaseFriendRequest) String() string
func (*BaseFriendRequest) Validate ¶
func (m *BaseFriendRequest) Validate() error
Validate checks the field values on BaseFriendRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*BaseFriendRequest) ValidateAll ¶
func (m *BaseFriendRequest) ValidateAll() error
ValidateAll checks the field values on BaseFriendRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in BaseFriendRequestMultiError, or nil if none found.
type BaseFriendRequestMultiError ¶
type BaseFriendRequestMultiError []error
BaseFriendRequestMultiError is an error wrapping multiple validation errors returned by BaseFriendRequest.ValidateAll() if the designated constraints aren't met.
func (BaseFriendRequestMultiError) AllErrors ¶
func (m BaseFriendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BaseFriendRequestMultiError) Error ¶
func (m BaseFriendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BaseFriendRequestValidationError ¶
type BaseFriendRequestValidationError struct {
// contains filtered or unexported fields
}
BaseFriendRequestValidationError is the validation error returned by BaseFriendRequest.Validate if the designated constraints aren't met.
func (BaseFriendRequestValidationError) Cause ¶
func (e BaseFriendRequestValidationError) Cause() error
Cause function returns cause value.
func (BaseFriendRequestValidationError) Error ¶
func (e BaseFriendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (BaseFriendRequestValidationError) ErrorName ¶
func (e BaseFriendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (BaseFriendRequestValidationError) Field ¶
func (e BaseFriendRequestValidationError) Field() string
Field function returns field value.
func (BaseFriendRequestValidationError) Key ¶
func (e BaseFriendRequestValidationError) Key() bool
Key function returns key value.
func (BaseFriendRequestValidationError) Reason ¶
func (e BaseFriendRequestValidationError) Reason() string
Reason function returns reason value.
type CheckSendMessageAbilityRequest ¶ added in v0.0.3
type CheckSendMessageAbilityRequest struct { FromUid int64 `protobuf:"varint,1,opt,name=from_uid,json=fromUid,proto3" json:"from_uid,omitempty"` ToUid int64 `protobuf:"varint,2,opt,name=to_uid,json=toUid,proto3" json:"to_uid,omitempty"` SessionType v1.SessionType `` /* 127-byte string literal not displayed */ // contains filtered or unexported fields }
CheckSendMessageAbilityRequest is the request data for checking send message ability.
func (*CheckSendMessageAbilityRequest) Descriptor
deprecated
added in
v0.0.3
func (*CheckSendMessageAbilityRequest) Descriptor() ([]byte, []int)
Deprecated: Use CheckSendMessageAbilityRequest.ProtoReflect.Descriptor instead.
func (*CheckSendMessageAbilityRequest) GetFromUid ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) GetFromUid() int64
func (*CheckSendMessageAbilityRequest) GetSessionType ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) GetSessionType() v1.SessionType
func (*CheckSendMessageAbilityRequest) GetToUid ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) GetToUid() int64
func (*CheckSendMessageAbilityRequest) ProtoMessage ¶ added in v0.0.3
func (*CheckSendMessageAbilityRequest) ProtoMessage()
func (*CheckSendMessageAbilityRequest) ProtoReflect ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) ProtoReflect() protoreflect.Message
func (*CheckSendMessageAbilityRequest) Reset ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) Reset()
func (*CheckSendMessageAbilityRequest) String ¶ added in v0.0.3
func (x *CheckSendMessageAbilityRequest) String() string
func (*CheckSendMessageAbilityRequest) Validate ¶ added in v0.0.3
func (m *CheckSendMessageAbilityRequest) Validate() error
Validate checks the field values on CheckSendMessageAbilityRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckSendMessageAbilityRequest) ValidateAll ¶ added in v0.0.3
func (m *CheckSendMessageAbilityRequest) ValidateAll() error
ValidateAll checks the field values on CheckSendMessageAbilityRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckSendMessageAbilityRequestMultiError, or nil if none found.
type CheckSendMessageAbilityRequestMultiError ¶ added in v0.0.3
type CheckSendMessageAbilityRequestMultiError []error
CheckSendMessageAbilityRequestMultiError is an error wrapping multiple validation errors returned by CheckSendMessageAbilityRequest.ValidateAll() if the designated constraints aren't met.
func (CheckSendMessageAbilityRequestMultiError) AllErrors ¶ added in v0.0.3
func (m CheckSendMessageAbilityRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckSendMessageAbilityRequestMultiError) Error ¶ added in v0.0.3
func (m CheckSendMessageAbilityRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckSendMessageAbilityRequestValidationError ¶ added in v0.0.3
type CheckSendMessageAbilityRequestValidationError struct {
// contains filtered or unexported fields
}
CheckSendMessageAbilityRequestValidationError is the validation error returned by CheckSendMessageAbilityRequest.Validate if the designated constraints aren't met.
func (CheckSendMessageAbilityRequestValidationError) Cause ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) Cause() error
Cause function returns cause value.
func (CheckSendMessageAbilityRequestValidationError) Error ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CheckSendMessageAbilityRequestValidationError) ErrorName ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CheckSendMessageAbilityRequestValidationError) Field ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) Field() string
Field function returns field value.
func (CheckSendMessageAbilityRequestValidationError) Key ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) Key() bool
Key function returns key value.
func (CheckSendMessageAbilityRequestValidationError) Reason ¶ added in v0.0.3
func (e CheckSendMessageAbilityRequestValidationError) Reason() string
Reason function returns reason value.
type CheckSendMessageAbilityResponse ¶ added in v0.0.3
type CheckSendMessageAbilityResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` SessionId *string `protobuf:"bytes,2,opt,name=session_id,json=sessionId,proto3,oneof" json:"session_id,omitempty"` // contains filtered or unexported fields }
func (*CheckSendMessageAbilityResponse) Descriptor
deprecated
added in
v0.0.3
func (*CheckSendMessageAbilityResponse) Descriptor() ([]byte, []int)
Deprecated: Use CheckSendMessageAbilityResponse.ProtoReflect.Descriptor instead.
func (*CheckSendMessageAbilityResponse) GetError ¶ added in v0.0.9
func (x *CheckSendMessageAbilityResponse) GetError() *errors.Error
func (*CheckSendMessageAbilityResponse) GetSessionId ¶ added in v0.0.3
func (x *CheckSendMessageAbilityResponse) GetSessionId() string
func (*CheckSendMessageAbilityResponse) ProtoMessage ¶ added in v0.0.3
func (*CheckSendMessageAbilityResponse) ProtoMessage()
func (*CheckSendMessageAbilityResponse) ProtoReflect ¶ added in v0.0.3
func (x *CheckSendMessageAbilityResponse) ProtoReflect() protoreflect.Message
func (*CheckSendMessageAbilityResponse) Reset ¶ added in v0.0.3
func (x *CheckSendMessageAbilityResponse) Reset()
func (*CheckSendMessageAbilityResponse) String ¶ added in v0.0.3
func (x *CheckSendMessageAbilityResponse) String() string
func (*CheckSendMessageAbilityResponse) Validate ¶ added in v0.0.3
func (m *CheckSendMessageAbilityResponse) Validate() error
Validate checks the field values on CheckSendMessageAbilityResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CheckSendMessageAbilityResponse) ValidateAll ¶ added in v0.0.3
func (m *CheckSendMessageAbilityResponse) ValidateAll() error
ValidateAll checks the field values on CheckSendMessageAbilityResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CheckSendMessageAbilityResponseMultiError, or nil if none found.
type CheckSendMessageAbilityResponseMultiError ¶ added in v0.0.3
type CheckSendMessageAbilityResponseMultiError []error
CheckSendMessageAbilityResponseMultiError is an error wrapping multiple validation errors returned by CheckSendMessageAbilityResponse.ValidateAll() if the designated constraints aren't met.
func (CheckSendMessageAbilityResponseMultiError) AllErrors ¶ added in v0.0.3
func (m CheckSendMessageAbilityResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CheckSendMessageAbilityResponseMultiError) Error ¶ added in v0.0.3
func (m CheckSendMessageAbilityResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CheckSendMessageAbilityResponseValidationError ¶ added in v0.0.3
type CheckSendMessageAbilityResponseValidationError struct {
// contains filtered or unexported fields
}
CheckSendMessageAbilityResponseValidationError is the validation error returned by CheckSendMessageAbilityResponse.Validate if the designated constraints aren't met.
func (CheckSendMessageAbilityResponseValidationError) Cause ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) Cause() error
Cause function returns cause value.
func (CheckSendMessageAbilityResponseValidationError) Error ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CheckSendMessageAbilityResponseValidationError) ErrorName ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CheckSendMessageAbilityResponseValidationError) Field ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) Field() string
Field function returns field value.
func (CheckSendMessageAbilityResponseValidationError) Key ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) Key() bool
Key function returns key value.
func (CheckSendMessageAbilityResponseValidationError) Reason ¶ added in v0.0.3
func (e CheckSendMessageAbilityResponseValidationError) Reason() string
Reason function returns reason value.
type ConfirmFriendRequestAction ¶
type ConfirmFriendRequestAction int32
const ( ConfirmFriendRequestAction_ACCEPT ConfirmFriendRequestAction = 0 // accept friend request ConfirmFriendRequestAction_REJECT ConfirmFriendRequestAction = 1 // reject friend request )
func (ConfirmFriendRequestAction) Descriptor ¶
func (ConfirmFriendRequestAction) Descriptor() protoreflect.EnumDescriptor
func (ConfirmFriendRequestAction) Enum ¶
func (x ConfirmFriendRequestAction) Enum() *ConfirmFriendRequestAction
func (ConfirmFriendRequestAction) EnumDescriptor
deprecated
func (ConfirmFriendRequestAction) EnumDescriptor() ([]byte, []int)
Deprecated: Use ConfirmFriendRequestAction.Descriptor instead.
func (ConfirmFriendRequestAction) Number ¶
func (x ConfirmFriendRequestAction) Number() protoreflect.EnumNumber
func (ConfirmFriendRequestAction) String ¶
func (x ConfirmFriendRequestAction) String() string
func (ConfirmFriendRequestAction) Type ¶
func (ConfirmFriendRequestAction) Type() protoreflect.EnumType
type ConfirmFriendRequestRequest ¶ added in v0.0.7
type ConfirmFriendRequestRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` FriendRequestId uint64 `protobuf:"varint,2,opt,name=friend_request_id,json=friendRequestId,proto3" json:"friend_request_id,omitempty"` Action ConfirmFriendRequestAction `protobuf:"varint,3,opt,name=action,proto3,enum=api.user.friend.v1.ConfirmFriendRequestAction" json:"action,omitempty"` // contains filtered or unexported fields }
func (*ConfirmFriendRequestRequest) Descriptor
deprecated
added in
v0.0.7
func (*ConfirmFriendRequestRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfirmFriendRequestRequest.ProtoReflect.Descriptor instead.
func (*ConfirmFriendRequestRequest) GetAction ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) GetAction() ConfirmFriendRequestAction
func (*ConfirmFriendRequestRequest) GetFriendRequestId ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) GetFriendRequestId() uint64
func (*ConfirmFriendRequestRequest) GetUid ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) GetUid() int64
func (*ConfirmFriendRequestRequest) ProtoMessage ¶ added in v0.0.7
func (*ConfirmFriendRequestRequest) ProtoMessage()
func (*ConfirmFriendRequestRequest) ProtoReflect ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) ProtoReflect() protoreflect.Message
func (*ConfirmFriendRequestRequest) Reset ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) Reset()
func (*ConfirmFriendRequestRequest) String ¶ added in v0.0.7
func (x *ConfirmFriendRequestRequest) String() string
func (*ConfirmFriendRequestRequest) Validate ¶ added in v0.0.7
func (m *ConfirmFriendRequestRequest) Validate() error
Validate checks the field values on ConfirmFriendRequestRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfirmFriendRequestRequest) ValidateAll ¶ added in v0.0.7
func (m *ConfirmFriendRequestRequest) ValidateAll() error
ValidateAll checks the field values on ConfirmFriendRequestRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfirmFriendRequestRequestMultiError, or nil if none found.
type ConfirmFriendRequestRequestMultiError ¶ added in v0.0.7
type ConfirmFriendRequestRequestMultiError []error
ConfirmFriendRequestRequestMultiError is an error wrapping multiple validation errors returned by ConfirmFriendRequestRequest.ValidateAll() if the designated constraints aren't met.
func (ConfirmFriendRequestRequestMultiError) AllErrors ¶ added in v0.0.7
func (m ConfirmFriendRequestRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfirmFriendRequestRequestMultiError) Error ¶ added in v0.0.7
func (m ConfirmFriendRequestRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfirmFriendRequestRequestValidationError ¶ added in v0.0.7
type ConfirmFriendRequestRequestValidationError struct {
// contains filtered or unexported fields
}
ConfirmFriendRequestRequestValidationError is the validation error returned by ConfirmFriendRequestRequest.Validate if the designated constraints aren't met.
func (ConfirmFriendRequestRequestValidationError) Cause ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) Cause() error
Cause function returns cause value.
func (ConfirmFriendRequestRequestValidationError) Error ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ConfirmFriendRequestRequestValidationError) ErrorName ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ConfirmFriendRequestRequestValidationError) Field ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) Field() string
Field function returns field value.
func (ConfirmFriendRequestRequestValidationError) Key ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) Key() bool
Key function returns key value.
func (ConfirmFriendRequestRequestValidationError) Reason ¶ added in v0.0.7
func (e ConfirmFriendRequestRequestValidationError) Reason() string
Reason function returns reason value.
type Friend ¶
type Friend struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` FriendUid int64 `protobuf:"varint,2,opt,name=friend_uid,json=friendUid,proto3" json:"friend_uid,omitempty"` FriendName string `protobuf:"bytes,3,opt,name=friend_name,json=friendName,proto3" json:"friend_name,omitempty"` FriendAvatar string `protobuf:"bytes,4,opt,name=friend_avatar,json=friendAvatar,proto3" json:"friend_avatar,omitempty"` Status FriendStatus `protobuf:"varint,5,opt,name=status,proto3,enum=api.user.friend.v1.FriendStatus" json:"status,omitempty"` CreatedAt int64 `protobuf:"varint,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,7,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // contains filtered or unexported fields }
func (*Friend) Descriptor
deprecated
func (*Friend) GetCreatedAt ¶
func (*Friend) GetFriendAvatar ¶
func (*Friend) GetFriendName ¶
func (*Friend) GetFriendUid ¶
func (*Friend) GetStatus ¶
func (x *Friend) GetStatus() FriendStatus
func (*Friend) GetUpdatedAt ¶
func (*Friend) ProtoMessage ¶
func (*Friend) ProtoMessage()
func (*Friend) ProtoReflect ¶
func (x *Friend) ProtoReflect() protoreflect.Message
func (*Friend) Validate ¶
Validate checks the field values on Friend with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Friend) ValidateAll ¶
ValidateAll checks the field values on Friend with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FriendMultiError, or nil if none found.
type FriendMultiError ¶
type FriendMultiError []error
FriendMultiError is an error wrapping multiple validation errors returned by Friend.ValidateAll() if the designated constraints aren't met.
func (FriendMultiError) AllErrors ¶
func (m FriendMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FriendMultiError) Error ¶
func (m FriendMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FriendRequest ¶
type FriendRequest struct { Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` Uid int64 `protobuf:"varint,2,opt,name=uid,proto3" json:"uid,omitempty"` FriendUid int64 `protobuf:"varint,3,opt,name=friend_uid,json=friendUid,proto3" json:"friend_uid,omitempty"` Status FriendRequestStatus `protobuf:"varint,4,opt,name=status,proto3,enum=api.user.friend.v1.FriendRequestStatus" json:"status,omitempty"` CreatedAt int64 `protobuf:"varint,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` UpdatedAt int64 `protobuf:"varint,6,opt,name=updated_at,json=updatedAt,proto3" json:"updated_at,omitempty"` // friend info for view FriendName string `protobuf:"bytes,7,opt,name=friend_name,json=friendName,proto3" json:"friend_name,omitempty"` FriendAvatar string `protobuf:"bytes,8,opt,name=friend_avatar,json=friendAvatar,proto3" json:"friend_avatar,omitempty"` // contains filtered or unexported fields }
FriendRequest is the request data for adding friend
func (*FriendRequest) Descriptor
deprecated
func (*FriendRequest) Descriptor() ([]byte, []int)
Deprecated: Use FriendRequest.ProtoReflect.Descriptor instead.
func (*FriendRequest) GetCreatedAt ¶
func (x *FriendRequest) GetCreatedAt() int64
func (*FriendRequest) GetFriendAvatar ¶
func (x *FriendRequest) GetFriendAvatar() string
func (*FriendRequest) GetFriendName ¶
func (x *FriendRequest) GetFriendName() string
func (*FriendRequest) GetFriendUid ¶
func (x *FriendRequest) GetFriendUid() int64
func (*FriendRequest) GetId ¶
func (x *FriendRequest) GetId() uint64
func (*FriendRequest) GetStatus ¶
func (x *FriendRequest) GetStatus() FriendRequestStatus
func (*FriendRequest) GetUid ¶
func (x *FriendRequest) GetUid() int64
func (*FriendRequest) GetUpdatedAt ¶
func (x *FriendRequest) GetUpdatedAt() int64
func (*FriendRequest) ProtoMessage ¶
func (*FriendRequest) ProtoMessage()
func (*FriendRequest) ProtoReflect ¶
func (x *FriendRequest) ProtoReflect() protoreflect.Message
func (*FriendRequest) Reset ¶
func (x *FriendRequest) Reset()
func (*FriendRequest) String ¶
func (x *FriendRequest) String() string
func (*FriendRequest) Validate ¶
func (m *FriendRequest) Validate() error
Validate checks the field values on FriendRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*FriendRequest) ValidateAll ¶
func (m *FriendRequest) ValidateAll() error
ValidateAll checks the field values on FriendRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in FriendRequestMultiError, or nil if none found.
type FriendRequestMultiError ¶
type FriendRequestMultiError []error
FriendRequestMultiError is an error wrapping multiple validation errors returned by FriendRequest.ValidateAll() if the designated constraints aren't met.
func (FriendRequestMultiError) AllErrors ¶
func (m FriendRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FriendRequestMultiError) Error ¶
func (m FriendRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FriendRequestStatus ¶
type FriendRequestStatus int32
const ( // Friend request as default status FriendRequestStatus_REQUESTED FriendRequestStatus = 0 // Friend request as accepted FriendRequestStatus_ACCEPTED FriendRequestStatus = 1 // Friend request as rejected FriendRequestStatus_REJECTED FriendRequestStatus = 2 )
func (FriendRequestStatus) Descriptor ¶
func (FriendRequestStatus) Descriptor() protoreflect.EnumDescriptor
func (FriendRequestStatus) Enum ¶
func (x FriendRequestStatus) Enum() *FriendRequestStatus
func (FriendRequestStatus) EnumDescriptor
deprecated
func (FriendRequestStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendRequestStatus.Descriptor instead.
func (FriendRequestStatus) Number ¶
func (x FriendRequestStatus) Number() protoreflect.EnumNumber
func (FriendRequestStatus) String ¶
func (x FriendRequestStatus) String() string
func (FriendRequestStatus) Type ¶
func (FriendRequestStatus) Type() protoreflect.EnumType
type FriendRequestValidationError ¶
type FriendRequestValidationError struct {
// contains filtered or unexported fields
}
FriendRequestValidationError is the validation error returned by FriendRequest.Validate if the designated constraints aren't met.
func (FriendRequestValidationError) Cause ¶
func (e FriendRequestValidationError) Cause() error
Cause function returns cause value.
func (FriendRequestValidationError) Error ¶
func (e FriendRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FriendRequestValidationError) ErrorName ¶
func (e FriendRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FriendRequestValidationError) Field ¶
func (e FriendRequestValidationError) Field() string
Field function returns field value.
func (FriendRequestValidationError) Key ¶
func (e FriendRequestValidationError) Key() bool
Key function returns key value.
func (FriendRequestValidationError) Reason ¶
func (e FriendRequestValidationError) Reason() string
Reason function returns reason value.
type FriendServiceClient ¶
type FriendServiceClient interface { // friend request AddFriend(ctx context.Context, in *BaseFriendRequest, opts ...grpc.CallOption) (*AddFriendResponse, error) ConfirmFriendRequest(ctx context.Context, in *ConfirmFriendRequestRequest, opts ...grpc.CallOption) (*errors.Error, error) GetFriendRequest(ctx context.Context, in *BaseFriendRequest, opts ...grpc.CallOption) (*GetFriendRequestResponse, error) QueryFriendRequestList(ctx context.Context, in *QueryFriendRequestListRequest, opts ...grpc.CallOption) (*QueryFriendRequestListResponse, error) // friend UpdateFriendStatus(ctx context.Context, in *UpdateFriendStatusRequest, opts ...grpc.CallOption) (*errors.Error, error) IsFriend(ctx context.Context, in *BaseFriendRequest, opts ...grpc.CallOption) (*errors.Error, error) GetFriend(ctx context.Context, in *BaseFriendRequest, opts ...grpc.CallOption) (*GetFriendResponse, error) QueryFriendList(ctx context.Context, in *QueryFriendListRequest, opts ...grpc.CallOption) (*QueryFriendListResponse, error) // check send message ability // check friend relationship and is there a session. If is friend but no session, try to create a session. // if session_type is group chat, check if the group is exist and is the member of the group. CheckSendMessageAbility(ctx context.Context, in *CheckSendMessageAbilityRequest, opts ...grpc.CallOption) (*CheckSendMessageAbilityResponse, error) }
FriendServiceClient is the client API for FriendService 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 NewFriendServiceClient ¶
func NewFriendServiceClient(cc grpc.ClientConnInterface) FriendServiceClient
type FriendServiceServer ¶
type FriendServiceServer interface { // friend request AddFriend(context.Context, *BaseFriendRequest) (*AddFriendResponse, error) ConfirmFriendRequest(context.Context, *ConfirmFriendRequestRequest) (*errors.Error, error) GetFriendRequest(context.Context, *BaseFriendRequest) (*GetFriendRequestResponse, error) QueryFriendRequestList(context.Context, *QueryFriendRequestListRequest) (*QueryFriendRequestListResponse, error) // friend UpdateFriendStatus(context.Context, *UpdateFriendStatusRequest) (*errors.Error, error) IsFriend(context.Context, *BaseFriendRequest) (*errors.Error, error) GetFriend(context.Context, *BaseFriendRequest) (*GetFriendResponse, error) QueryFriendList(context.Context, *QueryFriendListRequest) (*QueryFriendListResponse, error) // check send message ability // check friend relationship and is there a session. If is friend but no session, try to create a session. // if session_type is group chat, check if the group is exist and is the member of the group. CheckSendMessageAbility(context.Context, *CheckSendMessageAbilityRequest) (*CheckSendMessageAbilityResponse, error) // contains filtered or unexported methods }
FriendServiceServer is the server API for FriendService service. All implementations must embed UnimplementedFriendServiceServer for forward compatibility
type FriendStatus ¶
type FriendStatus int32
const ( // Friend as default status FriendStatus_FRIEND FriendStatus = 0 // Stranger when delete friend FriendStatus_STRANGER FriendStatus = 1 // Blocked when block friend FriendStatus_BLOCKED FriendStatus = 2 // Unblock when unblock friend // unblock status won't be in database only use when update friend status FriendStatus_UNBLOCKED FriendStatus = 3 )
func (FriendStatus) CanUpdateStatus ¶
func (x FriendStatus) CanUpdateStatus(targetStatus FriendStatus) bool
CanUpdateStatus checks if a friend status can be updated to another status
func (FriendStatus) Descriptor ¶
func (FriendStatus) Descriptor() protoreflect.EnumDescriptor
func (FriendStatus) Enum ¶
func (x FriendStatus) Enum() *FriendStatus
func (FriendStatus) EnumDescriptor
deprecated
func (FriendStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use FriendStatus.Descriptor instead.
func (FriendStatus) Number ¶
func (x FriendStatus) Number() protoreflect.EnumNumber
func (FriendStatus) String ¶
func (x FriendStatus) String() string
func (FriendStatus) Type ¶
func (FriendStatus) Type() protoreflect.EnumType
type FriendValidationError ¶
type FriendValidationError struct {
// contains filtered or unexported fields
}
FriendValidationError is the validation error returned by Friend.Validate if the designated constraints aren't met.
func (FriendValidationError) Cause ¶
func (e FriendValidationError) Cause() error
Cause function returns cause value.
func (FriendValidationError) Error ¶
func (e FriendValidationError) Error() string
Error satisfies the builtin error interface
func (FriendValidationError) ErrorName ¶
func (e FriendValidationError) ErrorName() string
ErrorName returns error name.
func (FriendValidationError) Field ¶
func (e FriendValidationError) Field() string
Field function returns field value.
func (FriendValidationError) Key ¶
func (e FriendValidationError) Key() bool
Key function returns key value.
func (FriendValidationError) Reason ¶
func (e FriendValidationError) Reason() string
Reason function returns reason value.
type GetFriendRequestResponse ¶
type GetFriendRequestResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` FriendRequest *FriendRequest `protobuf:"bytes,2,opt,name=friend_request,json=friendRequest,proto3" json:"friend_request,omitempty"` // contains filtered or unexported fields }
func (*GetFriendRequestResponse) Descriptor
deprecated
func (*GetFriendRequestResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendRequestResponse.ProtoReflect.Descriptor instead.
func (*GetFriendRequestResponse) GetError ¶ added in v0.0.9
func (x *GetFriendRequestResponse) GetError() *errors.Error
func (*GetFriendRequestResponse) GetFriendRequest ¶
func (x *GetFriendRequestResponse) GetFriendRequest() *FriendRequest
func (*GetFriendRequestResponse) ProtoMessage ¶
func (*GetFriendRequestResponse) ProtoMessage()
func (*GetFriendRequestResponse) ProtoReflect ¶
func (x *GetFriendRequestResponse) ProtoReflect() protoreflect.Message
func (*GetFriendRequestResponse) Reset ¶
func (x *GetFriendRequestResponse) Reset()
func (*GetFriendRequestResponse) String ¶
func (x *GetFriendRequestResponse) String() string
func (*GetFriendRequestResponse) Validate ¶
func (m *GetFriendRequestResponse) Validate() error
Validate checks the field values on GetFriendRequestResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFriendRequestResponse) ValidateAll ¶
func (m *GetFriendRequestResponse) ValidateAll() error
ValidateAll checks the field values on GetFriendRequestResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFriendRequestResponseMultiError, or nil if none found.
type GetFriendRequestResponseMultiError ¶
type GetFriendRequestResponseMultiError []error
GetFriendRequestResponseMultiError is an error wrapping multiple validation errors returned by GetFriendRequestResponse.ValidateAll() if the designated constraints aren't met.
func (GetFriendRequestResponseMultiError) AllErrors ¶
func (m GetFriendRequestResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendRequestResponseMultiError) Error ¶
func (m GetFriendRequestResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendRequestResponseValidationError ¶
type GetFriendRequestResponseValidationError struct {
// contains filtered or unexported fields
}
GetFriendRequestResponseValidationError is the validation error returned by GetFriendRequestResponse.Validate if the designated constraints aren't met.
func (GetFriendRequestResponseValidationError) Cause ¶
func (e GetFriendRequestResponseValidationError) Cause() error
Cause function returns cause value.
func (GetFriendRequestResponseValidationError) Error ¶
func (e GetFriendRequestResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendRequestResponseValidationError) ErrorName ¶
func (e GetFriendRequestResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendRequestResponseValidationError) Field ¶
func (e GetFriendRequestResponseValidationError) Field() string
Field function returns field value.
func (GetFriendRequestResponseValidationError) Key ¶
func (e GetFriendRequestResponseValidationError) Key() bool
Key function returns key value.
func (GetFriendRequestResponseValidationError) Reason ¶
func (e GetFriendRequestResponseValidationError) Reason() string
Reason function returns reason value.
type GetFriendResponse ¶
type GetFriendResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` Friend *Friend `protobuf:"bytes,2,opt,name=friend,proto3" json:"friend,omitempty"` // contains filtered or unexported fields }
func (*GetFriendResponse) Descriptor
deprecated
func (*GetFriendResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFriendResponse.ProtoReflect.Descriptor instead.
func (*GetFriendResponse) GetError ¶ added in v0.0.9
func (x *GetFriendResponse) GetError() *errors.Error
func (*GetFriendResponse) GetFriend ¶
func (x *GetFriendResponse) GetFriend() *Friend
func (*GetFriendResponse) ProtoMessage ¶
func (*GetFriendResponse) ProtoMessage()
func (*GetFriendResponse) ProtoReflect ¶
func (x *GetFriendResponse) ProtoReflect() protoreflect.Message
func (*GetFriendResponse) Reset ¶
func (x *GetFriendResponse) Reset()
func (*GetFriendResponse) String ¶
func (x *GetFriendResponse) String() string
func (*GetFriendResponse) Validate ¶
func (m *GetFriendResponse) Validate() error
Validate checks the field values on GetFriendResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*GetFriendResponse) ValidateAll ¶
func (m *GetFriendResponse) ValidateAll() error
ValidateAll checks the field values on GetFriendResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetFriendResponseMultiError, or nil if none found.
type GetFriendResponseMultiError ¶
type GetFriendResponseMultiError []error
GetFriendResponseMultiError is an error wrapping multiple validation errors returned by GetFriendResponse.ValidateAll() if the designated constraints aren't met.
func (GetFriendResponseMultiError) AllErrors ¶
func (m GetFriendResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFriendResponseMultiError) Error ¶
func (m GetFriendResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFriendResponseValidationError ¶
type GetFriendResponseValidationError struct {
// contains filtered or unexported fields
}
GetFriendResponseValidationError is the validation error returned by GetFriendResponse.Validate if the designated constraints aren't met.
func (GetFriendResponseValidationError) Cause ¶
func (e GetFriendResponseValidationError) Cause() error
Cause function returns cause value.
func (GetFriendResponseValidationError) Error ¶
func (e GetFriendResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetFriendResponseValidationError) ErrorName ¶
func (e GetFriendResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetFriendResponseValidationError) Field ¶
func (e GetFriendResponseValidationError) Field() string
Field function returns field value.
func (GetFriendResponseValidationError) Key ¶
func (e GetFriendResponseValidationError) Key() bool
Key function returns key value.
func (GetFriendResponseValidationError) Reason ¶
func (e GetFriendResponseValidationError) Reason() string
Reason function returns reason value.
type QueryFriendListRequest ¶
type QueryFriendListRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` // contains filtered or unexported fields }
func (*QueryFriendListRequest) Descriptor
deprecated
func (*QueryFriendListRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryFriendListRequest.ProtoReflect.Descriptor instead.
func (*QueryFriendListRequest) GetUid ¶
func (x *QueryFriendListRequest) GetUid() int64
func (*QueryFriendListRequest) ProtoMessage ¶
func (*QueryFriendListRequest) ProtoMessage()
func (*QueryFriendListRequest) ProtoReflect ¶
func (x *QueryFriendListRequest) ProtoReflect() protoreflect.Message
func (*QueryFriendListRequest) Reset ¶
func (x *QueryFriendListRequest) Reset()
func (*QueryFriendListRequest) String ¶
func (x *QueryFriendListRequest) String() string
func (*QueryFriendListRequest) Validate ¶
func (m *QueryFriendListRequest) Validate() error
Validate checks the field values on QueryFriendListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryFriendListRequest) ValidateAll ¶
func (m *QueryFriendListRequest) ValidateAll() error
ValidateAll checks the field values on QueryFriendListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryFriendListRequestMultiError, or nil if none found.
type QueryFriendListRequestMultiError ¶
type QueryFriendListRequestMultiError []error
QueryFriendListRequestMultiError is an error wrapping multiple validation errors returned by QueryFriendListRequest.ValidateAll() if the designated constraints aren't met.
func (QueryFriendListRequestMultiError) AllErrors ¶
func (m QueryFriendListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryFriendListRequestMultiError) Error ¶
func (m QueryFriendListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryFriendListRequestValidationError ¶
type QueryFriendListRequestValidationError struct {
// contains filtered or unexported fields
}
QueryFriendListRequestValidationError is the validation error returned by QueryFriendListRequest.Validate if the designated constraints aren't met.
func (QueryFriendListRequestValidationError) Cause ¶
func (e QueryFriendListRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryFriendListRequestValidationError) Error ¶
func (e QueryFriendListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryFriendListRequestValidationError) ErrorName ¶
func (e QueryFriendListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryFriendListRequestValidationError) Field ¶
func (e QueryFriendListRequestValidationError) Field() string
Field function returns field value.
func (QueryFriendListRequestValidationError) Key ¶
func (e QueryFriendListRequestValidationError) Key() bool
Key function returns key value.
func (QueryFriendListRequestValidationError) Reason ¶
func (e QueryFriendListRequestValidationError) Reason() string
Reason function returns reason value.
type QueryFriendListResponse ¶
type QueryFriendListResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` FriendList []*Friend `protobuf:"bytes,2,rep,name=friend_list,json=friendList,proto3" json:"friend_list,omitempty"` // contains filtered or unexported fields }
func (*QueryFriendListResponse) Descriptor
deprecated
func (*QueryFriendListResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryFriendListResponse.ProtoReflect.Descriptor instead.
func (*QueryFriendListResponse) GetError ¶ added in v0.0.9
func (x *QueryFriendListResponse) GetError() *errors.Error
func (*QueryFriendListResponse) GetFriendList ¶
func (x *QueryFriendListResponse) GetFriendList() []*Friend
func (*QueryFriendListResponse) ProtoMessage ¶
func (*QueryFriendListResponse) ProtoMessage()
func (*QueryFriendListResponse) ProtoReflect ¶
func (x *QueryFriendListResponse) ProtoReflect() protoreflect.Message
func (*QueryFriendListResponse) Reset ¶
func (x *QueryFriendListResponse) Reset()
func (*QueryFriendListResponse) String ¶
func (x *QueryFriendListResponse) String() string
func (*QueryFriendListResponse) Validate ¶
func (m *QueryFriendListResponse) Validate() error
Validate checks the field values on QueryFriendListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryFriendListResponse) ValidateAll ¶
func (m *QueryFriendListResponse) ValidateAll() error
ValidateAll checks the field values on QueryFriendListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryFriendListResponseMultiError, or nil if none found.
type QueryFriendListResponseMultiError ¶
type QueryFriendListResponseMultiError []error
QueryFriendListResponseMultiError is an error wrapping multiple validation errors returned by QueryFriendListResponse.ValidateAll() if the designated constraints aren't met.
func (QueryFriendListResponseMultiError) AllErrors ¶
func (m QueryFriendListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryFriendListResponseMultiError) Error ¶
func (m QueryFriendListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryFriendListResponseValidationError ¶
type QueryFriendListResponseValidationError struct {
// contains filtered or unexported fields
}
QueryFriendListResponseValidationError is the validation error returned by QueryFriendListResponse.Validate if the designated constraints aren't met.
func (QueryFriendListResponseValidationError) Cause ¶
func (e QueryFriendListResponseValidationError) Cause() error
Cause function returns cause value.
func (QueryFriendListResponseValidationError) Error ¶
func (e QueryFriendListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (QueryFriendListResponseValidationError) ErrorName ¶
func (e QueryFriendListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (QueryFriendListResponseValidationError) Field ¶
func (e QueryFriendListResponseValidationError) Field() string
Field function returns field value.
func (QueryFriendListResponseValidationError) Key ¶
func (e QueryFriendListResponseValidationError) Key() bool
Key function returns key value.
func (QueryFriendListResponseValidationError) Reason ¶
func (e QueryFriendListResponseValidationError) Reason() string
Reason function returns reason value.
type QueryFriendRequestListRequest ¶
type QueryFriendRequestListRequest struct { Uid int64 `protobuf:"varint,1,opt,name=uid,proto3" json:"uid,omitempty"` Status FriendRequestStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.user.friend.v1.FriendRequestStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*QueryFriendRequestListRequest) Descriptor
deprecated
func (*QueryFriendRequestListRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryFriendRequestListRequest.ProtoReflect.Descriptor instead.
func (*QueryFriendRequestListRequest) GetStatus ¶ added in v0.0.3
func (x *QueryFriendRequestListRequest) GetStatus() FriendRequestStatus
func (*QueryFriendRequestListRequest) GetUid ¶
func (x *QueryFriendRequestListRequest) GetUid() int64
func (*QueryFriendRequestListRequest) ProtoMessage ¶
func (*QueryFriendRequestListRequest) ProtoMessage()
func (*QueryFriendRequestListRequest) ProtoReflect ¶
func (x *QueryFriendRequestListRequest) ProtoReflect() protoreflect.Message
func (*QueryFriendRequestListRequest) Reset ¶
func (x *QueryFriendRequestListRequest) Reset()
func (*QueryFriendRequestListRequest) String ¶
func (x *QueryFriendRequestListRequest) String() string
func (*QueryFriendRequestListRequest) Validate ¶
func (m *QueryFriendRequestListRequest) Validate() error
Validate checks the field values on QueryFriendRequestListRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryFriendRequestListRequest) ValidateAll ¶
func (m *QueryFriendRequestListRequest) ValidateAll() error
ValidateAll checks the field values on QueryFriendRequestListRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryFriendRequestListRequestMultiError, or nil if none found.
type QueryFriendRequestListRequestMultiError ¶
type QueryFriendRequestListRequestMultiError []error
QueryFriendRequestListRequestMultiError is an error wrapping multiple validation errors returned by QueryFriendRequestListRequest.ValidateAll() if the designated constraints aren't met.
func (QueryFriendRequestListRequestMultiError) AllErrors ¶
func (m QueryFriendRequestListRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryFriendRequestListRequestMultiError) Error ¶
func (m QueryFriendRequestListRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryFriendRequestListRequestValidationError ¶
type QueryFriendRequestListRequestValidationError struct {
// contains filtered or unexported fields
}
QueryFriendRequestListRequestValidationError is the validation error returned by QueryFriendRequestListRequest.Validate if the designated constraints aren't met.
func (QueryFriendRequestListRequestValidationError) Cause ¶
func (e QueryFriendRequestListRequestValidationError) Cause() error
Cause function returns cause value.
func (QueryFriendRequestListRequestValidationError) Error ¶
func (e QueryFriendRequestListRequestValidationError) Error() string
Error satisfies the builtin error interface
func (QueryFriendRequestListRequestValidationError) ErrorName ¶
func (e QueryFriendRequestListRequestValidationError) ErrorName() string
ErrorName returns error name.
func (QueryFriendRequestListRequestValidationError) Field ¶
func (e QueryFriendRequestListRequestValidationError) Field() string
Field function returns field value.
func (QueryFriendRequestListRequestValidationError) Key ¶
func (e QueryFriendRequestListRequestValidationError) Key() bool
Key function returns key value.
func (QueryFriendRequestListRequestValidationError) Reason ¶
func (e QueryFriendRequestListRequestValidationError) Reason() string
Reason function returns reason value.
type QueryFriendRequestListResponse ¶
type QueryFriendRequestListResponse struct { Error *errors.Error `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` FriendRequestList []*FriendRequest `protobuf:"bytes,2,rep,name=friend_request_list,json=friendRequestList,proto3" json:"friend_request_list,omitempty"` // contains filtered or unexported fields }
func (*QueryFriendRequestListResponse) Descriptor
deprecated
func (*QueryFriendRequestListResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryFriendRequestListResponse.ProtoReflect.Descriptor instead.
func (*QueryFriendRequestListResponse) GetError ¶ added in v0.0.9
func (x *QueryFriendRequestListResponse) GetError() *errors.Error
func (*QueryFriendRequestListResponse) GetFriendRequestList ¶
func (x *QueryFriendRequestListResponse) GetFriendRequestList() []*FriendRequest
func (*QueryFriendRequestListResponse) ProtoMessage ¶
func (*QueryFriendRequestListResponse) ProtoMessage()
func (*QueryFriendRequestListResponse) ProtoReflect ¶
func (x *QueryFriendRequestListResponse) ProtoReflect() protoreflect.Message
func (*QueryFriendRequestListResponse) Reset ¶
func (x *QueryFriendRequestListResponse) Reset()
func (*QueryFriendRequestListResponse) String ¶
func (x *QueryFriendRequestListResponse) String() string
func (*QueryFriendRequestListResponse) Validate ¶
func (m *QueryFriendRequestListResponse) Validate() error
Validate checks the field values on QueryFriendRequestListResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*QueryFriendRequestListResponse) ValidateAll ¶
func (m *QueryFriendRequestListResponse) ValidateAll() error
ValidateAll checks the field values on QueryFriendRequestListResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in QueryFriendRequestListResponseMultiError, or nil if none found.
type QueryFriendRequestListResponseMultiError ¶
type QueryFriendRequestListResponseMultiError []error
QueryFriendRequestListResponseMultiError is an error wrapping multiple validation errors returned by QueryFriendRequestListResponse.ValidateAll() if the designated constraints aren't met.
func (QueryFriendRequestListResponseMultiError) AllErrors ¶
func (m QueryFriendRequestListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (QueryFriendRequestListResponseMultiError) Error ¶
func (m QueryFriendRequestListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type QueryFriendRequestListResponseValidationError ¶
type QueryFriendRequestListResponseValidationError struct {
// contains filtered or unexported fields
}
QueryFriendRequestListResponseValidationError is the validation error returned by QueryFriendRequestListResponse.Validate if the designated constraints aren't met.
func (QueryFriendRequestListResponseValidationError) Cause ¶
func (e QueryFriendRequestListResponseValidationError) Cause() error
Cause function returns cause value.
func (QueryFriendRequestListResponseValidationError) Error ¶
func (e QueryFriendRequestListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (QueryFriendRequestListResponseValidationError) ErrorName ¶
func (e QueryFriendRequestListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (QueryFriendRequestListResponseValidationError) Field ¶
func (e QueryFriendRequestListResponseValidationError) Field() string
Field function returns field value.
func (QueryFriendRequestListResponseValidationError) Key ¶
func (e QueryFriendRequestListResponseValidationError) Key() bool
Key function returns key value.
func (QueryFriendRequestListResponseValidationError) Reason ¶
func (e QueryFriendRequestListResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedFriendServiceServer ¶
type UnimplementedFriendServiceServer struct { }
UnimplementedFriendServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedFriendServiceServer) AddFriend ¶
func (UnimplementedFriendServiceServer) AddFriend(context.Context, *BaseFriendRequest) (*AddFriendResponse, error)
func (UnimplementedFriendServiceServer) CheckSendMessageAbility ¶ added in v0.0.3
func (UnimplementedFriendServiceServer) CheckSendMessageAbility(context.Context, *CheckSendMessageAbilityRequest) (*CheckSendMessageAbilityResponse, error)
func (UnimplementedFriendServiceServer) ConfirmFriendRequest ¶
func (UnimplementedFriendServiceServer) ConfirmFriendRequest(context.Context, *ConfirmFriendRequestRequest) (*errors.Error, error)
func (UnimplementedFriendServiceServer) GetFriend ¶
func (UnimplementedFriendServiceServer) GetFriend(context.Context, *BaseFriendRequest) (*GetFriendResponse, error)
func (UnimplementedFriendServiceServer) GetFriendRequest ¶
func (UnimplementedFriendServiceServer) GetFriendRequest(context.Context, *BaseFriendRequest) (*GetFriendRequestResponse, error)
func (UnimplementedFriendServiceServer) IsFriend ¶
func (UnimplementedFriendServiceServer) IsFriend(context.Context, *BaseFriendRequest) (*errors.Error, error)
func (UnimplementedFriendServiceServer) QueryFriendList ¶
func (UnimplementedFriendServiceServer) QueryFriendList(context.Context, *QueryFriendListRequest) (*QueryFriendListResponse, error)
func (UnimplementedFriendServiceServer) QueryFriendRequestList ¶
func (UnimplementedFriendServiceServer) QueryFriendRequestList(context.Context, *QueryFriendRequestListRequest) (*QueryFriendRequestListResponse, error)
func (UnimplementedFriendServiceServer) UpdateFriendStatus ¶
func (UnimplementedFriendServiceServer) UpdateFriendStatus(context.Context, *UpdateFriendStatusRequest) (*errors.Error, error)
type UnsafeFriendServiceServer ¶
type UnsafeFriendServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFriendServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FriendServiceServer will result in compilation errors.
type UpdateFriendStatusRequest ¶
type UpdateFriendStatusRequest struct { Info *BaseFriendRequest `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` Status FriendStatus `protobuf:"varint,2,opt,name=status,proto3,enum=api.user.friend.v1.FriendStatus" json:"status,omitempty"` // contains filtered or unexported fields }
func (*UpdateFriendStatusRequest) Descriptor
deprecated
func (*UpdateFriendStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateFriendStatusRequest.ProtoReflect.Descriptor instead.
func (*UpdateFriendStatusRequest) GetInfo ¶
func (x *UpdateFriendStatusRequest) GetInfo() *BaseFriendRequest
func (*UpdateFriendStatusRequest) GetStatus ¶
func (x *UpdateFriendStatusRequest) GetStatus() FriendStatus
func (*UpdateFriendStatusRequest) ProtoMessage ¶
func (*UpdateFriendStatusRequest) ProtoMessage()
func (*UpdateFriendStatusRequest) ProtoReflect ¶
func (x *UpdateFriendStatusRequest) ProtoReflect() protoreflect.Message
func (*UpdateFriendStatusRequest) Reset ¶
func (x *UpdateFriendStatusRequest) Reset()
func (*UpdateFriendStatusRequest) String ¶
func (x *UpdateFriendStatusRequest) String() string
func (*UpdateFriendStatusRequest) Validate ¶
func (m *UpdateFriendStatusRequest) Validate() error
Validate checks the field values on UpdateFriendStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*UpdateFriendStatusRequest) ValidateAll ¶
func (m *UpdateFriendStatusRequest) ValidateAll() error
ValidateAll checks the field values on UpdateFriendStatusRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in UpdateFriendStatusRequestMultiError, or nil if none found.
type UpdateFriendStatusRequestMultiError ¶
type UpdateFriendStatusRequestMultiError []error
UpdateFriendStatusRequestMultiError is an error wrapping multiple validation errors returned by UpdateFriendStatusRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateFriendStatusRequestMultiError) AllErrors ¶
func (m UpdateFriendStatusRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateFriendStatusRequestMultiError) Error ¶
func (m UpdateFriendStatusRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateFriendStatusRequestValidationError ¶
type UpdateFriendStatusRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateFriendStatusRequestValidationError is the validation error returned by UpdateFriendStatusRequest.Validate if the designated constraints aren't met.
func (UpdateFriendStatusRequestValidationError) Cause ¶
func (e UpdateFriendStatusRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateFriendStatusRequestValidationError) Error ¶
func (e UpdateFriendStatusRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateFriendStatusRequestValidationError) ErrorName ¶
func (e UpdateFriendStatusRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateFriendStatusRequestValidationError) Field ¶
func (e UpdateFriendStatusRequestValidationError) Field() string
Field function returns field value.
func (UpdateFriendStatusRequestValidationError) Key ¶
func (e UpdateFriendStatusRequestValidationError) Key() bool
Key function returns key value.
func (UpdateFriendStatusRequestValidationError) Reason ¶
func (e UpdateFriendStatusRequestValidationError) Reason() string
Reason function returns reason value.