core_pb

package
v0.0.0-...-34395f8 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CoreManager_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.CoreManager",
	HandlerType: (*CoreManagerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetTopArtists",
			Handler:    _CoreManager_GetTopArtists_Handler,
		},
		{
			MethodName: "GetTopSongs",
			Handler:    _CoreManager_GetTopSongs_Handler,
		},
		{
			MethodName: "GetTopGenres",
			Handler:    _CoreManager_GetTopGenres_Handler,
		},
		{
			MethodName: "GetRecommendedSongs",
			Handler:    _CoreManager_GetRecommendedSongs_Handler,
		},
		{
			MethodName: "MakeRecommendedPlaylist",
			Handler:    _CoreManager_MakeRecommendedPlaylist_Handler,
		},
		{
			MethodName: "GetPopularityScore",
			Handler:    _CoreManager_GetPopularityScore_Handler,
		},
		{
			MethodName: "GetTopArtistsCollage",
			Handler:    _CoreManager_GetTopArtistsCollage_Handler,
		},
		{
			MethodName: "GetTopAlbumsCollage",
			Handler:    _CoreManager_GetTopAlbumsCollage_Handler,
		},
		{
			MethodName: "GetRandomTopArtistsCollage",
			Handler:    _CoreManager_GetRandomTopArtistsCollage_Handler,
		},
		{
			MethodName: "GetRandomTopAlbumsCollage",
			Handler:    _CoreManager_GetRandomTopAlbumsCollage_Handler,
		},
		{
			MethodName: "Search",
			Handler:    _CoreManager_Search_Handler,
		},
		{
			MethodName: "GetSongInfo",
			Handler:    _CoreManager_GetSongInfo_Handler,
		},
		{
			MethodName: "GetSongAudioFeatures",
			Handler:    _CoreManager_GetSongAudioFeatures_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "core.proto",
}

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

Functions

func RegisterCoreManagerServer

func RegisterCoreManagerServer(s grpc.ServiceRegistrar, srv CoreManagerServer)

Types

type CollageInfoAndToken

type CollageInfoAndToken struct {
	Rows  int64  `protobuf:"varint,1,opt,name=rows,proto3" json:"rows,omitempty"`
	Cols  int64  `protobuf:"varint,2,opt,name=cols,proto3" json:"cols,omitempty"`
	Size  int64  `protobuf:"varint,3,opt,name=size,proto3" json:"size,omitempty"`
	Token *Token `protobuf:"bytes,4,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*CollageInfoAndToken) Descriptor deprecated

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

Deprecated: Use CollageInfoAndToken.ProtoReflect.Descriptor instead.

func (*CollageInfoAndToken) GetCols

func (x *CollageInfoAndToken) GetCols() int64

func (*CollageInfoAndToken) GetRows

func (x *CollageInfoAndToken) GetRows() int64

func (*CollageInfoAndToken) GetSize

func (x *CollageInfoAndToken) GetSize() int64

func (*CollageInfoAndToken) GetToken

func (x *CollageInfoAndToken) GetToken() *Token

func (*CollageInfoAndToken) ProtoMessage

func (*CollageInfoAndToken) ProtoMessage()

func (*CollageInfoAndToken) ProtoReflect

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

func (*CollageInfoAndToken) Reset

func (x *CollageInfoAndToken) Reset()

func (*CollageInfoAndToken) String

func (x *CollageInfoAndToken) String() string

type CoreManagerClient

type CoreManagerClient interface {
	GetTopArtists(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	GetTopSongs(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	GetTopGenres(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	GetRecommendedSongs(ctx context.Context, in *NumberWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	MakeRecommendedPlaylist(ctx context.Context, in *Token, opts ...grpc.CallOption) (*emptypb.Empty, error)
	GetPopularityScore(ctx context.Context, in *Token, opts ...grpc.CallOption) (*FloatScore, error)
	GetTopArtistsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error)
	GetTopAlbumsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error)
	GetRandomTopArtistsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error)
	GetRandomTopAlbumsCollage(ctx context.Context, in *CollageInfoAndToken, opts ...grpc.CallOption) (*Image, error)
	Search(ctx context.Context, in *QueryWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	GetSongInfo(ctx context.Context, in *IDWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
	GetSongAudioFeatures(ctx context.Context, in *IDWithToken, opts ...grpc.CallOption) (*JSONResponse, error)
}

CoreManagerClient is the client API for CoreManager service.

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

type CoreManagerServer

type CoreManagerServer interface {
	GetTopArtists(context.Context, *NumberWithToken) (*JSONResponse, error)
	GetTopSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
	GetTopGenres(context.Context, *NumberWithToken) (*JSONResponse, error)
	GetRecommendedSongs(context.Context, *NumberWithToken) (*JSONResponse, error)
	MakeRecommendedPlaylist(context.Context, *Token) (*emptypb.Empty, error)
	GetPopularityScore(context.Context, *Token) (*FloatScore, error)
	GetTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
	GetTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
	GetRandomTopArtistsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
	GetRandomTopAlbumsCollage(context.Context, *CollageInfoAndToken) (*Image, error)
	Search(context.Context, *QueryWithToken) (*JSONResponse, error)
	GetSongInfo(context.Context, *IDWithToken) (*JSONResponse, error)
	GetSongAudioFeatures(context.Context, *IDWithToken) (*JSONResponse, error)
	// contains filtered or unexported methods
}

CoreManagerServer is the server API for CoreManager service. All implementations must embed UnimplementedCoreManagerServer for forward compatibility

type FloatScore

type FloatScore struct {
	Score float64 `protobuf:"fixed64,1,opt,name=score,proto3" json:"score,omitempty"`
	// contains filtered or unexported fields
}

func (*FloatScore) Descriptor deprecated

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

Deprecated: Use FloatScore.ProtoReflect.Descriptor instead.

func (*FloatScore) GetScore

func (x *FloatScore) GetScore() float64

func (*FloatScore) ProtoMessage

func (*FloatScore) ProtoMessage()

func (*FloatScore) ProtoReflect

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

func (*FloatScore) Reset

func (x *FloatScore) Reset()

func (*FloatScore) String

func (x *FloatScore) String() string

type IDWithToken

type IDWithToken struct {
	Id    string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	Token *Token `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*IDWithToken) Descriptor deprecated

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

