@@ -57,13 +57,13 @@ defmodule Spawn.Actors.Kind do
5757 }
5858 end
5959
60- field :UNKNOW_KIND , 0
61- field :NAMED , 1
62- field :UNNAMED , 2
63- field :POOLED , 3
64- field :PROXY , 4
65- field :TASK , 5
66- field :PROJECTION , 6
60+ field ( :UNKNOW_KIND , 0 )
61+ field ( :NAMED , 1 )
62+ field ( :UNNAMED , 2 )
63+ field ( :POOLED , 3 )
64+ field ( :PROXY , 4 )
65+ field ( :TASK , 5 )
66+ field ( :PROJECTION , 6 )
6767end
6868
6969defmodule Spawn.Actors.Registry.ActorsEntry do
@@ -126,8 +126,8 @@ defmodule Spawn.Actors.Registry.ActorsEntry do
126126 }
127127 end
128128
129- field :key , 1 , type: :string
130- field :value , 2 , type: Spawn.Actors.Actor
129+ field ( :key , 1 , type: :string )
130+ field ( :value , 2 , type: Spawn.Actors.Actor )
131131end
132132
133133defmodule Spawn.Actors.Registry do
@@ -219,7 +219,7 @@ defmodule Spawn.Actors.Registry do
219219 }
220220 end
221221
222- field :actors , 1 , repeated: true , type: Spawn.Actors.Registry.ActorsEntry , map: true
222+ field ( :actors , 1 , repeated: true , type: Spawn.Actors.Registry.ActorsEntry , map: true )
223223end
224224
225225defmodule Spawn.Actors.ActorSystem do
@@ -272,8 +272,8 @@ defmodule Spawn.Actors.ActorSystem do
272272 }
273273 end
274274
275- field :name , 1 , type: :string
276- field :registry , 2 , type: Spawn.Actors.Registry
275+ field ( :name , 1 , type: :string )
276+ field ( :registry , 2 , type: Spawn.Actors.Registry )
277277end
278278
279279defmodule Spawn.Actors.ActorSnapshotStrategy do
@@ -318,9 +318,9 @@ defmodule Spawn.Actors.ActorSnapshotStrategy do
318318 }
319319 end
320320
321- oneof :strategy , 0
321+ oneof ( :strategy , 0 )
322322
323- field :timeout , 1 , type: Spawn.Actors.TimeoutStrategy , oneof: 0
323+ field ( :timeout , 1 , type: Spawn.Actors.TimeoutStrategy , oneof: 0 )
324324end
325325
326326defmodule Spawn.Actors.ActorDeactivationStrategy do
@@ -365,9 +365,9 @@ defmodule Spawn.Actors.ActorDeactivationStrategy do
365365 }
366366 end
367367
368- oneof :strategy , 0
368+ oneof ( :strategy , 0 )
369369
370- field :timeout , 1 , type: Spawn.Actors.TimeoutStrategy , oneof: 0
370+ field ( :timeout , 1 , type: Spawn.Actors.TimeoutStrategy , oneof: 0 )
371371end
372372
373373defmodule Spawn.Actors.TimeoutStrategy do
@@ -406,7 +406,7 @@ defmodule Spawn.Actors.TimeoutStrategy do
406406 }
407407 end
408408
409- field :timeout , 1 , type: :int64
409+ field ( :timeout , 1 , type: :int64 )
410410end
411411
412412defmodule Spawn.Actors.Action do
@@ -445,7 +445,7 @@ defmodule Spawn.Actors.Action do
445445 }
446446 end
447447
448- field :name , 1 , type: :string
448+ field ( :name , 1 , type: :string )
449449end
450450
451451defmodule Spawn.Actors.FixedTimerAction do
@@ -498,8 +498,8 @@ defmodule Spawn.Actors.FixedTimerAction do
498498 }
499499 end
500500
501- field :seconds , 1 , type: :int32
502- field :action , 2 , type: Spawn.Actors.Action
501+ field ( :seconds , 1 , type: :int32 )
502+ field ( :action , 2 , type: Spawn.Actors.Action )
503503end
504504
505505defmodule Spawn.Actors.ActorState.TagsEntry do
@@ -562,8 +562,8 @@ defmodule Spawn.Actors.ActorState.TagsEntry do
562562 }
563563 end
564564
565- field :key , 1 , type: :string
566- field :value , 2 , type: :string
565+ field ( :key , 1 , type: :string )
566+ field ( :value , 2 , type: :string )
567567end
568568
569569defmodule Spawn.Actors.ActorState do
@@ -669,8 +669,8 @@ defmodule Spawn.Actors.ActorState do
669669 }
670670 end
671671
672- field :tags , 1 , repeated: true , type: Spawn.Actors.ActorState.TagsEntry , map: true
673- field :state , 2 , type: Google.Protobuf.Any
672+ field ( :tags , 1 , repeated: true , type: Spawn.Actors.ActorState.TagsEntry , map: true )
673+ field ( :state , 2 , type: Google.Protobuf.Any )
674674end
675675
676676defmodule Spawn.Actors.Metadata.TagsEntry do
@@ -733,8 +733,8 @@ defmodule Spawn.Actors.Metadata.TagsEntry do
733733 }
734734 end
735735
736- field :key , 1 , type: :string
737- field :value , 2 , type: :string
736+ field ( :key , 1 , type: :string )
737+ field ( :value , 2 , type: :string )
738738end
739739
740740defmodule Spawn.Actors.Metadata do
@@ -840,8 +840,8 @@ defmodule Spawn.Actors.Metadata do
840840 }
841841 end
842842
843- field :channel_group , 1 , repeated: true , type: Spawn.Actors.Channel , json_name: "channelGroup"
844- field :tags , 2 , repeated: true , type: Spawn.Actors.Metadata.TagsEntry , map: true
843+ field ( :channel_group , 1 , repeated: true , type: Spawn.Actors.Channel , json_name: "channelGroup" )
844+ field ( :tags , 2 , repeated: true , type: Spawn.Actors.Metadata.TagsEntry , map: true )
845845end
846846
847847defmodule Spawn.Actors.Channel do
@@ -894,8 +894,8 @@ defmodule Spawn.Actors.Channel do
894894 }
895895 end
896896
897- field :topic , 1 , type: :string
898- field :action , 2 , type: :string
897+ field ( :topic , 1 , type: :string )
898+ field ( :action , 2 , type: :string )
899899end
900900
901901defmodule Spawn.Actors.ProjectionSubject do
@@ -976,10 +976,10 @@ defmodule Spawn.Actors.ProjectionSubject do
976976 }
977977 end
978978
979- field :actor , 1 , type: :string
980- field :source_action , 2 , type: :string , json_name: "sourceAction"
981- field :action , 3 , type: :string
982- field :start_time , 4 , type: Google.Protobuf.Timestamp , json_name: "startTime"
979+ field ( :actor , 1 , type: :string )
980+ field ( :source_action , 2 , type: :string , json_name: "sourceAction" )
981+ field ( :action , 3 , type: :string )
982+ field ( :start_time , 4 , type: Google.Protobuf.Timestamp , json_name: "startTime" )
983983end
984984
985985defmodule Spawn.Actors.EventsRetentionStrategy do
@@ -1038,10 +1038,10 @@ defmodule Spawn.Actors.EventsRetentionStrategy do
10381038 }
10391039 end
10401040
1041- oneof :strategy , 0
1041+ oneof ( :strategy , 0 )
10421042
1043- field :duration_ms , 1 , type: :int64 , json_name: "durationMs" , oneof: 0
1044- field :infinite , 2 , type: :bool , oneof: 0
1043+ field ( :duration_ms , 1 , type: :int64 , json_name: "durationMs" , oneof: 0 )
1044+ field ( :infinite , 2 , type: :bool , oneof: 0 )
10451045end
10461046
10471047defmodule Spawn.Actors.ProjectionSettings do
@@ -1122,14 +1122,15 @@ defmodule Spawn.Actors.ProjectionSettings do
11221122 }
11231123 end
11241124
1125- field :subjects , 1 , repeated: true , type: Spawn.Actors.ProjectionSubject
1126- field :sourceable , 2 , type: :bool
1125+ field ( :subjects , 1 , repeated: true , type: Spawn.Actors.ProjectionSubject )
1126+ field ( :sourceable , 2 , type: :bool )
11271127
1128- field :events_retention_strategy , 3 ,
1128+ field ( :events_retention_strategy , 3 ,
11291129 type: Spawn.Actors.EventsRetentionStrategy ,
11301130 json_name: "eventsRetentionStrategy"
1131+ )
11311132
1132- field :strict_events_ordering , 4 , type: :bool , json_name: "strictEventsOrdering"
1133+ field ( :strict_events_ordering , 4 , type: :bool , json_name: "strictEventsOrdering" )
11331134end
11341135
11351136defmodule Spawn.Actors.ActorSettings do
@@ -1266,25 +1267,28 @@ defmodule Spawn.Actors.ActorSettings do
12661267 }
12671268 end
12681269
1269- field :kind , 1 , type: Spawn.Actors.Kind , enum: true
1270- field :stateful , 2 , type: :bool
1270+ field ( :kind , 1 , type: Spawn.Actors.Kind , enum: true )
1271+ field ( :stateful , 2 , type: :bool )
12711272
1272- field :snapshot_strategy , 3 ,
1273+ field ( :snapshot_strategy , 3 ,
12731274 type: Spawn.Actors.ActorSnapshotStrategy ,
12741275 json_name: "snapshotStrategy"
1276+ )
12751277
1276- field :deactivation_strategy , 4 ,
1278+ field ( :deactivation_strategy , 4 ,
12771279 type: Spawn.Actors.ActorDeactivationStrategy ,
12781280 json_name: "deactivationStrategy"
1281+ )
12791282
1280- field :min_pool_size , 5 , type: :int32 , json_name: "minPoolSize"
1281- field :max_pool_size , 6 , type: :int32 , json_name: "maxPoolSize"
1283+ field ( :min_pool_size , 5 , type: :int32 , json_name: "minPoolSize" )
1284+ field ( :max_pool_size , 6 , type: :int32 , json_name: "maxPoolSize" )
12821285
1283- field :projection_settings , 7 ,
1286+ field ( :projection_settings , 7 ,
12841287 type: Spawn.Actors.ProjectionSettings ,
12851288 json_name: "projectionSettings"
1289+ )
12861290
1287- field :state_type , 8 , type: :string , json_name: "stateType"
1291+ field ( :state_type , 8 , type: :string , json_name: "stateType" )
12881292end
12891293
12901294defmodule Spawn.Actors.ActorId do
@@ -1351,9 +1355,9 @@ defmodule Spawn.Actors.ActorId do
13511355 }
13521356 end
13531357
1354- field :name , 1 , type: :string
1355- field :system , 2 , type: :string
1356- field :parent , 3 , type: :string
1358+ field ( :name , 1 , type: :string )
1359+ field ( :system , 2 , type: :string )
1360+ field ( :parent , 3 , type: :string )
13571361end
13581362
13591363defmodule Spawn.Actors.Actor do
@@ -1462,14 +1466,15 @@ defmodule Spawn.Actors.Actor do
14621466 }
14631467 end
14641468
1465- field :id , 1 , type: Spawn.Actors.ActorId
1466- field :state , 2 , type: Spawn.Actors.ActorState
1467- field :metadata , 6 , type: Spawn.Actors.Metadata
1468- field :settings , 3 , type: Spawn.Actors.ActorSettings
1469- field :actions , 4 , repeated: true , type: Spawn.Actors.Action
1469+ field ( :id , 1 , type: Spawn.Actors.ActorId )
1470+ field ( :state , 2 , type: Spawn.Actors.ActorState )
1471+ field ( :metadata , 6 , type: Spawn.Actors.Metadata )
1472+ field ( :settings , 3 , type: Spawn.Actors.ActorSettings )
1473+ field ( :actions , 4 , repeated: true , type: Spawn.Actors.Action )
14701474
1471- field :timer_actions , 5 ,
1475+ field ( :timer_actions , 5 ,
14721476 repeated: true ,
14731477 type: Spawn.Actors.FixedTimerAction ,
14741478 json_name: "timerActions"
1479+ )
14751480end
0 commit comments