123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594 |
- // Code generated by protoc-gen-go. DO NOT EDIT.
- // source: remotecontrol.proto
- package remotecontrol
- import (
- context "context"
- fmt "fmt"
- proto "github.com/golang/protobuf/proto"
- grpc "google.golang.org/grpc"
- codes "google.golang.org/grpc/codes"
- status "google.golang.org/grpc/status"
- math "math"
- )
- // Reference imports to suppress errors if they are not otherwise used.
- var _ = proto.Marshal
- var _ = fmt.Errorf
- var _ = math.Inf
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the proto package it is being compiled against.
- // A compilation error at this line likely means your copy of the
- // proto package needs to be updated.
- const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
- type LayerMatrix_ContentType int32
- const (
- LayerMatrix_Activations LayerMatrix_ContentType = 0
- LayerMatrix_Weights LayerMatrix_ContentType = 1
- LayerMatrix_Biases LayerMatrix_ContentType = 2
- )
- var LayerMatrix_ContentType_name = map[int32]string{
- 0: "Activations",
- 1: "Weights",
- 2: "Biases",
- }
- var LayerMatrix_ContentType_value = map[string]int32{
- "Activations": 0,
- "Weights": 1,
- "Biases": 2,
- }
- func (x LayerMatrix_ContentType) String() string {
- return proto.EnumName(LayerMatrix_ContentType_name, int32(x))
- }
- func (LayerMatrix_ContentType) EnumDescriptor() ([]byte, []int) {
- return fileDescriptor_9e7470c0107e56c6, []int{1, 0}
- }
- type Matrix struct {
- Matrix []byte `protobuf:"bytes,1,opt,name=matrix,proto3" json:"matrix,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Matrix) Reset() { *m = Matrix{} }
- func (m *Matrix) String() string { return proto.CompactTextString(m) }
- func (*Matrix) ProtoMessage() {}
- func (*Matrix) Descriptor() ([]byte, []int) {
- return fileDescriptor_9e7470c0107e56c6, []int{0}
- }
- func (m *Matrix) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Matrix.Unmarshal(m, b)
- }
- func (m *Matrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Matrix.Marshal(b, m, deterministic)
- }
- func (m *Matrix) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Matrix.Merge(m, src)
- }
- func (m *Matrix) XXX_Size() int {
- return xxx_messageInfo_Matrix.Size(m)
- }
- func (m *Matrix) XXX_DiscardUnknown() {
- xxx_messageInfo_Matrix.DiscardUnknown(m)
- }
- var xxx_messageInfo_Matrix proto.InternalMessageInfo
- func (m *Matrix) GetMatrix() []byte {
- if m != nil {
- return m.Matrix
- }
- return nil
- }
- type LayerMatrix struct {
- ContentType LayerMatrix_ContentType `protobuf:"varint,1,opt,name=contentType,proto3,enum=remotecontrol.LayerMatrix_ContentType" json:"contentType,omitempty"`
- Layer int32 `protobuf:"zigzag32,2,opt,name=layer,proto3" json:"layer,omitempty"`
- Matrix *Matrix `protobuf:"bytes,3,opt,name=matrix,proto3" json:"matrix,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *LayerMatrix) Reset() { *m = LayerMatrix{} }
- func (m *LayerMatrix) String() string { return proto.CompactTextString(m) }
- func (*LayerMatrix) ProtoMessage() {}
- func (*LayerMatrix) Descriptor() ([]byte, []int) {
- return fileDescriptor_9e7470c0107e56c6, []int{1}
- }
- func (m *LayerMatrix) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_LayerMatrix.Unmarshal(m, b)
- }
- func (m *LayerMatrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_LayerMatrix.Marshal(b, m, deterministic)
- }
- func (m *LayerMatrix) XXX_Merge(src proto.Message) {
- xxx_messageInfo_LayerMatrix.Merge(m, src)
- }
- func (m *LayerMatrix) XXX_Size() int {
- return xxx_messageInfo_LayerMatrix.Size(m)
- }
- func (m *LayerMatrix) XXX_DiscardUnknown() {
- xxx_messageInfo_LayerMatrix.DiscardUnknown(m)
- }
- var xxx_messageInfo_LayerMatrix proto.InternalMessageInfo
- func (m *LayerMatrix) GetContentType() LayerMatrix_ContentType {
- if m != nil {
- return m.ContentType
- }
- return LayerMatrix_Activations
- }
- func (m *LayerMatrix) GetLayer() int32 {
- if m != nil {
- return m.Layer
- }
- return 0
- }
- func (m *LayerMatrix) GetMatrix() *Matrix {
- if m != nil {
- return m.Matrix
- }
- return nil
- }
- type Configuration struct {
- Sizes []int32 `protobuf:"zigzag32,1,rep,packed,name=sizes,proto3" json:"sizes,omitempty"`
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *Configuration) Reset() { *m = Configuration{} }
- func (m *Configuration) String() string { return proto.CompactTextString(m) }
- func (*Configuration) ProtoMessage() {}
- func (*Configuration) Descriptor() ([]byte, []int) {
- return fileDescriptor_9e7470c0107e56c6, []int{2}
- }
- func (m *Configuration) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_Configuration.Unmarshal(m, b)
- }
- func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_Configuration.Marshal(b, m, deterministic)
- }
- func (m *Configuration) XXX_Merge(src proto.Message) {
- xxx_messageInfo_Configuration.Merge(m, src)
- }
- func (m *Configuration) XXX_Size() int {
- return xxx_messageInfo_Configuration.Size(m)
- }
- func (m *Configuration) XXX_DiscardUnknown() {
- xxx_messageInfo_Configuration.DiscardUnknown(m)
- }
- var xxx_messageInfo_Configuration proto.InternalMessageInfo
- func (m *Configuration) GetSizes() []int32 {
- if m != nil {
- return m.Sizes
- }
- return nil
- }
- type None struct {
- XXX_NoUnkeyedLiteral struct{} `json:"-"`
- XXX_unrecognized []byte `json:"-"`
- XXX_sizecache int32 `json:"-"`
- }
- func (m *None) Reset() { *m = None{} }
- func (m *None) String() string { return proto.CompactTextString(m) }
- func (*None) ProtoMessage() {}
- func (*None) Descriptor() ([]byte, []int) {
- return fileDescriptor_9e7470c0107e56c6, []int{3}
- }
- func (m *None) XXX_Unmarshal(b []byte) error {
- return xxx_messageInfo_None.Unmarshal(m, b)
- }
- func (m *None) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
- return xxx_messageInfo_None.Marshal(b, m, deterministic)
- }
- func (m *None) XXX_Merge(src proto.Message) {
- xxx_messageInfo_None.Merge(m, src)
- }
- func (m *None) XXX_Size() int {
- return xxx_messageInfo_None.Size(m)
- }
- func (m *None) XXX_DiscardUnknown() {
- xxx_messageInfo_None.DiscardUnknown(m)
- }
- var xxx_messageInfo_None proto.InternalMessageInfo
- func init() {
- proto.RegisterEnum("remotecontrol.LayerMatrix_ContentType", LayerMatrix_ContentType_name, LayerMatrix_ContentType_value)
- proto.RegisterType((*Matrix)(nil), "remotecontrol.Matrix")
- proto.RegisterType((*LayerMatrix)(nil), "remotecontrol.LayerMatrix")
- proto.RegisterType((*Configuration)(nil), "remotecontrol.Configuration")
- proto.RegisterType((*None)(nil), "remotecontrol.None")
- }
- func init() { proto.RegisterFile("remotecontrol.proto", fileDescriptor_9e7470c0107e56c6) }
- var fileDescriptor_9e7470c0107e56c6 = []byte{
- // 331 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x92, 0x41, 0x4f, 0xc2, 0x40,
- 0x10, 0x85, 0xbb, 0xa0, 0x25, 0x99, 0x15, 0xad, 0x83, 0x1a, 0x42, 0x3c, 0x34, 0x9b, 0x68, 0xb8,
- 0x48, 0x0c, 0x1e, 0xd4, 0x83, 0x26, 0xc2, 0x41, 0x0f, 0x6a, 0x4c, 0x35, 0xf1, 0x5c, 0x61, 0xc5,
- 0x4d, 0x68, 0x97, 0xec, 0x0e, 0x46, 0xfc, 0x15, 0xfe, 0x39, 0xff, 0x8f, 0xe9, 0x82, 0x48, 0x49,
- 0xbd, 0x70, 0xeb, 0xbc, 0xbc, 0xf7, 0xe6, 0xeb, 0xb4, 0x50, 0x33, 0x32, 0xd1, 0x24, 0x7b, 0x3a,
- 0x25, 0xa3, 0x87, 0xad, 0x91, 0xd1, 0xa4, 0xb1, 0x9a, 0x13, 0x45, 0x08, 0xfe, 0x5d, 0x4c, 0x46,
- 0x7d, 0xe0, 0x1e, 0xf8, 0x89, 0x7b, 0xaa, 0xb3, 0x90, 0x35, 0x37, 0xa2, 0xd9, 0x24, 0xbe, 0x19,
- 0xf0, 0xdb, 0x78, 0x22, 0xcd, 0xcc, 0x77, 0x03, 0x3c, 0x0b, 0xcb, 0x94, 0x9e, 0x26, 0x23, 0xe9,
- 0xcc, 0x9b, 0xed, 0xc3, 0x56, 0x7e, 0xd7, 0x42, 0xa0, 0xd5, 0xfd, 0x73, 0x47, 0x8b, 0x51, 0xdc,
- 0x81, 0xf5, 0x61, 0xe6, 0xab, 0x97, 0x42, 0xd6, 0xdc, 0x8e, 0xa6, 0x03, 0x1e, 0xcd, 0x39, 0xca,
- 0x21, 0x6b, 0xf2, 0xf6, 0xee, 0x52, 0xf5, 0xb4, 0x75, 0x8e, 0x77, 0x0a, 0x7c, 0x61, 0x01, 0x6e,
- 0x01, 0xbf, 0xea, 0x91, 0x7a, 0x8f, 0x49, 0xe9, 0xd4, 0x06, 0x1e, 0x72, 0xa8, 0x3c, 0x4b, 0x35,
- 0x78, 0x23, 0x1b, 0x30, 0x04, 0xf0, 0x3b, 0x2a, 0xb6, 0xd2, 0x06, 0x25, 0x71, 0x00, 0xd5, 0xae,
- 0x4e, 0x5f, 0xd5, 0x60, 0x6c, 0x9c, 0x39, 0xc3, 0xb1, 0xea, 0x53, 0xda, 0x3a, 0x0b, 0xcb, 0x19,
- 0x8e, 0x1b, 0x84, 0x0f, 0x6b, 0xf7, 0x3a, 0x95, 0xed, 0xaf, 0x32, 0x54, 0x23, 0x07, 0xd2, 0x9d,
- 0x82, 0xe0, 0x35, 0x04, 0x03, 0x49, 0xf9, 0x8e, 0xda, 0x12, 0x6c, 0x16, 0x6d, 0xec, 0x2f, 0x89,
- 0xb9, 0x88, 0xf0, 0xb0, 0x93, 0x63, 0x2e, 0xee, 0x68, 0xfc, 0x7f, 0x60, 0xe1, 0x1d, 0x33, 0xbc,
- 0xf8, 0x7d, 0xb3, 0xd5, 0xe2, 0x97, 0xf3, 0x2b, 0xad, 0x96, 0x3f, 0x87, 0xca, 0x83, 0x91, 0x7d,
- 0xd5, 0x23, 0x2c, 0xfe, 0x5e, 0x8d, 0x62, 0x59, 0x78, 0x78, 0x06, 0xd0, 0x1f, 0x27, 0xc9, 0xe4,
- 0x91, 0x62, 0x43, 0xc5, 0xdb, 0x8b, 0x44, 0xe1, 0xbd, 0xf8, 0xee, 0x8f, 0x3e, 0xf9, 0x09, 0x00,
- 0x00, 0xff, 0xff, 0x43, 0xc0, 0x92, 0x1e, 0xe8, 0x02, 0x00, 0x00,
- }
- // Reference imports to suppress errors if they are not otherwise used.
- var _ context.Context
- var _ grpc.ClientConn
- // This is a compile-time assertion to ensure that this generated file
- // is compatible with the grpc package it is being compiled against.
- const _ = grpc.SupportPackageIsVersion4
- // RemoteControlClient is the client API for RemoteControl service.
- //
- // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
- type RemoteControlClient interface {
- GetConfiguration(ctx context.Context, in *None, opts ...grpc.CallOption) (*Configuration, error)
- Activations(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_ActivationsClient, error)
- Biases(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_BiasesClient, error)
- Weights(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_WeightsClient, error)
- Predict(ctx context.Context, in *Matrix, opts ...grpc.CallOption) (*Matrix, error)
- DummyStart(ctx context.Context, in *None, opts ...grpc.CallOption) (*None, error)
- }
- type remoteControlClient struct {
- cc *grpc.ClientConn
- }
- func NewRemoteControlClient(cc *grpc.ClientConn) RemoteControlClient {
- return &remoteControlClient{cc}
- }
- func (c *remoteControlClient) GetConfiguration(ctx context.Context, in *None, opts ...grpc.CallOption) (*Configuration, error) {
- out := new(Configuration)
- err := c.cc.Invoke(ctx, "/remotecontrol.RemoteControl/getConfiguration", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *remoteControlClient) Activations(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_ActivationsClient, error) {
- stream, err := c.cc.NewStream(ctx, &_RemoteControl_serviceDesc.Streams[0], "/remotecontrol.RemoteControl/Activations", opts...)
- if err != nil {
- return nil, err
- }
- x := &remoteControlActivationsClient{stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
- }
- type RemoteControl_ActivationsClient interface {
- Recv() (*LayerMatrix, error)
- grpc.ClientStream
- }
- type remoteControlActivationsClient struct {
- grpc.ClientStream
- }
- func (x *remoteControlActivationsClient) Recv() (*LayerMatrix, error) {
- m := new(LayerMatrix)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- func (c *remoteControlClient) Biases(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_BiasesClient, error) {
- stream, err := c.cc.NewStream(ctx, &_RemoteControl_serviceDesc.Streams[1], "/remotecontrol.RemoteControl/Biases", opts...)
- if err != nil {
- return nil, err
- }
- x := &remoteControlBiasesClient{stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
- }
- type RemoteControl_BiasesClient interface {
- Recv() (*LayerMatrix, error)
- grpc.ClientStream
- }
- type remoteControlBiasesClient struct {
- grpc.ClientStream
- }
- func (x *remoteControlBiasesClient) Recv() (*LayerMatrix, error) {
- m := new(LayerMatrix)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- func (c *remoteControlClient) Weights(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_WeightsClient, error) {
- stream, err := c.cc.NewStream(ctx, &_RemoteControl_serviceDesc.Streams[2], "/remotecontrol.RemoteControl/Weights", opts...)
- if err != nil {
- return nil, err
- }
- x := &remoteControlWeightsClient{stream}
- if err := x.ClientStream.SendMsg(in); err != nil {
- return nil, err
- }
- if err := x.ClientStream.CloseSend(); err != nil {
- return nil, err
- }
- return x, nil
- }
- type RemoteControl_WeightsClient interface {
- Recv() (*LayerMatrix, error)
- grpc.ClientStream
- }
- type remoteControlWeightsClient struct {
- grpc.ClientStream
- }
- func (x *remoteControlWeightsClient) Recv() (*LayerMatrix, error) {
- m := new(LayerMatrix)
- if err := x.ClientStream.RecvMsg(m); err != nil {
- return nil, err
- }
- return m, nil
- }
- func (c *remoteControlClient) Predict(ctx context.Context, in *Matrix, opts ...grpc.CallOption) (*Matrix, error) {
- out := new(Matrix)
- err := c.cc.Invoke(ctx, "/remotecontrol.RemoteControl/Predict", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- func (c *remoteControlClient) DummyStart(ctx context.Context, in *None, opts ...grpc.CallOption) (*None, error) {
- out := new(None)
- err := c.cc.Invoke(ctx, "/remotecontrol.RemoteControl/dummyStart", in, out, opts...)
- if err != nil {
- return nil, err
- }
- return out, nil
- }
- // RemoteControlServer is the server API for RemoteControl service.
- type RemoteControlServer interface {
- GetConfiguration(context.Context, *None) (*Configuration, error)
- Activations(*None, RemoteControl_ActivationsServer) error
- Biases(*None, RemoteControl_BiasesServer) error
- Weights(*None, RemoteControl_WeightsServer) error
- Predict(context.Context, *Matrix) (*Matrix, error)
- DummyStart(context.Context, *None) (*None, error)
- }
- // UnimplementedRemoteControlServer can be embedded to have forward compatible implementations.
- type UnimplementedRemoteControlServer struct {
- }
- func (*UnimplementedRemoteControlServer) GetConfiguration(ctx context.Context, req *None) (*Configuration, error) {
- return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented")
- }
- func (*UnimplementedRemoteControlServer) Activations(req *None, srv RemoteControl_ActivationsServer) error {
- return status.Errorf(codes.Unimplemented, "method Activations not implemented")
- }
- func (*UnimplementedRemoteControlServer) Biases(req *None, srv RemoteControl_BiasesServer) error {
- return status.Errorf(codes.Unimplemented, "method Biases not implemented")
- }
- func (*UnimplementedRemoteControlServer) Weights(req *None, srv RemoteControl_WeightsServer) error {
- return status.Errorf(codes.Unimplemented, "method Weights not implemented")
- }
- func (*UnimplementedRemoteControlServer) Predict(ctx context.Context, req *Matrix) (*Matrix, error) {
- return nil, status.Errorf(codes.Unimplemented, "method Predict not implemented")
- }
- func (*UnimplementedRemoteControlServer) DummyStart(ctx context.Context, req *None) (*None, error) {
- return nil, status.Errorf(codes.Unimplemented, "method DummyStart not implemented")
- }
- func RegisterRemoteControlServer(s *grpc.Server, srv RemoteControlServer) {
- s.RegisterService(&_RemoteControl_serviceDesc, srv)
- }
- func _RemoteControl_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(None)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(RemoteControlServer).GetConfiguration(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/remotecontrol.RemoteControl/GetConfiguration",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(RemoteControlServer).GetConfiguration(ctx, req.(*None))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _RemoteControl_Activations_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(None)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(RemoteControlServer).Activations(m, &remoteControlActivationsServer{stream})
- }
- type RemoteControl_ActivationsServer interface {
- Send(*LayerMatrix) error
- grpc.ServerStream
- }
- type remoteControlActivationsServer struct {
- grpc.ServerStream
- }
- func (x *remoteControlActivationsServer) Send(m *LayerMatrix) error {
- return x.ServerStream.SendMsg(m)
- }
- func _RemoteControl_Biases_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(None)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(RemoteControlServer).Biases(m, &remoteControlBiasesServer{stream})
- }
- type RemoteControl_BiasesServer interface {
- Send(*LayerMatrix) error
- grpc.ServerStream
- }
- type remoteControlBiasesServer struct {
- grpc.ServerStream
- }
- func (x *remoteControlBiasesServer) Send(m *LayerMatrix) error {
- return x.ServerStream.SendMsg(m)
- }
- func _RemoteControl_Weights_Handler(srv interface{}, stream grpc.ServerStream) error {
- m := new(None)
- if err := stream.RecvMsg(m); err != nil {
- return err
- }
- return srv.(RemoteControlServer).Weights(m, &remoteControlWeightsServer{stream})
- }
- type RemoteControl_WeightsServer interface {
- Send(*LayerMatrix) error
- grpc.ServerStream
- }
- type remoteControlWeightsServer struct {
- grpc.ServerStream
- }
- func (x *remoteControlWeightsServer) Send(m *LayerMatrix) error {
- return x.ServerStream.SendMsg(m)
- }
- func _RemoteControl_Predict_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(Matrix)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(RemoteControlServer).Predict(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/remotecontrol.RemoteControl/Predict",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(RemoteControlServer).Predict(ctx, req.(*Matrix))
- }
- return interceptor(ctx, in, info, handler)
- }
- func _RemoteControl_DummyStart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
- in := new(None)
- if err := dec(in); err != nil {
- return nil, err
- }
- if interceptor == nil {
- return srv.(RemoteControlServer).DummyStart(ctx, in)
- }
- info := &grpc.UnaryServerInfo{
- Server: srv,
- FullMethod: "/remotecontrol.RemoteControl/DummyStart",
- }
- handler := func(ctx context.Context, req interface{}) (interface{}, error) {
- return srv.(RemoteControlServer).DummyStart(ctx, req.(*None))
- }
- return interceptor(ctx, in, info, handler)
- }
- var _RemoteControl_serviceDesc = grpc.ServiceDesc{
- ServiceName: "remotecontrol.RemoteControl",
- HandlerType: (*RemoteControlServer)(nil),
- Methods: []grpc.MethodDesc{
- {
- MethodName: "getConfiguration",
- Handler: _RemoteControl_GetConfiguration_Handler,
- },
- {
- MethodName: "Predict",
- Handler: _RemoteControl_Predict_Handler,
- },
- {
- MethodName: "dummyStart",
- Handler: _RemoteControl_DummyStart_Handler,
- },
- },
- Streams: []grpc.StreamDesc{
- {
- StreamName: "Activations",
- Handler: _RemoteControl_Activations_Handler,
- ServerStreams: true,
- },
- {
- StreamName: "Biases",
- Handler: _RemoteControl_Biases_Handler,
- ServerStreams: true,
- },
- {
- StreamName: "Weights",
- Handler: _RemoteControl_Weights_Handler,
- ServerStreams: true,
- },
- },
- Metadata: "remotecontrol.proto",
- }
|