protocol

package
v0.0.0-...-831c856 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: BSD-2-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var (
	SortDirection_name = map[int32]string{
		0: "asc",
		2: "desc",
	}
	SortDirection_value = map[string]int32{
		"asc":  0,
		"desc": 2,
	}
)

Enum value maps for SortDirection.

View Source
var File_videoservice_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use Category.ProtoReflect.Descriptor instead.

func (*Category) GetCardinality

func (x *Category) GetCardinality() uint64

func (*Category) GetName

func (x *Category) GetName() string

func (*Category) ProtoMessage

func (*Category) ProtoMessage()

func (*Category) ProtoReflect

func (x *Category) ProtoReflect() protoreflect.Message

func (*Category) Reset

func (x *Category) Reset()

func (*Category) String

func (x *Category) String() string

func (*Category) Validate

func (m *Category) Validate() error

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

func (m *Category) ValidateAll() error

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

Cause function returns cause value.

func (CategoryListValidationError) Error

Error satisfies the builtin error interface

func (CategoryListValidationError) ErrorName

func (e CategoryListValidationError) ErrorName() string

ErrorName returns error name.

func (CategoryListValidationError) Field

Field function returns field value.

func (CategoryListValidationError) Key

Key function returns key value.

func (CategoryListValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Comment.ProtoReflect.Descriptor instead.

func (*Comment) GetAuthorId

func (x *Comment) GetAuthorId() int64

func (*Comment) GetAuthorProfileImageUrl

func (x *Comment) GetAuthorProfileImageUrl() string

func (*Comment) GetAuthorUsername

func (x *Comment) GetAuthorUsername() string

func (*Comment) GetCommentId

func (x *Comment) GetCommentId() int64

func (*Comment) GetContent

func (x *Comment) GetContent() string

func (*Comment) GetCreationDate

func (x *Comment) GetCreationDate() string

func (*Comment) GetCurrentUserHasDownvoted

func (x *Comment) GetCurrentUserHasDownvoted() bool

func (*Comment) GetCurrentUserHasUpvoted

func (x *Comment) GetCurrentUserHasUpvoted() bool

func (*Comment) GetParentId

func (x *Comment) GetParentId() int64

func (*Comment) GetVoteScore

func (x *Comment) GetVoteScore() int64

func (*Comment) ProtoMessage

func (*Comment) ProtoMessage()

func (*Comment) ProtoReflect

func (x *Comment) ProtoReflect() protoreflect.Message

func (*Comment) Reset

func (x *Comment) Reset()

func (*Comment) String

func (x *Comment) String() string

func (*Comment) Validate

func (m *Comment) Validate() error

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

func (m *Comment) ValidateAll() error

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

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

Cause function returns cause value.

func (CommentDeletionReqValidationError) Error

Error satisfies the builtin error interface

func (CommentDeletionReqValidationError) ErrorName

ErrorName returns error name.

func (CommentDeletionReqValidationError) Field

Field function returns field value.

func (CommentDeletionReqValidationError) Key

Key function returns key value.

func (CommentDeletionReqValidationError) Reason

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

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

Cause function returns cause value.

func (CommentListResponseValidationError) Error

Error satisfies the builtin error interface

func (CommentListResponseValidationError) ErrorName

ErrorName returns error name.

func (CommentListResponseValidationError) Field

Field function returns field value.

func (CommentListResponseValidationError) Key

Key function returns key value.

func (CommentListResponseValidationError) Reason

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

Cause function returns cause value.

func (CommentRequestValidationError) Error

Error satisfies the builtin error interface

func (CommentRequestValidationError) ErrorName

func (e CommentRequestValidationError) ErrorName() string

ErrorName returns error name.

func (CommentRequestValidationError) Field

Field function returns field value.

func (CommentRequestValidationError) Key

Key function returns key value.

func (CommentRequestValidationError) Reason

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

Cause function returns cause value.

func (CommentUpvoteValidationError) Error

Error satisfies the builtin error interface

func (CommentUpvoteValidationError) ErrorName

func (e CommentUpvoteValidationError) ErrorName() string

ErrorName returns error name.

func (CommentUpvoteValidationError) Field

Field function returns field value.

func (CommentUpvoteValidationError) Key

Key function returns key value.

func (CommentUpvoteValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Danmaku.ProtoReflect.Descriptor instead.

func (*Danmaku) GetAuthorId

func (x *Danmaku) GetAuthorId() int64

func (*Danmaku) GetColor

func (x *Danmaku) GetColor() string

func (*Danmaku) GetFontSize

func (x *Danmaku) GetFontSize() string

func (*Danmaku) GetId

func (x *Danmaku) GetId() int64

func (*Danmaku) GetMessage

func (x *Danmaku) GetMessage() string

func (*Danmaku) GetTimestamp

func (x *Danmaku) GetTimestamp() string

func (*Danmaku) GetType

func (x *Danmaku) GetType() string

func (*Danmaku) GetVideoId

func (x *Danmaku) GetVideoId() int64

func (*Danmaku) ProtoMessage

func (*Danmaku) ProtoMessage()

func (*Danmaku) ProtoReflect

func (x *Danmaku) ProtoReflect() protoreflect.Message

func (*Danmaku) Reset

func (x *Danmaku) Reset()

func (*Danmaku) String

func (x *Danmaku) String() string

func (*Danmaku) Validate

func (m *Danmaku) Validate() error

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

func (m *Danmaku) ValidateAll() error

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

Cause function returns cause value.

func (DanmakuListValidationError) Error

Error satisfies the builtin error interface

func (DanmakuListValidationError) ErrorName

func (e DanmakuListValidationError) ErrorName() string

ErrorName returns error name.

func (DanmakuListValidationError) Field

Field function returns field value.

func (DanmakuListValidationError) Key

Key function returns key value.

func (DanmakuListValidationError) Reason

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

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

Cause function returns cause value.

func (DanmakuQueryReqValidationError) Error

Error satisfies the builtin error interface

func (DanmakuQueryReqValidationError) ErrorName

func (e DanmakuQueryReqValidationError) ErrorName() string

ErrorName returns error name.

func (DanmakuQueryReqValidationError) Field

Field function returns field value.

func (DanmakuQueryReqValidationError) Key

Key function returns key value.

func (DanmakuQueryReqValidationError) Reason

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

Cause function returns cause value.

func (FavoriteReqValidationError) Error

Error satisfies the builtin error interface

func (FavoriteReqValidationError) ErrorName

func (e FavoriteReqValidationError) ErrorName() string

ErrorName returns error name.

func (FavoriteReqValidationError) Field

Field function returns field value.

func (FavoriteReqValidationError) Key

Key function returns key value.

func (FavoriteReqValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use FeedReq.ProtoReflect.Descriptor instead.

func (*FeedReq) GetFollowedUsers

func (x *FeedReq) GetFollowedUsers() []int64

func (*FeedReq) ProtoMessage

func (*FeedReq) ProtoMessage()

func (*FeedReq) ProtoReflect

func (x *FeedReq) ProtoReflect() protoreflect.Message

func (*FeedReq) Reset

func (x *FeedReq) Reset()

func (*FeedReq) String

func (x *FeedReq) String() string

func (*FeedReq) Validate

func (m *FeedReq) Validate() error

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

func (m *FeedReq) ValidateAll() error

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

Cause function returns cause value.

func (FileContentValidationError) Error

Error satisfies the builtin error interface

func (FileContentValidationError) ErrorName

func (e FileContentValidationError) ErrorName() string

ErrorName returns error name.

func (FileContentValidationError) Field

Field function returns field value.

func (FileContentValidationError) Key

Key function returns key value.

func (FileContentValidationError) Reason

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

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

Cause function returns cause value.

func (ForeignVideoCheckValidationError) Error

Error satisfies the builtin error interface

func (ForeignVideoCheckValidationError) ErrorName

ErrorName returns error name.

func (ForeignVideoCheckValidationError) Field

Field function returns field value.

func (ForeignVideoCheckValidationError) Key

Key function returns key value.

func (ForeignVideoCheckValidationError) Reason

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 (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

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

Cause function returns cause value.

func (InputFileMetadataValidationError) Error

Error satisfies the builtin error interface

func (InputFileMetadataValidationError) ErrorName

ErrorName returns error name.

func (InputFileMetadataValidationError) Field

Field function returns field value.

func (InputFileMetadataValidationError) Key

Key function returns key value.

func (InputFileMetadataValidationError) Reason

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

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

Cause function returns cause value.

func (InputVideoChunkValidationError) Error

Error satisfies the builtin error interface

func (InputVideoChunkValidationError) ErrorName

func (e InputVideoChunkValidationError) ErrorName() string

ErrorName returns error name.

func (InputVideoChunkValidationError) Field

Field function returns field value.

func (InputVideoChunkValidationError) Key

Key function returns key value.

func (InputVideoChunkValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Nothing.ProtoReflect.Descriptor instead.

func (*Nothing) ProtoMessage

func (*Nothing) ProtoMessage()

func (*Nothing) ProtoReflect

func (x *Nothing) ProtoReflect() protoreflect.Message

func (*Nothing) Reset

func (x *Nothing) Reset()

func (*Nothing) String

func (x *Nothing) String() string

func (*Nothing) Validate

func (m *Nothing) Validate() error

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

func (m *Nothing) ValidateAll() error

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) Enum

func (x OrderCategory) Enum() *OrderCategory

func (OrderCategory) EnumDescriptor deprecated

func (OrderCategory) EnumDescriptor() ([]byte, []int)

Deprecated: Use OrderCategory.Descriptor instead.

func (OrderCategory) Number

func (OrderCategory) String

func (x OrderCategory) String() string

func (OrderCategory) Type

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

Cause function returns cause value.

func (RawMetadataValidationError) Error

Error satisfies the builtin error interface

func (RawMetadataValidationError) ErrorName

func (e RawMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (RawMetadataValidationError) Field

Field function returns field value.

func (RawMetadataValidationError) Key

Key function returns key value.

func (RawMetadataValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use RecReq.ProtoReflect.Descriptor instead.

func (*RecReq) GetUserId

func (x *RecReq) GetUserId() int64

func (*RecReq) GetVideoId

func (x *RecReq) GetVideoId() int64

func (*RecReq) ProtoMessage

func (*RecReq) ProtoMessage()

func (*RecReq) ProtoReflect

func (x *RecReq) ProtoReflect() protoreflect.Message

func (*RecReq) Reset

func (x *RecReq) Reset()

func (*RecReq) String

func (x *RecReq) String() string

func (*RecReq) Validate

func (m *RecReq) Validate() error

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

func (m *RecReq) ValidateAll() error

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) Descriptor() ([]byte, []int)

Deprecated: Use RecResp.ProtoReflect.Descriptor instead.

func (*RecResp) GetVideos

func (x *RecResp) GetVideos() []*Video

func (*RecResp) ProtoMessage

func (*RecResp) ProtoMessage()

func (*RecResp) ProtoReflect

func (x *RecResp) ProtoReflect() protoreflect.Message

func (*RecResp) Reset

func (x *RecResp) Reset()

func (*RecResp) String

func (x *RecResp) String() string

func (*RecResp) Validate

func (m *RecResp) Validate() error

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

func (m *RecResp) ValidateAll() error

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 (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

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

Cause function returns cause value.

func (ResponseFileMetadataValidationError) Error

Error satisfies the builtin error interface

func (ResponseFileMetadataValidationError) ErrorName

ErrorName returns error name.

func (ResponseFileMetadataValidationError) Field

Field function returns field value.

func (ResponseFileMetadataValidationError) Key

Key function returns key value.

func (ResponseFileMetadataValidationError) Reason

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 (*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

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

Cause function returns cause value.

func (ResponseVideoChunkValidationError) Error

Error satisfies the builtin error interface

func (ResponseVideoChunkValidationError) ErrorName

ErrorName returns error name.

func (ResponseVideoChunkValidationError) Field

Field function returns field value.

func (ResponseVideoChunkValidationError) Key

Key function returns key value.

func (ResponseVideoChunkValidationError) Reason

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) Enum

func (x SortDirection) Enum() *SortDirection

func (SortDirection) EnumDescriptor deprecated

func (SortDirection) EnumDescriptor() ([]byte, []int)

Deprecated: Use SortDirection.Descriptor instead.

func (SortDirection) Number

func (SortDirection) String

func (x SortDirection) String() string

func (SortDirection) Type

type UnimplementedVideoServiceServer

type UnimplementedVideoServiceServer struct {
}

UnimplementedVideoServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedVideoServiceServer) AddDanmaku

func (UnimplementedVideoServiceServer) ApproveVideo

func (UnimplementedVideoServiceServer) DeleteComment

func (UnimplementedVideoServiceServer) DeleteVideo

func (UnimplementedVideoServiceServer) DownloadVideo

func (UnimplementedVideoServiceServer) ForeignVideoExists

func (UnimplementedVideoServiceServer) GetCommentsForVideo

func (UnimplementedVideoServiceServer) GetDanmaku

func (UnimplementedVideoServiceServer) GetFollowFeed

func (UnimplementedVideoServiceServer) GetVideo

func (UnimplementedVideoServiceServer) GetVideoList

func (UnimplementedVideoServiceServer) GetVideoRecommendations

func (UnimplementedVideoServiceServer) GetVideoRecommendations(context.Context, *RecReq) (*RecResp, error)

func (UnimplementedVideoServiceServer) MakeComment

func (UnimplementedVideoServiceServer) MakeCommentUpvote

func (UnimplementedVideoServiceServer) RateVideo

func (UnimplementedVideoServiceServer) UploadVideo

func (UnimplementedVideoServiceServer) ViewVideo

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

Cause function returns cause value.

func (UploadResponseValidationError) Error

Error satisfies the builtin error interface

func (UploadResponseValidationError) ErrorName

func (e UploadResponseValidationError) ErrorName() string

ErrorName returns error name.

func (UploadResponseValidationError) Field

Field function returns field value.

func (UploadResponseValidationError) Key

Key function returns key value.

func (UploadResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetAuthorID

func (x *Video) GetAuthorID() int64

func (*Video) GetAuthorName

func (x *Video) GetAuthorName() string

func (*Video) GetRating

func (x *Video) GetRating() int64

func (*Video) GetThumbnailLoc

func (x *Video) GetThumbnailLoc() string

func (*Video) GetUploadDate

func (x *Video) GetUploadDate() string

func (*Video) GetVideoDuration

func (x *Video) GetVideoDuration() float32

func (*Video) GetVideoID

func (x *Video) GetVideoID() int64

func (*Video) GetVideoTitle

func (x *Video) GetVideoTitle() string

func (*Video) GetViews

func (x *Video) GetViews() uint64

func (*Video) ProtoMessage

func (*Video) ProtoMessage()

func (*Video) ProtoReflect

func (x *Video) ProtoReflect() protoreflect.Message

func (*Video) Reset

func (x *Video) Reset()

func (*Video) String

func (x *Video) String() string

func (*Video) Validate

func (m *Video) Validate() error

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

func (m *Video) ValidateAll() error

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

Cause function returns cause value.

func (VideoApprovalValidationError) Error

Error satisfies the builtin error interface

func (VideoApprovalValidationError) ErrorName

func (e VideoApprovalValidationError) ErrorName() string

ErrorName returns error name.

func (VideoApprovalValidationError) Field

Field function returns field value.

func (VideoApprovalValidationError) Key

Key function returns key value.

func (VideoApprovalValidationError) Reason

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

Cause function returns cause value.

func (VideoCommentValidationError) Error

Error satisfies the builtin error interface

func (VideoCommentValidationError) ErrorName

func (e VideoCommentValidationError) ErrorName() string

ErrorName returns error name.

func (VideoCommentValidationError) Field

Field function returns field value.

func (VideoCommentValidationError) Key

Key function returns key value.

func (VideoCommentValidationError) Reason

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

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

Cause function returns cause value.

func (VideoDeletionReqValidationError) Error

Error satisfies the builtin error interface

func (VideoDeletionReqValidationError) ErrorName

ErrorName returns error name.

func (VideoDeletionReqValidationError) Field

Field function returns field value.

func (VideoDeletionReqValidationError) Key

Key function returns key value.

func (VideoDeletionReqValidationError) Reason

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

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

Cause function returns cause value.

func (VideoExistenceResponseValidationError) Error

Error satisfies the builtin error interface

func (VideoExistenceResponseValidationError) ErrorName

ErrorName returns error name.

func (VideoExistenceResponseValidationError) Field

Field function returns field value.

func (VideoExistenceResponseValidationError) Key

Key function returns key value.

func (VideoExistenceResponseValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use VideoList.ProtoReflect.Descriptor instead.

func (*VideoList) GetCategories

func (x *VideoList) GetCategories() *CategoryList

func (*VideoList) GetNumberOfVideos

func (x *VideoList) GetNumberOfVideos() int64

func (*VideoList) GetVideos

func (x *VideoList) GetVideos() []*Video

func (*VideoList) ProtoMessage

func (*VideoList) ProtoMessage()

func (*VideoList) ProtoReflect

func (x *VideoList) ProtoReflect() protoreflect.Message

func (*VideoList) Reset

func (x *VideoList) Reset()

func (*VideoList) String

func (x *VideoList) String() string

func (*VideoList) Validate

func (m *VideoList) Validate() error

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

func (m *VideoList) ValidateAll() error

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

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

Cause function returns cause value.

func (VideoMetadataValidationError) Error

Error satisfies the builtin error interface

func (VideoMetadataValidationError) ErrorName

func (e VideoMetadataValidationError) ErrorName() string

ErrorName returns error name.

func (VideoMetadataValidationError) Field

Field function returns field value.

func (VideoMetadataValidationError) Key

Key function returns key value.

func (VideoMetadataValidationError) Reason

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

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

Cause function returns cause value.

func (VideoQueryConfigValidationError) Error

Error satisfies the builtin error interface

func (VideoQueryConfigValidationError) ErrorName

ErrorName returns error name.

func (VideoQueryConfigValidationError) Field

Field function returns field value.

func (VideoQueryConfigValidationError) Key

Key function returns key value.

func (VideoQueryConfigValidationError) Reason

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

Cause function returns cause value.

func (VideoRatingValidationError) Error

Error satisfies the builtin error interface

func (VideoRatingValidationError) ErrorName

func (e VideoRatingValidationError) ErrorName() string

ErrorName returns error name.

func (VideoRatingValidationError) Field

Field function returns field value.

func (VideoRatingValidationError) Key

Key function returns key value.

func (VideoRatingValidationError) Reason

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) Descriptor() ([]byte, []int)

Deprecated: Use VideoRec.ProtoReflect.Descriptor instead.

func (*VideoRec) GetThumbnailLoc

func (x *VideoRec) GetThumbnailLoc() string

func (*VideoRec) GetVideoID

func (x *VideoRec) GetVideoID() int64

func (*VideoRec) GetVideoTitle

func (x *VideoRec) GetVideoTitle() string

func (*VideoRec) ProtoMessage

func (*VideoRec) ProtoMessage()

func (*VideoRec) ProtoReflect

func (x *VideoRec) ProtoReflect() protoreflect.Message

func (*VideoRec) Reset

func (x *VideoRec) Reset()

func (*VideoRec) String

func (x *VideoRec) String() string

func (*VideoRec) Validate

func (m *VideoRec) Validate() error

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

func (m *VideoRec) ValidateAll() error

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

Cause function returns cause value.

func (VideoRequestValidationError) Error

Error satisfies the builtin error interface

func (VideoRequestValidationError) ErrorName

func (e VideoRequestValidationError) ErrorName() string

ErrorName returns error name.

func (VideoRequestValidationError) Field

Field function returns field value.

func (VideoRequestValidationError) Key

Key function returns key value.

func (VideoRequestValidationError) Reason

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.

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

Cause function returns cause value.

func (VideoViewingValidationError) Error

Error satisfies the builtin error interface

func (VideoViewingValidationError) ErrorName

func (e VideoViewingValidationError) ErrorName() string

ErrorName returns error name.

func (VideoViewingValidationError) Field

Field function returns field value.

func (VideoViewingValidationError) Key

Key function returns key value.

func (VideoViewingValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL