Packages

cratis_chronicle_contracts

19.7.0
19.71.0 19.70.0 19.69.0 19.68.0 19.67.0 19.66.0 19.65.2 19.65.1 19.65.0 19.64.2 19.64.1 19.64.0 19.63.0 19.62.4 19.62.3 19.62.2 19.62.1 19.62.0 19.61.0 19.60.0 19.59.7 19.59.6 19.59.5 19.59.4 19.59.3 19.59.2 19.59.1 19.59.0 19.58.0 19.57.1 19.57.0 19.56.1 19.56.0 19.55.2 19.55.1 19.55.0 19.54.1 19.54.0 19.53.3 19.53.2 19.53.1 19.53.0 19.52.0 19.51.2 19.51.1 19.51.0 19.50.1 19.50.0 19.49.0 19.48.0 19.47.0 19.46.0 19.45.0 19.44.0 19.43.0 19.42.0 19.41.0 19.40.1 19.40.0 19.39.2 19.39.1 19.39.0 19.38.2 19.38.1 19.38.0 19.37.9 19.37.8 19.37.7 19.37.6 19.37.5 19.37.4 19.37.3 19.37.2 19.37.1 19.37.0 19.36.0 19.35.2 19.35.1 19.35.0 19.34.2 19.34.1 19.34.0 19.33.4 19.33.3 19.33.2 19.33.1 19.33.0 19.32.5 19.32.4 19.32.3 19.32.2 19.32.1 19.32.0 19.31.11 19.31.10 19.31.9 19.31.8 19.31.7 19.31.6 19.31.5 19.31.4 19.31.3 19.31.2 19.31.1 19.31.0 19.30.0 19.29.5 19.29.4 19.29.3 19.29.2 19.29.1 19.29.0 19.28.0 19.27.4 19.27.3 19.27.2 19.27.1 19.27.0 19.26.3 19.26.2 19.26.1 19.26.0 19.25.2 19.25.1 19.25.0 19.24.1 19.24.0 19.23.1 19.23.0 19.22.2 19.22.1 19.22.0 19.21.1 19.21.0 19.20.0 19.19.0 19.18.0 19.17.0 19.16.1 19.16.0 19.15.0 19.14.2 19.14.1 19.14.0 19.13.3 19.13.2 19.13.1 19.13.0 19.12.0 19.11.1 19.11.0 19.10.1 19.10.0 19.9.0 19.8.1 19.8.0 19.7.11 19.7.10 19.7.9 19.7.8 19.7.7 19.7.6 19.7.5 19.7.4 19.7.3 19.7.2 19.7.1 19.7.0 19.6.1 19.6.0 19.5.0 19.4.9-hotfix.3 19.4.9-hotfix.1 19.4.8 19.4.7 19.4.6 19.4.5 19.4.4 19.4.3 19.4.2 19.4.1 19.4.0 19.3.2 19.3.1 19.3.0 19.2.2 19.2.1 19.2.0 19.1.8 19.1.7 19.1.6 19.1.5 19.1.4 19.1.3 19.1.2 19.1.1 19.1.0 19.0.1 19.0.0 18.5.1 18.5.0 18.4.1 18.4.0 18.3.1 18.3.0 18.2.0 18.1.6 18.1.5 18.1.4 18.1.3 18.1.2 18.1.1 18.1.0 18.0.0 17.1.1 17.1.0 17.0.5 17.0.4 17.0.3 17.0.2 17.0.1 17.0.0 16.45.3 16.45.2 16.45.1 16.45.0 16.44.2 16.44.1 16.44.0 16.43.0 16.42.2 16.42.1 16.42.0 16.41.0 16.40.0 16.39.2 16.39.1 16.39.0 16.38.6 16.38.5 16.38.4 16.38.3 16.38.2 16.38.1 16.38.0 16.37.2 16.37.1 16.37.0 16.36.3 16.36.2 16.36.1 16.36.0 16.35.8 16.35.7 16.35.6 16.35.5 16.35.4 16.35.3 16.35.2 16.35.1 16.35.0 16.34.3 16.34.2 16.34.1 16.34.0 16.33.1 16.33.0 16.32.0 16.31.0 16.30.1 16.30.0 16.29.1 16.29.0 16.28.0 16.27.0 16.26.3 16.26.2 16.26.1 16.26.0 16.25.0 16.24.1 16.24.0 16.23.0 16.22.4 16.22.3 16.22.2 16.22.1 16.22.0 16.21.0 16.20.0 16.19.3 16.19.2 16.19.1 16.19.0 16.18.0 16.17.0 16.16.1 16.16.0 16.15.0 16.13.4 16.13.3 16.13.2 16.13.1 16.13.0 16.12.0 16.11.1 16.11.0 16.10.0 16.9.4 16.9.3 16.9.2 16.9.1 16.9.0 16.8.1 16.8.0 16.7.0 16.6.1 16.6.0 16.5.0 16.4.1 16.4.0 16.3.1 16.3.0 16.2.1 16.2.0 16.1.1 16.1.0 16.0.6 16.0.5 16.0.4 16.0.3 16.0.2 16.0.1 16.0.0 15.41.0 15.40.0 15.39.1 15.39.0 15.38.4 15.38.3 15.38.2 15.38.1 15.38.0 15.37.0 15.36.1 15.36.0 15.35.8 15.35.7 15.35.6 15.35.5 15.35.4 15.35.3 15.35.2 15.35.1 15.35.0 15.34.13 15.34.12 15.34.11 15.34.10 15.34.9 15.34.8 15.34.7 15.34.6 15.34.5 15.34.4 15.34.3 15.34.2 15.31.5 15.31.4 15.31.3 15.31.2 15.31.1 15.31.0 15.30.2 15.30.1 15.30.0 15.29.8 15.29.7 15.29.6 15.29.4 15.29.3 15.29.2 15.29.1 15.29.0 15.28.0 15.27.3 15.27.2 15.27.1 15.27.0 15.26.11 15.26.10 15.26.9 15.26.8 15.26.7 15.26.6 15.26.5 15.26.4 15.26.3 15.26.1 15.25.5 15.25.4 15.25.3

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

