summaryrefslogtreecommitdiff
path: root/chat.proto
blob: a610d2ea8e4e1c1d060b5ccb4f079a99b6901817 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
syntax = "proto3";

package chatpb;

message Row {
        repeated string   fields      = 1;
}

message Table {
        int32             columns     = 1;
        repeated Row      rows        = 2;
}

enum Who {
        NOONE  = 0;
        GEMINI = 1;
        USER = 2;
}

message Chat {
        Who               from        = 1;
        string            content     = 3;
        Table             table       = 4;
}

message Chats {                             // `autogenpb:marshal` `autogenpb:mutex`
        string            uuid        = 1;  // `autogenpb:uuid:9fd31f10-c25d-4d66-bc8d-5f6eb7c79057`
        string            version     = 2;  // `autogenpb:version:v0.0.1`
        repeated Chat     Chats       = 3;  // THIS MUST BE  Chat  and then  Chats
}