// Copy-pasted from apphost/lib/grpc/protos/service.proto because it is a grpc
// library and grpc links with openssl 1.0 (and I failed to move the service definition
// to a separate PROTO_LIBRARY).
syntax = "proto3";

package NSv.NAppHost;

message TAnswer {
    string SourceName = 1;
    string Type = 2;
    bytes Data = 3;
}

message TMetaFlag {
    string SourceName = 1;
    string FlagName = 2;
}

message THint {
    string SourceName = 1;
    uint64 Value = 2;
}

message TRequest {
    string Guid = 1;
    repeated TAnswer Answers = 2;
    string Path = 6;
    uint64 Ruid = 7;
    repeated TMetaFlag MetaFlags = 9;
    // Extension for streaming into subgraphs.
    repeated string Done = 81;
}

message TResponse {
    repeated TAnswer Answers = 1;
    repeated THint Hints = 3;
    repeated string Flags = 4;
    repeated bytes LogLines = 5;
}