Current section

Files

Jump to
cratis_chronicle_contracts lib generated projections.pb.ex
Raw

lib/generated/projections.pb.ex

defmodule Cratis.Chronicle.Contracts.Projections.AutoMap do
  @moduledoc false
  use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Inherit, 0
  field :Disabled, 1
  field :Enabled, 2
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionOwner do
  @moduledoc false
  use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :PROJECTION_OWNER_None, 0
  field :PROJECTION_OWNER_Client, 1
  field :PROJECTION_OWNER_Server, 2
  field :Parent, 3
  field :Kernel, 4
end

defmodule Cratis.Chronicle.Contracts.Projections.ReadModelObserverType do
  @moduledoc false
  use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :NotSet, 0
  field :Reducer, 1
  field :Projection, 2
end

defmodule Cratis.Chronicle.Contracts.Projections.ReadModelOwner do
  @moduledoc false
  use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :READ_MODEL_OWNER_None, 0
  field :READ_MODEL_OWNER_Client, 1
  field :READ_MODEL_OWNER_Server, 2
end

defmodule Cratis.Chronicle.Contracts.Projections.ReadModelSource do
  @moduledoc false
  use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Unknown, 0
  field :Code, 1
  field :User, 2
end

defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.ChildrenEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.NestedEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ChildrenDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :IdentifiedBy, 1, type: :string

  field :From, 2,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition

  field :Join, 3,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition

  field :Children, 4,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.ChildrenEntry,
    map: true

  field :All, 5, type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition

  field :FromEventProperty, 6,
    type: Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition

  field :RemovedWith, 7,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition

  field :RemovedWithJoin, 8,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition

  field :AutoMap, 9, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true

  field :Nested, 10,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition.NestedEntry,
    map: true

  field :NoAutoMapProperties, 11, repeated: true, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :ContainerName, 1, type: :string
  field :Schema, 2, type: :string
  field :Identifier, 3, type: :string
  field :DisplayName, 4, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.EventType do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Id, 1, type: :string
  field :Generation, 2, type: :uint32
  field :Tombstone, 3, type: :bool
