Current section

Files

Jump to
cratis_chronicle_contracts lib generated jobs.pb.ex
Raw

lib/generated/jobs.pb.ex

defmodule Cratis.Chronicle.Contracts.Jobs.JobStatus do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :None, 0
field :PreparingJob, 1
field :PreparingSteps, 2
field :StartingSteps, 3
field :JOB_STATUS_Running, 4
field :JOB_STATUS_CompletedSuccessfully, 5
field :CompletedWithFailures, 6
field :JOB_STATUS_Stopped, 7
field :JOB_STATUS_Failed, 8
field :JOB_STATUS_Removing, 9
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobStepStatus do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :JOB_STEP_STATUS_Unknown, 0
field :Scheduled, 1
field :JOB_STEP_STATUS_Running, 2
field :JOB_STEP_STATUS_CompletedSuccessfully, 3
field :CompletedWithFailure, 4
field :JOB_STEP_STATUS_Stopped, 5
field :JOB_STEP_STATUS_Failed, 6
field :JOB_STEP_STATUS_Removing, 7
end
defmodule Cratis.Chronicle.Contracts.Jobs.ValidationResultSeverity do
@moduledoc false
use Protobuf, enum: true, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :VALIDATION_RESULT_SEVERITY_Unknown, 0
field :Information, 1
field :Warning, 2
field :Error, 3
end
defmodule Cratis.Chronicle.Contracts.Jobs.AllJobsRequest 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.Jobs.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.Jobs.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :AuthorizationFailureReason, 6, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.DateTimeOffset do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
end
defmodule Cratis.Chronicle.Contracts.Jobs.DeleteJobRequest 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 :JobId, 3, type: Bcl.Guid
end
defmodule Cratis.Chronicle.Contracts.Jobs.GetJobStepsRequest 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 :JobId, 3, type: Bcl.Guid
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobProgress do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :TotalSteps, 1, type: :int32
field :SuccessfulSteps, 2, type: :int32
field :FailedSteps, 3, type: :int32
field :StoppedSteps, 4, type: :int32
field :IsCompleted, 5, type: :bool
field :IsStopped, 6, type: :bool
field :Message, 7, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobStatusChanged do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Status, 1, type: Cratis.Chronicle.Contracts.Jobs.JobStatus, enum: true
field :Occurred, 2, type: Cratis.Chronicle.Contracts.Jobs.SerializableDateTimeOffset
field :ExceptionMessages, 3, repeated: true, type: :string
field :ExceptionStackTrace, 4, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobStepProgress do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Percentage, 1, type: :int32
field :Message, 2, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobStepStatusChanged do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Status, 1, type: Cratis.Chronicle.Contracts.Jobs.JobStepStatus, enum: true
field :Occurred, 2, type: Cratis.Chronicle.Contracts.Jobs.SerializableDateTimeOffset
field :ExceptionMessages, 3, repeated: true, type: :string
field :ExceptionStackTrace, 4, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobStepSummaryResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Id, 1, type: Bcl.Guid
field :Type, 2, type: :string
field :Name, 3, type: :string
field :Status, 4, type: Cratis.Chronicle.Contracts.Jobs.JobStepStatus, enum: true
field :StatusChanges, 5,
repeated: true,
type: Cratis.Chronicle.Contracts.Jobs.JobStepStatusChanged
field :Progress, 6, type: Cratis.Chronicle.Contracts.Jobs.JobStepProgress
end
defmodule Cratis.Chronicle.Contracts.Jobs.JobSummaryResponse do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Id, 1, type: Bcl.Guid
field :Details, 2, type: :string
field :Type, 3, type: :string
field :Status, 4, type: Cratis.Chronicle.Contracts.Jobs.JobStatus, enum: true
field :Created, 5, type: Cratis.Chronicle.Contracts.Jobs.DateTimeOffset
field :StatusChanges, 6, repeated: true, type: Cratis.Chronicle.Contracts.Jobs.JobStatusChanged
field :Progress, 7, type: Cratis.Chronicle.Contracts.Jobs.JobProgress
end
defmodule Cratis.Chronicle.Contracts.Jobs.QueryResult_IEnumerable_JobStepSummaryResponse 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.Jobs.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :Data, 6, repeated: true, type: Cratis.Chronicle.Contracts.Jobs.JobStepSummaryResponse
end
defmodule Cratis.Chronicle.Contracts.Jobs.QueryResult_IEnumerable_JobSummaryResponse 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.Jobs.ValidationResult
field :ExceptionMessages, 4, repeated: true, type: :string
field :ExceptionStackTrace, 5, type: :string
field :Data, 6, repeated: true, type: Cratis.Chronicle.Contracts.Jobs.JobSummaryResponse
end
defmodule Cratis.Chronicle.Contracts.Jobs.ResumeJobRequest 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 :JobId, 3, type: Bcl.Guid
end
defmodule Cratis.Chronicle.Contracts.Jobs.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.Jobs.StopJobRequest 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 :JobId, 3, type: Bcl.Guid
end
defmodule Cratis.Chronicle.Contracts.Jobs.ValidationResult do
@moduledoc false
use Protobuf, protoc_gen_elixir_version: "0.17.0", syntax: :proto3
field :Severity, 1, type: Cratis.Chronicle.Contracts.Jobs.ValidationResultSeverity, enum: true
field :Message, 2, type: :string
field :Members, 3, repeated: true, type: :string
end
defmodule Cratis.Chronicle.Contracts.Jobs.Jobs.Service do
@moduledoc false
use GRPC.Service,
name: "Cratis.Chronicle.Contracts.Jobs.Jobs",
protoc_gen_elixir_version: "0.17.0"
rpc :AllJobs,
Cratis.Chronicle.Contracts.Jobs.AllJobsRequest,
stream(Cratis.Chronicle.Contracts.Jobs.QueryResult_IEnumerable_JobSummaryResponse)
rpc :DeleteJob,
Cratis.Chronicle.Contracts.Jobs.DeleteJobRequest,
Cratis.Chronicle.Contracts.Jobs.CommandResult
rpc :GetJobSteps,
Cratis.Chronicle.Contracts.Jobs.GetJobStepsRequest,
Cratis.Chronicle.Contracts.Jobs.QueryResult_IEnumerable_JobStepSummaryResponse
rpc :ResumeJob,
Cratis.Chronicle.Contracts.Jobs.ResumeJobRequest,
Cratis.Chronicle.Contracts.Jobs.CommandResult
rpc :StopJob,
Cratis.Chronicle.Contracts.Jobs.StopJobRequest,
Cratis.Chronicle.Contracts.Jobs.CommandResult
end
defmodule Cratis.Chronicle.Contracts.Jobs.Jobs.Stub do
@moduledoc false
use GRPC.Stub, service: Cratis.Chronicle.Contracts.Jobs.Jobs.Service
end