Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var File_internal_python_ml_app_protos_tfidf_v1_service_proto protoreflect.FileDescriptor
var MovieGenre_ServiceDesc = grpc.ServiceDesc{ ServiceName: "tfidf.MovieGenre", HandlerType: (*MovieGenreServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Predict", Handler: _MovieGenre_Predict_Handler, }, { MethodName: "Train", Handler: _MovieGenre_Train_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/python-ml-app-protos/tfidf/v1/service.proto", }
MovieGenre_ServiceDesc is the grpc.ServiceDesc for MovieGenre service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterMovieGenreServer ¶
func RegisterMovieGenreServer(s grpc.ServiceRegistrar, srv MovieGenreServer)
Types ¶
type MovieGenreClient ¶
type MovieGenreClient interface { Predict(ctx context.Context, in *PredictRequest, opts ...grpc.CallOption) (*PredictReply, error) Train(ctx context.Context, in *TrainRequest, opts ...grpc.CallOption) (*TrainReply, error) }
MovieGenreClient is the client API for MovieGenre 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 NewMovieGenreClient ¶
func NewMovieGenreClient(cc grpc.ClientConnInterface) MovieGenreClient
type MovieGenreServer ¶
type MovieGenreServer interface { Predict(context.Context, *PredictRequest) (*PredictReply, error) Train(context.Context, *TrainRequest) (*TrainReply, error) // contains filtered or unexported methods }
MovieGenreServer is the server API for MovieGenre service. All implementations must embed UnimplementedMovieGenreServer for forward compatibility
type PredictReply ¶
type PredictReply struct { Predictions []*Prediction `protobuf:"bytes,1,rep,name=predictions,proto3" json:"predictions,omitempty"` // contains filtered or unexported fields }
func (*PredictReply) Descriptor
deprecated
func (*PredictReply) Descriptor() ([]byte, []int)
Deprecated: Use PredictReply.ProtoReflect.Descriptor instead.
func (*PredictReply) GetPredictions ¶
func (x *PredictReply) GetPredictions() []*Prediction
func (*PredictReply) ProtoMessage ¶
func (*PredictReply) ProtoMessage()
func (*PredictReply) ProtoReflect ¶
func (x *PredictReply) ProtoReflect() protoreflect.Message
func (*PredictReply) Reset ¶
func (x *PredictReply) Reset()
func (*PredictReply) String ¶
func (x *PredictReply) String() string
type PredictRequest ¶
type PredictRequest struct { Synopsis string `protobuf:"bytes,1,opt,name=synopsis,proto3" json:"synopsis,omitempty"` // contains filtered or unexported fields }
func (*PredictRequest) Descriptor
deprecated
func (*PredictRequest) Descriptor() ([]byte, []int)
Deprecated: Use PredictRequest.ProtoReflect.Descriptor instead.
func (*PredictRequest) GetSynopsis ¶
func (x *PredictRequest) GetSynopsis() string
func (*PredictRequest) ProtoMessage ¶
func (*PredictRequest) ProtoMessage()
func (*PredictRequest) ProtoReflect ¶
func (x *PredictRequest) ProtoReflect() protoreflect.Message
func (*PredictRequest) Reset ¶
func (x *PredictRequest) Reset()
func (*PredictRequest) String ¶
func (x *PredictRequest) String() string
type Prediction ¶
type Prediction struct { Genre string `protobuf:"bytes,1,opt,name=genre,proto3" json:"genre,omitempty"` // contains filtered or unexported fields }
func (*Prediction) Descriptor
deprecated
func (*Prediction) Descriptor() ([]byte, []int)
Deprecated: Use Prediction.ProtoReflect.Descriptor instead.
func (*Prediction) GetGenre ¶
func (x *Prediction) GetGenre() string
func (*Prediction) ProtoMessage ¶
func (*Prediction) ProtoMessage()
func (*Prediction) ProtoReflect ¶
func (x *Prediction) ProtoReflect() protoreflect.Message
func (*Prediction) Reset ¶
func (x *Prediction) Reset()
func (*Prediction) String ¶
func (x *Prediction) String() string
type TrainReply ¶
type TrainReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*TrainReply) Descriptor
deprecated
func (*TrainReply) Descriptor() ([]byte, []int)
Deprecated: Use TrainReply.ProtoReflect.Descriptor instead.
func (*TrainReply) GetMessage ¶
func (x *TrainReply) GetMessage() string
func (*TrainReply) ProtoMessage ¶
func (*TrainReply) ProtoMessage()
func (*TrainReply) ProtoReflect ¶
func (x *TrainReply) ProtoReflect() protoreflect.Message
func (*TrainReply) Reset ¶
func (x *TrainReply) Reset()
func (*TrainReply) String ¶
func (x *TrainReply) String() string
type TrainRequest ¶
type TrainRequest struct {
// contains filtered or unexported fields
}
func (*TrainRequest) Descriptor
deprecated
func (*TrainRequest) Descriptor() ([]byte, []int)
Deprecated: Use TrainRequest.ProtoReflect.Descriptor instead.
func (*TrainRequest) ProtoMessage ¶
func (*TrainRequest) ProtoMessage()
func (*TrainRequest) ProtoReflect ¶
func (x *TrainRequest) ProtoReflect() protoreflect.Message
func (*TrainRequest) Reset ¶
func (x *TrainRequest) Reset()
func (*TrainRequest) String ¶
func (x *TrainRequest) String() string
type UnimplementedMovieGenreServer ¶
type UnimplementedMovieGenreServer struct { }
UnimplementedMovieGenreServer must be embedded to have forward compatible implementations.
func (UnimplementedMovieGenreServer) Predict ¶
func (UnimplementedMovieGenreServer) Predict(context.Context, *PredictRequest) (*PredictReply, error)
func (UnimplementedMovieGenreServer) Train ¶
func (UnimplementedMovieGenreServer) Train(context.Context, *TrainRequest) (*TrainReply, error)
type UnsafeMovieGenreServer ¶
type UnsafeMovieGenreServer interface {
// contains filtered or unexported methods
}
UnsafeMovieGenreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MovieGenreServer will result in compilation errors.