protocol

package
v0.0.0-...-514e0f0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2023 License: MIT Imports: 20 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VideoDownloadStatus_name = map[int32]string{
		0: "Queued",
		1: "Downloading",
	}
	VideoDownloadStatus_value = map[string]int32{
		"Queued":      0,
		"Downloading": 1,
	}
)

Enum value maps for VideoDownloadStatus.

View Source
var File_scheduler_proto protoreflect.FileDescriptor
View Source
var Scheduler_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Scheduler",
	HandlerType: (*SchedulerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "dlURL",
			Handler:    _Scheduler_DlURL_Handler,
		},
		{
			MethodName: "listArchivalEntries",
			Handler:    _Scheduler_ListArchivalEntries_Handler,
		},
		{
			MethodName: "listArchivalEvents",
			Handler:    _Scheduler_ListArchivalEvents_Handler,
		},
		{
			MethodName: "deleteArchivalRequest",
			Handler:    _Scheduler_DeleteArchivalRequest_Handler,
		},
		{
			MethodName: "retryArchivalRequestDownloadss",
			Handler:    _Scheduler_RetryArchivalRequestDownloadss_Handler,
		},
		{
			MethodName: "getDownloadsInProgress",
			Handler:    _Scheduler_GetDownloadsInProgress_Handler,
		},
		{
			MethodName: "GetUnapprovedVideoList",
			Handler:    _Scheduler_GetUnapprovedVideoList_Handler,
		},
		{
			MethodName: "ApproveVideo",
			Handler:    _Scheduler_ApproveVideo_Handler,
		},
		{
			MethodName: "UnapproveVideo",
			Handler:    _Scheduler_UnapproveVideo_Handler,
		},
		{
			MethodName: "GetInferenceCategories",
			Handler:    _Scheduler_GetInferenceCategories_Handler,
		},
		{
			MethodName: "AddInferenceCategory",
			Handler:    _Scheduler_AddInferenceCategory_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "scheduler.proto",
}

Scheduler_ServiceDesc is the grpc.ServiceDesc for Scheduler service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterSchedulerServer

func RegisterSchedulerServer(s grpc.ServiceRegistrar, srv SchedulerServer)

Types

type ApproveVideoReq

type ApproveVideoReq struct {
	VideoID string `protobuf:"bytes,1,opt,name=VideoID,proto3" json:"VideoID,omitempty"`
	// contains filtered or unexported fields
}

func (*ApproveVideoReq) Descriptor deprecated

func (*ApproveVideoReq) Descriptor() ([]byte, []int)

Deprecated: Use ApproveVideoReq.ProtoReflect.Descriptor instead.

func (*ApproveVideoReq) GetVideoID

func (x *ApproveVideoReq) GetVideoID() string

func (*ApproveVideoReq) ProtoMessage

func (*ApproveVideoReq) ProtoMessage()

func (*ApproveVideoReq) ProtoReflect

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

func (*ApproveVideoReq) Reset

func (x *ApproveVideoReq) Reset()

func (*ApproveVideoReq) String

func (x *ApproveVideoReq) String() string

func (*ApproveVideoReq) Validate

func (m *ApproveVideoReq) Validate() error

Validate checks the field values on ApproveVideoReq 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 (*ApproveVideoReq) ValidateAll

func (m *ApproveVideoReq) ValidateAll() error

ValidateAll checks the field values on ApproveVideoReq 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 ApproveVideoReqMultiError, or nil if none found.

type ApproveVideoReqMultiError

type ApproveVideoReqMultiError []error

ApproveVideoReqMultiError is an error wrapping multiple validation errors returned by ApproveVideoReq.ValidateAll() if the designated constraints aren't met.

func (ApproveVideoReqMultiError) AllErrors

