Packages

Generated Elixir gRPC contracts for Cratis Chronicle - the open-source event-sourcing database

Current section

Files

Jump to
cratis_chronicle_contracts lib generated seeding.pb.ex
Raw

lib/generated/seeding.pb.ex

defmodule Cratis.Chronicle.Contracts.Seeding.ValidationResultSeverity do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Unknown, 0
field :Information, 1
field :Warning, 2
field :Error, 3
end
defmodule Cratis.Chronicle.Contracts.Seeding.AddSeedEntryRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Namespace, 2, type: :string
field :EventSourceId, 3, type: :string
field :EventTypeId, 4, type: :string
field :Content, 5, type: :string
field :IsGlobal, 6, type: :bool
end
defmodule Cratis.Chronicle.Contracts.Seeding.CommandResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :AuthorizationFailureReason, 6, type: :string
end
defmodule Cratis.Chronicle.Contracts.Seeding.EventSourceSeedEntries do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.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.17.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.GetGlobalSeedDataRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Seeding.GetNamespaceSeedDataRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.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.17.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.QueryResult_SeedDataResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :CorrelationId, 1, type: Bcl.Guid
field :IsAuthorized, 2, type: :bool
field :ValidationResults, 3,
repeated: true,
type: Cratis.Chronicle.Contracts.Seeding.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :Data, 6, type: Cratis.Chronicle.Contracts.Seeding.SeedDataResponse
end
defmodule Cratis.Chronicle.Contracts.Seeding.SeedDataResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.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.SeedEventsRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.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.17.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.ValidationResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Severity, 1,
type: Cratis.Chronicle.Contracts.Seeding.ValidationResultSeverity,
enum: true
field :Message, 2, type: :string
field :Members, 3, 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.17.0"
rpc :AddSeedEntry,
Cratis.Chronicle.Contracts.Seeding.AddSeedEntryRequest,
Cratis.Chronicle.Contracts.Seeding.CommandResult
rpc :GetGlobalSeedData,
Cratis.Chronicle.Contracts.Seeding.GetGlobalSeedDataRequest,
Cratis.Chronicle.Contracts.Seeding.QueryResult_SeedDataResponse
rpc :GetNamespaceSeedData,
Cratis.Chronicle.Contracts.Seeding.GetNamespaceSeedDataRequest,
Cratis.Chronicle.Contracts.Seeding.QueryResult_SeedDataResponse
rpc :SeedEvents,
Cratis.Chronicle.Contracts.Seeding.SeedEventsRequest,
Cratis.Chronicle.Contracts.Seeding.CommandResult
end
defmodule Cratis.Chronicle.Contracts.Seeding.EventSeeding.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Seeding.EventSeeding.Service
end