recommendation

package
v0.0.0-...-bbca93c Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_services_recommendation_proto protoreflect.FileDescriptor
View Source
var RecommendationService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "recommendation.RecommendationService",
	HandlerType: (*RecommendationServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRecommendations",
			Handler:    _RecommendationService_GetRecommendations_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "services/recommendation.proto",
}

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

Functions

func RegisterRecommendationServiceServer

func RegisterRecommendationServiceServer(s grpc.ServiceRegistrar, srv RecommendationServiceServer)

Types

type GetRecommendationsRequest

type GetRecommendationsRequest struct {
	MemberId int32 `protobuf:"varint,1,opt,name=memberId,proto3" json:"memberId,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecommendationsRequest) Descriptor deprecated

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

Deprecated: Use GetRecommendationsRequest.ProtoReflect.Descriptor instead.

func (*GetRecommendationsRequest) GetMemberId

func (x *GetRecommendationsRequest) GetMemberId() int32

func (*GetRecommendationsRequest) ProtoMessage

func (*GetRecommendationsRequest) ProtoMessage()

func (*GetRecommendationsRequest) ProtoReflect

func (*GetRecommendationsRequest) Reset

func (x *GetRecommendationsRequest) Reset()

func (*GetRecommendationsRequest) String

func (x *GetRecommendationsRequest) String() string

type GetRecommendationsResponse

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

func (*GetRecommendationsResponse) Descriptor deprecated

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

Deprecated: Use GetRecommendationsResponse.ProtoReflect.Descriptor instead.

func (*GetRecommendationsResponse) GetMedia

func (x *GetRecommendationsResponse) GetMedia() []*Media

func (*GetRecommendationsResponse) ProtoMessage

func (*GetRecommendationsResponse) ProtoMessage()

func (*GetRecommendationsResponse) ProtoReflect

func (*GetRecommendationsResponse) Reset

func (x *GetRecommendationsResponse) Reset()

func (*GetRecommendationsResponse) String

func (x *GetRecommendationsResponse) String() string

type Media

type Media struct {
	Id         int32    `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	MediaType  string   `protobuf:"bytes,2,opt,name=media_type,json=mediaType,proto3" json:"media_type,omitempty"`
	Title      string   `protobuf:"bytes,3,opt,name=title,proto3" json:"title,omitempty"`
	Genres     []string `protobuf:"bytes,4,rep,name=genres,proto3" json:"genres,omitempty"`
	Year       int32    `protobuf:"varint,5,opt,name=year,proto3" json:"year,omitempty"`
	People     []string `protobuf:"bytes,6,rep,name=people,proto3" json:"people,omitempty"`
	Influences []string `protobuf:"bytes,7,rep,name=influences,proto3" json:"influences,omitempty"`
	Countries  []string `protobuf:"bytes,8,rep,name=countries,proto3" json:"countries,omitempty"`
	Languages  []string `protobuf:"bytes,9,rep,name=languages,proto3" json:"languages,omitempty"`
	Length     int32    `protobuf:"varint,10,opt,name=length,proto3" json:"length,omitempty"`
	// contains filtered or unexported fields
}

func (*Media) Descriptor deprecated

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

Deprecated: Use Media.ProtoReflect.Descriptor instead.

func (*Media) GetCountries

func (x *Media) GetCountries() []string

func (*Media) GetGenres

func (x *Media) GetGenres() []string

func (*Media) GetId

func (x *Media) GetId() int32

func (*Media) GetInfluences

func (x *Media) GetInfluences() []string

func (*Media) GetLanguages

func (x *Media) GetLanguages() []string

func (*Media) GetLength

func (x *Media) GetLength() int32

func (*Media) GetMediaType

func (x *Media) GetMediaType() string

func (*Media) GetPeople

func (x *Media) GetPeople() []string

func (*Media) GetTitle

func (x *Media) GetTitle() string

func (*Media) GetYear

func (x *Media) GetYear() int32

func (*Media) ProtoMessage

func (*Media) ProtoMessage()

func (*Media) ProtoReflect

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

func (*Media) Reset

func (x *Media) Reset()

func (*Media) String

func (x *Media) String() string

type RecommendationServiceClient

type RecommendationServiceClient interface {
	GetRecommendations(ctx context.Context, in *GetRecommendationsRequest, opts ...grpc.CallOption) (*GetRecommendationsResponse, error)
}

RecommendationServiceClient is the client API for RecommendationService 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 RecommendationServiceServer

type RecommendationServiceServer interface {
	GetRecommendations(context.Context, *GetRecommendationsRequest) (*GetRecommendationsResponse, error)
	// contains filtered or unexported methods
}

RecommendationServiceServer is the server API for RecommendationService service. All implementations must embed UnimplementedRecommendationServiceServer for forward compatibility

type UnimplementedRecommendationServiceServer

type UnimplementedRecommendationServiceServer struct {
}

UnimplementedRecommendationServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedRecommendationServiceServer) GetRecommendations

type UnsafeRecommendationServiceServer

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

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

Jump to

Keyboard shortcuts

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