Files
music-agregator/gen/music_agregator/indexer/v1/indexer.pb.go
T
2026-05-20 09:46:43 +02:00

1180 lines
37 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.36.11
// protoc (unknown)
// source: music_agregator/indexer/v1/indexer.proto
package indexer
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type SearchRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
Tracker string `protobuf:"bytes,3,opt,name=tracker,proto3" json:"tracker,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchRequest) Reset() {
*x = SearchRequest{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchRequest) ProtoMessage() {}
func (x *SearchRequest) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchRequest.ProtoReflect.Descriptor instead.
func (*SearchRequest) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{0}
}
func (x *SearchRequest) GetQuery() string {
if x != nil {
return x.Query
}
return ""
}
func (x *SearchRequest) GetLimit() int32 {
if x != nil {
return x.Limit
}
return 0
}
func (x *SearchRequest) GetTracker() string {
if x != nil {
return x.Tracker
}
return ""
}
type SearchResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Result []*SearchItem `protobuf:"bytes,1,rep,name=result,proto3" json:"result,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchResponse) Reset() {
*x = SearchResponse{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchResponse) ProtoMessage() {}
func (x *SearchResponse) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchResponse.ProtoReflect.Descriptor instead.
func (*SearchResponse) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{1}
}
func (x *SearchResponse) GetResult() []*SearchItem {
if x != nil {
return x.Result
}
return nil
}
type SearchItem struct {
state protoimpl.MessageState `protogen:"open.v1"`
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
DownloadLink string `protobuf:"bytes,2,opt,name=download_link,json=downloadLink,proto3" json:"download_link,omitempty"`
TorrentPageUrl string `protobuf:"bytes,3,opt,name=torrent_page_url,json=torrentPageUrl,proto3" json:"torrent_page_url,omitempty"`
PubDate string `protobuf:"bytes,4,opt,name=pub_date,json=pubDate,proto3" json:"pub_date,omitempty"`
Size int64 `protobuf:"varint,5,opt,name=size,proto3" json:"size,omitempty"`
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
Categories []string `protobuf:"bytes,7,rep,name=categories,proto3" json:"categories,omitempty"`
Enclosure *Enclosure `protobuf:"bytes,8,opt,name=enclosure,proto3" json:"enclosure,omitempty"`
TorznabAttrs []*TorznabAttr `protobuf:"bytes,9,rep,name=torznab_attrs,json=torznabAttrs,proto3" json:"torznab_attrs,omitempty"`
Release *Release `protobuf:"bytes,10,opt,name=release,proto3" json:"release,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchItem) Reset() {
*x = SearchItem{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchItem) ProtoMessage() {}
func (x *SearchItem) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchItem.ProtoReflect.Descriptor instead.
func (*SearchItem) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{2}
}
func (x *SearchItem) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
func (x *SearchItem) GetDownloadLink() string {
if x != nil {
return x.DownloadLink
}
return ""
}
func (x *SearchItem) GetTorrentPageUrl() string {
if x != nil {
return x.TorrentPageUrl
}
return ""
}
func (x *SearchItem) GetPubDate() string {
if x != nil {
return x.PubDate
}
return ""
}
func (x *SearchItem) GetSize() int64 {
if x != nil {
return x.Size
}
return 0
}
func (x *SearchItem) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *SearchItem) GetCategories() []string {
if x != nil {
return x.Categories
}
return nil
}
func (x *SearchItem) GetEnclosure() *Enclosure {
if x != nil {
return x.Enclosure
}
return nil
}
func (x *SearchItem) GetTorznabAttrs() []*TorznabAttr {
if x != nil {
return x.TorznabAttrs
}
return nil
}
func (x *SearchItem) GetRelease() *Release {
if x != nil {
return x.Release
}
return nil
}
type Release struct {
state protoimpl.MessageState `protogen:"open.v1"`
RawTitle string `protobuf:"bytes,1,opt,name=raw_title,json=rawTitle,proto3" json:"raw_title,omitempty"`
Artist string `protobuf:"bytes,2,opt,name=artist,proto3" json:"artist,omitempty"`
Album string `protobuf:"bytes,3,opt,name=album,proto3" json:"album,omitempty"`
Year int32 `protobuf:"varint,4,opt,name=year,proto3" json:"year,omitempty"`
YearEnd int32 `protobuf:"varint,5,opt,name=year_end,json=yearEnd,proto3" json:"year_end,omitempty"`
Type string `protobuf:"bytes,6,opt,name=type,proto3" json:"type,omitempty"`
Genres []string `protobuf:"bytes,7,rep,name=genres,proto3" json:"genres,omitempty"`
Format string `protobuf:"bytes,8,opt,name=format,proto3" json:"format,omitempty"`
Source string `protobuf:"bytes,9,opt,name=source,proto3" json:"source,omitempty"`
Bitrate string `protobuf:"bytes,10,opt,name=bitrate,proto3" json:"bitrate,omitempty"`
BitDepth int32 `protobuf:"varint,11,opt,name=bit_depth,json=bitDepth,proto3" json:"bit_depth,omitempty"`
SampleRate int32 `protobuf:"varint,12,opt,name=sample_rate,json=sampleRate,proto3" json:"sample_rate,omitempty"`
RipType string `protobuf:"bytes,13,opt,name=rip_type,json=ripType,proto3" json:"rip_type,omitempty"`
ReleaseCount int32 `protobuf:"varint,14,opt,name=release_count,json=releaseCount,proto3" json:"release_count,omitempty"`
Tags []string `protobuf:"bytes,15,rep,name=tags,proto3" json:"tags,omitempty"`
Label string `protobuf:"bytes,16,opt,name=label,proto3" json:"label,omitempty"`
CatalogNum string `protobuf:"bytes,17,opt,name=catalog_num,json=catalogNum,proto3" json:"catalog_num,omitempty"`
ParsedSuccessfully bool `protobuf:"varint,18,opt,name=parsed_successfully,json=parsedSuccessfully,proto3" json:"parsed_successfully,omitempty"`
ParseErrors []string `protobuf:"bytes,19,rep,name=parse_errors,json=parseErrors,proto3" json:"parse_errors,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Release) Reset() {
*x = Release{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Release) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Release) ProtoMessage() {}
func (x *Release) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Release.ProtoReflect.Descriptor instead.
func (*Release) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{3}
}
func (x *Release) GetRawTitle() string {
if x != nil {
return x.RawTitle
}
return ""
}
func (x *Release) GetArtist() string {
if x != nil {
return x.Artist
}
return ""
}
func (x *Release) GetAlbum() string {
if x != nil {
return x.Album
}
return ""
}
func (x *Release) GetYear() int32 {
if x != nil {
return x.Year
}
return 0
}
func (x *Release) GetYearEnd() int32 {
if x != nil {
return x.YearEnd
}
return 0
}
func (x *Release) GetType() string {
if x != nil {
return x.Type
}
return ""
}
func (x *Release) GetGenres() []string {
if x != nil {
return x.Genres
}
return nil
}
func (x *Release) GetFormat() string {
if x != nil {
return x.Format
}
return ""
}
func (x *Release) GetSource() string {
if x != nil {
return x.Source
}
return ""
}
func (x *Release) GetBitrate() string {
if x != nil {
return x.Bitrate
}
return ""
}
func (x *Release) GetBitDepth() int32 {
if x != nil {
return x.BitDepth
}
return 0
}
func (x *Release) GetSampleRate() int32 {
if x != nil {
return x.SampleRate
}
return 0
}
func (x *Release) GetRipType() string {
if x != nil {
return x.RipType
}
return ""
}
func (x *Release) GetReleaseCount() int32 {
if x != nil {
return x.ReleaseCount
}
return 0
}
func (x *Release) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
func (x *Release) GetLabel() string {
if x != nil {
return x.Label
}
return ""
}
func (x *Release) GetCatalogNum() string {
if x != nil {
return x.CatalogNum
}
return ""
}
func (x *Release) GetParsedSuccessfully() bool {
if x != nil {
return x.ParsedSuccessfully
}
return false
}
func (x *Release) GetParseErrors() []string {
if x != nil {
return x.ParseErrors
}
return nil
}
type Enclosure struct {
state protoimpl.MessageState `protogen:"open.v1"`
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
Length int64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"`
Type string `protobuf:"bytes,3,opt,name=type,proto3" json:"type,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Enclosure) Reset() {
*x = Enclosure{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Enclosure) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Enclosure) ProtoMessage() {}
func (x *Enclosure) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Enclosure.ProtoReflect.Descriptor instead.
func (*Enclosure) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{4}
}
func (x *Enclosure) GetUrl() string {
if x != nil {
return x.Url
}
return ""
}
func (x *Enclosure) GetLength() int64 {
if x != nil {
return x.Length
}
return 0
}
func (x *Enclosure) GetType() string {
if x != nil {
return x.Type
}
return ""
}
type TorznabAttr struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *TorznabAttr) Reset() {
*x = TorznabAttr{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *TorznabAttr) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TorznabAttr) ProtoMessage() {}
func (x *TorznabAttr) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TorznabAttr.ProtoReflect.Descriptor instead.
func (*TorznabAttr) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{5}
}
func (x *TorznabAttr) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TorznabAttr) GetValue() string {
if x != nil {
return x.Value
}
return ""
}
type CapabilitiesRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
Indexer string `protobuf:"bytes,1,opt,name=indexer,proto3" json:"indexer,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CapabilitiesRequest) Reset() {
*x = CapabilitiesRequest{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CapabilitiesRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CapabilitiesRequest) ProtoMessage() {}
func (x *CapabilitiesRequest) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CapabilitiesRequest.ProtoReflect.Descriptor instead.
func (*CapabilitiesRequest) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{6}
}
func (x *CapabilitiesRequest) GetIndexer() string {
if x != nil {
return x.Indexer
}
return ""
}
type CapabilitiesResponse struct {
state protoimpl.MessageState `protogen:"open.v1"`
Server *Server `protobuf:"bytes,1,opt,name=server,proto3" json:"server,omitempty"`
Limits *Limits `protobuf:"bytes,2,opt,name=limits,proto3" json:"limits,omitempty"`
Searching *Searching `protobuf:"bytes,3,opt,name=searching,proto3" json:"searching,omitempty"`
Categories []*Category `protobuf:"bytes,4,rep,name=categories,proto3" json:"categories,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *CapabilitiesResponse) Reset() {
*x = CapabilitiesResponse{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *CapabilitiesResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CapabilitiesResponse) ProtoMessage() {}
func (x *CapabilitiesResponse) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CapabilitiesResponse.ProtoReflect.Descriptor instead.
func (*CapabilitiesResponse) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{7}
}
func (x *CapabilitiesResponse) GetServer() *Server {
if x != nil {
return x.Server
}
return nil
}
func (x *CapabilitiesResponse) GetLimits() *Limits {
if x != nil {
return x.Limits
}
return nil
}
func (x *CapabilitiesResponse) GetSearching() *Searching {
if x != nil {
return x.Searching
}
return nil
}
func (x *CapabilitiesResponse) GetCategories() []*Category {
if x != nil {
return x.Categories
}
return nil
}
type Server struct {
state protoimpl.MessageState `protogen:"open.v1"`
Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Server) Reset() {
*x = Server{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Server) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Server) ProtoMessage() {}
func (x *Server) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Server.ProtoReflect.Descriptor instead.
func (*Server) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{8}
}
func (x *Server) GetTitle() string {
if x != nil {
return x.Title
}
return ""
}
type Limits struct {
state protoimpl.MessageState `protogen:"open.v1"`
Default int32 `protobuf:"varint,1,opt,name=default,proto3" json:"default,omitempty"`
Max int32 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Limits) Reset() {
*x = Limits{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Limits) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Limits) ProtoMessage() {}
func (x *Limits) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Limits.ProtoReflect.Descriptor instead.
func (*Limits) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{9}
}
func (x *Limits) GetDefault() int32 {
if x != nil {
return x.Default
}
return 0
}
func (x *Limits) GetMax() int32 {
if x != nil {
return x.Max
}
return 0
}
type Searching struct {
state protoimpl.MessageState `protogen:"open.v1"`
Search *SearchCapability `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"`
TvSearch *SearchCapability `protobuf:"bytes,2,opt,name=tv_search,json=tvSearch,proto3" json:"tv_search,omitempty"`
MovieSearch *SearchCapability `protobuf:"bytes,3,opt,name=movie_search,json=movieSearch,proto3" json:"movie_search,omitempty"`
MusicSearch *SearchCapability `protobuf:"bytes,4,opt,name=music_search,json=musicSearch,proto3" json:"music_search,omitempty"`
AudioSearch *SearchCapability `protobuf:"bytes,5,opt,name=audio_search,json=audioSearch,proto3" json:"audio_search,omitempty"`
BookSearch *SearchCapability `protobuf:"bytes,6,opt,name=book_search,json=bookSearch,proto3" json:"book_search,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Searching) Reset() {
*x = Searching{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Searching) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Searching) ProtoMessage() {}
func (x *Searching) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Searching.ProtoReflect.Descriptor instead.
func (*Searching) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{10}
}
func (x *Searching) GetSearch() *SearchCapability {
if x != nil {
return x.Search
}
return nil
}
func (x *Searching) GetTvSearch() *SearchCapability {
if x != nil {
return x.TvSearch
}
return nil
}
func (x *Searching) GetMovieSearch() *SearchCapability {
if x != nil {
return x.MovieSearch
}
return nil
}
func (x *Searching) GetMusicSearch() *SearchCapability {
if x != nil {
return x.MusicSearch
}
return nil
}
func (x *Searching) GetAudioSearch() *SearchCapability {
if x != nil {
return x.AudioSearch
}
return nil
}
func (x *Searching) GetBookSearch() *SearchCapability {
if x != nil {
return x.BookSearch
}
return nil
}
type SearchCapability struct {
state protoimpl.MessageState `protogen:"open.v1"`
Available bool `protobuf:"varint,1,opt,name=available,proto3" json:"available,omitempty"`
SupportedParams []string `protobuf:"bytes,2,rep,name=supported_params,json=supportedParams,proto3" json:"supported_params,omitempty"`
SearchEngine string `protobuf:"bytes,3,opt,name=search_engine,json=searchEngine,proto3" json:"search_engine,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *SearchCapability) Reset() {
*x = SearchCapability{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *SearchCapability) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SearchCapability) ProtoMessage() {}
func (x *SearchCapability) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use SearchCapability.ProtoReflect.Descriptor instead.
func (*SearchCapability) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{11}
}
func (x *SearchCapability) GetAvailable() bool {
if x != nil {
return x.Available
}
return false
}
func (x *SearchCapability) GetSupportedParams() []string {
if x != nil {
return x.SupportedParams
}
return nil
}
func (x *SearchCapability) GetSearchEngine() string {
if x != nil {
return x.SearchEngine
}
return ""
}
type Category struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Subcats []*Subcat `protobuf:"bytes,3,rep,name=subcats,proto3" json:"subcats,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Category) Reset() {
*x = Category{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Category) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Category) ProtoMessage() {}
func (x *Category) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Category.ProtoReflect.Descriptor instead.
func (*Category) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{12}
}
func (x *Category) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *Category) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Category) GetSubcats() []*Subcat {
if x != nil {
return x.Subcats
}
return nil
}
type Subcat struct {
state protoimpl.MessageState `protogen:"open.v1"`
Id int32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Subcat) Reset() {
*x = Subcat{}
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[13]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Subcat) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Subcat) ProtoMessage() {}
func (x *Subcat) ProtoReflect() protoreflect.Message {
mi := &file_music_agregator_indexer_v1_indexer_proto_msgTypes[13]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Subcat.ProtoReflect.Descriptor instead.
func (*Subcat) Descriptor() ([]byte, []int) {
return file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP(), []int{13}
}
func (x *Subcat) GetId() int32 {
if x != nil {
return x.Id
}
return 0
}
func (x *Subcat) GetName() string {
if x != nil {
return x.Name
}
return ""
}
var File_music_agregator_indexer_v1_indexer_proto protoreflect.FileDescriptor
const file_music_agregator_indexer_v1_indexer_proto_rawDesc = "" +
"\n" +
"(music_agregator/indexer/v1/indexer.proto\x12\x1amusic_agregator.indexer.v1\"U\n" +
"\rSearchRequest\x12\x14\n" +
"\x05query\x18\x01 \x01(\tR\x05query\x12\x14\n" +
"\x05limit\x18\x02 \x01(\x05R\x05limit\x12\x18\n" +
"\atracker\x18\x03 \x01(\tR\atracker\"P\n" +
"\x0eSearchResponse\x12>\n" +
"\x06result\x18\x01 \x03(\v2&.music_agregator.indexer.v1.SearchItemR\x06result\"\xb4\x03\n" +
"\n" +
"SearchItem\x12\x14\n" +
"\x05title\x18\x01 \x01(\tR\x05title\x12#\n" +
"\rdownload_link\x18\x02 \x01(\tR\fdownloadLink\x12(\n" +
"\x10torrent_page_url\x18\x03 \x01(\tR\x0etorrentPageUrl\x12\x19\n" +
"\bpub_date\x18\x04 \x01(\tR\apubDate\x12\x12\n" +
"\x04size\x18\x05 \x01(\x03R\x04size\x12 \n" +
"\vdescription\x18\x06 \x01(\tR\vdescription\x12\x1e\n" +
"\n" +
"categories\x18\a \x03(\tR\n" +
"categories\x12C\n" +
"\tenclosure\x18\b \x01(\v2%.music_agregator.indexer.v1.EnclosureR\tenclosure\x12L\n" +
"\rtorznab_attrs\x18\t \x03(\v2'.music_agregator.indexer.v1.TorznabAttrR\ftorznabAttrs\x12=\n" +
"\arelease\x18\n" +
" \x01(\v2#.music_agregator.indexer.v1.ReleaseR\arelease\"\x96\x04\n" +
"\aRelease\x12\x1b\n" +
"\traw_title\x18\x01 \x01(\tR\brawTitle\x12\x16\n" +
"\x06artist\x18\x02 \x01(\tR\x06artist\x12\x14\n" +
"\x05album\x18\x03 \x01(\tR\x05album\x12\x12\n" +
"\x04year\x18\x04 \x01(\x05R\x04year\x12\x19\n" +
"\byear_end\x18\x05 \x01(\x05R\ayearEnd\x12\x12\n" +
"\x04type\x18\x06 \x01(\tR\x04type\x12\x16\n" +
"\x06genres\x18\a \x03(\tR\x06genres\x12\x16\n" +
"\x06format\x18\b \x01(\tR\x06format\x12\x16\n" +
"\x06source\x18\t \x01(\tR\x06source\x12\x18\n" +
"\abitrate\x18\n" +
" \x01(\tR\abitrate\x12\x1b\n" +
"\tbit_depth\x18\v \x01(\x05R\bbitDepth\x12\x1f\n" +
"\vsample_rate\x18\f \x01(\x05R\n" +
"sampleRate\x12\x19\n" +
"\brip_type\x18\r \x01(\tR\aripType\x12#\n" +
"\rrelease_count\x18\x0e \x01(\x05R\freleaseCount\x12\x12\n" +
"\x04tags\x18\x0f \x03(\tR\x04tags\x12\x14\n" +
"\x05label\x18\x10 \x01(\tR\x05label\x12\x1f\n" +
"\vcatalog_num\x18\x11 \x01(\tR\n" +
"catalogNum\x12/\n" +
"\x13parsed_successfully\x18\x12 \x01(\bR\x12parsedSuccessfully\x12!\n" +
"\fparse_errors\x18\x13 \x03(\tR\vparseErrors\"I\n" +
"\tEnclosure\x12\x10\n" +
"\x03url\x18\x01 \x01(\tR\x03url\x12\x16\n" +
"\x06length\x18\x02 \x01(\x03R\x06length\x12\x12\n" +
"\x04type\x18\x03 \x01(\tR\x04type\"7\n" +
"\vTorznabAttr\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x14\n" +
"\x05value\x18\x02 \x01(\tR\x05value\"/\n" +
"\x13CapabilitiesRequest\x12\x18\n" +
"\aindexer\x18\x01 \x01(\tR\aindexer\"\x99\x02\n" +
"\x14CapabilitiesResponse\x12:\n" +
"\x06server\x18\x01 \x01(\v2\".music_agregator.indexer.v1.ServerR\x06server\x12:\n" +
"\x06limits\x18\x02 \x01(\v2\".music_agregator.indexer.v1.LimitsR\x06limits\x12C\n" +
"\tsearching\x18\x03 \x01(\v2%.music_agregator.indexer.v1.SearchingR\tsearching\x12D\n" +
"\n" +
"categories\x18\x04 \x03(\v2$.music_agregator.indexer.v1.CategoryR\n" +
"categories\"\x1e\n" +
"\x06Server\x12\x14\n" +
"\x05title\x18\x01 \x01(\tR\x05title\"4\n" +
"\x06Limits\x12\x18\n" +
"\adefault\x18\x01 \x01(\x05R\adefault\x12\x10\n" +
"\x03max\x18\x02 \x01(\x05R\x03max\"\xde\x03\n" +
"\tSearching\x12D\n" +
"\x06search\x18\x01 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\x06search\x12I\n" +
"\ttv_search\x18\x02 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\btvSearch\x12O\n" +
"\fmovie_search\x18\x03 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\vmovieSearch\x12O\n" +
"\fmusic_search\x18\x04 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\vmusicSearch\x12O\n" +
"\faudio_search\x18\x05 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\vaudioSearch\x12M\n" +
"\vbook_search\x18\x06 \x01(\v2,.music_agregator.indexer.v1.SearchCapabilityR\n" +
"bookSearch\"\x80\x01\n" +
"\x10SearchCapability\x12\x1c\n" +
"\tavailable\x18\x01 \x01(\bR\tavailable\x12)\n" +
"\x10supported_params\x18\x02 \x03(\tR\x0fsupportedParams\x12#\n" +
"\rsearch_engine\x18\x03 \x01(\tR\fsearchEngine\"l\n" +
"\bCategory\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name\x12<\n" +
"\asubcats\x18\x03 \x03(\v2\".music_agregator.indexer.v1.SubcatR\asubcats\",\n" +
"\x06Subcat\x12\x0e\n" +
"\x02id\x18\x01 \x01(\x05R\x02id\x12\x12\n" +
"\x04name\x18\x02 \x01(\tR\x04name2\xe8\x01\n" +
"\x0eIndexerService\x12a\n" +
"\x06Search\x12).music_agregator.indexer.v1.SearchRequest\x1a*.music_agregator.indexer.v1.SearchResponse\"\x00\x12s\n" +
"\fCapabilities\x12/.music_agregator.indexer.v1.CapabilitiesRequest\x1a0.music_agregator.indexer.v1.CapabilitiesResponse\"\x00B<Z:homelab.lan/music-agregator/gen/music_agregator/v1/indexerb\x06proto3"
var (
file_music_agregator_indexer_v1_indexer_proto_rawDescOnce sync.Once
file_music_agregator_indexer_v1_indexer_proto_rawDescData []byte
)
func file_music_agregator_indexer_v1_indexer_proto_rawDescGZIP() []byte {
file_music_agregator_indexer_v1_indexer_proto_rawDescOnce.Do(func() {
file_music_agregator_indexer_v1_indexer_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_music_agregator_indexer_v1_indexer_proto_rawDesc), len(file_music_agregator_indexer_v1_indexer_proto_rawDesc)))
})
return file_music_agregator_indexer_v1_indexer_proto_rawDescData
}
var file_music_agregator_indexer_v1_indexer_proto_msgTypes = make([]protoimpl.MessageInfo, 14)
var file_music_agregator_indexer_v1_indexer_proto_goTypes = []any{
(*SearchRequest)(nil), // 0: music_agregator.indexer.v1.SearchRequest
(*SearchResponse)(nil), // 1: music_agregator.indexer.v1.SearchResponse
(*SearchItem)(nil), // 2: music_agregator.indexer.v1.SearchItem
(*Release)(nil), // 3: music_agregator.indexer.v1.Release
(*Enclosure)(nil), // 4: music_agregator.indexer.v1.Enclosure
(*TorznabAttr)(nil), // 5: music_agregator.indexer.v1.TorznabAttr
(*CapabilitiesRequest)(nil), // 6: music_agregator.indexer.v1.CapabilitiesRequest
(*CapabilitiesResponse)(nil), // 7: music_agregator.indexer.v1.CapabilitiesResponse
(*Server)(nil), // 8: music_agregator.indexer.v1.Server
(*Limits)(nil), // 9: music_agregator.indexer.v1.Limits
(*Searching)(nil), // 10: music_agregator.indexer.v1.Searching
(*SearchCapability)(nil), // 11: music_agregator.indexer.v1.SearchCapability
(*Category)(nil), // 12: music_agregator.indexer.v1.Category
(*Subcat)(nil), // 13: music_agregator.indexer.v1.Subcat
}
var file_music_agregator_indexer_v1_indexer_proto_depIdxs = []int32{
2, // 0: music_agregator.indexer.v1.SearchResponse.result:type_name -> music_agregator.indexer.v1.SearchItem
4, // 1: music_agregator.indexer.v1.SearchItem.enclosure:type_name -> music_agregator.indexer.v1.Enclosure
5, // 2: music_agregator.indexer.v1.SearchItem.torznab_attrs:type_name -> music_agregator.indexer.v1.TorznabAttr
3, // 3: music_agregator.indexer.v1.SearchItem.release:type_name -> music_agregator.indexer.v1.Release
8, // 4: music_agregator.indexer.v1.CapabilitiesResponse.server:type_name -> music_agregator.indexer.v1.Server
9, // 5: music_agregator.indexer.v1.CapabilitiesResponse.limits:type_name -> music_agregator.indexer.v1.Limits
10, // 6: music_agregator.indexer.v1.CapabilitiesResponse.searching:type_name -> music_agregator.indexer.v1.Searching
12, // 7: music_agregator.indexer.v1.CapabilitiesResponse.categories:type_name -> music_agregator.indexer.v1.Category
11, // 8: music_agregator.indexer.v1.Searching.search:type_name -> music_agregator.indexer.v1.SearchCapability
11, // 9: music_agregator.indexer.v1.Searching.tv_search:type_name -> music_agregator.indexer.v1.SearchCapability
11, // 10: music_agregator.indexer.v1.Searching.movie_search:type_name -> music_agregator.indexer.v1.SearchCapability
11, // 11: music_agregator.indexer.v1.Searching.music_search:type_name -> music_agregator.indexer.v1.SearchCapability
11, // 12: music_agregator.indexer.v1.Searching.audio_search:type_name -> music_agregator.indexer.v1.SearchCapability
11, // 13: music_agregator.indexer.v1.Searching.book_search:type_name -> music_agregator.indexer.v1.SearchCapability
13, // 14: music_agregator.indexer.v1.Category.subcats:type_name -> music_agregator.indexer.v1.Subcat
0, // 15: music_agregator.indexer.v1.IndexerService.Search:input_type -> music_agregator.indexer.v1.SearchRequest
6, // 16: music_agregator.indexer.v1.IndexerService.Capabilities:input_type -> music_agregator.indexer.v1.CapabilitiesRequest
1, // 17: music_agregator.indexer.v1.IndexerService.Search:output_type -> music_agregator.indexer.v1.SearchResponse
7, // 18: music_agregator.indexer.v1.IndexerService.Capabilities:output_type -> music_agregator.indexer.v1.CapabilitiesResponse
17, // [17:19] is the sub-list for method output_type
15, // [15:17] is the sub-list for method input_type
15, // [15:15] is the sub-list for extension type_name
15, // [15:15] is the sub-list for extension extendee
0, // [0:15] is the sub-list for field type_name
}
func init() { file_music_agregator_indexer_v1_indexer_proto_init() }
func file_music_agregator_indexer_v1_indexer_proto_init() {
if File_music_agregator_indexer_v1_indexer_proto != nil {
return
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_music_agregator_indexer_v1_indexer_proto_rawDesc), len(file_music_agregator_indexer_v1_indexer_proto_rawDesc)),
NumEnums: 0,
NumMessages: 14,
NumExtensions: 0,
NumServices: 1,
},
GoTypes: file_music_agregator_indexer_v1_indexer_proto_goTypes,
DependencyIndexes: file_music_agregator_indexer_v1_indexer_proto_depIdxs,
MessageInfos: file_music_agregator_indexer_v1_indexer_proto_msgTypes,
}.Build()
File_music_agregator_indexer_v1_indexer_proto = out.File
file_music_agregator_indexer_v1_indexer_proto_goTypes = nil
file_music_agregator_indexer_v1_indexer_proto_depIdxs = nil
}