@@ -264,21 +264,12 @@ message ProtoList {
264
264
}
265
265
266
266
/*
267
- Defines a key-value pair using ProtoValues for both key and value.
268
- */
269
- message ProtoEntry {
270
- // The key of the entry.
271
- ProtoValue key = 1 ;
272
- // The value of the entry.
273
- ProtoValue value = 2 ;
274
- }
275
-
276
- /*
277
- Represents a document consisting of multiple ProtoEntry items.
267
+ Represents a document consisting of multiple key-value pairs.
268
+ Keys are always strings while the values are arbitrary proto values.
278
269
*/
279
270
message ProtoDocument {
280
- // The list of ProtoEntry items forming the document.
281
- repeated ProtoEntry entries = 1 ;
271
+ // The map of key-value pairs representing the document.
272
+ map < string , ProtoValue > entries = 1 ;
282
273
}
283
274
284
275
/*
@@ -299,7 +290,7 @@ message ProtoNode {
299
290
// The name of the node as specified on creation.
300
291
string name = 2 ;
301
292
// A map of key-value pairs of proto values. These are used as a map to store properties with their corresponding names.
302
- repeated ProtoEntry properties = 3 ;
293
+ map < string , ProtoValue > properties = 3 ;
303
294
// This list contains all labels associated with this node. Normal strings are used instead of ProtoStrings.
304
295
repeated string labels = 4 ;
305
296
}
@@ -315,7 +306,7 @@ message ProtoEdge {
315
306
// The name of the node as specified on creation.
316
307
string name = 2 ;
317
308
// A map of key-value pairs of proto values. These are used as a map to store properties with their corresponding names.
318
- repeated ProtoEntry properties = 3 ;
309
+ map < string , ProtoValue > properties = 3 ;
319
310
// This list contains all labels associated with this node. Normal strings are used instead of ProtoStrings.
320
311
repeated string labels = 4 ;
321
312
// The system internal unique identifier of the node from which this edge originates.
0 commit comments