defmodule Cratis.Chronicle.Contracts.Seeding.EventSourceSeedEntries do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventSourceId, 1, type: :string
field :Entries, 2, repeated: true, type: Cratis.Chronicle.Contracts.Seeding.SeedingEntry
end
defmodule Cratis.Chronicle.Contracts.Seeding.EventTypeSeedEntries do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventTypeId, 1, type: :string
field :Entries, 2, repeated: true, type: Cratis.Chronicle.Contracts.Seeding.SeedingEntry
end
defmodule Cratis.Chronicle.Contracts.Seeding.GetSeedDataRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Seeding.NamespacedSeedEntries do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :Namespace, 1, type: :string
field :ByEventType, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventTypeSeedEntries
field :ByEventSource, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventSourceSeedEntries
end
defmodule Cratis.Chronicle.Contracts.Seeding.SeedDataResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :ByEventType, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventTypeSeedEntries
field :ByEventSource, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventSourceSeedEntries
end
defmodule Cratis.Chronicle.Contracts.Seeding.SeedRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventStore, 1, type: :string
field :GlobalByEventType, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventTypeSeedEntries
field :GlobalByEventSource, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.EventSourceSeedEntries
field :NamespacedEntries, 4,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.NamespacedSeedEntries
end
defmodule Cratis.Chronicle.Contracts.Seeding.SeedingEntry do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.16.0", syntax: :proto3
field :EventSourceId, 1, type: :string
field :EventTypeId, 2, type: :string
field :Content, 3, type: :string
field :Tags, 4, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.Seeding.EventSeeding.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.Seeding.EventSeeding",
protoc_gen_elixir_version: "0.16.0"
rpc :GetGlobalSeedData,
Cratis.Chronicle.Contracts.Seeding.GetSeedDataRequest,
Cratis.Chronicle.Contracts.Seeding.SeedDataResponse
rpc :GetNamespaceSeedData,
Cratis.Chronicle.Contracts.Seeding.GetSeedDataRequest,
Cratis.Chronicle.Contracts.Seeding.SeedDataResponse
rpc :Seed, Cratis.Chronicle.Contracts.Seeding.SeedRequest, Google.Protobuf.Empty
end
defmodule Cratis.Chronicle.Contracts.Seeding.EventSeeding.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Seeding.EventSeeding.Service
end