summaryrefslogtreecommitdiff
path: root/experiment.proto
blob: 4ee16fa7ab572903c2161dadcc6a1ae323be5aa9 (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 virtbuf;

import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
import "google/protobuf/any.proto"; // Import the well-known type for Timestamp

// global settings for autogenpb `autogenpb:no-sort` `autogenpb:no-marshal`

message WhatsThis {
                                                          // is it possible to have custom formatting in JSON and TEXT marshal/unmarshal ?
        WhatInfo                    humantest       = 1;

        google.protobuf.Timestamp   end             = 2;  // end time
        google.protobuf.Any         orig_val        = 3;  // original value
        google.protobuf.Any         new_val         = 4;  // new value
}

// this is for exerimenting
message WhatInfo {
        int64                       capacity        = 1;  // Stores the storage capacity in bytes.
}

message Experiment {
}

message Experiments {                                     // `autogenpb:marshal` `autogenpb:mutex`
        string                      uuid            = 1;  // `autogenpb:uuid:aadb95db-d798-4647-8c59-cce82e8f1ed6`
        string                      version         = 2;  // `autogenpb:version:v0.0.1`
        repeated Experiment         Experiments     = 3;  // THIS MUST BE  Experiment  and then  Experiments
}