20 lines
656 B
Protocol Buffer
20 lines
656 B
Protocol Buffer
|
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
|
||
|
|
||
|
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.
|
||
|
}
|