Skip to content

Commit 498f5cc

Browse files
author
Adriano Santos
committed
fix: build any without new function
1 parent 9f47bcc commit 498f5cc

File tree

8 files changed

+230
-216
lines changed

8 files changed

+230
-216
lines changed

lib/_generated/io/cloudevents/v1/spec.pb.ex

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ defmodule Io.Cloudevents.V1.CloudEvent.AttributesEntry do
5858
}
5959
end
6060

61-
field :key, 1, type: :string
62-
field :value, 2, type: Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue
61+
field(:key, 1, type: :string)
62+
field(:value, 2, type: Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue)
6363
end
6464

6565
defmodule Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue do
@@ -184,15 +184,15 @@ defmodule Io.Cloudevents.V1.CloudEvent.CloudEventAttributeValue do
184184
}
185185
end
186186

187-
oneof :attr, 0
187+
oneof(:attr, 0)
188188

189-
field :ce_boolean, 1, type: :bool, json_name: "ceBoolean", oneof: 0
190-
field :ce_integer, 2, type: :int32, json_name: "ceInteger", oneof: 0
191-
field :ce_string, 3, type: :string, json_name: "ceString", oneof: 0
192-
field :ce_bytes, 4, type: :bytes, json_name: "ceBytes", oneof: 0
193-
field :ce_uri, 5, type: :string, json_name: "ceUri", oneof: 0
194-
field :ce_uri_ref, 6, type: :string, json_name: "ceUriRef", oneof: 0
195-
field :ce_timestamp, 7, type: Google.Protobuf.Timestamp, json_name: "ceTimestamp", oneof: 0
189+
field(:ce_boolean, 1, type: :bool, json_name: "ceBoolean", oneof: 0)
190+
field(:ce_integer, 2, type: :int32, json_name: "ceInteger", oneof: 0)
191+
field(:ce_string, 3, type: :string, json_name: "ceString", oneof: 0)
192+
field(:ce_bytes, 4, type: :bytes, json_name: "ceBytes", oneof: 0)
193+
field(:ce_uri, 5, type: :string, json_name: "ceUri", oneof: 0)
194+
field(:ce_uri_ref, 6, type: :string, json_name: "ceUriRef", oneof: 0)
195+
field(:ce_timestamp, 7, type: Google.Protobuf.Timestamp, json_name: "ceTimestamp", oneof: 0)
196196
end
197197

198198
defmodule Io.Cloudevents.V1.CloudEvent do
@@ -502,19 +502,20 @@ defmodule Io.Cloudevents.V1.CloudEvent do
502502
}
503503
end
504504

505-
oneof :data, 0
505+
oneof(:data, 0)
506506

507-
field :id, 1, type: :string
508-
field :source, 2, type: :string
509-
field :spec_version, 3, type: :string, json_name: "specVersion"
510-
field :type, 4, type: :string
507+
field(:id, 1, type: :string)
508+
field(:source, 2, type: :string)
509+
field(:spec_version, 3, type: :string, json_name: "specVersion")
510+
field(:type, 4, type: :string)
511511

512-
field :attributes, 5,
512+
field(:attributes, 5,
513513
repeated: true,
514514
type: Io.Cloudevents.V1.CloudEvent.AttributesEntry,
515515
map: true
516+
)
516517

517-
field :binary_data, 6, type: :bytes, json_name: "binaryData", oneof: 0
518-
field :text_data, 7, type: :string, json_name: "textData", oneof: 0
519-
field :proto_data, 8, type: Google.Protobuf.Any, json_name: "protoData", oneof: 0
518+
field(:binary_data, 6, type: :bytes, json_name: "binaryData", oneof: 0)
519+
field(:text_data, 7, type: :string, json_name: "textData", oneof: 0)
520+
field(:proto_data, 8, type: Google.Protobuf.Any, json_name: "protoData", oneof: 0)
520521
end

lib/_generated/spawn/actors/actor.pb.ex

Lines changed: 63 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
6767
end
6868

6969
defmodule 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)
131131
end
132132

133133
defmodule 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)
223223
end
224224

225225
defmodule 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)
277277
end
278278

279279
defmodule 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)
324324
end
325325

326326
defmodule 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)
371371
end
372372

373373
defmodule 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)
410410
end
411411

412412
defmodule 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)
449449
end
450450

451451
defmodule 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)
503503
end
504504

505505
defmodule 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)
567567
end
568568

569569
defmodule 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)
674674
end
675675

676676
defmodule 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)
738738
end
739739

740740
defmodule 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)
845845
end
846846

847847
defmodule 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)
899899
end
900900

901901
defmodule 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")
983983
end
984984

985985
defmodule 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)
10451045
end
10461046

10471047
defmodule 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")
11331134
end
11341135

11351136
defmodule 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")
12881292
end
12891293

12901294
defmodule 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)
13571361
end
13581362

13591363
defmodule 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+
)
14751480
end

0 commit comments

Comments
 (0)