Documentation ¶
Index ¶
- Variables
- func RegisterTwitterServer(s grpc.ServiceRegistrar, srv TwitterServer)
- type AddCommentRequest
- func (*AddCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentRequest) GetText() string
- func (x *AddCommentRequest) GetTweetId() int64
- func (x *AddCommentRequest) GetUserId() int64
- func (*AddCommentRequest) ProtoMessage()
- func (x *AddCommentRequest) ProtoReflect() protoreflect.Message
- func (x *AddCommentRequest) Reset()
- func (x *AddCommentRequest) String() string
- func (m *AddCommentRequest) Validate() error
- func (m *AddCommentRequest) ValidateAll() error
- type AddCommentRequestMultiError
- type AddCommentRequestValidationError
- func (e AddCommentRequestValidationError) Cause() error
- func (e AddCommentRequestValidationError) Error() string
- func (e AddCommentRequestValidationError) ErrorName() string
- func (e AddCommentRequestValidationError) Field() string
- func (e AddCommentRequestValidationError) Key() bool
- func (e AddCommentRequestValidationError) Reason() string
- type AddCommentResponse
- func (*AddCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddCommentResponse) GetCommentId() int64
- func (*AddCommentResponse) ProtoMessage()
- func (x *AddCommentResponse) ProtoReflect() protoreflect.Message
- func (x *AddCommentResponse) Reset()
- func (x *AddCommentResponse) String() string
- func (m *AddCommentResponse) Validate() error
- func (m *AddCommentResponse) ValidateAll() error
- type AddCommentResponseMultiError
- type AddCommentResponseValidationError
- func (e AddCommentResponseValidationError) Cause() error
- func (e AddCommentResponseValidationError) Error() string
- func (e AddCommentResponseValidationError) ErrorName() string
- func (e AddCommentResponseValidationError) Field() string
- func (e AddCommentResponseValidationError) Key() bool
- func (e AddCommentResponseValidationError) Reason() string
- type AddTweetRequest
- func (*AddTweetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddTweetRequest) GetText() string
- func (x *AddTweetRequest) GetUserId() int64
- func (*AddTweetRequest) ProtoMessage()
- func (x *AddTweetRequest) ProtoReflect() protoreflect.Message
- func (x *AddTweetRequest) Reset()
- func (x *AddTweetRequest) String() string
- func (m *AddTweetRequest) Validate() error
- func (m *AddTweetRequest) ValidateAll() error
- type AddTweetRequestMultiError
- type AddTweetRequestValidationError
- func (e AddTweetRequestValidationError) Cause() error
- func (e AddTweetRequestValidationError) Error() string
- func (e AddTweetRequestValidationError) ErrorName() string
- func (e AddTweetRequestValidationError) Field() string
- func (e AddTweetRequestValidationError) Key() bool
- func (e AddTweetRequestValidationError) Reason() string
- type AddTweetResponse
- func (*AddTweetResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddTweetResponse) GetTweetId() int64
- func (*AddTweetResponse) ProtoMessage()
- func (x *AddTweetResponse) ProtoReflect() protoreflect.Message
- func (x *AddTweetResponse) Reset()
- func (x *AddTweetResponse) String() string
- func (m *AddTweetResponse) Validate() error
- func (m *AddTweetResponse) ValidateAll() error
- type AddTweetResponseMultiError
- type AddTweetResponseValidationError
- func (e AddTweetResponseValidationError) Cause() error
- func (e AddTweetResponseValidationError) Error() string
- func (e AddTweetResponseValidationError) ErrorName() string
- func (e AddTweetResponseValidationError) Field() string
- func (e AddTweetResponseValidationError) Key() bool
- func (e AddTweetResponseValidationError) Reason() string
- type FollowRequest
- func (*FollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FollowRequest) GetNewFollowerId() int64
- func (x *FollowRequest) GetUserId() int64
- func (*FollowRequest) ProtoMessage()
- func (x *FollowRequest) ProtoReflect() protoreflect.Message
- func (x *FollowRequest) Reset()
- func (x *FollowRequest) String() string
- func (m *FollowRequest) Validate() error
- func (m *FollowRequest) ValidateAll() error
- type FollowRequestMultiError
- type FollowRequestValidationError
- func (e FollowRequestValidationError) Cause() error
- func (e FollowRequestValidationError) Error() string
- func (e FollowRequestValidationError) ErrorName() string
- func (e FollowRequestValidationError) Field() string
- func (e FollowRequestValidationError) Key() bool
- func (e FollowRequestValidationError) Reason() string
- type FollowResponse
- func (*FollowResponse) Descriptor() ([]byte, []int)deprecated
- func (*FollowResponse) ProtoMessage()
- func (x *FollowResponse) ProtoReflect() protoreflect.Message
- func (x *FollowResponse) Reset()
- func (x *FollowResponse) String() string
- func (m *FollowResponse) Validate() error
- func (m *FollowResponse) ValidateAll() error
- type FollowResponseMultiError
- type FollowResponseValidationError
- func (e FollowResponseValidationError) Cause() error
- func (e FollowResponseValidationError) Error() string
- func (e FollowResponseValidationError) ErrorName() string
- func (e FollowResponseValidationError) Field() string
- func (e FollowResponseValidationError) Key() bool
- func (e FollowResponseValidationError) Reason() string
- type GetFollowersRequest
- func (*GetFollowersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowersRequest) GetUserId() int64
- func (*GetFollowersRequest) ProtoMessage()
- func (x *GetFollowersRequest) ProtoReflect() protoreflect.Message
- func (x *GetFollowersRequest) Reset()
- func (x *GetFollowersRequest) String() string
- func (m *GetFollowersRequest) Validate() error
- func (m *GetFollowersRequest) ValidateAll() error
- type GetFollowersRequestMultiError
- type GetFollowersRequestValidationError
- func (e GetFollowersRequestValidationError) Cause() error
- func (e GetFollowersRequestValidationError) Error() string
- func (e GetFollowersRequestValidationError) ErrorName() string
- func (e GetFollowersRequestValidationError) Field() string
- func (e GetFollowersRequestValidationError) Key() bool
- func (e GetFollowersRequestValidationError) Reason() string
- type GetFollowersResponse
- func (*GetFollowersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowersResponse) GetUsers() []*UserProfile
- func (*GetFollowersResponse) ProtoMessage()
- func (x *GetFollowersResponse) ProtoReflect() protoreflect.Message
- func (x *GetFollowersResponse) Reset()
- func (x *GetFollowersResponse) String() string
- func (m *GetFollowersResponse) Validate() error
- func (m *GetFollowersResponse) ValidateAll() error
- type GetFollowersResponseMultiError
- type GetFollowersResponseValidationError
- func (e GetFollowersResponseValidationError) Cause() error
- func (e GetFollowersResponseValidationError) Error() string
- func (e GetFollowersResponseValidationError) ErrorName() string
- func (e GetFollowersResponseValidationError) Field() string
- func (e GetFollowersResponseValidationError) Key() bool
- func (e GetFollowersResponseValidationError) Reason() string
- type GetFollowingRequest
- func (*GetFollowingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingRequest) GetUserId() int64
- func (*GetFollowingRequest) ProtoMessage()
- func (x *GetFollowingRequest) ProtoReflect() protoreflect.Message
- func (x *GetFollowingRequest) Reset()
- func (x *GetFollowingRequest) String() string
- func (m *GetFollowingRequest) Validate() error
- func (m *GetFollowingRequest) ValidateAll() error
- type GetFollowingRequestMultiError
- type GetFollowingRequestValidationError
- func (e GetFollowingRequestValidationError) Cause() error
- func (e GetFollowingRequestValidationError) Error() string
- func (e GetFollowingRequestValidationError) ErrorName() string
- func (e GetFollowingRequestValidationError) Field() string
- func (e GetFollowingRequestValidationError) Key() bool
- func (e GetFollowingRequestValidationError) Reason() string
- type GetFollowingResponse
- func (*GetFollowingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetFollowingResponse) GetUsers() []*UserProfile
- func (*GetFollowingResponse) ProtoMessage()
- func (x *GetFollowingResponse) ProtoReflect() protoreflect.Message
- func (x *GetFollowingResponse) Reset()
- func (x *GetFollowingResponse) String() string
- func (m *GetFollowingResponse) Validate() error
- func (m *GetFollowingResponse) ValidateAll() error
- type GetFollowingResponseMultiError
- type GetFollowingResponseValidationError
- func (e GetFollowingResponseValidationError) Cause() error
- func (e GetFollowingResponseValidationError) Error() string
- func (e GetFollowingResponseValidationError) ErrorName() string
- func (e GetFollowingResponseValidationError) Field() string
- func (e GetFollowingResponseValidationError) Key() bool
- func (e GetFollowingResponseValidationError) Reason() string
- type GetNewsFeedRequest
- func (*GetNewsFeedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetNewsFeedRequest) GetLimit() int64
- func (x *GetNewsFeedRequest) GetOffset() int64
- func (x *GetNewsFeedRequest) GetUserId() int64
- func (*GetNewsFeedRequest) ProtoMessage()
- func (x *GetNewsFeedRequest) ProtoReflect() protoreflect.Message
- func (x *GetNewsFeedRequest) Reset()
- func (x *GetNewsFeedRequest) String() string
- func (m *GetNewsFeedRequest) Validate() error
- func (m *GetNewsFeedRequest) ValidateAll() error
- type GetNewsFeedRequestMultiError
- type GetNewsFeedRequestValidationError
- func (e GetNewsFeedRequestValidationError) Cause() error
- func (e GetNewsFeedRequestValidationError) Error() string
- func (e GetNewsFeedRequestValidationError) ErrorName() string
- func (e GetNewsFeedRequestValidationError) Field() string
- func (e GetNewsFeedRequestValidationError) Key() bool
- func (e GetNewsFeedRequestValidationError) Reason() string
- type GetNewsFeedResponse
- func (*GetNewsFeedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetNewsFeedResponse) GetTweets() []string
- func (*GetNewsFeedResponse) ProtoMessage()
- func (x *GetNewsFeedResponse) ProtoReflect() protoreflect.Message
- func (x *GetNewsFeedResponse) Reset()
- func (x *GetNewsFeedResponse) String() string
- func (m *GetNewsFeedResponse) Validate() error
- func (m *GetNewsFeedResponse) ValidateAll() error
- type GetNewsFeedResponseMultiError
- type GetNewsFeedResponseValidationError
- func (e GetNewsFeedResponseValidationError) Cause() error
- func (e GetNewsFeedResponseValidationError) Error() string
- func (e GetNewsFeedResponseValidationError) ErrorName() string
- func (e GetNewsFeedResponseValidationError) Field() string
- func (e GetNewsFeedResponseValidationError) Key() bool
- func (e GetNewsFeedResponseValidationError) Reason() string
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetEmail() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- func (m *LoginRequest) Validate() error
- func (m *LoginRequest) ValidateAll() error
- type LoginRequestMultiError
- type LoginRequestValidationError
- func (e LoginRequestValidationError) Cause() error
- func (e LoginRequestValidationError) Error() string
- func (e LoginRequestValidationError) ErrorName() string
- func (e LoginRequestValidationError) Field() string
- func (e LoginRequestValidationError) Key() bool
- func (e LoginRequestValidationError) Reason() string
- type LoginResponse
- func (*LoginResponse) Descriptor() ([]byte, []int)deprecated
- func (x *LoginResponse) GetUserId() int64
- func (x *LoginResponse) GetUserProfile() *UserProfile
- func (*LoginResponse) ProtoMessage()
- func (x *LoginResponse) ProtoReflect() protoreflect.Message
- func (x *LoginResponse) Reset()
- func (x *LoginResponse) String() string
- func (m *LoginResponse) Validate() error
- func (m *LoginResponse) ValidateAll() error
- type LoginResponseMultiError
- type LoginResponseValidationError
- func (e LoginResponseValidationError) Cause() error
- func (e LoginResponseValidationError) Error() string
- func (e LoginResponseValidationError) ErrorName() string
- func (e LoginResponseValidationError) Field() string
- func (e LoginResponseValidationError) Key() bool
- func (e LoginResponseValidationError) Reason() string
- type RecommendUsersRequest
- func (*RecommendUsersRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RecommendUsersRequest) GetUserId() int64
- func (*RecommendUsersRequest) ProtoMessage()
- func (x *RecommendUsersRequest) ProtoReflect() protoreflect.Message
- func (x *RecommendUsersRequest) Reset()
- func (x *RecommendUsersRequest) String() string
- func (m *RecommendUsersRequest) Validate() error
- func (m *RecommendUsersRequest) ValidateAll() error
- type RecommendUsersRequestMultiError
- type RecommendUsersRequestValidationError
- func (e RecommendUsersRequestValidationError) Cause() error
- func (e RecommendUsersRequestValidationError) Error() string
- func (e RecommendUsersRequestValidationError) ErrorName() string
- func (e RecommendUsersRequestValidationError) Field() string
- func (e RecommendUsersRequestValidationError) Key() bool
- func (e RecommendUsersRequestValidationError) Reason() string
- type RecommendUsersResponse
- func (*RecommendUsersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RecommendUsersResponse) GetUsers() []*UserProfile
- func (*RecommendUsersResponse) ProtoMessage()
- func (x *RecommendUsersResponse) ProtoReflect() protoreflect.Message
- func (x *RecommendUsersResponse) Reset()
- func (x *RecommendUsersResponse) String() string
- func (m *RecommendUsersResponse) Validate() error
- func (m *RecommendUsersResponse) ValidateAll() error
- type RecommendUsersResponseMultiError
- type RecommendUsersResponseValidationError
- func (e RecommendUsersResponseValidationError) Cause() error
- func (e RecommendUsersResponseValidationError) Error() string
- func (e RecommendUsersResponseValidationError) ErrorName() string
- func (e RecommendUsersResponseValidationError) Field() string
- func (e RecommendUsersResponseValidationError) Key() bool
- func (e RecommendUsersResponseValidationError) Reason() string
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetUser() *UserProfile
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- func (m *RegisterRequest) Validate() error
- func (m *RegisterRequest) ValidateAll() error
- type RegisterRequestMultiError
- type RegisterRequestValidationError
- func (e RegisterRequestValidationError) Cause() error
- func (e RegisterRequestValidationError) Error() string
- func (e RegisterRequestValidationError) ErrorName() string
- func (e RegisterRequestValidationError) Field() string
- func (e RegisterRequestValidationError) Key() bool
- func (e RegisterRequestValidationError) Reason() string
- type RegisterResponse
- func (*RegisterResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterResponse) GetUserId() int64
- func (*RegisterResponse) ProtoMessage()
- func (x *RegisterResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterResponse) Reset()
- func (x *RegisterResponse) String() string
- func (m *RegisterResponse) Validate() error
- func (m *RegisterResponse) ValidateAll() error
- type RegisterResponseMultiError
- type RegisterResponseValidationError
- func (e RegisterResponseValidationError) Cause() error
- func (e RegisterResponseValidationError) Error() string
- func (e RegisterResponseValidationError) ErrorName() string
- func (e RegisterResponseValidationError) Field() string
- func (e RegisterResponseValidationError) Key() bool
- func (e RegisterResponseValidationError) Reason() string
- type TwitterClient
- type TwitterServer
- type UnfollowRequest
- func (*UnfollowRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnfollowRequest) GetOldFollowerId() int64
- func (x *UnfollowRequest) GetUserId() int64
- func (*UnfollowRequest) ProtoMessage()
- func (x *UnfollowRequest) ProtoReflect() protoreflect.Message
- func (x *UnfollowRequest) Reset()
- func (x *UnfollowRequest) String() string
- func (m *UnfollowRequest) Validate() error
- func (m *UnfollowRequest) ValidateAll() error
- type UnfollowRequestMultiError
- type UnfollowRequestValidationError
- func (e UnfollowRequestValidationError) Cause() error
- func (e UnfollowRequestValidationError) Error() string
- func (e UnfollowRequestValidationError) ErrorName() string
- func (e UnfollowRequestValidationError) Field() string
- func (e UnfollowRequestValidationError) Key() bool
- func (e UnfollowRequestValidationError) Reason() string
- type UnfollowResponse
- func (*UnfollowResponse) Descriptor() ([]byte, []int)deprecated
- func (*UnfollowResponse) ProtoMessage()
- func (x *UnfollowResponse) ProtoReflect() protoreflect.Message
- func (x *UnfollowResponse) Reset()
- func (x *UnfollowResponse) String() string
- func (m *UnfollowResponse) Validate() error
- func (m *UnfollowResponse) ValidateAll() error
- type UnfollowResponseMultiError
- type UnfollowResponseValidationError
- func (e UnfollowResponseValidationError) Cause() error
- func (e UnfollowResponseValidationError) Error() string
- func (e UnfollowResponseValidationError) ErrorName() string
- func (e UnfollowResponseValidationError) Field() string
- func (e UnfollowResponseValidationError) Key() bool
- func (e UnfollowResponseValidationError) Reason() string
- type UnimplementedTwitterServer
- func (UnimplementedTwitterServer) AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
- func (UnimplementedTwitterServer) AddTweet(context.Context, *AddTweetRequest) (*AddTweetResponse, error)
- func (UnimplementedTwitterServer) Follow(context.Context, *FollowRequest) (*FollowResponse, error)
- func (UnimplementedTwitterServer) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error)
- func (UnimplementedTwitterServer) GetFollowing(context.Context, *GetFollowingRequest) (*GetFollowingResponse, error)
- func (UnimplementedTwitterServer) GetNewsFeed(context.Context, *GetNewsFeedRequest) (*GetNewsFeedResponse, error)
- func (UnimplementedTwitterServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
- func (UnimplementedTwitterServer) RecommendUsers(context.Context, *RecommendUsersRequest) (*RecommendUsersResponse, error)
- func (UnimplementedTwitterServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
- func (UnimplementedTwitterServer) Unfollow(context.Context, *UnfollowRequest) (*UnfollowResponse, error)
- func (UnimplementedTwitterServer) UpdateCaption(context.Context, *UpdateCaptionRequest) (*UpdateCaptionResponse, error)
- func (UnimplementedTwitterServer) UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error)
- func (UnimplementedTwitterServer) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error)
- type UnsafeTwitterServer
- type UpdateCaptionRequest
- func (*UpdateCaptionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCaptionRequest) GetNewCaption() string
- func (x *UpdateCaptionRequest) GetUserId() int64
- func (*UpdateCaptionRequest) ProtoMessage()
- func (x *UpdateCaptionRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCaptionRequest) Reset()
- func (x *UpdateCaptionRequest) String() string
- func (m *UpdateCaptionRequest) Validate() error
- func (m *UpdateCaptionRequest) ValidateAll() error
- type UpdateCaptionRequestMultiError
- type UpdateCaptionRequestValidationError
- func (e UpdateCaptionRequestValidationError) Cause() error
- func (e UpdateCaptionRequestValidationError) Error() string
- func (e UpdateCaptionRequestValidationError) ErrorName() string
- func (e UpdateCaptionRequestValidationError) Field() string
- func (e UpdateCaptionRequestValidationError) Key() bool
- func (e UpdateCaptionRequestValidationError) Reason() string
- type UpdateCaptionResponse
- func (*UpdateCaptionResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateCaptionResponse) ProtoMessage()
- func (x *UpdateCaptionResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCaptionResponse) Reset()
- func (x *UpdateCaptionResponse) String() string
- func (m *UpdateCaptionResponse) Validate() error
- func (m *UpdateCaptionResponse) ValidateAll() error
- type UpdateCaptionResponseMultiError
- type UpdateCaptionResponseValidationError
- func (e UpdateCaptionResponseValidationError) Cause() error
- func (e UpdateCaptionResponseValidationError) Error() string
- func (e UpdateCaptionResponseValidationError) ErrorName() string
- func (e UpdateCaptionResponseValidationError) Field() string
- func (e UpdateCaptionResponseValidationError) Key() bool
- func (e UpdateCaptionResponseValidationError) Reason() string
- type UpdateCommentRequest
- func (*UpdateCommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateCommentRequest) GetCommentId() int64
- func (x *UpdateCommentRequest) GetNewText() string
- func (x *UpdateCommentRequest) GetUserId() int64
- func (*UpdateCommentRequest) ProtoMessage()
- func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentRequest) Reset()
- func (x *UpdateCommentRequest) String() string
- func (m *UpdateCommentRequest) Validate() error
- func (m *UpdateCommentRequest) ValidateAll() error
- type UpdateCommentRequestMultiError
- type UpdateCommentRequestValidationError
- func (e UpdateCommentRequestValidationError) Cause() error
- func (e UpdateCommentRequestValidationError) Error() string
- func (e UpdateCommentRequestValidationError) ErrorName() string
- func (e UpdateCommentRequestValidationError) Field() string
- func (e UpdateCommentRequestValidationError) Key() bool
- func (e UpdateCommentRequestValidationError) Reason() string
- type UpdateCommentResponse
- func (*UpdateCommentResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateCommentResponse) ProtoMessage()
- func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateCommentResponse) Reset()
- func (x *UpdateCommentResponse) String() string
- func (m *UpdateCommentResponse) Validate() error
- func (m *UpdateCommentResponse) ValidateAll() error
- type UpdateCommentResponseMultiError
- type UpdateCommentResponseValidationError
- func (e UpdateCommentResponseValidationError) Cause() error
- func (e UpdateCommentResponseValidationError) Error() string
- func (e UpdateCommentResponseValidationError) ErrorName() string
- func (e UpdateCommentResponseValidationError) Field() string
- func (e UpdateCommentResponseValidationError) Key() bool
- func (e UpdateCommentResponseValidationError) Reason() string
- type UpdateTweetRequest
- func (*UpdateTweetRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateTweetRequest) GetNewText() string
- func (x *UpdateTweetRequest) GetTweetId() int64
- func (x *UpdateTweetRequest) GetUserId() int64
- func (*UpdateTweetRequest) ProtoMessage()
- func (x *UpdateTweetRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateTweetRequest) Reset()
- func (x *UpdateTweetRequest) String() string
- func (m *UpdateTweetRequest) Validate() error
- func (m *UpdateTweetRequest) ValidateAll() error
- type UpdateTweetRequestMultiError
- type UpdateTweetRequestValidationError
- func (e UpdateTweetRequestValidationError) Cause() error
- func (e UpdateTweetRequestValidationError) Error() string
- func (e UpdateTweetRequestValidationError) ErrorName() string
- func (e UpdateTweetRequestValidationError) Field() string
- func (e UpdateTweetRequestValidationError) Key() bool
- func (e UpdateTweetRequestValidationError) Reason() string
- type UpdateTweetResponse
- func (*UpdateTweetResponse) Descriptor() ([]byte, []int)deprecated
- func (*UpdateTweetResponse) ProtoMessage()
- func (x *UpdateTweetResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateTweetResponse) Reset()
- func (x *UpdateTweetResponse) String() string
- func (m *UpdateTweetResponse) Validate() error
- func (m *UpdateTweetResponse) ValidateAll() error
- type UpdateTweetResponseMultiError
- type UpdateTweetResponseValidationError
- func (e UpdateTweetResponseValidationError) Cause() error
- func (e UpdateTweetResponseValidationError) Error() string
- func (e UpdateTweetResponseValidationError) ErrorName() string
- func (e UpdateTweetResponseValidationError) Field() string
- func (e UpdateTweetResponseValidationError) Key() bool
- func (e UpdateTweetResponseValidationError) Reason() string
- type UserProfile
- func (*UserProfile) Descriptor() ([]byte, []int)deprecated
- func (x *UserProfile) GetCaption() string
- func (x *UserProfile) GetDateOfBirth() *timestamppb.Timestamp
- func (x *UserProfile) GetEmail() string
- func (x *UserProfile) GetFullName() string
- func (*UserProfile) ProtoMessage()
- func (x *UserProfile) ProtoReflect() protoreflect.Message
- func (x *UserProfile) Reset()
- func (x *UserProfile) String() string
- func (m *UserProfile) Validate() error
- func (m *UserProfile) ValidateAll() error
- type UserProfileMultiError
- type UserProfileValidationError
- func (e UserProfileValidationError) Cause() error
- func (e UserProfileValidationError) Error() string
- func (e UserProfileValidationError) ErrorName() string
- func (e UserProfileValidationError) Field() string
- func (e UserProfileValidationError) Key() bool
- func (e UserProfileValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_pkg_proto_twitter_proto protoreflect.FileDescriptor
var Twitter_ServiceDesc = grpc.ServiceDesc{ ServiceName: "Twitter", HandlerType: (*TwitterServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AddTweet", Handler: _Twitter_AddTweet_Handler, }, { MethodName: "AddComment", Handler: _Twitter_AddComment_Handler, }, { MethodName: "UpdateTweet", Handler: _Twitter_UpdateTweet_Handler, }, { MethodName: "UpdateComment", Handler: _Twitter_UpdateComment_Handler, }, { MethodName: "GetNewsFeed", Handler: _Twitter_GetNewsFeed_Handler, }, { MethodName: "Follow", Handler: _Twitter_Follow_Handler, }, { MethodName: "Unfollow", Handler: _Twitter_Unfollow_Handler, }, { MethodName: "GetFollowing", Handler: _Twitter_GetFollowing_Handler, }, { MethodName: "GetFollowers", Handler: _Twitter_GetFollowers_Handler, }, { MethodName: "RecommendUsers", Handler: _Twitter_RecommendUsers_Handler, }, { MethodName: "Register", Handler: _Twitter_Register_Handler, }, { MethodName: "UpdateCaption", Handler: _Twitter_UpdateCaption_Handler, }, { MethodName: "Login", Handler: _Twitter_Login_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/proto/twitter.proto", }
Twitter_ServiceDesc is the grpc.ServiceDesc for Twitter service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterTwitterServer ¶
func RegisterTwitterServer(s grpc.ServiceRegistrar, srv TwitterServer)
Types ¶
type AddCommentRequest ¶
type AddCommentRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TweetId int64 `protobuf:"varint,2,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"` Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*AddCommentRequest) Descriptor
deprecated
func (*AddCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentRequest.ProtoReflect.Descriptor instead.
func (*AddCommentRequest) GetText ¶
func (x *AddCommentRequest) GetText() string
func (*AddCommentRequest) GetTweetId ¶
func (x *AddCommentRequest) GetTweetId() int64
func (*AddCommentRequest) GetUserId ¶
func (x *AddCommentRequest) GetUserId() int64
func (*AddCommentRequest) ProtoMessage ¶
func (*AddCommentRequest) ProtoMessage()
func (*AddCommentRequest) ProtoReflect ¶
func (x *AddCommentRequest) ProtoReflect() protoreflect.Message
func (*AddCommentRequest) Reset ¶
func (x *AddCommentRequest) Reset()
func (*AddCommentRequest) String ¶
func (x *AddCommentRequest) String() string
func (*AddCommentRequest) Validate ¶
func (m *AddCommentRequest) Validate() error
Validate checks the field values on AddCommentRequest 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 (*AddCommentRequest) ValidateAll ¶
func (m *AddCommentRequest) ValidateAll() error
ValidateAll checks the field values on AddCommentRequest 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 AddCommentRequestMultiError, or nil if none found.
type AddCommentRequestMultiError ¶
type AddCommentRequestMultiError []error
AddCommentRequestMultiError is an error wrapping multiple validation errors returned by AddCommentRequest.ValidateAll() if the designated constraints aren't met.
func (AddCommentRequestMultiError) AllErrors ¶
func (m AddCommentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddCommentRequestMultiError) Error ¶
func (m AddCommentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddCommentRequestValidationError ¶
type AddCommentRequestValidationError struct {
// contains filtered or unexported fields
}
AddCommentRequestValidationError is the validation error returned by AddCommentRequest.Validate if the designated constraints aren't met.
func (AddCommentRequestValidationError) Cause ¶
func (e AddCommentRequestValidationError) Cause() error
Cause function returns cause value.
func (AddCommentRequestValidationError) Error ¶
func (e AddCommentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddCommentRequestValidationError) ErrorName ¶
func (e AddCommentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddCommentRequestValidationError) Field ¶
func (e AddCommentRequestValidationError) Field() string
Field function returns field value.
func (AddCommentRequestValidationError) Key ¶
func (e AddCommentRequestValidationError) Key() bool
Key function returns key value.
func (AddCommentRequestValidationError) Reason ¶
func (e AddCommentRequestValidationError) Reason() string
Reason function returns reason value.
type AddCommentResponse ¶
type AddCommentResponse struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` // contains filtered or unexported fields }
func (*AddCommentResponse) Descriptor
deprecated
func (*AddCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddCommentResponse.ProtoReflect.Descriptor instead.
func (*AddCommentResponse) GetCommentId ¶
func (x *AddCommentResponse) GetCommentId() int64
func (*AddCommentResponse) ProtoMessage ¶
func (*AddCommentResponse) ProtoMessage()
func (*AddCommentResponse) ProtoReflect ¶
func (x *AddCommentResponse) ProtoReflect() protoreflect.Message
func (*AddCommentResponse) Reset ¶
func (x *AddCommentResponse) Reset()
func (*AddCommentResponse) String ¶
func (x *AddCommentResponse) String() string
func (*AddCommentResponse) Validate ¶
func (m *AddCommentResponse) Validate() error
Validate checks the field values on AddCommentResponse 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 (*AddCommentResponse) ValidateAll ¶
func (m *AddCommentResponse) ValidateAll() error
ValidateAll checks the field values on AddCommentResponse 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 AddCommentResponseMultiError, or nil if none found.
type AddCommentResponseMultiError ¶
type AddCommentResponseMultiError []error
AddCommentResponseMultiError is an error wrapping multiple validation errors returned by AddCommentResponse.ValidateAll() if the designated constraints aren't met.
func (AddCommentResponseMultiError) AllErrors ¶
func (m AddCommentResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddCommentResponseMultiError) Error ¶
func (m AddCommentResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddCommentResponseValidationError ¶
type AddCommentResponseValidationError struct {
// contains filtered or unexported fields
}
AddCommentResponseValidationError is the validation error returned by AddCommentResponse.Validate if the designated constraints aren't met.
func (AddCommentResponseValidationError) Cause ¶
func (e AddCommentResponseValidationError) Cause() error
Cause function returns cause value.
func (AddCommentResponseValidationError) Error ¶
func (e AddCommentResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddCommentResponseValidationError) ErrorName ¶
func (e AddCommentResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddCommentResponseValidationError) Field ¶
func (e AddCommentResponseValidationError) Field() string
Field function returns field value.
func (AddCommentResponseValidationError) Key ¶
func (e AddCommentResponseValidationError) Key() bool
Key function returns key value.
func (AddCommentResponseValidationError) Reason ¶
func (e AddCommentResponseValidationError) Reason() string
Reason function returns reason value.
type AddTweetRequest ¶
type AddTweetRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Text string `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"` // contains filtered or unexported fields }
func (*AddTweetRequest) Descriptor
deprecated
func (*AddTweetRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddTweetRequest.ProtoReflect.Descriptor instead.
func (*AddTweetRequest) GetText ¶
func (x *AddTweetRequest) GetText() string
func (*AddTweetRequest) GetUserId ¶
func (x *AddTweetRequest) GetUserId() int64
func (*AddTweetRequest) ProtoMessage ¶
func (*AddTweetRequest) ProtoMessage()
func (*AddTweetRequest) ProtoReflect ¶
func (x *AddTweetRequest) ProtoReflect() protoreflect.Message
func (*AddTweetRequest) Reset ¶
func (x *AddTweetRequest) Reset()
func (*AddTweetRequest) String ¶
func (x *AddTweetRequest) String() string
func (*AddTweetRequest) Validate ¶
func (m *AddTweetRequest) Validate() error
Validate checks the field values on AddTweetRequest 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 (*AddTweetRequest) ValidateAll ¶
func (m *AddTweetRequest) ValidateAll() error
ValidateAll checks the field values on AddTweetRequest 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 AddTweetRequestMultiError, or nil if none found.
type AddTweetRequestMultiError ¶
type AddTweetRequestMultiError []error
AddTweetRequestMultiError is an error wrapping multiple validation errors returned by AddTweetRequest.ValidateAll() if the designated constraints aren't met.
func (AddTweetRequestMultiError) AllErrors ¶
func (m AddTweetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddTweetRequestMultiError) Error ¶
func (m AddTweetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddTweetRequestValidationError ¶
type AddTweetRequestValidationError struct {
// contains filtered or unexported fields
}
AddTweetRequestValidationError is the validation error returned by AddTweetRequest.Validate if the designated constraints aren't met.
func (AddTweetRequestValidationError) Cause ¶
func (e AddTweetRequestValidationError) Cause() error
Cause function returns cause value.
func (AddTweetRequestValidationError) Error ¶
func (e AddTweetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AddTweetRequestValidationError) ErrorName ¶
func (e AddTweetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AddTweetRequestValidationError) Field ¶
func (e AddTweetRequestValidationError) Field() string
Field function returns field value.
func (AddTweetRequestValidationError) Key ¶
func (e AddTweetRequestValidationError) Key() bool
Key function returns key value.
func (AddTweetRequestValidationError) Reason ¶
func (e AddTweetRequestValidationError) Reason() string
Reason function returns reason value.
type AddTweetResponse ¶
type AddTweetResponse struct { TweetId int64 `protobuf:"varint,1,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"` // contains filtered or unexported fields }
func (*AddTweetResponse) Descriptor
deprecated
func (*AddTweetResponse) Descriptor() ([]byte, []int)
Deprecated: Use AddTweetResponse.ProtoReflect.Descriptor instead.
func (*AddTweetResponse) GetTweetId ¶
func (x *AddTweetResponse) GetTweetId() int64
func (*AddTweetResponse) ProtoMessage ¶
func (*AddTweetResponse) ProtoMessage()
func (*AddTweetResponse) ProtoReflect ¶
func (x *AddTweetResponse) ProtoReflect() protoreflect.Message
func (*AddTweetResponse) Reset ¶
func (x *AddTweetResponse) Reset()
func (*AddTweetResponse) String ¶
func (x *AddTweetResponse) String() string
func (*AddTweetResponse) Validate ¶
func (m *AddTweetResponse) Validate() error
Validate checks the field values on AddTweetResponse 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 (*AddTweetResponse) ValidateAll ¶
func (m *AddTweetResponse) ValidateAll() error
ValidateAll checks the field values on AddTweetResponse 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 AddTweetResponseMultiError, or nil if none found.
type AddTweetResponseMultiError ¶
type AddTweetResponseMultiError []error
AddTweetResponseMultiError is an error wrapping multiple validation errors returned by AddTweetResponse.ValidateAll() if the designated constraints aren't met.
func (AddTweetResponseMultiError) AllErrors ¶
func (m AddTweetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AddTweetResponseMultiError) Error ¶
func (m AddTweetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AddTweetResponseValidationError ¶
type AddTweetResponseValidationError struct {
// contains filtered or unexported fields
}
AddTweetResponseValidationError is the validation error returned by AddTweetResponse.Validate if the designated constraints aren't met.
func (AddTweetResponseValidationError) Cause ¶
func (e AddTweetResponseValidationError) Cause() error
Cause function returns cause value.
func (AddTweetResponseValidationError) Error ¶
func (e AddTweetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AddTweetResponseValidationError) ErrorName ¶
func (e AddTweetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AddTweetResponseValidationError) Field ¶
func (e AddTweetResponseValidationError) Field() string
Field function returns field value.
func (AddTweetResponseValidationError) Key ¶
func (e AddTweetResponseValidationError) Key() bool
Key function returns key value.
func (AddTweetResponseValidationError) Reason ¶
func (e AddTweetResponseValidationError) Reason() string
Reason function returns reason value.
type FollowRequest ¶
type FollowRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` NewFollowerId int64 `protobuf:"varint,2,opt,name=new_follower_id,json=newFollowerId,proto3" json:"new_follower_id,omitempty"` // contains filtered or unexported fields }
func (*FollowRequest) Descriptor
deprecated
func (*FollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use FollowRequest.ProtoReflect.Descriptor instead.
func (*FollowRequest) GetNewFollowerId ¶
func (x *FollowRequest) GetNewFollowerId() int64
func (*FollowRequest) GetUserId ¶
func (x *FollowRequest) GetUserId() int64
func (*FollowRequest) ProtoMessage ¶
func (*FollowRequest) ProtoMessage()
func (*FollowRequest) ProtoReflect ¶
func (x *FollowRequest) ProtoReflect() protoreflect.Message
func (*FollowRequest) Reset ¶
func (x *FollowRequest) Reset()
func (*FollowRequest) String ¶
func (x *FollowRequest) String() string
func (*FollowRequest) Validate ¶
func (m *FollowRequest) Validate() error
Validate checks the field values on FollowRequest 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 (*FollowRequest) ValidateAll ¶
func (m *FollowRequest) ValidateAll() error
ValidateAll checks the field values on FollowRequest 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 FollowRequestMultiError, or nil if none found.
type FollowRequestMultiError ¶
type FollowRequestMultiError []error
FollowRequestMultiError is an error wrapping multiple validation errors returned by FollowRequest.ValidateAll() if the designated constraints aren't met.
func (FollowRequestMultiError) AllErrors ¶
func (m FollowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FollowRequestMultiError) Error ¶
func (m FollowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FollowRequestValidationError ¶
type FollowRequestValidationError struct {
// contains filtered or unexported fields
}
FollowRequestValidationError is the validation error returned by FollowRequest.Validate if the designated constraints aren't met.
func (FollowRequestValidationError) Cause ¶
func (e FollowRequestValidationError) Cause() error
Cause function returns cause value.
func (FollowRequestValidationError) Error ¶
func (e FollowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (FollowRequestValidationError) ErrorName ¶
func (e FollowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (FollowRequestValidationError) Field ¶
func (e FollowRequestValidationError) Field() string
Field function returns field value.
func (FollowRequestValidationError) Key ¶
func (e FollowRequestValidationError) Key() bool
Key function returns key value.
func (FollowRequestValidationError) Reason ¶
func (e FollowRequestValidationError) Reason() string
Reason function returns reason value.
type FollowResponse ¶
type FollowResponse struct {
// contains filtered or unexported fields
}
func (*FollowResponse) Descriptor
deprecated
func (*FollowResponse) Descriptor() ([]byte, []int)
Deprecated: Use FollowResponse.ProtoReflect.Descriptor instead.
func (*FollowResponse) ProtoMessage ¶
func (*FollowResponse) ProtoMessage()
func (*FollowResponse) ProtoReflect ¶
func (x *FollowResponse) ProtoReflect() protoreflect.Message
func (*FollowResponse) Reset ¶
func (x *FollowResponse) Reset()
func (*FollowResponse) String ¶
func (x *FollowResponse) String() string
func (*FollowResponse) Validate ¶
func (m *FollowResponse) Validate() error
Validate checks the field values on FollowResponse 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 (*FollowResponse) ValidateAll ¶
func (m *FollowResponse) ValidateAll() error
ValidateAll checks the field values on FollowResponse 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 FollowResponseMultiError, or nil if none found.
type FollowResponseMultiError ¶
type FollowResponseMultiError []error
FollowResponseMultiError is an error wrapping multiple validation errors returned by FollowResponse.ValidateAll() if the designated constraints aren't met.
func (FollowResponseMultiError) AllErrors ¶
func (m FollowResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FollowResponseMultiError) Error ¶
func (m FollowResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FollowResponseValidationError ¶
type FollowResponseValidationError struct {
// contains filtered or unexported fields
}
FollowResponseValidationError is the validation error returned by FollowResponse.Validate if the designated constraints aren't met.
func (FollowResponseValidationError) Cause ¶
func (e FollowResponseValidationError) Cause() error
Cause function returns cause value.
func (FollowResponseValidationError) Error ¶
func (e FollowResponseValidationError) Error() string
Error satisfies the builtin error interface
func (FollowResponseValidationError) ErrorName ¶
func (e FollowResponseValidationError) ErrorName() string
ErrorName returns error name.
func (FollowResponseValidationError) Field ¶
func (e FollowResponseValidationError) Field() string
Field function returns field value.
func (FollowResponseValidationError) Key ¶
func (e FollowResponseValidationError) Key() bool
Key function returns key value.
func (FollowResponseValidationError) Reason ¶
func (e FollowResponseValidationError) Reason() string
Reason function returns reason value.
type GetFollowersRequest ¶
type GetFollowersRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetFollowersRequest) Descriptor
deprecated
func (*GetFollowersRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowersRequest.ProtoReflect.Descriptor instead.
func (*GetFollowersRequest) GetUserId ¶
func (x *GetFollowersRequest) GetUserId() int64
func (*GetFollowersRequest) ProtoMessage ¶
func (*GetFollowersRequest) ProtoMessage()
func (*GetFollowersRequest) ProtoReflect ¶
func (x *GetFollowersRequest) ProtoReflect() protoreflect.Message
func (*GetFollowersRequest) Reset ¶
func (x *GetFollowersRequest) Reset()
func (*GetFollowersRequest) String ¶
func (x *GetFollowersRequest) String() string
func (*GetFollowersRequest) Validate ¶
func (m *GetFollowersRequest) Validate() error
Validate checks the field values on GetFollowersRequest 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 (*GetFollowersRequest) ValidateAll ¶
func (m *GetFollowersRequest) ValidateAll() error
ValidateAll checks the field values on GetFollowersRequest 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 GetFollowersRequestMultiError, or nil if none found.
type GetFollowersRequestMultiError ¶
type GetFollowersRequestMultiError []error
GetFollowersRequestMultiError is an error wrapping multiple validation errors returned by GetFollowersRequest.ValidateAll() if the designated constraints aren't met.
func (GetFollowersRequestMultiError) AllErrors ¶
func (m GetFollowersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFollowersRequestMultiError) Error ¶
func (m GetFollowersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFollowersRequestValidationError ¶
type GetFollowersRequestValidationError struct {
// contains filtered or unexported fields
}
GetFollowersRequestValidationError is the validation error returned by GetFollowersRequest.Validate if the designated constraints aren't met.
func (GetFollowersRequestValidationError) Cause ¶
func (e GetFollowersRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFollowersRequestValidationError) Error ¶
func (e GetFollowersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFollowersRequestValidationError) ErrorName ¶
func (e GetFollowersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFollowersRequestValidationError) Field ¶
func (e GetFollowersRequestValidationError) Field() string
Field function returns field value.
func (GetFollowersRequestValidationError) Key ¶
func (e GetFollowersRequestValidationError) Key() bool
Key function returns key value.
func (GetFollowersRequestValidationError) Reason ¶
func (e GetFollowersRequestValidationError) Reason() string
Reason function returns reason value.
type GetFollowersResponse ¶
type GetFollowersResponse struct { Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetFollowersResponse) Descriptor
deprecated
func (*GetFollowersResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowersResponse.ProtoReflect.Descriptor instead.
func (*GetFollowersResponse) GetUsers ¶
func (x *GetFollowersResponse) GetUsers() []*UserProfile
func (*GetFollowersResponse) ProtoMessage ¶
func (*GetFollowersResponse) ProtoMessage()
func (*GetFollowersResponse) ProtoReflect ¶
func (x *GetFollowersResponse) ProtoReflect() protoreflect.Message
func (*GetFollowersResponse) Reset ¶
func (x *GetFollowersResponse) Reset()
func (*GetFollowersResponse) String ¶
func (x *GetFollowersResponse) String() string
func (*GetFollowersResponse) Validate ¶
func (m *GetFollowersResponse) Validate() error
Validate checks the field values on GetFollowersResponse 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 (*GetFollowersResponse) ValidateAll ¶
func (m *GetFollowersResponse) ValidateAll() error
ValidateAll checks the field values on GetFollowersResponse 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 GetFollowersResponseMultiError, or nil if none found.
type GetFollowersResponseMultiError ¶
type GetFollowersResponseMultiError []error
GetFollowersResponseMultiError is an error wrapping multiple validation errors returned by GetFollowersResponse.ValidateAll() if the designated constraints aren't met.
func (GetFollowersResponseMultiError) AllErrors ¶
func (m GetFollowersResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFollowersResponseMultiError) Error ¶
func (m GetFollowersResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFollowersResponseValidationError ¶
type GetFollowersResponseValidationError struct {
// contains filtered or unexported fields
}
GetFollowersResponseValidationError is the validation error returned by GetFollowersResponse.Validate if the designated constraints aren't met.
func (GetFollowersResponseValidationError) Cause ¶
func (e GetFollowersResponseValidationError) Cause() error
Cause function returns cause value.
func (GetFollowersResponseValidationError) Error ¶
func (e GetFollowersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetFollowersResponseValidationError) ErrorName ¶
func (e GetFollowersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetFollowersResponseValidationError) Field ¶
func (e GetFollowersResponseValidationError) Field() string
Field function returns field value.
func (GetFollowersResponseValidationError) Key ¶
func (e GetFollowersResponseValidationError) Key() bool
Key function returns key value.
func (GetFollowersResponseValidationError) Reason ¶
func (e GetFollowersResponseValidationError) Reason() string
Reason function returns reason value.
type GetFollowingRequest ¶
type GetFollowingRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingRequest) Descriptor
deprecated
func (*GetFollowingRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingRequest.ProtoReflect.Descriptor instead.
func (*GetFollowingRequest) GetUserId ¶
func (x *GetFollowingRequest) GetUserId() int64
func (*GetFollowingRequest) ProtoMessage ¶
func (*GetFollowingRequest) ProtoMessage()
func (*GetFollowingRequest) ProtoReflect ¶
func (x *GetFollowingRequest) ProtoReflect() protoreflect.Message
func (*GetFollowingRequest) Reset ¶
func (x *GetFollowingRequest) Reset()
func (*GetFollowingRequest) String ¶
func (x *GetFollowingRequest) String() string
func (*GetFollowingRequest) Validate ¶
func (m *GetFollowingRequest) Validate() error
Validate checks the field values on GetFollowingRequest 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 (*GetFollowingRequest) ValidateAll ¶
func (m *GetFollowingRequest) ValidateAll() error
ValidateAll checks the field values on GetFollowingRequest 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 GetFollowingRequestMultiError, or nil if none found.
type GetFollowingRequestMultiError ¶
type GetFollowingRequestMultiError []error
GetFollowingRequestMultiError is an error wrapping multiple validation errors returned by GetFollowingRequest.ValidateAll() if the designated constraints aren't met.
func (GetFollowingRequestMultiError) AllErrors ¶
func (m GetFollowingRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFollowingRequestMultiError) Error ¶
func (m GetFollowingRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFollowingRequestValidationError ¶
type GetFollowingRequestValidationError struct {
// contains filtered or unexported fields
}
GetFollowingRequestValidationError is the validation error returned by GetFollowingRequest.Validate if the designated constraints aren't met.
func (GetFollowingRequestValidationError) Cause ¶
func (e GetFollowingRequestValidationError) Cause() error
Cause function returns cause value.
func (GetFollowingRequestValidationError) Error ¶
func (e GetFollowingRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetFollowingRequestValidationError) ErrorName ¶
func (e GetFollowingRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetFollowingRequestValidationError) Field ¶
func (e GetFollowingRequestValidationError) Field() string
Field function returns field value.
func (GetFollowingRequestValidationError) Key ¶
func (e GetFollowingRequestValidationError) Key() bool
Key function returns key value.
func (GetFollowingRequestValidationError) Reason ¶
func (e GetFollowingRequestValidationError) Reason() string
Reason function returns reason value.
type GetFollowingResponse ¶
type GetFollowingResponse struct { Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*GetFollowingResponse) Descriptor
deprecated
func (*GetFollowingResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetFollowingResponse.ProtoReflect.Descriptor instead.
func (*GetFollowingResponse) GetUsers ¶
func (x *GetFollowingResponse) GetUsers() []*UserProfile
func (*GetFollowingResponse) ProtoMessage ¶
func (*GetFollowingResponse) ProtoMessage()
func (*GetFollowingResponse) ProtoReflect ¶
func (x *GetFollowingResponse) ProtoReflect() protoreflect.Message
func (*GetFollowingResponse) Reset ¶
func (x *GetFollowingResponse) Reset()
func (*GetFollowingResponse) String ¶
func (x *GetFollowingResponse) String() string
func (*GetFollowingResponse) Validate ¶
func (m *GetFollowingResponse) Validate() error
Validate checks the field values on GetFollowingResponse 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 (*GetFollowingResponse) ValidateAll ¶
func (m *GetFollowingResponse) ValidateAll() error
ValidateAll checks the field values on GetFollowingResponse 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 GetFollowingResponseMultiError, or nil if none found.
type GetFollowingResponseMultiError ¶
type GetFollowingResponseMultiError []error
GetFollowingResponseMultiError is an error wrapping multiple validation errors returned by GetFollowingResponse.ValidateAll() if the designated constraints aren't met.
func (GetFollowingResponseMultiError) AllErrors ¶
func (m GetFollowingResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetFollowingResponseMultiError) Error ¶
func (m GetFollowingResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetFollowingResponseValidationError ¶
type GetFollowingResponseValidationError struct {
// contains filtered or unexported fields
}
GetFollowingResponseValidationError is the validation error returned by GetFollowingResponse.Validate if the designated constraints aren't met.
func (GetFollowingResponseValidationError) Cause ¶
func (e GetFollowingResponseValidationError) Cause() error
Cause function returns cause value.
func (GetFollowingResponseValidationError) Error ¶
func (e GetFollowingResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetFollowingResponseValidationError) ErrorName ¶
func (e GetFollowingResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetFollowingResponseValidationError) Field ¶
func (e GetFollowingResponseValidationError) Field() string
Field function returns field value.
func (GetFollowingResponseValidationError) Key ¶
func (e GetFollowingResponseValidationError) Key() bool
Key function returns key value.
func (GetFollowingResponseValidationError) Reason ¶
func (e GetFollowingResponseValidationError) Reason() string
Reason function returns reason value.
type GetNewsFeedRequest ¶
type GetNewsFeedRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` Limit int64 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` Offset int64 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"` // contains filtered or unexported fields }
func (*GetNewsFeedRequest) Descriptor
deprecated
func (*GetNewsFeedRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetNewsFeedRequest.ProtoReflect.Descriptor instead.
func (*GetNewsFeedRequest) GetLimit ¶
func (x *GetNewsFeedRequest) GetLimit() int64
func (*GetNewsFeedRequest) GetOffset ¶
func (x *GetNewsFeedRequest) GetOffset() int64
func (*GetNewsFeedRequest) GetUserId ¶
func (x *GetNewsFeedRequest) GetUserId() int64
func (*GetNewsFeedRequest) ProtoMessage ¶
func (*GetNewsFeedRequest) ProtoMessage()
func (*GetNewsFeedRequest) ProtoReflect ¶
func (x *GetNewsFeedRequest) ProtoReflect() protoreflect.Message
func (*GetNewsFeedRequest) Reset ¶
func (x *GetNewsFeedRequest) Reset()
func (*GetNewsFeedRequest) String ¶
func (x *GetNewsFeedRequest) String() string
func (*GetNewsFeedRequest) Validate ¶
func (m *GetNewsFeedRequest) Validate() error
Validate checks the field values on GetNewsFeedRequest 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 (*GetNewsFeedRequest) ValidateAll ¶
func (m *GetNewsFeedRequest) ValidateAll() error
ValidateAll checks the field values on GetNewsFeedRequest 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 GetNewsFeedRequestMultiError, or nil if none found.
type GetNewsFeedRequestMultiError ¶
type GetNewsFeedRequestMultiError []error
GetNewsFeedRequestMultiError is an error wrapping multiple validation errors returned by GetNewsFeedRequest.ValidateAll() if the designated constraints aren't met.
func (GetNewsFeedRequestMultiError) AllErrors ¶
func (m GetNewsFeedRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNewsFeedRequestMultiError) Error ¶
func (m GetNewsFeedRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNewsFeedRequestValidationError ¶
type GetNewsFeedRequestValidationError struct {
// contains filtered or unexported fields
}
GetNewsFeedRequestValidationError is the validation error returned by GetNewsFeedRequest.Validate if the designated constraints aren't met.
func (GetNewsFeedRequestValidationError) Cause ¶
func (e GetNewsFeedRequestValidationError) Cause() error
Cause function returns cause value.
func (GetNewsFeedRequestValidationError) Error ¶
func (e GetNewsFeedRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetNewsFeedRequestValidationError) ErrorName ¶
func (e GetNewsFeedRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetNewsFeedRequestValidationError) Field ¶
func (e GetNewsFeedRequestValidationError) Field() string
Field function returns field value.
func (GetNewsFeedRequestValidationError) Key ¶
func (e GetNewsFeedRequestValidationError) Key() bool
Key function returns key value.
func (GetNewsFeedRequestValidationError) Reason ¶
func (e GetNewsFeedRequestValidationError) Reason() string
Reason function returns reason value.
type GetNewsFeedResponse ¶
type GetNewsFeedResponse struct { Tweets []string `protobuf:"bytes,1,rep,name=tweets,proto3" json:"tweets,omitempty"` // contains filtered or unexported fields }
func (*GetNewsFeedResponse) Descriptor
deprecated
func (*GetNewsFeedResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetNewsFeedResponse.ProtoReflect.Descriptor instead.
func (*GetNewsFeedResponse) GetTweets ¶
func (x *GetNewsFeedResponse) GetTweets() []string
func (*GetNewsFeedResponse) ProtoMessage ¶
func (*GetNewsFeedResponse) ProtoMessage()
func (*GetNewsFeedResponse) ProtoReflect ¶
func (x *GetNewsFeedResponse) ProtoReflect() protoreflect.Message
func (*GetNewsFeedResponse) Reset ¶
func (x *GetNewsFeedResponse) Reset()
func (*GetNewsFeedResponse) String ¶
func (x *GetNewsFeedResponse) String() string
func (*GetNewsFeedResponse) Validate ¶
func (m *GetNewsFeedResponse) Validate() error
Validate checks the field values on GetNewsFeedResponse 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 (*GetNewsFeedResponse) ValidateAll ¶
func (m *GetNewsFeedResponse) ValidateAll() error
ValidateAll checks the field values on GetNewsFeedResponse 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 GetNewsFeedResponseMultiError, or nil if none found.
type GetNewsFeedResponseMultiError ¶
type GetNewsFeedResponseMultiError []error
GetNewsFeedResponseMultiError is an error wrapping multiple validation errors returned by GetNewsFeedResponse.ValidateAll() if the designated constraints aren't met.
func (GetNewsFeedResponseMultiError) AllErrors ¶
func (m GetNewsFeedResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (GetNewsFeedResponseMultiError) Error ¶
func (m GetNewsFeedResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type GetNewsFeedResponseValidationError ¶
type GetNewsFeedResponseValidationError struct {
// contains filtered or unexported fields
}
GetNewsFeedResponseValidationError is the validation error returned by GetNewsFeedResponse.Validate if the designated constraints aren't met.
func (GetNewsFeedResponseValidationError) Cause ¶
func (e GetNewsFeedResponseValidationError) Cause() error
Cause function returns cause value.
func (GetNewsFeedResponseValidationError) Error ¶
func (e GetNewsFeedResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetNewsFeedResponseValidationError) ErrorName ¶
func (e GetNewsFeedResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetNewsFeedResponseValidationError) Field ¶
func (e GetNewsFeedResponseValidationError) Field() string
Field function returns field value.
func (GetNewsFeedResponseValidationError) Key ¶
func (e GetNewsFeedResponseValidationError) Key() bool
Key function returns key value.
func (GetNewsFeedResponseValidationError) Reason ¶
func (e GetNewsFeedResponseValidationError) Reason() string
Reason function returns reason value.
type LoginRequest ¶
type LoginRequest struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
func (*LoginRequest) GetEmail ¶
func (x *LoginRequest) GetEmail() string
func (*LoginRequest) ProtoMessage ¶
func (*LoginRequest) ProtoMessage()
func (*LoginRequest) ProtoReflect ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
func (*LoginRequest) Validate ¶
func (m *LoginRequest) Validate() error
Validate checks the field values on LoginRequest 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 (*LoginRequest) ValidateAll ¶
func (m *LoginRequest) ValidateAll() error
ValidateAll checks the field values on LoginRequest 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 LoginRequestMultiError, or nil if none found.
type LoginRequestMultiError ¶
type LoginRequestMultiError []error
LoginRequestMultiError is an error wrapping multiple validation errors returned by LoginRequest.ValidateAll() if the designated constraints aren't met.
func (LoginRequestMultiError) AllErrors ¶
func (m LoginRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginRequestMultiError) Error ¶
func (m LoginRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginRequestValidationError ¶
type LoginRequestValidationError struct {
// contains filtered or unexported fields
}
LoginRequestValidationError is the validation error returned by LoginRequest.Validate if the designated constraints aren't met.
func (LoginRequestValidationError) Cause ¶
func (e LoginRequestValidationError) Cause() error
Cause function returns cause value.
func (LoginRequestValidationError) Error ¶
func (e LoginRequestValidationError) Error() string
Error satisfies the builtin error interface
func (LoginRequestValidationError) ErrorName ¶
func (e LoginRequestValidationError) ErrorName() string
ErrorName returns error name.
func (LoginRequestValidationError) Field ¶
func (e LoginRequestValidationError) Field() string
Field function returns field value.
func (LoginRequestValidationError) Key ¶
func (e LoginRequestValidationError) Key() bool
Key function returns key value.
func (LoginRequestValidationError) Reason ¶
func (e LoginRequestValidationError) Reason() string
Reason function returns reason value.
type LoginResponse ¶
type LoginResponse struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` UserProfile *UserProfile `protobuf:"bytes,2,opt,name=user_profile,json=userProfile,proto3" json:"user_profile,omitempty"` // contains filtered or unexported fields }
func (*LoginResponse) Descriptor
deprecated
func (*LoginResponse) Descriptor() ([]byte, []int)
Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.
func (*LoginResponse) GetUserId ¶
func (x *LoginResponse) GetUserId() int64
func (*LoginResponse) GetUserProfile ¶
func (x *LoginResponse) GetUserProfile() *UserProfile
func (*LoginResponse) ProtoMessage ¶
func (*LoginResponse) ProtoMessage()
func (*LoginResponse) ProtoReflect ¶
func (x *LoginResponse) ProtoReflect() protoreflect.Message
func (*LoginResponse) Reset ¶
func (x *LoginResponse) Reset()
func (*LoginResponse) String ¶
func (x *LoginResponse) String() string
func (*LoginResponse) Validate ¶
func (m *LoginResponse) Validate() error
Validate checks the field values on LoginResponse 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 (*LoginResponse) ValidateAll ¶
func (m *LoginResponse) ValidateAll() error
ValidateAll checks the field values on LoginResponse 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 LoginResponseMultiError, or nil if none found.
type LoginResponseMultiError ¶
type LoginResponseMultiError []error
LoginResponseMultiError is an error wrapping multiple validation errors returned by LoginResponse.ValidateAll() if the designated constraints aren't met.
func (LoginResponseMultiError) AllErrors ¶
func (m LoginResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (LoginResponseMultiError) Error ¶
func (m LoginResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type LoginResponseValidationError ¶
type LoginResponseValidationError struct {
// contains filtered or unexported fields
}
LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.
func (LoginResponseValidationError) Cause ¶
func (e LoginResponseValidationError) Cause() error
Cause function returns cause value.
func (LoginResponseValidationError) Error ¶
func (e LoginResponseValidationError) Error() string
Error satisfies the builtin error interface
func (LoginResponseValidationError) ErrorName ¶
func (e LoginResponseValidationError) ErrorName() string
ErrorName returns error name.
func (LoginResponseValidationError) Field ¶
func (e LoginResponseValidationError) Field() string
Field function returns field value.
func (LoginResponseValidationError) Key ¶
func (e LoginResponseValidationError) Key() bool
Key function returns key value.
func (LoginResponseValidationError) Reason ¶
func (e LoginResponseValidationError) Reason() string
Reason function returns reason value.
type RecommendUsersRequest ¶
type RecommendUsersRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RecommendUsersRequest) Descriptor
deprecated
func (*RecommendUsersRequest) Descriptor() ([]byte, []int)
Deprecated: Use RecommendUsersRequest.ProtoReflect.Descriptor instead.
func (*RecommendUsersRequest) GetUserId ¶
func (x *RecommendUsersRequest) GetUserId() int64
func (*RecommendUsersRequest) ProtoMessage ¶
func (*RecommendUsersRequest) ProtoMessage()
func (*RecommendUsersRequest) ProtoReflect ¶
func (x *RecommendUsersRequest) ProtoReflect() protoreflect.Message
func (*RecommendUsersRequest) Reset ¶
func (x *RecommendUsersRequest) Reset()
func (*RecommendUsersRequest) String ¶
func (x *RecommendUsersRequest) String() string
func (*RecommendUsersRequest) Validate ¶
func (m *RecommendUsersRequest) Validate() error
Validate checks the field values on RecommendUsersRequest 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 (*RecommendUsersRequest) ValidateAll ¶
func (m *RecommendUsersRequest) ValidateAll() error
ValidateAll checks the field values on RecommendUsersRequest 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 RecommendUsersRequestMultiError, or nil if none found.
type RecommendUsersRequestMultiError ¶
type RecommendUsersRequestMultiError []error
RecommendUsersRequestMultiError is an error wrapping multiple validation errors returned by RecommendUsersRequest.ValidateAll() if the designated constraints aren't met.
func (RecommendUsersRequestMultiError) AllErrors ¶
func (m RecommendUsersRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecommendUsersRequestMultiError) Error ¶
func (m RecommendUsersRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecommendUsersRequestValidationError ¶
type RecommendUsersRequestValidationError struct {
// contains filtered or unexported fields
}
RecommendUsersRequestValidationError is the validation error returned by RecommendUsersRequest.Validate if the designated constraints aren't met.
func (RecommendUsersRequestValidationError) Cause ¶
func (e RecommendUsersRequestValidationError) Cause() error
Cause function returns cause value.
func (RecommendUsersRequestValidationError) Error ¶
func (e RecommendUsersRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RecommendUsersRequestValidationError) ErrorName ¶
func (e RecommendUsersRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RecommendUsersRequestValidationError) Field ¶
func (e RecommendUsersRequestValidationError) Field() string
Field function returns field value.
func (RecommendUsersRequestValidationError) Key ¶
func (e RecommendUsersRequestValidationError) Key() bool
Key function returns key value.
func (RecommendUsersRequestValidationError) Reason ¶
func (e RecommendUsersRequestValidationError) Reason() string
Reason function returns reason value.
type RecommendUsersResponse ¶
type RecommendUsersResponse struct { Users []*UserProfile `protobuf:"bytes,1,rep,name=users,proto3" json:"users,omitempty"` // contains filtered or unexported fields }
func (*RecommendUsersResponse) Descriptor
deprecated
func (*RecommendUsersResponse) Descriptor() ([]byte, []int)
Deprecated: Use RecommendUsersResponse.ProtoReflect.Descriptor instead.
func (*RecommendUsersResponse) GetUsers ¶
func (x *RecommendUsersResponse) GetUsers() []*UserProfile
func (*RecommendUsersResponse) ProtoMessage ¶
func (*RecommendUsersResponse) ProtoMessage()
func (*RecommendUsersResponse) ProtoReflect ¶
func (x *RecommendUsersResponse) ProtoReflect() protoreflect.Message
func (*RecommendUsersResponse) Reset ¶
func (x *RecommendUsersResponse) Reset()
func (*RecommendUsersResponse) String ¶
func (x *RecommendUsersResponse) String() string
func (*RecommendUsersResponse) Validate ¶
func (m *RecommendUsersResponse) Validate() error
Validate checks the field values on RecommendUsersResponse 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 (*RecommendUsersResponse) ValidateAll ¶
func (m *RecommendUsersResponse) ValidateAll() error
ValidateAll checks the field values on RecommendUsersResponse 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 RecommendUsersResponseMultiError, or nil if none found.
type RecommendUsersResponseMultiError ¶
type RecommendUsersResponseMultiError []error
RecommendUsersResponseMultiError is an error wrapping multiple validation errors returned by RecommendUsersResponse.ValidateAll() if the designated constraints aren't met.
func (RecommendUsersResponseMultiError) AllErrors ¶
func (m RecommendUsersResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecommendUsersResponseMultiError) Error ¶
func (m RecommendUsersResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecommendUsersResponseValidationError ¶
type RecommendUsersResponseValidationError struct {
// contains filtered or unexported fields
}
RecommendUsersResponseValidationError is the validation error returned by RecommendUsersResponse.Validate if the designated constraints aren't met.
func (RecommendUsersResponseValidationError) Cause ¶
func (e RecommendUsersResponseValidationError) Cause() error
Cause function returns cause value.
func (RecommendUsersResponseValidationError) Error ¶
func (e RecommendUsersResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RecommendUsersResponseValidationError) ErrorName ¶
func (e RecommendUsersResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RecommendUsersResponseValidationError) Field ¶
func (e RecommendUsersResponseValidationError) Field() string
Field function returns field value.
func (RecommendUsersResponseValidationError) Key ¶
func (e RecommendUsersResponseValidationError) Key() bool
Key function returns key value.
func (RecommendUsersResponseValidationError) Reason ¶
func (e RecommendUsersResponseValidationError) Reason() string
Reason function returns reason value.
type RegisterRequest ¶
type RegisterRequest struct { User *UserProfile `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` // contains filtered or unexported fields }
func (*RegisterRequest) Descriptor
deprecated
func (*RegisterRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.
func (*RegisterRequest) GetUser ¶
func (x *RegisterRequest) GetUser() *UserProfile
func (*RegisterRequest) ProtoMessage ¶
func (*RegisterRequest) ProtoMessage()
func (*RegisterRequest) ProtoReflect ¶
func (x *RegisterRequest) ProtoReflect() protoreflect.Message
func (*RegisterRequest) Reset ¶
func (x *RegisterRequest) Reset()
func (*RegisterRequest) String ¶
func (x *RegisterRequest) String() string
func (*RegisterRequest) Validate ¶
func (m *RegisterRequest) Validate() error
Validate checks the field values on RegisterRequest 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 (*RegisterRequest) ValidateAll ¶
func (m *RegisterRequest) ValidateAll() error
ValidateAll checks the field values on RegisterRequest 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 RegisterRequestMultiError, or nil if none found.
type RegisterRequestMultiError ¶
type RegisterRequestMultiError []error
RegisterRequestMultiError is an error wrapping multiple validation errors returned by RegisterRequest.ValidateAll() if the designated constraints aren't met.
func (RegisterRequestMultiError) AllErrors ¶
func (m RegisterRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterRequestMultiError) Error ¶
func (m RegisterRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterRequestValidationError ¶
type RegisterRequestValidationError struct {
// contains filtered or unexported fields
}
RegisterRequestValidationError is the validation error returned by RegisterRequest.Validate if the designated constraints aren't met.
func (RegisterRequestValidationError) Cause ¶
func (e RegisterRequestValidationError) Cause() error
Cause function returns cause value.
func (RegisterRequestValidationError) Error ¶
func (e RegisterRequestValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterRequestValidationError) ErrorName ¶
func (e RegisterRequestValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterRequestValidationError) Field ¶
func (e RegisterRequestValidationError) Field() string
Field function returns field value.
func (RegisterRequestValidationError) Key ¶
func (e RegisterRequestValidationError) Key() bool
Key function returns key value.
func (RegisterRequestValidationError) Reason ¶
func (e RegisterRequestValidationError) Reason() string
Reason function returns reason value.
type RegisterResponse ¶
type RegisterResponse struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` // contains filtered or unexported fields }
func (*RegisterResponse) Descriptor
deprecated
func (*RegisterResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.
func (*RegisterResponse) GetUserId ¶
func (x *RegisterResponse) GetUserId() int64
func (*RegisterResponse) ProtoMessage ¶
func (*RegisterResponse) ProtoMessage()
func (*RegisterResponse) ProtoReflect ¶
func (x *RegisterResponse) ProtoReflect() protoreflect.Message
func (*RegisterResponse) Reset ¶
func (x *RegisterResponse) Reset()
func (*RegisterResponse) String ¶
func (x *RegisterResponse) String() string
func (*RegisterResponse) Validate ¶
func (m *RegisterResponse) Validate() error
Validate checks the field values on RegisterResponse 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 (*RegisterResponse) ValidateAll ¶
func (m *RegisterResponse) ValidateAll() error
ValidateAll checks the field values on RegisterResponse 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 RegisterResponseMultiError, or nil if none found.
type RegisterResponseMultiError ¶
type RegisterResponseMultiError []error
RegisterResponseMultiError is an error wrapping multiple validation errors returned by RegisterResponse.ValidateAll() if the designated constraints aren't met.
func (RegisterResponseMultiError) AllErrors ¶
func (m RegisterResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RegisterResponseMultiError) Error ¶
func (m RegisterResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RegisterResponseValidationError ¶
type RegisterResponseValidationError struct {
// contains filtered or unexported fields
}
RegisterResponseValidationError is the validation error returned by RegisterResponse.Validate if the designated constraints aren't met.
func (RegisterResponseValidationError) Cause ¶
func (e RegisterResponseValidationError) Cause() error
Cause function returns cause value.
func (RegisterResponseValidationError) Error ¶
func (e RegisterResponseValidationError) Error() string
Error satisfies the builtin error interface
func (RegisterResponseValidationError) ErrorName ¶
func (e RegisterResponseValidationError) ErrorName() string
ErrorName returns error name.
func (RegisterResponseValidationError) Field ¶
func (e RegisterResponseValidationError) Field() string
Field function returns field value.
func (RegisterResponseValidationError) Key ¶
func (e RegisterResponseValidationError) Key() bool
Key function returns key value.
func (RegisterResponseValidationError) Reason ¶
func (e RegisterResponseValidationError) Reason() string
Reason function returns reason value.
type TwitterClient ¶
type TwitterClient interface { AddTweet(ctx context.Context, in *AddTweetRequest, opts ...grpc.CallOption) (*AddTweetResponse, error) AddComment(ctx context.Context, in *AddCommentRequest, opts ...grpc.CallOption) (*AddCommentResponse, error) UpdateTweet(ctx context.Context, in *UpdateTweetRequest, opts ...grpc.CallOption) (*UpdateTweetResponse, error) UpdateComment(ctx context.Context, in *UpdateCommentRequest, opts ...grpc.CallOption) (*UpdateCommentResponse, error) GetNewsFeed(ctx context.Context, in *GetNewsFeedRequest, opts ...grpc.CallOption) (*GetNewsFeedResponse, error) Follow(ctx context.Context, in *FollowRequest, opts ...grpc.CallOption) (*FollowResponse, error) Unfollow(ctx context.Context, in *UnfollowRequest, opts ...grpc.CallOption) (*UnfollowResponse, error) GetFollowing(ctx context.Context, in *GetFollowingRequest, opts ...grpc.CallOption) (*GetFollowingResponse, error) GetFollowers(ctx context.Context, in *GetFollowersRequest, opts ...grpc.CallOption) (*GetFollowersResponse, error) RecommendUsers(ctx context.Context, in *RecommendUsersRequest, opts ...grpc.CallOption) (*RecommendUsersResponse, error) Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error) UpdateCaption(ctx context.Context, in *UpdateCaptionRequest, opts ...grpc.CallOption) (*UpdateCaptionResponse, error) Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginResponse, error) }
TwitterClient is the client API for Twitter 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 NewTwitterClient ¶
func NewTwitterClient(cc grpc.ClientConnInterface) TwitterClient
type TwitterServer ¶
type TwitterServer interface { AddTweet(context.Context, *AddTweetRequest) (*AddTweetResponse, error) AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error) UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error) GetNewsFeed(context.Context, *GetNewsFeedRequest) (*GetNewsFeedResponse, error) Follow(context.Context, *FollowRequest) (*FollowResponse, error) Unfollow(context.Context, *UnfollowRequest) (*UnfollowResponse, error) GetFollowing(context.Context, *GetFollowingRequest) (*GetFollowingResponse, error) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error) RecommendUsers(context.Context, *RecommendUsersRequest) (*RecommendUsersResponse, error) Register(context.Context, *RegisterRequest) (*RegisterResponse, error) UpdateCaption(context.Context, *UpdateCaptionRequest) (*UpdateCaptionResponse, error) Login(context.Context, *LoginRequest) (*LoginResponse, error) // contains filtered or unexported methods }
TwitterServer is the server API for Twitter service. All implementations must embed UnimplementedTwitterServer for forward compatibility
type UnfollowRequest ¶
type UnfollowRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` OldFollowerId int64 `protobuf:"varint,2,opt,name=old_follower_id,json=oldFollowerId,proto3" json:"old_follower_id,omitempty"` // contains filtered or unexported fields }
func (*UnfollowRequest) Descriptor
deprecated
func (*UnfollowRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowRequest.ProtoReflect.Descriptor instead.
func (*UnfollowRequest) GetOldFollowerId ¶
func (x *UnfollowRequest) GetOldFollowerId() int64
func (*UnfollowRequest) GetUserId ¶
func (x *UnfollowRequest) GetUserId() int64
func (*UnfollowRequest) ProtoMessage ¶
func (*UnfollowRequest) ProtoMessage()
func (*UnfollowRequest) ProtoReflect ¶
func (x *UnfollowRequest) ProtoReflect() protoreflect.Message
func (*UnfollowRequest) Reset ¶
func (x *UnfollowRequest) Reset()
func (*UnfollowRequest) String ¶
func (x *UnfollowRequest) String() string
func (*UnfollowRequest) Validate ¶
func (m *UnfollowRequest) Validate() error
Validate checks the field values on UnfollowRequest 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 (*UnfollowRequest) ValidateAll ¶
func (m *UnfollowRequest) ValidateAll() error
ValidateAll checks the field values on UnfollowRequest 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 UnfollowRequestMultiError, or nil if none found.
type UnfollowRequestMultiError ¶
type UnfollowRequestMultiError []error
UnfollowRequestMultiError is an error wrapping multiple validation errors returned by UnfollowRequest.ValidateAll() if the designated constraints aren't met.
func (UnfollowRequestMultiError) AllErrors ¶
func (m UnfollowRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnfollowRequestMultiError) Error ¶
func (m UnfollowRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnfollowRequestValidationError ¶
type UnfollowRequestValidationError struct {
// contains filtered or unexported fields
}
UnfollowRequestValidationError is the validation error returned by UnfollowRequest.Validate if the designated constraints aren't met.
func (UnfollowRequestValidationError) Cause ¶
func (e UnfollowRequestValidationError) Cause() error
Cause function returns cause value.
func (UnfollowRequestValidationError) Error ¶
func (e UnfollowRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UnfollowRequestValidationError) ErrorName ¶
func (e UnfollowRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UnfollowRequestValidationError) Field ¶
func (e UnfollowRequestValidationError) Field() string
Field function returns field value.
func (UnfollowRequestValidationError) Key ¶
func (e UnfollowRequestValidationError) Key() bool
Key function returns key value.
func (UnfollowRequestValidationError) Reason ¶
func (e UnfollowRequestValidationError) Reason() string
Reason function returns reason value.
type UnfollowResponse ¶
type UnfollowResponse struct {
// contains filtered or unexported fields
}
func (*UnfollowResponse) Descriptor
deprecated
func (*UnfollowResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnfollowResponse.ProtoReflect.Descriptor instead.
func (*UnfollowResponse) ProtoMessage ¶
func (*UnfollowResponse) ProtoMessage()
func (*UnfollowResponse) ProtoReflect ¶
func (x *UnfollowResponse) ProtoReflect() protoreflect.Message
func (*UnfollowResponse) Reset ¶
func (x *UnfollowResponse) Reset()
func (*UnfollowResponse) String ¶
func (x *UnfollowResponse) String() string
func (*UnfollowResponse) Validate ¶
func (m *UnfollowResponse) Validate() error
Validate checks the field values on UnfollowResponse 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 (*UnfollowResponse) ValidateAll ¶
func (m *UnfollowResponse) ValidateAll() error
ValidateAll checks the field values on UnfollowResponse 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 UnfollowResponseMultiError, or nil if none found.
type UnfollowResponseMultiError ¶
type UnfollowResponseMultiError []error
UnfollowResponseMultiError is an error wrapping multiple validation errors returned by UnfollowResponse.ValidateAll() if the designated constraints aren't met.
func (UnfollowResponseMultiError) AllErrors ¶
func (m UnfollowResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UnfollowResponseMultiError) Error ¶
func (m UnfollowResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UnfollowResponseValidationError ¶
type UnfollowResponseValidationError struct {
// contains filtered or unexported fields
}
UnfollowResponseValidationError is the validation error returned by UnfollowResponse.Validate if the designated constraints aren't met.
func (UnfollowResponseValidationError) Cause ¶
func (e UnfollowResponseValidationError) Cause() error
Cause function returns cause value.
func (UnfollowResponseValidationError) Error ¶
func (e UnfollowResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UnfollowResponseValidationError) ErrorName ¶
func (e UnfollowResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UnfollowResponseValidationError) Field ¶
func (e UnfollowResponseValidationError) Field() string
Field function returns field value.
func (UnfollowResponseValidationError) Key ¶
func (e UnfollowResponseValidationError) Key() bool
Key function returns key value.
func (UnfollowResponseValidationError) Reason ¶
func (e UnfollowResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedTwitterServer ¶
type UnimplementedTwitterServer struct { }
UnimplementedTwitterServer must be embedded to have forward compatible implementations.
func (UnimplementedTwitterServer) AddComment ¶
func (UnimplementedTwitterServer) AddComment(context.Context, *AddCommentRequest) (*AddCommentResponse, error)
func (UnimplementedTwitterServer) AddTweet ¶
func (UnimplementedTwitterServer) AddTweet(context.Context, *AddTweetRequest) (*AddTweetResponse, error)
func (UnimplementedTwitterServer) Follow ¶
func (UnimplementedTwitterServer) Follow(context.Context, *FollowRequest) (*FollowResponse, error)
func (UnimplementedTwitterServer) GetFollowers ¶
func (UnimplementedTwitterServer) GetFollowers(context.Context, *GetFollowersRequest) (*GetFollowersResponse, error)
func (UnimplementedTwitterServer) GetFollowing ¶
func (UnimplementedTwitterServer) GetFollowing(context.Context, *GetFollowingRequest) (*GetFollowingResponse, error)
func (UnimplementedTwitterServer) GetNewsFeed ¶
func (UnimplementedTwitterServer) GetNewsFeed(context.Context, *GetNewsFeedRequest) (*GetNewsFeedResponse, error)
func (UnimplementedTwitterServer) Login ¶
func (UnimplementedTwitterServer) Login(context.Context, *LoginRequest) (*LoginResponse, error)
func (UnimplementedTwitterServer) RecommendUsers ¶
func (UnimplementedTwitterServer) RecommendUsers(context.Context, *RecommendUsersRequest) (*RecommendUsersResponse, error)
func (UnimplementedTwitterServer) Register ¶
func (UnimplementedTwitterServer) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedTwitterServer) Unfollow ¶
func (UnimplementedTwitterServer) Unfollow(context.Context, *UnfollowRequest) (*UnfollowResponse, error)
func (UnimplementedTwitterServer) UpdateCaption ¶
func (UnimplementedTwitterServer) UpdateCaption(context.Context, *UpdateCaptionRequest) (*UpdateCaptionResponse, error)
func (UnimplementedTwitterServer) UpdateComment ¶
func (UnimplementedTwitterServer) UpdateComment(context.Context, *UpdateCommentRequest) (*UpdateCommentResponse, error)
func (UnimplementedTwitterServer) UpdateTweet ¶
func (UnimplementedTwitterServer) UpdateTweet(context.Context, *UpdateTweetRequest) (*UpdateTweetResponse, error)
type UnsafeTwitterServer ¶
type UnsafeTwitterServer interface {
// contains filtered or unexported methods
}
UnsafeTwitterServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to TwitterServer will result in compilation errors.
type UpdateCaptionRequest ¶
type UpdateCaptionRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` NewCaption string `protobuf:"bytes,2,opt,name=new_caption,json=newCaption,proto3" json:"new_caption,omitempty"` // contains filtered or unexported fields }
func (*UpdateCaptionRequest) Descriptor
deprecated
func (*UpdateCaptionRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCaptionRequest.ProtoReflect.Descriptor instead.
func (*UpdateCaptionRequest) GetNewCaption ¶
func (x *UpdateCaptionRequest) GetNewCaption() string
func (*UpdateCaptionRequest) GetUserId ¶
func (x *UpdateCaptionRequest) GetUserId() int64
func (*UpdateCaptionRequest) ProtoMessage ¶
func (*UpdateCaptionRequest) ProtoMessage()
func (*UpdateCaptionRequest) ProtoReflect ¶
func (x *UpdateCaptionRequest) ProtoReflect() protoreflect.Message
func (*UpdateCaptionRequest) Reset ¶
func (x *UpdateCaptionRequest) Reset()
func (*UpdateCaptionRequest) String ¶
func (x *UpdateCaptionRequest) String() string
func (*UpdateCaptionRequest) Validate ¶
func (m *UpdateCaptionRequest) Validate() error
Validate checks the field values on UpdateCaptionRequest 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 (*UpdateCaptionRequest) ValidateAll ¶
func (m *UpdateCaptionRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCaptionRequest 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 UpdateCaptionRequestMultiError, or nil if none found.
type UpdateCaptionRequestMultiError ¶
type UpdateCaptionRequestMultiError []error
UpdateCaptionRequestMultiError is an error wrapping multiple validation errors returned by UpdateCaptionRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCaptionRequestMultiError) AllErrors ¶
func (m UpdateCaptionRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCaptionRequestMultiError) Error ¶
func (m UpdateCaptionRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCaptionRequestValidationError ¶
type UpdateCaptionRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCaptionRequestValidationError is the validation error returned by UpdateCaptionRequest.Validate if the designated constraints aren't met.
func (UpdateCaptionRequestValidationError) Cause ¶
func (e UpdateCaptionRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCaptionRequestValidationError) Error ¶
func (e UpdateCaptionRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCaptionRequestValidationError) ErrorName ¶
func (e UpdateCaptionRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCaptionRequestValidationError) Field ¶
func (e UpdateCaptionRequestValidationError) Field() string
Field function returns field value.
func (UpdateCaptionRequestValidationError) Key ¶
func (e UpdateCaptionRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCaptionRequestValidationError) Reason ¶
func (e UpdateCaptionRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCaptionResponse ¶
type UpdateCaptionResponse struct {
// contains filtered or unexported fields
}
func (*UpdateCaptionResponse) Descriptor
deprecated
func (*UpdateCaptionResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCaptionResponse.ProtoReflect.Descriptor instead.
func (*UpdateCaptionResponse) ProtoMessage ¶
func (*UpdateCaptionResponse) ProtoMessage()
func (*UpdateCaptionResponse) ProtoReflect ¶
func (x *UpdateCaptionResponse) ProtoReflect() protoreflect.Message
func (*UpdateCaptionResponse) Reset ¶
func (x *UpdateCaptionResponse) Reset()
func (*UpdateCaptionResponse) String ¶
func (x *UpdateCaptionResponse) String() string
func (*UpdateCaptionResponse) Validate ¶
func (m *UpdateCaptionResponse) Validate() error
Validate checks the field values on UpdateCaptionResponse 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 (*UpdateCaptionResponse) ValidateAll ¶
func (m *UpdateCaptionResponse) ValidateAll() error
ValidateAll checks the field values on UpdateCaptionResponse 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 UpdateCaptionResponseMultiError, or nil if none found.
type UpdateCaptionResponseMultiError ¶
type UpdateCaptionResponseMultiError []error
UpdateCaptionResponseMultiError is an error wrapping multiple validation errors returned by UpdateCaptionResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateCaptionResponseMultiError) AllErrors ¶
func (m UpdateCaptionResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCaptionResponseMultiError) Error ¶
func (m UpdateCaptionResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCaptionResponseValidationError ¶
type UpdateCaptionResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateCaptionResponseValidationError is the validation error returned by UpdateCaptionResponse.Validate if the designated constraints aren't met.
func (UpdateCaptionResponseValidationError) Cause ¶
func (e UpdateCaptionResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateCaptionResponseValidationError) Error ¶
func (e UpdateCaptionResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCaptionResponseValidationError) ErrorName ¶
func (e UpdateCaptionResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCaptionResponseValidationError) Field ¶
func (e UpdateCaptionResponseValidationError) Field() string
Field function returns field value.
func (UpdateCaptionResponseValidationError) Key ¶
func (e UpdateCaptionResponseValidationError) Key() bool
Key function returns key value.
func (UpdateCaptionResponseValidationError) Reason ¶
func (e UpdateCaptionResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateCommentRequest ¶
type UpdateCommentRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` CommentId int64 `protobuf:"varint,2,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` NewText string `protobuf:"bytes,3,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"` // contains filtered or unexported fields }
func (*UpdateCommentRequest) Descriptor
deprecated
func (*UpdateCommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentRequest.ProtoReflect.Descriptor instead.
func (*UpdateCommentRequest) GetCommentId ¶
func (x *UpdateCommentRequest) GetCommentId() int64
func (*UpdateCommentRequest) GetNewText ¶
func (x *UpdateCommentRequest) GetNewText() string
func (*UpdateCommentRequest) GetUserId ¶
func (x *UpdateCommentRequest) GetUserId() int64
func (*UpdateCommentRequest) ProtoMessage ¶
func (*UpdateCommentRequest) ProtoMessage()
func (*UpdateCommentRequest) ProtoReflect ¶
func (x *UpdateCommentRequest) ProtoReflect() protoreflect.Message
func (*UpdateCommentRequest) Reset ¶
func (x *UpdateCommentRequest) Reset()
func (*UpdateCommentRequest) String ¶
func (x *UpdateCommentRequest) String() string
func (*UpdateCommentRequest) Validate ¶
func (m *UpdateCommentRequest) Validate() error
Validate checks the field values on UpdateCommentRequest 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 (*UpdateCommentRequest) ValidateAll ¶
func (m *UpdateCommentRequest) ValidateAll() error
ValidateAll checks the field values on UpdateCommentRequest 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 UpdateCommentRequestMultiError, or nil if none found.
type UpdateCommentRequestMultiError ¶
type UpdateCommentRequestMultiError []error
UpdateCommentRequestMultiError is an error wrapping multiple validation errors returned by UpdateCommentRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateCommentRequestMultiError) AllErrors ¶
func (m UpdateCommentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCommentRequestMultiError) Error ¶
func (m UpdateCommentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCommentRequestValidationError ¶
type UpdateCommentRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateCommentRequestValidationError is the validation error returned by UpdateCommentRequest.Validate if the designated constraints aren't met.
func (UpdateCommentRequestValidationError) Cause ¶
func (e UpdateCommentRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateCommentRequestValidationError) Error ¶
func (e UpdateCommentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCommentRequestValidationError) ErrorName ¶
func (e UpdateCommentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCommentRequestValidationError) Field ¶
func (e UpdateCommentRequestValidationError) Field() string
Field function returns field value.
func (UpdateCommentRequestValidationError) Key ¶
func (e UpdateCommentRequestValidationError) Key() bool
Key function returns key value.
func (UpdateCommentRequestValidationError) Reason ¶
func (e UpdateCommentRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateCommentResponse ¶
type UpdateCommentResponse struct {
// contains filtered or unexported fields
}
func (*UpdateCommentResponse) Descriptor
deprecated
func (*UpdateCommentResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateCommentResponse.ProtoReflect.Descriptor instead.
func (*UpdateCommentResponse) ProtoMessage ¶
func (*UpdateCommentResponse) ProtoMessage()
func (*UpdateCommentResponse) ProtoReflect ¶
func (x *UpdateCommentResponse) ProtoReflect() protoreflect.Message
func (*UpdateCommentResponse) Reset ¶
func (x *UpdateCommentResponse) Reset()
func (*UpdateCommentResponse) String ¶
func (x *UpdateCommentResponse) String() string
func (*UpdateCommentResponse) Validate ¶
func (m *UpdateCommentResponse) Validate() error
Validate checks the field values on UpdateCommentResponse 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 (*UpdateCommentResponse) ValidateAll ¶
func (m *UpdateCommentResponse) ValidateAll() error
ValidateAll checks the field values on UpdateCommentResponse 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 UpdateCommentResponseMultiError, or nil if none found.
type UpdateCommentResponseMultiError ¶
type UpdateCommentResponseMultiError []error
UpdateCommentResponseMultiError is an error wrapping multiple validation errors returned by UpdateCommentResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateCommentResponseMultiError) AllErrors ¶
func (m UpdateCommentResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateCommentResponseMultiError) Error ¶
func (m UpdateCommentResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateCommentResponseValidationError ¶
type UpdateCommentResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateCommentResponseValidationError is the validation error returned by UpdateCommentResponse.Validate if the designated constraints aren't met.
func (UpdateCommentResponseValidationError) Cause ¶
func (e UpdateCommentResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateCommentResponseValidationError) Error ¶
func (e UpdateCommentResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateCommentResponseValidationError) ErrorName ¶
func (e UpdateCommentResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateCommentResponseValidationError) Field ¶
func (e UpdateCommentResponseValidationError) Field() string
Field function returns field value.
func (UpdateCommentResponseValidationError) Key ¶
func (e UpdateCommentResponseValidationError) Key() bool
Key function returns key value.
func (UpdateCommentResponseValidationError) Reason ¶
func (e UpdateCommentResponseValidationError) Reason() string
Reason function returns reason value.
type UpdateTweetRequest ¶
type UpdateTweetRequest struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` TweetId int64 `protobuf:"varint,2,opt,name=tweet_id,json=tweetId,proto3" json:"tweet_id,omitempty"` NewText string `protobuf:"bytes,3,opt,name=new_text,json=newText,proto3" json:"new_text,omitempty"` // contains filtered or unexported fields }
func (*UpdateTweetRequest) Descriptor
deprecated
func (*UpdateTweetRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTweetRequest.ProtoReflect.Descriptor instead.
func (*UpdateTweetRequest) GetNewText ¶
func (x *UpdateTweetRequest) GetNewText() string
func (*UpdateTweetRequest) GetTweetId ¶
func (x *UpdateTweetRequest) GetTweetId() int64
func (*UpdateTweetRequest) GetUserId ¶
func (x *UpdateTweetRequest) GetUserId() int64
func (*UpdateTweetRequest) ProtoMessage ¶
func (*UpdateTweetRequest) ProtoMessage()
func (*UpdateTweetRequest) ProtoReflect ¶
func (x *UpdateTweetRequest) ProtoReflect() protoreflect.Message
func (*UpdateTweetRequest) Reset ¶
func (x *UpdateTweetRequest) Reset()
func (*UpdateTweetRequest) String ¶
func (x *UpdateTweetRequest) String() string
func (*UpdateTweetRequest) Validate ¶
func (m *UpdateTweetRequest) Validate() error
Validate checks the field values on UpdateTweetRequest 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 (*UpdateTweetRequest) ValidateAll ¶
func (m *UpdateTweetRequest) ValidateAll() error
ValidateAll checks the field values on UpdateTweetRequest 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 UpdateTweetRequestMultiError, or nil if none found.
type UpdateTweetRequestMultiError ¶
type UpdateTweetRequestMultiError []error
UpdateTweetRequestMultiError is an error wrapping multiple validation errors returned by UpdateTweetRequest.ValidateAll() if the designated constraints aren't met.
func (UpdateTweetRequestMultiError) AllErrors ¶
func (m UpdateTweetRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTweetRequestMultiError) Error ¶
func (m UpdateTweetRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTweetRequestValidationError ¶
type UpdateTweetRequestValidationError struct {
// contains filtered or unexported fields
}
UpdateTweetRequestValidationError is the validation error returned by UpdateTweetRequest.Validate if the designated constraints aren't met.
func (UpdateTweetRequestValidationError) Cause ¶
func (e UpdateTweetRequestValidationError) Cause() error
Cause function returns cause value.
func (UpdateTweetRequestValidationError) Error ¶
func (e UpdateTweetRequestValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTweetRequestValidationError) ErrorName ¶
func (e UpdateTweetRequestValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTweetRequestValidationError) Field ¶
func (e UpdateTweetRequestValidationError) Field() string
Field function returns field value.
func (UpdateTweetRequestValidationError) Key ¶
func (e UpdateTweetRequestValidationError) Key() bool
Key function returns key value.
func (UpdateTweetRequestValidationError) Reason ¶
func (e UpdateTweetRequestValidationError) Reason() string
Reason function returns reason value.
type UpdateTweetResponse ¶
type UpdateTweetResponse struct {
// contains filtered or unexported fields
}
func (*UpdateTweetResponse) Descriptor
deprecated
func (*UpdateTweetResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateTweetResponse.ProtoReflect.Descriptor instead.
func (*UpdateTweetResponse) ProtoMessage ¶
func (*UpdateTweetResponse) ProtoMessage()
func (*UpdateTweetResponse) ProtoReflect ¶
func (x *UpdateTweetResponse) ProtoReflect() protoreflect.Message
func (*UpdateTweetResponse) Reset ¶
func (x *UpdateTweetResponse) Reset()
func (*UpdateTweetResponse) String ¶
func (x *UpdateTweetResponse) String() string
func (*UpdateTweetResponse) Validate ¶
func (m *UpdateTweetResponse) Validate() error
Validate checks the field values on UpdateTweetResponse 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 (*UpdateTweetResponse) ValidateAll ¶
func (m *UpdateTweetResponse) ValidateAll() error
ValidateAll checks the field values on UpdateTweetResponse 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 UpdateTweetResponseMultiError, or nil if none found.
type UpdateTweetResponseMultiError ¶
type UpdateTweetResponseMultiError []error
UpdateTweetResponseMultiError is an error wrapping multiple validation errors returned by UpdateTweetResponse.ValidateAll() if the designated constraints aren't met.
func (UpdateTweetResponseMultiError) AllErrors ¶
func (m UpdateTweetResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UpdateTweetResponseMultiError) Error ¶
func (m UpdateTweetResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UpdateTweetResponseValidationError ¶
type UpdateTweetResponseValidationError struct {
// contains filtered or unexported fields
}
UpdateTweetResponseValidationError is the validation error returned by UpdateTweetResponse.Validate if the designated constraints aren't met.
func (UpdateTweetResponseValidationError) Cause ¶
func (e UpdateTweetResponseValidationError) Cause() error
Cause function returns cause value.
func (UpdateTweetResponseValidationError) Error ¶
func (e UpdateTweetResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UpdateTweetResponseValidationError) ErrorName ¶
func (e UpdateTweetResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UpdateTweetResponseValidationError) Field ¶
func (e UpdateTweetResponseValidationError) Field() string
Field function returns field value.
func (UpdateTweetResponseValidationError) Key ¶
func (e UpdateTweetResponseValidationError) Key() bool
Key function returns key value.
func (UpdateTweetResponseValidationError) Reason ¶
func (e UpdateTweetResponseValidationError) Reason() string
Reason function returns reason value.
type UserProfile ¶
type UserProfile struct { Email string `protobuf:"bytes,1,opt,name=email,proto3" json:"email,omitempty"` FullName string `protobuf:"bytes,2,opt,name=full_name,json=fullName,proto3" json:"full_name,omitempty"` Caption string `protobuf:"bytes,3,opt,name=caption,proto3" json:"caption,omitempty"` // date_of_birth should be in range (now - 100 years, now) DateOfBirth *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"` // contains filtered or unexported fields }
func (*UserProfile) Descriptor
deprecated
func (*UserProfile) Descriptor() ([]byte, []int)
Deprecated: Use UserProfile.ProtoReflect.Descriptor instead.
func (*UserProfile) GetCaption ¶
func (x *UserProfile) GetCaption() string
func (*UserProfile) GetDateOfBirth ¶
func (x *UserProfile) GetDateOfBirth() *timestamppb.Timestamp
func (*UserProfile) GetEmail ¶
func (x *UserProfile) GetEmail() string
func (*UserProfile) GetFullName ¶
func (x *UserProfile) GetFullName() string
func (*UserProfile) ProtoMessage ¶
func (*UserProfile) ProtoMessage()
func (*UserProfile) ProtoReflect ¶
func (x *UserProfile) ProtoReflect() protoreflect.Message
func (*UserProfile) Reset ¶
func (x *UserProfile) Reset()
func (*UserProfile) String ¶
func (x *UserProfile) String() string
func (*UserProfile) Validate ¶
func (m *UserProfile) Validate() error
Validate checks the field values on UserProfile 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 (*UserProfile) ValidateAll ¶
func (m *UserProfile) ValidateAll() error
ValidateAll checks the field values on UserProfile 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 UserProfileMultiError, or nil if none found.
type UserProfileMultiError ¶
type UserProfileMultiError []error
UserProfileMultiError is an error wrapping multiple validation errors returned by UserProfile.ValidateAll() if the designated constraints aren't met.
func (UserProfileMultiError) AllErrors ¶
func (m UserProfileMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UserProfileMultiError) Error ¶
func (m UserProfileMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UserProfileValidationError ¶
type UserProfileValidationError struct {
// contains filtered or unexported fields
}
UserProfileValidationError is the validation error returned by UserProfile.Validate if the designated constraints aren't met.
func (UserProfileValidationError) Cause ¶
func (e UserProfileValidationError) Cause() error
Cause function returns cause value.
func (UserProfileValidationError) Error ¶
func (e UserProfileValidationError) Error() string
Error satisfies the builtin error interface
func (UserProfileValidationError) ErrorName ¶
func (e UserProfileValidationError) ErrorName() string
ErrorName returns error name.
func (UserProfileValidationError) Field ¶
func (e UserProfileValidationError) Field() string
Field function returns field value.
func (UserProfileValidationError) Key ¶
func (e UserProfileValidationError) Key() bool
Key function returns key value.
func (UserProfileValidationError) Reason ¶
func (e UserProfileValidationError) Reason() string
Reason function returns reason value.