end

defmodule Cratis.Chronicle.Contracts.Projections.FromDefinition.PropertiesEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.FromDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Properties, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.FromDefinition.PropertiesEntry,
    map: true

  field :Key, 2, type: :string
  field :ParentKey, 3, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.FromDerivativesDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :EventTypes, 1, repeated: true, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :From, 2, type: Cratis.Chronicle.Contracts.Projections.FromDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Event, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :PropertyExpression, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.FromEveryDefinition.PropertiesEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.FromEveryDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Properties, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition.PropertiesEntry,
    map: true

  field :IncludeChildren, 2, type: :bool
  field :AutoMap, 3, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true
  field :Key, 4, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.GetAllDeclarationsRequest do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :EventStore, 1, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.GetAllDefinitionsRequest do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :EventStore, 1, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :items, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionWithDeclaration do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :items, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionWithDeclaration
end

defmodule Cratis.Chronicle.Contracts.Projections.IndexDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :PropertyPath, 1, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.JoinDefinition.PropertiesEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.JoinDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :On, 1, type: :string

  field :Properties, 2,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.JoinDefinition.PropertiesEntry,
    map: true

  field :Key, 3, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.FromDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.JoinDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.RemovedWithDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: Cratis.Chronicle.Contracts.Projections.EventType
  field :Value, 2, type: Cratis.Chronicle.Contracts.Projections.RemovedWithJoinDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.OneOf_ProjectionPreview_ProjectionDeclarationParsingErrors do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Value0, 1, type: Cratis.Chronicle.Contracts.Projections.ProjectionPreview

  field :Value1, 2,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationParsingErrors
end

defmodule Cratis.Chronicle.Contracts.Projections.PreviewProjectionRequest 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 :EventSequenceId, 3, type: :string
  field :Declaration, 4, type: :string
  field :DraftReadModel, 5, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationParsingErrors do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Errors, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Message, 1, type: :string
  field :Line, 2, type: :int32
  field :Column, 3, type: :int32
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.ChildrenEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.NestedEntry do
  @moduledoc false
  use Protobuf, map: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :key, 1, type: :string
  field :value, 2, type: Cratis.Chronicle.Contracts.Projections.ChildrenDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :EventSequenceId, 1, type: :string
  field :Identifier, 2, type: :string
  field :ReadModel, 3, type: :string
  field :IsActive, 4, type: :bool
  field :IsRewindable, 5, type: :bool
  field :InitialModelState, 6, type: :string

  field :From, 7,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_FromDefinition

  field :Join, 8,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_JoinDefinition

  field :Children, 9,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.ChildrenEntry,
    map: true

  field :FromEvery, 10,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.FromDerivativesDefinition

  field :All, 11, type: Cratis.Chronicle.Contracts.Projections.FromEveryDefinition

  field :FromEventProperty, 12,
    type: Cratis.Chronicle.Contracts.Projections.FromEventPropertyDefinition

  field :RemovedWith, 13,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithDefinition

  field :RemovedWithJoin, 14,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.KeyValuePair_EventType_RemovedWithJoinDefinition

  field :LastUpdated, 15, type: Cratis.Chronicle.Contracts.Projections.SerializableDateTimeOffset
  field :Tags, 16, repeated: true, type: :string
  field :AutoMap, 17, type: Cratis.Chronicle.Contracts.Projections.AutoMap, enum: true

  field :Nested, 18,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition.NestedEntry,
    map: true

  field :SubscribesToAllEvents, 19, type: :bool
  field :NoAutoMapProperties, 20, repeated: true, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionPreview do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :ReadModelEntries, 1, repeated: true, type: :string
  field :ReadModel, 2, type: Cratis.Chronicle.Contracts.Projections.ReadModelDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.ProjectionWithDeclaration do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Identifier, 1, type: :string
  field :ContainerName, 2, type: :string
  field :Declaration, 3, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.ReadModelDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Type, 1, type: Cratis.Chronicle.Contracts.Projections.ReadModelType
  field :ContainerName, 2, type: :string
  field :DisplayName, 3, type: :string
  field :Sink, 4, type: Cratis.Chronicle.Contracts.Projections.SinkDefinition
  field :Schema, 5, type: :string
  field :Indexes, 6, repeated: true, type: Cratis.Chronicle.Contracts.Projections.IndexDefinition

  field :ObserverType, 7,
    type: Cratis.Chronicle.Contracts.Projections.ReadModelObserverType,
    enum: true

  field :ObserverIdentifier, 8, type: :string
  field :Owner, 9, type: Cratis.Chronicle.Contracts.Projections.ReadModelOwner, enum: true
  field :Source, 10, type: Cratis.Chronicle.Contracts.Projections.ReadModelSource, enum: true