Deprecated: Use IDWithToken.ProtoReflect.Descriptor instead.

func (*IDWithToken) GetId

func (x *IDWithToken) GetId() string

func (*IDWithToken) GetToken

func (x *IDWithToken) GetToken() *Token

func (*IDWithToken) ProtoMessage

func (*IDWithToken) ProtoMessage()

func (*IDWithToken) ProtoReflect

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

func (*IDWithToken) Reset

func (x *IDWithToken) Reset()

func (*IDWithToken) String

func (x *IDWithToken) String() string

type Image

type Image struct {
	Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*Image) Descriptor deprecated

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

Deprecated: Use Image.ProtoReflect.Descriptor instead.

func (*Image) GetImage

func (x *Image) GetImage() []byte

func (*Image) ProtoMessage

func (*Image) ProtoMessage()

func (*Image) ProtoReflect

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

func (*Image) Reset

func (x *Image) Reset()

func (*Image) String

func (x *Image) String() string

type JSONResponse

type JSONResponse struct {
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*JSONResponse) Descriptor deprecated

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

Deprecated: Use JSONResponse.ProtoReflect.Descriptor instead.

func (*JSONResponse) GetData

func (x *JSONResponse) GetData() []byte

func (*JSONResponse) ProtoMessage

func (*JSONResponse) ProtoMessage()

func (*JSONResponse) ProtoReflect

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

func (*JSONResponse) Reset

func (x *JSONResponse) Reset()

func (*JSONResponse) String

func (x *JSONResponse) String() string

type Number

type Number struct {
	Number int64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*Number) Descriptor deprecated

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

Deprecated: Use Number.ProtoReflect.Descriptor instead.

func (*Number) GetNumber

func (x *Number) GetNumber() int64

func (*Number) ProtoMessage

func (*Number) ProtoMessage()

func (*Number) ProtoReflect

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

func (*Number) Reset

func (x *Number) Reset()

func (*Number) String

func (x *Number) String() string

type NumberWithToken

type NumberWithToken struct {
	Number *Number `protobuf:"bytes,1,opt,name=number,proto3" json:"number,omitempty"`
	Token  *Token  `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*NumberWithToken) Descriptor deprecated

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

Deprecated: Use NumberWithToken.ProtoReflect.Descriptor instead.

func (*NumberWithToken) GetNumber

func (x *NumberWithToken) GetNumber() *Number

func (*NumberWithToken) GetToken

func (x *NumberWithToken) GetToken() *Token

func (*NumberWithToken) ProtoMessage

func (*NumberWithToken) ProtoMessage()

func (*NumberWithToken) ProtoReflect

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

func (*NumberWithToken) Reset

func (x *NumberWithToken) Reset()

func (*NumberWithToken) String

func (x *NumberWithToken) String() string

type QueryWithToken

type QueryWithToken struct {
	Query string   `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
	Types []string `protobuf:"bytes,2,rep,name=types,proto3" json:"types,omitempty"`
	Token *Token   `protobuf:"bytes,3,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryWithToken) Descriptor deprecated

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

Deprecated: Use QueryWithToken.ProtoReflect.Descriptor instead.

func (*QueryWithToken) GetQuery

func (x *QueryWithToken) GetQuery() string

func (*QueryWithToken) GetToken

func (x *QueryWithToken) GetToken() *Token

func (*QueryWithToken) GetTypes

func (x *QueryWithToken) GetTypes() []string

func (*QueryWithToken) ProtoMessage

func (*QueryWithToken) ProtoMessage()

func (*QueryWithToken) ProtoReflect

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

func (*QueryWithToken) Reset

func (x *QueryWithToken) Reset()

func (*QueryWithToken) String

func (x *QueryWithToken) String() string

type Token

type Token struct {
	Token []byte `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetToken

func (x *Token) GetToken() []byte

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type UnimplementedCoreManagerServer

type UnimplementedCoreManagerServer struct {
}

UnimplementedCoreManagerServer must be embedded to have forward compatible implementations.

func (UnimplementedCoreManagerServer) GetPopularityScore

func (UnimplementedCoreManagerServer) GetRandomTopAlbumsCollage

func (UnimplementedCoreManagerServer) GetRandomTopArtistsCollage

func (UnimplementedCoreManagerServer) GetRecommendedSongs

func (UnimplementedCoreManagerServer) GetSongAudioFeatures

func (UnimplementedCoreManagerServer) GetSongInfo

func (UnimplementedCoreManagerServer) GetTopAlbumsCollage

func (UnimplementedCoreManagerServer) GetTopArtists

func (UnimplementedCoreManagerServer) GetTopArtistsCollage

func (UnimplementedCoreManagerServer) GetTopGenres

func (UnimplementedCoreManagerServer) GetTopSongs

func (UnimplementedCoreManagerServer) MakeRecommendedPlaylist

func (UnimplementedCoreManagerServer) MakeRecommendedPlaylist(context.Context, *Token) (*emptypb.Empty, error)

func (UnimplementedCoreManagerServer) Search

type UnsafeCoreManagerServer

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

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

Jump to

Keyboard shortcuts

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