Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame^] | 1 | syntax = "proto2"; |
2 | |||||
3 | package binstore.binaryblobproto; | ||||
4 | |||||
5 | message BinaryBlob { | ||||
6 | optional string blob_id = 1; // A valid, unique unix path as identifier | ||||
7 | optional bytes data = 2; | ||||
8 | } | ||||
9 | |||||
10 | /* BinaryBlobBase is analogous to a directory of BinaryBlobs. */ | ||||
11 | message BinaryBlobBase { | ||||
12 | optional string blob_base_id = 1; // Common parent path of contained blobs | ||||
13 | repeated BinaryBlob blobs = 2; | ||||
14 | optional uint32 max_size_bytes = 3; | ||||
15 | } |