end

defmodule Cratis.Chronicle.Contracts.Projections.ReadModelType do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Identifier, 1, type: :string
  field :Generation, 2, type: :uint32
end

defmodule Cratis.Chronicle.Contracts.Projections.RegisterRequest do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :EventStore, 1, type: :string
  field :Owner, 2, type: Cratis.Chronicle.Contracts.Projections.ProjectionOwner, enum: true

  field :Projections, 3,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDefinition

  field :FullSet, 4, type: :bool
end

defmodule Cratis.Chronicle.Contracts.Projections.RemovedWithDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: :string
  field :ParentKey, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.RemovedWithJoinDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Key, 1, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.SaveProjectionRequest 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 :EventSequenceId, 3, type: :string
  field :Declaration, 4, type: :string
  field :DraftReadModel, 5, type: Cratis.Chronicle.Contracts.Projections.DraftReadModelDefinition
end

defmodule Cratis.Chronicle.Contracts.Projections.SaveProjectionResult do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Errors, 1,
    repeated: true,
    type: Cratis.Chronicle.Contracts.Projections.ProjectionDeclarationSyntaxError
end

defmodule Cratis.Chronicle.Contracts.Projections.SerializableDateTimeOffset do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :Value, 1, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.SinkDefinition do
  @moduledoc false
  use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3

  field :ConfigurationId, 1, type: Bcl.Guid
  field :TypeId, 2, type: :string
end

defmodule Cratis.Chronicle.Contracts.Projections.Projections.Service do
  @moduledoc false

  use GRPC.Service,
    name: "Cratis.Chronicle.Contracts.Projections.Projections",
    protoc_gen_elixir_version: "0.17.0"

  rpc :GetAllDeclarations,
      Cratis.Chronicle.Contracts.Projections.GetAllDeclarationsRequest,
      Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionWithDeclaration

  rpc :GetAllDefinitions,
      Cratis.Chronicle.Contracts.Projections.GetAllDefinitionsRequest,
      Cratis.Chronicle.Contracts.Projections.IEnumerable_ProjectionDefinition

  rpc :Preview,
      Cratis.Chronicle.Contracts.Projections.PreviewProjectionRequest,
      Cratis.Chronicle.Contracts.Projections.OneOf_ProjectionPreview_ProjectionDeclarationParsingErrors

  rpc :Register, Cratis.Chronicle.Contracts.Projections.RegisterRequest, Google.Protobuf.Empty

  rpc :Save,
      Cratis.Chronicle.Contracts.Projections.SaveProjectionRequest,
      Cratis.Chronicle.Contracts.Projections.SaveProjectionResult
end

defmodule Cratis.Chronicle.Contracts.Projections.Projections.Stub do
  @moduledoc false

  use GRPC.Stub, service: Cratis.Chronicle.Contracts.Projections.Projections.Service
end