Skip to content

Commit cd505da

Browse files
Create new protocol
1 parent f341f1d commit cd505da

File tree

17 files changed

+239
-1173
lines changed

17 files changed

+239
-1173
lines changed

grpc/java/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ java_grpc_library(
1919
"//proto:logic-proto",
2020
"//proto:options-proto",
2121
"//proto:query-proto",
22-
"//proto:session-proto",
2322
"//proto:transaction-proto",
2423
"//proto:version-proto",
2524
],

grpc/nodejs/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ ts_grpc_compile(
3535
"//proto:logic-proto",
3636
"//proto:options-proto",
3737
"//proto:query-proto",
38-
"//proto:session-proto",
3938
"//proto:transaction-proto",
4039
"//proto:version-proto",
4140
]

grpc/rust/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ rust_tonic_compile(
2222
"//proto:logic-proto",
2323
"//proto:options-proto",
2424
"//proto:query-proto",
25-
"//proto:session-proto",
2625
"//proto:transaction-proto",
2726
"//proto:version-proto",
2827
]

proto/BUILD

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ proto_library(
1414
":server-proto",
1515
":user-proto",
1616
":database-proto",
17-
":session-proto",
1817
":transaction-proto",
1918
],
2019
)
@@ -75,11 +74,6 @@ proto_library(
7574
],
7675
)
7776

78-
proto_library(
79-
name = "session-proto",
80-
srcs = ["session.proto"],
81-
deps = [":options-proto"],
82-
)
8377

8478
proto_library(
8579
name = "transaction-proto",
@@ -109,7 +103,6 @@ filegroup(
109103
"connection.proto",
110104
"options.proto",
111105
"query.proto",
112-
"session.proto",
113106
"transaction.proto",
114107
"logic.proto",
115108
"version.proto",

proto/answer.proto

Lines changed: 26 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,39 @@
44

55
syntax = "proto3";
66

7-
option java_package = "com.vaticle.typedb.protocol";
8-
option java_outer_classname = "AnswerProto";
9-
107
import "proto/concept.proto";
118

129
package typedb.protocol;
1310

1411
message ConceptMap {
1512
map<string, Concept> map = 1;
16-
Explainables explainables = 2;
17-
}
18-
19-
message Explainables {
20-
map<string, Explainable> relations = 1;
21-
map<string, Explainable> attributes = 2;
22-
map<string, Owned> ownerships = 3;
23-
24-
message Owned {
25-
map<string, Explainable> owned = 1;
26-
}
27-
}
28-
29-
message Explainable {
30-
string conjunction = 1;
31-
int64 id = 2;
32-
}
33-
34-
message ConceptMapGroup {
35-
Concept owner = 1;
36-
repeated ConceptMap concept_maps = 2;
37-
}
38-
39-
message ValueGroup {
40-
Concept owner = 1;
41-
optional Value value = 2;
13+
// Explainables explainables = 2;
4214
}
15+
//
16+
//message Explainables {
17+
// map<string, Explainable> relations = 1;
18+
// map<string, Explainable> attributes = 2;
19+
// map<string, Owned> ownerships = 3;
20+
//
21+
// message Owned {
22+
// map<string, Explainable> owned = 1;
23+
// }
24+
//}
25+
//
26+
//message Explainable {
27+
// string conjunction = 1;
28+
// int64 id = 2;
29+
//}
30+
//
31+
//message ConceptMapGroup {
32+
// Concept owner = 1;
33+
// repeated ConceptMap concept_maps = 2;
34+
//}
35+
//
36+
//message ValueGroup {
37+
// Concept owner = 1;
38+
// optional Value value = 2;
39+
//}
4340

4441
message ReadableConceptTree {
4542

@@ -71,8 +68,6 @@ message ReadableConceptTree {
7168
Attribute attribute = 5;
7269

7370
Value value = 6;
74-
75-
ThingType.Root thing_type_root = 7;
7671
}
7772
}
7873
}

0 commit comments

Comments
 (0)