func (m ApproveVideoReqMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ApproveVideoReqMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ApproveVideoReqValidationError

type ApproveVideoReqValidationError struct {
	// contains filtered or unexported fields
}

ApproveVideoReqValidationError is the validation error returned by ApproveVideoReq.Validate if the designated constraints aren't met.

func (ApproveVideoReqValidationError) Cause

Cause function returns cause value.

func (ApproveVideoReqValidationError) Error

Error satisfies the builtin error interface

func (ApproveVideoReqValidationError) ErrorName

func (e ApproveVideoReqValidationError) ErrorName() string

ErrorName returns error name.

func (ApproveVideoReqValidationError) Field

Field function returns field value.

func (ApproveVideoReqValidationError) Key

Key function returns key value.

func (ApproveVideoReqValidationError) Reason

Reason function returns reason value.

type ArchivalEvent

type ArchivalEvent struct {
	VideoUrl  string `protobuf:"bytes,1,opt,name=video_url,json=videoUrl,proto3" json:"video_url,omitempty"`
	ParentUrl string `protobuf:"bytes,2,opt,name=parent_url,json=parentUrl,proto3" json:"parent_url,omitempty"`
	Message   string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	Timestamp string `protobuf:"bytes,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	// contains filtered or unexported fields
}

func (*ArchivalEvent) Descriptor deprecated

func (*ArchivalEvent) Descriptor() ([]byte, []int)

Deprecated: Use ArchivalEvent.ProtoReflect.Descriptor instead.

func (*ArchivalEvent) GetMessage

func (x *ArchivalEvent) GetMessage() string

func (*ArchivalEvent) GetParentUrl

func (x *ArchivalEvent) GetParentUrl() string

func (*ArchivalEvent) GetTimestamp

func (x *ArchivalEvent) GetTimestamp() string

func (*ArchivalEvent) GetVideoUrl

func (x *ArchivalEvent) GetVideoUrl() string

func (*ArchivalEvent) ProtoMessage

func (*ArchivalEvent) ProtoMessage()

func (*ArchivalEvent) ProtoReflect

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

func (*ArchivalEvent) Reset

func (x *ArchivalEvent) Reset()

func (*ArchivalEvent) String

func (x *ArchivalEvent) String() string

func (*ArchivalEvent) Validate

func (m *ArchivalEvent) Validate() error

Validate checks the field values on ArchivalEvent 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 (*ArchivalEvent) ValidateAll

func (m *ArchivalEvent) ValidateAll() error

ValidateAll checks the field values on ArchivalEvent 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 ArchivalEventMultiError, or nil if none found.

type ArchivalEventMultiError

type ArchivalEventMultiError []error

ArchivalEventMultiError is an error wrapping multiple validation errors returned by ArchivalEvent.ValidateAll() if the designated constraints aren't met.

func (ArchivalEventMultiError) AllErrors

func (m ArchivalEventMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ArchivalEventMultiError) Error

func (m ArchivalEventMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ArchivalEventValidationError

type ArchivalEventValidationError struct {
	// contains filtered or unexported fields
}

ArchivalEventValidationError is the validation error returned by ArchivalEvent.Validate if the designated constraints aren't met.

func (ArchivalEventValidationError) Cause

Cause function returns cause value.

func (ArchivalEventValidationError) Error

Error satisfies the builtin error interface

func (ArchivalEventValidationError) ErrorName

func (e ArchivalEventValidationError) ErrorName() string

ErrorName returns error name.

func (ArchivalEventValidationError) Field

Field function returns field value.

func (ArchivalEventValidationError) Key

Key function returns key value.

func (ArchivalEventValidationError) Reason

Reason function returns reason value.

type ContentArchivalEntry

type ContentArchivalEntry struct {
	UserID               int64  `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"`
	Url                  string `protobuf:"bytes,2,opt,name=Url,proto3" json:"Url,omitempty"`
	ArchivedVideos       uint64 `protobuf:"varint,3,opt,name=ArchivedVideos,proto3" json:"ArchivedVideos,omitempty"`
	CurrentTotalVideos   uint64 `protobuf:"varint,4,opt,name=CurrentTotalVideos,proto3" json:"CurrentTotalVideos,omitempty"`
	LastSynced           string `protobuf:"bytes,5,opt,name=LastSynced,proto3" json:"LastSynced,omitempty"`
	BackoffFactor        uint32 `protobuf:"varint,6,opt,name=BackoffFactor,proto3" json:"BackoffFactor,omitempty"`
	DownloadID           uint64 `protobuf:"varint,7,opt,name=downloadID,proto3" json:"downloadID,omitempty"`
	UndownloadableVideos uint64 `protobuf:"varint,8,opt,name=UndownloadableVideos,proto3" json:"UndownloadableVideos,omitempty"`
	// contains filtered or unexported fields
}

func (*ContentArchivalEntry) Descriptor deprecated

func (*ContentArchivalEntry) Descriptor() ([]byte, []int)

Deprecated: Use ContentArchivalEntry.ProtoReflect.Descriptor instead.

func (*ContentArchivalEntry) GetArchivedVideos

func (x *ContentArchivalEntry) GetArchivedVideos() uint64

func (*ContentArchivalEntry) GetBackoffFactor

func (x *ContentArchivalEntry) GetBackoffFactor() uint32

func (*ContentArchivalEntry) GetCurrentTotalVideos

func (x *ContentArchivalEntry) GetCurrentTotalVideos() uint64

func (*ContentArchivalEntry) GetDownloadID

func (x *ContentArchivalEntry) GetDownloadID() uint64

func (*ContentArchivalEntry) GetLastSynced

func (x *ContentArchivalEntry) GetLastSynced() string

func (*ContentArchivalEntry) GetUndownloadableVideos

func (x *ContentArchivalEntry) GetUndownloadableVideos() uint64

func (*ContentArchivalEntry) GetUrl

func (x *ContentArchivalEntry) GetUrl() string

func (*ContentArchivalEntry) GetUserID

func (x *ContentArchivalEntry) GetUserID() int64

func (*ContentArchivalEntry) ProtoMessage

func (*ContentArchivalEntry) ProtoMessage()

func (*ContentArchivalEntry) ProtoReflect

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

func (*ContentArchivalEntry) Reset

func (x *ContentArchivalEntry) Reset()

func (*ContentArchivalEntry) String

func (x *ContentArchivalEntry) String() string

func (*ContentArchivalEntry) Validate

func (m *ContentArchivalEntry) Validate() error

Validate checks the field values on ContentArchivalEntry 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 (*ContentArchivalEntry) ValidateAll

func (m *ContentArchivalEntry) ValidateAll() error

ValidateAll checks the field values on ContentArchivalEntry 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 ContentArchivalEntryMultiError, or nil if none found.

type ContentArchivalEntryMultiError

type ContentArchivalEntryMultiError []error

ContentArchivalEntryMultiError is an error wrapping multiple validation errors returned by ContentArchivalEntry.ValidateAll() if the designated constraints aren't met.

func (ContentArchivalEntryMultiError) AllErrors

func (m ContentArchivalEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ContentArchivalEntryMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ContentArchivalEntryValidationError

type ContentArchivalEntryValidationError struct {
	// contains filtered or unexported fields
}

ContentArchivalEntryValidationError is the validation error returned by ContentArchivalEntry.Validate if the designated constraints aren't met.

func (ContentArchivalEntryValidationError) Cause

Cause function returns cause value.

func (ContentArchivalEntryValidationError) Error

Error satisfies the builtin error interface

func (ContentArchivalEntryValidationError) ErrorName

ErrorName returns error name.

func (ContentArchivalEntryValidationError) Field

Field function returns field value.

func (ContentArchivalEntryValidationError) Key

Key function returns key value.

func (ContentArchivalEntryValidationError) Reason

Reason function returns reason value.

type DeletionRequest

type DeletionRequest struct {
	DownloadID uint64 `protobuf:"varint,1,opt,name=downloadID,proto3" json:"downloadID,omitempty"`
	UserID     uint64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*DeletionRequest) Descriptor deprecated

func (*DeletionRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeletionRequest.ProtoReflect.Descriptor instead.

func (*DeletionRequest) GetDownloadID

func (x *DeletionRequest) GetDownloadID() uint64

func (*DeletionRequest) GetUserID

func (x *DeletionRequest) GetUserID() uint64

func (*DeletionRequest) ProtoMessage

func (*DeletionRequest) ProtoMessage()

func (*DeletionRequest) ProtoReflect

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

func (*DeletionRequest) Reset

func (x *DeletionRequest) Reset()

func (*DeletionRequest) String

func (x *DeletionRequest) String() string

func (*DeletionRequest) Validate

func (m *DeletionRequest) Validate() error

Validate checks the field values on DeletionRequest 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 (*DeletionRequest) ValidateAll

func (m *DeletionRequest) ValidateAll() error

ValidateAll checks the field values on DeletionRequest 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 DeletionRequestMultiError, or nil if none found.

type DeletionRequestMultiError

type DeletionRequestMultiError []error

DeletionRequestMultiError is an error wrapping multiple validation errors returned by DeletionRequest.ValidateAll() if the designated constraints aren't met.

func (DeletionRequestMultiError) AllErrors

func (m DeletionRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (DeletionRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DeletionRequestValidationError

type DeletionRequestValidationError struct {
	// contains filtered or unexported fields
}

DeletionRequestValidationError is the validation error returned by DeletionRequest.Validate if the designated constraints aren't met.

func (DeletionRequestValidationError) Cause

Cause function returns cause value.

func (DeletionRequestValidationError) Error

Error satisfies the builtin error interface

func (DeletionRequestValidationError) ErrorName

func (e DeletionRequestValidationError) ErrorName() string

ErrorName returns error name.

func (DeletionRequestValidationError) Field

Field function returns field value.

func (DeletionRequestValidationError) Key

Key function returns key value.

func (DeletionRequestValidationError) Reason

Reason function returns reason value.

type DownloadsInProgressRequest

type DownloadsInProgressRequest struct {
	// contains filtered or unexported fields
}

func (*DownloadsInProgressRequest) Descriptor deprecated

func (*DownloadsInProgressRequest) Descriptor() ([]byte, []int)

Deprecated: Use DownloadsInProgressRequest.ProtoReflect.Descriptor instead.

func (*DownloadsInProgressRequest) ProtoMessage

func (*DownloadsInProgressRequest) ProtoMessage()

func (*DownloadsInProgressRequest) ProtoReflect

func (*DownloadsInProgressRequest) Reset

func (x *DownloadsInProgressRequest) Reset()

func (*DownloadsInProgressRequest) String

func (x *DownloadsInProgressRequest) String() string

func (*DownloadsInProgressRequest) Validate

func (m *DownloadsInProgressRequest) Validate() error

Validate checks the field values on DownloadsInProgressRequest 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 (*DownloadsInProgressRequest) ValidateAll

func (m *DownloadsInProgressRequest) ValidateAll() error

ValidateAll checks the field values on DownloadsInProgressRequest 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 DownloadsInProgressRequestMultiError, or nil if none found.

type DownloadsInProgressRequestMultiError

type DownloadsInProgressRequestMultiError []error

DownloadsInProgressRequestMultiError is an error wrapping multiple validation errors returned by DownloadsInProgressRequest.ValidateAll() if the designated constraints aren't met.

func (DownloadsInProgressRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DownloadsInProgressRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DownloadsInProgressRequestValidationError

type DownloadsInProgressRequestValidationError struct {
	// contains filtered or unexported fields
}

DownloadsInProgressRequestValidationError is the validation error returned by DownloadsInProgressRequest.Validate if the designated constraints aren't met.

func (DownloadsInProgressRequestValidationError) Cause

Cause function returns cause value.

func (DownloadsInProgressRequestValidationError) Error

Error satisfies the builtin error interface

func (DownloadsInProgressRequestValidationError) ErrorName

ErrorName returns error name.

func (DownloadsInProgressRequestValidationError) Field

Field function returns field value.

func (DownloadsInProgressRequestValidationError) Key

Key function returns key value.

func (DownloadsInProgressRequestValidationError) Reason

Reason function returns reason value.

type DownloadsInProgressResponse

type DownloadsInProgressResponse struct {
	Videos []*Video `protobuf:"bytes,1,rep,name=videos,proto3" json:"videos,omitempty"`
	// contains filtered or unexported fields
}

func (*DownloadsInProgressResponse) Descriptor deprecated

func (*DownloadsInProgressResponse) Descriptor() ([]byte, []int)

Deprecated: Use DownloadsInProgressResponse.ProtoReflect.Descriptor instead.

func (*DownloadsInProgressResponse) GetVideos

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

func (*DownloadsInProgressResponse) ProtoMessage

func (*DownloadsInProgressResponse) ProtoMessage()

func (*DownloadsInProgressResponse) ProtoReflect

func (*DownloadsInProgressResponse) Reset

func (x *DownloadsInProgressResponse) Reset()

func (*DownloadsInProgressResponse) String

func (x *DownloadsInProgressResponse) String() string

func (*DownloadsInProgressResponse) Validate

func (m *DownloadsInProgressResponse) Validate() error

Validate checks the field values on DownloadsInProgressResponse 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 (*DownloadsInProgressResponse) ValidateAll

func (m *DownloadsInProgressResponse) ValidateAll() error

ValidateAll checks the field values on DownloadsInProgressResponse 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 DownloadsInProgressResponseMultiError, or nil if none found.

type DownloadsInProgressResponseMultiError

type DownloadsInProgressResponseMultiError []error

DownloadsInProgressResponseMultiError is an error wrapping multiple validation errors returned by DownloadsInProgressResponse.ValidateAll() if the designated constraints aren't met.

func (DownloadsInProgressResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (DownloadsInProgressResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type DownloadsInProgressResponseValidationError

type DownloadsInProgressResponseValidationError struct {
	// contains filtered or unexported fields
}

DownloadsInProgressResponseValidationError is the validation error returned by DownloadsInProgressResponse.Validate if the designated constraints aren't met.

func (DownloadsInProgressResponseValidationError) Cause

Cause function returns cause value.

func (DownloadsInProgressResponseValidationError) Error

Error satisfies the builtin error interface

func (DownloadsInProgressResponseValidationError) ErrorName

ErrorName returns error name.

func (DownloadsInProgressResponseValidationError) Field

Field function returns field value.

func (DownloadsInProgressResponseValidationError) Key

Key function returns key value.

func (DownloadsInProgressResponseValidationError) Reason

Reason function returns reason value.

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

func (*Empty) Validate

func (m *Empty) Validate() error

Validate checks the field values on Empty 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 (*Empty) ValidateAll

func (m *Empty) ValidateAll() error

ValidateAll checks the field values on Empty 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 EmptyMultiError, or nil if none found.

type EmptyMultiError

type EmptyMultiError []error

EmptyMultiError is an error wrapping multiple validation errors returned by Empty.ValidateAll() if the designated constraints aren't met.

func (EmptyMultiError) AllErrors

func (m EmptyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EmptyMultiError) Error

func (m EmptyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EmptyValidationError

type EmptyValidationError struct {
	// contains filtered or unexported fields
}

EmptyValidationError is the validation error returned by Empty.Validate if the designated constraints aren't met.

func (EmptyValidationError) Cause

func (e EmptyValidationError) Cause() error

Cause function returns cause value.

func (EmptyValidationError) Error

func (e EmptyValidationError) Error() string

Error satisfies the builtin error interface

func (EmptyValidationError) ErrorName

func (e EmptyValidationError) ErrorName() string

ErrorName returns error name.

func (EmptyValidationError) Field

func (e EmptyValidationError) Field() string

Field function returns field value.

func (EmptyValidationError) Key

func (e EmptyValidationError) Key() bool

Key function returns key value.

func (EmptyValidationError) Reason

func (e EmptyValidationError) Reason() string

Reason function returns reason value.

type InferenceEntry

type InferenceEntry struct {
	Tag      string `protobuf:"bytes,1,opt,name=Tag,proto3" json:"Tag,omitempty"`
	Category string `protobuf:"bytes,2,opt,name=Category,proto3" json:"Category,omitempty"`
	// contains filtered or unexported fields
}

func (*InferenceEntry) Descriptor deprecated

func (*InferenceEntry) Descriptor() ([]byte, []int)

Deprecated: Use InferenceEntry.ProtoReflect.Descriptor instead.

func (*InferenceEntry) GetCategory

func (x *InferenceEntry) GetCategory() string

func (*InferenceEntry) GetTag

func (x *InferenceEntry) GetTag() string

func (*InferenceEntry) ProtoMessage

func (*InferenceEntry) ProtoMessage()

func (*InferenceEntry) ProtoReflect

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

func (*InferenceEntry) Reset

func (x *InferenceEntry) Reset()

func (*InferenceEntry) String

func (x *InferenceEntry) String() string

func (*InferenceEntry) Validate

func (m *InferenceEntry) Validate() error

Validate checks the field values on InferenceEntry 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 (*InferenceEntry) ValidateAll

func (m *InferenceEntry) ValidateAll() error

ValidateAll checks the field values on InferenceEntry 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 InferenceEntryMultiError, or nil if none found.

type InferenceEntryMultiError

type InferenceEntryMultiError []error

InferenceEntryMultiError is an error wrapping multiple validation errors returned by InferenceEntry.ValidateAll() if the designated constraints aren't met.

func (InferenceEntryMultiError) AllErrors

func (m InferenceEntryMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InferenceEntryMultiError) Error

func (m InferenceEntryMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InferenceEntryValidationError

type InferenceEntryValidationError struct {
	// contains filtered or unexported fields
}

InferenceEntryValidationError is the validation error returned by InferenceEntry.Validate if the designated constraints aren't met.

func (InferenceEntryValidationError) Cause

Cause function returns cause value.

func (InferenceEntryValidationError) Error

Error satisfies the builtin error interface

func (InferenceEntryValidationError) ErrorName

func (e InferenceEntryValidationError) ErrorName() string

ErrorName returns error name.

func (InferenceEntryValidationError) Field

Field function returns field value.

func (InferenceEntryValidationError) Key

Key function returns key value.

func (InferenceEntryValidationError) Reason

Reason function returns reason value.

type InferenceList

type InferenceList struct {
	Entries []*InferenceEntry `protobuf:"bytes,1,rep,name=Entries,proto3" json:"Entries,omitempty"`
	// contains filtered or unexported fields
}

func (*InferenceList) Descriptor deprecated

func (*InferenceList) Descriptor() ([]byte, []int)

Deprecated: Use InferenceList.ProtoReflect.Descriptor instead.

func (*InferenceList) GetEntries

func (x *InferenceList) GetEntries() []*InferenceEntry

func (*InferenceList) ProtoMessage

func (*InferenceList) ProtoMessage()

func (*InferenceList) ProtoReflect

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

func (*InferenceList) Reset

func (x *InferenceList) Reset()

func (*InferenceList) String

func (x *InferenceList) String() string

func (*InferenceList) Validate

func (m *InferenceList) Validate() error

Validate checks the field values on InferenceList 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 (*InferenceList) ValidateAll

func (m *InferenceList) ValidateAll() error

ValidateAll checks the field values on InferenceList 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 InferenceListMultiError, or nil if none found.

type InferenceListMultiError

type InferenceListMultiError []error

InferenceListMultiError is an error wrapping multiple validation errors returned by InferenceList.ValidateAll() if the designated constraints aren't met.

func (InferenceListMultiError) AllErrors

func (m InferenceListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (InferenceListMultiError) Error

func (m InferenceListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type InferenceListValidationError

type InferenceListValidationError struct {
	// contains filtered or unexported fields
}

InferenceListValidationError is the validation error returned by InferenceList.Validate if the designated constraints aren't met.

func (InferenceListValidationError) Cause

Cause function returns cause value.

func (InferenceListValidationError) Error

Error satisfies the builtin error interface

func (InferenceListValidationError) ErrorName

func (e InferenceListValidationError) ErrorName() string

ErrorName returns error name.

func (InferenceListValidationError) Field

Field function returns field value.

func (InferenceListValidationError) Key

Key function returns key value.

func (InferenceListValidationError) Reason

Reason function returns reason value.

type ListArchivalEntriesRequest

type ListArchivalEntriesRequest struct {
	UserID int64 `protobuf:"varint,1,opt,name=UserID,proto3" json:"UserID,omitempty"` // Need to standardize type on userID
	// contains filtered or unexported fields
}

func (*ListArchivalEntriesRequest) Descriptor deprecated

func (*ListArchivalEntriesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListArchivalEntriesRequest.ProtoReflect.Descriptor instead.

func (*ListArchivalEntriesRequest) GetUserID

func (x *ListArchivalEntriesRequest) GetUserID() int64

func (*ListArchivalEntriesRequest) ProtoMessage

func (*ListArchivalEntriesRequest) ProtoMessage()

func (*ListArchivalEntriesRequest) ProtoReflect

func (*ListArchivalEntriesRequest) Reset

func (x *ListArchivalEntriesRequest) Reset()

func (*ListArchivalEntriesRequest) String

func (x *ListArchivalEntriesRequest) String() string

func (*ListArchivalEntriesRequest) Validate

func (m *ListArchivalEntriesRequest) Validate() error

Validate checks the field values on ListArchivalEntriesRequest 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 (*ListArchivalEntriesRequest) ValidateAll

func (m *ListArchivalEntriesRequest) ValidateAll() error

ValidateAll checks the field values on ListArchivalEntriesRequest 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 ListArchivalEntriesRequestMultiError, or nil if none found.

type ListArchivalEntriesRequestMultiError

type ListArchivalEntriesRequestMultiError []error

ListArchivalEntriesRequestMultiError is an error wrapping multiple validation errors returned by ListArchivalEntriesRequest.ValidateAll() if the designated constraints aren't met.

func (ListArchivalEntriesRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListArchivalEntriesRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListArchivalEntriesRequestValidationError

type ListArchivalEntriesRequestValidationError struct {
	// contains filtered or unexported fields
}

ListArchivalEntriesRequestValidationError is the validation error returned by ListArchivalEntriesRequest.Validate if the designated constraints aren't met.

func (ListArchivalEntriesRequestValidationError) Cause

Cause function returns cause value.

func (ListArchivalEntriesRequestValidationError) Error

Error satisfies the builtin error interface

func (ListArchivalEntriesRequestValidationError) ErrorName

ErrorName returns error name.

func (ListArchivalEntriesRequestValidationError) Field

Field function returns field value.

func (ListArchivalEntriesRequestValidationError) Key

Key function returns key value.

func (ListArchivalEntriesRequestValidationError) Reason

Reason function returns reason value.

type ListArchivalEntriesResponse

type ListArchivalEntriesResponse struct {
	Entries []*ContentArchivalEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArchivalEntriesResponse) Descriptor deprecated

func (*ListArchivalEntriesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListArchivalEntriesResponse.ProtoReflect.Descriptor instead.

func (*ListArchivalEntriesResponse) GetEntries

func (*ListArchivalEntriesResponse) ProtoMessage

func (*ListArchivalEntriesResponse) ProtoMessage()

func (*ListArchivalEntriesResponse) ProtoReflect

func (*ListArchivalEntriesResponse) Reset

func (x *ListArchivalEntriesResponse) Reset()

func (*ListArchivalEntriesResponse) String

func (x *ListArchivalEntriesResponse) String() string

func (*ListArchivalEntriesResponse) Validate

func (m *ListArchivalEntriesResponse) Validate() error

Validate checks the field values on ListArchivalEntriesResponse 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 (*ListArchivalEntriesResponse) ValidateAll

func (m *ListArchivalEntriesResponse) ValidateAll() error

ValidateAll checks the field values on ListArchivalEntriesResponse 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 ListArchivalEntriesResponseMultiError, or nil if none found.

type ListArchivalEntriesResponseMultiError

type ListArchivalEntriesResponseMultiError []error

ListArchivalEntriesResponseMultiError is an error wrapping multiple validation errors returned by ListArchivalEntriesResponse.ValidateAll() if the designated constraints aren't met.

func (ListArchivalEntriesResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListArchivalEntriesResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListArchivalEntriesResponseValidationError

type ListArchivalEntriesResponseValidationError struct {
	// contains filtered or unexported fields
}

ListArchivalEntriesResponseValidationError is the validation error returned by ListArchivalEntriesResponse.Validate if the designated constraints aren't met.

func (ListArchivalEntriesResponseValidationError) Cause

Cause function returns cause value.

func (ListArchivalEntriesResponseValidationError) Error

Error satisfies the builtin error interface

func (ListArchivalEntriesResponseValidationError) ErrorName

ErrorName returns error name.

func (ListArchivalEntriesResponseValidationError) Field

Field function returns field value.

func (ListArchivalEntriesResponseValidationError) Key

Key function returns key value.

func (ListArchivalEntriesResponseValidationError) Reason

Reason function returns reason value.

type ListArchivalEventsRequest

type ListArchivalEventsRequest struct {
	DownloadID int64 `protobuf:"varint,1,opt,name=DownloadID,proto3" json:"DownloadID,omitempty"`
	ShowAll    bool  `protobuf:"varint,2,opt,name=ShowAll,proto3" json:"ShowAll,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArchivalEventsRequest) Descriptor deprecated

func (*ListArchivalEventsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListArchivalEventsRequest.ProtoReflect.Descriptor instead.

func (*ListArchivalEventsRequest) GetDownloadID

func (x *ListArchivalEventsRequest) GetDownloadID() int64

func (*ListArchivalEventsRequest) GetShowAll

func (x *ListArchivalEventsRequest) GetShowAll() bool

func (*ListArchivalEventsRequest) ProtoMessage

func (*ListArchivalEventsRequest) ProtoMessage()

func (*ListArchivalEventsRequest) ProtoReflect

func (*ListArchivalEventsRequest) Reset

func (x *ListArchivalEventsRequest) Reset()

func (*ListArchivalEventsRequest) String

func (x *ListArchivalEventsRequest) String() string

func (*ListArchivalEventsRequest) Validate

func (m *ListArchivalEventsRequest) Validate() error

Validate checks the field values on ListArchivalEventsRequest 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 (*ListArchivalEventsRequest) ValidateAll

func (m *ListArchivalEventsRequest) ValidateAll() error

ValidateAll checks the field values on ListArchivalEventsRequest 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 ListArchivalEventsRequestMultiError, or nil if none found.

type ListArchivalEventsRequestMultiError

type ListArchivalEventsRequestMultiError []error

ListArchivalEventsRequestMultiError is an error wrapping multiple validation errors returned by ListArchivalEventsRequest.ValidateAll() if the designated constraints aren't met.

func (ListArchivalEventsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListArchivalEventsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListArchivalEventsRequestValidationError

type ListArchivalEventsRequestValidationError struct {
	// contains filtered or unexported fields
}

ListArchivalEventsRequestValidationError is the validation error returned by ListArchivalEventsRequest.Validate if the designated constraints aren't met.

func (ListArchivalEventsRequestValidationError) Cause

Cause function returns cause value.

func (ListArchivalEventsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListArchivalEventsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListArchivalEventsRequestValidationError) Field

Field function returns field value.

func (ListArchivalEventsRequestValidationError) Key

Key function returns key value.

func (ListArchivalEventsRequestValidationError) Reason

Reason function returns reason value.

type ListArchivalEventsResponse

type ListArchivalEventsResponse struct {
	Events []*ArchivalEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArchivalEventsResponse) Descriptor deprecated

func (*ListArchivalEventsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListArchivalEventsResponse.ProtoReflect.Descriptor instead.

func (*ListArchivalEventsResponse) GetEvents

func (x *ListArchivalEventsResponse) GetEvents() []*ArchivalEvent

func (*ListArchivalEventsResponse) ProtoMessage

func (*ListArchivalEventsResponse) ProtoMessage()

func (*ListArchivalEventsResponse) ProtoReflect

func (*ListArchivalEventsResponse) Reset

func (x *ListArchivalEventsResponse) Reset()

func (*ListArchivalEventsResponse) String

func (x *ListArchivalEventsResponse) String() string

func (*ListArchivalEventsResponse) Validate

func (m *ListArchivalEventsResponse) Validate() error

Validate checks the field values on ListArchivalEventsResponse 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 (*ListArchivalEventsResponse) ValidateAll

func (m *ListArchivalEventsResponse) ValidateAll() error

ValidateAll checks the field values on ListArchivalEventsResponse 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 ListArchivalEventsResponseMultiError, or nil if none found.

type ListArchivalEventsResponseMultiError

type ListArchivalEventsResponseMultiError []error

ListArchivalEventsResponseMultiError is an error wrapping multiple validation errors returned by ListArchivalEventsResponse.ValidateAll() if the designated constraints aren't met.

func (ListArchivalEventsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ListArchivalEventsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ListArchivalEventsResponseValidationError

type ListArchivalEventsResponseValidationError struct {
	// contains filtered or unexported fields
}

ListArchivalEventsResponseValidationError is the validation error returned by ListArchivalEventsResponse.Validate if the designated constraints aren't met.

func (ListArchivalEventsResponseValidationError) Cause

Cause function returns cause value.

func (ListArchivalEventsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListArchivalEventsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListArchivalEventsResponseValidationError) Field

Field function returns field value.

func (ListArchivalEventsResponseValidationError) Key

Key function returns key value.

func (ListArchivalEventsResponseValidationError) Reason

Reason function returns reason value.

type RetryRequest

type RetryRequest struct {
	DownloadID uint64 `protobuf:"varint,1,opt,name=downloadID,proto3" json:"downloadID,omitempty"`
	UserID     uint64 `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*RetryRequest) Descriptor deprecated

func (*RetryRequest) Descriptor() ([]byte, []int)

Deprecated: Use RetryRequest.ProtoReflect.Descriptor instead.

func (*RetryRequest) GetDownloadID

func (x *RetryRequest) GetDownloadID() uint64

func (*RetryRequest) GetUserID

func (x *RetryRequest) GetUserID() uint64

func (*RetryRequest) ProtoMessage

func (*RetryRequest) ProtoMessage()

func (*RetryRequest) ProtoReflect

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

func (*RetryRequest) Reset

func (x *RetryRequest) Reset()

func (*RetryRequest) String

func (x *RetryRequest) String() string

func (*RetryRequest) Validate

func (m *RetryRequest) Validate() error

Validate checks the field values on RetryRequest 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 (*RetryRequest) ValidateAll

func (m *RetryRequest) ValidateAll() error

ValidateAll checks the field values on RetryRequest 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 RetryRequestMultiError, or nil if none found.

type RetryRequestMultiError

type RetryRequestMultiError []error

RetryRequestMultiError is an error wrapping multiple validation errors returned by RetryRequest.ValidateAll() if the designated constraints aren't met.

func (RetryRequestMultiError) AllErrors

func (m RetryRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (RetryRequestMultiError) Error

func (m RetryRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type RetryRequestValidationError

type RetryRequestValidationError struct {
	// contains filtered or unexported fields
}

RetryRequestValidationError is the validation error returned by RetryRequest.Validate if the designated constraints aren't met.

func (RetryRequestValidationError) Cause

Cause function returns cause value.

func (RetryRequestValidationError) Error

Error satisfies the builtin error interface

func (RetryRequestValidationError) ErrorName

func (e RetryRequestValidationError) ErrorName() string

ErrorName returns error name.

func (RetryRequestValidationError) Field

Field function returns field value.

func (RetryRequestValidationError) Key

Key function returns key value.

func (RetryRequestValidationError) Reason

Reason function returns reason value.

type SchedulerClient

type SchedulerClient interface {
	DlURL(ctx context.Context, in *URLRequest, opts ...grpc.CallOption) (*Empty, error)
	ListArchivalEntries(ctx context.Context, in *ListArchivalEntriesRequest, opts ...grpc.CallOption) (*ListArchivalEntriesResponse, error)
	ListArchivalEvents(ctx context.Context, in *ListArchivalEventsRequest, opts ...grpc.CallOption) (*ListArchivalEventsResponse, error)
	DeleteArchivalRequest(ctx context.Context, in *DeletionRequest, opts ...grpc.CallOption) (*Empty, error)
	RetryArchivalRequestDownloadss(ctx context.Context, in *RetryRequest, opts ...grpc.CallOption) (*Empty, error)
	GetDownloadsInProgress(ctx context.Context, in *DownloadsInProgressRequest, opts ...grpc.CallOption) (*DownloadsInProgressResponse, error)
	GetUnapprovedVideoList(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*UnapprovedList, error)
	ApproveVideo(ctx context.Context, in *ApproveVideoReq, opts ...grpc.CallOption) (*Empty, error)
	UnapproveVideo(ctx context.Context, in *ApproveVideoReq, opts ...grpc.CallOption) (*Empty, error)
	GetInferenceCategories(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*InferenceList, error)
	AddInferenceCategory(ctx context.Context, in *InferenceEntry, opts ...grpc.CallOption) (*Empty, error)
}

SchedulerClient is the client API for Scheduler service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewSchedulerClient

func NewSchedulerClient(cc grpc.ClientConnInterface) SchedulerClient

type SchedulerServer

type SchedulerServer interface {
	DlURL(context.Context, *URLRequest) (*Empty, error)
	ListArchivalEntries(context.Context, *ListArchivalEntriesRequest) (*ListArchivalEntriesResponse, error)
	ListArchivalEvents(context.Context, *ListArchivalEventsRequest) (*ListArchivalEventsResponse, error)
	DeleteArchivalRequest(context.Context, *DeletionRequest) (*Empty, error)
	RetryArchivalRequestDownloadss(context.Context, *RetryRequest) (*Empty, error)
	GetDownloadsInProgress(context.Context, *DownloadsInProgressRequest) (*DownloadsInProgressResponse, error)
	GetUnapprovedVideoList(context.Context, *Empty) (*UnapprovedList, error)
	ApproveVideo(context.Context, *ApproveVideoReq) (*Empty, error)
	UnapproveVideo(context.Context, *ApproveVideoReq) (*Empty, error)
	GetInferenceCategories(context.Context, *Empty) (*InferenceList, error)
	AddInferenceCategory(context.Context, *InferenceEntry) (*Empty, error)
	// contains filtered or unexported methods
}

SchedulerServer is the server API for Scheduler service. All implementations must embed UnimplementedSchedulerServer for forward compatibility

type URLRequest

type URLRequest struct {
	Url    string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	UserID int64  `protobuf:"varint,2,opt,name=userID,proto3" json:"userID,omitempty"`
	// contains filtered or unexported fields
}

func (*URLRequest) Descriptor deprecated

func (*URLRequest) Descriptor() ([]byte, []int)

Deprecated: Use URLRequest.ProtoReflect.Descriptor instead.

func (*URLRequest) GetUrl

func (x *URLRequest) GetUrl() string

func (*URLRequest) GetUserID

func (x *URLRequest) GetUserID() int64

func (*URLRequest) ProtoMessage

func (*URLRequest) ProtoMessage()

func (*URLRequest) ProtoReflect

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

func (*URLRequest) Reset

func (x *URLRequest) Reset()

func (*URLRequest) String

func (x *URLRequest) String() string

func (*URLRequest) Validate

func (m *URLRequest) Validate() error

Validate checks the field values on URLRequest 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 (*URLRequest) ValidateAll

func (m *URLRequest) ValidateAll() error

ValidateAll checks the field values on URLRequest 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 URLRequestMultiError, or nil if none found.

type URLRequestMultiError

type URLRequestMultiError []error

URLRequestMultiError is an error wrapping multiple validation errors returned by URLRequest.ValidateAll() if the designated constraints aren't met.

func (URLRequestMultiError) AllErrors

func (m URLRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (URLRequestMultiError) Error

func (m URLRequestMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type URLRequestValidationError

type URLRequestValidationError struct {
	// contains filtered or unexported fields
}

URLRequestValidationError is the validation error returned by URLRequest.Validate if the designated constraints aren't met.

func (URLRequestValidationError) Cause

func (e URLRequestValidationError) Cause() error

Cause function returns cause value.

func (URLRequestValidationError) Error

Error satisfies the builtin error interface

func (URLRequestValidationError) ErrorName

func (e URLRequestValidationError) ErrorName() string

ErrorName returns error name.

func (URLRequestValidationError) Field

Field function returns field value.

func (URLRequestValidationError) Key

Key function returns key value.

func (URLRequestValidationError) Reason

func (e URLRequestValidationError) Reason() string

Reason function returns reason value.

type UnapprovedList

type UnapprovedList struct {
	UnapprovedVideos []*UnapprovedVideo `protobuf:"bytes,1,rep,name=UnapprovedVideos,proto3" json:"UnapprovedVideos,omitempty"`
	// contains filtered or unexported fields
}

func (*UnapprovedList) Descriptor deprecated

func (*UnapprovedList) Descriptor() ([]byte, []int)

Deprecated: Use UnapprovedList.ProtoReflect.Descriptor instead.

func (*UnapprovedList) GetUnapprovedVideos

func (x *UnapprovedList) GetUnapprovedVideos() []*UnapprovedVideo

func (*UnapprovedList) ProtoMessage

func (*UnapprovedList) ProtoMessage()

func (*UnapprovedList) ProtoReflect

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

func (*UnapprovedList) Reset

func (x *UnapprovedList) Reset()

func (*UnapprovedList) String

func (x *UnapprovedList) String() string

func (*UnapprovedList) Validate

func (m *UnapprovedList) Validate() error

Validate checks the field values on UnapprovedList 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 (*UnapprovedList) ValidateAll

func (m *UnapprovedList) ValidateAll() error

ValidateAll checks the field values on UnapprovedList 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 UnapprovedListMultiError, or nil if none found.

type UnapprovedListMultiError

type UnapprovedListMultiError []error

UnapprovedListMultiError is an error wrapping multiple validation errors returned by UnapprovedList.ValidateAll() if the designated constraints aren't met.

func (UnapprovedListMultiError) AllErrors

func (m UnapprovedListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnapprovedListMultiError) Error

func (m UnapprovedListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type UnapprovedListValidationError

type UnapprovedListValidationError struct {
	// contains filtered or unexported fields
}

UnapprovedListValidationError is the validation error returned by UnapprovedList.Validate if the designated constraints aren't met.

func (UnapprovedListValidationError) Cause

Cause function returns cause value.

func (UnapprovedListValidationError) Error

Error satisfies the builtin error interface

func (UnapprovedListValidationError) ErrorName

func (e UnapprovedListValidationError) ErrorName() string

ErrorName returns error name.

func (UnapprovedListValidationError) Field

Field function returns field value.

func (UnapprovedListValidationError) Key

Key function returns key value.

func (UnapprovedListValidationError) Reason

Reason function returns reason value.

type UnapprovedVideo

type UnapprovedVideo struct {
	VideoID  string `protobuf:"bytes,1,opt,name=VideoID,proto3" json:"VideoID,omitempty"`
	Url      string `protobuf:"bytes,2,opt,name=url,proto3" json:"url,omitempty"`
	Category string `protobuf:"bytes,3,opt,name=category,proto3" json:"category,omitempty"`
	// contains filtered or unexported fields
}

func (*UnapprovedVideo) Descriptor deprecated

func (*UnapprovedVideo) Descriptor() ([]byte, []int)

Deprecated: Use UnapprovedVideo.ProtoReflect.Descriptor instead.

func (*UnapprovedVideo) GetCategory

func (x *UnapprovedVideo) GetCategory() string

func (*UnapprovedVideo) GetUrl

func (x *UnapprovedVideo) GetUrl() string

func (*UnapprovedVideo) GetVideoID

func (x *UnapprovedVideo) GetVideoID() string

func (*UnapprovedVideo) ProtoMessage

func (*UnapprovedVideo) ProtoMessage()

func (*UnapprovedVideo) ProtoReflect

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

func (*UnapprovedVideo) Reset

func (x *UnapprovedVideo) Reset()

func (*UnapprovedVideo) String

func (x *UnapprovedVideo) String() string

func (*UnapprovedVideo) Validate

func (m *UnapprovedVideo) Validate() error

Validate checks the field values on UnapprovedVideo 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 (*UnapprovedVideo) ValidateAll

func (m *UnapprovedVideo) ValidateAll() error

ValidateAll checks the field values on UnapprovedVideo 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 UnapprovedVideoMultiError, or nil if none found.

type UnapprovedVideoMultiError

type UnapprovedVideoMultiError []error

UnapprovedVideoMultiError is an error wrapping multiple validation errors returned by UnapprovedVideo.ValidateAll() if the designated constraints aren't met.

func (UnapprovedVideoMultiError) AllErrors

func (m UnapprovedVideoMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (UnapprovedVideoMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type UnapprovedVideoValidationError

type UnapprovedVideoValidationError struct {
	// contains filtered or unexported fields
}

UnapprovedVideoValidationError is the validation error returned by UnapprovedVideo.Validate if the designated constraints aren't met.

func (UnapprovedVideoValidationError) Cause

Cause function returns cause value.

func (UnapprovedVideoValidationError) Error

Error satisfies the builtin error interface

func (UnapprovedVideoValidationError) ErrorName

func (e UnapprovedVideoValidationError) ErrorName() string

ErrorName returns error name.

func (UnapprovedVideoValidationError) Field

Field function returns field value.

func (UnapprovedVideoValidationError) Key

Key function returns key value.

func (UnapprovedVideoValidationError) Reason

Reason function returns reason value.

type UnimplementedSchedulerServer

type UnimplementedSchedulerServer struct {
}

UnimplementedSchedulerServer must be embedded to have forward compatible implementations.

func (UnimplementedSchedulerServer) AddInferenceCategory

func (UnimplementedSchedulerServer) ApproveVideo

func (UnimplementedSchedulerServer) DeleteArchivalRequest

func (UnimplementedSchedulerServer) DlURL

func (UnimplementedSchedulerServer) GetInferenceCategories

func (UnimplementedSchedulerServer) GetInferenceCategories(context.Context, *Empty) (*InferenceList, error)

func (UnimplementedSchedulerServer) GetUnapprovedVideoList

func (UnimplementedSchedulerServer) GetUnapprovedVideoList(context.Context, *Empty) (*UnapprovedList, error)

func (UnimplementedSchedulerServer) RetryArchivalRequestDownloadss

func (UnimplementedSchedulerServer) RetryArchivalRequestDownloadss(context.Context, *RetryRequest) (*Empty, error)

func (UnimplementedSchedulerServer) UnapproveVideo

type UnsafeSchedulerServer

type UnsafeSchedulerServer interface {
	// contains filtered or unexported methods
}

UnsafeSchedulerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to SchedulerServer will result in compilation errors.

type Video

type Video struct {
	VideoID  string              `protobuf:"bytes,1,opt,name=VideoID,proto3" json:"VideoID,omitempty"`
	Website  string              `protobuf:"bytes,2,opt,name=website,proto3" json:"website,omitempty"`
	DlStatus VideoDownloadStatus `protobuf:"varint,3,opt,name=dlStatus,proto3,enum=proto.VideoDownloadStatus" json:"dlStatus,omitempty"`
	// contains filtered or unexported fields
}

func (*Video) Descriptor deprecated

func (*Video) Descriptor() ([]byte, []int)

Deprecated: Use Video.ProtoReflect.Descriptor instead.

func (*Video) GetDlStatus

func (x *Video) GetDlStatus() VideoDownloadStatus

func (*Video) GetVideoID

func (x *Video) GetVideoID() string

func (*Video) GetWebsite

func (x *Video) GetWebsite() string

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 VideoDownloadStatus

type VideoDownloadStatus int32
const (
	Video_Queued      VideoDownloadStatus = 0
	Video_Downloading VideoDownloadStatus = 1
)

func (VideoDownloadStatus) Descriptor

func (VideoDownloadStatus) Enum

func (VideoDownloadStatus) EnumDescriptor deprecated

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

Deprecated: Use VideoDownloadStatus.Descriptor instead.

func (VideoDownloadStatus) Number

func (VideoDownloadStatus) String

func (x VideoDownloadStatus) String() string

func (VideoDownloadStatus) Type

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

Jump to

Keyboard shortcuts

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