Current section

Files

Jump to
cratis_chronicle_contracts lib generated captures.pb.ex
Raw

lib/generated/captures.pb.ex

defmodule Cratis.Chronicle.Contracts.Captures.CaptureStatus do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Stopped, 0
field :Started, 1
end
defmodule Cratis.Chronicle.Contracts.Captures.Capture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Id, 1, type: :string
field :Name, 2, type: :string
field :Declaration, 3, type: :string
field :Status, 4, type: Cratis.Chronicle.Contracts.Captures.CaptureStatus, enum: true
end
defmodule Cratis.Chronicle.Contracts.Captures.CaptureValidationMessage 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.Captures.DeleteCapture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Id, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.GetCapturesRequest do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.IEnumerable_Capture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :items, 1, repeated: true, type: Cratis.Chronicle.Contracts.Captures.Capture
end
defmodule Cratis.Chronicle.Contracts.Captures.SaveCapture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Id, 2, type: :string
field :Declaration, 3, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.SaveCaptureResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Capture, 1, type: Cratis.Chronicle.Contracts.Captures.Capture
field :Messages, 2,
repeated: true,
type: Cratis.Chronicle.Contracts.Captures.CaptureValidationMessage
end
defmodule Cratis.Chronicle.Contracts.Captures.StartCapture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Id, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.StartCaptureResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Messages, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Captures.CaptureValidationMessage
end
defmodule Cratis.Chronicle.Contracts.Captures.StopCapture do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Id, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.ValidateCaptureDeclaration do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :EventStore, 1, type: :string
field :Declaration, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Captures.ValidateCaptureDeclarationResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Messages, 1,
repeated: true,
type: Cratis.Chronicle.Contracts.Captures.CaptureValidationMessage
end
defmodule Cratis.Chronicle.Contracts.Captures.Captures.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.Captures.Captures",
protoc_gen_elixir_version: "0.17.0"
rpc :Delete, Cratis.Chronicle.Contracts.Captures.DeleteCapture, Google.Protobuf.Empty
rpc :GetCaptures,
Cratis.Chronicle.Contracts.Captures.GetCapturesRequest,
Cratis.Chronicle.Contracts.Captures.IEnumerable_Capture
rpc :ObserveCaptures,
Cratis.Chronicle.Contracts.Captures.GetCapturesRequest,
stream(Cratis.Chronicle.Contracts.Captures.IEnumerable_Capture)
rpc :Save,
Cratis.Chronicle.Contracts.Captures.SaveCapture,
Cratis.Chronicle.Contracts.Captures.SaveCaptureResponse
rpc :Start,
Cratis.Chronicle.Contracts.Captures.StartCapture,
Cratis.Chronicle.Contracts.Captures.StartCaptureResponse
rpc :Stop, Cratis.Chronicle.Contracts.Captures.StopCapture, Google.Protobuf.Empty
rpc :ValidateDeclaration,
Cratis.Chronicle.Contracts.Captures.ValidateCaptureDeclaration,
Cratis.Chronicle.Contracts.Captures.ValidateCaptureDeclarationResponse
end
defmodule Cratis.Chronicle.Contracts.Captures.Captures.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Captures.Captures.Service
end