Skip to content

Commit 6ee6f80

Browse files
Tobias Hafnervogti
authored andcommitted
Replace proto entries with maps
1 parent 933920b commit 6ee6f80

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

org/polypheny/prism/value.proto

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -264,21 +264,12 @@ message ProtoList {
264264
}
265265

266266
/*
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.
278269
*/
279270
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;
282273
}
283274

284275
/*
@@ -299,7 +290,7 @@ message ProtoNode {
299290
// The name of the node as specified on creation.
300291
string name = 2;
301292
// 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;
303294
// This list contains all labels associated with this node. Normal strings are used instead of ProtoStrings.
304295
repeated string labels = 4;
305296
}
@@ -315,7 +306,7 @@ message ProtoEdge {
315306
// The name of the node as specified on creation.
316307
string name = 2;
317308
// 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;
319310
// This list contains all labels associated with this node. Normal strings are used instead of ProtoStrings.
320311
repeated string labels = 4;
321312
// The system internal unique identifier of the node from which this edge originates.

0 commit comments

Comments
 (0)