@@ -115,23 +115,24 @@ message Thing {
115115 Thing.Delete.Req thing_delete_req = 100 ;
116116 Thing.GetType.Req thing_get_type_req = 101 ;
117117 Thing.IsInferred.Req thing_is_inferred_req = 102 ;
118- Thing.SetHas .Req thing_set_has_req = 103 ;
119- Thing.UnsetHas .Req thing_unset_has_req = 104 ;
120- Thing.GetHas .Req thing_get_has_req = 105 ;
118+ Thing.GetHas .Req thing_get_has_req = 103 ;
119+ Thing.SetHas .Req thing_set_has_req = 104 ;
120+ Thing.UnsetHas .Req thing_unset_has_req = 105 ;
121121 Thing.GetRelations.Req thing_get_relations_req = 106 ;
122- Thing.GetPlays .Req thing_get_plays_req = 107 ;
122+ Thing.GetPlaying .Req thing_get_playing_req = 107 ;
123123
124124 // Relation method requests
125125 Relation.AddPlayer.Req relation_add_player_req = 200 ;
126126 Relation.RemovePlayer.Req relation_remove_player_req = 201 ;
127127 Relation.GetPlayers.Req relation_get_players_req = 202 ;
128128 Relation.GetPlayersByRoleType.Req relation_get_players_by_role_type_req = 203 ;
129+ Relation.GetRelating.Req relation_get_relating_req = 204 ;
129130
130131 // Attribute method requests
131132 Attribute.GetOwners.Req attribute_get_owners_req = 300 ;
132133 }
133134 }
134-
135+
135136 message Res {
136137 oneof res {
137138 // Thing method responses
@@ -152,11 +153,12 @@ message Thing {
152153 // Thing method responses
153154 Thing.GetHas.ResPart thing_get_has_res_part = 100 ;
154155 Thing.GetRelations.ResPart thing_get_relations_res_part = 101 ;
155- Thing.GetPlays .ResPart thing_get_plays_res_part = 102 ;
156+ Thing.GetPlaying .ResPart thing_get_playing_res_part = 102 ;
156157
157158 // Relation method responses
158159 Relation.GetPlayers.ResPart relation_get_players_res_part = 200 ;
159160 Relation.GetPlayersByRoleType.ResPart relation_get_players_by_role_type_res_part = 201 ;
161+ Relation.GetRelating.ResPart relation_get_relating_res_part = 202 ;
160162
161163 // Attribute method responses
162164 Attribute.GetOwners.ResPart attribute_get_owners_res_part = 300 ;
@@ -207,7 +209,7 @@ message Thing {
207209 }
208210 }
209211
210- message GetPlays {
212+ message GetPlaying {
211213 message Req {}
212214 message ResPart {
213215 repeated Type role_types = 1 ;
@@ -226,6 +228,22 @@ message Thing {
226228
227229message Relation {
228230
231+ message AddPlayer {
232+ message Req {
233+ Type role_type = 1 ;
234+ Thing player = 2 ;
235+ }
236+ message Res {}
237+ }
238+
239+ message RemovePlayer {
240+ message Req {
241+ Type role_type = 1 ;
242+ Thing player = 2 ;
243+ }
244+ message Res {}
245+ }
246+
229247 message GetPlayers {
230248 message Req {
231249 repeated Type role_types = 1 ;
@@ -246,36 +264,16 @@ message Relation {
246264 }
247265 }
248266
249- message AddPlayer {
250- message Req {
251- Type role_type = 1 ;
252- Thing player = 2 ;
253- }
254- message Res {}
255- }
256-
257- message RemovePlayer {
258- message Req {
259- Type role_type = 1 ;
260- Thing player = 2 ;
267+ message GetRelating {
268+ message Req {}
269+ message ResPart {
270+ repeated Type role_types = 1 ;
261271 }
262- message Res {}
263272 }
264273}
265274
266275message Attribute {
267276
268- message GetOwners {
269- message Req {
270- oneof filter {
271- Type thing_type = 1 ;
272- }
273- }
274- message ResPart {
275- repeated Thing things = 1 ;
276- }
277- }
278-
279277 message Value {
280278 oneof value {
281279 string string = 1 ;
@@ -286,6 +284,17 @@ message Attribute {
286284 int64 date_time = 5 ;
287285 }
288286 }
287+
288+ message GetOwners {
289+ message Req {
290+ oneof filter {
291+ Type thing_type = 1 ;
292+ }
293+ }
294+ message ResPart {
295+ repeated Thing things = 1 ;
296+ }
297+ }
289298}
290299
291300message Type {
@@ -313,25 +322,25 @@ message Type {
313322 RoleType.GetPlayers.Req role_type_get_players_req = 201 ;
314323
315324 // ThingType method requests
316- ThingType.SetAbstract .Req thing_type_set_abstract_req = 300 ;
317- ThingType.UnsetAbstract .Req thing_type_unset_abstract_req = 301 ;
318- ThingType.SetOwns .Req thing_type_set_owns_req = 302 ;
319- ThingType.UnsetOwns .Req thing_type_unset_owns_req = 303 ;
320- ThingType.SetPlays .Req thing_type_set_plays_req = 304 ;
321- ThingType.UnsetPlays .Req thing_type_unset_plays_req = 305 ;
322- ThingType.GetInstances .Req thing_type_get_instances_req = 306 ;
323- ThingType.GetOwns .Req thing_type_get_owns_req = 307 ;
324- ThingType.GetPlays .Req thing_type_get_plays_req = 308 ;
325+ ThingType.GetInstances .Req thing_type_get_instances_req = 300 ;
326+ ThingType.SetAbstract .Req thing_type_set_abstract_req = 301 ;
327+ ThingType.UnsetAbstract .Req thing_type_unset_abstract_req = 302 ;
328+ ThingType.GetOwns .Req thing_type_get_owns_req = 303 ;
329+ ThingType.SetOwns .Req thing_type_set_owns_req = 304 ;
330+ ThingType.UnsetOwns .Req thing_type_unset_owns_req = 305 ;
331+ ThingType.GetPlays .Req thing_type_get_plays_req = 306 ;
332+ ThingType.SetPlays .Req thing_type_set_plays_req = 307 ;
333+ ThingType.UnsetPlays .Req thing_type_unset_plays_req = 308 ;
325334
326335 // EntityType method requests
327336 EntityType.Create.Req entity_type_create_req = 400 ;
328337
329338 // RelationType method requests
330339 RelationType.Create.Req relation_type_create_req = 500 ;
331340 RelationType.GetRelatesForRoleLabel.Req relation_type_get_relates_for_role_label_req = 501 ;
332- RelationType.SetRelates .Req relation_type_set_relates_req = 502 ;
333- RelationType.UnsetRelates .Req relation_type_unset_relates_req = 503 ;
334- RelationType.GetRelates .Req relation_type_get_relates_req = 504 ;
341+ RelationType.GetRelates .Req relation_type_get_relates_req = 502 ;
342+ RelationType.SetRelates .Req relation_type_set_relates_req = 503 ;
343+ RelationType.UnsetRelates .Req relation_type_unset_relates_req = 504 ;
335344
336345 // AttributeType method requests
337346 AttributeType.Put.Req attribute_type_put_req = 600 ;
0 commit comments