Documentation ¶
Index ¶
- Variables
- func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
- type Category
- func (*Category) Descriptor() ([]byte, []int)deprecated
- func (x *Category) GetCardinality() uint64
- func (x *Category) GetName() string
- func (*Category) ProtoMessage()
- func (x *Category) ProtoReflect() protoreflect.Message
- func (x *Category) Reset()
- func (x *Category) String() string
- func (m *Category) Validate() error
- func (m *Category) ValidateAll() error
- type CategoryList
- func (*CategoryList) Descriptor() ([]byte, []int)deprecated
- func (x *CategoryList) GetCategories() []*Category
- func (*CategoryList) ProtoMessage()
- func (x *CategoryList) ProtoReflect() protoreflect.Message
- func (x *CategoryList) Reset()
- func (x *CategoryList) String() string
- func (m *CategoryList) Validate() error
- func (m *CategoryList) ValidateAll() error
- type CategoryListMultiError
- type CategoryListValidationError
- func (e CategoryListValidationError) Cause() error
- func (e CategoryListValidationError) Error() string
- func (e CategoryListValidationError) ErrorName() string
- func (e CategoryListValidationError) Field() string
- func (e CategoryListValidationError) Key() bool
- func (e CategoryListValidationError) Reason() string
- type CategoryMultiError
- type CategoryValidationError
- type Comment
- func (*Comment) Descriptor() ([]byte, []int)deprecated
- func (x *Comment) GetAuthorId() int64
- func (x *Comment) GetAuthorProfileImageUrl() string
- func (x *Comment) GetAuthorUsername() string
- func (x *Comment) GetCommentId() int64
- func (x *Comment) GetContent() string
- func (x *Comment) GetCreationDate() string
- func (x *Comment) GetCurrentUserHasDownvoted() bool
- func (x *Comment) GetCurrentUserHasUpvoted() bool
- func (x *Comment) GetParentId() int64
- func (x *Comment) GetVoteScore() int64
- func (*Comment) ProtoMessage()
- func (x *Comment) ProtoReflect() protoreflect.Message
- func (x *Comment) Reset()
- func (x *Comment) String() string
- func (m *Comment) Validate() error
- func (m *Comment) ValidateAll() error
- type CommentDeletionReq
- func (*CommentDeletionReq) Descriptor() ([]byte, []int)deprecated
- func (x *CommentDeletionReq) GetCommentID() int64
- func (x *CommentDeletionReq) GetUserID() int64
- func (*CommentDeletionReq) ProtoMessage()
- func (x *CommentDeletionReq) ProtoReflect() protoreflect.Message
- func (x *CommentDeletionReq) Reset()
- func (x *CommentDeletionReq) String() string
- func (m *CommentDeletionReq) Validate() error
- func (m *CommentDeletionReq) ValidateAll() error
- type CommentDeletionReqMultiError
- type CommentDeletionReqValidationError
- func (e CommentDeletionReqValidationError) Cause() error
- func (e CommentDeletionReqValidationError) Error() string
- func (e CommentDeletionReqValidationError) ErrorName() string
- func (e CommentDeletionReqValidationError) Field() string
- func (e CommentDeletionReqValidationError) Key() bool
- func (e CommentDeletionReqValidationError) Reason() string
- type CommentListResponse
- func (*CommentListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CommentListResponse) GetComments() []*Comment
- func (*CommentListResponse) ProtoMessage()
- func (x *CommentListResponse) ProtoReflect() protoreflect.Message
- func (x *CommentListResponse) Reset()
- func (x *CommentListResponse) String() string
- func (m *CommentListResponse) Validate() error
- func (m *CommentListResponse) ValidateAll() error
- type CommentListResponseMultiError
- type CommentListResponseValidationError
- func (e CommentListResponseValidationError) Cause() error
- func (e CommentListResponseValidationError) Error() string
- func (e CommentListResponseValidationError) ErrorName() string
- func (e CommentListResponseValidationError) Field() string
- func (e CommentListResponseValidationError) Key() bool
- func (e CommentListResponseValidationError) Reason() string
- type CommentMultiError
- type CommentRequest
- func (*CommentRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CommentRequest) GetCurrUserID() int64
- func (x *CommentRequest) GetVideoID() int64
- func (*CommentRequest) ProtoMessage()
- func (x *CommentRequest) ProtoReflect() protoreflect.Message
- func (x *CommentRequest) Reset()
- func (x *CommentRequest) String() string
- func (m *CommentRequest) Validate() error
- func (m *CommentRequest) ValidateAll() error
- type CommentRequestMultiError
- type CommentRequestValidationError
- func (e CommentRequestValidationError) Cause() error
- func (e CommentRequestValidationError) Error() string
- func (e CommentRequestValidationError) ErrorName() string
- func (e CommentRequestValidationError) Field() string
- func (e CommentRequestValidationError) Key() bool
- func (e CommentRequestValidationError) Reason() string
- type CommentUpvote
- func (*CommentUpvote) Descriptor() ([]byte, []int)deprecated
- func (x *CommentUpvote) GetCommentId() int64
- func (x *CommentUpvote) GetScore() int64
- func (x *CommentUpvote) GetUserId() int64
- func (*CommentUpvote) ProtoMessage()
- func (x *CommentUpvote) ProtoReflect() protoreflect.Message
- func (x *CommentUpvote) Reset()
- func (x *CommentUpvote) String() string
- func (m *CommentUpvote) Validate() error
- func (m *CommentUpvote) ValidateAll() error
- type CommentUpvoteMultiError
- type CommentUpvoteValidationError
- func (e CommentUpvoteValidationError) Cause() error
- func (e CommentUpvoteValidationError) Error() string
- func (e CommentUpvoteValidationError) ErrorName() string
- func (e CommentUpvoteValidationError) Field() string
- func (e CommentUpvoteValidationError) Key() bool
- func (e CommentUpvoteValidationError) Reason() string
- type CommentValidationError
- type Danmaku
- func (*Danmaku) Descriptor() ([]byte, []int)deprecated
- func (x *Danmaku) GetAuthorId() int64
- func (x *Danmaku) GetColor() string
- func (x *Danmaku) GetFontSize() string
- func (x *Danmaku) GetId() int64
- func (x *Danmaku) GetMessage() string
- func (x *Danmaku) GetTimestamp() string
- func (x *Danmaku) GetType() string
- func (x *Danmaku) GetVideoId() int64
- func (*Danmaku) ProtoMessage()
- func (x *Danmaku) ProtoReflect() protoreflect.Message
- func (x *Danmaku) Reset()
- func (x *Danmaku) String() string
- func (m *Danmaku) Validate() error
- func (m *Danmaku) ValidateAll() error
- type DanmakuList
- func (*DanmakuList) Descriptor() ([]byte, []int)deprecated
- func (x *DanmakuList) GetComments() []*Danmaku
- func (*DanmakuList) ProtoMessage()
- func (x *DanmakuList) ProtoReflect() protoreflect.Message
- func (x *DanmakuList) Reset()
- func (x *DanmakuList) String() string
- func (m *DanmakuList) Validate() error
- func (m *DanmakuList) ValidateAll() error
- type DanmakuListMultiError
- type DanmakuListValidationError
- func (e DanmakuListValidationError) Cause() error
- func (e DanmakuListValidationError) Error() string
- func (e DanmakuListValidationError) ErrorName() string
- func (e DanmakuListValidationError) Field() string
- func (e DanmakuListValidationError) Key() bool
- func (e DanmakuListValidationError) Reason() string
- type DanmakuMultiError
- type DanmakuQueryReq
- func (*DanmakuQueryReq) Descriptor() ([]byte, []int)deprecated
- func (x *DanmakuQueryReq) GetVideoId() int64
- func (*DanmakuQueryReq) ProtoMessage()
- func (x *DanmakuQueryReq) ProtoReflect() protoreflect.Message
- func (x *DanmakuQueryReq) Reset()
- func (x *DanmakuQueryReq) String() string
- func (m *DanmakuQueryReq) Validate() error
- func (m *DanmakuQueryReq) ValidateAll() error
- type DanmakuQueryReqMultiError
- type DanmakuQueryReqValidationError
- func (e DanmakuQueryReqValidationError) Cause() error
- func (e DanmakuQueryReqValidationError) Error() string
- func (e DanmakuQueryReqValidationError) ErrorName() string
- func (e DanmakuQueryReqValidationError) Field() string
- func (e DanmakuQueryReqValidationError) Key() bool
- func (e DanmakuQueryReqValidationError) Reason() string
- type DanmakuValidationError
- type FavoriteReq
- func (*FavoriteReq) Descriptor() ([]byte, []int)deprecated
- func (x *FavoriteReq) GetUserId() int64
- func (x *FavoriteReq) GetVideoId() int64
- func (*FavoriteReq) ProtoMessage()
- func (x *FavoriteReq) ProtoReflect() protoreflect.Message
- func (x *FavoriteReq) Reset()
- func (x *FavoriteReq) String() string
- func (m *FavoriteReq) Validate() error
- func (m *FavoriteReq) ValidateAll() error
- type FavoriteReqMultiError
- type FavoriteReqValidationError
- func (e FavoriteReqValidationError) Cause() error
- func (e FavoriteReqValidationError) Error() string
- func (e FavoriteReqValidationError) ErrorName() string
- func (e FavoriteReqValidationError) Field() string
- func (e FavoriteReqValidationError) Key() bool
- func (e FavoriteReqValidationError) Reason() string
- type FeedReq
- func (*FeedReq) Descriptor() ([]byte, []int)deprecated
- func (x *FeedReq) GetFollowedUsers() []int64
- func (*FeedReq) ProtoMessage()
- func (x *FeedReq) ProtoReflect() protoreflect.Message
- func (x *FeedReq) Reset()
- func (x *FeedReq) String() string
- func (m *FeedReq) Validate() error
- func (m *FeedReq) ValidateAll() error
- type FeedReqMultiError
- type FeedReqValidationError
- type FileContent
- func (*FileContent) Descriptor() ([]byte, []int)deprecated
- func (x *FileContent) GetData() []byte
- func (*FileContent) ProtoMessage()
- func (x *FileContent) ProtoReflect() protoreflect.Message
- func (x *FileContent) Reset()
- func (x *FileContent) String() string
- func (m *FileContent) Validate() error
- func (m *FileContent) ValidateAll() error
- type FileContentMultiError
- type FileContentValidationError
- func (e FileContentValidationError) Cause() error
- func (e FileContentValidationError) Error() string
- func (e FileContentValidationError) ErrorName() string
- func (e FileContentValidationError) Field() string
- func (e FileContentValidationError) Key() bool
- func (e FileContentValidationError) Reason() string
- type ForeignVideoCheck
- func (*ForeignVideoCheck) Descriptor() ([]byte, []int)deprecated
- func (x *ForeignVideoCheck) GetForeignVideoID() string
- func (x *ForeignVideoCheck) GetForeignWebsite() string
- func (*ForeignVideoCheck) ProtoMessage()
- func (x *ForeignVideoCheck) ProtoReflect() protoreflect.Message
- func (x *ForeignVideoCheck) Reset()
- func (x *ForeignVideoCheck) String() string
- func (m *ForeignVideoCheck) Validate() error
- func (m *ForeignVideoCheck) ValidateAll() error
- type ForeignVideoCheckMultiError
- type ForeignVideoCheckValidationError
- func (e ForeignVideoCheckValidationError) Cause() error
- func (e ForeignVideoCheckValidationError) Error() string
- func (e ForeignVideoCheckValidationError) ErrorName() string
- func (e ForeignVideoCheckValidationError) Field() string
- func (e ForeignVideoCheckValidationError) Key() bool
- func (e ForeignVideoCheckValidationError) Reason() string
- type InputFileMetadata
- func (*InputFileMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *InputFileMetadata) GetAuthorUID() string
- func (x *InputFileMetadata) GetAuthorUsername() string
- func (x *InputFileMetadata) GetCategory() string
- func (x *InputFileMetadata) GetDescription() string
- func (x *InputFileMetadata) GetDomesticAuthorID() int64
- func (x *InputFileMetadata) GetOriginalID() string
- func (x *InputFileMetadata) GetOriginalSite() string
- func (x *InputFileMetadata) GetOriginalVideoLink() string
- func (x *InputFileMetadata) GetTags() []string
- func (x *InputFileMetadata) GetThumbnail() []byte
- func (x *InputFileMetadata) GetTitle() string
- func (*InputFileMetadata) ProtoMessage()
- func (x *InputFileMetadata) ProtoReflect() protoreflect.Message
- func (x *InputFileMetadata) Reset()
- func (x *InputFileMetadata) String() string
- func (m *InputFileMetadata) Validate() error
- func (m *InputFileMetadata) ValidateAll() error
- type InputFileMetadataMultiError
- type InputFileMetadataValidationError
- func (e InputFileMetadataValidationError) Cause() error
- func (e InputFileMetadataValidationError) Error() string
- func (e InputFileMetadataValidationError) ErrorName() string
- func (e InputFileMetadataValidationError) Field() string
- func (e InputFileMetadataValidationError) Key() bool
- func (e InputFileMetadataValidationError) Reason() string
- type InputVideoChunk
- func (*InputVideoChunk) Descriptor() ([]byte, []int)deprecated
- func (x *InputVideoChunk) GetContent() *FileContent
- func (x *InputVideoChunk) GetMeta() *InputFileMetadata
- func (m *InputVideoChunk) GetPayload() isInputVideoChunk_Payload
- func (x *InputVideoChunk) GetRawmeta() *RawMetadata
- func (*InputVideoChunk) ProtoMessage()
- func (x *InputVideoChunk) ProtoReflect() protoreflect.Message
- func (x *InputVideoChunk) Reset()
- func (x *InputVideoChunk) String() string
- func (m *InputVideoChunk) Validate() error
- func (m *InputVideoChunk) ValidateAll() error
- type InputVideoChunkMultiError
- type InputVideoChunkValidationError
- func (e InputVideoChunkValidationError) Cause() error
- func (e InputVideoChunkValidationError) Error() string
- func (e InputVideoChunkValidationError) ErrorName() string
- func (e InputVideoChunkValidationError) Field() string
- func (e InputVideoChunkValidationError) Key() bool
- func (e InputVideoChunkValidationError) Reason() string
- type InputVideoChunk_Content
- type InputVideoChunk_Meta
- type InputVideoChunk_Rawmeta
- type Nothing
- type NothingMultiError
- type NothingValidationError
- type OrderCategory
- func (OrderCategory) Descriptor() protoreflect.EnumDescriptor
- func (x OrderCategory) Enum() *OrderCategory
- func (OrderCategory) EnumDescriptor() ([]byte, []int)deprecated
- func (x OrderCategory) Number() protoreflect.EnumNumber
- func (x OrderCategory) String() string
- func (OrderCategory) Type() protoreflect.EnumType
- type RawMetadata
- func (*RawMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *RawMetadata) GetData() []byte
- func (*RawMetadata) ProtoMessage()
- func (x *RawMetadata) ProtoReflect() protoreflect.Message
- func (x *RawMetadata) Reset()
- func (x *RawMetadata) String() string
- func (m *RawMetadata) Validate() error
- func (m *RawMetadata) ValidateAll() error
- type RawMetadataMultiError
- type RawMetadataValidationError
- func (e RawMetadataValidationError) Cause() error
- func (e RawMetadataValidationError) Error() string
- func (e RawMetadataValidationError) ErrorName() string
- func (e RawMetadataValidationError) Field() string
- func (e RawMetadataValidationError) Key() bool
- func (e RawMetadataValidationError) Reason() string
- type RecReq
- func (*RecReq) Descriptor() ([]byte, []int)deprecated
- func (x *RecReq) GetUserId() int64
- func (x *RecReq) GetVideoId() int64
- func (*RecReq) ProtoMessage()
- func (x *RecReq) ProtoReflect() protoreflect.Message
- func (x *RecReq) Reset()
- func (x *RecReq) String() string
- func (m *RecReq) Validate() error
- func (m *RecReq) ValidateAll() error
- type RecReqMultiError
- type RecReqValidationError
- type RecResp
- func (*RecResp) Descriptor() ([]byte, []int)deprecated
- func (x *RecResp) GetVideos() []*Video
- func (*RecResp) ProtoMessage()
- func (x *RecResp) ProtoReflect() protoreflect.Message
- func (x *RecResp) Reset()
- func (x *RecResp) String() string
- func (m *RecResp) Validate() error
- func (m *RecResp) ValidateAll() error
- type RecRespMultiError
- type RecRespValidationError
- type ResponseFileMetadata
- func (*ResponseFileMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseFileMetadata) GetAuthorUID() int64
- func (x *ResponseFileMetadata) GetDescription() string
- func (x *ResponseFileMetadata) GetOriginalVideoLink() string
- func (x *ResponseFileMetadata) GetTitle() string
- func (*ResponseFileMetadata) ProtoMessage()
- func (x *ResponseFileMetadata) ProtoReflect() protoreflect.Message
- func (x *ResponseFileMetadata) Reset()
- func (x *ResponseFileMetadata) String() string
- func (m *ResponseFileMetadata) Validate() error
- func (m *ResponseFileMetadata) ValidateAll() error
- type ResponseFileMetadataMultiError
- type ResponseFileMetadataValidationError
- func (e ResponseFileMetadataValidationError) Cause() error
- func (e ResponseFileMetadataValidationError) Error() string
- func (e ResponseFileMetadataValidationError) ErrorName() string
- func (e ResponseFileMetadataValidationError) Field() string
- func (e ResponseFileMetadataValidationError) Key() bool
- func (e ResponseFileMetadataValidationError) Reason() string
- type ResponseVideoChunk
- func (*ResponseVideoChunk) Descriptor() ([]byte, []int)deprecated
- func (x *ResponseVideoChunk) GetContent() *FileContent
- func (x *ResponseVideoChunk) GetMeta() *ResponseFileMetadata
- func (m *ResponseVideoChunk) GetPayload() isResponseVideoChunk_Payload
- func (*ResponseVideoChunk) ProtoMessage()
- func (x *ResponseVideoChunk) ProtoReflect() protoreflect.Message
- func (x *ResponseVideoChunk) Reset()
- func (x *ResponseVideoChunk) String() string
- func (m *ResponseVideoChunk) Validate() error
- func (m *ResponseVideoChunk) ValidateAll() error
- type ResponseVideoChunkMultiError
- type ResponseVideoChunkValidationError
- func (e ResponseVideoChunkValidationError) Cause() error
- func (e ResponseVideoChunkValidationError) Error() string
- func (e ResponseVideoChunkValidationError) ErrorName() string
- func (e ResponseVideoChunkValidationError) Field() string
- func (e ResponseVideoChunkValidationError) Key() bool
- func (e ResponseVideoChunkValidationError) Reason() string
- type ResponseVideoChunk_Content
- type ResponseVideoChunk_Meta
- type SortDirection
- func (SortDirection) Descriptor() protoreflect.EnumDescriptor
- func (x SortDirection) Enum() *SortDirection
- func (SortDirection) EnumDescriptor() ([]byte, []int)deprecated
- func (x SortDirection) Number() protoreflect.EnumNumber
- func (x SortDirection) String() string
- func (SortDirection) Type() protoreflect.EnumType
- type UnimplementedVideoServiceServer
- func (UnimplementedVideoServiceServer) AddDanmaku(context.Context, *Danmaku) (*Nothing, error)
- func (UnimplementedVideoServiceServer) ApproveVideo(context.Context, *VideoApproval) (*Nothing, error)
- func (UnimplementedVideoServiceServer) DeleteComment(context.Context, *CommentDeletionReq) (*Nothing, error)
- func (UnimplementedVideoServiceServer) DeleteVideo(context.Context, *VideoDeletionReq) (*Nothing, error)
- func (UnimplementedVideoServiceServer) DownloadVideo(*VideoRequest, VideoService_DownloadVideoServer) error
- func (UnimplementedVideoServiceServer) ForeignVideoExists(context.Context, *ForeignVideoCheck) (*VideoExistenceResponse, error)
- func (UnimplementedVideoServiceServer) GetCommentsForVideo(context.Context, *CommentRequest) (*CommentListResponse, error)
- func (UnimplementedVideoServiceServer) GetDanmaku(context.Context, *DanmakuQueryReq) (*DanmakuList, error)
- func (UnimplementedVideoServiceServer) GetFollowFeed(context.Context, *FeedReq) (*VideoList, error)
- func (UnimplementedVideoServiceServer) GetVideo(context.Context, *VideoRequest) (*VideoMetadata, error)
- func (UnimplementedVideoServiceServer) GetVideoList(context.Context, *VideoQueryConfig) (*VideoList, error)
- func (UnimplementedVideoServiceServer) GetVideoRecommendations(context.Context, *RecReq) (*RecResp, error)
- func (UnimplementedVideoServiceServer) MakeComment(context.Context, *VideoComment) (*Nothing, error)
- func (UnimplementedVideoServiceServer) MakeCommentUpvote(context.Context, *CommentUpvote) (*Nothing, error)
- func (UnimplementedVideoServiceServer) RateVideo(context.Context, *VideoRating) (*Nothing, error)
- func (UnimplementedVideoServiceServer) UploadVideo(VideoService_UploadVideoServer) error
- func (UnimplementedVideoServiceServer) ViewVideo(context.Context, *VideoViewing) (*Nothing, error)
- type UnsafeVideoServiceServer
- type UploadResponse
- func (*UploadResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UploadResponse) GetVideoID() int64
- func (*UploadResponse) ProtoMessage()
- func (x *UploadResponse) ProtoReflect() protoreflect.Message
- func (x *UploadResponse) Reset()
- func (x *UploadResponse) String() string
- func (m *UploadResponse) Validate() error
- func (m *UploadResponse) ValidateAll() error
- type UploadResponseMultiError
- type UploadResponseValidationError
- func (e UploadResponseValidationError) Cause() error
- func (e UploadResponseValidationError) Error() string
- func (e UploadResponseValidationError) ErrorName() string
- func (e UploadResponseValidationError) Field() string
- func (e UploadResponseValidationError) Key() bool
- func (e UploadResponseValidationError) Reason() string
- type Video
- func (*Video) Descriptor() ([]byte, []int)deprecated
- func (x *Video) GetAuthorID() int64
- func (x *Video) GetAuthorName() string
- func (x *Video) GetRating() int64
- func (x *Video) GetThumbnailLoc() string
- func (x *Video) GetUploadDate() string
- func (x *Video) GetVideoDuration() float32
- func (x *Video) GetVideoID() int64
- func (x *Video) GetVideoTitle() string
- func (x *Video) GetViews() uint64
- func (*Video) ProtoMessage()
- func (x *Video) ProtoReflect() protoreflect.Message
- func (x *Video) Reset()
- func (x *Video) String() string
- func (m *Video) Validate() error
- func (m *Video) ValidateAll() error
- type VideoApproval
- func (*VideoApproval) Descriptor() ([]byte, []int)deprecated
- func (x *VideoApproval) GetUserID() int64
- func (x *VideoApproval) GetVideoID() int64
- func (*VideoApproval) ProtoMessage()
- func (x *VideoApproval) ProtoReflect() protoreflect.Message
- func (x *VideoApproval) Reset()
- func (x *VideoApproval) String() string
- func (m *VideoApproval) Validate() error
- func (m *VideoApproval) ValidateAll() error
- type VideoApprovalMultiError
- type VideoApprovalValidationError
- func (e VideoApprovalValidationError) Cause() error
- func (e VideoApprovalValidationError) Error() string
- func (e VideoApprovalValidationError) ErrorName() string
- func (e VideoApprovalValidationError) Field() string
- func (e VideoApprovalValidationError) Key() bool
- func (e VideoApprovalValidationError) Reason() string
- type VideoComment
- func (*VideoComment) Descriptor() ([]byte, []int)deprecated
- func (x *VideoComment) GetComment() string
- func (x *VideoComment) GetParentComment() int64
- func (x *VideoComment) GetUserId() int64
- func (x *VideoComment) GetVideoId() int64
- func (*VideoComment) ProtoMessage()
- func (x *VideoComment) ProtoReflect() protoreflect.Message
- func (x *VideoComment) Reset()
- func (x *VideoComment) String() string
- func (m *VideoComment) Validate() error
- func (m *VideoComment) ValidateAll() error
- type VideoCommentMultiError
- type VideoCommentValidationError
- func (e VideoCommentValidationError) Cause() error
- func (e VideoCommentValidationError) Error() string
- func (e VideoCommentValidationError) ErrorName() string
- func (e VideoCommentValidationError) Field() string
- func (e VideoCommentValidationError) Key() bool
- func (e VideoCommentValidationError) Reason() string
- type VideoDeletionReq
- func (*VideoDeletionReq) Descriptor() ([]byte, []int)deprecated
- func (x *VideoDeletionReq) GetVideoID() string
- func (*VideoDeletionReq) ProtoMessage()
- func (x *VideoDeletionReq) ProtoReflect() protoreflect.Message
- func (x *VideoDeletionReq) Reset()
- func (x *VideoDeletionReq) String() string
- func (m *VideoDeletionReq) Validate() error
- func (m *VideoDeletionReq) ValidateAll() error
- type VideoDeletionReqMultiError
- type VideoDeletionReqValidationError
- func (e VideoDeletionReqValidationError) Cause() error
- func (e VideoDeletionReqValidationError) Error() string
- func (e VideoDeletionReqValidationError) ErrorName() string
- func (e VideoDeletionReqValidationError) Field() string
- func (e VideoDeletionReqValidationError) Key() bool
- func (e VideoDeletionReqValidationError) Reason() string
- type VideoExistenceResponse
- func (*VideoExistenceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *VideoExistenceResponse) GetExists() bool
- func (*VideoExistenceResponse) ProtoMessage()
- func (x *VideoExistenceResponse) ProtoReflect() protoreflect.Message
- func (x *VideoExistenceResponse) Reset()
- func (x *VideoExistenceResponse) String() string
- func (m *VideoExistenceResponse) Validate() error
- func (m *VideoExistenceResponse) ValidateAll() error
- type VideoExistenceResponseMultiError
- type VideoExistenceResponseValidationError
- func (e VideoExistenceResponseValidationError) Cause() error
- func (e VideoExistenceResponseValidationError) Error() string
- func (e VideoExistenceResponseValidationError) ErrorName() string
- func (e VideoExistenceResponseValidationError) Field() string
- func (e VideoExistenceResponseValidationError) Key() bool
- func (e VideoExistenceResponseValidationError) Reason() string
- type VideoList
- func (*VideoList) Descriptor() ([]byte, []int)deprecated
- func (x *VideoList) GetCategories() *CategoryList
- func (x *VideoList) GetNumberOfVideos() int64
- func (x *VideoList) GetVideos() []*Video
- func (*VideoList) ProtoMessage()
- func (x *VideoList) ProtoReflect() protoreflect.Message
- func (x *VideoList) Reset()
- func (x *VideoList) String() string
- func (m *VideoList) Validate() error
- func (m *VideoList) ValidateAll() error
- type VideoListMultiError
- type VideoListValidationError
- type VideoMetadata
- func (*VideoMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *VideoMetadata) GetAuthorID() int64
- func (x *VideoMetadata) GetAuthorName() string
- func (x *VideoMetadata) GetCategory() string
- func (x *VideoMetadata) GetDescription() string
- func (x *VideoMetadata) GetRating() int64
- func (x *VideoMetadata) GetTags() []string
- func (x *VideoMetadata) GetThumbnail() string
- func (x *VideoMetadata) GetUploadDate() string
- func (x *VideoMetadata) GetVideoDuration() float32
- func (x *VideoMetadata) GetVideoID() int64
- func (x *VideoMetadata) GetVideoLoc() string
- func (x *VideoMetadata) GetVideoTitle() string
- func (x *VideoMetadata) GetViews() uint64
- func (*VideoMetadata) ProtoMessage()
- func (x *VideoMetadata) ProtoReflect() protoreflect.Message
- func (x *VideoMetadata) Reset()
- func (x *VideoMetadata) String() string
- func (m *VideoMetadata) Validate() error
- func (m *VideoMetadata) ValidateAll() error
- type VideoMetadataMultiError
- type VideoMetadataValidationError
- func (e VideoMetadataValidationError) Cause() error
- func (e VideoMetadataValidationError) Error() string
- func (e VideoMetadataValidationError) ErrorName() string
- func (e VideoMetadataValidationError) Field() string
- func (e VideoMetadataValidationError) Key() bool
- func (e VideoMetadataValidationError) Reason() string
- type VideoMultiError
- type VideoQueryConfig
- func (*VideoQueryConfig) Descriptor() ([]byte, []int)deprecated
- func (x *VideoQueryConfig) GetCategory() string
- func (x *VideoQueryConfig) GetDirection() SortDirection
- func (x *VideoQueryConfig) GetFromUserID() int64
- func (x *VideoQueryConfig) GetOrderBy() OrderCategory
- func (x *VideoQueryConfig) GetPageNumber() int64
- func (x *VideoQueryConfig) GetSearchVal() string
- func (x *VideoQueryConfig) GetShowUnapproved() bool
- func (x *VideoQueryConfig) GetUnapprovedOnly() bool
- func (*VideoQueryConfig) ProtoMessage()
- func (x *VideoQueryConfig) ProtoReflect() protoreflect.Message
- func (x *VideoQueryConfig) Reset()
- func (x *VideoQueryConfig) String() string
- func (m *VideoQueryConfig) Validate() error
- func (m *VideoQueryConfig) ValidateAll() error
- type VideoQueryConfigMultiError
- type VideoQueryConfigValidationError
- func (e VideoQueryConfigValidationError) Cause() error
- func (e VideoQueryConfigValidationError) Error() string
- func (e VideoQueryConfigValidationError) ErrorName() string
- func (e VideoQueryConfigValidationError) Field() string
- func (e VideoQueryConfigValidationError) Key() bool
- func (e VideoQueryConfigValidationError) Reason() string
- type VideoRating
- func (*VideoRating) Descriptor() ([]byte, []int)deprecated
- func (x *VideoRating) GetRating() int64
- func (x *VideoRating) GetUserID() int64
- func (x *VideoRating) GetVideoID() int64
- func (*VideoRating) ProtoMessage()
- func (x *VideoRating) ProtoReflect() protoreflect.Message
- func (x *VideoRating) Reset()
- func (x *VideoRating) String() string
- func (m *VideoRating) Validate() error
- func (m *VideoRating) ValidateAll() error
- type VideoRatingMultiError
- type VideoRatingValidationError
- func (e VideoRatingValidationError) Cause() error
- func (e VideoRatingValidationError) Error() string
- func (e VideoRatingValidationError) ErrorName() string
- func (e VideoRatingValidationError) Field() string
- func (e VideoRatingValidationError) Key() bool
- func (e VideoRatingValidationError) Reason() string
- type VideoRec
- func (*VideoRec) Descriptor() ([]byte, []int)deprecated
- func (x *VideoRec) GetThumbnailLoc() string
- func (x *VideoRec) GetVideoID() int64
- func (x *VideoRec) GetVideoTitle() string
- func (*VideoRec) ProtoMessage()
- func (x *VideoRec) ProtoReflect() protoreflect.Message
- func (x *VideoRec) Reset()
- func (x *VideoRec) String() string
- func (m *VideoRec) Validate() error
- func (m *VideoRec) ValidateAll() error
- type VideoRecMultiError
- type VideoRecValidationError
- type VideoRequest
- func (*VideoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *VideoRequest) GetVideoID() string
- func (*VideoRequest) ProtoMessage()
- func (x *VideoRequest) ProtoReflect() protoreflect.Message
- func (x *VideoRequest) Reset()
- func (x *VideoRequest) String() string
- func (m *VideoRequest) Validate() error
- func (m *VideoRequest) ValidateAll() error
- type VideoRequestMultiError
- type VideoRequestValidationError
- func (e VideoRequestValidationError) Cause() error
- func (e VideoRequestValidationError) Error() string
- func (e VideoRequestValidationError) ErrorName() string
- func (e VideoRequestValidationError) Field() string
- func (e VideoRequestValidationError) Key() bool
- func (e VideoRequestValidationError) Reason() string
- type VideoServiceClient
- type VideoServiceServer
- type VideoService_DownloadVideoClient
- type VideoService_DownloadVideoServer
- type VideoService_UploadVideoClient
- type VideoService_UploadVideoServer
- type VideoValidationError
- type VideoViewing
- func (*VideoViewing) Descriptor() ([]byte, []int)deprecated
- func (x *VideoViewing) GetVideoID() int64
- func (*VideoViewing) ProtoMessage()
- func (x *VideoViewing) ProtoReflect() protoreflect.Message
- func (x *VideoViewing) Reset()
- func (x *VideoViewing) String() string
- func (m *VideoViewing) Validate() error
- func (m *VideoViewing) ValidateAll() error
- type VideoViewingMultiError
- type VideoViewingValidationError
- func (e VideoViewingValidationError) Cause() error
- func (e VideoViewingValidationError) Error() string
- func (e VideoViewingValidationError) ErrorName() string
- func (e VideoViewingValidationError) Field() string
- func (e VideoViewingValidationError) Key() bool
- func (e VideoViewingValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( OrderCategory_name = map[int32]string{ 0: "views", 1: "rating", 2: "upload_date", 3: "my_ratings", } OrderCategory_value = map[string]int32{ "views": 0, "rating": 1, "upload_date": 2, "my_ratings": 3, } )
Enum value maps for OrderCategory.
var ( SortDirection_name = map[int32]string{ 0: "asc", 2: "desc", } SortDirection_value = map[string]int32{ "asc": 0, "desc": 2, } )
Enum value maps for SortDirection.
var File_videoservice_proto protoreflect.FileDescriptor
var VideoService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.VideoService", HandlerType: (*VideoServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "foreignVideoExists", Handler: _VideoService_ForeignVideoExists_Handler, }, { MethodName: "getVideoList", Handler: _VideoService_GetVideoList_Handler, }, { MethodName: "getVideo", Handler: _VideoService_GetVideo_Handler, }, { MethodName: "rateVideo", Handler: _VideoService_RateVideo_Handler, }, { MethodName: "viewVideo", Handler: _VideoService_ViewVideo_Handler, }, { MethodName: "MakeComment", Handler: _VideoService_MakeComment_Handler, }, { MethodName: "MakeCommentUpvote", Handler: _VideoService_MakeCommentUpvote_Handler, }, { MethodName: "GetCommentsForVideo", Handler: _VideoService_GetCommentsForVideo_Handler, }, { MethodName: "GetVideoRecommendations", Handler: _VideoService_GetVideoRecommendations_Handler, }, { MethodName: "ApproveVideo", Handler: _VideoService_ApproveVideo_Handler, }, { MethodName: "DeleteVideo", Handler: _VideoService_DeleteVideo_Handler, }, { MethodName: "DeleteComment", Handler: _VideoService_DeleteComment_Handler, }, { MethodName: "GetFollowFeed", Handler: _VideoService_GetFollowFeed_Handler, }, { MethodName: "GetDanmaku", Handler: _VideoService_GetDanmaku_Handler, }, { MethodName: "addDanmaku", Handler: _VideoService_AddDanmaku_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "uploadVideo", Handler: _VideoService_UploadVideo_Handler, ClientStreams: true, }, { StreamName: "downloadVideo", Handler: _VideoService_DownloadVideo_Handler, ServerStreams: true, }, }, Metadata: "videoservice.proto", }
VideoService_ServiceDesc is the grpc.ServiceDesc for VideoService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterVideoServiceServer ¶
func RegisterVideoServiceServer(s grpc.ServiceRegistrar, srv VideoServiceServer)
Types ¶
type Category ¶
type Category struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Cardinality uint64 `protobuf:"varint,2,opt,name=cardinality,proto3" json:"cardinality,omitempty"` // contains filtered or unexported fields }
func (*Category) Descriptor
deprecated
func (*Category) GetCardinality ¶
func (*Category) ProtoMessage ¶
func (*Category) ProtoMessage()
func (*Category) ProtoReflect ¶
func (x *Category) ProtoReflect() protoreflect.Message
func (*Category) Validate ¶
Validate checks the field values on Category 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 (*Category) ValidateAll ¶
ValidateAll checks the field values on Category 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 CategoryMultiError, or nil if none found.
type CategoryList ¶
type CategoryList struct { Categories []*Category `protobuf:"bytes,1,rep,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*CategoryList) Descriptor
deprecated
func (*CategoryList) Descriptor() ([]byte, []int)
Deprecated: Use CategoryList.ProtoReflect.Descriptor instead.
func (*CategoryList) GetCategories ¶
func (x *CategoryList) GetCategories() []*Category
func (*CategoryList) ProtoMessage ¶
func (*CategoryList) ProtoMessage()
func (*CategoryList) ProtoReflect ¶
func (x *CategoryList) ProtoReflect() protoreflect.Message
func (*CategoryList) Reset ¶
func (x *CategoryList) Reset()
func (*CategoryList) String ¶
func (x *CategoryList) String() string
func (*CategoryList) Validate ¶
func (m *CategoryList) Validate() error
Validate checks the field values on CategoryList 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 (*CategoryList) ValidateAll ¶
func (m *CategoryList) ValidateAll() error
ValidateAll checks the field values on CategoryList 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 CategoryListMultiError, or nil if none found.
type CategoryListMultiError ¶
type CategoryListMultiError []error
CategoryListMultiError is an error wrapping multiple validation errors returned by CategoryList.ValidateAll() if the designated constraints aren't met.
func (CategoryListMultiError) AllErrors ¶
func (m CategoryListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CategoryListMultiError) Error ¶
func (m CategoryListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CategoryListValidationError ¶
type CategoryListValidationError struct {
// contains filtered or unexported fields
}
CategoryListValidationError is the validation error returned by CategoryList.Validate if the designated constraints aren't met.
func (CategoryListValidationError) Cause ¶
func (e CategoryListValidationError) Cause() error
Cause function returns cause value.
func (CategoryListValidationError) Error ¶
func (e CategoryListValidationError) Error() string
Error satisfies the builtin error interface
func (CategoryListValidationError) ErrorName ¶
func (e CategoryListValidationError) ErrorName() string
ErrorName returns error name.
func (CategoryListValidationError) Field ¶
func (e CategoryListValidationError) Field() string
Field function returns field value.
func (CategoryListValidationError) Key ¶
func (e CategoryListValidationError) Key() bool
Key function returns key value.
func (CategoryListValidationError) Reason ¶
func (e CategoryListValidationError) Reason() string
Reason function returns reason value.
type CategoryMultiError ¶
type CategoryMultiError []error
CategoryMultiError is an error wrapping multiple validation errors returned by Category.ValidateAll() if the designated constraints aren't met.
func (CategoryMultiError) AllErrors ¶
func (m CategoryMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CategoryMultiError) Error ¶
func (m CategoryMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CategoryValidationError ¶
type CategoryValidationError struct {
// contains filtered or unexported fields
}
CategoryValidationError is the validation error returned by Category.Validate if the designated constraints aren't met.
func (CategoryValidationError) Cause ¶
func (e CategoryValidationError) Cause() error
Cause function returns cause value.
func (CategoryValidationError) Error ¶
func (e CategoryValidationError) Error() string
Error satisfies the builtin error interface
func (CategoryValidationError) ErrorName ¶
func (e CategoryValidationError) ErrorName() string
ErrorName returns error name.
func (CategoryValidationError) Field ¶
func (e CategoryValidationError) Field() string
Field function returns field value.
func (CategoryValidationError) Key ¶
func (e CategoryValidationError) Key() bool
Key function returns key value.
func (CategoryValidationError) Reason ¶
func (e CategoryValidationError) Reason() string
Reason function returns reason value.
type Comment ¶
type Comment struct { CommentId int64 `protobuf:"varint,1,opt,name=comment_id,json=commentId,proto3" json:"comment_id,omitempty"` CreationDate string `protobuf:"bytes,2,opt,name=creation_date,json=creationDate,proto3" json:"creation_date,omitempty"` Content string `protobuf:"bytes,3,opt,name=content,proto3" json:"content,omitempty"` AuthorUsername string `protobuf:"bytes,4,opt,name=author_username,json=authorUsername,proto3" json:"author_username,omitempty"` AuthorProfileImageUrl string `` /* 128-byte string literal not displayed */ VoteScore int64 `protobuf:"varint,6,opt,name=vote_score,json=voteScore,proto3" json:"vote_score,omitempty"` CurrentUserHasUpvoted bool `` /* 129-byte string literal not displayed */ CurrentUserHasDownvoted bool `` /* 135-byte string literal not displayed */ AuthorId int64 `protobuf:"varint,9,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` ParentId int64 `protobuf:"varint,10,opt,name=parent_id,json=parentId,proto3" json:"parent_id,omitempty"` // contains filtered or unexported fields }
func (*Comment) Descriptor
deprecated
func (*Comment) GetAuthorId ¶
func (*Comment) GetAuthorProfileImageUrl ¶
func (*Comment) GetAuthorUsername ¶
func (*Comment) GetCommentId ¶
func (*Comment) GetContent ¶
func (*Comment) GetCreationDate ¶
func (*Comment) GetCurrentUserHasDownvoted ¶
func (*Comment) GetCurrentUserHasUpvoted ¶
func (*Comment) GetParentId ¶
func (*Comment) GetVoteScore ¶
func (*Comment) ProtoMessage ¶
func (*Comment) ProtoMessage()
func (*Comment) ProtoReflect ¶
func (x *Comment) ProtoReflect() protoreflect.Message
func (*Comment) Validate ¶
Validate checks the field values on Comment 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 (*Comment) ValidateAll ¶
ValidateAll checks the field values on Comment 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 CommentMultiError, or nil if none found.
type CommentDeletionReq ¶
type CommentDeletionReq struct { CommentID int64 `protobuf:"varint,1,opt,name=commentID,proto3" json:"commentID,omitempty"` UserID int64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"` // contains filtered or unexported fields }
func (*CommentDeletionReq) Descriptor
deprecated
func (*CommentDeletionReq) Descriptor() ([]byte, []int)
Deprecated: Use CommentDeletionReq.ProtoReflect.Descriptor instead.
func (*CommentDeletionReq) GetCommentID ¶
func (x *CommentDeletionReq) GetCommentID() int64
func (*CommentDeletionReq) GetUserID ¶
func (x *CommentDeletionReq) GetUserID() int64
func (*CommentDeletionReq) ProtoMessage ¶
func (*CommentDeletionReq) ProtoMessage()
func (*CommentDeletionReq) ProtoReflect ¶
func (x *CommentDeletionReq) ProtoReflect() protoreflect.Message
func (*CommentDeletionReq) Reset ¶
func (x *CommentDeletionReq) Reset()
func (*CommentDeletionReq) String ¶
func (x *CommentDeletionReq) String() string
func (*CommentDeletionReq) Validate ¶
func (m *CommentDeletionReq) Validate() error
Validate checks the field values on CommentDeletionReq 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 (*CommentDeletionReq) ValidateAll ¶
func (m *CommentDeletionReq) ValidateAll() error
ValidateAll checks the field values on CommentDeletionReq 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 CommentDeletionReqMultiError, or nil if none found.
type CommentDeletionReqMultiError ¶
type CommentDeletionReqMultiError []error
CommentDeletionReqMultiError is an error wrapping multiple validation errors returned by CommentDeletionReq.ValidateAll() if the designated constraints aren't met.
func (CommentDeletionReqMultiError) AllErrors ¶
func (m CommentDeletionReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentDeletionReqMultiError) Error ¶
func (m CommentDeletionReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentDeletionReqValidationError ¶
type CommentDeletionReqValidationError struct {
// contains filtered or unexported fields
}
CommentDeletionReqValidationError is the validation error returned by CommentDeletionReq.Validate if the designated constraints aren't met.
func (CommentDeletionReqValidationError) Cause ¶
func (e CommentDeletionReqValidationError) Cause() error
Cause function returns cause value.
func (CommentDeletionReqValidationError) Error ¶
func (e CommentDeletionReqValidationError) Error() string
Error satisfies the builtin error interface
func (CommentDeletionReqValidationError) ErrorName ¶
func (e CommentDeletionReqValidationError) ErrorName() string
ErrorName returns error name.
func (CommentDeletionReqValidationError) Field ¶
func (e CommentDeletionReqValidationError) Field() string
Field function returns field value.
func (CommentDeletionReqValidationError) Key ¶
func (e CommentDeletionReqValidationError) Key() bool
Key function returns key value.
func (CommentDeletionReqValidationError) Reason ¶
func (e CommentDeletionReqValidationError) Reason() string
Reason function returns reason value.
type CommentListResponse ¶
type CommentListResponse struct { Comments []*Comment `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*CommentListResponse) Descriptor
deprecated
func (*CommentListResponse) Descriptor() ([]byte, []int)
Deprecated: Use CommentListResponse.ProtoReflect.Descriptor instead.
func (*CommentListResponse) GetComments ¶
func (x *CommentListResponse) GetComments() []*Comment
func (*CommentListResponse) ProtoMessage ¶
func (*CommentListResponse) ProtoMessage()
func (*CommentListResponse) ProtoReflect ¶
func (x *CommentListResponse) ProtoReflect() protoreflect.Message
func (*CommentListResponse) Reset ¶
func (x *CommentListResponse) Reset()
func (*CommentListResponse) String ¶
func (x *CommentListResponse) String() string
func (*CommentListResponse) Validate ¶
func (m *CommentListResponse) Validate() error
Validate checks the field values on CommentListResponse 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 (*CommentListResponse) ValidateAll ¶
func (m *CommentListResponse) ValidateAll() error
ValidateAll checks the field values on CommentListResponse 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 CommentListResponseMultiError, or nil if none found.
type CommentListResponseMultiError ¶
type CommentListResponseMultiError []error
CommentListResponseMultiError is an error wrapping multiple validation errors returned by CommentListResponse.ValidateAll() if the designated constraints aren't met.
func (CommentListResponseMultiError) AllErrors ¶
func (m CommentListResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentListResponseMultiError) Error ¶
func (m CommentListResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentListResponseValidationError ¶
type CommentListResponseValidationError struct {
// contains filtered or unexported fields
}
CommentListResponseValidationError is the validation error returned by CommentListResponse.Validate if the designated constraints aren't met.
func (CommentListResponseValidationError) Cause ¶
func (e CommentListResponseValidationError) Cause() error
Cause function returns cause value.
func (CommentListResponseValidationError) Error ¶
func (e CommentListResponseValidationError) Error() string
Error satisfies the builtin error interface
func (CommentListResponseValidationError) ErrorName ¶
func (e CommentListResponseValidationError) ErrorName() string
ErrorName returns error name.
func (CommentListResponseValidationError) Field ¶
func (e CommentListResponseValidationError) Field() string
Field function returns field value.
func (CommentListResponseValidationError) Key ¶
func (e CommentListResponseValidationError) Key() bool
Key function returns key value.
func (CommentListResponseValidationError) Reason ¶
func (e CommentListResponseValidationError) Reason() string
Reason function returns reason value.
type CommentMultiError ¶
type CommentMultiError []error
CommentMultiError is an error wrapping multiple validation errors returned by Comment.ValidateAll() if the designated constraints aren't met.
func (CommentMultiError) AllErrors ¶
func (m CommentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentMultiError) Error ¶
func (m CommentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentRequest ¶
type CommentRequest struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` CurrUserID int64 `protobuf:"varint,2,opt,name=currUserID,proto3" json:"currUserID,omitempty"` // contains filtered or unexported fields }
Can add pagination in the future if needed (probably fine without it)
func (*CommentRequest) Descriptor
deprecated
func (*CommentRequest) Descriptor() ([]byte, []int)
Deprecated: Use CommentRequest.ProtoReflect.Descriptor instead.
func (*CommentRequest) GetCurrUserID ¶
func (x *CommentRequest) GetCurrUserID() int64
func (*CommentRequest) GetVideoID ¶
func (x *CommentRequest) GetVideoID() int64
func (*CommentRequest) ProtoMessage ¶
func (*CommentRequest) ProtoMessage()
func (*CommentRequest) ProtoReflect ¶
func (x *CommentRequest) ProtoReflect() protoreflect.Message
func (*CommentRequest) Reset ¶
func (x *CommentRequest) Reset()
func (*CommentRequest) String ¶
func (x *CommentRequest) String() string
func (*CommentRequest) Validate ¶
func (m *CommentRequest) Validate() error
Validate checks the field values on CommentRequest 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 (*CommentRequest) ValidateAll ¶
func (m *CommentRequest) ValidateAll() error
ValidateAll checks the field values on CommentRequest 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 CommentRequestMultiError, or nil if none found.
type CommentRequestMultiError ¶
type CommentRequestMultiError []error
CommentRequestMultiError is an error wrapping multiple validation errors returned by CommentRequest.ValidateAll() if the designated constraints aren't met.
func (CommentRequestMultiError) AllErrors ¶
func (m CommentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentRequestMultiError) Error ¶
func (m CommentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentRequestValidationError ¶
type CommentRequestValidationError struct {
// contains filtered or unexported fields
}
CommentRequestValidationError is the validation error returned by CommentRequest.Validate if the designated constraints aren't met.
func (CommentRequestValidationError) Cause ¶
func (e CommentRequestValidationError) Cause() error
Cause function returns cause value.
func (CommentRequestValidationError) Error ¶
func (e CommentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CommentRequestValidationError) ErrorName ¶
func (e CommentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CommentRequestValidationError) Field ¶
func (e CommentRequestValidationError) Field() string
Field function returns field value.
func (CommentRequestValidationError) Key ¶
func (e CommentRequestValidationError) Key() bool
Key function returns key value.
func (CommentRequestValidationError) Reason ¶
func (e CommentRequestValidationError) Reason() string
Reason function returns reason value.
type CommentUpvote ¶
type CommentUpvote 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"` Score int64 `protobuf:"varint,3,opt,name=score,proto3" json:"score,omitempty"` // -1, 0, 1 // contains filtered or unexported fields }
func (*CommentUpvote) Descriptor
deprecated
func (*CommentUpvote) Descriptor() ([]byte, []int)
Deprecated: Use CommentUpvote.ProtoReflect.Descriptor instead.
func (*CommentUpvote) GetCommentId ¶
func (x *CommentUpvote) GetCommentId() int64
func (*CommentUpvote) GetScore ¶
func (x *CommentUpvote) GetScore() int64
func (*CommentUpvote) GetUserId ¶
func (x *CommentUpvote) GetUserId() int64
func (*CommentUpvote) ProtoMessage ¶
func (*CommentUpvote) ProtoMessage()
func (*CommentUpvote) ProtoReflect ¶
func (x *CommentUpvote) ProtoReflect() protoreflect.Message
func (*CommentUpvote) Reset ¶
func (x *CommentUpvote) Reset()
func (*CommentUpvote) String ¶
func (x *CommentUpvote) String() string
func (*CommentUpvote) Validate ¶
func (m *CommentUpvote) Validate() error
Validate checks the field values on CommentUpvote 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 (*CommentUpvote) ValidateAll ¶
func (m *CommentUpvote) ValidateAll() error
ValidateAll checks the field values on CommentUpvote 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 CommentUpvoteMultiError, or nil if none found.
type CommentUpvoteMultiError ¶
type CommentUpvoteMultiError []error
CommentUpvoteMultiError is an error wrapping multiple validation errors returned by CommentUpvote.ValidateAll() if the designated constraints aren't met.
func (CommentUpvoteMultiError) AllErrors ¶
func (m CommentUpvoteMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CommentUpvoteMultiError) Error ¶
func (m CommentUpvoteMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CommentUpvoteValidationError ¶
type CommentUpvoteValidationError struct {
// contains filtered or unexported fields
}
CommentUpvoteValidationError is the validation error returned by CommentUpvote.Validate if the designated constraints aren't met.
func (CommentUpvoteValidationError) Cause ¶
func (e CommentUpvoteValidationError) Cause() error
Cause function returns cause value.
func (CommentUpvoteValidationError) Error ¶
func (e CommentUpvoteValidationError) Error() string
Error satisfies the builtin error interface
func (CommentUpvoteValidationError) ErrorName ¶
func (e CommentUpvoteValidationError) ErrorName() string
ErrorName returns error name.
func (CommentUpvoteValidationError) Field ¶
func (e CommentUpvoteValidationError) Field() string
Field function returns field value.
func (CommentUpvoteValidationError) Key ¶
func (e CommentUpvoteValidationError) Key() bool
Key function returns key value.
func (CommentUpvoteValidationError) Reason ¶
func (e CommentUpvoteValidationError) Reason() string
Reason function returns reason value.
type CommentValidationError ¶
type CommentValidationError struct {
// contains filtered or unexported fields
}
CommentValidationError is the validation error returned by Comment.Validate if the designated constraints aren't met.
func (CommentValidationError) Cause ¶
func (e CommentValidationError) Cause() error
Cause function returns cause value.
func (CommentValidationError) Error ¶
func (e CommentValidationError) Error() string
Error satisfies the builtin error interface
func (CommentValidationError) ErrorName ¶
func (e CommentValidationError) ErrorName() string
ErrorName returns error name.
func (CommentValidationError) Field ¶
func (e CommentValidationError) Field() string
Field function returns field value.
func (CommentValidationError) Key ¶
func (e CommentValidationError) Key() bool
Key function returns key value.
func (CommentValidationError) Reason ¶
func (e CommentValidationError) Reason() string
Reason function returns reason value.
type Danmaku ¶
type Danmaku struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` Timestamp string `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` AuthorId int64 `protobuf:"varint,4,opt,name=author_id,json=authorId,proto3" json:"author_id,omitempty"` Type string `protobuf:"bytes,5,opt,name=type,proto3" json:"type,omitempty"` Color string `protobuf:"bytes,6,opt,name=color,proto3" json:"color,omitempty"` FontSize string `protobuf:"bytes,7,opt,name=font_size,json=fontSize,proto3" json:"font_size,omitempty"` Id int64 `protobuf:"varint,8,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*Danmaku) Descriptor
deprecated
func (*Danmaku) GetAuthorId ¶
func (*Danmaku) GetFontSize ¶
func (*Danmaku) GetMessage ¶
func (*Danmaku) GetTimestamp ¶
func (*Danmaku) GetVideoId ¶
func (*Danmaku) ProtoMessage ¶
func (*Danmaku) ProtoMessage()
func (*Danmaku) ProtoReflect ¶
func (x *Danmaku) ProtoReflect() protoreflect.Message
func (*Danmaku) Validate ¶
Validate checks the field values on Danmaku 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 (*Danmaku) ValidateAll ¶
ValidateAll checks the field values on Danmaku 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 DanmakuMultiError, or nil if none found.
type DanmakuList ¶
type DanmakuList struct { Comments []*Danmaku `protobuf:"bytes,1,rep,name=comments,proto3" json:"comments,omitempty"` // contains filtered or unexported fields }
func (*DanmakuList) Descriptor
deprecated
func (*DanmakuList) Descriptor() ([]byte, []int)
Deprecated: Use DanmakuList.ProtoReflect.Descriptor instead.
func (*DanmakuList) GetComments ¶
func (x *DanmakuList) GetComments() []*Danmaku
func (*DanmakuList) ProtoMessage ¶
func (*DanmakuList) ProtoMessage()
func (*DanmakuList) ProtoReflect ¶
func (x *DanmakuList) ProtoReflect() protoreflect.Message
func (*DanmakuList) Reset ¶
func (x *DanmakuList) Reset()
func (*DanmakuList) String ¶
func (x *DanmakuList) String() string
func (*DanmakuList) Validate ¶
func (m *DanmakuList) Validate() error
Validate checks the field values on DanmakuList 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 (*DanmakuList) ValidateAll ¶
func (m *DanmakuList) ValidateAll() error
ValidateAll checks the field values on DanmakuList 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 DanmakuListMultiError, or nil if none found.
type DanmakuListMultiError ¶
type DanmakuListMultiError []error
DanmakuListMultiError is an error wrapping multiple validation errors returned by DanmakuList.ValidateAll() if the designated constraints aren't met.
func (DanmakuListMultiError) AllErrors ¶
func (m DanmakuListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DanmakuListMultiError) Error ¶
func (m DanmakuListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DanmakuListValidationError ¶
type DanmakuListValidationError struct {
// contains filtered or unexported fields
}
DanmakuListValidationError is the validation error returned by DanmakuList.Validate if the designated constraints aren't met.
func (DanmakuListValidationError) Cause ¶
func (e DanmakuListValidationError) Cause() error
Cause function returns cause value.
func (DanmakuListValidationError) Error ¶
func (e DanmakuListValidationError) Error() string
Error satisfies the builtin error interface
func (DanmakuListValidationError) ErrorName ¶
func (e DanmakuListValidationError) ErrorName() string
ErrorName returns error name.
func (DanmakuListValidationError) Field ¶
func (e DanmakuListValidationError) Field() string
Field function returns field value.
func (DanmakuListValidationError) Key ¶
func (e DanmakuListValidationError) Key() bool
Key function returns key value.
func (DanmakuListValidationError) Reason ¶
func (e DanmakuListValidationError) Reason() string
Reason function returns reason value.
type DanmakuMultiError ¶
type DanmakuMultiError []error
DanmakuMultiError is an error wrapping multiple validation errors returned by Danmaku.ValidateAll() if the designated constraints aren't met.
func (DanmakuMultiError) AllErrors ¶
func (m DanmakuMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DanmakuMultiError) Error ¶
func (m DanmakuMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DanmakuQueryReq ¶
type DanmakuQueryReq struct { VideoId int64 `protobuf:"varint,1,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*DanmakuQueryReq) Descriptor
deprecated
func (*DanmakuQueryReq) Descriptor() ([]byte, []int)
Deprecated: Use DanmakuQueryReq.ProtoReflect.Descriptor instead.
func (*DanmakuQueryReq) GetVideoId ¶
func (x *DanmakuQueryReq) GetVideoId() int64
func (*DanmakuQueryReq) ProtoMessage ¶
func (*DanmakuQueryReq) ProtoMessage()
func (*DanmakuQueryReq) ProtoReflect ¶
func (x *DanmakuQueryReq) ProtoReflect() protoreflect.Message
func (*DanmakuQueryReq) Reset ¶
func (x *DanmakuQueryReq) Reset()
func (*DanmakuQueryReq) String ¶
func (x *DanmakuQueryReq) String() string
func (*DanmakuQueryReq) Validate ¶
func (m *DanmakuQueryReq) Validate() error
Validate checks the field values on DanmakuQueryReq 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 (*DanmakuQueryReq) ValidateAll ¶
func (m *DanmakuQueryReq) ValidateAll() error
ValidateAll checks the field values on DanmakuQueryReq 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 DanmakuQueryReqMultiError, or nil if none found.
type DanmakuQueryReqMultiError ¶
type DanmakuQueryReqMultiError []error
DanmakuQueryReqMultiError is an error wrapping multiple validation errors returned by DanmakuQueryReq.ValidateAll() if the designated constraints aren't met.
func (DanmakuQueryReqMultiError) AllErrors ¶
func (m DanmakuQueryReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (DanmakuQueryReqMultiError) Error ¶
func (m DanmakuQueryReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type DanmakuQueryReqValidationError ¶
type DanmakuQueryReqValidationError struct {
// contains filtered or unexported fields
}
DanmakuQueryReqValidationError is the validation error returned by DanmakuQueryReq.Validate if the designated constraints aren't met.
func (DanmakuQueryReqValidationError) Cause ¶
func (e DanmakuQueryReqValidationError) Cause() error
Cause function returns cause value.
func (DanmakuQueryReqValidationError) Error ¶
func (e DanmakuQueryReqValidationError) Error() string
Error satisfies the builtin error interface
func (DanmakuQueryReqValidationError) ErrorName ¶
func (e DanmakuQueryReqValidationError) ErrorName() string
ErrorName returns error name.
func (DanmakuQueryReqValidationError) Field ¶
func (e DanmakuQueryReqValidationError) Field() string
Field function returns field value.
func (DanmakuQueryReqValidationError) Key ¶
func (e DanmakuQueryReqValidationError) Key() bool
Key function returns key value.
func (DanmakuQueryReqValidationError) Reason ¶
func (e DanmakuQueryReqValidationError) Reason() string
Reason function returns reason value.
type DanmakuValidationError ¶
type DanmakuValidationError struct {
// contains filtered or unexported fields
}
DanmakuValidationError is the validation error returned by Danmaku.Validate if the designated constraints aren't met.
func (DanmakuValidationError) Cause ¶
func (e DanmakuValidationError) Cause() error
Cause function returns cause value.
func (DanmakuValidationError) Error ¶
func (e DanmakuValidationError) Error() string
Error satisfies the builtin error interface
func (DanmakuValidationError) ErrorName ¶
func (e DanmakuValidationError) ErrorName() string
ErrorName returns error name.
func (DanmakuValidationError) Field ¶
func (e DanmakuValidationError) Field() string
Field function returns field value.
func (DanmakuValidationError) Key ¶
func (e DanmakuValidationError) Key() bool
Key function returns key value.
func (DanmakuValidationError) Reason ¶
func (e DanmakuValidationError) Reason() string
Reason function returns reason value.
type FavoriteReq ¶
type FavoriteReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*FavoriteReq) Descriptor
deprecated
func (*FavoriteReq) Descriptor() ([]byte, []int)
Deprecated: Use FavoriteReq.ProtoReflect.Descriptor instead.
func (*FavoriteReq) GetUserId ¶
func (x *FavoriteReq) GetUserId() int64
func (*FavoriteReq) GetVideoId ¶
func (x *FavoriteReq) GetVideoId() int64
func (*FavoriteReq) ProtoMessage ¶
func (*FavoriteReq) ProtoMessage()
func (*FavoriteReq) ProtoReflect ¶
func (x *FavoriteReq) ProtoReflect() protoreflect.Message
func (*FavoriteReq) Reset ¶
func (x *FavoriteReq) Reset()
func (*FavoriteReq) String ¶
func (x *FavoriteReq) String() string
func (*FavoriteReq) Validate ¶
func (m *FavoriteReq) Validate() error
Validate checks the field values on FavoriteReq 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 (*FavoriteReq) ValidateAll ¶
func (m *FavoriteReq) ValidateAll() error
ValidateAll checks the field values on FavoriteReq 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 FavoriteReqMultiError, or nil if none found.
type FavoriteReqMultiError ¶
type FavoriteReqMultiError []error
FavoriteReqMultiError is an error wrapping multiple validation errors returned by FavoriteReq.ValidateAll() if the designated constraints aren't met.
func (FavoriteReqMultiError) AllErrors ¶
func (m FavoriteReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FavoriteReqMultiError) Error ¶
func (m FavoriteReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FavoriteReqValidationError ¶
type FavoriteReqValidationError struct {
// contains filtered or unexported fields
}
FavoriteReqValidationError is the validation error returned by FavoriteReq.Validate if the designated constraints aren't met.
func (FavoriteReqValidationError) Cause ¶
func (e FavoriteReqValidationError) Cause() error
Cause function returns cause value.
func (FavoriteReqValidationError) Error ¶
func (e FavoriteReqValidationError) Error() string
Error satisfies the builtin error interface
func (FavoriteReqValidationError) ErrorName ¶
func (e FavoriteReqValidationError) ErrorName() string
ErrorName returns error name.
func (FavoriteReqValidationError) Field ¶
func (e FavoriteReqValidationError) Field() string
Field function returns field value.
func (FavoriteReqValidationError) Key ¶
func (e FavoriteReqValidationError) Key() bool
Key function returns key value.
func (FavoriteReqValidationError) Reason ¶
func (e FavoriteReqValidationError) Reason() string
Reason function returns reason value.
type FeedReq ¶
type FeedReq struct { FollowedUsers []int64 `protobuf:"varint,1,rep,packed,name=followed_users,json=followedUsers,proto3" json:"followed_users,omitempty"` // contains filtered or unexported fields }
func (*FeedReq) Descriptor
deprecated
func (*FeedReq) GetFollowedUsers ¶
func (*FeedReq) ProtoMessage ¶
func (*FeedReq) ProtoMessage()
func (*FeedReq) ProtoReflect ¶
func (x *FeedReq) ProtoReflect() protoreflect.Message
func (*FeedReq) Validate ¶
Validate checks the field values on FeedReq 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 (*FeedReq) ValidateAll ¶
ValidateAll checks the field values on FeedReq 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 FeedReqMultiError, or nil if none found.
type FeedReqMultiError ¶
type FeedReqMultiError []error
FeedReqMultiError is an error wrapping multiple validation errors returned by FeedReq.ValidateAll() if the designated constraints aren't met.
func (FeedReqMultiError) AllErrors ¶
func (m FeedReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FeedReqMultiError) Error ¶
func (m FeedReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FeedReqValidationError ¶
type FeedReqValidationError struct {
// contains filtered or unexported fields
}
FeedReqValidationError is the validation error returned by FeedReq.Validate if the designated constraints aren't met.
func (FeedReqValidationError) Cause ¶
func (e FeedReqValidationError) Cause() error
Cause function returns cause value.
func (FeedReqValidationError) Error ¶
func (e FeedReqValidationError) Error() string
Error satisfies the builtin error interface
func (FeedReqValidationError) ErrorName ¶
func (e FeedReqValidationError) ErrorName() string
ErrorName returns error name.
func (FeedReqValidationError) Field ¶
func (e FeedReqValidationError) Field() string
Field function returns field value.
func (FeedReqValidationError) Key ¶
func (e FeedReqValidationError) Key() bool
Key function returns key value.
func (FeedReqValidationError) Reason ¶
func (e FeedReqValidationError) Reason() string
Reason function returns reason value.
type FileContent ¶
type FileContent struct { Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*FileContent) Descriptor
deprecated
func (*FileContent) Descriptor() ([]byte, []int)
Deprecated: Use FileContent.ProtoReflect.Descriptor instead.
func (*FileContent) GetData ¶
func (x *FileContent) GetData() []byte
func (*FileContent) ProtoMessage ¶
func (*FileContent) ProtoMessage()
func (*FileContent) ProtoReflect ¶
func (x *FileContent) ProtoReflect() protoreflect.Message
func (*FileContent) Reset ¶
func (x *FileContent) Reset()
func (*FileContent) String ¶
func (x *FileContent) String() string
func (*FileContent) Validate ¶
func (m *FileContent) Validate() error
Validate checks the field values on FileContent 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 (*FileContent) ValidateAll ¶
func (m *FileContent) ValidateAll() error
ValidateAll checks the field values on FileContent 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 FileContentMultiError, or nil if none found.
type FileContentMultiError ¶
type FileContentMultiError []error
FileContentMultiError is an error wrapping multiple validation errors returned by FileContent.ValidateAll() if the designated constraints aren't met.
func (FileContentMultiError) AllErrors ¶
func (m FileContentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (FileContentMultiError) Error ¶
func (m FileContentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type FileContentValidationError ¶
type FileContentValidationError struct {
// contains filtered or unexported fields
}
FileContentValidationError is the validation error returned by FileContent.Validate if the designated constraints aren't met.
func (FileContentValidationError) Cause ¶
func (e FileContentValidationError) Cause() error
Cause function returns cause value.
func (FileContentValidationError) Error ¶
func (e FileContentValidationError) Error() string
Error satisfies the builtin error interface
func (FileContentValidationError) ErrorName ¶
func (e FileContentValidationError) ErrorName() string
ErrorName returns error name.
func (FileContentValidationError) Field ¶
func (e FileContentValidationError) Field() string
Field function returns field value.
func (FileContentValidationError) Key ¶
func (e FileContentValidationError) Key() bool
Key function returns key value.
func (FileContentValidationError) Reason ¶
func (e FileContentValidationError) Reason() string
Reason function returns reason value.
type ForeignVideoCheck ¶
type ForeignVideoCheck struct { ForeignVideoID string `protobuf:"bytes,1,opt,name=ForeignVideoID,proto3" json:"ForeignVideoID,omitempty"` ForeignWebsite string `protobuf:"bytes,2,opt,name=ForeignWebsite,proto3" json:"ForeignWebsite,omitempty"` // contains filtered or unexported fields }
func (*ForeignVideoCheck) Descriptor
deprecated
func (*ForeignVideoCheck) Descriptor() ([]byte, []int)
Deprecated: Use ForeignVideoCheck.ProtoReflect.Descriptor instead.
func (*ForeignVideoCheck) GetForeignVideoID ¶
func (x *ForeignVideoCheck) GetForeignVideoID() string
func (*ForeignVideoCheck) GetForeignWebsite ¶
func (x *ForeignVideoCheck) GetForeignWebsite() string
func (*ForeignVideoCheck) ProtoMessage ¶
func (*ForeignVideoCheck) ProtoMessage()
func (*ForeignVideoCheck) ProtoReflect ¶
func (x *ForeignVideoCheck) ProtoReflect() protoreflect.Message
func (*ForeignVideoCheck) Reset ¶
func (x *ForeignVideoCheck) Reset()
func (*ForeignVideoCheck) String ¶
func (x *ForeignVideoCheck) String() string
func (*ForeignVideoCheck) Validate ¶
func (m *ForeignVideoCheck) Validate() error
Validate checks the field values on ForeignVideoCheck 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 (*ForeignVideoCheck) ValidateAll ¶
func (m *ForeignVideoCheck) ValidateAll() error
ValidateAll checks the field values on ForeignVideoCheck 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 ForeignVideoCheckMultiError, or nil if none found.
type ForeignVideoCheckMultiError ¶
type ForeignVideoCheckMultiError []error
ForeignVideoCheckMultiError is an error wrapping multiple validation errors returned by ForeignVideoCheck.ValidateAll() if the designated constraints aren't met.
func (ForeignVideoCheckMultiError) AllErrors ¶
func (m ForeignVideoCheckMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ForeignVideoCheckMultiError) Error ¶
func (m ForeignVideoCheckMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ForeignVideoCheckValidationError ¶
type ForeignVideoCheckValidationError struct {
// contains filtered or unexported fields
}
ForeignVideoCheckValidationError is the validation error returned by ForeignVideoCheck.Validate if the designated constraints aren't met.
func (ForeignVideoCheckValidationError) Cause ¶
func (e ForeignVideoCheckValidationError) Cause() error
Cause function returns cause value.
func (ForeignVideoCheckValidationError) Error ¶
func (e ForeignVideoCheckValidationError) Error() string
Error satisfies the builtin error interface
func (ForeignVideoCheckValidationError) ErrorName ¶
func (e ForeignVideoCheckValidationError) ErrorName() string
ErrorName returns error name.
func (ForeignVideoCheckValidationError) Field ¶
func (e ForeignVideoCheckValidationError) Field() string
Field function returns field value.
func (ForeignVideoCheckValidationError) Key ¶
func (e ForeignVideoCheckValidationError) Key() bool
Key function returns key value.
func (ForeignVideoCheckValidationError) Reason ¶
func (e ForeignVideoCheckValidationError) Reason() string
Reason function returns reason value.
type InputFileMetadata ¶
type InputFileMetadata struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` AuthorUID string `protobuf:"bytes,3,opt,name=authorUID,proto3" json:"authorUID,omitempty"` // 0 if reupload OriginalVideoLink string `protobuf:"bytes,4,opt,name=originalVideoLink,proto3" json:"originalVideoLink,omitempty"` // If reupload AuthorUsername string `protobuf:"bytes,5,opt,name=authorUsername,proto3" json:"authorUsername,omitempty"` // If reupload OriginalSite string `protobuf:"bytes,6,opt,name=originalSite,proto3" json:"originalSite,omitempty"` // If reupload OriginalID string `protobuf:"bytes,7,opt,name=originalID,proto3" json:"originalID,omitempty"` // If reupload // this is a little dumb DomesticAuthorID int64 `protobuf:"varint,8,opt,name=domesticAuthorID,proto3" json:"domesticAuthorID,omitempty"` Tags []string `protobuf:"bytes,9,rep,name=Tags,proto3" json:"Tags,omitempty"` Thumbnail []byte `protobuf:"bytes,10,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` // lol good enough, I could stream this but this is easier Category string `protobuf:"bytes,11,opt,name=category,proto3" json:"category,omitempty"` // contains filtered or unexported fields }
Could make the reupload fields optional
func (*InputFileMetadata) Descriptor
deprecated
func (*InputFileMetadata) Descriptor() ([]byte, []int)
Deprecated: Use InputFileMetadata.ProtoReflect.Descriptor instead.
func (*InputFileMetadata) GetAuthorUID ¶
func (x *InputFileMetadata) GetAuthorUID() string
func (*InputFileMetadata) GetAuthorUsername ¶
func (x *InputFileMetadata) GetAuthorUsername() string
func (*InputFileMetadata) GetCategory ¶
func (x *InputFileMetadata) GetCategory() string
func (*InputFileMetadata) GetDescription ¶
func (x *InputFileMetadata) GetDescription() string
func (*InputFileMetadata) GetDomesticAuthorID ¶
func (x *InputFileMetadata) GetDomesticAuthorID() int64
func (*InputFileMetadata) GetOriginalID ¶
func (x *InputFileMetadata) GetOriginalID() string
func (*InputFileMetadata) GetOriginalSite ¶
func (x *InputFileMetadata) GetOriginalSite() string
func (*InputFileMetadata) GetOriginalVideoLink ¶
func (x *InputFileMetadata) GetOriginalVideoLink() string
func (*InputFileMetadata) GetTags ¶
func (x *InputFileMetadata) GetTags() []string
func (*InputFileMetadata) GetThumbnail ¶
func (x *InputFileMetadata) GetThumbnail() []byte
func (*InputFileMetadata) GetTitle ¶
func (x *InputFileMetadata) GetTitle() string
func (*InputFileMetadata) ProtoMessage ¶
func (*InputFileMetadata) ProtoMessage()
func (*InputFileMetadata) ProtoReflect ¶
func (x *InputFileMetadata) ProtoReflect() protoreflect.Message
func (*InputFileMetadata) Reset ¶
func (x *InputFileMetadata) Reset()
func (*InputFileMetadata) String ¶
func (x *InputFileMetadata) String() string
func (*InputFileMetadata) Validate ¶
func (m *InputFileMetadata) Validate() error
Validate checks the field values on InputFileMetadata 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 (*InputFileMetadata) ValidateAll ¶
func (m *InputFileMetadata) ValidateAll() error
ValidateAll checks the field values on InputFileMetadata 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 InputFileMetadataMultiError, or nil if none found.
type InputFileMetadataMultiError ¶
type InputFileMetadataMultiError []error
InputFileMetadataMultiError is an error wrapping multiple validation errors returned by InputFileMetadata.ValidateAll() if the designated constraints aren't met.
func (InputFileMetadataMultiError) AllErrors ¶
func (m InputFileMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InputFileMetadataMultiError) Error ¶
func (m InputFileMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InputFileMetadataValidationError ¶
type InputFileMetadataValidationError struct {
// contains filtered or unexported fields
}
InputFileMetadataValidationError is the validation error returned by InputFileMetadata.Validate if the designated constraints aren't met.
func (InputFileMetadataValidationError) Cause ¶
func (e InputFileMetadataValidationError) Cause() error
Cause function returns cause value.
func (InputFileMetadataValidationError) Error ¶
func (e InputFileMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (InputFileMetadataValidationError) ErrorName ¶
func (e InputFileMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (InputFileMetadataValidationError) Field ¶
func (e InputFileMetadataValidationError) Field() string
Field function returns field value.
func (InputFileMetadataValidationError) Key ¶
func (e InputFileMetadataValidationError) Key() bool
Key function returns key value.
func (InputFileMetadataValidationError) Reason ¶
func (e InputFileMetadataValidationError) Reason() string
Reason function returns reason value.
type InputVideoChunk ¶
type InputVideoChunk struct { // Types that are assignable to Payload: // *InputVideoChunk_Content // *InputVideoChunk_Meta // *InputVideoChunk_Rawmeta Payload isInputVideoChunk_Payload `protobuf_oneof:"Payload"` // contains filtered or unexported fields }
func (*InputVideoChunk) Descriptor
deprecated
func (*InputVideoChunk) Descriptor() ([]byte, []int)
Deprecated: Use InputVideoChunk.ProtoReflect.Descriptor instead.
func (*InputVideoChunk) GetContent ¶
func (x *InputVideoChunk) GetContent() *FileContent
func (*InputVideoChunk) GetMeta ¶
func (x *InputVideoChunk) GetMeta() *InputFileMetadata
func (*InputVideoChunk) GetPayload ¶
func (m *InputVideoChunk) GetPayload() isInputVideoChunk_Payload
func (*InputVideoChunk) GetRawmeta ¶
func (x *InputVideoChunk) GetRawmeta() *RawMetadata
func (*InputVideoChunk) ProtoMessage ¶
func (*InputVideoChunk) ProtoMessage()
func (*InputVideoChunk) ProtoReflect ¶
func (x *InputVideoChunk) ProtoReflect() protoreflect.Message
func (*InputVideoChunk) Reset ¶
func (x *InputVideoChunk) Reset()
func (*InputVideoChunk) String ¶
func (x *InputVideoChunk) String() string
func (*InputVideoChunk) Validate ¶
func (m *InputVideoChunk) Validate() error
Validate checks the field values on InputVideoChunk 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 (*InputVideoChunk) ValidateAll ¶
func (m *InputVideoChunk) ValidateAll() error
ValidateAll checks the field values on InputVideoChunk 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 InputVideoChunkMultiError, or nil if none found.
type InputVideoChunkMultiError ¶
type InputVideoChunkMultiError []error
InputVideoChunkMultiError is an error wrapping multiple validation errors returned by InputVideoChunk.ValidateAll() if the designated constraints aren't met.
func (InputVideoChunkMultiError) AllErrors ¶
func (m InputVideoChunkMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (InputVideoChunkMultiError) Error ¶
func (m InputVideoChunkMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type InputVideoChunkValidationError ¶
type InputVideoChunkValidationError struct {
// contains filtered or unexported fields
}
InputVideoChunkValidationError is the validation error returned by InputVideoChunk.Validate if the designated constraints aren't met.
func (InputVideoChunkValidationError) Cause ¶
func (e InputVideoChunkValidationError) Cause() error
Cause function returns cause value.
func (InputVideoChunkValidationError) Error ¶
func (e InputVideoChunkValidationError) Error() string
Error satisfies the builtin error interface
func (InputVideoChunkValidationError) ErrorName ¶
func (e InputVideoChunkValidationError) ErrorName() string
ErrorName returns error name.
func (InputVideoChunkValidationError) Field ¶
func (e InputVideoChunkValidationError) Field() string
Field function returns field value.
func (InputVideoChunkValidationError) Key ¶
func (e InputVideoChunkValidationError) Key() bool
Key function returns key value.
func (InputVideoChunkValidationError) Reason ¶
func (e InputVideoChunkValidationError) Reason() string
Reason function returns reason value.
type InputVideoChunk_Content ¶
type InputVideoChunk_Content struct {
Content *FileContent `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}
type InputVideoChunk_Meta ¶
type InputVideoChunk_Meta struct {
Meta *InputFileMetadata `protobuf:"bytes,2,opt,name=meta,proto3,oneof"`
}
type InputVideoChunk_Rawmeta ¶
type InputVideoChunk_Rawmeta struct {
Rawmeta *RawMetadata `protobuf:"bytes,3,opt,name=rawmeta,proto3,oneof"` // This was added after the above two fields, and is used for the metadata.json file for the video
}
type Nothing ¶
type Nothing struct {
// contains filtered or unexported fields
}
func (*Nothing) Descriptor
deprecated
func (*Nothing) ProtoMessage ¶
func (*Nothing) ProtoMessage()
func (*Nothing) ProtoReflect ¶
func (x *Nothing) ProtoReflect() protoreflect.Message
func (*Nothing) Validate ¶
Validate checks the field values on Nothing 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 (*Nothing) ValidateAll ¶
ValidateAll checks the field values on Nothing 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 NothingMultiError, or nil if none found.
type NothingMultiError ¶
type NothingMultiError []error
NothingMultiError is an error wrapping multiple validation errors returned by Nothing.ValidateAll() if the designated constraints aren't met.
func (NothingMultiError) AllErrors ¶
func (m NothingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (NothingMultiError) Error ¶
func (m NothingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type NothingValidationError ¶
type NothingValidationError struct {
// contains filtered or unexported fields
}
NothingValidationError is the validation error returned by Nothing.Validate if the designated constraints aren't met.
func (NothingValidationError) Cause ¶
func (e NothingValidationError) Cause() error
Cause function returns cause value.
func (NothingValidationError) Error ¶
func (e NothingValidationError) Error() string
Error satisfies the builtin error interface
func (NothingValidationError) ErrorName ¶
func (e NothingValidationError) ErrorName() string
ErrorName returns error name.
func (NothingValidationError) Field ¶
func (e NothingValidationError) Field() string
Field function returns field value.
func (NothingValidationError) Key ¶
func (e NothingValidationError) Key() bool
Key function returns key value.
func (NothingValidationError) Reason ¶
func (e NothingValidationError) Reason() string
Reason function returns reason value.
type OrderCategory ¶
type OrderCategory int32
const ( OrderCategory_views OrderCategory = 0 OrderCategory_rating OrderCategory = 1 OrderCategory_upload_date OrderCategory = 2 OrderCategory_my_ratings OrderCategory = 3 )
func (OrderCategory) Descriptor ¶
func (OrderCategory) Descriptor() protoreflect.EnumDescriptor
func (OrderCategory) Enum ¶
func (x OrderCategory) Enum() *OrderCategory
func (OrderCategory) EnumDescriptor
deprecated
func (OrderCategory) EnumDescriptor() ([]byte, []int)
Deprecated: Use OrderCategory.Descriptor instead.
func (OrderCategory) Number ¶
func (x OrderCategory) Number() protoreflect.EnumNumber
func (OrderCategory) String ¶
func (x OrderCategory) String() string
func (OrderCategory) Type ¶
func (OrderCategory) Type() protoreflect.EnumType
type RawMetadata ¶
type RawMetadata struct { Data []byte `protobuf:"bytes,1,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*RawMetadata) Descriptor
deprecated
func (*RawMetadata) Descriptor() ([]byte, []int)
Deprecated: Use RawMetadata.ProtoReflect.Descriptor instead.
func (*RawMetadata) GetData ¶
func (x *RawMetadata) GetData() []byte
func (*RawMetadata) ProtoMessage ¶
func (*RawMetadata) ProtoMessage()
func (*RawMetadata) ProtoReflect ¶
func (x *RawMetadata) ProtoReflect() protoreflect.Message
func (*RawMetadata) Reset ¶
func (x *RawMetadata) Reset()
func (*RawMetadata) String ¶
func (x *RawMetadata) String() string
func (*RawMetadata) Validate ¶
func (m *RawMetadata) Validate() error
Validate checks the field values on RawMetadata 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 (*RawMetadata) ValidateAll ¶
func (m *RawMetadata) ValidateAll() error
ValidateAll checks the field values on RawMetadata 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 RawMetadataMultiError, or nil if none found.
type RawMetadataMultiError ¶
type RawMetadataMultiError []error
RawMetadataMultiError is an error wrapping multiple validation errors returned by RawMetadata.ValidateAll() if the designated constraints aren't met.
func (RawMetadataMultiError) AllErrors ¶
func (m RawMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RawMetadataMultiError) Error ¶
func (m RawMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RawMetadataValidationError ¶
type RawMetadataValidationError struct {
// contains filtered or unexported fields
}
RawMetadataValidationError is the validation error returned by RawMetadata.Validate if the designated constraints aren't met.
func (RawMetadataValidationError) Cause ¶
func (e RawMetadataValidationError) Cause() error
Cause function returns cause value.
func (RawMetadataValidationError) Error ¶
func (e RawMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (RawMetadataValidationError) ErrorName ¶
func (e RawMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (RawMetadataValidationError) Field ¶
func (e RawMetadataValidationError) Field() string
Field function returns field value.
func (RawMetadataValidationError) Key ¶
func (e RawMetadataValidationError) Key() bool
Key function returns key value.
func (RawMetadataValidationError) Reason ¶
func (e RawMetadataValidationError) Reason() string
Reason function returns reason value.
type RecReq ¶
type RecReq struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` // contains filtered or unexported fields }
func (*RecReq) Descriptor
deprecated
func (*RecReq) GetVideoId ¶
func (*RecReq) ProtoMessage ¶
func (*RecReq) ProtoMessage()
func (*RecReq) ProtoReflect ¶
func (x *RecReq) ProtoReflect() protoreflect.Message
func (*RecReq) Validate ¶
Validate checks the field values on RecReq 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 (*RecReq) ValidateAll ¶
ValidateAll checks the field values on RecReq 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 RecReqMultiError, or nil if none found.
type RecReqMultiError ¶
type RecReqMultiError []error
RecReqMultiError is an error wrapping multiple validation errors returned by RecReq.ValidateAll() if the designated constraints aren't met.
func (RecReqMultiError) AllErrors ¶
func (m RecReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecReqMultiError) Error ¶
func (m RecReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecReqValidationError ¶
type RecReqValidationError struct {
// contains filtered or unexported fields
}
RecReqValidationError is the validation error returned by RecReq.Validate if the designated constraints aren't met.
func (RecReqValidationError) Cause ¶
func (e RecReqValidationError) Cause() error
Cause function returns cause value.
func (RecReqValidationError) Error ¶
func (e RecReqValidationError) Error() string
Error satisfies the builtin error interface
func (RecReqValidationError) ErrorName ¶
func (e RecReqValidationError) ErrorName() string
ErrorName returns error name.
func (RecReqValidationError) Field ¶
func (e RecReqValidationError) Field() string
Field function returns field value.
func (RecReqValidationError) Key ¶
func (e RecReqValidationError) Key() bool
Key function returns key value.
func (RecReqValidationError) Reason ¶
func (e RecReqValidationError) Reason() string
Reason function returns reason value.
type RecResp ¶
type RecResp struct { Videos []*Video `protobuf:"bytes,1,rep,name=videos,proto3" json:"videos,omitempty"` // contains filtered or unexported fields }
func (*RecResp) Descriptor
deprecated
func (*RecResp) ProtoMessage ¶
func (*RecResp) ProtoMessage()
func (*RecResp) ProtoReflect ¶
func (x *RecResp) ProtoReflect() protoreflect.Message
func (*RecResp) Validate ¶
Validate checks the field values on RecResp 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 (*RecResp) ValidateAll ¶
ValidateAll checks the field values on RecResp 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 RecRespMultiError, or nil if none found.
type RecRespMultiError ¶
type RecRespMultiError []error
RecRespMultiError is an error wrapping multiple validation errors returned by RecResp.ValidateAll() if the designated constraints aren't met.
func (RecRespMultiError) AllErrors ¶
func (m RecRespMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RecRespMultiError) Error ¶
func (m RecRespMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RecRespValidationError ¶
type RecRespValidationError struct {
// contains filtered or unexported fields
}
RecRespValidationError is the validation error returned by RecResp.Validate if the designated constraints aren't met.
func (RecRespValidationError) Cause ¶
func (e RecRespValidationError) Cause() error
Cause function returns cause value.
func (RecRespValidationError) Error ¶
func (e RecRespValidationError) Error() string
Error satisfies the builtin error interface
func (RecRespValidationError) ErrorName ¶
func (e RecRespValidationError) ErrorName() string
ErrorName returns error name.
func (RecRespValidationError) Field ¶
func (e RecRespValidationError) Field() string
Field function returns field value.
func (RecRespValidationError) Key ¶
func (e RecRespValidationError) Key() bool
Key function returns key value.
func (RecRespValidationError) Reason ¶
func (e RecRespValidationError) Reason() string
Reason function returns reason value.
type ResponseFileMetadata ¶
type ResponseFileMetadata struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` AuthorUID int64 `protobuf:"varint,3,opt,name=authorUID,proto3" json:"authorUID,omitempty"` // 0 if reupload OriginalVideoLink string `protobuf:"bytes,4,opt,name=originalVideoLink,proto3" json:"originalVideoLink,omitempty"` // If reupload // contains filtered or unexported fields }
For now, these two are the same, but may deviate in future
func (*ResponseFileMetadata) Descriptor
deprecated
func (*ResponseFileMetadata) Descriptor() ([]byte, []int)
Deprecated: Use ResponseFileMetadata.ProtoReflect.Descriptor instead.
func (*ResponseFileMetadata) GetAuthorUID ¶
func (x *ResponseFileMetadata) GetAuthorUID() int64
func (*ResponseFileMetadata) GetDescription ¶
func (x *ResponseFileMetadata) GetDescription() string
func (*ResponseFileMetadata) GetOriginalVideoLink ¶
func (x *ResponseFileMetadata) GetOriginalVideoLink() string
func (*ResponseFileMetadata) GetTitle ¶
func (x *ResponseFileMetadata) GetTitle() string
func (*ResponseFileMetadata) ProtoMessage ¶
func (*ResponseFileMetadata) ProtoMessage()
func (*ResponseFileMetadata) ProtoReflect ¶
func (x *ResponseFileMetadata) ProtoReflect() protoreflect.Message
func (*ResponseFileMetadata) Reset ¶
func (x *ResponseFileMetadata) Reset()
func (*ResponseFileMetadata) String ¶
func (x *ResponseFileMetadata) String() string
func (*ResponseFileMetadata) Validate ¶
func (m *ResponseFileMetadata) Validate() error
Validate checks the field values on ResponseFileMetadata 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 (*ResponseFileMetadata) ValidateAll ¶
func (m *ResponseFileMetadata) ValidateAll() error
ValidateAll checks the field values on ResponseFileMetadata 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 ResponseFileMetadataMultiError, or nil if none found.
type ResponseFileMetadataMultiError ¶
type ResponseFileMetadataMultiError []error
ResponseFileMetadataMultiError is an error wrapping multiple validation errors returned by ResponseFileMetadata.ValidateAll() if the designated constraints aren't met.
func (ResponseFileMetadataMultiError) AllErrors ¶
func (m ResponseFileMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseFileMetadataMultiError) Error ¶
func (m ResponseFileMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseFileMetadataValidationError ¶
type ResponseFileMetadataValidationError struct {
// contains filtered or unexported fields
}
ResponseFileMetadataValidationError is the validation error returned by ResponseFileMetadata.Validate if the designated constraints aren't met.
func (ResponseFileMetadataValidationError) Cause ¶
func (e ResponseFileMetadataValidationError) Cause() error
Cause function returns cause value.
func (ResponseFileMetadataValidationError) Error ¶
func (e ResponseFileMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseFileMetadataValidationError) ErrorName ¶
func (e ResponseFileMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseFileMetadataValidationError) Field ¶
func (e ResponseFileMetadataValidationError) Field() string
Field function returns field value.
func (ResponseFileMetadataValidationError) Key ¶
func (e ResponseFileMetadataValidationError) Key() bool
Key function returns key value.
func (ResponseFileMetadataValidationError) Reason ¶
func (e ResponseFileMetadataValidationError) Reason() string
Reason function returns reason value.
type ResponseVideoChunk ¶
type ResponseVideoChunk struct { // Types that are assignable to Payload: // *ResponseVideoChunk_Content // *ResponseVideoChunk_Meta Payload isResponseVideoChunk_Payload `protobuf_oneof:"Payload"` // contains filtered or unexported fields }
func (*ResponseVideoChunk) Descriptor
deprecated
func (*ResponseVideoChunk) Descriptor() ([]byte, []int)
Deprecated: Use ResponseVideoChunk.ProtoReflect.Descriptor instead.
func (*ResponseVideoChunk) GetContent ¶
func (x *ResponseVideoChunk) GetContent() *FileContent
func (*ResponseVideoChunk) GetMeta ¶
func (x *ResponseVideoChunk) GetMeta() *ResponseFileMetadata
func (*ResponseVideoChunk) GetPayload ¶
func (m *ResponseVideoChunk) GetPayload() isResponseVideoChunk_Payload
func (*ResponseVideoChunk) ProtoMessage ¶
func (*ResponseVideoChunk) ProtoMessage()
func (*ResponseVideoChunk) ProtoReflect ¶
func (x *ResponseVideoChunk) ProtoReflect() protoreflect.Message
func (*ResponseVideoChunk) Reset ¶
func (x *ResponseVideoChunk) Reset()
func (*ResponseVideoChunk) String ¶
func (x *ResponseVideoChunk) String() string
func (*ResponseVideoChunk) Validate ¶
func (m *ResponseVideoChunk) Validate() error
Validate checks the field values on ResponseVideoChunk 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 (*ResponseVideoChunk) ValidateAll ¶
func (m *ResponseVideoChunk) ValidateAll() error
ValidateAll checks the field values on ResponseVideoChunk 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 ResponseVideoChunkMultiError, or nil if none found.
type ResponseVideoChunkMultiError ¶
type ResponseVideoChunkMultiError []error
ResponseVideoChunkMultiError is an error wrapping multiple validation errors returned by ResponseVideoChunk.ValidateAll() if the designated constraints aren't met.
func (ResponseVideoChunkMultiError) AllErrors ¶
func (m ResponseVideoChunkMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ResponseVideoChunkMultiError) Error ¶
func (m ResponseVideoChunkMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ResponseVideoChunkValidationError ¶
type ResponseVideoChunkValidationError struct {
// contains filtered or unexported fields
}
ResponseVideoChunkValidationError is the validation error returned by ResponseVideoChunk.Validate if the designated constraints aren't met.
func (ResponseVideoChunkValidationError) Cause ¶
func (e ResponseVideoChunkValidationError) Cause() error
Cause function returns cause value.
func (ResponseVideoChunkValidationError) Error ¶
func (e ResponseVideoChunkValidationError) Error() string
Error satisfies the builtin error interface
func (ResponseVideoChunkValidationError) ErrorName ¶
func (e ResponseVideoChunkValidationError) ErrorName() string
ErrorName returns error name.
func (ResponseVideoChunkValidationError) Field ¶
func (e ResponseVideoChunkValidationError) Field() string
Field function returns field value.
func (ResponseVideoChunkValidationError) Key ¶
func (e ResponseVideoChunkValidationError) Key() bool
Key function returns key value.
func (ResponseVideoChunkValidationError) Reason ¶
func (e ResponseVideoChunkValidationError) Reason() string
Reason function returns reason value.
type ResponseVideoChunk_Content ¶
type ResponseVideoChunk_Content struct {
Content *FileContent `protobuf:"bytes,1,opt,name=content,proto3,oneof"`
}
type ResponseVideoChunk_Meta ¶
type ResponseVideoChunk_Meta struct {
Meta *ResponseFileMetadata `protobuf:"bytes,2,opt,name=meta,proto3,oneof"`
}
type SortDirection ¶
type SortDirection int32
const ( SortDirection_asc SortDirection = 0 SortDirection_desc SortDirection = 2 )
func (SortDirection) Descriptor ¶
func (SortDirection) Descriptor() protoreflect.EnumDescriptor
func (SortDirection) Enum ¶
func (x SortDirection) Enum() *SortDirection
func (SortDirection) EnumDescriptor
deprecated
func (SortDirection) EnumDescriptor() ([]byte, []int)
Deprecated: Use SortDirection.Descriptor instead.
func (SortDirection) Number ¶
func (x SortDirection) Number() protoreflect.EnumNumber
func (SortDirection) String ¶
func (x SortDirection) String() string
func (SortDirection) Type ¶
func (SortDirection) Type() protoreflect.EnumType
type UnimplementedVideoServiceServer ¶
type UnimplementedVideoServiceServer struct { }
UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedVideoServiceServer) AddDanmaku ¶
func (UnimplementedVideoServiceServer) ApproveVideo ¶
func (UnimplementedVideoServiceServer) ApproveVideo(context.Context, *VideoApproval) (*Nothing, error)
func (UnimplementedVideoServiceServer) DeleteComment ¶
func (UnimplementedVideoServiceServer) DeleteComment(context.Context, *CommentDeletionReq) (*Nothing, error)
func (UnimplementedVideoServiceServer) DeleteVideo ¶
func (UnimplementedVideoServiceServer) DeleteVideo(context.Context, *VideoDeletionReq) (*Nothing, error)
func (UnimplementedVideoServiceServer) DownloadVideo ¶
func (UnimplementedVideoServiceServer) DownloadVideo(*VideoRequest, VideoService_DownloadVideoServer) error
func (UnimplementedVideoServiceServer) ForeignVideoExists ¶
func (UnimplementedVideoServiceServer) ForeignVideoExists(context.Context, *ForeignVideoCheck) (*VideoExistenceResponse, error)
func (UnimplementedVideoServiceServer) GetCommentsForVideo ¶
func (UnimplementedVideoServiceServer) GetCommentsForVideo(context.Context, *CommentRequest) (*CommentListResponse, error)
func (UnimplementedVideoServiceServer) GetDanmaku ¶
func (UnimplementedVideoServiceServer) GetDanmaku(context.Context, *DanmakuQueryReq) (*DanmakuList, error)
func (UnimplementedVideoServiceServer) GetFollowFeed ¶
func (UnimplementedVideoServiceServer) GetVideo ¶
func (UnimplementedVideoServiceServer) GetVideo(context.Context, *VideoRequest) (*VideoMetadata, error)
func (UnimplementedVideoServiceServer) GetVideoList ¶
func (UnimplementedVideoServiceServer) GetVideoList(context.Context, *VideoQueryConfig) (*VideoList, error)
func (UnimplementedVideoServiceServer) GetVideoRecommendations ¶
func (UnimplementedVideoServiceServer) MakeComment ¶
func (UnimplementedVideoServiceServer) MakeComment(context.Context, *VideoComment) (*Nothing, error)
func (UnimplementedVideoServiceServer) MakeCommentUpvote ¶
func (UnimplementedVideoServiceServer) MakeCommentUpvote(context.Context, *CommentUpvote) (*Nothing, error)
func (UnimplementedVideoServiceServer) RateVideo ¶
func (UnimplementedVideoServiceServer) RateVideo(context.Context, *VideoRating) (*Nothing, error)
func (UnimplementedVideoServiceServer) UploadVideo ¶
func (UnimplementedVideoServiceServer) UploadVideo(VideoService_UploadVideoServer) error
func (UnimplementedVideoServiceServer) ViewVideo ¶
func (UnimplementedVideoServiceServer) ViewVideo(context.Context, *VideoViewing) (*Nothing, error)
type UnsafeVideoServiceServer ¶
type UnsafeVideoServiceServer interface {
// contains filtered or unexported methods
}
UnsafeVideoServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to VideoServiceServer will result in compilation errors.
type UploadResponse ¶
type UploadResponse struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*UploadResponse) Descriptor
deprecated
func (*UploadResponse) Descriptor() ([]byte, []int)
Deprecated: Use UploadResponse.ProtoReflect.Descriptor instead.
func (*UploadResponse) GetVideoID ¶
func (x *UploadResponse) GetVideoID() int64
func (*UploadResponse) ProtoMessage ¶
func (*UploadResponse) ProtoMessage()
func (*UploadResponse) ProtoReflect ¶
func (x *UploadResponse) ProtoReflect() protoreflect.Message
func (*UploadResponse) Reset ¶
func (x *UploadResponse) Reset()
func (*UploadResponse) String ¶
func (x *UploadResponse) String() string
func (*UploadResponse) Validate ¶
func (m *UploadResponse) Validate() error
Validate checks the field values on UploadResponse 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 (*UploadResponse) ValidateAll ¶
func (m *UploadResponse) ValidateAll() error
ValidateAll checks the field values on UploadResponse 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 UploadResponseMultiError, or nil if none found.
type UploadResponseMultiError ¶
type UploadResponseMultiError []error
UploadResponseMultiError is an error wrapping multiple validation errors returned by UploadResponse.ValidateAll() if the designated constraints aren't met.
func (UploadResponseMultiError) AllErrors ¶
func (m UploadResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UploadResponseMultiError) Error ¶
func (m UploadResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UploadResponseValidationError ¶
type UploadResponseValidationError struct {
// contains filtered or unexported fields
}
UploadResponseValidationError is the validation error returned by UploadResponse.Validate if the designated constraints aren't met.
func (UploadResponseValidationError) Cause ¶
func (e UploadResponseValidationError) Cause() error
Cause function returns cause value.
func (UploadResponseValidationError) Error ¶
func (e UploadResponseValidationError) Error() string
Error satisfies the builtin error interface
func (UploadResponseValidationError) ErrorName ¶
func (e UploadResponseValidationError) ErrorName() string
ErrorName returns error name.
func (UploadResponseValidationError) Field ¶
func (e UploadResponseValidationError) Field() string
Field function returns field value.
func (UploadResponseValidationError) Key ¶
func (e UploadResponseValidationError) Key() bool
Key function returns key value.
func (UploadResponseValidationError) Reason ¶
func (e UploadResponseValidationError) Reason() string
Reason function returns reason value.
type Video ¶
type Video struct { VideoTitle string `protobuf:"bytes,1,opt,name=videoTitle,proto3" json:"videoTitle,omitempty"` Views uint64 `protobuf:"varint,2,opt,name=views,proto3" json:"views,omitempty"` Rating int64 `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"` ThumbnailLoc string `protobuf:"bytes,4,opt,name=thumbnailLoc,proto3" json:"thumbnailLoc,omitempty"` VideoID int64 `protobuf:"varint,5,opt,name=videoID,proto3" json:"videoID,omitempty"` AuthorName string `protobuf:"bytes,6,opt,name=authorName,proto3" json:"authorName,omitempty"` UploadDate string `protobuf:"bytes,7,opt,name=uploadDate,proto3" json:"uploadDate,omitempty"` AuthorID int64 `protobuf:"varint,8,opt,name=authorID,proto3" json:"authorID,omitempty"` VideoDuration float32 `protobuf:"fixed32,9,opt,name=videoDuration,proto3" json:"videoDuration,omitempty"` // contains filtered or unexported fields }
func (*Video) Descriptor
deprecated
func (*Video) GetAuthorID ¶
func (*Video) GetAuthorName ¶
func (*Video) GetThumbnailLoc ¶
func (*Video) GetUploadDate ¶
func (*Video) GetVideoDuration ¶
func (*Video) GetVideoID ¶
func (*Video) GetVideoTitle ¶
func (*Video) ProtoMessage ¶
func (*Video) ProtoMessage()
func (*Video) ProtoReflect ¶
func (x *Video) ProtoReflect() protoreflect.Message
func (*Video) Validate ¶
Validate checks the field values on Video 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 (*Video) ValidateAll ¶
ValidateAll checks the field values on Video 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 VideoMultiError, or nil if none found.
type VideoApproval ¶
type VideoApproval struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` VideoID int64 `protobuf:"varint,2,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*VideoApproval) Descriptor
deprecated
func (*VideoApproval) Descriptor() ([]byte, []int)
Deprecated: Use VideoApproval.ProtoReflect.Descriptor instead.
func (*VideoApproval) GetUserID ¶
func (x *VideoApproval) GetUserID() int64
func (*VideoApproval) GetVideoID ¶
func (x *VideoApproval) GetVideoID() int64
func (*VideoApproval) ProtoMessage ¶
func (*VideoApproval) ProtoMessage()
func (*VideoApproval) ProtoReflect ¶
func (x *VideoApproval) ProtoReflect() protoreflect.Message
func (*VideoApproval) Reset ¶
func (x *VideoApproval) Reset()
func (*VideoApproval) String ¶
func (x *VideoApproval) String() string
func (*VideoApproval) Validate ¶
func (m *VideoApproval) Validate() error
Validate checks the field values on VideoApproval 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 (*VideoApproval) ValidateAll ¶
func (m *VideoApproval) ValidateAll() error
ValidateAll checks the field values on VideoApproval 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 VideoApprovalMultiError, or nil if none found.
type VideoApprovalMultiError ¶
type VideoApprovalMultiError []error
VideoApprovalMultiError is an error wrapping multiple validation errors returned by VideoApproval.ValidateAll() if the designated constraints aren't met.
func (VideoApprovalMultiError) AllErrors ¶
func (m VideoApprovalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoApprovalMultiError) Error ¶
func (m VideoApprovalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoApprovalValidationError ¶
type VideoApprovalValidationError struct {
// contains filtered or unexported fields
}
VideoApprovalValidationError is the validation error returned by VideoApproval.Validate if the designated constraints aren't met.
func (VideoApprovalValidationError) Cause ¶
func (e VideoApprovalValidationError) Cause() error
Cause function returns cause value.
func (VideoApprovalValidationError) Error ¶
func (e VideoApprovalValidationError) Error() string
Error satisfies the builtin error interface
func (VideoApprovalValidationError) ErrorName ¶
func (e VideoApprovalValidationError) ErrorName() string
ErrorName returns error name.
func (VideoApprovalValidationError) Field ¶
func (e VideoApprovalValidationError) Field() string
Field function returns field value.
func (VideoApprovalValidationError) Key ¶
func (e VideoApprovalValidationError) Key() bool
Key function returns key value.
func (VideoApprovalValidationError) Reason ¶
func (e VideoApprovalValidationError) Reason() string
Reason function returns reason value.
type VideoComment ¶
type VideoComment struct { UserId int64 `protobuf:"varint,1,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"` VideoId int64 `protobuf:"varint,2,opt,name=video_id,json=videoId,proto3" json:"video_id,omitempty"` Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"` ParentComment int64 `protobuf:"varint,4,opt,name=parent_comment,json=parentComment,proto3" json:"parent_comment,omitempty"` // 0 if root // contains filtered or unexported fields }
func (*VideoComment) Descriptor
deprecated
func (*VideoComment) Descriptor() ([]byte, []int)
Deprecated: Use VideoComment.ProtoReflect.Descriptor instead.
func (*VideoComment) GetComment ¶
func (x *VideoComment) GetComment() string
func (*VideoComment) GetParentComment ¶
func (x *VideoComment) GetParentComment() int64
func (*VideoComment) GetUserId ¶
func (x *VideoComment) GetUserId() int64
func (*VideoComment) GetVideoId ¶
func (x *VideoComment) GetVideoId() int64
func (*VideoComment) ProtoMessage ¶
func (*VideoComment) ProtoMessage()
func (*VideoComment) ProtoReflect ¶
func (x *VideoComment) ProtoReflect() protoreflect.Message
func (*VideoComment) Reset ¶
func (x *VideoComment) Reset()
func (*VideoComment) String ¶
func (x *VideoComment) String() string
func (*VideoComment) Validate ¶
func (m *VideoComment) Validate() error
Validate checks the field values on VideoComment 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 (*VideoComment) ValidateAll ¶
func (m *VideoComment) ValidateAll() error
ValidateAll checks the field values on VideoComment 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 VideoCommentMultiError, or nil if none found.
type VideoCommentMultiError ¶
type VideoCommentMultiError []error
VideoCommentMultiError is an error wrapping multiple validation errors returned by VideoComment.ValidateAll() if the designated constraints aren't met.
func (VideoCommentMultiError) AllErrors ¶
func (m VideoCommentMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoCommentMultiError) Error ¶
func (m VideoCommentMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoCommentValidationError ¶
type VideoCommentValidationError struct {
// contains filtered or unexported fields
}
VideoCommentValidationError is the validation error returned by VideoComment.Validate if the designated constraints aren't met.
func (VideoCommentValidationError) Cause ¶
func (e VideoCommentValidationError) Cause() error
Cause function returns cause value.
func (VideoCommentValidationError) Error ¶
func (e VideoCommentValidationError) Error() string
Error satisfies the builtin error interface
func (VideoCommentValidationError) ErrorName ¶
func (e VideoCommentValidationError) ErrorName() string
ErrorName returns error name.
func (VideoCommentValidationError) Field ¶
func (e VideoCommentValidationError) Field() string
Field function returns field value.
func (VideoCommentValidationError) Key ¶
func (e VideoCommentValidationError) Key() bool
Key function returns key value.
func (VideoCommentValidationError) Reason ¶
func (e VideoCommentValidationError) Reason() string
Reason function returns reason value.
type VideoDeletionReq ¶
type VideoDeletionReq struct { VideoID string `protobuf:"bytes,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*VideoDeletionReq) Descriptor
deprecated
func (*VideoDeletionReq) Descriptor() ([]byte, []int)
Deprecated: Use VideoDeletionReq.ProtoReflect.Descriptor instead.
func (*VideoDeletionReq) GetVideoID ¶
func (x *VideoDeletionReq) GetVideoID() string
func (*VideoDeletionReq) ProtoMessage ¶
func (*VideoDeletionReq) ProtoMessage()
func (*VideoDeletionReq) ProtoReflect ¶
func (x *VideoDeletionReq) ProtoReflect() protoreflect.Message
func (*VideoDeletionReq) Reset ¶
func (x *VideoDeletionReq) Reset()
func (*VideoDeletionReq) String ¶
func (x *VideoDeletionReq) String() string
func (*VideoDeletionReq) Validate ¶
func (m *VideoDeletionReq) Validate() error
Validate checks the field values on VideoDeletionReq 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 (*VideoDeletionReq) ValidateAll ¶
func (m *VideoDeletionReq) ValidateAll() error
ValidateAll checks the field values on VideoDeletionReq 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 VideoDeletionReqMultiError, or nil if none found.
type VideoDeletionReqMultiError ¶
type VideoDeletionReqMultiError []error
VideoDeletionReqMultiError is an error wrapping multiple validation errors returned by VideoDeletionReq.ValidateAll() if the designated constraints aren't met.
func (VideoDeletionReqMultiError) AllErrors ¶
func (m VideoDeletionReqMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoDeletionReqMultiError) Error ¶
func (m VideoDeletionReqMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoDeletionReqValidationError ¶
type VideoDeletionReqValidationError struct {
// contains filtered or unexported fields
}
VideoDeletionReqValidationError is the validation error returned by VideoDeletionReq.Validate if the designated constraints aren't met.
func (VideoDeletionReqValidationError) Cause ¶
func (e VideoDeletionReqValidationError) Cause() error
Cause function returns cause value.
func (VideoDeletionReqValidationError) Error ¶
func (e VideoDeletionReqValidationError) Error() string
Error satisfies the builtin error interface
func (VideoDeletionReqValidationError) ErrorName ¶
func (e VideoDeletionReqValidationError) ErrorName() string
ErrorName returns error name.
func (VideoDeletionReqValidationError) Field ¶
func (e VideoDeletionReqValidationError) Field() string
Field function returns field value.
func (VideoDeletionReqValidationError) Key ¶
func (e VideoDeletionReqValidationError) Key() bool
Key function returns key value.
func (VideoDeletionReqValidationError) Reason ¶
func (e VideoDeletionReqValidationError) Reason() string
Reason function returns reason value.
type VideoExistenceResponse ¶
type VideoExistenceResponse struct { Exists bool `protobuf:"varint,1,opt,name=Exists,proto3" json:"Exists,omitempty"` // contains filtered or unexported fields }
func (*VideoExistenceResponse) Descriptor
deprecated
func (*VideoExistenceResponse) Descriptor() ([]byte, []int)
Deprecated: Use VideoExistenceResponse.ProtoReflect.Descriptor instead.
func (*VideoExistenceResponse) GetExists ¶
func (x *VideoExistenceResponse) GetExists() bool
func (*VideoExistenceResponse) ProtoMessage ¶
func (*VideoExistenceResponse) ProtoMessage()
func (*VideoExistenceResponse) ProtoReflect ¶
func (x *VideoExistenceResponse) ProtoReflect() protoreflect.Message
func (*VideoExistenceResponse) Reset ¶
func (x *VideoExistenceResponse) Reset()
func (*VideoExistenceResponse) String ¶
func (x *VideoExistenceResponse) String() string
func (*VideoExistenceResponse) Validate ¶
func (m *VideoExistenceResponse) Validate() error
Validate checks the field values on VideoExistenceResponse 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 (*VideoExistenceResponse) ValidateAll ¶
func (m *VideoExistenceResponse) ValidateAll() error
ValidateAll checks the field values on VideoExistenceResponse 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 VideoExistenceResponseMultiError, or nil if none found.
type VideoExistenceResponseMultiError ¶
type VideoExistenceResponseMultiError []error
VideoExistenceResponseMultiError is an error wrapping multiple validation errors returned by VideoExistenceResponse.ValidateAll() if the designated constraints aren't met.
func (VideoExistenceResponseMultiError) AllErrors ¶
func (m VideoExistenceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoExistenceResponseMultiError) Error ¶
func (m VideoExistenceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoExistenceResponseValidationError ¶
type VideoExistenceResponseValidationError struct {
// contains filtered or unexported fields
}
VideoExistenceResponseValidationError is the validation error returned by VideoExistenceResponse.Validate if the designated constraints aren't met.
func (VideoExistenceResponseValidationError) Cause ¶
func (e VideoExistenceResponseValidationError) Cause() error
Cause function returns cause value.
func (VideoExistenceResponseValidationError) Error ¶
func (e VideoExistenceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (VideoExistenceResponseValidationError) ErrorName ¶
func (e VideoExistenceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (VideoExistenceResponseValidationError) Field ¶
func (e VideoExistenceResponseValidationError) Field() string
Field function returns field value.
func (VideoExistenceResponseValidationError) Key ¶
func (e VideoExistenceResponseValidationError) Key() bool
Key function returns key value.
func (VideoExistenceResponseValidationError) Reason ¶
func (e VideoExistenceResponseValidationError) Reason() string
Reason function returns reason value.
type VideoList ¶
type VideoList struct { Videos []*Video `protobuf:"bytes,1,rep,name=videos,proto3" json:"videos,omitempty"` NumberOfVideos int64 `protobuf:"varint,2,opt,name=numberOfVideos,proto3" json:"numberOfVideos,omitempty"` Categories *CategoryList `protobuf:"bytes,3,opt,name=categories,proto3" json:"categories,omitempty"` // contains filtered or unexported fields }
func (*VideoList) Descriptor
deprecated
func (*VideoList) GetCategories ¶
func (x *VideoList) GetCategories() *CategoryList
func (*VideoList) GetNumberOfVideos ¶
func (*VideoList) ProtoMessage ¶
func (*VideoList) ProtoMessage()
func (*VideoList) ProtoReflect ¶
func (x *VideoList) ProtoReflect() protoreflect.Message
func (*VideoList) Validate ¶
Validate checks the field values on VideoList 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 (*VideoList) ValidateAll ¶
ValidateAll checks the field values on VideoList 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 VideoListMultiError, or nil if none found.
type VideoListMultiError ¶
type VideoListMultiError []error
VideoListMultiError is an error wrapping multiple validation errors returned by VideoList.ValidateAll() if the designated constraints aren't met.
func (VideoListMultiError) AllErrors ¶
func (m VideoListMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoListMultiError) Error ¶
func (m VideoListMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoListValidationError ¶
type VideoListValidationError struct {
// contains filtered or unexported fields
}
VideoListValidationError is the validation error returned by VideoList.Validate if the designated constraints aren't met.
func (VideoListValidationError) Cause ¶
func (e VideoListValidationError) Cause() error
Cause function returns cause value.
func (VideoListValidationError) Error ¶
func (e VideoListValidationError) Error() string
Error satisfies the builtin error interface
func (VideoListValidationError) ErrorName ¶
func (e VideoListValidationError) ErrorName() string
ErrorName returns error name.
func (VideoListValidationError) Field ¶
func (e VideoListValidationError) Field() string
Field function returns field value.
func (VideoListValidationError) Key ¶
func (e VideoListValidationError) Key() bool
Key function returns key value.
func (VideoListValidationError) Reason ¶
func (e VideoListValidationError) Reason() string
Reason function returns reason value.
type VideoMetadata ¶
type VideoMetadata struct { VideoLoc string `protobuf:"bytes,1,opt,name=videoLoc,proto3" json:"videoLoc,omitempty"` // The location of the DASH manifest VideoTitle string `protobuf:"bytes,2,opt,name=videoTitle,proto3" json:"videoTitle,omitempty"` Rating int64 `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"` AuthorName string `protobuf:"bytes,4,opt,name=authorName,proto3" json:"authorName,omitempty"` // Do I need this? probably not Views uint64 `protobuf:"varint,5,opt,name=views,proto3" json:"views,omitempty"` VideoID int64 `protobuf:"varint,6,opt,name=videoID,proto3" json:"videoID,omitempty"` UploadDate string `protobuf:"bytes,7,opt,name=uploadDate,proto3" json:"uploadDate,omitempty"` Description string `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"` AuthorID int64 `protobuf:"varint,9,opt,name=authorID,proto3" json:"authorID,omitempty"` Tags []string `protobuf:"bytes,10,rep,name=tags,proto3" json:"tags,omitempty"` VideoDuration float32 `protobuf:"fixed32,11,opt,name=videoDuration,proto3" json:"videoDuration,omitempty"` Category string `protobuf:"bytes,12,opt,name=category,proto3" json:"category,omitempty"` Thumbnail string `protobuf:"bytes,13,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` // contains filtered or unexported fields }
func (*VideoMetadata) Descriptor
deprecated
func (*VideoMetadata) Descriptor() ([]byte, []int)
Deprecated: Use VideoMetadata.ProtoReflect.Descriptor instead.
func (*VideoMetadata) GetAuthorID ¶
func (x *VideoMetadata) GetAuthorID() int64
func (*VideoMetadata) GetAuthorName ¶
func (x *VideoMetadata) GetAuthorName() string
func (*VideoMetadata) GetCategory ¶
func (x *VideoMetadata) GetCategory() string
func (*VideoMetadata) GetDescription ¶
func (x *VideoMetadata) GetDescription() string
func (*VideoMetadata) GetRating ¶
func (x *VideoMetadata) GetRating() int64
func (*VideoMetadata) GetTags ¶
func (x *VideoMetadata) GetTags() []string
func (*VideoMetadata) GetThumbnail ¶
func (x *VideoMetadata) GetThumbnail() string
func (*VideoMetadata) GetUploadDate ¶
func (x *VideoMetadata) GetUploadDate() string
func (*VideoMetadata) GetVideoDuration ¶
func (x *VideoMetadata) GetVideoDuration() float32
func (*VideoMetadata) GetVideoID ¶
func (x *VideoMetadata) GetVideoID() int64
func (*VideoMetadata) GetVideoLoc ¶
func (x *VideoMetadata) GetVideoLoc() string
func (*VideoMetadata) GetVideoTitle ¶
func (x *VideoMetadata) GetVideoTitle() string
func (*VideoMetadata) GetViews ¶
func (x *VideoMetadata) GetViews() uint64
func (*VideoMetadata) ProtoMessage ¶
func (*VideoMetadata) ProtoMessage()
func (*VideoMetadata) ProtoReflect ¶
func (x *VideoMetadata) ProtoReflect() protoreflect.Message
func (*VideoMetadata) Reset ¶
func (x *VideoMetadata) Reset()
func (*VideoMetadata) String ¶
func (x *VideoMetadata) String() string
func (*VideoMetadata) Validate ¶
func (m *VideoMetadata) Validate() error
Validate checks the field values on VideoMetadata 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 (*VideoMetadata) ValidateAll ¶
func (m *VideoMetadata) ValidateAll() error
ValidateAll checks the field values on VideoMetadata 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 VideoMetadataMultiError, or nil if none found.
type VideoMetadataMultiError ¶
type VideoMetadataMultiError []error
VideoMetadataMultiError is an error wrapping multiple validation errors returned by VideoMetadata.ValidateAll() if the designated constraints aren't met.
func (VideoMetadataMultiError) AllErrors ¶
func (m VideoMetadataMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoMetadataMultiError) Error ¶
func (m VideoMetadataMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoMetadataValidationError ¶
type VideoMetadataValidationError struct {
// contains filtered or unexported fields
}
VideoMetadataValidationError is the validation error returned by VideoMetadata.Validate if the designated constraints aren't met.
func (VideoMetadataValidationError) Cause ¶
func (e VideoMetadataValidationError) Cause() error
Cause function returns cause value.
func (VideoMetadataValidationError) Error ¶
func (e VideoMetadataValidationError) Error() string
Error satisfies the builtin error interface
func (VideoMetadataValidationError) ErrorName ¶
func (e VideoMetadataValidationError) ErrorName() string
ErrorName returns error name.
func (VideoMetadataValidationError) Field ¶
func (e VideoMetadataValidationError) Field() string
Field function returns field value.
func (VideoMetadataValidationError) Key ¶
func (e VideoMetadataValidationError) Key() bool
Key function returns key value.
func (VideoMetadataValidationError) Reason ¶
func (e VideoMetadataValidationError) Reason() string
Reason function returns reason value.
type VideoMultiError ¶
type VideoMultiError []error
VideoMultiError is an error wrapping multiple validation errors returned by Video.ValidateAll() if the designated constraints aren't met.
func (VideoMultiError) AllErrors ¶
func (m VideoMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoMultiError) Error ¶
func (m VideoMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoQueryConfig ¶
type VideoQueryConfig struct { OrderBy OrderCategory `protobuf:"varint,1,opt,name=orderBy,proto3,enum=proto.OrderCategory" json:"orderBy,omitempty"` Direction SortDirection `protobuf:"varint,2,opt,name=direction,proto3,enum=proto.SortDirection" json:"direction,omitempty"` PageNumber int64 `protobuf:"varint,3,opt,name=pageNumber,proto3" json:"pageNumber,omitempty"` SearchVal string `protobuf:"bytes,4,opt,name=SearchVal,proto3" json:"SearchVal,omitempty"` FromUserID int64 `protobuf:"varint,5,opt,name=fromUserID,proto3" json:"fromUserID,omitempty"` // domestic user ID ShowUnapproved bool `protobuf:"varint,6,opt,name=showUnapproved,proto3" json:"showUnapproved,omitempty"` UnapprovedOnly bool `protobuf:"varint,7,opt,name=unapprovedOnly,proto3" json:"unapprovedOnly,omitempty"` Category string `protobuf:"bytes,8,opt,name=category,proto3" json:"category,omitempty"` // bool favoritesOnly = 9; // contains filtered or unexported fields }
func (*VideoQueryConfig) Descriptor
deprecated
func (*VideoQueryConfig) Descriptor() ([]byte, []int)
Deprecated: Use VideoQueryConfig.ProtoReflect.Descriptor instead.
func (*VideoQueryConfig) GetCategory ¶
func (x *VideoQueryConfig) GetCategory() string
func (*VideoQueryConfig) GetDirection ¶
func (x *VideoQueryConfig) GetDirection() SortDirection
func (*VideoQueryConfig) GetFromUserID ¶
func (x *VideoQueryConfig) GetFromUserID() int64
func (*VideoQueryConfig) GetOrderBy ¶
func (x *VideoQueryConfig) GetOrderBy() OrderCategory
func (*VideoQueryConfig) GetPageNumber ¶
func (x *VideoQueryConfig) GetPageNumber() int64
func (*VideoQueryConfig) GetSearchVal ¶
func (x *VideoQueryConfig) GetSearchVal() string
func (*VideoQueryConfig) GetShowUnapproved ¶
func (x *VideoQueryConfig) GetShowUnapproved() bool
func (*VideoQueryConfig) GetUnapprovedOnly ¶
func (x *VideoQueryConfig) GetUnapprovedOnly() bool
func (*VideoQueryConfig) ProtoMessage ¶
func (*VideoQueryConfig) ProtoMessage()
func (*VideoQueryConfig) ProtoReflect ¶
func (x *VideoQueryConfig) ProtoReflect() protoreflect.Message
func (*VideoQueryConfig) Reset ¶
func (x *VideoQueryConfig) Reset()
func (*VideoQueryConfig) String ¶
func (x *VideoQueryConfig) String() string
func (*VideoQueryConfig) Validate ¶
func (m *VideoQueryConfig) Validate() error
Validate checks the field values on VideoQueryConfig 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 (*VideoQueryConfig) ValidateAll ¶
func (m *VideoQueryConfig) ValidateAll() error
ValidateAll checks the field values on VideoQueryConfig 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 VideoQueryConfigMultiError, or nil if none found.
type VideoQueryConfigMultiError ¶
type VideoQueryConfigMultiError []error
VideoQueryConfigMultiError is an error wrapping multiple validation errors returned by VideoQueryConfig.ValidateAll() if the designated constraints aren't met.
func (VideoQueryConfigMultiError) AllErrors ¶
func (m VideoQueryConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoQueryConfigMultiError) Error ¶
func (m VideoQueryConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoQueryConfigValidationError ¶
type VideoQueryConfigValidationError struct {
// contains filtered or unexported fields
}
VideoQueryConfigValidationError is the validation error returned by VideoQueryConfig.Validate if the designated constraints aren't met.
func (VideoQueryConfigValidationError) Cause ¶
func (e VideoQueryConfigValidationError) Cause() error
Cause function returns cause value.
func (VideoQueryConfigValidationError) Error ¶
func (e VideoQueryConfigValidationError) Error() string
Error satisfies the builtin error interface
func (VideoQueryConfigValidationError) ErrorName ¶
func (e VideoQueryConfigValidationError) ErrorName() string
ErrorName returns error name.
func (VideoQueryConfigValidationError) Field ¶
func (e VideoQueryConfigValidationError) Field() string
Field function returns field value.
func (VideoQueryConfigValidationError) Key ¶
func (e VideoQueryConfigValidationError) Key() bool
Key function returns key value.
func (VideoQueryConfigValidationError) Reason ¶
func (e VideoQueryConfigValidationError) Reason() string
Reason function returns reason value.
type VideoRating ¶
type VideoRating struct { UserID int64 `protobuf:"varint,1,opt,name=userID,proto3" json:"userID,omitempty"` VideoID int64 `protobuf:"varint,2,opt,name=videoID,proto3" json:"videoID,omitempty"` Rating int64 `protobuf:"varint,3,opt,name=rating,proto3" json:"rating,omitempty"` // contains filtered or unexported fields }
func (*VideoRating) Descriptor
deprecated
func (*VideoRating) Descriptor() ([]byte, []int)
Deprecated: Use VideoRating.ProtoReflect.Descriptor instead.
func (*VideoRating) GetRating ¶
func (x *VideoRating) GetRating() int64
func (*VideoRating) GetUserID ¶
func (x *VideoRating) GetUserID() int64
func (*VideoRating) GetVideoID ¶
func (x *VideoRating) GetVideoID() int64
func (*VideoRating) ProtoMessage ¶
func (*VideoRating) ProtoMessage()
func (*VideoRating) ProtoReflect ¶
func (x *VideoRating) ProtoReflect() protoreflect.Message
func (*VideoRating) Reset ¶
func (x *VideoRating) Reset()
func (*VideoRating) String ¶
func (x *VideoRating) String() string
func (*VideoRating) Validate ¶
func (m *VideoRating) Validate() error
Validate checks the field values on VideoRating 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 (*VideoRating) ValidateAll ¶
func (m *VideoRating) ValidateAll() error
ValidateAll checks the field values on VideoRating 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 VideoRatingMultiError, or nil if none found.
type VideoRatingMultiError ¶
type VideoRatingMultiError []error
VideoRatingMultiError is an error wrapping multiple validation errors returned by VideoRating.ValidateAll() if the designated constraints aren't met.
func (VideoRatingMultiError) AllErrors ¶
func (m VideoRatingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoRatingMultiError) Error ¶
func (m VideoRatingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoRatingValidationError ¶
type VideoRatingValidationError struct {
// contains filtered or unexported fields
}
VideoRatingValidationError is the validation error returned by VideoRating.Validate if the designated constraints aren't met.
func (VideoRatingValidationError) Cause ¶
func (e VideoRatingValidationError) Cause() error
Cause function returns cause value.
func (VideoRatingValidationError) Error ¶
func (e VideoRatingValidationError) Error() string
Error satisfies the builtin error interface
func (VideoRatingValidationError) ErrorName ¶
func (e VideoRatingValidationError) ErrorName() string
ErrorName returns error name.
func (VideoRatingValidationError) Field ¶
func (e VideoRatingValidationError) Field() string
Field function returns field value.
func (VideoRatingValidationError) Key ¶
func (e VideoRatingValidationError) Key() bool
Key function returns key value.
func (VideoRatingValidationError) Reason ¶
func (e VideoRatingValidationError) Reason() string
Reason function returns reason value.
type VideoRec ¶
type VideoRec struct { ThumbnailLoc string `protobuf:"bytes,1,opt,name=thumbnailLoc,proto3" json:"thumbnailLoc,omitempty"` VideoTitle string `protobuf:"bytes,2,opt,name=videoTitle,proto3" json:"videoTitle,omitempty"` VideoID int64 `protobuf:"varint,3,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*VideoRec) Descriptor
deprecated
func (*VideoRec) GetThumbnailLoc ¶
func (*VideoRec) GetVideoID ¶
func (*VideoRec) GetVideoTitle ¶
func (*VideoRec) ProtoMessage ¶
func (*VideoRec) ProtoMessage()
func (*VideoRec) ProtoReflect ¶
func (x *VideoRec) ProtoReflect() protoreflect.Message
func (*VideoRec) Validate ¶
Validate checks the field values on VideoRec 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 (*VideoRec) ValidateAll ¶
ValidateAll checks the field values on VideoRec 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 VideoRecMultiError, or nil if none found.
type VideoRecMultiError ¶
type VideoRecMultiError []error
VideoRecMultiError is an error wrapping multiple validation errors returned by VideoRec.ValidateAll() if the designated constraints aren't met.
func (VideoRecMultiError) AllErrors ¶
func (m VideoRecMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoRecMultiError) Error ¶
func (m VideoRecMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoRecValidationError ¶
type VideoRecValidationError struct {
// contains filtered or unexported fields
}
VideoRecValidationError is the validation error returned by VideoRec.Validate if the designated constraints aren't met.
func (VideoRecValidationError) Cause ¶
func (e VideoRecValidationError) Cause() error
Cause function returns cause value.
func (VideoRecValidationError) Error ¶
func (e VideoRecValidationError) Error() string
Error satisfies the builtin error interface
func (VideoRecValidationError) ErrorName ¶
func (e VideoRecValidationError) ErrorName() string
ErrorName returns error name.
func (VideoRecValidationError) Field ¶
func (e VideoRecValidationError) Field() string
Field function returns field value.
func (VideoRecValidationError) Key ¶
func (e VideoRecValidationError) Key() bool
Key function returns key value.
func (VideoRecValidationError) Reason ¶
func (e VideoRecValidationError) Reason() string
Reason function returns reason value.
type VideoRequest ¶
type VideoRequest struct { VideoID string `protobuf:"bytes,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*VideoRequest) Descriptor
deprecated
func (*VideoRequest) Descriptor() ([]byte, []int)
Deprecated: Use VideoRequest.ProtoReflect.Descriptor instead.
func (*VideoRequest) GetVideoID ¶
func (x *VideoRequest) GetVideoID() string
func (*VideoRequest) ProtoMessage ¶
func (*VideoRequest) ProtoMessage()
func (*VideoRequest) ProtoReflect ¶
func (x *VideoRequest) ProtoReflect() protoreflect.Message
func (*VideoRequest) Reset ¶
func (x *VideoRequest) Reset()
func (*VideoRequest) String ¶
func (x *VideoRequest) String() string
func (*VideoRequest) Validate ¶
func (m *VideoRequest) Validate() error
Validate checks the field values on VideoRequest 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 (*VideoRequest) ValidateAll ¶
func (m *VideoRequest) ValidateAll() error
ValidateAll checks the field values on VideoRequest 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 VideoRequestMultiError, or nil if none found.
type VideoRequestMultiError ¶
type VideoRequestMultiError []error
VideoRequestMultiError is an error wrapping multiple validation errors returned by VideoRequest.ValidateAll() if the designated constraints aren't met.
func (VideoRequestMultiError) AllErrors ¶
func (m VideoRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoRequestMultiError) Error ¶
func (m VideoRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoRequestValidationError ¶
type VideoRequestValidationError struct {
// contains filtered or unexported fields
}
VideoRequestValidationError is the validation error returned by VideoRequest.Validate if the designated constraints aren't met.
func (VideoRequestValidationError) Cause ¶
func (e VideoRequestValidationError) Cause() error
Cause function returns cause value.
func (VideoRequestValidationError) Error ¶
func (e VideoRequestValidationError) Error() string
Error satisfies the builtin error interface
func (VideoRequestValidationError) ErrorName ¶
func (e VideoRequestValidationError) ErrorName() string
ErrorName returns error name.
func (VideoRequestValidationError) Field ¶
func (e VideoRequestValidationError) Field() string
Field function returns field value.
func (VideoRequestValidationError) Key ¶
func (e VideoRequestValidationError) Key() bool
Key function returns key value.
func (VideoRequestValidationError) Reason ¶
func (e VideoRequestValidationError) Reason() string
Reason function returns reason value.
type VideoServiceClient ¶
type VideoServiceClient interface { UploadVideo(ctx context.Context, opts ...grpc.CallOption) (VideoService_UploadVideoClient, error) DownloadVideo(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (VideoService_DownloadVideoClient, error) ForeignVideoExists(ctx context.Context, in *ForeignVideoCheck, opts ...grpc.CallOption) (*VideoExistenceResponse, error) GetVideoList(ctx context.Context, in *VideoQueryConfig, opts ...grpc.CallOption) (*VideoList, error) GetVideo(ctx context.Context, in *VideoRequest, opts ...grpc.CallOption) (*VideoMetadata, error) RateVideo(ctx context.Context, in *VideoRating, opts ...grpc.CallOption) (*Nothing, error) ViewVideo(ctx context.Context, in *VideoViewing, opts ...grpc.CallOption) (*Nothing, error) MakeComment(ctx context.Context, in *VideoComment, opts ...grpc.CallOption) (*Nothing, error) MakeCommentUpvote(ctx context.Context, in *CommentUpvote, opts ...grpc.CallOption) (*Nothing, error) GetCommentsForVideo(ctx context.Context, in *CommentRequest, opts ...grpc.CallOption) (*CommentListResponse, error) GetVideoRecommendations(ctx context.Context, in *RecReq, opts ...grpc.CallOption) (*RecResp, error) ApproveVideo(ctx context.Context, in *VideoApproval, opts ...grpc.CallOption) (*Nothing, error) DeleteVideo(ctx context.Context, in *VideoDeletionReq, opts ...grpc.CallOption) (*Nothing, error) DeleteComment(ctx context.Context, in *CommentDeletionReq, opts ...grpc.CallOption) (*Nothing, error) GetFollowFeed(ctx context.Context, in *FeedReq, opts ...grpc.CallOption) (*VideoList, error) GetDanmaku(ctx context.Context, in *DanmakuQueryReq, opts ...grpc.CallOption) (*DanmakuList, error) AddDanmaku(ctx context.Context, in *Danmaku, opts ...grpc.CallOption) (*Nothing, error) }
VideoServiceClient is the client API for VideoService 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 NewVideoServiceClient ¶
func NewVideoServiceClient(cc grpc.ClientConnInterface) VideoServiceClient
type VideoServiceServer ¶
type VideoServiceServer interface { UploadVideo(VideoService_UploadVideoServer) error DownloadVideo(*VideoRequest, VideoService_DownloadVideoServer) error ForeignVideoExists(context.Context, *ForeignVideoCheck) (*VideoExistenceResponse, error) GetVideoList(context.Context, *VideoQueryConfig) (*VideoList, error) GetVideo(context.Context, *VideoRequest) (*VideoMetadata, error) RateVideo(context.Context, *VideoRating) (*Nothing, error) ViewVideo(context.Context, *VideoViewing) (*Nothing, error) MakeComment(context.Context, *VideoComment) (*Nothing, error) MakeCommentUpvote(context.Context, *CommentUpvote) (*Nothing, error) GetCommentsForVideo(context.Context, *CommentRequest) (*CommentListResponse, error) GetVideoRecommendations(context.Context, *RecReq) (*RecResp, error) ApproveVideo(context.Context, *VideoApproval) (*Nothing, error) DeleteVideo(context.Context, *VideoDeletionReq) (*Nothing, error) DeleteComment(context.Context, *CommentDeletionReq) (*Nothing, error) GetFollowFeed(context.Context, *FeedReq) (*VideoList, error) GetDanmaku(context.Context, *DanmakuQueryReq) (*DanmakuList, error) AddDanmaku(context.Context, *Danmaku) (*Nothing, error) // contains filtered or unexported methods }
VideoServiceServer is the server API for VideoService service. All implementations must embed UnimplementedVideoServiceServer for forward compatibility
type VideoService_DownloadVideoClient ¶
type VideoService_DownloadVideoClient interface { Recv() (*ResponseVideoChunk, error) grpc.ClientStream }
type VideoService_DownloadVideoServer ¶
type VideoService_DownloadVideoServer interface { Send(*ResponseVideoChunk) error grpc.ServerStream }
type VideoService_UploadVideoClient ¶
type VideoService_UploadVideoClient interface { Send(*InputVideoChunk) error CloseAndRecv() (*UploadResponse, error) grpc.ClientStream }
type VideoService_UploadVideoServer ¶
type VideoService_UploadVideoServer interface { SendAndClose(*UploadResponse) error Recv() (*InputVideoChunk, error) grpc.ServerStream }
type VideoValidationError ¶
type VideoValidationError struct {
// contains filtered or unexported fields
}
VideoValidationError is the validation error returned by Video.Validate if the designated constraints aren't met.
func (VideoValidationError) Cause ¶
func (e VideoValidationError) Cause() error
Cause function returns cause value.
func (VideoValidationError) Error ¶
func (e VideoValidationError) Error() string
Error satisfies the builtin error interface
func (VideoValidationError) ErrorName ¶
func (e VideoValidationError) ErrorName() string
ErrorName returns error name.
func (VideoValidationError) Field ¶
func (e VideoValidationError) Field() string
Field function returns field value.
func (VideoValidationError) Key ¶
func (e VideoValidationError) Key() bool
Key function returns key value.
func (VideoValidationError) Reason ¶
func (e VideoValidationError) Reason() string
Reason function returns reason value.
type VideoViewing ¶
type VideoViewing struct { VideoID int64 `protobuf:"varint,1,opt,name=videoID,proto3" json:"videoID,omitempty"` // contains filtered or unexported fields }
func (*VideoViewing) Descriptor
deprecated
func (*VideoViewing) Descriptor() ([]byte, []int)
Deprecated: Use VideoViewing.ProtoReflect.Descriptor instead.
func (*VideoViewing) GetVideoID ¶
func (x *VideoViewing) GetVideoID() int64
func (*VideoViewing) ProtoMessage ¶
func (*VideoViewing) ProtoMessage()
func (*VideoViewing) ProtoReflect ¶
func (x *VideoViewing) ProtoReflect() protoreflect.Message
func (*VideoViewing) Reset ¶
func (x *VideoViewing) Reset()
func (*VideoViewing) String ¶
func (x *VideoViewing) String() string
func (*VideoViewing) Validate ¶
func (m *VideoViewing) Validate() error
Validate checks the field values on VideoViewing 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 (*VideoViewing) ValidateAll ¶
func (m *VideoViewing) ValidateAll() error
ValidateAll checks the field values on VideoViewing 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 VideoViewingMultiError, or nil if none found.
type VideoViewingMultiError ¶
type VideoViewingMultiError []error
VideoViewingMultiError is an error wrapping multiple validation errors returned by VideoViewing.ValidateAll() if the designated constraints aren't met.
func (VideoViewingMultiError) AllErrors ¶
func (m VideoViewingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (VideoViewingMultiError) Error ¶
func (m VideoViewingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type VideoViewingValidationError ¶
type VideoViewingValidationError struct {
// contains filtered or unexported fields
}
VideoViewingValidationError is the validation error returned by VideoViewing.Validate if the designated constraints aren't met.
func (VideoViewingValidationError) Cause ¶
func (e VideoViewingValidationError) Cause() error
Cause function returns cause value.
func (VideoViewingValidationError) Error ¶
func (e VideoViewingValidationError) Error() string
Error satisfies the builtin error interface
func (VideoViewingValidationError) ErrorName ¶
func (e VideoViewingValidationError) ErrorName() string
ErrorName returns error name.
func (VideoViewingValidationError) Field ¶
func (e VideoViewingValidationError) Field() string
Field function returns field value.
func (VideoViewingValidationError) Key ¶
func (e VideoViewingValidationError) Key() bool
Key function returns key value.
func (VideoViewingValidationError) Reason ¶
func (e VideoViewingValidationError) Reason() string
Reason function returns reason value.