syntax = "proto3";

import "google/protobuf/any.proto";
import "google/rpc/status.proto";

package mesytec.mnode.proto.mrpc;

message MethodCall
{
    // Service::GetDescriptor()->full_name()
    string service = 1;
    // MethodDescriptor::full_name()
    string method = 2;
    // Must be of type Service::GetRequestPrototype(method)
    google.protobuf.Any request = 3;
}

message MethodCallResponse
{
    google.rpc.Status status = 1;
    // Is of type Service::GetResponsePrototype(method)
    google.protobuf.Any response = 2;
}
