|
@@ -302,43 +302,41 @@ func init() {
|
|
|
func init() { proto.RegisterFile("remotecontrol.proto", fileDescriptor_9e7470c0107e56c6) }
|
|
|
|
|
|
var fileDescriptor_9e7470c0107e56c6 = []byte{
|
|
|
- // 422 bytes of a gzipped FileDescriptorProto
|
|
|
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x53, 0x4f, 0xef, 0xd2, 0x40,
|
|
|
- 0x10, 0xed, 0xd2, 0x1f, 0xfd, 0xfd, 0x32, 0x05, 0x5c, 0x17, 0x35, 0x04, 0x3d, 0xd4, 0x4d, 0x34,
|
|
|
- 0x5c, 0x6c, 0x0c, 0x1e, 0xd0, 0x83, 0x26, 0x42, 0xe2, 0x9f, 0x04, 0x89, 0x29, 0x46, 0xcf, 0x2b,
|
|
|
- 0x5d, 0xeb, 0xc6, 0x76, 0x97, 0x6c, 0x17, 0x15, 0xbf, 0x84, 0x1f, 0xcd, 0x93, 0xdf, 0xc7, 0x74,
|
|
|
- 0x0b, 0xd8, 0x36, 0xd5, 0x03, 0x97, 0x66, 0x66, 0xf2, 0xde, 0x9b, 0x37, 0xb3, 0x53, 0x18, 0x6a,
|
|
|
- 0x9e, 0x29, 0xc3, 0x37, 0x4a, 0x1a, 0xad, 0xd2, 0x70, 0xab, 0x95, 0x51, 0xa4, 0x5f, 0x2b, 0xd2,
|
|
|
- 0x9f, 0x08, 0x7a, 0x2b, 0x6e, 0xbe, 0x29, 0xfd, 0x65, 0x6d, 0x98, 0xe1, 0x64, 0x06, 0xdd, 0xbc,
|
|
|
- 0x08, 0x46, 0x28, 0x40, 0x93, 0xc1, 0xf4, 0x6e, 0x58, 0x17, 0xa9, 0x62, 0x43, 0xfb, 0x8d, 0x4a,
|
|
|
- 0x3c, 0x7d, 0x01, 0xdd, 0x52, 0xe1, 0x0a, 0x2e, 0x56, 0x4a, 0x72, 0xec, 0x14, 0xd1, 0xeb, 0x38,
|
|
|
- 0xe5, 0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0xa7, 0xea, 0x3c, 0x30, 0x44, 0x03, 0x00, 0x00,
|
|
|
}
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
var _ context.Context
|
|
|
-var _ grpc.ClientConn
|
|
|
+var _ grpc.ClientConnInterface
|
|
|
|
|
|
// 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
|
|
|
+const _ = grpc.SupportPackageIsVersion6
|
|
|
|
|
|
// RemoteControlClient is the client API for RemoteControl service.
|
|
|
//
|
|
@@ -349,15 +347,13 @@ type RemoteControlClient interface {
|
|
|
Biases(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_BiasesClient, error)
|
|
|
Weights(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_WeightsClient, error)
|
|
|
State(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_StateClient, 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
|
|
|
+ cc grpc.ClientConnInterface
|
|
|
}
|
|
|
|
|
|
-func NewRemoteControlClient(cc *grpc.ClientConn) RemoteControlClient {
|
|
|
+func NewRemoteControlClient(cc grpc.ClientConnInterface) RemoteControlClient {
|
|
|
return &remoteControlClient{cc}
|
|
|
}
|
|
|
|
|
@@ -498,24 +494,6 @@ func (x *remoteControlStateClient) Recv() (*NetworkState, error) {
|
|
|
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)
|
|
@@ -523,8 +501,6 @@ type RemoteControlServer interface {
|
|
|
Biases(*None, RemoteControl_BiasesServer) error
|
|
|
Weights(*None, RemoteControl_WeightsServer) error
|
|
|
State(*None, RemoteControl_StateServer) error
|
|
|
- Predict(context.Context, *Matrix) (*Matrix, error)
|
|
|
- DummyStart(context.Context, *None) (*None, error)
|
|
|
}
|
|
|
|
|
|
// UnimplementedRemoteControlServer can be embedded to have forward compatible implementations.
|
|
@@ -546,12 +522,6 @@ func (*UnimplementedRemoteControlServer) Weights(req *None, srv RemoteControl_We
|
|
|
func (*UnimplementedRemoteControlServer) State(req *None, srv RemoteControl_StateServer) error {
|
|
|
return status.Errorf(codes.Unimplemented, "method State 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)
|
|
@@ -659,42 +629,6 @@ func (x *remoteControlStateServer) Send(m *NetworkState) 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),
|
|
@@ -703,14 +637,6 @@ var _RemoteControl_serviceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "getConfiguration",
|
|
|
Handler: _RemoteControl_GetConfiguration_Handler,
|
|
|
},
|
|
|
- {
|
|
|
- MethodName: "predict",
|
|
|
- Handler: _RemoteControl_Predict_Handler,
|
|
|
- },
|
|
|
- {
|
|
|
- MethodName: "dummyStart",
|
|
|
- Handler: _RemoteControl_DummyStart_Handler,
|
|
|
- },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{
|
|
|
{
|