diff --git a/.github/workflows/buf.yaml b/.github/workflows/buf.yaml new file mode 100644 index 000000000..e0f559e1e --- /dev/null +++ b/.github/workflows/buf.yaml @@ -0,0 +1,28 @@ +name: Buf + +on: + push: + branches: + - main + + pull_request: + branches: + - main + paths: + - "proto/**" + +jobs: + buf: + name: Run buf + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: write + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - uses: bufbuild/buf-action@v1 + with: + github_token: ${{ github.token }} \ No newline at end of file diff --git a/Makefile b/Makefile index e9b200479..7aa6ba5ab 100644 --- a/Makefile +++ b/Makefile @@ -87,8 +87,20 @@ dkron/ui-dist: ui/node_modules ui/public/* ui/src/* ui/src/*/* rm -rf dkron/ui-dist cd ui; yarn build --out-dir ../dkron/ui-dist -proto: types/dkron.pb.go types/executor.pb.go types/pro.pb.go +# deprecated +# proto: types/dkron.pb.go types/executor.pb.go types/pro.pb.go +.PHONY: proto +proto: + @echo "Generating protobuf files using Buf" + buf generate +lint: proto-lint + +proto-lint: + @echo "Linting protobuf files using Buf" + buf lint + +# deprecated types/%.pb.go: proto/%.proto protoc -I proto/ --go_out=types --go_opt=paths=source_relative --go-grpc_out=types --go-grpc_opt=paths=source_relative $< diff --git a/buf.gen.yaml b/buf.gen.yaml new file mode 100644 index 000000000..dc3c10c83 --- /dev/null +++ b/buf.gen.yaml @@ -0,0 +1,20 @@ +version: v2 +managed: + enabled: true + override: + - file_option: go_package_prefix + value: github.com/distribworks/dkron/v4/types + +inputs: + - directory: ./proto +plugins: + #- remote: buf.build/protocolbuffers/go:v1.31.0 + - local: protoc-gen-go + out: gen/proto + opt: + - paths=source_relative + #- remote: buf.build/grpc/go:v1.5.1 + - local: protoc-gen-go-grpc + out: gen/proto + opt: + - paths=source_relative \ No newline at end of file diff --git a/buf.yaml b/buf.yaml index af084d1a0..3b3346dd0 100644 --- a/buf.yaml +++ b/buf.yaml @@ -1,4 +1,11 @@ version: v2 +breaking: + use: + - FILE + ignore: + - "./proto/dkron.proto" + - "./proto/executor.proto" + - "./proto/pro.proto" modules: - path: proto name: buf.build/distribworks/dkron diff --git a/builtin/bins/dkron-executor-gcppubsub/gcppubsub.go b/builtin/bins/dkron-executor-gcppubsub/gcppubsub.go index 30bda1125..7ff7b2aa5 100644 --- a/builtin/bins/dkron-executor-gcppubsub/gcppubsub.go +++ b/builtin/bins/dkron-executor-gcppubsub/gcppubsub.go @@ -8,8 +8,8 @@ import ( "time" "cloud.google.com/go/pubsub" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" ) // GCPPubSub plugin publish message to topic when Execute method is called. diff --git a/builtin/bins/dkron-executor-gcppubsub/gcppubsub_test.go b/builtin/bins/dkron-executor-gcppubsub/gcppubsub_test.go index 8c7b483d7..e26f212c5 100644 --- a/builtin/bins/dkron-executor-gcppubsub/gcppubsub_test.go +++ b/builtin/bins/dkron-executor-gcppubsub/gcppubsub_test.go @@ -4,7 +4,7 @@ import ( "testing" "cloud.google.com/go/pubsub" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/stretchr/testify/assert" ) diff --git a/builtin/bins/dkron-executor-grpc/grpc.go b/builtin/bins/dkron-executor-grpc/grpc.go index 842294840..99e337061 100644 --- a/builtin/bins/dkron-executor-grpc/grpc.go +++ b/builtin/bins/dkron-executor-grpc/grpc.go @@ -10,8 +10,8 @@ import ( "time" "github.com/armon/circbuf" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" "github.com/fullstorydev/grpcurl" "github.com/jhump/protoreflect/grpcreflect" "github.com/pkg/errors" diff --git a/builtin/bins/dkron-executor-grpc/grpc_test.go b/builtin/bins/dkron-executor-grpc/grpc_test.go index c838733d4..12151902a 100644 --- a/builtin/bins/dkron-executor-grpc/grpc_test.go +++ b/builtin/bins/dkron-executor-grpc/grpc_test.go @@ -6,7 +6,7 @@ import ( "testing" "github.com/distribworks/dkron/v4/builtin/bins/dkron-executor-grpc/test" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" "google.golang.org/grpc" "google.golang.org/grpc/reflection" ) diff --git a/builtin/bins/dkron-executor-kafka/kafka.go b/builtin/bins/dkron-executor-kafka/kafka.go index 6bab02894..349cd79bb 100644 --- a/builtin/bins/dkron-executor-kafka/kafka.go +++ b/builtin/bins/dkron-executor-kafka/kafka.go @@ -9,8 +9,8 @@ import ( "github.com/IBM/sarama" "github.com/armon/circbuf" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" ) const ( diff --git a/builtin/bins/dkron-executor-kafka/kafka_test.go b/builtin/bins/dkron-executor-kafka/kafka_test.go index 0d4f66d17..66c5defc1 100644 --- a/builtin/bins/dkron-executor-kafka/kafka_test.go +++ b/builtin/bins/dkron-executor-kafka/kafka_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" ) func TestProduceExecuteWithKey(t *testing.T) { diff --git a/builtin/bins/dkron-executor-nats/nats.go b/builtin/bins/dkron-executor-nats/nats.go index ac4c221f8..43a383b9d 100644 --- a/builtin/bins/dkron-executor-nats/nats.go +++ b/builtin/bins/dkron-executor-nats/nats.go @@ -7,8 +7,8 @@ import ( "github.com/armon/circbuf" "github.com/nats-io/nats.go" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" ) const ( diff --git a/builtin/bins/dkron-executor-nats/nats_test.go b/builtin/bins/dkron-executor-nats/nats_test.go index d1571f0b6..d3f196b18 100644 --- a/builtin/bins/dkron-executor-nats/nats_test.go +++ b/builtin/bins/dkron-executor-nats/nats_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" ) func TestPublishExecute(t *testing.T) { diff --git a/builtin/bins/dkron-executor-rabbitmq/rabbitmq.go b/builtin/bins/dkron-executor-rabbitmq/rabbitmq.go index 02c0fa0d3..ede378bf4 100644 --- a/builtin/bins/dkron-executor-rabbitmq/rabbitmq.go +++ b/builtin/bins/dkron-executor-rabbitmq/rabbitmq.go @@ -5,8 +5,8 @@ import ( "errors" "strconv" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" log "github.com/sirupsen/logrus" "github.com/streadway/amqp" ) diff --git a/builtin/bins/dkron-executor-rabbitmq/rabbitmq_test.go b/builtin/bins/dkron-executor-rabbitmq/rabbitmq_test.go index 42f62aa95..4a0d937fa 100644 --- a/builtin/bins/dkron-executor-rabbitmq/rabbitmq_test.go +++ b/builtin/bins/dkron-executor-rabbitmq/rabbitmq_test.go @@ -3,7 +3,7 @@ package main import ( "testing" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/stretchr/testify/assert" ) diff --git a/builtin/bins/dkron-processor-files/files_output.go b/builtin/bins/dkron-processor-files/files_output.go index 326bd6fcf..1292c0c01 100644 --- a/builtin/bins/dkron-processor-files/files_output.go +++ b/builtin/bins/dkron-processor-files/files_output.go @@ -6,8 +6,8 @@ import ( "os" "strconv" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" log "github.com/sirupsen/logrus" ) diff --git a/builtin/bins/dkron-processor-files/files_output_test.go b/builtin/bins/dkron-processor-files/files_output_test.go index bc6e03582..e52ddf4da 100644 --- a/builtin/bins/dkron-processor-files/files_output_test.go +++ b/builtin/bins/dkron-processor-files/files_output_test.go @@ -4,8 +4,8 @@ import ( "fmt" "testing" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" "github.com/stretchr/testify/assert" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/builtin/bins/dkron-processor-fluent/fluent_output.go b/builtin/bins/dkron-processor-fluent/fluent_output.go index 2345783b1..93710cf98 100644 --- a/builtin/bins/dkron-processor-fluent/fluent_output.go +++ b/builtin/bins/dkron-processor-fluent/fluent_output.go @@ -3,8 +3,8 @@ package main import ( "strconv" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" log "github.com/sirupsen/logrus" ) diff --git a/builtin/bins/dkron-processor-log/log_output.go b/builtin/bins/dkron-processor-log/log_output.go index 7ebc9e4ce..4a6ef6250 100644 --- a/builtin/bins/dkron-processor-log/log_output.go +++ b/builtin/bins/dkron-processor-log/log_output.go @@ -5,8 +5,8 @@ import ( "os" "strconv" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" log "github.com/sirupsen/logrus" ) diff --git a/builtin/bins/dkron-processor-log/log_output_test.go b/builtin/bins/dkron-processor-log/log_output_test.go index 0c91bbd41..05c27c3e3 100644 --- a/builtin/bins/dkron-processor-log/log_output_test.go +++ b/builtin/bins/dkron-processor-log/log_output_test.go @@ -3,8 +3,8 @@ package main import ( "testing" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" "github.com/stretchr/testify/assert" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/builtin/bins/dkron-processor-syslog/syslog_output.go b/builtin/bins/dkron-processor-syslog/syslog_output.go index daa307df7..697e37ea0 100644 --- a/builtin/bins/dkron-processor-syslog/syslog_output.go +++ b/builtin/bins/dkron-processor-syslog/syslog_output.go @@ -3,8 +3,8 @@ package main import ( "strconv" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" gsyslog "github.com/hashicorp/go-syslog" log "github.com/sirupsen/logrus" ) diff --git a/builtin/bins/dkron-processor-syslog/syslog_output_test.go b/builtin/bins/dkron-processor-syslog/syslog_output_test.go index 1c68091d5..49bc5972e 100644 --- a/builtin/bins/dkron-processor-syslog/syslog_output_test.go +++ b/builtin/bins/dkron-processor-syslog/syslog_output_test.go @@ -3,8 +3,8 @@ package main import ( "testing" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" "github.com/stretchr/testify/assert" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/dkron/agent.go b/dkron/agent.go index 21d65e705..5e882a5cc 100644 --- a/dkron/agent.go +++ b/dkron/agent.go @@ -16,8 +16,8 @@ import ( "time" "github.com/devopsfaith/krakend-usage/client" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - proto "github.com/distribworks/dkron/v4/types" "github.com/hashicorp/go-metrics" "github.com/hashicorp/go-uuid" "github.com/hashicorp/memberlist" @@ -230,7 +230,7 @@ func (a *Agent) Start() error { grpcServer := grpc.NewServer(opts...) as := NewAgentServer(a, a.logger) - proto.RegisterAgentServer(grpcServer, as) + typesv1.RegisterAgentServiceServer(grpcServer, as) go func() { if err := grpcServer.Serve(l); err != nil { a.logger.Fatal(err) @@ -834,7 +834,7 @@ func (a *Agent) bindRPCAddr() string { // applySetJob is a helper method to be called when // a job property need to be modified from the leader. -func (a *Agent) applySetJob(job *proto.Job) error { +func (a *Agent) applySetJob(job *typesv1.Job) error { cmd, err := Encode(SetJobType, job) if err != nil { return err @@ -870,8 +870,8 @@ func (a *Agent) GetRunningJobs() int { } // GetActiveExecutions returns running executions globally -func (a *Agent) GetActiveExecutions() ([]*proto.Execution, error) { - var executions []*proto.Execution +func (a *Agent) GetActiveExecutions() ([]*typesv1.Execution, error) { + var executions []*typesv1.Execution for _, s := range a.LocalServers() { exs, err := a.GRPCClient.GetActiveExecutions(s.RPCAddr.String()) diff --git a/dkron/api.go b/dkron/api.go index 9d4ba3400..e599cf4ae 100644 --- a/dkron/api.go +++ b/dkron/api.go @@ -9,7 +9,7 @@ import ( "strconv" "strings" - "github.com/distribworks/dkron/v4/types" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/gin-contrib/cors" "github.com/gin-contrib/expvar" "github.com/gin-gonic/gin" @@ -418,10 +418,10 @@ func (h *HTTPTransport) executionHandler(c *gin.Context) { } func (h *HTTPTransport) membersHandler(c *gin.Context) { - mems := []*types.Member{} + mems := []*typesv1.Member{} for _, m := range h.agent.serf.Members() { id, _ := uuid.GenerateUUID() - mid := &types.Member{m, id, m.Status.String()} + mid := &typesv1.Member{m, id, m.Status.String()} mems = append(mems, mid) } c.Header("X-Total-Count", strconv.Itoa(len(mems))) diff --git a/dkron/execution.go b/dkron/execution.go index 56e17d441..6dc059053 100644 --- a/dkron/execution.go +++ b/dkron/execution.go @@ -6,7 +6,7 @@ import ( "strconv" "time" - proto "github.com/distribworks/dkron/v4/types" + proto "github.com/distribworks/dkron/v4/gen/proto/types/v1" "google.golang.org/protobuf/types/known/timestamppb" ) diff --git a/dkron/fsm.go b/dkron/fsm.go index eb42e2568..bc2940ada 100644 --- a/dkron/fsm.go +++ b/dkron/fsm.go @@ -4,7 +4,7 @@ import ( "context" "io" - dkronpb "github.com/distribworks/dkron/v4/types" + dkronpb "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/hashicorp/raft" "github.com/sirupsen/logrus" "google.golang.org/protobuf/proto" diff --git a/dkron/grpc.go b/dkron/grpc.go index 17726e191..4f1e87dd8 100644 --- a/dkron/grpc.go +++ b/dkron/grpc.go @@ -9,8 +9,8 @@ import ( "time" "github.com/armon/go-metrics" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" "github.com/hashicorp/raft" "github.com/hashicorp/serf/serf" "github.com/sirupsen/logrus" @@ -36,13 +36,13 @@ var ( // DkronGRPCServer defines the basics that a gRPC server should implement. type DkronGRPCServer interface { - types.DkronServer + typesv1.DkronServer Serve(net.Listener) error } // GRPCServer is the local implementation of the gRPC server interface. type GRPCServer struct { - types.DkronServer + typesv1.DkronServer agent *Agent logger *logrus.Entry } @@ -59,10 +59,10 @@ func NewGRPCServer(agent *Agent, logger *logrus.Entry) DkronGRPCServer { func (grpcs *GRPCServer) Serve(lis net.Listener) error { serverOpts := grpc.StatsHandler(otelgrpc.NewServerHandler()) // Add otel support grpcServer := grpc.NewServer(serverOpts) - types.RegisterDkronServer(grpcServer, grpcs) + typesv1.RegisterDkronServer(grpcServer, grpcs) as := NewAgentServer(grpcs.agent, grpcs.logger) - types.RegisterAgentServer(grpcServer, as) + typesv1.RegisterAgentServiceServer(grpcServer, as) go grpcServer.Serve(lis) return nil @@ -83,7 +83,7 @@ func Encode(t MessageType, msg interface{}) ([]byte, error) { // SetJob broadcast a state change to the cluster members that will store the job. // Then restart the scheduler // This only works on the leader -func (grpcs *GRPCServer) SetJob(ctx context.Context, setJobReq *types.SetJobRequest) (*types.SetJobResponse, error) { +func (grpcs *GRPCServer) SetJob(ctx context.Context, setJobReq *typesv1.SetJobRequest) (*typesv1.SetJobResponse, error) { defer metrics.MeasureSince([]string{"grpc", "set_job"}, time.Now()) grpcs.logger.WithFields(logrus.Fields{ "job": setJobReq.Job.Name, @@ -100,12 +100,12 @@ func (grpcs *GRPCServer) SetJob(ctx context.Context, setJobReq *types.SetJobRequ return nil, err } - return &types.SetJobResponse{}, nil + return &typesv1.SetJobResponse{}, nil } // DeleteJob broadcast a state change to the cluster members that will delete the job. // This only works on the leader -func (grpcs *GRPCServer) DeleteJob(ctx context.Context, delJobReq *types.DeleteJobRequest) (*types.DeleteJobResponse, error) { +func (grpcs *GRPCServer) DeleteJob(ctx context.Context, delJobReq *typesv1.DeleteJobRequest) (*typesv1.DeleteJobResponse, error) { defer metrics.MeasureSince([]string{"grpc", "delete_job"}, time.Now()) grpcs.logger.WithField("job", delJobReq.GetJobName()).Debug("grpc: Received DeleteJob") @@ -130,11 +130,11 @@ func (grpcs *GRPCServer) DeleteJob(ctx context.Context, delJobReq *types.DeleteJ grpcs.logger.WithField("job", job.Name).Info("grpc: Done deleting ephemeral job") } - return &types.DeleteJobResponse{Job: jpb}, nil + return &typesv1.DeleteJobResponse{Job: jpb}, nil } // GetJob loads the job from the datastore -func (grpcs *GRPCServer) GetJob(ctx context.Context, getJobReq *types.GetJobRequest) (*types.GetJobResponse, error) { +func (grpcs *GRPCServer) GetJob(ctx context.Context, getJobReq *typesv1.GetJobRequest) (*typesv1.GetJobResponse, error) { defer metrics.MeasureSince([]string{"grpc", "get_job"}, time.Now()) grpcs.logger.WithField("job", getJobReq.JobName).Debug("grpc: Received GetJob") @@ -143,8 +143,8 @@ func (grpcs *GRPCServer) GetJob(ctx context.Context, getJobReq *types.GetJobRequ return nil, err } - gjr := &types.GetJobResponse{ - Job: &types.Job{}, + gjr := &typesv1.GetJobResponse{ + Job: &typesv1.Job{}, } // Copy the data structure @@ -156,7 +156,7 @@ func (grpcs *GRPCServer) GetJob(ctx context.Context, getJobReq *types.GetJobRequ } // ExecutionDone saves the execution to the store -func (grpcs *GRPCServer) ExecutionDone(ctx context.Context, execDoneReq *types.ExecutionDoneRequest) (*types.ExecutionDoneResponse, error) { +func (grpcs *GRPCServer) ExecutionDone(ctx context.Context, execDoneReq *typesv1.ExecutionDoneRequest) (*typesv1.ExecutionDoneResponse, error) { defer metrics.MeasureSince([]string{"grpc", "execution_done"}, time.Now()) grpcs.logger.WithFields(logrus.Fields{ "group": execDoneReq.Execution.Group, @@ -232,7 +232,7 @@ func (grpcs *GRPCServer) ExecutionDone(ctx context.Context, execDoneReq *types.E return nil, err } - return &types.ExecutionDoneResponse{ + return &typesv1.ExecutionDoneResponse{ From: grpcs.agent.config.NodeName, Payload: []byte("retry"), }, nil @@ -266,16 +266,16 @@ func (grpcs *GRPCServer) ExecutionDone(ctx context.Context, execDoneReq *types.E } if job.Ephemeral && job.Status == StatusSuccess { - if _, err := grpcs.DeleteJob(ctx, &types.DeleteJobRequest{JobName: job.Name}); err != nil { + if _, err := grpcs.DeleteJob(ctx, &typesv1.DeleteJobRequest{JobName: job.Name}); err != nil { return nil, err } - return &types.ExecutionDoneResponse{ + return &typesv1.ExecutionDoneResponse{ From: grpcs.agent.config.NodeName, Payload: []byte("deleted"), }, nil } - return &types.ExecutionDoneResponse{ + return &typesv1.ExecutionDoneResponse{ From: grpcs.agent.config.NodeName, Payload: []byte("saved"), }, nil @@ -287,7 +287,7 @@ func (grpcs *GRPCServer) Leave(ctx context.Context, in *emptypb.Empty) (*emptypb } // RunJob runs a job in the cluster -func (grpcs *GRPCServer) RunJob(ctx context.Context, req *types.RunJobRequest) (*types.RunJobResponse, error) { +func (grpcs *GRPCServer) RunJob(ctx context.Context, req *typesv1.RunJobRequest) (*typesv1.RunJobResponse, error) { ex := NewExecution(req.JobName) job, err := grpcs.agent.Run(ctx, req.JobName, ex) if err != nil { @@ -295,16 +295,16 @@ func (grpcs *GRPCServer) RunJob(ctx context.Context, req *types.RunJobRequest) ( } jpb := job.ToProto() - return &types.RunJobResponse{Job: jpb}, nil + return &typesv1.RunJobResponse{Job: jpb}, nil } // ToggleJob toggle the enablement of a job -func (grpcs *GRPCServer) ToggleJob(ctx context.Context, getJobReq *types.ToggleJobRequest) (*types.ToggleJobResponse, error) { +func (grpcs *GRPCServer) ToggleJob(ctx context.Context, getJobReq *typesv1.ToggleJobRequest) (*typesv1.ToggleJobResponse, error) { return nil, nil } // RaftGetConfiguration get raft config -func (grpcs *GRPCServer) RaftGetConfiguration(ctx context.Context, in *emptypb.Empty) (*types.RaftGetConfigurationResponse, error) { +func (grpcs *GRPCServer) RaftGetConfiguration(ctx context.Context, in *emptypb.Empty) (*typesv1.RaftGetConfigurationResponse, error) { // We can't fetch the leader and the configuration atomically with // the current Raft API. future := grpcs.agent.raft.GetConfiguration() @@ -326,7 +326,7 @@ func (grpcs *GRPCServer) RaftGetConfiguration(ctx context.Context, in *emptypb.E // Fill out the reply. leader := grpcs.agent.raft.Leader() - reply := &types.RaftGetConfigurationResponse{} + reply := &typesv1.RaftGetConfigurationResponse{} reply.Index = future.Index() for _, server := range future.Configuration().Servers { node := "(unknown)" @@ -338,7 +338,7 @@ func (grpcs *GRPCServer) RaftGetConfiguration(ctx context.Context, in *emptypb.E } } - entry := &types.RaftServer{ + entry := &typesv1.RaftServer{ Id: string(server.ID), Node: node, Address: string(server.Address), @@ -355,7 +355,7 @@ func (grpcs *GRPCServer) RaftGetConfiguration(ctx context.Context, in *emptypb.E // quorum but no longer known to Serf or the catalog) by address in the form of // "IP:port". The reply argument is not used, but is required to fulfill the RPC // interface. -func (grpcs *GRPCServer) RaftRemovePeerByID(ctx context.Context, in *types.RaftRemovePeerByIDRequest) (*emptypb.Empty, error) { +func (grpcs *GRPCServer) RaftRemovePeerByID(ctx context.Context, in *typesv1.RaftRemovePeerByIDRequest) (*emptypb.Empty, error) { // Since this is an operation designed for humans to use, we will return // an error if the supplied id isn't among the peers since it's // likely they screwed up. @@ -392,24 +392,24 @@ REMOVE: } // GetActiveExecutions returns the active executions on the server node -func (grpcs *GRPCServer) GetActiveExecutions(ctx context.Context, in *emptypb.Empty) (*types.GetActiveExecutionsResponse, error) { +func (grpcs *GRPCServer) GetActiveExecutions(ctx context.Context, in *emptypb.Empty) (*typesv1.GetActiveExecutionsResponse, error) { defer metrics.MeasureSince([]string{"grpc", "agent_run"}, time.Now()) - var executions []*types.Execution + var executions []*typesv1.Execution grpcs.agent.activeExecutions.Range(func(k, v interface{}) bool { - e := v.(*types.Execution) + e := v.(*typesv1.Execution) executions = append(executions, e) return true }) - return &types.GetActiveExecutionsResponse{ + return &typesv1.GetActiveExecutionsResponse{ Executions: executions, }, nil } // SetExecution broadcast a state change to the cluster members that will store the execution. // This only works on the leader -func (grpcs *GRPCServer) SetExecution(ctx context.Context, execution *types.Execution) (*emptypb.Empty, error) { +func (grpcs *GRPCServer) SetExecution(ctx context.Context, execution *typesv1.Execution) (*emptypb.Empty, error) { defer metrics.MeasureSince([]string{"grpc", "set_execution"}, time.Now()) grpcs.logger.WithFields(logrus.Fields{ "execution": execution.Key(), diff --git a/dkron/grpc_agent.go b/dkron/grpc_agent.go index 5f1093896..6021d0caa 100644 --- a/dkron/grpc_agent.go +++ b/dkron/grpc_agent.go @@ -5,8 +5,8 @@ import ( "time" "github.com/armon/circbuf" - metrics "github.com/armon/go-metrics" - "github.com/distribworks/dkron/v4/types" + "github.com/armon/go-metrics" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/sirupsen/logrus" "google.golang.org/protobuf/types/known/timestamppb" ) @@ -17,14 +17,14 @@ const ( ) type statusAgentHelper struct { - execution *types.Execution - stream types.Agent_AgentRunServer + execution *typesv1.Execution + stream typesv1.AgentService_AgentRunServer } func (s *statusAgentHelper) Update(b []byte, c bool) (int64, error) { s.execution.Output = b // Send partial execution - if err := s.stream.Send(&types.AgentRunStream{ + if err := s.stream.Send(&typesv1.AgentRunStream{ Execution: s.execution, }); err != nil { return 0, err @@ -34,13 +34,13 @@ func (s *statusAgentHelper) Update(b []byte, c bool) (int64, error) { // GRPCAgentServer is the local implementation of the gRPC server interface. type AgentServer struct { - types.AgentServer + typesv1.AgentServiceServer agent *Agent logger *logrus.Entry } // NewServer creates and returns an instance of a DkronGRPCServer implementation -func NewAgentServer(agent *Agent, logger *logrus.Entry) types.AgentServer { +func NewAgentServer(agent *Agent, logger *logrus.Entry) typesv1.AgentServiceServer { return &AgentServer{ agent: agent, logger: logger, @@ -49,7 +49,7 @@ func NewAgentServer(agent *Agent, logger *logrus.Entry) types.AgentServer { // AgentRun is called when an agent starts running a job and lasts all execution, // the agent will stream execution progress to the server. -func (as *AgentServer) AgentRun(req *types.AgentRunRequest, stream types.Agent_AgentRunServer) error { +func (as *AgentServer) AgentRun(req *typesv1.AgentRunRequest, stream typesv1.AgentService_AgentRunServer) error { defer metrics.MeasureSince([]string{"grpc_agent", "agent_run"}, time.Now()) job := req.Job @@ -70,7 +70,7 @@ func (as *AgentServer) AgentRun(req *types.AgentRunRequest, stream types.Agent_A execution.StartedAt = timestamppb.Now() execution.NodeName = as.agent.config.NodeName - if err := stream.Send(&types.AgentRunStream{ + if err := stream.Send(&typesv1.AgentRunStream{ Execution: execution, }); err != nil { return err @@ -84,7 +84,7 @@ func (as *AgentServer) AgentRun(req *types.AgentRunRequest, stream types.Agent_A if executor, ok := as.agent.ExecutorPlugins[jex]; ok { as.logger.WithField("plugin", jex).Debug("grpc_agent: calling executor plugin") runningExecutions.Store(execution.GetGroup(), execution) - out, err := executor.Execute(&types.ExecuteRequest{ + out, err := executor.Execute(&typesv1.ExecuteRequest{ JobName: job.Name, Config: exc, }, &statusAgentHelper{ @@ -118,7 +118,7 @@ func (as *AgentServer) AgentRun(req *types.AgentRunRequest, stream types.Agent_A runningExecutions.Delete(execution.GetGroup()) // Send the final execution - if err := stream.Send(&types.AgentRunStream{ + if err := stream.Send(&typesv1.AgentRunStream{ Execution: execution, }); err != nil { // In case of error means that maybe the server is gone so fallback to ExecutionDone diff --git a/dkron/grpc_client.go b/dkron/grpc_client.go index c2eedfbb3..0c358da0a 100644 --- a/dkron/grpc_client.go +++ b/dkron/grpc_client.go @@ -6,7 +6,7 @@ import ( "time" "github.com/armon/go-metrics" - "github.com/distribworks/dkron/v4/types" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/sirupsen/logrus" "go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc" "golang.org/x/net/context" @@ -25,11 +25,11 @@ type DkronGRPCClient interface { DeleteJob(string) (*Job, error) Leave(string) error RunJob(string) (*Job, error) - RaftGetConfiguration(string) (*types.RaftGetConfigurationResponse, error) + RaftGetConfiguration(string) (*typesv1.RaftGetConfigurationResponse, error) RaftRemovePeerByID(string, string) error - GetActiveExecutions(string) ([]*types.Execution, error) - SetExecution(execution *types.Execution) error - AgentRun(addr string, job *types.Job, execution *types.Execution) error + GetActiveExecutions(string) ([]*typesv1.Execution, error) + SetExecution(execution *typesv1.Execution) error + AgentRun(addr string, job *typesv1.Job, execution *typesv1.Execution) error } // GRPCClient is the local implementation of the DkronGRPCClient interface. @@ -82,8 +82,8 @@ func (grpcc *GRPCClient) ExecutionDone(addr string, execution *Execution) error } defer conn.Close() - d := types.NewDkronClient(conn) - edr, err := d.ExecutionDone(context.Background(), &types.ExecutionDoneRequest{Execution: execution.ToProto()}) + d := typesv1.NewDkronClient(conn) + edr, err := d.ExecutionDone(context.Background(), &typesv1.ExecutionDoneRequest{Execution: execution.ToProto()}) if err != nil { if err.Error() == fmt.Sprintf("rpc error: code = Unknown desc = %s", ErrNotLeader.Error()) { grpcc.logger.Info("grpc: ExecutionDone forwarded to the leader") @@ -122,8 +122,8 @@ func (grpcc *GRPCClient) GetJob(addr, jobName string) (*Job, error) { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) - gjr, err := d.GetJob(context.Background(), &types.GetJobRequest{JobName: jobName}) + d := typesv1.NewDkronClient(conn) + gjr, err := d.GetJob(context.Background(), &typesv1.GetJobRequest{JobName: jobName}) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ "method": "GetJob", @@ -151,7 +151,7 @@ func (grpcc *GRPCClient) Leave(addr string) error { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) + d := typesv1.NewDkronClient(conn) _, err = d.Leave(context.Background(), &emptypb.Empty{}) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ @@ -182,8 +182,8 @@ func (grpcc *GRPCClient) SetJob(job *Job) error { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) - _, err = d.SetJob(context.Background(), &types.SetJobRequest{ + d := typesv1.NewDkronClient(conn) + _, err = d.SetJob(context.Background(), &typesv1.SetJobRequest{ Job: job.ToProto(), }) if err != nil { @@ -214,8 +214,8 @@ func (grpcc *GRPCClient) DeleteJob(jobName string) (*Job, error) { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) - res, err := d.DeleteJob(context.Background(), &types.DeleteJobRequest{ + d := typesv1.NewDkronClient(conn) + res, err := d.DeleteJob(context.Background(), &typesv1.DeleteJobRequest{ JobName: jobName, }) if err != nil { @@ -249,8 +249,8 @@ func (grpcc *GRPCClient) RunJob(jobName string) (*Job, error) { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) - res, err := d.RunJob(context.Background(), &types.RunJobRequest{ + d := typesv1.NewDkronClient(conn) + res, err := d.RunJob(context.Background(), &typesv1.RunJobRequest{ JobName: jobName, }) if err != nil { @@ -267,7 +267,7 @@ func (grpcc *GRPCClient) RunJob(jobName string) (*Job, error) { } // RaftGetConfiguration get the current raft configuration of peers -func (grpcc *GRPCClient) RaftGetConfiguration(addr string) (*types.RaftGetConfigurationResponse, error) { +func (grpcc *GRPCClient) RaftGetConfiguration(addr string) (*typesv1.RaftGetConfigurationResponse, error) { var conn *grpc.ClientConn // Initiate a connection with the server @@ -282,7 +282,7 @@ func (grpcc *GRPCClient) RaftGetConfiguration(addr string) (*types.RaftGetConfig defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) + d := typesv1.NewDkronClient(conn) res, err := d.RaftGetConfiguration(context.Background(), &emptypb.Empty{}) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ @@ -311,9 +311,9 @@ func (grpcc *GRPCClient) RaftRemovePeerByID(addr, peerID string) error { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) + d := typesv1.NewDkronClient(conn) _, err = d.RaftRemovePeerByID(context.Background(), - &types.RaftRemovePeerByIDRequest{Id: peerID}, + &typesv1.RaftRemovePeerByIDRequest{Id: peerID}, ) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ @@ -327,7 +327,7 @@ func (grpcc *GRPCClient) RaftRemovePeerByID(addr, peerID string) error { } // GetActiveExecutions returns the active executions of a server node -func (grpcc *GRPCClient) GetActiveExecutions(addr string) ([]*types.Execution, error) { +func (grpcc *GRPCClient) GetActiveExecutions(addr string) ([]*typesv1.Execution, error) { var conn *grpc.ClientConn // Initiate a connection with the server @@ -342,7 +342,7 @@ func (grpcc *GRPCClient) GetActiveExecutions(addr string) ([]*types.Execution, e defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) + d := typesv1.NewDkronClient(conn) gaer, err := d.GetActiveExecutions(context.Background(), &emptypb.Empty{}) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ @@ -356,7 +356,7 @@ func (grpcc *GRPCClient) GetActiveExecutions(addr string) ([]*types.Execution, e } // SetExecution calls the leader passing the execution -func (grpcc *GRPCClient) SetExecution(execution *types.Execution) error { +func (grpcc *GRPCClient) SetExecution(execution *typesv1.Execution) error { var conn *grpc.ClientConn addr := grpcc.agent.raft.Leader() @@ -373,7 +373,7 @@ func (grpcc *GRPCClient) SetExecution(execution *types.Execution) error { defer conn.Close() // Synchronous call - d := types.NewDkronClient(conn) + d := typesv1.NewDkronClient(conn) _, err = d.SetExecution(context.Background(), execution) if err != nil { grpcc.logger.WithError(err).WithFields(logrus.Fields{ @@ -386,7 +386,7 @@ func (grpcc *GRPCClient) SetExecution(execution *types.Execution) error { } // AgentRun runs a job in the given agent -func (grpcc *GRPCClient) AgentRun(addr string, job *types.Job, execution *types.Execution) error { +func (grpcc *GRPCClient) AgentRun(addr string, job *typesv1.Job, execution *typesv1.Execution) error { defer metrics.MeasureSince([]string{"grpc_client", "agent_run"}, time.Now()) var conn *grpc.ClientConn @@ -402,8 +402,8 @@ func (grpcc *GRPCClient) AgentRun(addr string, job *types.Job, execution *types. defer conn.Close() // Streaming call - a := types.NewAgentClient(conn) - stream, err := a.AgentRun(context.Background(), &types.AgentRunRequest{ + a := typesv1.NewAgentServiceClient(conn) + stream, err := a.AgentRun(context.Background(), &typesv1.AgentRunRequest{ Job: job, Execution: execution, }) diff --git a/dkron/job.go b/dkron/job.go index 31eb44b8e..3421cb360 100644 --- a/dkron/job.go +++ b/dkron/job.go @@ -10,9 +10,9 @@ import ( "time" "github.com/distribworks/dkron/v4/extcron" + proto "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/ntime" "github.com/distribworks/dkron/v4/plugin" - proto "github.com/distribworks/dkron/v4/types" "github.com/sirupsen/logrus" "github.com/tidwall/buntdb" "google.golang.org/protobuf/types/known/timestamppb" diff --git a/dkron/job_test.go b/dkron/job_test.go index fb73612bb..5375f64f9 100644 --- a/dkron/job_test.go +++ b/dkron/job_test.go @@ -6,9 +6,9 @@ import ( "testing" "time" + proto "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/distribworks/dkron/v4/ntime" "github.com/distribworks/dkron/v4/plugin" - proto "github.com/distribworks/dkron/v4/types" "github.com/hashicorp/serf/testutil" "github.com/sirupsen/logrus" "github.com/stretchr/testify/assert" diff --git a/dkron/store.go b/dkron/store.go index 8d80b31ba..6e2cb4d6c 100644 --- a/dkron/store.go +++ b/dkron/store.go @@ -13,7 +13,7 @@ import ( "sync" "time" - dkronpb "github.com/distribworks/dkron/v4/types" + dkronpb "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/sirupsen/logrus" "github.com/tidwall/buntdb" "go.opentelemetry.io/otel/attribute" diff --git a/gen/proto/types/v1/agent.pb.go b/gen/proto/types/v1/agent.pb.go new file mode 100644 index 000000000..8c3df3323 --- /dev/null +++ b/gen/proto/types/v1/agent.pb.go @@ -0,0 +1,316 @@ +// protoc -I proto/ --go_out=types --go_opt=paths=source_relative --go-grpc_out=types --go-grpc_opt=paths=source_relative dkron.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc (unknown) +// source: types/v1/agent.proto + +package typesv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type AgentRunRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` + Execution *Execution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` +} + +func (x *AgentRunRequest) Reset() { + *x = AgentRunRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_agent_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AgentRunRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AgentRunRequest) ProtoMessage() {} + +func (x *AgentRunRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_agent_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AgentRunRequest.ProtoReflect.Descriptor instead. +func (*AgentRunRequest) Descriptor() ([]byte, []int) { + return file_types_v1_agent_proto_rawDescGZIP(), []int{0} +} + +func (x *AgentRunRequest) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +func (x *AgentRunRequest) GetExecution() *Execution { + if x != nil { + return x.Execution + } + return nil +} + +type AgentRunStream struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` +} + +func (x *AgentRunStream) Reset() { + *x = AgentRunStream{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_agent_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AgentRunStream) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AgentRunStream) ProtoMessage() {} + +func (x *AgentRunStream) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_agent_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AgentRunStream.ProtoReflect.Descriptor instead. +func (*AgentRunStream) Descriptor() ([]byte, []int) { + return file_types_v1_agent_proto_rawDescGZIP(), []int{1} +} + +func (x *AgentRunStream) GetExecution() *Execution { + if x != nil { + return x.Execution + } + return nil +} + +type AgentRunResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (x *AgentRunResponse) Reset() { + *x = AgentRunResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_agent_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *AgentRunResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*AgentRunResponse) ProtoMessage() {} + +func (x *AgentRunResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_agent_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use AgentRunResponse.ProtoReflect.Descriptor instead. +func (*AgentRunResponse) Descriptor() ([]byte, []int) { + return file_types_v1_agent_proto_rawDescGZIP(), []int{2} +} + +func (x *AgentRunResponse) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *AgentRunResponse) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +var File_types_v1_agent_proto protoreflect.FileDescriptor + +var file_types_v1_agent_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x1a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x65, 0x0a, 0x0f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, + 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, 0x62, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x31, 0x0a, 0x09, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x13, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x43, 0x0a, + 0x0e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x12, + 0x31, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x22, 0x40, 0x0a, 0x10, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, + 0x6c, 0x6f, 0x61, 0x64, 0x32, 0x51, 0x0a, 0x0c, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x53, 0x65, 0x72, + 0x76, 0x69, 0x63, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, + 0x12, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65, 0x6e, + 0x74, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x53, + 0x74, 0x72, 0x65, 0x61, 0x6d, 0x30, 0x01, 0x42, 0x94, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x50, + 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, + 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, + 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0xa2, + 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, + 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, 0x79, + 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, + 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, + 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_types_v1_agent_proto_rawDescOnce sync.Once + file_types_v1_agent_proto_rawDescData = file_types_v1_agent_proto_rawDesc +) + +func file_types_v1_agent_proto_rawDescGZIP() []byte { + file_types_v1_agent_proto_rawDescOnce.Do(func() { + file_types_v1_agent_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_v1_agent_proto_rawDescData) + }) + return file_types_v1_agent_proto_rawDescData +} + +var file_types_v1_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 3) +var file_types_v1_agent_proto_goTypes = []interface{}{ + (*AgentRunRequest)(nil), // 0: types.v1.AgentRunRequest + (*AgentRunStream)(nil), // 1: types.v1.AgentRunStream + (*AgentRunResponse)(nil), // 2: types.v1.AgentRunResponse + (*Job)(nil), // 3: types.v1.Job + (*Execution)(nil), // 4: types.v1.Execution +} +var file_types_v1_agent_proto_depIdxs = []int32{ + 3, // 0: types.v1.AgentRunRequest.job:type_name -> types.v1.Job + 4, // 1: types.v1.AgentRunRequest.execution:type_name -> types.v1.Execution + 4, // 2: types.v1.AgentRunStream.execution:type_name -> types.v1.Execution + 0, // 3: types.v1.AgentService.AgentRun:input_type -> types.v1.AgentRunRequest + 1, // 4: types.v1.AgentService.AgentRun:output_type -> types.v1.AgentRunStream + 4, // [4:5] is the sub-list for method output_type + 3, // [3:4] is the sub-list for method input_type + 3, // [3:3] is the sub-list for extension type_name + 3, // [3:3] is the sub-list for extension extendee + 0, // [0:3] is the sub-list for field type_name +} + +func init() { file_types_v1_agent_proto_init() } +func file_types_v1_agent_proto_init() { + if File_types_v1_agent_proto != nil { + return + } + file_types_v1_dkron_proto_init() + if !protoimpl.UnsafeEnabled { + file_types_v1_agent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentRunRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_agent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentRunStream); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_agent_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentRunResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_types_v1_agent_proto_rawDesc, + NumEnums: 0, + NumMessages: 3, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_types_v1_agent_proto_goTypes, + DependencyIndexes: file_types_v1_agent_proto_depIdxs, + MessageInfos: file_types_v1_agent_proto_msgTypes, + }.Build() + File_types_v1_agent_proto = out.File + file_types_v1_agent_proto_rawDesc = nil + file_types_v1_agent_proto_goTypes = nil + file_types_v1_agent_proto_depIdxs = nil +} diff --git a/gen/proto/types/v1/agent_grpc.pb.go b/gen/proto/types/v1/agent_grpc.pb.go new file mode 100644 index 000000000..0b4401136 --- /dev/null +++ b/gen/proto/types/v1/agent_grpc.pb.go @@ -0,0 +1,134 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc (unknown) +// source: types/v1/agent.proto + +package typesv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// AgentServiceClient is the client API for AgentService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type AgentServiceClient interface { + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + AgentRun(ctx context.Context, in *AgentRunRequest, opts ...grpc.CallOption) (AgentService_AgentRunClient, error) +} + +type agentServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewAgentServiceClient(cc grpc.ClientConnInterface) AgentServiceClient { + return &agentServiceClient{cc} +} + +func (c *agentServiceClient) AgentRun(ctx context.Context, in *AgentRunRequest, opts ...grpc.CallOption) (AgentService_AgentRunClient, error) { + stream, err := c.cc.NewStream(ctx, &AgentService_ServiceDesc.Streams[0], "/types.v1.AgentService/AgentRun", opts...) + if err != nil { + return nil, err + } + x := &agentServiceAgentRunClient{stream} + if err := x.ClientStream.SendMsg(in); err != nil { + return nil, err + } + if err := x.ClientStream.CloseSend(); err != nil { + return nil, err + } + return x, nil +} + +type AgentService_AgentRunClient interface { + Recv() (*AgentRunStream, error) + grpc.ClientStream +} + +type agentServiceAgentRunClient struct { + grpc.ClientStream +} + +func (x *agentServiceAgentRunClient) Recv() (*AgentRunStream, error) { + m := new(AgentRunStream) + if err := x.ClientStream.RecvMsg(m); err != nil { + return nil, err + } + return m, nil +} + +// AgentServiceServer is the server API for AgentService service. +// All implementations must embed UnimplementedAgentServiceServer +// for forward compatibility +type AgentServiceServer interface { + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + AgentRun(*AgentRunRequest, AgentService_AgentRunServer) error + mustEmbedUnimplementedAgentServiceServer() +} + +// UnimplementedAgentServiceServer must be embedded to have forward compatible implementations. +type UnimplementedAgentServiceServer struct { +} + +func (UnimplementedAgentServiceServer) AgentRun(*AgentRunRequest, AgentService_AgentRunServer) error { + return status.Errorf(codes.Unimplemented, "method AgentRun not implemented") +} +func (UnimplementedAgentServiceServer) mustEmbedUnimplementedAgentServiceServer() {} + +// UnsafeAgentServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to AgentServiceServer will +// result in compilation errors. +type UnsafeAgentServiceServer interface { + mustEmbedUnimplementedAgentServiceServer() +} + +func RegisterAgentServiceServer(s grpc.ServiceRegistrar, srv AgentServiceServer) { + s.RegisterService(&AgentService_ServiceDesc, srv) +} + +func _AgentService_AgentRun_Handler(srv interface{}, stream grpc.ServerStream) error { + m := new(AgentRunRequest) + if err := stream.RecvMsg(m); err != nil { + return err + } + return srv.(AgentServiceServer).AgentRun(m, &agentServiceAgentRunServer{stream}) +} + +type AgentService_AgentRunServer interface { + Send(*AgentRunStream) error + grpc.ServerStream +} + +type agentServiceAgentRunServer struct { + grpc.ServerStream +} + +func (x *agentServiceAgentRunServer) Send(m *AgentRunStream) error { + return x.ServerStream.SendMsg(m) +} + +// AgentService_ServiceDesc is the grpc.ServiceDesc for AgentService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var AgentService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "types.v1.AgentService", + HandlerType: (*AgentServiceServer)(nil), + Methods: []grpc.MethodDesc{}, + Streams: []grpc.StreamDesc{ + { + StreamName: "AgentRun", + Handler: _AgentService_AgentRun_Handler, + ServerStreams: true, + }, + }, + Metadata: "types/v1/agent.proto", +} diff --git a/gen/proto/types/v1/dkron.pb.go b/gen/proto/types/v1/dkron.pb.go new file mode 100644 index 000000000..5f82d9ef1 --- /dev/null +++ b/gen/proto/types/v1/dkron.pb.go @@ -0,0 +1,1874 @@ +// protoc -I proto/ --go_out=types --go_opt=paths=source_relative --go-grpc_out=types --go-grpc_opt=paths=source_relative dkron.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc (unknown) +// source: types/v1/dkron.proto + +package typesv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + emptypb "google.golang.org/protobuf/types/known/emptypb" + timestamppb "google.golang.org/protobuf/types/known/timestamppb" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type Job struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` + Timezone string `protobuf:"bytes,2,opt,name=timezone,proto3" json:"timezone,omitempty"` + Schedule string `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"` + Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` + OwnerEmail string `protobuf:"bytes,8,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` + SuccessCount int32 `protobuf:"varint,9,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` + ErrorCount int32 `protobuf:"varint,10,opt,name=error_count,json=errorCount,proto3" json:"error_count,omitempty"` + Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"` + Tags map[string]string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Retries uint32 `protobuf:"varint,13,opt,name=retries,proto3" json:"retries,omitempty"` + DependentJobs []string `protobuf:"bytes,14,rep,name=dependent_jobs,json=dependentJobs,proto3" json:"dependent_jobs,omitempty"` + ParentJob string `protobuf:"bytes,15,opt,name=parent_job,json=parentJob,proto3" json:"parent_job,omitempty"` + Concurrency string `protobuf:"bytes,16,opt,name=concurrency,proto3" json:"concurrency,omitempty"` + Executor string `protobuf:"bytes,17,opt,name=executor,proto3" json:"executor,omitempty"` + ExecutorConfig map[string]string `protobuf:"bytes,18,rep,name=executor_config,json=executorConfig,proto3" json:"executor_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Status string `protobuf:"bytes,19,opt,name=status,proto3" json:"status,omitempty"` + Metadata map[string]string `protobuf:"bytes,20,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + LastSuccess *Job_NullableTime `protobuf:"bytes,25,opt,name=last_success,json=lastSuccess,proto3" json:"last_success,omitempty"` + LastError *Job_NullableTime `protobuf:"bytes,26,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` + Next *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=next,proto3" json:"next,omitempty"` + Displayname string `protobuf:"bytes,24,opt,name=displayname,proto3" json:"displayname,omitempty"` + Processors map[string]*PluginConfig `protobuf:"bytes,27,rep,name=processors,proto3" json:"processors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + Ephemeral bool `protobuf:"varint,28,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` + ExpiresAt *Job_NullableTime `protobuf:"bytes,29,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` +} + +func (x *Job) Reset() { + *x = Job{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Job) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Job) ProtoMessage() {} + +func (x *Job) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Job.ProtoReflect.Descriptor instead. +func (*Job) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{0} +} + +func (x *Job) GetName() string { + if x != nil { + return x.Name + } + return "" +} + +func (x *Job) GetTimezone() string { + if x != nil { + return x.Timezone + } + return "" +} + +func (x *Job) GetSchedule() string { + if x != nil { + return x.Schedule + } + return "" +} + +func (x *Job) GetOwner() string { + if x != nil { + return x.Owner + } + return "" +} + +func (x *Job) GetOwnerEmail() string { + if x != nil { + return x.OwnerEmail + } + return "" +} + +func (x *Job) GetSuccessCount() int32 { + if x != nil { + return x.SuccessCount + } + return 0 +} + +func (x *Job) GetErrorCount() int32 { + if x != nil { + return x.ErrorCount + } + return 0 +} + +func (x *Job) GetDisabled() bool { + if x != nil { + return x.Disabled + } + return false +} + +func (x *Job) GetTags() map[string]string { + if x != nil { + return x.Tags + } + return nil +} + +func (x *Job) GetRetries() uint32 { + if x != nil { + return x.Retries + } + return 0 +} + +func (x *Job) GetDependentJobs() []string { + if x != nil { + return x.DependentJobs + } + return nil +} + +func (x *Job) GetParentJob() string { + if x != nil { + return x.ParentJob + } + return "" +} + +func (x *Job) GetConcurrency() string { + if x != nil { + return x.Concurrency + } + return "" +} + +func (x *Job) GetExecutor() string { + if x != nil { + return x.Executor + } + return "" +} + +func (x *Job) GetExecutorConfig() map[string]string { + if x != nil { + return x.ExecutorConfig + } + return nil +} + +func (x *Job) GetStatus() string { + if x != nil { + return x.Status + } + return "" +} + +func (x *Job) GetMetadata() map[string]string { + if x != nil { + return x.Metadata + } + return nil +} + +func (x *Job) GetLastSuccess() *Job_NullableTime { + if x != nil { + return x.LastSuccess + } + return nil +} + +func (x *Job) GetLastError() *Job_NullableTime { + if x != nil { + return x.LastError + } + return nil +} + +func (x *Job) GetNext() *timestamppb.Timestamp { + if x != nil { + return x.Next + } + return nil +} + +func (x *Job) GetDisplayname() string { + if x != nil { + return x.Displayname + } + return "" +} + +func (x *Job) GetProcessors() map[string]*PluginConfig { + if x != nil { + return x.Processors + } + return nil +} + +func (x *Job) GetEphemeral() bool { + if x != nil { + return x.Ephemeral + } + return false +} + +func (x *Job) GetExpiresAt() *Job_NullableTime { + if x != nil { + return x.ExpiresAt + } + return nil +} + +type PluginConfig struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` +} + +func (x *PluginConfig) Reset() { + *x = PluginConfig{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *PluginConfig) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*PluginConfig) ProtoMessage() {} + +func (x *PluginConfig) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead. +func (*PluginConfig) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{1} +} + +func (x *PluginConfig) GetConfig() map[string]string { + if x != nil { + return x.Config + } + return nil +} + +type SetJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *SetJobRequest) Reset() { + *x = SetJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetJobRequest) ProtoMessage() {} + +func (x *SetJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetJobRequest.ProtoReflect.Descriptor instead. +func (*SetJobRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{2} +} + +func (x *SetJobRequest) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type SetJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *SetJobResponse) Reset() { + *x = SetJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *SetJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*SetJobResponse) ProtoMessage() {} + +func (x *SetJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use SetJobResponse.ProtoReflect.Descriptor instead. +func (*SetJobResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{3} +} + +func (x *SetJobResponse) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type DeleteJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` +} + +func (x *DeleteJobRequest) Reset() { + *x = DeleteJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteJobRequest) ProtoMessage() {} + +func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead. +func (*DeleteJobRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{4} +} + +func (x *DeleteJobRequest) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +type DeleteJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *DeleteJobResponse) Reset() { + *x = DeleteJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *DeleteJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*DeleteJobResponse) ProtoMessage() {} + +func (x *DeleteJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use DeleteJobResponse.ProtoReflect.Descriptor instead. +func (*DeleteJobResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{5} +} + +func (x *DeleteJobResponse) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type GetJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` +} + +func (x *GetJobRequest) Reset() { + *x = GetJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobRequest) ProtoMessage() {} + +func (x *GetJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead. +func (*GetJobRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{6} +} + +func (x *GetJobRequest) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +type GetJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *GetJobResponse) Reset() { + *x = GetJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobResponse) ProtoMessage() {} + +func (x *GetJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead. +func (*GetJobResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{7} +} + +func (x *GetJobResponse) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type Execution struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` + Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` + Output []byte `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` + NodeName string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` + Group int64 `protobuf:"varint,5,opt,name=group,proto3" json:"group,omitempty"` + Attempt uint32 `protobuf:"varint,6,opt,name=attempt,proto3" json:"attempt,omitempty"` + StartedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` + FinishedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` +} + +func (x *Execution) Reset() { + *x = Execution{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[8] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Execution) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Execution) ProtoMessage() {} + +func (x *Execution) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[8] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Execution.ProtoReflect.Descriptor instead. +func (*Execution) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{8} +} + +func (x *Execution) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +func (x *Execution) GetSuccess() bool { + if x != nil { + return x.Success + } + return false +} + +func (x *Execution) GetOutput() []byte { + if x != nil { + return x.Output + } + return nil +} + +func (x *Execution) GetNodeName() string { + if x != nil { + return x.NodeName + } + return "" +} + +func (x *Execution) GetGroup() int64 { + if x != nil { + return x.Group + } + return 0 +} + +func (x *Execution) GetAttempt() uint32 { + if x != nil { + return x.Attempt + } + return 0 +} + +func (x *Execution) GetStartedAt() *timestamppb.Timestamp { + if x != nil { + return x.StartedAt + } + return nil +} + +func (x *Execution) GetFinishedAt() *timestamppb.Timestamp { + if x != nil { + return x.FinishedAt + } + return nil +} + +type ExecutionDoneRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` +} + +func (x *ExecutionDoneRequest) Reset() { + *x = ExecutionDoneRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionDoneRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionDoneRequest) ProtoMessage() {} + +func (x *ExecutionDoneRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[9] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionDoneRequest.ProtoReflect.Descriptor instead. +func (*ExecutionDoneRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{9} +} + +func (x *ExecutionDoneRequest) GetExecution() *Execution { + if x != nil { + return x.Execution + } + return nil +} + +type ExecutionDoneResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` + Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` +} + +func (x *ExecutionDoneResponse) Reset() { + *x = ExecutionDoneResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[10] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecutionDoneResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecutionDoneResponse) ProtoMessage() {} + +func (x *ExecutionDoneResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[10] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecutionDoneResponse.ProtoReflect.Descriptor instead. +func (*ExecutionDoneResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{10} +} + +func (x *ExecutionDoneResponse) GetFrom() string { + if x != nil { + return x.From + } + return "" +} + +func (x *ExecutionDoneResponse) GetPayload() []byte { + if x != nil { + return x.Payload + } + return nil +} + +type RunJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` +} + +func (x *RunJobRequest) Reset() { + *x = RunJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[11] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RunJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RunJobRequest) ProtoMessage() {} + +func (x *RunJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[11] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RunJobRequest.ProtoReflect.Descriptor instead. +func (*RunJobRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{11} +} + +func (x *RunJobRequest) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +type RunJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *RunJobResponse) Reset() { + *x = RunJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[12] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RunJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RunJobResponse) ProtoMessage() {} + +func (x *RunJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[12] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RunJobResponse.ProtoReflect.Descriptor instead. +func (*RunJobResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{12} +} + +func (x *RunJobResponse) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type ToggleJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` +} + +func (x *ToggleJobRequest) Reset() { + *x = ToggleJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[13] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ToggleJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ToggleJobRequest) ProtoMessage() {} + +func (x *ToggleJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[13] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ToggleJobRequest.ProtoReflect.Descriptor instead. +func (*ToggleJobRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{13} +} + +func (x *ToggleJobRequest) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +type ToggleJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` +} + +func (x *ToggleJobResponse) Reset() { + *x = ToggleJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[14] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ToggleJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ToggleJobResponse) ProtoMessage() {} + +func (x *ToggleJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[14] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ToggleJobResponse.ProtoReflect.Descriptor instead. +func (*ToggleJobResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{14} +} + +func (x *ToggleJobResponse) GetJob() *Job { + if x != nil { + return x.Job + } + return nil +} + +type RaftServer struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` + Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` + Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` + Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` + Voter bool `protobuf:"varint,5,opt,name=voter,proto3" json:"voter,omitempty"` + RaftProtocol string `protobuf:"bytes,6,opt,name=raft_protocol,json=raftProtocol,proto3" json:"raft_protocol,omitempty"` +} + +func (x *RaftServer) Reset() { + *x = RaftServer{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[15] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RaftServer) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RaftServer) ProtoMessage() {} + +func (x *RaftServer) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[15] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RaftServer.ProtoReflect.Descriptor instead. +func (*RaftServer) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{15} +} + +func (x *RaftServer) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +func (x *RaftServer) GetNode() string { + if x != nil { + return x.Node + } + return "" +} + +func (x *RaftServer) GetAddress() string { + if x != nil { + return x.Address + } + return "" +} + +func (x *RaftServer) GetLeader() bool { + if x != nil { + return x.Leader + } + return false +} + +func (x *RaftServer) GetVoter() bool { + if x != nil { + return x.Voter + } + return false +} + +func (x *RaftServer) GetRaftProtocol() string { + if x != nil { + return x.RaftProtocol + } + return "" +} + +type RaftGetConfigurationResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Servers []*RaftServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` + Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` +} + +func (x *RaftGetConfigurationResponse) Reset() { + *x = RaftGetConfigurationResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[16] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RaftGetConfigurationResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RaftGetConfigurationResponse) ProtoMessage() {} + +func (x *RaftGetConfigurationResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[16] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RaftGetConfigurationResponse.ProtoReflect.Descriptor instead. +func (*RaftGetConfigurationResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{16} +} + +func (x *RaftGetConfigurationResponse) GetServers() []*RaftServer { + if x != nil { + return x.Servers + } + return nil +} + +func (x *RaftGetConfigurationResponse) GetIndex() uint64 { + if x != nil { + return x.Index + } + return 0 +} + +type RaftRemovePeerByIDRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` +} + +func (x *RaftRemovePeerByIDRequest) Reset() { + *x = RaftRemovePeerByIDRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[17] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *RaftRemovePeerByIDRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*RaftRemovePeerByIDRequest) ProtoMessage() {} + +func (x *RaftRemovePeerByIDRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[17] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use RaftRemovePeerByIDRequest.ProtoReflect.Descriptor instead. +func (*RaftRemovePeerByIDRequest) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{17} +} + +func (x *RaftRemovePeerByIDRequest) GetId() string { + if x != nil { + return x.Id + } + return "" +} + +type GetActiveExecutionsResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` +} + +func (x *GetActiveExecutionsResponse) Reset() { + *x = GetActiveExecutionsResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[18] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetActiveExecutionsResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetActiveExecutionsResponse) ProtoMessage() {} + +func (x *GetActiveExecutionsResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[18] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetActiveExecutionsResponse.ProtoReflect.Descriptor instead. +func (*GetActiveExecutionsResponse) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{18} +} + +func (x *GetActiveExecutionsResponse) GetExecutions() []*Execution { + if x != nil { + return x.Executions + } + return nil +} + +type Job_NullableTime struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + HasValue bool `protobuf:"varint,1,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"` + Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` +} + +func (x *Job_NullableTime) Reset() { + *x = Job_NullableTime{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_dkron_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *Job_NullableTime) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*Job_NullableTime) ProtoMessage() {} + +func (x *Job_NullableTime) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_dkron_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use Job_NullableTime.ProtoReflect.Descriptor instead. +func (*Job_NullableTime) Descriptor() ([]byte, []int) { + return file_types_v1_dkron_proto_rawDescGZIP(), []int{0, 3} +} + +func (x *Job_NullableTime) GetHasValue() bool { + if x != nil { + return x.HasValue + } + return false +} + +func (x *Job_NullableTime) GetTime() *timestamppb.Timestamp { + if x != nil { + return x.Time + } + return nil +} + +var File_types_v1_dkron_proto protoreflect.FileDescriptor + +var file_types_v1_dkron_proto_rawDesc = []byte{ + 0x0a, 0x14, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, + 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa3, + 0x0a, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x74, 0x69, + 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x74, 0x69, + 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, 0x68, 0x65, 0x64, 0x75, + 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, 0x6f, 0x77, 0x6e, 0x65, + 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x6f, + 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x75, 0x63, + 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x05, + 0x52, 0x0c, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, 0x1f, + 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x12, + 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x0b, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x2b, 0x0a, 0x04, 0x74, + 0x61, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, 0x72, + 0x69, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, 0x69, + 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x5f, + 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x70, 0x65, + 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, 0x72, + 0x65, 0x6e, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, + 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, 0x63, + 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x63, + 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, + 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x4a, 0x0a, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x13, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, + 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x61, + 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0x12, 0x3d, 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, + 0x65, 0x73, 0x73, 0x18, 0x19, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, + 0x65, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0b, 0x6c, 0x61, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, + 0x73, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, + 0x6d, 0x65, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x2e, 0x0a, + 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x12, 0x20, 0x0a, + 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x18, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6e, 0x61, 0x6d, 0x65, 0x12, + 0x3d, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x18, 0x1b, 0x20, + 0x03, 0x28, 0x0b, 0x32, 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, + 0x6f, 0x62, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, + 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x12, 0x1c, + 0x0a, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x1c, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x39, 0x0a, 0x0a, + 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x1d, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, + 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x09, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x41, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, + 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, + 0x02, 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, + 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, + 0x1a, 0x5b, 0x0a, 0x0c, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x68, 0x61, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x68, 0x61, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, + 0x04, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x1a, 0x55, 0x0a, + 0x0f, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6c, 0x75, + 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, + 0x3a, 0x02, 0x38, 0x01, 0x22, 0x85, 0x01, 0x0a, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, + 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x3a, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, + 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x22, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, + 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, + 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, + 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, + 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, + 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x30, 0x0a, 0x0d, + 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1f, 0x0a, + 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x31, + 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, + 0x62, 0x22, 0x2d, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, + 0x22, 0x34, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, + 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2a, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, + 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, + 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, + 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x9d, 0x02, 0x0a, 0x09, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, + 0x75, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, + 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, + 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, + 0x6f, 0x75, 0x70, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x06, + 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x39, 0x0a, + 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x69, + 0x73, 0x68, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73, + 0x68, 0x65, 0x64, 0x41, 0x74, 0x22, 0x49, 0x0a, 0x14, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x31, 0x0a, + 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, + 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x22, 0x45, 0x0a, 0x15, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, + 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, + 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, + 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, + 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0x2a, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, + 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x0e, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x4a, 0x6f, + 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2d, 0x0a, 0x10, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, + 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, + 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x34, 0x0a, 0x11, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1f, 0x0a, 0x03, 0x6a, 0x6f, + 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x9d, 0x01, 0x0a, 0x0a, + 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x6f, + 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x12, 0x18, + 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6c, 0x65, 0x61, 0x64, + 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, + 0x12, 0x14, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, + 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x61, 0x66, 0x74, 0x5f, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x72, + 0x61, 0x66, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, 0x64, 0x0a, 0x1c, 0x52, + 0x61, 0x66, 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2e, 0x0a, 0x07, 0x73, + 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x69, + 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, 0x65, + 0x78, 0x22, 0x2b, 0x0a, 0x19, 0x52, 0x61, 0x66, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, + 0x65, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x0e, + 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, 0x52, + 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, + 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, + 0x6e, 0x73, 0x32, 0x93, 0x06, 0x0a, 0x05, 0x44, 0x6b, 0x72, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x06, + 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, + 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x12, 0x1e, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, + 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x4c, + 0x65, 0x61, 0x76, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x12, 0x3b, 0x0a, 0x06, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x17, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, + 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x44, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x1a, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x4a, 0x6f, + 0x62, 0x12, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, 0x6f, + 0x62, 0x12, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x67, + 0x67, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x14, 0x52, 0x61, + 0x66, 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, + 0x6f, 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x26, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, + 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x51, 0x0a, 0x12, 0x52, 0x61, 0x66, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, + 0x50, 0x65, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x12, 0x23, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x65, + 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, + 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x54, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, + 0x76, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, + 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x25, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, + 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3b, 0x0a, 0x0c, 0x53, + 0x65, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x13, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, + 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x42, 0x94, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x0a, 0x44, 0x6b, 0x72, 0x6f, 0x6e, + 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, + 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, + 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, + 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, + 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, + 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, + 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, + 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_types_v1_dkron_proto_rawDescOnce sync.Once + file_types_v1_dkron_proto_rawDescData = file_types_v1_dkron_proto_rawDesc +) + +func file_types_v1_dkron_proto_rawDescGZIP() []byte { + file_types_v1_dkron_proto_rawDescOnce.Do(func() { + file_types_v1_dkron_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_v1_dkron_proto_rawDescData) + }) + return file_types_v1_dkron_proto_rawDescData +} + +var file_types_v1_dkron_proto_msgTypes = make([]protoimpl.MessageInfo, 25) +var file_types_v1_dkron_proto_goTypes = []interface{}{ + (*Job)(nil), // 0: types.v1.Job + (*PluginConfig)(nil), // 1: types.v1.PluginConfig + (*SetJobRequest)(nil), // 2: types.v1.SetJobRequest + (*SetJobResponse)(nil), // 3: types.v1.SetJobResponse + (*DeleteJobRequest)(nil), // 4: types.v1.DeleteJobRequest + (*DeleteJobResponse)(nil), // 5: types.v1.DeleteJobResponse + (*GetJobRequest)(nil), // 6: types.v1.GetJobRequest + (*GetJobResponse)(nil), // 7: types.v1.GetJobResponse + (*Execution)(nil), // 8: types.v1.Execution + (*ExecutionDoneRequest)(nil), // 9: types.v1.ExecutionDoneRequest + (*ExecutionDoneResponse)(nil), // 10: types.v1.ExecutionDoneResponse + (*RunJobRequest)(nil), // 11: types.v1.RunJobRequest + (*RunJobResponse)(nil), // 12: types.v1.RunJobResponse + (*ToggleJobRequest)(nil), // 13: types.v1.ToggleJobRequest + (*ToggleJobResponse)(nil), // 14: types.v1.ToggleJobResponse + (*RaftServer)(nil), // 15: types.v1.RaftServer + (*RaftGetConfigurationResponse)(nil), // 16: types.v1.RaftGetConfigurationResponse + (*RaftRemovePeerByIDRequest)(nil), // 17: types.v1.RaftRemovePeerByIDRequest + (*GetActiveExecutionsResponse)(nil), // 18: types.v1.GetActiveExecutionsResponse + nil, // 19: types.v1.Job.TagsEntry + nil, // 20: types.v1.Job.ExecutorConfigEntry + nil, // 21: types.v1.Job.MetadataEntry + (*Job_NullableTime)(nil), // 22: types.v1.Job.NullableTime + nil, // 23: types.v1.Job.ProcessorsEntry + nil, // 24: types.v1.PluginConfig.ConfigEntry + (*timestamppb.Timestamp)(nil), // 25: google.protobuf.Timestamp + (*emptypb.Empty)(nil), // 26: google.protobuf.Empty +} +var file_types_v1_dkron_proto_depIdxs = []int32{ + 19, // 0: types.v1.Job.tags:type_name -> types.v1.Job.TagsEntry + 20, // 1: types.v1.Job.executor_config:type_name -> types.v1.Job.ExecutorConfigEntry + 21, // 2: types.v1.Job.metadata:type_name -> types.v1.Job.MetadataEntry + 22, // 3: types.v1.Job.last_success:type_name -> types.v1.Job.NullableTime + 22, // 4: types.v1.Job.last_error:type_name -> types.v1.Job.NullableTime + 25, // 5: types.v1.Job.next:type_name -> google.protobuf.Timestamp + 23, // 6: types.v1.Job.processors:type_name -> types.v1.Job.ProcessorsEntry + 22, // 7: types.v1.Job.expires_at:type_name -> types.v1.Job.NullableTime + 24, // 8: types.v1.PluginConfig.config:type_name -> types.v1.PluginConfig.ConfigEntry + 0, // 9: types.v1.SetJobRequest.job:type_name -> types.v1.Job + 0, // 10: types.v1.SetJobResponse.job:type_name -> types.v1.Job + 0, // 11: types.v1.DeleteJobResponse.job:type_name -> types.v1.Job + 0, // 12: types.v1.GetJobResponse.job:type_name -> types.v1.Job + 25, // 13: types.v1.Execution.started_at:type_name -> google.protobuf.Timestamp + 25, // 14: types.v1.Execution.finished_at:type_name -> google.protobuf.Timestamp + 8, // 15: types.v1.ExecutionDoneRequest.execution:type_name -> types.v1.Execution + 0, // 16: types.v1.RunJobResponse.job:type_name -> types.v1.Job + 0, // 17: types.v1.ToggleJobResponse.job:type_name -> types.v1.Job + 15, // 18: types.v1.RaftGetConfigurationResponse.servers:type_name -> types.v1.RaftServer + 8, // 19: types.v1.GetActiveExecutionsResponse.executions:type_name -> types.v1.Execution + 25, // 20: types.v1.Job.NullableTime.time:type_name -> google.protobuf.Timestamp + 1, // 21: types.v1.Job.ProcessorsEntry.value:type_name -> types.v1.PluginConfig + 6, // 22: types.v1.Dkron.GetJob:input_type -> types.v1.GetJobRequest + 9, // 23: types.v1.Dkron.ExecutionDone:input_type -> types.v1.ExecutionDoneRequest + 26, // 24: types.v1.Dkron.Leave:input_type -> google.protobuf.Empty + 2, // 25: types.v1.Dkron.SetJob:input_type -> types.v1.SetJobRequest + 4, // 26: types.v1.Dkron.DeleteJob:input_type -> types.v1.DeleteJobRequest + 11, // 27: types.v1.Dkron.RunJob:input_type -> types.v1.RunJobRequest + 13, // 28: types.v1.Dkron.ToggleJob:input_type -> types.v1.ToggleJobRequest + 26, // 29: types.v1.Dkron.RaftGetConfiguration:input_type -> google.protobuf.Empty + 17, // 30: types.v1.Dkron.RaftRemovePeerByID:input_type -> types.v1.RaftRemovePeerByIDRequest + 26, // 31: types.v1.Dkron.GetActiveExecutions:input_type -> google.protobuf.Empty + 8, // 32: types.v1.Dkron.SetExecution:input_type -> types.v1.Execution + 7, // 33: types.v1.Dkron.GetJob:output_type -> types.v1.GetJobResponse + 10, // 34: types.v1.Dkron.ExecutionDone:output_type -> types.v1.ExecutionDoneResponse + 26, // 35: types.v1.Dkron.Leave:output_type -> google.protobuf.Empty + 3, // 36: types.v1.Dkron.SetJob:output_type -> types.v1.SetJobResponse + 5, // 37: types.v1.Dkron.DeleteJob:output_type -> types.v1.DeleteJobResponse + 12, // 38: types.v1.Dkron.RunJob:output_type -> types.v1.RunJobResponse + 14, // 39: types.v1.Dkron.ToggleJob:output_type -> types.v1.ToggleJobResponse + 16, // 40: types.v1.Dkron.RaftGetConfiguration:output_type -> types.v1.RaftGetConfigurationResponse + 26, // 41: types.v1.Dkron.RaftRemovePeerByID:output_type -> google.protobuf.Empty + 18, // 42: types.v1.Dkron.GetActiveExecutions:output_type -> types.v1.GetActiveExecutionsResponse + 26, // 43: types.v1.Dkron.SetExecution:output_type -> google.protobuf.Empty + 33, // [33:44] is the sub-list for method output_type + 22, // [22:33] is the sub-list for method input_type + 22, // [22:22] is the sub-list for extension type_name + 22, // [22:22] is the sub-list for extension extendee + 0, // [0:22] is the sub-list for field type_name +} + +func init() { file_types_v1_dkron_proto_init() } +func file_types_v1_dkron_proto_init() { + if File_types_v1_dkron_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_types_v1_dkron_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Job); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*PluginConfig); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*DeleteJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Execution); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionDoneRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecutionDoneResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RunJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RunJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ToggleJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ToggleJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftServer); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftGetConfigurationResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*RaftRemovePeerByIDRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetActiveExecutionsResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_dkron_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Job_NullableTime); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_types_v1_dkron_proto_rawDesc, + NumEnums: 0, + NumMessages: 25, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_types_v1_dkron_proto_goTypes, + DependencyIndexes: file_types_v1_dkron_proto_depIdxs, + MessageInfos: file_types_v1_dkron_proto_msgTypes, + }.Build() + File_types_v1_dkron_proto = out.File + file_types_v1_dkron_proto_rawDesc = nil + file_types_v1_dkron_proto_goTypes = nil + file_types_v1_dkron_proto_depIdxs = nil +} diff --git a/types/dkron_grpc.pb.go b/gen/proto/types/v1/dkron_grpc.pb.go similarity index 77% rename from types/dkron_grpc.pb.go rename to gen/proto/types/v1/dkron_grpc.pb.go index 39c90be51..eeb433f33 100644 --- a/types/dkron_grpc.pb.go +++ b/gen/proto/types/v1/dkron_grpc.pb.go @@ -1,10 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.3 -// source: dkron.proto +// - protoc (unknown) +// source: types/v1/dkron.proto -package types +package typesv1 import ( context "context" @@ -25,14 +25,26 @@ const _ = grpc.SupportPackageIsVersion7 type DkronClient interface { GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) ExecutionDone(ctx context.Context, in *ExecutionDoneRequest, opts ...grpc.CallOption) (*ExecutionDoneResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME Leave(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) SetJob(ctx context.Context, in *SetJobRequest, opts ...grpc.CallOption) (*SetJobResponse, error) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobResponse, error) RunJob(ctx context.Context, in *RunJobRequest, opts ...grpc.CallOption) (*RunJobResponse, error) ToggleJob(ctx context.Context, in *ToggleJobRequest, opts ...grpc.CallOption) (*ToggleJobResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME RaftGetConfiguration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RaftGetConfigurationResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME RaftRemovePeerByID(ctx context.Context, in *RaftRemovePeerByIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME GetActiveExecutions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetActiveExecutionsResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME SetExecution(ctx context.Context, in *Execution, opts ...grpc.CallOption) (*emptypb.Empty, error) } @@ -46,7 +58,7 @@ func NewDkronClient(cc grpc.ClientConnInterface) DkronClient { func (c *dkronClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) { out := new(GetJobResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/GetJob", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/GetJob", in, out, opts...) if err != nil { return nil, err } @@ -55,7 +67,7 @@ func (c *dkronClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grp func (c *dkronClient) ExecutionDone(ctx context.Context, in *ExecutionDoneRequest, opts ...grpc.CallOption) (*ExecutionDoneResponse, error) { out := new(ExecutionDoneResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/ExecutionDone", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/ExecutionDone", in, out, opts...) if err != nil { return nil, err } @@ -64,7 +76,7 @@ func (c *dkronClient) ExecutionDone(ctx context.Context, in *ExecutionDoneReques func (c *dkronClient) Leave(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/types.Dkron/Leave", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/Leave", in, out, opts...) if err != nil { return nil, err } @@ -73,7 +85,7 @@ func (c *dkronClient) Leave(ctx context.Context, in *emptypb.Empty, opts ...grpc func (c *dkronClient) SetJob(ctx context.Context, in *SetJobRequest, opts ...grpc.CallOption) (*SetJobResponse, error) { out := new(SetJobResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/SetJob", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/SetJob", in, out, opts...) if err != nil { return nil, err } @@ -82,7 +94,7 @@ func (c *dkronClient) SetJob(ctx context.Context, in *SetJobRequest, opts ...grp func (c *dkronClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts ...grpc.CallOption) (*DeleteJobResponse, error) { out := new(DeleteJobResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/DeleteJob", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/DeleteJob", in, out, opts...) if err != nil { return nil, err } @@ -91,7 +103,7 @@ func (c *dkronClient) DeleteJob(ctx context.Context, in *DeleteJobRequest, opts func (c *dkronClient) RunJob(ctx context.Context, in *RunJobRequest, opts ...grpc.CallOption) (*RunJobResponse, error) { out := new(RunJobResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/RunJob", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/RunJob", in, out, opts...) if err != nil { return nil, err } @@ -100,7 +112,7 @@ func (c *dkronClient) RunJob(ctx context.Context, in *RunJobRequest, opts ...grp func (c *dkronClient) ToggleJob(ctx context.Context, in *ToggleJobRequest, opts ...grpc.CallOption) (*ToggleJobResponse, error) { out := new(ToggleJobResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/ToggleJob", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/ToggleJob", in, out, opts...) if err != nil { return nil, err } @@ -109,7 +121,7 @@ func (c *dkronClient) ToggleJob(ctx context.Context, in *ToggleJobRequest, opts func (c *dkronClient) RaftGetConfiguration(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*RaftGetConfigurationResponse, error) { out := new(RaftGetConfigurationResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/RaftGetConfiguration", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/RaftGetConfiguration", in, out, opts...) if err != nil { return nil, err } @@ -118,7 +130,7 @@ func (c *dkronClient) RaftGetConfiguration(ctx context.Context, in *emptypb.Empt func (c *dkronClient) RaftRemovePeerByID(ctx context.Context, in *RaftRemovePeerByIDRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/types.Dkron/RaftRemovePeerByID", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/RaftRemovePeerByID", in, out, opts...) if err != nil { return nil, err } @@ -127,7 +139,7 @@ func (c *dkronClient) RaftRemovePeerByID(ctx context.Context, in *RaftRemovePeer func (c *dkronClient) GetActiveExecutions(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*GetActiveExecutionsResponse, error) { out := new(GetActiveExecutionsResponse) - err := c.cc.Invoke(ctx, "/types.Dkron/GetActiveExecutions", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/GetActiveExecutions", in, out, opts...) if err != nil { return nil, err } @@ -136,7 +148,7 @@ func (c *dkronClient) GetActiveExecutions(ctx context.Context, in *emptypb.Empty func (c *dkronClient) SetExecution(ctx context.Context, in *Execution, opts ...grpc.CallOption) (*emptypb.Empty, error) { out := new(emptypb.Empty) - err := c.cc.Invoke(ctx, "/types.Dkron/SetExecution", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.Dkron/SetExecution", in, out, opts...) if err != nil { return nil, err } @@ -149,14 +161,26 @@ func (c *dkronClient) SetExecution(ctx context.Context, in *Execution, opts ...g type DkronServer interface { GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) ExecutionDone(context.Context, *ExecutionDoneRequest) (*ExecutionDoneResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME Leave(context.Context, *emptypb.Empty) (*emptypb.Empty, error) SetJob(context.Context, *SetJobRequest) (*SetJobResponse, error) DeleteJob(context.Context, *DeleteJobRequest) (*DeleteJobResponse, error) RunJob(context.Context, *RunJobRequest) (*RunJobResponse, error) ToggleJob(context.Context, *ToggleJobRequest) (*ToggleJobResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME RaftGetConfiguration(context.Context, *emptypb.Empty) (*RaftGetConfigurationResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME RaftRemovePeerByID(context.Context, *RaftRemovePeerByIDRequest) (*emptypb.Empty, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME GetActiveExecutions(context.Context, *emptypb.Empty) (*GetActiveExecutionsResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME SetExecution(context.Context, *Execution) (*emptypb.Empty, error) mustEmbedUnimplementedDkronServer() } @@ -221,7 +245,7 @@ func _Dkron_GetJob_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/GetJob", + FullMethod: "/types.v1.Dkron/GetJob", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).GetJob(ctx, req.(*GetJobRequest)) @@ -239,7 +263,7 @@ func _Dkron_ExecutionDone_Handler(srv interface{}, ctx context.Context, dec func } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/ExecutionDone", + FullMethod: "/types.v1.Dkron/ExecutionDone", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).ExecutionDone(ctx, req.(*ExecutionDoneRequest)) @@ -257,7 +281,7 @@ func _Dkron_Leave_Handler(srv interface{}, ctx context.Context, dec func(interfa } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/Leave", + FullMethod: "/types.v1.Dkron/Leave", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).Leave(ctx, req.(*emptypb.Empty)) @@ -275,7 +299,7 @@ func _Dkron_SetJob_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/SetJob", + FullMethod: "/types.v1.Dkron/SetJob", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).SetJob(ctx, req.(*SetJobRequest)) @@ -293,7 +317,7 @@ func _Dkron_DeleteJob_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/DeleteJob", + FullMethod: "/types.v1.Dkron/DeleteJob", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).DeleteJob(ctx, req.(*DeleteJobRequest)) @@ -311,7 +335,7 @@ func _Dkron_RunJob_Handler(srv interface{}, ctx context.Context, dec func(interf } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/RunJob", + FullMethod: "/types.v1.Dkron/RunJob", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).RunJob(ctx, req.(*RunJobRequest)) @@ -329,7 +353,7 @@ func _Dkron_ToggleJob_Handler(srv interface{}, ctx context.Context, dec func(int } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/ToggleJob", + FullMethod: "/types.v1.Dkron/ToggleJob", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).ToggleJob(ctx, req.(*ToggleJobRequest)) @@ -347,7 +371,7 @@ func _Dkron_RaftGetConfiguration_Handler(srv interface{}, ctx context.Context, d } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/RaftGetConfiguration", + FullMethod: "/types.v1.Dkron/RaftGetConfiguration", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).RaftGetConfiguration(ctx, req.(*emptypb.Empty)) @@ -365,7 +389,7 @@ func _Dkron_RaftRemovePeerByID_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/RaftRemovePeerByID", + FullMethod: "/types.v1.Dkron/RaftRemovePeerByID", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).RaftRemovePeerByID(ctx, req.(*RaftRemovePeerByIDRequest)) @@ -383,7 +407,7 @@ func _Dkron_GetActiveExecutions_Handler(srv interface{}, ctx context.Context, de } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/GetActiveExecutions", + FullMethod: "/types.v1.Dkron/GetActiveExecutions", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).GetActiveExecutions(ctx, req.(*emptypb.Empty)) @@ -401,7 +425,7 @@ func _Dkron_SetExecution_Handler(srv interface{}, ctx context.Context, dec func( } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.Dkron/SetExecution", + FullMethod: "/types.v1.Dkron/SetExecution", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronServer).SetExecution(ctx, req.(*Execution)) @@ -413,7 +437,7 @@ func _Dkron_SetExecution_Handler(srv interface{}, ctx context.Context, dec func( // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var Dkron_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "types.Dkron", + ServiceName: "types.v1.Dkron", HandlerType: (*DkronServer)(nil), Methods: []grpc.MethodDesc{ { @@ -462,118 +486,5 @@ var Dkron_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "dkron.proto", -} - -// AgentClient is the client API for Agent service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type AgentClient interface { - AgentRun(ctx context.Context, in *AgentRunRequest, opts ...grpc.CallOption) (Agent_AgentRunClient, error) -} - -type agentClient struct { - cc grpc.ClientConnInterface -} - -func NewAgentClient(cc grpc.ClientConnInterface) AgentClient { - return &agentClient{cc} -} - -func (c *agentClient) AgentRun(ctx context.Context, in *AgentRunRequest, opts ...grpc.CallOption) (Agent_AgentRunClient, error) { - stream, err := c.cc.NewStream(ctx, &Agent_ServiceDesc.Streams[0], "/types.Agent/AgentRun", opts...) - if err != nil { - return nil, err - } - x := &agentAgentRunClient{stream} - if err := x.ClientStream.SendMsg(in); err != nil { - return nil, err - } - if err := x.ClientStream.CloseSend(); err != nil { - return nil, err - } - return x, nil -} - -type Agent_AgentRunClient interface { - Recv() (*AgentRunStream, error) - grpc.ClientStream -} - -type agentAgentRunClient struct { - grpc.ClientStream -} - -func (x *agentAgentRunClient) Recv() (*AgentRunStream, error) { - m := new(AgentRunStream) - if err := x.ClientStream.RecvMsg(m); err != nil { - return nil, err - } - return m, nil -} - -// AgentServer is the server API for Agent service. -// All implementations must embed UnimplementedAgentServer -// for forward compatibility -type AgentServer interface { - AgentRun(*AgentRunRequest, Agent_AgentRunServer) error - mustEmbedUnimplementedAgentServer() -} - -// UnimplementedAgentServer must be embedded to have forward compatible implementations. -type UnimplementedAgentServer struct { -} - -func (UnimplementedAgentServer) AgentRun(*AgentRunRequest, Agent_AgentRunServer) error { - return status.Errorf(codes.Unimplemented, "method AgentRun not implemented") -} -func (UnimplementedAgentServer) mustEmbedUnimplementedAgentServer() {} - -// UnsafeAgentServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to AgentServer will -// result in compilation errors. -type UnsafeAgentServer interface { - mustEmbedUnimplementedAgentServer() -} - -func RegisterAgentServer(s grpc.ServiceRegistrar, srv AgentServer) { - s.RegisterService(&Agent_ServiceDesc, srv) -} - -func _Agent_AgentRun_Handler(srv interface{}, stream grpc.ServerStream) error { - m := new(AgentRunRequest) - if err := stream.RecvMsg(m); err != nil { - return err - } - return srv.(AgentServer).AgentRun(m, &agentAgentRunServer{stream}) -} - -type Agent_AgentRunServer interface { - Send(*AgentRunStream) error - grpc.ServerStream -} - -type agentAgentRunServer struct { - grpc.ServerStream -} - -func (x *agentAgentRunServer) Send(m *AgentRunStream) error { - return x.ServerStream.SendMsg(m) -} - -// Agent_ServiceDesc is the grpc.ServiceDesc for Agent service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Agent_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "types.Agent", - HandlerType: (*AgentServer)(nil), - Methods: []grpc.MethodDesc{}, - Streams: []grpc.StreamDesc{ - { - StreamName: "AgentRun", - Handler: _Agent_AgentRun_Handler, - ServerStreams: true, - }, - }, - Metadata: "dkron.proto", + Metadata: "types/v1/dkron.proto", } diff --git a/types/execution.go b/gen/proto/types/v1/execution.go similarity index 87% rename from types/execution.go rename to gen/proto/types/v1/execution.go index 1508df2e7..8871cb80e 100644 --- a/types/execution.go +++ b/gen/proto/types/v1/execution.go @@ -1,7 +1,7 @@ -package types +package typesv1 import ( - fmt "fmt" + "fmt" ) // Key computes the execution key diff --git a/gen/proto/types/v1/executor.pb.go b/gen/proto/types/v1/executor.pb.go new file mode 100644 index 000000000..de7146861 --- /dev/null +++ b/gen/proto/types/v1/executor.pb.go @@ -0,0 +1,403 @@ +// protoc -I proto/ --go_out=plugin/types --go_opt=paths=source_relative --go-grpc_out=plugin/types --go-grpc_opt=paths=source_relative executor.proto + +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.26.0 +// protoc (unknown) +// source: types/v1/executor.proto + +package typesv1 + +import ( + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +type ExecuteRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` + Config map[string]string `protobuf:"bytes,2,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` + StatusServer uint32 `protobuf:"varint,3,opt,name=status_server,json=statusServer,proto3" json:"status_server,omitempty"` +} + +func (x *ExecuteRequest) Reset() { + *x = ExecuteRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_executor_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteRequest) ProtoMessage() {} + +func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_executor_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. +func (*ExecuteRequest) Descriptor() ([]byte, []int) { + return file_types_v1_executor_proto_rawDescGZIP(), []int{0} +} + +func (x *ExecuteRequest) GetJobName() string { + if x != nil { + return x.JobName + } + return "" +} + +func (x *ExecuteRequest) GetConfig() map[string]string { + if x != nil { + return x.Config + } + return nil +} + +func (x *ExecuteRequest) GetStatusServer() uint32 { + if x != nil { + return x.StatusServer + } + return 0 +} + +type ExecuteResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` + Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *ExecuteResponse) Reset() { + *x = ExecuteResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_executor_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *ExecuteResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*ExecuteResponse) ProtoMessage() {} + +func (x *ExecuteResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_executor_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead. +func (*ExecuteResponse) Descriptor() ([]byte, []int) { + return file_types_v1_executor_proto_rawDescGZIP(), []int{1} +} + +func (x *ExecuteResponse) GetOutput() []byte { + if x != nil { + return x.Output + } + return nil +} + +func (x *ExecuteResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +type StatusUpdateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Output []byte `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` + Error bool `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *StatusUpdateRequest) Reset() { + *x = StatusUpdateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_executor_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatusUpdateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatusUpdateRequest) ProtoMessage() {} + +func (x *StatusUpdateRequest) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_executor_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StatusUpdateRequest.ProtoReflect.Descriptor instead. +func (*StatusUpdateRequest) Descriptor() ([]byte, []int) { + return file_types_v1_executor_proto_rawDescGZIP(), []int{2} +} + +func (x *StatusUpdateRequest) GetOutput() []byte { + if x != nil { + return x.Output + } + return nil +} + +func (x *StatusUpdateRequest) GetError() bool { + if x != nil { + return x.Error + } + return false +} + +type StatusUpdateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + R int64 `protobuf:"varint,1,opt,name=r,proto3" json:"r,omitempty"` +} + +func (x *StatusUpdateResponse) Reset() { + *x = StatusUpdateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_types_v1_executor_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StatusUpdateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StatusUpdateResponse) ProtoMessage() {} + +func (x *StatusUpdateResponse) ProtoReflect() protoreflect.Message { + mi := &file_types_v1_executor_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StatusUpdateResponse.ProtoReflect.Descriptor instead. +func (*StatusUpdateResponse) Descriptor() ([]byte, []int) { + return file_types_v1_executor_proto_rawDescGZIP(), []int{3} +} + +func (x *StatusUpdateResponse) GetR() int64 { + if x != nil { + return x.R + } + return 0 +} + +var File_types_v1_executor_proto protoreflect.FileDescriptor + +var file_types_v1_executor_proto_rawDesc = []byte{ + 0x0a, 0x17, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x65, 0x78, 0x65, 0x63, 0x75, + 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x22, 0xc9, 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, + 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, + 0x65, 0x12, 0x3c, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x02, 0x20, 0x03, 0x28, + 0x0b, 0x32, 0x24, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, + 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, 0x66, + 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, + 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, 0x65, + 0x72, 0x76, 0x65, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, + 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, + 0x3f, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, + 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, + 0x22, 0x43, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, + 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, + 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, + 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, + 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0c, 0x0a, + 0x01, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x72, 0x32, 0x51, 0x0a, 0x0f, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x3e, + 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x12, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x45, + 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x32, 0x5e, + 0x0a, 0x13, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x6c, 0x70, 0x65, 0x72, 0x53, 0x65, + 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x47, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, + 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x97, + 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, + 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, + 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x73, + 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, + 0x76, 0x34, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, + 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x54, 0x58, 0x58, 0xaa, + 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x08, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, + 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x09, 0x54, + 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_types_v1_executor_proto_rawDescOnce sync.Once + file_types_v1_executor_proto_rawDescData = file_types_v1_executor_proto_rawDesc +) + +func file_types_v1_executor_proto_rawDescGZIP() []byte { + file_types_v1_executor_proto_rawDescOnce.Do(func() { + file_types_v1_executor_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_v1_executor_proto_rawDescData) + }) + return file_types_v1_executor_proto_rawDescData +} + +var file_types_v1_executor_proto_msgTypes = make([]protoimpl.MessageInfo, 5) +var file_types_v1_executor_proto_goTypes = []interface{}{ + (*ExecuteRequest)(nil), // 0: types.v1.ExecuteRequest + (*ExecuteResponse)(nil), // 1: types.v1.ExecuteResponse + (*StatusUpdateRequest)(nil), // 2: types.v1.StatusUpdateRequest + (*StatusUpdateResponse)(nil), // 3: types.v1.StatusUpdateResponse + nil, // 4: types.v1.ExecuteRequest.ConfigEntry +} +var file_types_v1_executor_proto_depIdxs = []int32{ + 4, // 0: types.v1.ExecuteRequest.config:type_name -> types.v1.ExecuteRequest.ConfigEntry + 0, // 1: types.v1.ExecutorService.Execute:input_type -> types.v1.ExecuteRequest + 2, // 2: types.v1.StatusHelperService.Update:input_type -> types.v1.StatusUpdateRequest + 1, // 3: types.v1.ExecutorService.Execute:output_type -> types.v1.ExecuteResponse + 3, // 4: types.v1.StatusHelperService.Update:output_type -> types.v1.StatusUpdateResponse + 3, // [3:5] is the sub-list for method output_type + 1, // [1:3] is the sub-list for method input_type + 1, // [1:1] is the sub-list for extension type_name + 1, // [1:1] is the sub-list for extension extendee + 0, // [0:1] is the sub-list for field type_name +} + +func init() { file_types_v1_executor_proto_init() } +func file_types_v1_executor_proto_init() { + if File_types_v1_executor_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_types_v1_executor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_executor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ExecuteResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_executor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusUpdateRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_types_v1_executor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StatusUpdateResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_types_v1_executor_proto_rawDesc, + NumEnums: 0, + NumMessages: 5, + NumExtensions: 0, + NumServices: 2, + }, + GoTypes: file_types_v1_executor_proto_goTypes, + DependencyIndexes: file_types_v1_executor_proto_depIdxs, + MessageInfos: file_types_v1_executor_proto_msgTypes, + }.Build() + File_types_v1_executor_proto = out.File + file_types_v1_executor_proto_rawDesc = nil + file_types_v1_executor_proto_goTypes = nil + file_types_v1_executor_proto_depIdxs = nil +} diff --git a/gen/proto/types/v1/executor_grpc.pb.go b/gen/proto/types/v1/executor_grpc.pb.go new file mode 100644 index 000000000..41ca2da45 --- /dev/null +++ b/gen/proto/types/v1/executor_grpc.pb.go @@ -0,0 +1,195 @@ +// Code generated by protoc-gen-go-grpc. DO NOT EDIT. +// versions: +// - protoc-gen-go-grpc v1.2.0 +// - protoc (unknown) +// source: types/v1/executor.proto + +package typesv1 + +import ( + context "context" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" +) + +// This is a compile-time assertion to ensure that this generated file +// is compatible with the grpc package it is being compiled against. +// Requires gRPC-Go v1.32.0 or later. +const _ = grpc.SupportPackageIsVersion7 + +// ExecutorServiceClient is the client API for ExecutorService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type ExecutorServiceClient interface { + Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) +} + +type executorServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewExecutorServiceClient(cc grpc.ClientConnInterface) ExecutorServiceClient { + return &executorServiceClient{cc} +} + +func (c *executorServiceClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) { + out := new(ExecuteResponse) + err := c.cc.Invoke(ctx, "/types.v1.ExecutorService/Execute", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// ExecutorServiceServer is the server API for ExecutorService service. +// All implementations must embed UnimplementedExecutorServiceServer +// for forward compatibility +type ExecutorServiceServer interface { + Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) + mustEmbedUnimplementedExecutorServiceServer() +} + +// UnimplementedExecutorServiceServer must be embedded to have forward compatible implementations. +type UnimplementedExecutorServiceServer struct { +} + +func (UnimplementedExecutorServiceServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented") +} +func (UnimplementedExecutorServiceServer) mustEmbedUnimplementedExecutorServiceServer() {} + +// UnsafeExecutorServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to ExecutorServiceServer will +// result in compilation errors. +type UnsafeExecutorServiceServer interface { + mustEmbedUnimplementedExecutorServiceServer() +} + +func RegisterExecutorServiceServer(s grpc.ServiceRegistrar, srv ExecutorServiceServer) { + s.RegisterService(&ExecutorService_ServiceDesc, srv) +} + +func _ExecutorService_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(ExecuteRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(ExecutorServiceServer).Execute(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/types.v1.ExecutorService/Execute", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(ExecutorServiceServer).Execute(ctx, req.(*ExecuteRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// ExecutorService_ServiceDesc is the grpc.ServiceDesc for ExecutorService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var ExecutorService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "types.v1.ExecutorService", + HandlerType: (*ExecutorServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Execute", + Handler: _ExecutorService_Execute_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "types/v1/executor.proto", +} + +// StatusHelperServiceClient is the client API for StatusHelperService service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. +type StatusHelperServiceClient interface { + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + Update(ctx context.Context, in *StatusUpdateRequest, opts ...grpc.CallOption) (*StatusUpdateResponse, error) +} + +type statusHelperServiceClient struct { + cc grpc.ClientConnInterface +} + +func NewStatusHelperServiceClient(cc grpc.ClientConnInterface) StatusHelperServiceClient { + return &statusHelperServiceClient{cc} +} + +func (c *statusHelperServiceClient) Update(ctx context.Context, in *StatusUpdateRequest, opts ...grpc.CallOption) (*StatusUpdateResponse, error) { + out := new(StatusUpdateResponse) + err := c.cc.Invoke(ctx, "/types.v1.StatusHelperService/Update", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// StatusHelperServiceServer is the server API for StatusHelperService service. +// All implementations must embed UnimplementedStatusHelperServiceServer +// for forward compatibility +type StatusHelperServiceServer interface { + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + Update(context.Context, *StatusUpdateRequest) (*StatusUpdateResponse, error) + mustEmbedUnimplementedStatusHelperServiceServer() +} + +// UnimplementedStatusHelperServiceServer must be embedded to have forward compatible implementations. +type UnimplementedStatusHelperServiceServer struct { +} + +func (UnimplementedStatusHelperServiceServer) Update(context.Context, *StatusUpdateRequest) (*StatusUpdateResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") +} +func (UnimplementedStatusHelperServiceServer) mustEmbedUnimplementedStatusHelperServiceServer() {} + +// UnsafeStatusHelperServiceServer may be embedded to opt out of forward compatibility for this service. +// Use of this interface is not recommended, as added methods to StatusHelperServiceServer will +// result in compilation errors. +type UnsafeStatusHelperServiceServer interface { + mustEmbedUnimplementedStatusHelperServiceServer() +} + +func RegisterStatusHelperServiceServer(s grpc.ServiceRegistrar, srv StatusHelperServiceServer) { + s.RegisterService(&StatusHelperService_ServiceDesc, srv) +} + +func _StatusHelperService_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StatusUpdateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(StatusHelperServiceServer).Update(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/types.v1.StatusHelperService/Update", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(StatusHelperServiceServer).Update(ctx, req.(*StatusUpdateRequest)) + } + return interceptor(ctx, in, info, handler) +} + +// StatusHelperService_ServiceDesc is the grpc.ServiceDesc for StatusHelperService service. +// It's only intended for direct use with grpc.RegisterService, +// and not to be introspected or modified (even as a copy) +var StatusHelperService_ServiceDesc = grpc.ServiceDesc{ + ServiceName: "types.v1.StatusHelperService", + HandlerType: (*StatusHelperServiceServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "Update", + Handler: _StatusHelperService_Update_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "types/v1/executor.proto", +} diff --git a/types/member.go b/gen/proto/types/v1/members.go similarity index 90% rename from types/member.go rename to gen/proto/types/v1/members.go index 28953f674..3b92a3784 100644 --- a/types/member.go +++ b/gen/proto/types/v1/members.go @@ -1,4 +1,4 @@ -package types +package typesv1 import "github.com/hashicorp/serf/serf" diff --git a/types/pro.pb.go b/gen/proto/types/v1/pro.pb.go similarity index 54% rename from types/pro.pb.go rename to gen/proto/types/v1/pro.pb.go index 53c6712a6..33891042a 100644 --- a/types/pro.pb.go +++ b/gen/proto/types/v1/pro.pb.go @@ -2,11 +2,11 @@ // Code generated by protoc-gen-go. DO NOT EDIT. // versions: -// protoc-gen-go v1.28.1 -// protoc v3.21.12 -// source: pro.proto +// protoc-gen-go v1.26.0 +// protoc (unknown) +// source: types/v1/pro.proto -package types +package typesv1 import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" @@ -27,19 +27,25 @@ const ( type TokenType int32 const ( - TokenType_management TokenType = 0 - TokenType_client TokenType = 1 + // buf:lint:ignore ENUM_VALUE_SAME_NAME + // buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX + TokenType_TOKEN_TYPE_MANAGEMENT TokenType = 0 + // buf:lint:ignore ENUM_VALUE_SAME_NAME + TokenType_TOKEN_TYPE_CLIENT TokenType = 1 + TokenType_TOKEN_TYPE_UNSPECIFIED TokenType = 2 ) // Enum value maps for TokenType. var ( TokenType_name = map[int32]string{ - 0: "management", - 1: "client", + 0: "TOKEN_TYPE_MANAGEMENT", + 1: "TOKEN_TYPE_CLIENT", + 2: "TOKEN_TYPE_UNSPECIFIED", } TokenType_value = map[string]int32{ - "management": 0, - "client": 1, + "TOKEN_TYPE_MANAGEMENT": 0, + "TOKEN_TYPE_CLIENT": 1, + "TOKEN_TYPE_UNSPECIFIED": 2, } ) @@ -54,11 +60,11 @@ func (x TokenType) String() string { } func (TokenType) Descriptor() protoreflect.EnumDescriptor { - return file_pro_proto_enumTypes[0].Descriptor() + return file_types_v1_pro_proto_enumTypes[0].Descriptor() } func (TokenType) Type() protoreflect.EnumType { - return &file_pro_proto_enumTypes[0] + return &file_types_v1_pro_proto_enumTypes[0] } func (x TokenType) Number() protoreflect.EnumNumber { @@ -67,7 +73,7 @@ func (x TokenType) Number() protoreflect.EnumNumber { // Deprecated: Use TokenType.Descriptor instead. func (TokenType) EnumDescriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{0} + return file_types_v1_pro_proto_rawDescGZIP(), []int{0} } // Policy is a policy definition @@ -83,7 +89,7 @@ type Policy struct { func (x *Policy) Reset() { *x = Policy{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[0] + mi := &file_types_v1_pro_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -96,7 +102,7 @@ func (x *Policy) String() string { func (*Policy) ProtoMessage() {} func (x *Policy) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[0] + mi := &file_types_v1_pro_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -109,7 +115,7 @@ func (x *Policy) ProtoReflect() protoreflect.Message { // Deprecated: Use Policy.ProtoReflect.Descriptor instead. func (*Policy) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{0} + return file_types_v1_pro_proto_rawDescGZIP(), []int{0} } func (x *Policy) GetName() string { @@ -137,7 +143,7 @@ type ACLPolicyUpsertRequest struct { func (x *ACLPolicyUpsertRequest) Reset() { *x = ACLPolicyUpsertRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[1] + mi := &file_types_v1_pro_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -150,7 +156,7 @@ func (x *ACLPolicyUpsertRequest) String() string { func (*ACLPolicyUpsertRequest) ProtoMessage() {} func (x *ACLPolicyUpsertRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[1] + mi := &file_types_v1_pro_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -163,7 +169,7 @@ func (x *ACLPolicyUpsertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyUpsertRequest.ProtoReflect.Descriptor instead. func (*ACLPolicyUpsertRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{1} + return file_types_v1_pro_proto_rawDescGZIP(), []int{1} } func (x *ACLPolicyUpsertRequest) GetPolicy() *Policy { @@ -184,7 +190,7 @@ type ACLPolicyUpsertResponse struct { func (x *ACLPolicyUpsertResponse) Reset() { *x = ACLPolicyUpsertResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[2] + mi := &file_types_v1_pro_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -197,7 +203,7 @@ func (x *ACLPolicyUpsertResponse) String() string { func (*ACLPolicyUpsertResponse) ProtoMessage() {} func (x *ACLPolicyUpsertResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[2] + mi := &file_types_v1_pro_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -210,7 +216,7 @@ func (x *ACLPolicyUpsertResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyUpsertResponse.ProtoReflect.Descriptor instead. func (*ACLPolicyUpsertResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{2} + return file_types_v1_pro_proto_rawDescGZIP(), []int{2} } func (x *ACLPolicyUpsertResponse) GetSuccess() bool { @@ -231,7 +237,7 @@ type ACLPolicyDeleteRequest struct { func (x *ACLPolicyDeleteRequest) Reset() { *x = ACLPolicyDeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[3] + mi := &file_types_v1_pro_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -244,7 +250,7 @@ func (x *ACLPolicyDeleteRequest) String() string { func (*ACLPolicyDeleteRequest) ProtoMessage() {} func (x *ACLPolicyDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[3] + mi := &file_types_v1_pro_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -257,7 +263,7 @@ func (x *ACLPolicyDeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyDeleteRequest.ProtoReflect.Descriptor instead. func (*ACLPolicyDeleteRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{3} + return file_types_v1_pro_proto_rawDescGZIP(), []int{3} } func (x *ACLPolicyDeleteRequest) GetName() string { @@ -278,7 +284,7 @@ type ACLPolicyDeleteResponse struct { func (x *ACLPolicyDeleteResponse) Reset() { *x = ACLPolicyDeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[4] + mi := &file_types_v1_pro_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -291,7 +297,7 @@ func (x *ACLPolicyDeleteResponse) String() string { func (*ACLPolicyDeleteResponse) ProtoMessage() {} func (x *ACLPolicyDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[4] + mi := &file_types_v1_pro_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -304,7 +310,7 @@ func (x *ACLPolicyDeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyDeleteResponse.ProtoReflect.Descriptor instead. func (*ACLPolicyDeleteResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{4} + return file_types_v1_pro_proto_rawDescGZIP(), []int{4} } func (x *ACLPolicyDeleteResponse) GetSuccess() bool { @@ -325,7 +331,7 @@ type ACLPolicyInfoRequest struct { func (x *ACLPolicyInfoRequest) Reset() { *x = ACLPolicyInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[5] + mi := &file_types_v1_pro_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -338,7 +344,7 @@ func (x *ACLPolicyInfoRequest) String() string { func (*ACLPolicyInfoRequest) ProtoMessage() {} func (x *ACLPolicyInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[5] + mi := &file_types_v1_pro_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -351,7 +357,7 @@ func (x *ACLPolicyInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyInfoRequest.ProtoReflect.Descriptor instead. func (*ACLPolicyInfoRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{5} + return file_types_v1_pro_proto_rawDescGZIP(), []int{5} } func (x *ACLPolicyInfoRequest) GetName() string { @@ -372,7 +378,7 @@ type ACLPolicyInfoResponse struct { func (x *ACLPolicyInfoResponse) Reset() { *x = ACLPolicyInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[6] + mi := &file_types_v1_pro_proto_msgTypes[6] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -385,7 +391,7 @@ func (x *ACLPolicyInfoResponse) String() string { func (*ACLPolicyInfoResponse) ProtoMessage() {} func (x *ACLPolicyInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[6] + mi := &file_types_v1_pro_proto_msgTypes[6] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -398,7 +404,7 @@ func (x *ACLPolicyInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyInfoResponse.ProtoReflect.Descriptor instead. func (*ACLPolicyInfoResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{6} + return file_types_v1_pro_proto_rawDescGZIP(), []int{6} } func (x *ACLPolicyInfoResponse) GetPolicy() *Policy { @@ -419,7 +425,7 @@ type ACLPolicyListResponse struct { func (x *ACLPolicyListResponse) Reset() { *x = ACLPolicyListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[7] + mi := &file_types_v1_pro_proto_msgTypes[7] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -432,7 +438,7 @@ func (x *ACLPolicyListResponse) String() string { func (*ACLPolicyListResponse) ProtoMessage() {} func (x *ACLPolicyListResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[7] + mi := &file_types_v1_pro_proto_msgTypes[7] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -445,7 +451,7 @@ func (x *ACLPolicyListResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLPolicyListResponse.ProtoReflect.Descriptor instead. func (*ACLPolicyListResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{7} + return file_types_v1_pro_proto_rawDescGZIP(), []int{7} } func (x *ACLPolicyListResponse) GetPolicies() []*Policy { @@ -464,7 +470,7 @@ type Token struct { Accessor string `protobuf:"bytes,1,opt,name=accessor,proto3" json:"accessor,omitempty"` Secret string `protobuf:"bytes,2,opt,name=secret,proto3" json:"secret,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` - Type TokenType `protobuf:"varint,4,opt,name=type,proto3,enum=types.TokenType" json:"type,omitempty"` + Type TokenType `protobuf:"varint,4,opt,name=type,proto3,enum=types.v1.TokenType" json:"type,omitempty"` CreateTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` ExpireTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expire_time,json=expireTime,proto3" json:"expire_time,omitempty"` Policies []string `protobuf:"bytes,7,rep,name=policies,proto3" json:"policies,omitempty"` @@ -473,7 +479,7 @@ type Token struct { func (x *Token) Reset() { *x = Token{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[8] + mi := &file_types_v1_pro_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -486,7 +492,7 @@ func (x *Token) String() string { func (*Token) ProtoMessage() {} func (x *Token) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[8] + mi := &file_types_v1_pro_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -499,7 +505,7 @@ func (x *Token) ProtoReflect() protoreflect.Message { // Deprecated: Use Token.ProtoReflect.Descriptor instead. func (*Token) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{8} + return file_types_v1_pro_proto_rawDescGZIP(), []int{8} } func (x *Token) GetAccessor() string { @@ -527,7 +533,7 @@ func (x *Token) GetType() TokenType { if x != nil { return x.Type } - return TokenType_management + return TokenType_TOKEN_TYPE_MANAGEMENT } func (x *Token) GetCreateTime() *timestamppb.Timestamp { @@ -562,7 +568,7 @@ type ACLTokenUpsertRequest struct { func (x *ACLTokenUpsertRequest) Reset() { *x = ACLTokenUpsertRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[9] + mi := &file_types_v1_pro_proto_msgTypes[9] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -575,7 +581,7 @@ func (x *ACLTokenUpsertRequest) String() string { func (*ACLTokenUpsertRequest) ProtoMessage() {} func (x *ACLTokenUpsertRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[9] + mi := &file_types_v1_pro_proto_msgTypes[9] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -588,7 +594,7 @@ func (x *ACLTokenUpsertRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenUpsertRequest.ProtoReflect.Descriptor instead. func (*ACLTokenUpsertRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{9} + return file_types_v1_pro_proto_rawDescGZIP(), []int{9} } func (x *ACLTokenUpsertRequest) GetToken() *Token { @@ -609,7 +615,7 @@ type ACLTokenUpsertResponse struct { func (x *ACLTokenUpsertResponse) Reset() { *x = ACLTokenUpsertResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[10] + mi := &file_types_v1_pro_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -622,7 +628,7 @@ func (x *ACLTokenUpsertResponse) String() string { func (*ACLTokenUpsertResponse) ProtoMessage() {} func (x *ACLTokenUpsertResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[10] + mi := &file_types_v1_pro_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -635,7 +641,7 @@ func (x *ACLTokenUpsertResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenUpsertResponse.ProtoReflect.Descriptor instead. func (*ACLTokenUpsertResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{10} + return file_types_v1_pro_proto_rawDescGZIP(), []int{10} } func (x *ACLTokenUpsertResponse) GetSuccess() bool { @@ -656,7 +662,7 @@ type ACLTokenDeleteRequest struct { func (x *ACLTokenDeleteRequest) Reset() { *x = ACLTokenDeleteRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[11] + mi := &file_types_v1_pro_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -669,7 +675,7 @@ func (x *ACLTokenDeleteRequest) String() string { func (*ACLTokenDeleteRequest) ProtoMessage() {} func (x *ACLTokenDeleteRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[11] + mi := &file_types_v1_pro_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -682,7 +688,7 @@ func (x *ACLTokenDeleteRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenDeleteRequest.ProtoReflect.Descriptor instead. func (*ACLTokenDeleteRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{11} + return file_types_v1_pro_proto_rawDescGZIP(), []int{11} } func (x *ACLTokenDeleteRequest) GetAccessor() string { @@ -703,7 +709,7 @@ type ACLTokenDeleteResponse struct { func (x *ACLTokenDeleteResponse) Reset() { *x = ACLTokenDeleteResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[12] + mi := &file_types_v1_pro_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -716,7 +722,7 @@ func (x *ACLTokenDeleteResponse) String() string { func (*ACLTokenDeleteResponse) ProtoMessage() {} func (x *ACLTokenDeleteResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[12] + mi := &file_types_v1_pro_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -729,7 +735,7 @@ func (x *ACLTokenDeleteResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenDeleteResponse.ProtoReflect.Descriptor instead. func (*ACLTokenDeleteResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{12} + return file_types_v1_pro_proto_rawDescGZIP(), []int{12} } func (x *ACLTokenDeleteResponse) GetSuccess() bool { @@ -750,7 +756,7 @@ type ACLTokenInfoRequest struct { func (x *ACLTokenInfoRequest) Reset() { *x = ACLTokenInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[13] + mi := &file_types_v1_pro_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -763,7 +769,7 @@ func (x *ACLTokenInfoRequest) String() string { func (*ACLTokenInfoRequest) ProtoMessage() {} func (x *ACLTokenInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[13] + mi := &file_types_v1_pro_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -776,7 +782,7 @@ func (x *ACLTokenInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenInfoRequest.ProtoReflect.Descriptor instead. func (*ACLTokenInfoRequest) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{13} + return file_types_v1_pro_proto_rawDescGZIP(), []int{13} } func (x *ACLTokenInfoRequest) GetAccessor() string { @@ -797,7 +803,7 @@ type ACLTokenInfoResponse struct { func (x *ACLTokenInfoResponse) Reset() { *x = ACLTokenInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[14] + mi := &file_types_v1_pro_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -810,7 +816,7 @@ func (x *ACLTokenInfoResponse) String() string { func (*ACLTokenInfoResponse) ProtoMessage() {} func (x *ACLTokenInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[14] + mi := &file_types_v1_pro_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -823,7 +829,7 @@ func (x *ACLTokenInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenInfoResponse.ProtoReflect.Descriptor instead. func (*ACLTokenInfoResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{14} + return file_types_v1_pro_proto_rawDescGZIP(), []int{14} } func (x *ACLTokenInfoResponse) GetToken() *Token { @@ -844,7 +850,7 @@ type ACLTokenListResponse struct { func (x *ACLTokenListResponse) Reset() { *x = ACLTokenListResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pro_proto_msgTypes[15] + mi := &file_types_v1_pro_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -857,7 +863,7 @@ func (x *ACLTokenListResponse) String() string { func (*ACLTokenListResponse) ProtoMessage() {} func (x *ACLTokenListResponse) ProtoReflect() protoreflect.Message { - mi := &file_pro_proto_msgTypes[15] + mi := &file_types_v1_pro_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -870,7 +876,7 @@ func (x *ACLTokenListResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ACLTokenListResponse.ProtoReflect.Descriptor instead. func (*ACLTokenListResponse) Descriptor() ([]byte, []int) { - return file_pro_proto_rawDescGZIP(), []int{15} + return file_types_v1_pro_proto_rawDescGZIP(), []int{15} } func (x *ACLTokenListResponse) GetTokens() []*Token { @@ -880,191 +886,206 @@ func (x *ACLTokenListResponse) GetTokens() []*Token { return nil } -var File_pro_proto protoreflect.FileDescriptor - -var file_pro_proto_rawDesc = []byte{ - 0x0a, 0x09, 0x70, 0x72, 0x6f, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, - 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x22, 0x32, 0x0a, 0x06, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, - 0x75, 0x6c, 0x65, 0x73, 0x22, 0x3f, 0x0a, 0x16, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, - 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0d, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x33, 0x0a, 0x17, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, - 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2c, 0x0a, 0x16, 0x41, 0x43, - 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x41, 0x43, 0x4c, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2a, 0x0a, - 0x14, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x3e, 0x0a, 0x15, 0x41, 0x43, 0x4c, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x25, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, - 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x42, 0x0a, 0x15, 0x41, 0x43, 0x4c, - 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x29, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x8b, 0x02, - 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, - 0x73, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, - 0x24, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x10, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, - 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, - 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, - 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, - 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, - 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, 0x22, 0x3b, 0x0a, 0x15, 0x41, - 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x12, 0x22, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x43, 0x4c, 0x54, - 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, +var File_types_v1_pro_proto protoreflect.FileDescriptor + +var file_types_v1_pro_proto_rawDesc = []byte{ + 0x0a, 0x12, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x2f, 0x70, 0x72, 0x6f, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x1a, 0x1b, + 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, + 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, + 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, + 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x32, 0x0a, 0x06, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x72, 0x75, + 0x6c, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x72, 0x75, 0x6c, 0x65, 0x73, + 0x22, 0x42, 0x0a, 0x16, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, + 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, 0x0a, 0x06, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x22, 0x33, 0x0a, 0x17, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, + 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2c, 0x0a, 0x16, 0x41, 0x43, 0x4c, + 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x33, 0x0a, 0x17, 0x41, 0x43, 0x4c, 0x50, 0x6f, + 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x33, 0x0a, 0x15, - 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, - 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, - 0x72, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, - 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x31, 0x0a, 0x13, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, + 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x2a, 0x0a, 0x14, + 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, + 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x41, 0x0a, 0x15, 0x41, 0x43, 0x4c, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x28, 0x0a, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x52, 0x06, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x22, 0x45, 0x0a, 0x15, 0x41, + 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, 0x65, 0x73, + 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, 0x69, + 0x65, 0x73, 0x22, 0x8e, 0x02, 0x0a, 0x05, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, - 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x22, 0x3a, 0x0a, 0x14, 0x41, 0x43, 0x4c, 0x54, + 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, + 0x65, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, + 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, + 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x3b, 0x0a, + 0x0b, 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, + 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, + 0x63, 0x72, 0x65, 0x61, 0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x3b, 0x0a, 0x0b, 0x65, 0x78, + 0x70, 0x69, 0x72, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, + 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x65, 0x78, 0x70, + 0x69, 0x72, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x18, 0x07, 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x70, 0x6f, 0x6c, 0x69, 0x63, + 0x69, 0x65, 0x73, 0x22, 0x3e, 0x0a, 0x15, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, + 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x25, 0x0a, 0x05, + 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x22, 0x32, 0x0a, 0x16, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, + 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, + 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x22, 0x33, 0x0a, 0x15, 0x41, 0x43, 0x4c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x22, 0x32, 0x0a, 0x16, + 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, + 0x22, 0x31, 0x0a, 0x13, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, 0x6f, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x61, 0x63, 0x63, 0x65, 0x73, + 0x73, 0x6f, 0x72, 0x22, 0x3d, 0x0a, 0x14, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, + 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x05, 0x74, + 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x22, 0x3f, 0x0a, 0x14, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4c, 0x69, + 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x27, 0x0a, 0x06, 0x74, 0x6f, + 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, + 0x65, 0x6e, 0x73, 0x2a, 0x59, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, + 0x12, 0x19, 0x0a, 0x15, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x4d, + 0x41, 0x4e, 0x41, 0x47, 0x45, 0x4d, 0x45, 0x4e, 0x54, 0x10, 0x00, 0x12, 0x15, 0x0a, 0x11, 0x54, + 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, 0x5f, 0x43, 0x4c, 0x49, 0x45, 0x4e, 0x54, + 0x10, 0x01, 0x12, 0x1a, 0x0a, 0x16, 0x54, 0x4f, 0x4b, 0x45, 0x4e, 0x5f, 0x54, 0x59, 0x50, 0x45, + 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x02, 0x32, 0x97, + 0x05, 0x0a, 0x08, 0x44, 0x6b, 0x72, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x12, 0x56, 0x0a, 0x0f, 0x41, + 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x20, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, + 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, + 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0f, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, + 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x20, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, + 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, + 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0d, 0x41, + 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1e, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1f, 0x2e, 0x74, + 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, + 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x48, 0x0a, + 0x0d, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, + 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, + 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, 0x41, 0x43, 0x4c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x1f, 0x2e, 0x74, 0x79, 0x70, 0x65, + 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x73, + 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x20, 0x2e, 0x74, 0x79, 0x70, + 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, + 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x0e, + 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1f, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, + 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, + 0x20, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, + 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, + 0x6f, 0x12, 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, + 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x22, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x05, 0x74, - 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x3c, 0x0a, 0x14, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x06, - 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0c, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x52, 0x06, 0x74, 0x6f, 0x6b, 0x65, - 0x6e, 0x73, 0x2a, 0x27, 0x0a, 0x09, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x54, 0x79, 0x70, 0x65, 0x12, - 0x0e, 0x0a, 0x0a, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x10, 0x00, 0x12, - 0x0a, 0x0a, 0x06, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x10, 0x01, 0x32, 0xed, 0x04, 0x0a, 0x08, - 0x44, 0x6b, 0x72, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x12, 0x50, 0x0a, 0x0f, 0x41, 0x43, 0x4c, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x12, 0x1d, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, - 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x55, 0x70, 0x73, 0x65, - 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x50, 0x0a, 0x0f, 0x41, 0x43, - 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x1d, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x44, 0x65, - 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, - 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1b, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x49, 0x6e, 0x66, 0x6f, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x45, 0x0a, 0x0d, 0x41, 0x43, 0x4c, 0x50, - 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, - 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, - 0x79, 0x1a, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x50, 0x6f, 0x6c, - 0x69, 0x63, 0x79, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x4d, 0x0a, 0x0e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x55, 0x70, 0x73, 0x65, 0x72, - 0x74, 0x12, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x1d, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, - 0x55, 0x70, 0x73, 0x65, 0x72, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, - 0x0a, 0x0e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, - 0x12, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, - 0x6e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1d, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x44, - 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, - 0x0c, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1a, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x43, 0x0a, 0x0c, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, - 0x65, 0x6e, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1b, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4c, - 0x69, 0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x25, 0x5a, 0x23, 0x67, - 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, - 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x12, 0x46, 0x0a, 0x0c, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, + 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x1e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, + 0x2e, 0x76, 0x31, 0x2e, 0x41, 0x43, 0x4c, 0x54, 0x6f, 0x6b, 0x65, 0x6e, 0x4c, 0x69, 0x73, 0x74, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x92, 0x01, 0x0a, 0x0c, 0x63, 0x6f, 0x6d, + 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x76, 0x31, 0x42, 0x08, 0x50, 0x72, 0x6f, 0x50, 0x72, + 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x37, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, + 0x6d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x64, + 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x76, 0x34, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2f, 0x74, 0x79, + 0x70, 0x65, 0x73, 0x2f, 0x76, 0x31, 0x3b, 0x74, 0x79, 0x70, 0x65, 0x73, 0x76, 0x31, 0xa2, 0x02, + 0x03, 0x54, 0x58, 0x58, 0xaa, 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x56, 0x31, 0xca, + 0x02, 0x08, 0x54, 0x79, 0x70, 0x65, 0x73, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x14, 0x54, 0x79, 0x70, + 0x65, 0x73, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, + 0x61, 0xea, 0x02, 0x09, 0x54, 0x79, 0x70, 0x65, 0x73, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( - file_pro_proto_rawDescOnce sync.Once - file_pro_proto_rawDescData = file_pro_proto_rawDesc + file_types_v1_pro_proto_rawDescOnce sync.Once + file_types_v1_pro_proto_rawDescData = file_types_v1_pro_proto_rawDesc ) -func file_pro_proto_rawDescGZIP() []byte { - file_pro_proto_rawDescOnce.Do(func() { - file_pro_proto_rawDescData = protoimpl.X.CompressGZIP(file_pro_proto_rawDescData) +func file_types_v1_pro_proto_rawDescGZIP() []byte { + file_types_v1_pro_proto_rawDescOnce.Do(func() { + file_types_v1_pro_proto_rawDescData = protoimpl.X.CompressGZIP(file_types_v1_pro_proto_rawDescData) }) - return file_pro_proto_rawDescData -} - -var file_pro_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_pro_proto_msgTypes = make([]protoimpl.MessageInfo, 16) -var file_pro_proto_goTypes = []interface{}{ - (TokenType)(0), // 0: types.TokenType - (*Policy)(nil), // 1: types.Policy - (*ACLPolicyUpsertRequest)(nil), // 2: types.ACLPolicyUpsertRequest - (*ACLPolicyUpsertResponse)(nil), // 3: types.ACLPolicyUpsertResponse - (*ACLPolicyDeleteRequest)(nil), // 4: types.ACLPolicyDeleteRequest - (*ACLPolicyDeleteResponse)(nil), // 5: types.ACLPolicyDeleteResponse - (*ACLPolicyInfoRequest)(nil), // 6: types.ACLPolicyInfoRequest - (*ACLPolicyInfoResponse)(nil), // 7: types.ACLPolicyInfoResponse - (*ACLPolicyListResponse)(nil), // 8: types.ACLPolicyListResponse - (*Token)(nil), // 9: types.Token - (*ACLTokenUpsertRequest)(nil), // 10: types.ACLTokenUpsertRequest - (*ACLTokenUpsertResponse)(nil), // 11: types.ACLTokenUpsertResponse - (*ACLTokenDeleteRequest)(nil), // 12: types.ACLTokenDeleteRequest - (*ACLTokenDeleteResponse)(nil), // 13: types.ACLTokenDeleteResponse - (*ACLTokenInfoRequest)(nil), // 14: types.ACLTokenInfoRequest - (*ACLTokenInfoResponse)(nil), // 15: types.ACLTokenInfoResponse - (*ACLTokenListResponse)(nil), // 16: types.ACLTokenListResponse + return file_types_v1_pro_proto_rawDescData +} + +var file_types_v1_pro_proto_enumTypes = make([]protoimpl.EnumInfo, 1) +var file_types_v1_pro_proto_msgTypes = make([]protoimpl.MessageInfo, 16) +var file_types_v1_pro_proto_goTypes = []interface{}{ + (TokenType)(0), // 0: types.v1.TokenType + (*Policy)(nil), // 1: types.v1.Policy + (*ACLPolicyUpsertRequest)(nil), // 2: types.v1.ACLPolicyUpsertRequest + (*ACLPolicyUpsertResponse)(nil), // 3: types.v1.ACLPolicyUpsertResponse + (*ACLPolicyDeleteRequest)(nil), // 4: types.v1.ACLPolicyDeleteRequest + (*ACLPolicyDeleteResponse)(nil), // 5: types.v1.ACLPolicyDeleteResponse + (*ACLPolicyInfoRequest)(nil), // 6: types.v1.ACLPolicyInfoRequest + (*ACLPolicyInfoResponse)(nil), // 7: types.v1.ACLPolicyInfoResponse + (*ACLPolicyListResponse)(nil), // 8: types.v1.ACLPolicyListResponse + (*Token)(nil), // 9: types.v1.Token + (*ACLTokenUpsertRequest)(nil), // 10: types.v1.ACLTokenUpsertRequest + (*ACLTokenUpsertResponse)(nil), // 11: types.v1.ACLTokenUpsertResponse + (*ACLTokenDeleteRequest)(nil), // 12: types.v1.ACLTokenDeleteRequest + (*ACLTokenDeleteResponse)(nil), // 13: types.v1.ACLTokenDeleteResponse + (*ACLTokenInfoRequest)(nil), // 14: types.v1.ACLTokenInfoRequest + (*ACLTokenInfoResponse)(nil), // 15: types.v1.ACLTokenInfoResponse + (*ACLTokenListResponse)(nil), // 16: types.v1.ACLTokenListResponse (*timestamppb.Timestamp)(nil), // 17: google.protobuf.Timestamp (*emptypb.Empty)(nil), // 18: google.protobuf.Empty } -var file_pro_proto_depIdxs = []int32{ - 1, // 0: types.ACLPolicyUpsertRequest.policy:type_name -> types.Policy - 1, // 1: types.ACLPolicyInfoResponse.policy:type_name -> types.Policy - 1, // 2: types.ACLPolicyListResponse.policies:type_name -> types.Policy - 0, // 3: types.Token.type:type_name -> types.TokenType - 17, // 4: types.Token.create_time:type_name -> google.protobuf.Timestamp - 17, // 5: types.Token.expire_time:type_name -> google.protobuf.Timestamp - 9, // 6: types.ACLTokenUpsertRequest.token:type_name -> types.Token - 9, // 7: types.ACLTokenInfoResponse.token:type_name -> types.Token - 9, // 8: types.ACLTokenListResponse.tokens:type_name -> types.Token - 2, // 9: types.DkronPro.ACLPolicyUpsert:input_type -> types.ACLPolicyUpsertRequest - 4, // 10: types.DkronPro.ACLPolicyDelete:input_type -> types.ACLPolicyDeleteRequest - 6, // 11: types.DkronPro.ACLPolicyInfo:input_type -> types.ACLPolicyInfoRequest - 18, // 12: types.DkronPro.ACLPolicyList:input_type -> google.protobuf.Empty - 10, // 13: types.DkronPro.ACLTokenUpsert:input_type -> types.ACLTokenUpsertRequest - 12, // 14: types.DkronPro.ACLTokenDelete:input_type -> types.ACLTokenDeleteRequest - 14, // 15: types.DkronPro.ACLTokenInfo:input_type -> types.ACLTokenInfoRequest - 18, // 16: types.DkronPro.ACLTokenList:input_type -> google.protobuf.Empty - 3, // 17: types.DkronPro.ACLPolicyUpsert:output_type -> types.ACLPolicyUpsertResponse - 5, // 18: types.DkronPro.ACLPolicyDelete:output_type -> types.ACLPolicyDeleteResponse - 7, // 19: types.DkronPro.ACLPolicyInfo:output_type -> types.ACLPolicyInfoResponse - 8, // 20: types.DkronPro.ACLPolicyList:output_type -> types.ACLPolicyListResponse - 11, // 21: types.DkronPro.ACLTokenUpsert:output_type -> types.ACLTokenUpsertResponse - 13, // 22: types.DkronPro.ACLTokenDelete:output_type -> types.ACLTokenDeleteResponse - 15, // 23: types.DkronPro.ACLTokenInfo:output_type -> types.ACLTokenInfoResponse - 16, // 24: types.DkronPro.ACLTokenList:output_type -> types.ACLTokenListResponse +var file_types_v1_pro_proto_depIdxs = []int32{ + 1, // 0: types.v1.ACLPolicyUpsertRequest.policy:type_name -> types.v1.Policy + 1, // 1: types.v1.ACLPolicyInfoResponse.policy:type_name -> types.v1.Policy + 1, // 2: types.v1.ACLPolicyListResponse.policies:type_name -> types.v1.Policy + 0, // 3: types.v1.Token.type:type_name -> types.v1.TokenType + 17, // 4: types.v1.Token.create_time:type_name -> google.protobuf.Timestamp + 17, // 5: types.v1.Token.expire_time:type_name -> google.protobuf.Timestamp + 9, // 6: types.v1.ACLTokenUpsertRequest.token:type_name -> types.v1.Token + 9, // 7: types.v1.ACLTokenInfoResponse.token:type_name -> types.v1.Token + 9, // 8: types.v1.ACLTokenListResponse.tokens:type_name -> types.v1.Token + 2, // 9: types.v1.DkronPro.ACLPolicyUpsert:input_type -> types.v1.ACLPolicyUpsertRequest + 4, // 10: types.v1.DkronPro.ACLPolicyDelete:input_type -> types.v1.ACLPolicyDeleteRequest + 6, // 11: types.v1.DkronPro.ACLPolicyInfo:input_type -> types.v1.ACLPolicyInfoRequest + 18, // 12: types.v1.DkronPro.ACLPolicyList:input_type -> google.protobuf.Empty + 10, // 13: types.v1.DkronPro.ACLTokenUpsert:input_type -> types.v1.ACLTokenUpsertRequest + 12, // 14: types.v1.DkronPro.ACLTokenDelete:input_type -> types.v1.ACLTokenDeleteRequest + 14, // 15: types.v1.DkronPro.ACLTokenInfo:input_type -> types.v1.ACLTokenInfoRequest + 18, // 16: types.v1.DkronPro.ACLTokenList:input_type -> google.protobuf.Empty + 3, // 17: types.v1.DkronPro.ACLPolicyUpsert:output_type -> types.v1.ACLPolicyUpsertResponse + 5, // 18: types.v1.DkronPro.ACLPolicyDelete:output_type -> types.v1.ACLPolicyDeleteResponse + 7, // 19: types.v1.DkronPro.ACLPolicyInfo:output_type -> types.v1.ACLPolicyInfoResponse + 8, // 20: types.v1.DkronPro.ACLPolicyList:output_type -> types.v1.ACLPolicyListResponse + 11, // 21: types.v1.DkronPro.ACLTokenUpsert:output_type -> types.v1.ACLTokenUpsertResponse + 13, // 22: types.v1.DkronPro.ACLTokenDelete:output_type -> types.v1.ACLTokenDeleteResponse + 15, // 23: types.v1.DkronPro.ACLTokenInfo:output_type -> types.v1.ACLTokenInfoResponse + 16, // 24: types.v1.DkronPro.ACLTokenList:output_type -> types.v1.ACLTokenListResponse 17, // [17:25] is the sub-list for method output_type 9, // [9:17] is the sub-list for method input_type 9, // [9:9] is the sub-list for extension type_name @@ -1072,13 +1093,13 @@ var file_pro_proto_depIdxs = []int32{ 0, // [0:9] is the sub-list for field type_name } -func init() { file_pro_proto_init() } -func file_pro_proto_init() { - if File_pro_proto != nil { +func init() { file_types_v1_pro_proto_init() } +func file_types_v1_pro_proto_init() { + if File_types_v1_pro_proto != nil { return } if !protoimpl.UnsafeEnabled { - file_pro_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Policy); i { case 0: return &v.state @@ -1090,7 +1111,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyUpsertRequest); i { case 0: return &v.state @@ -1102,7 +1123,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyUpsertResponse); i { case 0: return &v.state @@ -1114,7 +1135,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyDeleteRequest); i { case 0: return &v.state @@ -1126,7 +1147,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyDeleteResponse); i { case 0: return &v.state @@ -1138,7 +1159,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyInfoRequest); i { case 0: return &v.state @@ -1150,7 +1171,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyInfoResponse); i { case 0: return &v.state @@ -1162,7 +1183,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLPolicyListResponse); i { case 0: return &v.state @@ -1174,7 +1195,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Token); i { case 0: return &v.state @@ -1186,7 +1207,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenUpsertRequest); i { case 0: return &v.state @@ -1198,7 +1219,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenUpsertResponse); i { case 0: return &v.state @@ -1210,7 +1231,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenDeleteRequest); i { case 0: return &v.state @@ -1222,7 +1243,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenDeleteResponse); i { case 0: return &v.state @@ -1234,7 +1255,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenInfoRequest); i { case 0: return &v.state @@ -1246,7 +1267,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenInfoResponse); i { case 0: return &v.state @@ -1258,7 +1279,7 @@ func file_pro_proto_init() { return nil } } - file_pro_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { + file_types_v1_pro_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*ACLTokenListResponse); i { case 0: return &v.state @@ -1275,19 +1296,19 @@ func file_pro_proto_init() { out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_pro_proto_rawDesc, + RawDescriptor: file_types_v1_pro_proto_rawDesc, NumEnums: 1, NumMessages: 16, NumExtensions: 0, NumServices: 1, }, - GoTypes: file_pro_proto_goTypes, - DependencyIndexes: file_pro_proto_depIdxs, - EnumInfos: file_pro_proto_enumTypes, - MessageInfos: file_pro_proto_msgTypes, + GoTypes: file_types_v1_pro_proto_goTypes, + DependencyIndexes: file_types_v1_pro_proto_depIdxs, + EnumInfos: file_types_v1_pro_proto_enumTypes, + MessageInfos: file_types_v1_pro_proto_msgTypes, }.Build() - File_pro_proto = out.File - file_pro_proto_rawDesc = nil - file_pro_proto_goTypes = nil - file_pro_proto_depIdxs = nil + File_types_v1_pro_proto = out.File + file_types_v1_pro_proto_rawDesc = nil + file_types_v1_pro_proto_goTypes = nil + file_types_v1_pro_proto_depIdxs = nil } diff --git a/types/pro_grpc.pb.go b/gen/proto/types/v1/pro_grpc.pb.go similarity index 89% rename from types/pro_grpc.pb.go rename to gen/proto/types/v1/pro_grpc.pb.go index 69575f711..7da88632a 100644 --- a/types/pro_grpc.pb.go +++ b/gen/proto/types/v1/pro_grpc.pb.go @@ -1,10 +1,10 @@ // Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.2.0 -// - protoc v3.21.12 -// source: pro.proto +// - protoc (unknown) +// source: types/v1/pro.proto -package types +package typesv1 import ( context "context" @@ -26,10 +26,14 @@ type DkronProClient interface { ACLPolicyUpsert(ctx context.Context, in *ACLPolicyUpsertRequest, opts ...grpc.CallOption) (*ACLPolicyUpsertResponse, error) ACLPolicyDelete(ctx context.Context, in *ACLPolicyDeleteRequest, opts ...grpc.CallOption) (*ACLPolicyDeleteResponse, error) ACLPolicyInfo(ctx context.Context, in *ACLPolicyInfoRequest, opts ...grpc.CallOption) (*ACLPolicyInfoResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME ACLPolicyList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ACLPolicyListResponse, error) ACLTokenUpsert(ctx context.Context, in *ACLTokenUpsertRequest, opts ...grpc.CallOption) (*ACLTokenUpsertResponse, error) ACLTokenDelete(ctx context.Context, in *ACLTokenDeleteRequest, opts ...grpc.CallOption) (*ACLTokenDeleteResponse, error) ACLTokenInfo(ctx context.Context, in *ACLTokenInfoRequest, opts ...grpc.CallOption) (*ACLTokenInfoResponse, error) + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE ACLTokenList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ACLTokenListResponse, error) } @@ -43,7 +47,7 @@ func NewDkronProClient(cc grpc.ClientConnInterface) DkronProClient { func (c *dkronProClient) ACLPolicyUpsert(ctx context.Context, in *ACLPolicyUpsertRequest, opts ...grpc.CallOption) (*ACLPolicyUpsertResponse, error) { out := new(ACLPolicyUpsertResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLPolicyUpsert", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLPolicyUpsert", in, out, opts...) if err != nil { return nil, err } @@ -52,7 +56,7 @@ func (c *dkronProClient) ACLPolicyUpsert(ctx context.Context, in *ACLPolicyUpser func (c *dkronProClient) ACLPolicyDelete(ctx context.Context, in *ACLPolicyDeleteRequest, opts ...grpc.CallOption) (*ACLPolicyDeleteResponse, error) { out := new(ACLPolicyDeleteResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLPolicyDelete", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLPolicyDelete", in, out, opts...) if err != nil { return nil, err } @@ -61,7 +65,7 @@ func (c *dkronProClient) ACLPolicyDelete(ctx context.Context, in *ACLPolicyDelet func (c *dkronProClient) ACLPolicyInfo(ctx context.Context, in *ACLPolicyInfoRequest, opts ...grpc.CallOption) (*ACLPolicyInfoResponse, error) { out := new(ACLPolicyInfoResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLPolicyInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLPolicyInfo", in, out, opts...) if err != nil { return nil, err } @@ -70,7 +74,7 @@ func (c *dkronProClient) ACLPolicyInfo(ctx context.Context, in *ACLPolicyInfoReq func (c *dkronProClient) ACLPolicyList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ACLPolicyListResponse, error) { out := new(ACLPolicyListResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLPolicyList", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLPolicyList", in, out, opts...) if err != nil { return nil, err } @@ -79,7 +83,7 @@ func (c *dkronProClient) ACLPolicyList(ctx context.Context, in *emptypb.Empty, o func (c *dkronProClient) ACLTokenUpsert(ctx context.Context, in *ACLTokenUpsertRequest, opts ...grpc.CallOption) (*ACLTokenUpsertResponse, error) { out := new(ACLTokenUpsertResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLTokenUpsert", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLTokenUpsert", in, out, opts...) if err != nil { return nil, err } @@ -88,7 +92,7 @@ func (c *dkronProClient) ACLTokenUpsert(ctx context.Context, in *ACLTokenUpsertR func (c *dkronProClient) ACLTokenDelete(ctx context.Context, in *ACLTokenDeleteRequest, opts ...grpc.CallOption) (*ACLTokenDeleteResponse, error) { out := new(ACLTokenDeleteResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLTokenDelete", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLTokenDelete", in, out, opts...) if err != nil { return nil, err } @@ -97,7 +101,7 @@ func (c *dkronProClient) ACLTokenDelete(ctx context.Context, in *ACLTokenDeleteR func (c *dkronProClient) ACLTokenInfo(ctx context.Context, in *ACLTokenInfoRequest, opts ...grpc.CallOption) (*ACLTokenInfoResponse, error) { out := new(ACLTokenInfoResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLTokenInfo", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLTokenInfo", in, out, opts...) if err != nil { return nil, err } @@ -106,7 +110,7 @@ func (c *dkronProClient) ACLTokenInfo(ctx context.Context, in *ACLTokenInfoReque func (c *dkronProClient) ACLTokenList(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ACLTokenListResponse, error) { out := new(ACLTokenListResponse) - err := c.cc.Invoke(ctx, "/types.DkronPro/ACLTokenList", in, out, opts...) + err := c.cc.Invoke(ctx, "/types.v1.DkronPro/ACLTokenList", in, out, opts...) if err != nil { return nil, err } @@ -120,10 +124,14 @@ type DkronProServer interface { ACLPolicyUpsert(context.Context, *ACLPolicyUpsertRequest) (*ACLPolicyUpsertResponse, error) ACLPolicyDelete(context.Context, *ACLPolicyDeleteRequest) (*ACLPolicyDeleteResponse, error) ACLPolicyInfo(context.Context, *ACLPolicyInfoRequest) (*ACLPolicyInfoResponse, error) + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME ACLPolicyList(context.Context, *emptypb.Empty) (*ACLPolicyListResponse, error) ACLTokenUpsert(context.Context, *ACLTokenUpsertRequest) (*ACLTokenUpsertResponse, error) ACLTokenDelete(context.Context, *ACLTokenDeleteRequest) (*ACLTokenDeleteResponse, error) ACLTokenInfo(context.Context, *ACLTokenInfoRequest) (*ACLTokenInfoResponse, error) + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE ACLTokenList(context.Context, *emptypb.Empty) (*ACLTokenListResponse, error) mustEmbedUnimplementedDkronProServer() } @@ -179,7 +187,7 @@ func _DkronPro_ACLPolicyUpsert_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLPolicyUpsert", + FullMethod: "/types.v1.DkronPro/ACLPolicyUpsert", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLPolicyUpsert(ctx, req.(*ACLPolicyUpsertRequest)) @@ -197,7 +205,7 @@ func _DkronPro_ACLPolicyDelete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLPolicyDelete", + FullMethod: "/types.v1.DkronPro/ACLPolicyDelete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLPolicyDelete(ctx, req.(*ACLPolicyDeleteRequest)) @@ -215,7 +223,7 @@ func _DkronPro_ACLPolicyInfo_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLPolicyInfo", + FullMethod: "/types.v1.DkronPro/ACLPolicyInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLPolicyInfo(ctx, req.(*ACLPolicyInfoRequest)) @@ -233,7 +241,7 @@ func _DkronPro_ACLPolicyList_Handler(srv interface{}, ctx context.Context, dec f } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLPolicyList", + FullMethod: "/types.v1.DkronPro/ACLPolicyList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLPolicyList(ctx, req.(*emptypb.Empty)) @@ -251,7 +259,7 @@ func _DkronPro_ACLTokenUpsert_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLTokenUpsert", + FullMethod: "/types.v1.DkronPro/ACLTokenUpsert", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLTokenUpsert(ctx, req.(*ACLTokenUpsertRequest)) @@ -269,7 +277,7 @@ func _DkronPro_ACLTokenDelete_Handler(srv interface{}, ctx context.Context, dec } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLTokenDelete", + FullMethod: "/types.v1.DkronPro/ACLTokenDelete", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLTokenDelete(ctx, req.(*ACLTokenDeleteRequest)) @@ -287,7 +295,7 @@ func _DkronPro_ACLTokenInfo_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLTokenInfo", + FullMethod: "/types.v1.DkronPro/ACLTokenInfo", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLTokenInfo(ctx, req.(*ACLTokenInfoRequest)) @@ -305,7 +313,7 @@ func _DkronPro_ACLTokenList_Handler(srv interface{}, ctx context.Context, dec fu } info := &grpc.UnaryServerInfo{ Server: srv, - FullMethod: "/types.DkronPro/ACLTokenList", + FullMethod: "/types.v1.DkronPro/ACLTokenList", } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(DkronProServer).ACLTokenList(ctx, req.(*emptypb.Empty)) @@ -317,7 +325,7 @@ func _DkronPro_ACLTokenList_Handler(srv interface{}, ctx context.Context, dec fu // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var DkronPro_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "types.DkronPro", + ServiceName: "types.v1.DkronPro", HandlerType: (*DkronProServer)(nil), Methods: []grpc.MethodDesc{ { @@ -354,5 +362,5 @@ var DkronPro_ServiceDesc = grpc.ServiceDesc{ }, }, Streams: []grpc.StreamDesc{}, - Metadata: "pro.proto", + Metadata: "types/v1/pro.proto", } diff --git a/plugin/execution_processor.go b/plugin/execution_processor.go index 863d9d302..24a3db748 100644 --- a/plugin/execution_processor.go +++ b/plugin/execution_processor.go @@ -3,7 +3,7 @@ package plugin import ( "net/rpc" - "github.com/distribworks/dkron/v4/types" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/hashicorp/go-plugin" ) diff --git a/plugin/executor.go b/plugin/executor.go index f8a48c238..c00875a4d 100644 --- a/plugin/executor.go +++ b/plugin/executor.go @@ -3,7 +3,7 @@ package plugin import ( "context" - "github.com/distribworks/dkron/v4/types" + typesv1 "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/hashicorp/go-plugin" "google.golang.org/grpc" ) @@ -14,7 +14,7 @@ type StatusHelper interface { // Executor is the interface that we're exposing as a plugin. type Executor interface { - Execute(args *types.ExecuteRequest, cb StatusHelper) (*types.ExecuteResponse, error) + Execute(args *typesv1.ExecuteRequest, cb StatusHelper) (*typesv1.ExecuteResponse, error) } // ExecutorPluginConfig is the plugin config @@ -29,12 +29,12 @@ type ExecutorPlugin struct { } func (p *ExecutorPlugin) GRPCServer(broker *plugin.GRPCBroker, s *grpc.Server) error { - types.RegisterExecutorServer(s, ExecutorServer{Impl: p.Executor, broker: broker}) + typesv1.RegisterExecutorServiceServer(s, ExecutorServer{Impl: p.Executor, broker: broker}) return nil } func (p *ExecutorPlugin) GRPCClient(ctx context.Context, broker *plugin.GRPCBroker, c *grpc.ClientConn) (interface{}, error) { - return &ExecutorClient{client: types.NewExecutorClient(c), broker: broker}, nil + return &ExecutorClient{client: typesv1.NewExecutorServiceClient(c), broker: broker}, nil } type Broker interface { @@ -45,11 +45,11 @@ type Broker interface { // Here is the gRPC client that GRPCClient talks to. type ExecutorClient struct { // This is the real implementation - client types.ExecutorClient + client typesv1.ExecutorServiceClient broker Broker } -func (m *ExecutorClient) Execute(args *types.ExecuteRequest, cb StatusHelper) (*types.ExecuteResponse, error) { +func (m *ExecutorClient) Execute(args *typesv1.ExecuteRequest, cb StatusHelper) (*typesv1.ExecuteResponse, error) { // This is where the magic conversion to Proto happens statusHelperServer := &GRPCStatusHelperServer{Impl: cb} @@ -57,7 +57,7 @@ func (m *ExecutorClient) Execute(args *types.ExecuteRequest, cb StatusHelper) (* var s *grpc.Server serverFunc := func(opts []grpc.ServerOption) *grpc.Server { s = grpc.NewServer(opts...) - types.RegisterStatusHelperServer(s, statusHelperServer) + typesv1.RegisterStatusHelperServiceServer(s, statusHelperServer) initChan <- true return s @@ -87,28 +87,30 @@ func (m *ExecutorClient) Execute(args *types.ExecuteRequest, cb StatusHelper) (* // Here is the gRPC server that GRPCClient talks to. type ExecutorServer struct { // This is the real implementation - types.ExecutorServer + typesv1.ExecutorServiceServer Impl Executor broker *plugin.GRPCBroker } // Execute is where the magic happens -func (m ExecutorServer) Execute(ctx context.Context, req *types.ExecuteRequest) (*types.ExecuteResponse, error) { +func (m ExecutorServer) Execute(ctx context.Context, req *typesv1.ExecuteRequest) (*typesv1.ExecuteResponse, error) { conn, err := m.broker.Dial(req.StatusServer) if err != nil { return nil, err } defer conn.Close() - a := &GRPCStatusHelperClient{types.NewStatusHelperClient(conn)} + a := &GRPCStatusHelperClient{typesv1.NewStatusHelperServiceClient(conn)} return m.Impl.Execute(req, a) } // GRPCStatusHelperClient is an implementation of status updates over RPC. -type GRPCStatusHelperClient struct{ client types.StatusHelperClient } +type GRPCStatusHelperClient struct { + client typesv1.StatusHelperServiceClient +} func (m *GRPCStatusHelperClient) Update(b []byte, c bool) (int64, error) { - resp, err := m.client.Update(context.Background(), &types.StatusUpdateRequest{ + resp, err := m.client.Update(context.Background(), &typesv1.StatusUpdateRequest{ Output: b, Error: c, }) @@ -121,14 +123,14 @@ func (m *GRPCStatusHelperClient) Update(b []byte, c bool) (int64, error) { // GRPCStatusHelperServer is the gRPC server that GRPCClient talks to. type GRPCStatusHelperServer struct { // This is the real implementation - types.StatusHelperServer + typesv1.StatusHelperServiceServer Impl StatusHelper } -func (m *GRPCStatusHelperServer) Update(ctx context.Context, req *types.StatusUpdateRequest) (resp *types.StatusUpdateResponse, err error) { +func (m *GRPCStatusHelperServer) Update(ctx context.Context, req *typesv1.StatusUpdateRequest) (resp *typesv1.StatusUpdateResponse, err error) { r, err := m.Impl.Update(req.Output, req.Error) if err != nil { return nil, err } - return &types.StatusUpdateResponse{R: r}, err + return &typesv1.StatusUpdateResponse{R: r}, err } diff --git a/plugin/executor_test.go b/plugin/executor_test.go index c30f1be59..a599399ea 100644 --- a/plugin/executor_test.go +++ b/plugin/executor_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" - dktypes "github.com/distribworks/dkron/v4/types" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" grpc "google.golang.org/grpc" ) diff --git a/plugin/http/http.go b/plugin/http/http.go index 59e50032d..ec963d5e9 100644 --- a/plugin/http/http.go +++ b/plugin/http/http.go @@ -17,8 +17,8 @@ import ( "time" "github.com/armon/circbuf" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - "github.com/distribworks/dkron/v4/types" ) const ( diff --git a/plugin/http/http_test.go b/plugin/http/http_test.go index ec9e29370..f078f5ef5 100644 --- a/plugin/http/http_test.go +++ b/plugin/http/http_test.go @@ -9,7 +9,7 @@ import ( "net/http/httptest" "testing" - "github.com/distribworks/dkron/v4/types" + types "github.com/distribworks/dkron/v4/gen/proto/types/v1" "github.com/stretchr/testify/assert" ) diff --git a/plugin/shell/shell.go b/plugin/shell/shell.go index 7db2ff70f..5fe6b326f 100644 --- a/plugin/shell/shell.go +++ b/plugin/shell/shell.go @@ -13,8 +13,8 @@ import ( "time" "github.com/armon/circbuf" + dktypes "github.com/distribworks/dkron/v4/gen/proto/types/v1" dkplugin "github.com/distribworks/dkron/v4/plugin" - dktypes "github.com/distribworks/dkron/v4/types" "github.com/mattn/go-shellwords" ) diff --git a/proto/pro.proto b/proto/pro.proto deleted file mode 100644 index 0bde058cd..000000000 --- a/proto/pro.proto +++ /dev/null @@ -1,97 +0,0 @@ -// protoc -I proto/ --go_out=proto --go_opt=paths=source_relative --go-grpc_out=proto --go-grpc_opt=paths=source_relative proto/pro.proto -syntax = "proto3"; - -package types; -option go_package = "github.com/distribworks/dkron/types"; -import "google/protobuf/empty.proto"; -import "google/protobuf/timestamp.proto"; - -// Policy is a policy definition -message Policy { - string name = 1; - string rules = 2; -} - -message ACLPolicyUpsertRequest { - Policy policy = 1; -} - -message ACLPolicyUpsertResponse { - bool success = 1; -} - -message ACLPolicyDeleteRequest { - string name = 1; -} - -message ACLPolicyDeleteResponse { - bool success = 1; -} - -message ACLPolicyInfoRequest { - string name = 1; -} - -message ACLPolicyInfoResponse { - Policy policy = 1; -} - -message ACLPolicyListResponse { - repeated Policy policies = 1; -} - -enum TokenType { - management = 0; - client = 1; -} - -// Token is the representation of a token -message Token { - string accessor = 1; - string secret = 2; - string name = 3; - TokenType type = 4; - google.protobuf.Timestamp create_time = 5; - google.protobuf.Timestamp expire_time = 6; - repeated string policies = 7; -} - -message ACLTokenUpsertRequest { - Token token = 1; -} - -message ACLTokenUpsertResponse { - bool success = 1; -} - -message ACLTokenDeleteRequest { - string accessor = 1; -} - -message ACLTokenDeleteResponse { - bool success = 1; -} - -message ACLTokenInfoRequest { - string accessor = 1; -} - -message ACLTokenInfoResponse { - Token token = 1; -} - -message ACLTokenListResponse { - repeated Token tokens = 1; -} - -// DkronPro is the DkronPro service definition -service DkronPro { - rpc ACLPolicyUpsert (ACLPolicyUpsertRequest) returns (ACLPolicyUpsertResponse); - rpc ACLPolicyDelete (ACLPolicyDeleteRequest) returns (ACLPolicyDeleteResponse); - rpc ACLPolicyInfo (ACLPolicyInfoRequest) returns (ACLPolicyInfoResponse); - rpc ACLPolicyList (google.protobuf.Empty) returns (ACLPolicyListResponse); - rpc ACLTokenUpsert (ACLTokenUpsertRequest) returns (ACLTokenUpsertResponse); - rpc ACLTokenDelete (ACLTokenDeleteRequest) returns (ACLTokenDeleteResponse); - rpc ACLTokenInfo (ACLTokenInfoRequest) returns (ACLTokenInfoResponse); - rpc ACLTokenList (google.protobuf.Empty) returns (ACLTokenListResponse); -} diff --git a/proto/types/v1/agent.proto b/proto/types/v1/agent.proto new file mode 100644 index 000000000..dbfdf12b9 --- /dev/null +++ b/proto/types/v1/agent.proto @@ -0,0 +1,25 @@ +// protoc -I proto/ --go_out=types --go_opt=paths=source_relative --go-grpc_out=types --go-grpc_opt=paths=source_relative dkron.proto +syntax = "proto3"; + +package types.v1; + +import "types/v1/dkron.proto"; + +service AgentService { + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + rpc AgentRun(AgentRunRequest) returns (stream AgentRunStream); +} + +message AgentRunRequest { + Job job = 1; + Execution execution = 2; +} + +message AgentRunStream { + Execution execution = 1; +} + +message AgentRunResponse { + string from = 1; + bytes payload = 2; +} diff --git a/proto/dkron.proto b/proto/types/v1/dkron.proto similarity index 60% rename from proto/dkron.proto rename to proto/types/v1/dkron.proto index e74224d6f..e45f2f500 100644 --- a/proto/dkron.proto +++ b/proto/types/v1/dkron.proto @@ -1,11 +1,10 @@ // protoc -I proto/ --go_out=types --go_opt=paths=source_relative --go-grpc_out=types --go-grpc_opt=paths=source_relative dkron.proto syntax = "proto3"; -package types; -option go_package = "github.com/distribworks/dkron/plugin/types"; +package types.v1; -import "google/protobuf/timestamp.proto"; import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; message Job { string name = 1; @@ -54,7 +53,7 @@ message DeleteJobRequest { string job_name = 1; } -message DeleteJobResponse{ +message DeleteJobResponse { Job job = 1; } @@ -68,10 +67,10 @@ message GetJobResponse { message Execution { string job_name = 1; - bool success = 2; - bytes output = 3; - string node_name = 4; - int64 group = 5; + bool success = 2; + bytes output = 3; + string node_name = 4; + int64 group = 5; uint32 attempt = 6; google.protobuf.Timestamp started_at = 7; google.protobuf.Timestamp finished_at = 8; @@ -104,54 +103,44 @@ message ToggleJobResponse { message RaftServer { string id = 1; - string node = 2; - string address = 3; - bool leader = 4; - bool voter = 5; - string raft_protocol = 6; + string node = 2; + string address = 3; + bool leader = 4; + bool voter = 5; + string raft_protocol = 6; } message RaftGetConfigurationResponse { repeated RaftServer servers = 1; - uint64 index = 2; + uint64 index = 2; } message RaftRemovePeerByIDRequest { string id = 1; } -message AgentRunStream { - Execution execution = 1; -} - -message AgentRunResponse { - string from = 1; - bytes payload = 2; -} - message GetActiveExecutionsResponse { repeated Execution executions = 1; } +// buf:lint:ignore SERVICE_SUFFIX +// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE +// buf:lint:ignore RPC_REQUEST_STANDARD_NAME service Dkron { - rpc GetJob (GetJobRequest) returns (GetJobResponse); - rpc ExecutionDone (ExecutionDoneRequest) returns (ExecutionDoneResponse); - rpc Leave (google.protobuf.Empty) returns (google.protobuf.Empty); - rpc SetJob (SetJobRequest) returns (SetJobResponse); - rpc DeleteJob (DeleteJobRequest) returns (DeleteJobResponse); - rpc RunJob (RunJobRequest) returns (RunJobResponse); - rpc ToggleJob (ToggleJobRequest) returns (ToggleJobResponse); - rpc RaftGetConfiguration (google.protobuf.Empty) returns (RaftGetConfigurationResponse); - rpc RaftRemovePeerByID (RaftRemovePeerByIDRequest) returns (google.protobuf.Empty); - rpc GetActiveExecutions (google.protobuf.Empty) returns (GetActiveExecutionsResponse); - rpc SetExecution (Execution) returns (google.protobuf.Empty); -} - -message AgentRunRequest { - Job job = 1; - Execution execution = 2; -} - -service Agent { - rpc AgentRun (AgentRunRequest) returns (stream AgentRunStream); + rpc GetJob(GetJobRequest) returns (GetJobResponse); + rpc ExecutionDone(ExecutionDoneRequest) returns (ExecutionDoneResponse); + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + rpc Leave(google.protobuf.Empty) returns (google.protobuf.Empty); + rpc SetJob(SetJobRequest) returns (SetJobResponse); + rpc DeleteJob(DeleteJobRequest) returns (DeleteJobResponse); + rpc RunJob(RunJobRequest) returns (RunJobResponse); + rpc ToggleJob(ToggleJobRequest) returns (ToggleJobResponse); + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + rpc RaftGetConfiguration(google.protobuf.Empty) returns (RaftGetConfigurationResponse); + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + rpc RaftRemovePeerByID(RaftRemovePeerByIDRequest) returns (google.protobuf.Empty); + rpc GetActiveExecutions(google.protobuf.Empty) returns (GetActiveExecutionsResponse); + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME + rpc SetExecution(Execution) returns (google.protobuf.Empty); } diff --git a/proto/executor.proto b/proto/types/v1/executor.proto similarity index 65% rename from proto/executor.proto rename to proto/types/v1/executor.proto index 0ab22db7c..07d1e7448 100644 --- a/proto/executor.proto +++ b/proto/types/v1/executor.proto @@ -1,8 +1,7 @@ // protoc -I proto/ --go_out=plugin/types --go_opt=paths=source_relative --go-grpc_out=plugin/types --go-grpc_opt=paths=source_relative executor.proto syntax = "proto3"; -package types; -option go_package = "github.com/distribworks/dkron/plugin/types"; +package types.v1; message ExecuteRequest { string job_name = 1; @@ -11,12 +10,12 @@ message ExecuteRequest { } message ExecuteResponse { - bytes output = 1; - string error = 2; + bytes output = 1; + string error = 2; } -service Executor { - rpc Execute (ExecuteRequest) returns (ExecuteResponse); +service ExecutorService { + rpc Execute(ExecuteRequest) returns (ExecuteResponse); } message StatusUpdateRequest { @@ -28,6 +27,8 @@ message StatusUpdateResponse { int64 r = 1; } -service StatusHelper { +service StatusHelperService { + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + // buf:lint:ignore RPC_RESPONSE_STANDARD_NAME rpc Update(StatusUpdateRequest) returns (StatusUpdateResponse); } diff --git a/proto/types/v1/pro.proto b/proto/types/v1/pro.proto new file mode 100644 index 000000000..297815c5f --- /dev/null +++ b/proto/types/v1/pro.proto @@ -0,0 +1,105 @@ +// protoc -I proto/ --go_out=proto --go_opt=paths=source_relative --go-grpc_out=proto --go-grpc_opt=paths=source_relative proto/pro.proto +syntax = "proto3"; + +package types.v1; + +import "google/protobuf/empty.proto"; +import "google/protobuf/timestamp.proto"; + +// Policy is a policy definition +message Policy { + string name = 1; + string rules = 2; +} + +message ACLPolicyUpsertRequest { + Policy policy = 1; +} + +message ACLPolicyUpsertResponse { + bool success = 1; +} + +message ACLPolicyDeleteRequest { + string name = 1; +} + +message ACLPolicyDeleteResponse { + bool success = 1; +} + +message ACLPolicyInfoRequest { + string name = 1; +} + +message ACLPolicyInfoResponse { + Policy policy = 1; +} + +message ACLPolicyListResponse { + repeated Policy policies = 1; +} + +// buf:lint:ignore ENUM_VALUE_SAME_NAME +enum TokenType { + // buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX + TOKEN_TYPE_MANAGEMENT = 0; + TOKEN_TYPE_CLIENT = 1; + TOKEN_TYPE_UNSPECIFIED = 2; +} + +// Token is the representation of a token +message Token { + string accessor = 1; + string secret = 2; + string name = 3; + TokenType type = 4; + google.protobuf.Timestamp create_time = 5; + google.protobuf.Timestamp expire_time = 6; + repeated string policies = 7; +} + +message ACLTokenUpsertRequest { + Token token = 1; +} + +message ACLTokenUpsertResponse { + bool success = 1; +} + +message ACLTokenDeleteRequest { + string accessor = 1; +} + +message ACLTokenDeleteResponse { + bool success = 1; +} + +message ACLTokenInfoRequest { + string accessor = 1; +} + +message ACLTokenInfoResponse { + Token token = 1; +} + +message ACLTokenListResponse { + repeated Token tokens = 1; +} + +// DkronPro is the DkronPro service definition +// buf:lint:ignore SERVICE_SUFFIX +// buf:lint:ignore RPC_REQUEST_RESPONSE_UNIQUE +service DkronPro { + rpc ACLPolicyUpsert(ACLPolicyUpsertRequest) returns (ACLPolicyUpsertResponse); + rpc ACLPolicyDelete(ACLPolicyDeleteRequest) returns (ACLPolicyDeleteResponse); + rpc ACLPolicyInfo(ACLPolicyInfoRequest) returns (ACLPolicyInfoResponse); + + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + rpc ACLPolicyList(google.protobuf.Empty) returns (ACLPolicyListResponse); + rpc ACLTokenUpsert(ACLTokenUpsertRequest) returns (ACLTokenUpsertResponse); + rpc ACLTokenDelete(ACLTokenDeleteRequest) returns (ACLTokenDeleteResponse); + rpc ACLTokenInfo(ACLTokenInfoRequest) returns (ACLTokenInfoResponse); + // buf:lint:ignore RPC_REQUEST_STANDARD_NAME + rpc ACLTokenList(google.protobuf.Empty) returns (ACLTokenListResponse); +} diff --git a/types/dkron.pb.go b/types/dkron.pb.go deleted file mode 100644 index 9b961fa37..000000000 --- a/types/dkron.pb.go +++ /dev/null @@ -1,2080 +0,0 @@ -// protoc -I proto/ --go_out=plugin/types --go_opt=paths=source_relative --go-grpc_out=plugin/types --go-grpc_opt=paths=source_relative dkron.proto - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.19.3 -// source: dkron.proto - -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - emptypb "google.golang.org/protobuf/types/known/emptypb" - timestamppb "google.golang.org/protobuf/types/known/timestamppb" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type Job struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` - Timezone string `protobuf:"bytes,2,opt,name=timezone,proto3" json:"timezone,omitempty"` - Schedule string `protobuf:"bytes,3,opt,name=schedule,proto3" json:"schedule,omitempty"` - Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"` - OwnerEmail string `protobuf:"bytes,8,opt,name=owner_email,json=ownerEmail,proto3" json:"owner_email,omitempty"` - SuccessCount int32 `protobuf:"varint,9,opt,name=success_count,json=successCount,proto3" json:"success_count,omitempty"` - ErrorCount int32 `protobuf:"varint,10,opt,name=error_count,json=errorCount,proto3" json:"error_count,omitempty"` - Disabled bool `protobuf:"varint,11,opt,name=disabled,proto3" json:"disabled,omitempty"` - Tags map[string]string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Retries uint32 `protobuf:"varint,13,opt,name=retries,proto3" json:"retries,omitempty"` - DependentJobs []string `protobuf:"bytes,14,rep,name=dependent_jobs,json=dependentJobs,proto3" json:"dependent_jobs,omitempty"` - ParentJob string `protobuf:"bytes,15,opt,name=parent_job,json=parentJob,proto3" json:"parent_job,omitempty"` - Concurrency string `protobuf:"bytes,16,opt,name=concurrency,proto3" json:"concurrency,omitempty"` - Executor string `protobuf:"bytes,17,opt,name=executor,proto3" json:"executor,omitempty"` - ExecutorConfig map[string]string `protobuf:"bytes,18,rep,name=executor_config,json=executorConfig,proto3" json:"executor_config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Status string `protobuf:"bytes,19,opt,name=status,proto3" json:"status,omitempty"` - Metadata map[string]string `protobuf:"bytes,20,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - LastSuccess *Job_NullableTime `protobuf:"bytes,25,opt,name=last_success,json=lastSuccess,proto3" json:"last_success,omitempty"` - LastError *Job_NullableTime `protobuf:"bytes,26,opt,name=last_error,json=lastError,proto3" json:"last_error,omitempty"` - Next *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=next,proto3" json:"next,omitempty"` - Displayname string `protobuf:"bytes,24,opt,name=displayname,proto3" json:"displayname,omitempty"` - Processors map[string]*PluginConfig `protobuf:"bytes,27,rep,name=processors,proto3" json:"processors,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - Ephemeral bool `protobuf:"varint,28,opt,name=ephemeral,proto3" json:"ephemeral,omitempty"` - ExpiresAt *Job_NullableTime `protobuf:"bytes,29,opt,name=expires_at,json=expiresAt,proto3" json:"expires_at,omitempty"` -} - -func (x *Job) Reset() { - *x = Job{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Job) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Job) ProtoMessage() {} - -func (x *Job) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Job.ProtoReflect.Descriptor instead. -func (*Job) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{0} -} - -func (x *Job) GetName() string { - if x != nil { - return x.Name - } - return "" -} - -func (x *Job) GetTimezone() string { - if x != nil { - return x.Timezone - } - return "" -} - -func (x *Job) GetSchedule() string { - if x != nil { - return x.Schedule - } - return "" -} - -func (x *Job) GetOwner() string { - if x != nil { - return x.Owner - } - return "" -} - -func (x *Job) GetOwnerEmail() string { - if x != nil { - return x.OwnerEmail - } - return "" -} - -func (x *Job) GetSuccessCount() int32 { - if x != nil { - return x.SuccessCount - } - return 0 -} - -func (x *Job) GetErrorCount() int32 { - if x != nil { - return x.ErrorCount - } - return 0 -} - -func (x *Job) GetDisabled() bool { - if x != nil { - return x.Disabled - } - return false -} - -func (x *Job) GetTags() map[string]string { - if x != nil { - return x.Tags - } - return nil -} - -func (x *Job) GetRetries() uint32 { - if x != nil { - return x.Retries - } - return 0 -} - -func (x *Job) GetDependentJobs() []string { - if x != nil { - return x.DependentJobs - } - return nil -} - -func (x *Job) GetParentJob() string { - if x != nil { - return x.ParentJob - } - return "" -} - -func (x *Job) GetConcurrency() string { - if x != nil { - return x.Concurrency - } - return "" -} - -func (x *Job) GetExecutor() string { - if x != nil { - return x.Executor - } - return "" -} - -func (x *Job) GetExecutorConfig() map[string]string { - if x != nil { - return x.ExecutorConfig - } - return nil -} - -func (x *Job) GetStatus() string { - if x != nil { - return x.Status - } - return "" -} - -func (x *Job) GetMetadata() map[string]string { - if x != nil { - return x.Metadata - } - return nil -} - -func (x *Job) GetLastSuccess() *Job_NullableTime { - if x != nil { - return x.LastSuccess - } - return nil -} - -func (x *Job) GetLastError() *Job_NullableTime { - if x != nil { - return x.LastError - } - return nil -} - -func (x *Job) GetNext() *timestamppb.Timestamp { - if x != nil { - return x.Next - } - return nil -} - -func (x *Job) GetDisplayname() string { - if x != nil { - return x.Displayname - } - return "" -} - -func (x *Job) GetProcessors() map[string]*PluginConfig { - if x != nil { - return x.Processors - } - return nil -} - -func (x *Job) GetEphemeral() bool { - if x != nil { - return x.Ephemeral - } - return false -} - -func (x *Job) GetExpiresAt() *Job_NullableTime { - if x != nil { - return x.ExpiresAt - } - return nil -} - -type PluginConfig struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Config map[string]string `protobuf:"bytes,1,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` -} - -func (x *PluginConfig) Reset() { - *x = PluginConfig{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *PluginConfig) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*PluginConfig) ProtoMessage() {} - -func (x *PluginConfig) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use PluginConfig.ProtoReflect.Descriptor instead. -func (*PluginConfig) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{1} -} - -func (x *PluginConfig) GetConfig() map[string]string { - if x != nil { - return x.Config - } - return nil -} - -type SetJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *SetJobRequest) Reset() { - *x = SetJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetJobRequest) ProtoMessage() {} - -func (x *SetJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetJobRequest.ProtoReflect.Descriptor instead. -func (*SetJobRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{2} -} - -func (x *SetJobRequest) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type SetJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *SetJobResponse) Reset() { - *x = SetJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *SetJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*SetJobResponse) ProtoMessage() {} - -func (x *SetJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use SetJobResponse.ProtoReflect.Descriptor instead. -func (*SetJobResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{3} -} - -func (x *SetJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type DeleteJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` -} - -func (x *DeleteJobRequest) Reset() { - *x = DeleteJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[4] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteJobRequest) ProtoMessage() {} - -func (x *DeleteJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[4] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteJobRequest.ProtoReflect.Descriptor instead. -func (*DeleteJobRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{4} -} - -func (x *DeleteJobRequest) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -type DeleteJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *DeleteJobResponse) Reset() { - *x = DeleteJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[5] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *DeleteJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*DeleteJobResponse) ProtoMessage() {} - -func (x *DeleteJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[5] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use DeleteJobResponse.ProtoReflect.Descriptor instead. -func (*DeleteJobResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{5} -} - -func (x *DeleteJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type GetJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` -} - -func (x *GetJobRequest) Reset() { - *x = GetJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[6] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetJobRequest) ProtoMessage() {} - -func (x *GetJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[6] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead. -func (*GetJobRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{6} -} - -func (x *GetJobRequest) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -type GetJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *GetJobResponse) Reset() { - *x = GetJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[7] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetJobResponse) ProtoMessage() {} - -func (x *GetJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[7] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead. -func (*GetJobResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{7} -} - -func (x *GetJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type Execution struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` - Success bool `protobuf:"varint,2,opt,name=success,proto3" json:"success,omitempty"` - Output []byte `protobuf:"bytes,3,opt,name=output,proto3" json:"output,omitempty"` - NodeName string `protobuf:"bytes,4,opt,name=node_name,json=nodeName,proto3" json:"node_name,omitempty"` - Group int64 `protobuf:"varint,5,opt,name=group,proto3" json:"group,omitempty"` - Attempt uint32 `protobuf:"varint,6,opt,name=attempt,proto3" json:"attempt,omitempty"` - StartedAt *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=started_at,json=startedAt,proto3" json:"started_at,omitempty"` - FinishedAt *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"` -} - -func (x *Execution) Reset() { - *x = Execution{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[8] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Execution) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Execution) ProtoMessage() {} - -func (x *Execution) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[8] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Execution.ProtoReflect.Descriptor instead. -func (*Execution) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{8} -} - -func (x *Execution) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -func (x *Execution) GetSuccess() bool { - if x != nil { - return x.Success - } - return false -} - -func (x *Execution) GetOutput() []byte { - if x != nil { - return x.Output - } - return nil -} - -func (x *Execution) GetNodeName() string { - if x != nil { - return x.NodeName - } - return "" -} - -func (x *Execution) GetGroup() int64 { - if x != nil { - return x.Group - } - return 0 -} - -func (x *Execution) GetAttempt() uint32 { - if x != nil { - return x.Attempt - } - return 0 -} - -func (x *Execution) GetStartedAt() *timestamppb.Timestamp { - if x != nil { - return x.StartedAt - } - return nil -} - -func (x *Execution) GetFinishedAt() *timestamppb.Timestamp { - if x != nil { - return x.FinishedAt - } - return nil -} - -type ExecutionDoneRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` -} - -func (x *ExecutionDoneRequest) Reset() { - *x = ExecutionDoneRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[9] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionDoneRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionDoneRequest) ProtoMessage() {} - -func (x *ExecutionDoneRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[9] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionDoneRequest.ProtoReflect.Descriptor instead. -func (*ExecutionDoneRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{9} -} - -func (x *ExecutionDoneRequest) GetExecution() *Execution { - if x != nil { - return x.Execution - } - return nil -} - -type ExecutionDoneResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *ExecutionDoneResponse) Reset() { - *x = ExecutionDoneResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[10] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecutionDoneResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecutionDoneResponse) ProtoMessage() {} - -func (x *ExecutionDoneResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[10] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecutionDoneResponse.ProtoReflect.Descriptor instead. -func (*ExecutionDoneResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{10} -} - -func (x *ExecutionDoneResponse) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *ExecutionDoneResponse) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -type RunJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` -} - -func (x *RunJobRequest) Reset() { - *x = RunJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[11] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RunJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RunJobRequest) ProtoMessage() {} - -func (x *RunJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[11] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RunJobRequest.ProtoReflect.Descriptor instead. -func (*RunJobRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{11} -} - -func (x *RunJobRequest) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -type RunJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *RunJobResponse) Reset() { - *x = RunJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[12] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RunJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RunJobResponse) ProtoMessage() {} - -func (x *RunJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[12] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RunJobResponse.ProtoReflect.Descriptor instead. -func (*RunJobResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{12} -} - -func (x *RunJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type ToggleJobRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` -} - -func (x *ToggleJobRequest) Reset() { - *x = ToggleJobRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[13] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ToggleJobRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ToggleJobRequest) ProtoMessage() {} - -func (x *ToggleJobRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[13] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ToggleJobRequest.ProtoReflect.Descriptor instead. -func (*ToggleJobRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{13} -} - -func (x *ToggleJobRequest) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -type ToggleJobResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` -} - -func (x *ToggleJobResponse) Reset() { - *x = ToggleJobResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[14] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ToggleJobResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ToggleJobResponse) ProtoMessage() {} - -func (x *ToggleJobResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[14] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ToggleJobResponse.ProtoReflect.Descriptor instead. -func (*ToggleJobResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{14} -} - -func (x *ToggleJobResponse) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -type RaftServer struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` - Node string `protobuf:"bytes,2,opt,name=node,proto3" json:"node,omitempty"` - Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` - Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"` - Voter bool `protobuf:"varint,5,opt,name=voter,proto3" json:"voter,omitempty"` - RaftProtocol string `protobuf:"bytes,6,opt,name=raft_protocol,json=raftProtocol,proto3" json:"raft_protocol,omitempty"` -} - -func (x *RaftServer) Reset() { - *x = RaftServer{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[15] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RaftServer) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RaftServer) ProtoMessage() {} - -func (x *RaftServer) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[15] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RaftServer.ProtoReflect.Descriptor instead. -func (*RaftServer) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{15} -} - -func (x *RaftServer) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -func (x *RaftServer) GetNode() string { - if x != nil { - return x.Node - } - return "" -} - -func (x *RaftServer) GetAddress() string { - if x != nil { - return x.Address - } - return "" -} - -func (x *RaftServer) GetLeader() bool { - if x != nil { - return x.Leader - } - return false -} - -func (x *RaftServer) GetVoter() bool { - if x != nil { - return x.Voter - } - return false -} - -func (x *RaftServer) GetRaftProtocol() string { - if x != nil { - return x.RaftProtocol - } - return "" -} - -type RaftGetConfigurationResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Servers []*RaftServer `protobuf:"bytes,1,rep,name=servers,proto3" json:"servers,omitempty"` - Index uint64 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` -} - -func (x *RaftGetConfigurationResponse) Reset() { - *x = RaftGetConfigurationResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[16] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RaftGetConfigurationResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RaftGetConfigurationResponse) ProtoMessage() {} - -func (x *RaftGetConfigurationResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[16] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RaftGetConfigurationResponse.ProtoReflect.Descriptor instead. -func (*RaftGetConfigurationResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{16} -} - -func (x *RaftGetConfigurationResponse) GetServers() []*RaftServer { - if x != nil { - return x.Servers - } - return nil -} - -func (x *RaftGetConfigurationResponse) GetIndex() uint64 { - if x != nil { - return x.Index - } - return 0 -} - -type RaftRemovePeerByIDRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` -} - -func (x *RaftRemovePeerByIDRequest) Reset() { - *x = RaftRemovePeerByIDRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[17] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *RaftRemovePeerByIDRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*RaftRemovePeerByIDRequest) ProtoMessage() {} - -func (x *RaftRemovePeerByIDRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[17] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use RaftRemovePeerByIDRequest.ProtoReflect.Descriptor instead. -func (*RaftRemovePeerByIDRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{17} -} - -func (x *RaftRemovePeerByIDRequest) GetId() string { - if x != nil { - return x.Id - } - return "" -} - -type AgentRunStream struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Execution *Execution `protobuf:"bytes,1,opt,name=execution,proto3" json:"execution,omitempty"` -} - -func (x *AgentRunStream) Reset() { - *x = AgentRunStream{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[18] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AgentRunStream) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AgentRunStream) ProtoMessage() {} - -func (x *AgentRunStream) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[18] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AgentRunStream.ProtoReflect.Descriptor instead. -func (*AgentRunStream) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{18} -} - -func (x *AgentRunStream) GetExecution() *Execution { - if x != nil { - return x.Execution - } - return nil -} - -type AgentRunResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - From string `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"` - Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` -} - -func (x *AgentRunResponse) Reset() { - *x = AgentRunResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[19] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AgentRunResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AgentRunResponse) ProtoMessage() {} - -func (x *AgentRunResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[19] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AgentRunResponse.ProtoReflect.Descriptor instead. -func (*AgentRunResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{19} -} - -func (x *AgentRunResponse) GetFrom() string { - if x != nil { - return x.From - } - return "" -} - -func (x *AgentRunResponse) GetPayload() []byte { - if x != nil { - return x.Payload - } - return nil -} - -type GetActiveExecutionsResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Executions []*Execution `protobuf:"bytes,1,rep,name=executions,proto3" json:"executions,omitempty"` -} - -func (x *GetActiveExecutionsResponse) Reset() { - *x = GetActiveExecutionsResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[20] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *GetActiveExecutionsResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*GetActiveExecutionsResponse) ProtoMessage() {} - -func (x *GetActiveExecutionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[20] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use GetActiveExecutionsResponse.ProtoReflect.Descriptor instead. -func (*GetActiveExecutionsResponse) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{20} -} - -func (x *GetActiveExecutionsResponse) GetExecutions() []*Execution { - if x != nil { - return x.Executions - } - return nil -} - -type AgentRunRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Job *Job `protobuf:"bytes,1,opt,name=job,proto3" json:"job,omitempty"` - Execution *Execution `protobuf:"bytes,2,opt,name=execution,proto3" json:"execution,omitempty"` -} - -func (x *AgentRunRequest) Reset() { - *x = AgentRunRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[21] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *AgentRunRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*AgentRunRequest) ProtoMessage() {} - -func (x *AgentRunRequest) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[21] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use AgentRunRequest.ProtoReflect.Descriptor instead. -func (*AgentRunRequest) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{21} -} - -func (x *AgentRunRequest) GetJob() *Job { - if x != nil { - return x.Job - } - return nil -} - -func (x *AgentRunRequest) GetExecution() *Execution { - if x != nil { - return x.Execution - } - return nil -} - -type Job_NullableTime struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - HasValue bool `protobuf:"varint,1,opt,name=has_value,json=hasValue,proto3" json:"has_value,omitempty"` - Time *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=time,proto3" json:"time,omitempty"` -} - -func (x *Job_NullableTime) Reset() { - *x = Job_NullableTime{} - if protoimpl.UnsafeEnabled { - mi := &file_dkron_proto_msgTypes[25] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *Job_NullableTime) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*Job_NullableTime) ProtoMessage() {} - -func (x *Job_NullableTime) ProtoReflect() protoreflect.Message { - mi := &file_dkron_proto_msgTypes[25] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use Job_NullableTime.ProtoReflect.Descriptor instead. -func (*Job_NullableTime) Descriptor() ([]byte, []int) { - return file_dkron_proto_rawDescGZIP(), []int{0, 3} -} - -func (x *Job_NullableTime) GetHasValue() bool { - if x != nil { - return x.HasValue - } - return false -} - -func (x *Job_NullableTime) GetTime() *timestamppb.Timestamp { - if x != nil { - return x.Time - } - return nil -} - -var File_dkron_proto protoreflect.FileDescriptor - -var file_dkron_proto_rawDesc = []byte{ - 0x0a, 0x0b, 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, - 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x22, 0x8b, 0x0a, 0x0a, 0x03, 0x4a, 0x6f, 0x62, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, - 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x74, 0x69, 0x6d, 0x65, 0x7a, 0x6f, 0x6e, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x73, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x73, 0x63, - 0x68, 0x65, 0x64, 0x75, 0x6c, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x18, - 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x12, 0x1f, 0x0a, 0x0b, - 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x5f, 0x65, 0x6d, 0x61, 0x69, 0x6c, 0x18, 0x08, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0a, 0x6f, 0x77, 0x6e, 0x65, 0x72, 0x45, 0x6d, 0x61, 0x69, 0x6c, 0x12, 0x23, 0x0a, - 0x0d, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x05, 0x52, 0x0c, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x43, 0x6f, 0x75, - 0x6e, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x75, 0x6e, - 0x74, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x43, 0x6f, - 0x75, 0x6e, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, - 0x0b, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x64, 0x69, 0x73, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, - 0x28, 0x0a, 0x04, 0x74, 0x61, 0x67, 0x73, 0x18, 0x0c, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x14, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x52, 0x04, 0x74, 0x61, 0x67, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x72, 0x65, 0x74, - 0x72, 0x69, 0x65, 0x73, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x07, 0x72, 0x65, 0x74, 0x72, - 0x69, 0x65, 0x73, 0x12, 0x25, 0x0a, 0x0e, 0x64, 0x65, 0x70, 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, - 0x5f, 0x6a, 0x6f, 0x62, 0x73, 0x18, 0x0e, 0x20, 0x03, 0x28, 0x09, 0x52, 0x0d, 0x64, 0x65, 0x70, - 0x65, 0x6e, 0x64, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x1d, 0x0a, 0x0a, 0x70, 0x61, - 0x72, 0x65, 0x6e, 0x74, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, - 0x70, 0x61, 0x72, 0x65, 0x6e, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x20, 0x0a, 0x0b, 0x63, 0x6f, 0x6e, - 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, - 0x63, 0x6f, 0x6e, 0x63, 0x75, 0x72, 0x72, 0x65, 0x6e, 0x63, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x47, 0x0a, 0x0f, 0x65, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x6f, 0x72, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x12, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x1e, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, - 0x52, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x13, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x34, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, - 0x64, 0x61, 0x74, 0x61, 0x18, 0x14, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x3a, - 0x0a, 0x0c, 0x6c, 0x61, 0x73, 0x74, 0x5f, 0x73, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x19, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, - 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x0b, 0x6c, - 0x61, 0x73, 0x74, 0x53, 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x36, 0x0a, 0x0a, 0x6c, 0x61, - 0x73, 0x74, 0x5f, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x1a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4e, 0x75, 0x6c, 0x6c, 0x61, - 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x09, 0x6c, 0x61, 0x73, 0x74, 0x45, 0x72, 0x72, - 0x6f, 0x72, 0x12, 0x2e, 0x0a, 0x04, 0x6e, 0x65, 0x78, 0x74, 0x18, 0x17, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, - 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x6e, 0x65, - 0x78, 0x74, 0x12, 0x20, 0x0a, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, 0x6e, 0x61, 0x6d, - 0x65, 0x18, 0x18, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0b, 0x64, 0x69, 0x73, 0x70, 0x6c, 0x61, 0x79, - 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x3a, 0x0a, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, - 0x72, 0x73, 0x18, 0x1b, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x52, 0x0a, 0x70, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, - 0x12, 0x1c, 0x0a, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x18, 0x1c, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x09, 0x65, 0x70, 0x68, 0x65, 0x6d, 0x65, 0x72, 0x61, 0x6c, 0x12, 0x36, - 0x0a, 0x0a, 0x65, 0x78, 0x70, 0x69, 0x72, 0x65, 0x73, 0x5f, 0x61, 0x74, 0x18, 0x1d, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x2e, 0x4e, - 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x52, 0x09, 0x65, 0x78, 0x70, - 0x69, 0x72, 0x65, 0x73, 0x41, 0x74, 0x1a, 0x37, 0x0a, 0x09, 0x54, 0x61, 0x67, 0x73, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, - 0x41, 0x0a, 0x13, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, - 0x38, 0x01, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, - 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x1a, - 0x5b, 0x0a, 0x0c, 0x4e, 0x75, 0x6c, 0x6c, 0x61, 0x62, 0x6c, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, - 0x1b, 0x0a, 0x09, 0x68, 0x61, 0x73, 0x5f, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x08, 0x52, 0x08, 0x68, 0x61, 0x73, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x2e, 0x0a, 0x04, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x04, 0x74, 0x69, 0x6d, 0x65, 0x1a, 0x52, 0x0a, 0x0f, - 0x50, 0x72, 0x6f, 0x63, 0x65, 0x73, 0x73, 0x6f, 0x72, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, - 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, - 0x79, 0x12, 0x29, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, - 0x32, 0x13, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, - 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x82, 0x01, 0x0a, 0x0c, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, - 0x67, 0x12, 0x37, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, 0x01, 0x20, 0x03, 0x28, - 0x0b, 0x32, 0x1f, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, - 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, - 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, - 0x6e, 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, - 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, - 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x2d, 0x0a, 0x0d, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, - 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2e, 0x0a, 0x0e, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, - 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2d, 0x0a, 0x10, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, - 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, - 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x11, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, - 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, - 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, - 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2a, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, - 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, - 0x6d, 0x65, 0x22, 0x2e, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, - 0x6f, 0x62, 0x22, 0x9d, 0x02, 0x0a, 0x09, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, - 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x73, - 0x75, 0x63, 0x63, 0x65, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x73, 0x75, - 0x63, 0x63, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x1b, 0x0a, - 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x67, 0x72, - 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x67, 0x72, 0x6f, 0x75, 0x70, - 0x12, 0x18, 0x0a, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x07, 0x61, 0x74, 0x74, 0x65, 0x6d, 0x70, 0x74, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, - 0x61, 0x72, 0x74, 0x65, 0x64, 0x5f, 0x61, 0x74, 0x18, 0x07, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, - 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, - 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x65, 0x64, 0x41, 0x74, 0x12, 0x3b, 0x0a, 0x0b, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, - 0x64, 0x5f, 0x61, 0x74, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, - 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, - 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0a, 0x66, 0x69, 0x6e, 0x69, 0x73, 0x68, 0x65, 0x64, - 0x41, 0x74, 0x22, 0x46, 0x0a, 0x14, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, - 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x09, 0x65, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, - 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x45, 0x0a, 0x15, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, - 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, - 0x64, 0x22, 0x2a, 0x0a, 0x0d, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x2e, 0x0a, - 0x0e, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x2d, 0x0a, - 0x10, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x22, 0x31, 0x0a, 0x11, - 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, - 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x22, - 0x9d, 0x01, 0x0a, 0x0a, 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x12, 0x0e, - 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, - 0x0a, 0x04, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x6f, - 0x64, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x12, 0x16, 0x0a, 0x06, - 0x6c, 0x65, 0x61, 0x64, 0x65, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x06, 0x6c, 0x65, - 0x61, 0x64, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x18, 0x05, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x05, 0x76, 0x6f, 0x74, 0x65, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x72, 0x61, - 0x66, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x06, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x0c, 0x72, 0x61, 0x66, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x22, - 0x61, 0x0a, 0x1c, 0x52, 0x61, 0x66, 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, - 0x2b, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, - 0x32, 0x11, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x53, 0x65, 0x72, - 0x76, 0x65, 0x72, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x65, 0x72, 0x73, 0x12, 0x14, 0x0a, 0x05, - 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x04, 0x52, 0x05, 0x69, 0x6e, 0x64, - 0x65, 0x78, 0x22, 0x2b, 0x0a, 0x19, 0x52, 0x61, 0x66, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, - 0x50, 0x65, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x22, - 0x40, 0x0a, 0x0e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, - 0x6d, 0x12, 0x2e, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x22, 0x40, 0x0a, 0x10, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x66, 0x72, 0x6f, 0x6d, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x61, 0x79, - 0x6c, 0x6f, 0x61, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x22, 0x4f, 0x0a, 0x1b, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x30, 0x0a, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0a, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x5f, 0x0a, 0x0f, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0a, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x4a, 0x6f, 0x62, - 0x52, 0x03, 0x6a, 0x6f, 0x62, 0x12, 0x2e, 0x0a, 0x09, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, - 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x65, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x32, 0xe3, 0x05, 0x0a, 0x05, 0x44, 0x6b, 0x72, 0x6f, 0x6e, 0x12, - 0x35, 0x0a, 0x06, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x14, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4a, 0x0a, 0x0d, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x12, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, - 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x44, 0x6f, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x37, 0x0a, 0x05, 0x4c, 0x65, 0x61, 0x76, 0x65, 0x12, 0x16, 0x2e, 0x67, 0x6f, - 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, - 0x70, 0x74, 0x79, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x35, 0x0a, 0x06, 0x53, - 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x14, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x65, - 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x2e, 0x53, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x12, - 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x35, 0x0a, 0x06, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x12, 0x14, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x75, 0x6e, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3e, 0x0a, 0x09, 0x54, 0x6f, 0x67, - 0x67, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x12, 0x17, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, - 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, - 0x18, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x54, 0x6f, 0x67, 0x67, 0x6c, 0x65, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x53, 0x0a, 0x14, 0x52, 0x61, 0x66, - 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x23, 0x2e, 0x74, 0x79, 0x70, 0x65, - 0x73, 0x2e, 0x52, 0x61, 0x66, 0x74, 0x47, 0x65, 0x74, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, - 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4e, - 0x0a, 0x12, 0x52, 0x61, 0x66, 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x65, 0x65, 0x72, - 0x42, 0x79, 0x49, 0x44, 0x12, 0x20, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x52, 0x61, 0x66, - 0x74, 0x52, 0x65, 0x6d, 0x6f, 0x76, 0x65, 0x50, 0x65, 0x65, 0x72, 0x42, 0x79, 0x49, 0x44, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, - 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x12, 0x51, - 0x0a, 0x13, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, 0x78, 0x65, 0x63, 0x75, - 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x22, 0x2e, - 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x47, 0x65, 0x74, 0x41, 0x63, 0x74, 0x69, 0x76, 0x65, 0x45, - 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x38, 0x0a, 0x0c, 0x53, 0x65, 0x74, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x69, 0x6f, - 0x6e, 0x12, 0x10, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, - 0x69, 0x6f, 0x6e, 0x1a, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x32, 0x44, 0x0a, 0x05, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x12, 0x3b, 0x0a, 0x08, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, - 0x12, 0x16, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, - 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x52, 0x75, 0x6e, 0x53, 0x74, 0x72, 0x65, 0x61, 0x6d, 0x30, - 0x01, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, - 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x2f, 0x64, 0x6b, 0x72, - 0x6f, 0x6e, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x74, 0x79, 0x70, 0x65, 0x73, 0x62, - 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_dkron_proto_rawDescOnce sync.Once - file_dkron_proto_rawDescData = file_dkron_proto_rawDesc -) - -func file_dkron_proto_rawDescGZIP() []byte { - file_dkron_proto_rawDescOnce.Do(func() { - file_dkron_proto_rawDescData = protoimpl.X.CompressGZIP(file_dkron_proto_rawDescData) - }) - return file_dkron_proto_rawDescData -} - -var file_dkron_proto_msgTypes = make([]protoimpl.MessageInfo, 28) -var file_dkron_proto_goTypes = []interface{}{ - (*Job)(nil), // 0: types.Job - (*PluginConfig)(nil), // 1: types.PluginConfig - (*SetJobRequest)(nil), // 2: types.SetJobRequest - (*SetJobResponse)(nil), // 3: types.SetJobResponse - (*DeleteJobRequest)(nil), // 4: types.DeleteJobRequest - (*DeleteJobResponse)(nil), // 5: types.DeleteJobResponse - (*GetJobRequest)(nil), // 6: types.GetJobRequest - (*GetJobResponse)(nil), // 7: types.GetJobResponse - (*Execution)(nil), // 8: types.Execution - (*ExecutionDoneRequest)(nil), // 9: types.ExecutionDoneRequest - (*ExecutionDoneResponse)(nil), // 10: types.ExecutionDoneResponse - (*RunJobRequest)(nil), // 11: types.RunJobRequest - (*RunJobResponse)(nil), // 12: types.RunJobResponse - (*ToggleJobRequest)(nil), // 13: types.ToggleJobRequest - (*ToggleJobResponse)(nil), // 14: types.ToggleJobResponse - (*RaftServer)(nil), // 15: types.RaftServer - (*RaftGetConfigurationResponse)(nil), // 16: types.RaftGetConfigurationResponse - (*RaftRemovePeerByIDRequest)(nil), // 17: types.RaftRemovePeerByIDRequest - (*AgentRunStream)(nil), // 18: types.AgentRunStream - (*AgentRunResponse)(nil), // 19: types.AgentRunResponse - (*GetActiveExecutionsResponse)(nil), // 20: types.GetActiveExecutionsResponse - (*AgentRunRequest)(nil), // 21: types.AgentRunRequest - nil, // 22: types.Job.TagsEntry - nil, // 23: types.Job.ExecutorConfigEntry - nil, // 24: types.Job.MetadataEntry - (*Job_NullableTime)(nil), // 25: types.Job.NullableTime - nil, // 26: types.Job.ProcessorsEntry - nil, // 27: types.PluginConfig.ConfigEntry - (*timestamppb.Timestamp)(nil), // 28: google.protobuf.Timestamp - (*emptypb.Empty)(nil), // 29: google.protobuf.Empty -} -var file_dkron_proto_depIdxs = []int32{ - 22, // 0: types.Job.tags:type_name -> types.Job.TagsEntry - 23, // 1: types.Job.executor_config:type_name -> types.Job.ExecutorConfigEntry - 24, // 2: types.Job.metadata:type_name -> types.Job.MetadataEntry - 25, // 3: types.Job.last_success:type_name -> types.Job.NullableTime - 25, // 4: types.Job.last_error:type_name -> types.Job.NullableTime - 28, // 5: types.Job.next:type_name -> google.protobuf.Timestamp - 26, // 6: types.Job.processors:type_name -> types.Job.ProcessorsEntry - 25, // 7: types.Job.expires_at:type_name -> types.Job.NullableTime - 27, // 8: types.PluginConfig.config:type_name -> types.PluginConfig.ConfigEntry - 0, // 9: types.SetJobRequest.job:type_name -> types.Job - 0, // 10: types.SetJobResponse.job:type_name -> types.Job - 0, // 11: types.DeleteJobResponse.job:type_name -> types.Job - 0, // 12: types.GetJobResponse.job:type_name -> types.Job - 28, // 13: types.Execution.started_at:type_name -> google.protobuf.Timestamp - 28, // 14: types.Execution.finished_at:type_name -> google.protobuf.Timestamp - 8, // 15: types.ExecutionDoneRequest.execution:type_name -> types.Execution - 0, // 16: types.RunJobResponse.job:type_name -> types.Job - 0, // 17: types.ToggleJobResponse.job:type_name -> types.Job - 15, // 18: types.RaftGetConfigurationResponse.servers:type_name -> types.RaftServer - 8, // 19: types.AgentRunStream.execution:type_name -> types.Execution - 8, // 20: types.GetActiveExecutionsResponse.executions:type_name -> types.Execution - 0, // 21: types.AgentRunRequest.job:type_name -> types.Job - 8, // 22: types.AgentRunRequest.execution:type_name -> types.Execution - 28, // 23: types.Job.NullableTime.time:type_name -> google.protobuf.Timestamp - 1, // 24: types.Job.ProcessorsEntry.value:type_name -> types.PluginConfig - 6, // 25: types.Dkron.GetJob:input_type -> types.GetJobRequest - 9, // 26: types.Dkron.ExecutionDone:input_type -> types.ExecutionDoneRequest - 29, // 27: types.Dkron.Leave:input_type -> google.protobuf.Empty - 2, // 28: types.Dkron.SetJob:input_type -> types.SetJobRequest - 4, // 29: types.Dkron.DeleteJob:input_type -> types.DeleteJobRequest - 11, // 30: types.Dkron.RunJob:input_type -> types.RunJobRequest - 13, // 31: types.Dkron.ToggleJob:input_type -> types.ToggleJobRequest - 29, // 32: types.Dkron.RaftGetConfiguration:input_type -> google.protobuf.Empty - 17, // 33: types.Dkron.RaftRemovePeerByID:input_type -> types.RaftRemovePeerByIDRequest - 29, // 34: types.Dkron.GetActiveExecutions:input_type -> google.protobuf.Empty - 8, // 35: types.Dkron.SetExecution:input_type -> types.Execution - 21, // 36: types.Agent.AgentRun:input_type -> types.AgentRunRequest - 7, // 37: types.Dkron.GetJob:output_type -> types.GetJobResponse - 10, // 38: types.Dkron.ExecutionDone:output_type -> types.ExecutionDoneResponse - 29, // 39: types.Dkron.Leave:output_type -> google.protobuf.Empty - 3, // 40: types.Dkron.SetJob:output_type -> types.SetJobResponse - 5, // 41: types.Dkron.DeleteJob:output_type -> types.DeleteJobResponse - 12, // 42: types.Dkron.RunJob:output_type -> types.RunJobResponse - 14, // 43: types.Dkron.ToggleJob:output_type -> types.ToggleJobResponse - 16, // 44: types.Dkron.RaftGetConfiguration:output_type -> types.RaftGetConfigurationResponse - 29, // 45: types.Dkron.RaftRemovePeerByID:output_type -> google.protobuf.Empty - 20, // 46: types.Dkron.GetActiveExecutions:output_type -> types.GetActiveExecutionsResponse - 29, // 47: types.Dkron.SetExecution:output_type -> google.protobuf.Empty - 18, // 48: types.Agent.AgentRun:output_type -> types.AgentRunStream - 37, // [37:49] is the sub-list for method output_type - 25, // [25:37] is the sub-list for method input_type - 25, // [25:25] is the sub-list for extension type_name - 25, // [25:25] is the sub-list for extension extendee - 0, // [0:25] is the sub-list for field type_name -} - -func init() { file_dkron_proto_init() } -func file_dkron_proto_init() { - if File_dkron_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_dkron_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Job); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PluginConfig); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*DeleteJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Execution); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionDoneRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecutionDoneResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RunJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ToggleJobRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ToggleJobResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaftServer); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaftGetConfigurationResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*RaftRemovePeerByIDRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AgentRunStream); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AgentRunResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*GetActiveExecutionsResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AgentRunRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_dkron_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Job_NullableTime); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_dkron_proto_rawDesc, - NumEnums: 0, - NumMessages: 28, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_dkron_proto_goTypes, - DependencyIndexes: file_dkron_proto_depIdxs, - MessageInfos: file_dkron_proto_msgTypes, - }.Build() - File_dkron_proto = out.File - file_dkron_proto_rawDesc = nil - file_dkron_proto_goTypes = nil - file_dkron_proto_depIdxs = nil -} diff --git a/types/executor.pb.go b/types/executor.pb.go deleted file mode 100644 index a4b0584cf..000000000 --- a/types/executor.pb.go +++ /dev/null @@ -1,394 +0,0 @@ -// protoc -I proto/ --go_out=plugin/types --go_opt=paths=source_relative --go-grpc_out=plugin/types --go-grpc_opt=paths=source_relative executor.proto - -// Code generated by protoc-gen-go. DO NOT EDIT. -// versions: -// protoc-gen-go v1.28.1 -// protoc v3.19.3 -// source: executor.proto - -package types - -import ( - protoreflect "google.golang.org/protobuf/reflect/protoreflect" - protoimpl "google.golang.org/protobuf/runtime/protoimpl" - reflect "reflect" - sync "sync" -) - -const ( - // Verify that this generated code is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) - // Verify that runtime/protoimpl is sufficiently up-to-date. - _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) -) - -type ExecuteRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - JobName string `protobuf:"bytes,1,opt,name=job_name,json=jobName,proto3" json:"job_name,omitempty"` - Config map[string]string `protobuf:"bytes,2,rep,name=config,proto3" json:"config,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` - StatusServer uint32 `protobuf:"varint,3,opt,name=status_server,json=statusServer,proto3" json:"status_server,omitempty"` -} - -func (x *ExecuteRequest) Reset() { - *x = ExecuteRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_executor_proto_msgTypes[0] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecuteRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecuteRequest) ProtoMessage() {} - -func (x *ExecuteRequest) ProtoReflect() protoreflect.Message { - mi := &file_executor_proto_msgTypes[0] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecuteRequest.ProtoReflect.Descriptor instead. -func (*ExecuteRequest) Descriptor() ([]byte, []int) { - return file_executor_proto_rawDescGZIP(), []int{0} -} - -func (x *ExecuteRequest) GetJobName() string { - if x != nil { - return x.JobName - } - return "" -} - -func (x *ExecuteRequest) GetConfig() map[string]string { - if x != nil { - return x.Config - } - return nil -} - -func (x *ExecuteRequest) GetStatusServer() uint32 { - if x != nil { - return x.StatusServer - } - return 0 -} - -type ExecuteResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Output []byte `protobuf:"bytes,1,opt,name=output,proto3" json:"output,omitempty"` - Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *ExecuteResponse) Reset() { - *x = ExecuteResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_executor_proto_msgTypes[1] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *ExecuteResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*ExecuteResponse) ProtoMessage() {} - -func (x *ExecuteResponse) ProtoReflect() protoreflect.Message { - mi := &file_executor_proto_msgTypes[1] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use ExecuteResponse.ProtoReflect.Descriptor instead. -func (*ExecuteResponse) Descriptor() ([]byte, []int) { - return file_executor_proto_rawDescGZIP(), []int{1} -} - -func (x *ExecuteResponse) GetOutput() []byte { - if x != nil { - return x.Output - } - return nil -} - -func (x *ExecuteResponse) GetError() string { - if x != nil { - return x.Error - } - return "" -} - -type StatusUpdateRequest struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - Output []byte `protobuf:"bytes,2,opt,name=output,proto3" json:"output,omitempty"` - Error bool `protobuf:"varint,3,opt,name=error,proto3" json:"error,omitempty"` -} - -func (x *StatusUpdateRequest) Reset() { - *x = StatusUpdateRequest{} - if protoimpl.UnsafeEnabled { - mi := &file_executor_proto_msgTypes[2] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatusUpdateRequest) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusUpdateRequest) ProtoMessage() {} - -func (x *StatusUpdateRequest) ProtoReflect() protoreflect.Message { - mi := &file_executor_proto_msgTypes[2] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusUpdateRequest.ProtoReflect.Descriptor instead. -func (*StatusUpdateRequest) Descriptor() ([]byte, []int) { - return file_executor_proto_rawDescGZIP(), []int{2} -} - -func (x *StatusUpdateRequest) GetOutput() []byte { - if x != nil { - return x.Output - } - return nil -} - -func (x *StatusUpdateRequest) GetError() bool { - if x != nil { - return x.Error - } - return false -} - -type StatusUpdateResponse struct { - state protoimpl.MessageState - sizeCache protoimpl.SizeCache - unknownFields protoimpl.UnknownFields - - R int64 `protobuf:"varint,1,opt,name=r,proto3" json:"r,omitempty"` -} - -func (x *StatusUpdateResponse) Reset() { - *x = StatusUpdateResponse{} - if protoimpl.UnsafeEnabled { - mi := &file_executor_proto_msgTypes[3] - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - ms.StoreMessageInfo(mi) - } -} - -func (x *StatusUpdateResponse) String() string { - return protoimpl.X.MessageStringOf(x) -} - -func (*StatusUpdateResponse) ProtoMessage() {} - -func (x *StatusUpdateResponse) ProtoReflect() protoreflect.Message { - mi := &file_executor_proto_msgTypes[3] - if protoimpl.UnsafeEnabled && x != nil { - ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) - if ms.LoadMessageInfo() == nil { - ms.StoreMessageInfo(mi) - } - return ms - } - return mi.MessageOf(x) -} - -// Deprecated: Use StatusUpdateResponse.ProtoReflect.Descriptor instead. -func (*StatusUpdateResponse) Descriptor() ([]byte, []int) { - return file_executor_proto_rawDescGZIP(), []int{3} -} - -func (x *StatusUpdateResponse) GetR() int64 { - if x != nil { - return x.R - } - return 0 -} - -var File_executor_proto protoreflect.FileDescriptor - -var file_executor_proto_rawDesc = []byte{ - 0x0a, 0x0e, 0x65, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x12, 0x05, 0x74, 0x79, 0x70, 0x65, 0x73, 0x22, 0xc6, 0x01, 0x0a, 0x0e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x19, 0x0a, 0x08, 0x6a, 0x6f, - 0x62, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6a, 0x6f, - 0x62, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x18, - 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, - 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x43, 0x6f, 0x6e, - 0x66, 0x69, 0x67, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, - 0x12, 0x23, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x65, - 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x53, - 0x65, 0x72, 0x76, 0x65, 0x72, 0x1a, 0x39, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x45, - 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, - 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, - 0x22, 0x3f, 0x0a, 0x0f, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, - 0x6e, 0x73, 0x65, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x65, - 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, - 0x72, 0x22, 0x43, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x6f, 0x75, 0x74, 0x70, - 0x75, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x6f, 0x75, 0x74, 0x70, 0x75, 0x74, - 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52, - 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x24, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x0c, - 0x0a, 0x01, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x01, 0x72, 0x32, 0x44, 0x0a, 0x08, - 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x6f, 0x72, 0x12, 0x38, 0x0a, 0x07, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x12, 0x15, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, - 0x75, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e, 0x74, 0x79, 0x70, - 0x65, 0x73, 0x2e, 0x45, 0x78, 0x65, 0x63, 0x75, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x32, 0x51, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x48, 0x65, 0x6c, 0x70, - 0x65, 0x72, 0x12, 0x41, 0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x12, 0x1a, 0x2e, 0x74, - 0x79, 0x70, 0x65, 0x73, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x74, 0x79, 0x70, 0x65, 0x73, - 0x2e, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2c, 0x5a, 0x2a, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, - 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x69, 0x73, 0x74, 0x72, 0x69, 0x62, 0x77, 0x6f, 0x72, 0x6b, 0x73, - 0x2f, 0x64, 0x6b, 0x72, 0x6f, 0x6e, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x74, 0x79, - 0x70, 0x65, 0x73, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, -} - -var ( - file_executor_proto_rawDescOnce sync.Once - file_executor_proto_rawDescData = file_executor_proto_rawDesc -) - -func file_executor_proto_rawDescGZIP() []byte { - file_executor_proto_rawDescOnce.Do(func() { - file_executor_proto_rawDescData = protoimpl.X.CompressGZIP(file_executor_proto_rawDescData) - }) - return file_executor_proto_rawDescData -} - -var file_executor_proto_msgTypes = make([]protoimpl.MessageInfo, 5) -var file_executor_proto_goTypes = []interface{}{ - (*ExecuteRequest)(nil), // 0: types.ExecuteRequest - (*ExecuteResponse)(nil), // 1: types.ExecuteResponse - (*StatusUpdateRequest)(nil), // 2: types.StatusUpdateRequest - (*StatusUpdateResponse)(nil), // 3: types.StatusUpdateResponse - nil, // 4: types.ExecuteRequest.ConfigEntry -} -var file_executor_proto_depIdxs = []int32{ - 4, // 0: types.ExecuteRequest.config:type_name -> types.ExecuteRequest.ConfigEntry - 0, // 1: types.Executor.Execute:input_type -> types.ExecuteRequest - 2, // 2: types.StatusHelper.Update:input_type -> types.StatusUpdateRequest - 1, // 3: types.Executor.Execute:output_type -> types.ExecuteResponse - 3, // 4: types.StatusHelper.Update:output_type -> types.StatusUpdateResponse - 3, // [3:5] is the sub-list for method output_type - 1, // [1:3] is the sub-list for method input_type - 1, // [1:1] is the sub-list for extension type_name - 1, // [1:1] is the sub-list for extension extendee - 0, // [0:1] is the sub-list for field type_name -} - -func init() { file_executor_proto_init() } -func file_executor_proto_init() { - if File_executor_proto != nil { - return - } - if !protoimpl.UnsafeEnabled { - file_executor_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_executor_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ExecuteResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_executor_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusUpdateRequest); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - file_executor_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*StatusUpdateResponse); i { - case 0: - return &v.state - case 1: - return &v.sizeCache - case 2: - return &v.unknownFields - default: - return nil - } - } - } - type x struct{} - out := protoimpl.TypeBuilder{ - File: protoimpl.DescBuilder{ - GoPackagePath: reflect.TypeOf(x{}).PkgPath(), - RawDescriptor: file_executor_proto_rawDesc, - NumEnums: 0, - NumMessages: 5, - NumExtensions: 0, - NumServices: 2, - }, - GoTypes: file_executor_proto_goTypes, - DependencyIndexes: file_executor_proto_depIdxs, - MessageInfos: file_executor_proto_msgTypes, - }.Build() - File_executor_proto = out.File - file_executor_proto_rawDesc = nil - file_executor_proto_goTypes = nil - file_executor_proto_depIdxs = nil -} diff --git a/types/executor_grpc.pb.go b/types/executor_grpc.pb.go deleted file mode 100644 index e6bcffed7..000000000 --- a/types/executor_grpc.pb.go +++ /dev/null @@ -1,191 +0,0 @@ -// Code generated by protoc-gen-go-grpc. DO NOT EDIT. -// versions: -// - protoc-gen-go-grpc v1.2.0 -// - protoc v3.19.3 -// source: executor.proto - -package types - -import ( - context "context" - grpc "google.golang.org/grpc" - codes "google.golang.org/grpc/codes" - status "google.golang.org/grpc/status" -) - -// This is a compile-time assertion to ensure that this generated file -// is compatible with the grpc package it is being compiled against. -// Requires gRPC-Go v1.32.0 or later. -const _ = grpc.SupportPackageIsVersion7 - -// ExecutorClient is the client API for Executor service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type ExecutorClient interface { - Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) -} - -type executorClient struct { - cc grpc.ClientConnInterface -} - -func NewExecutorClient(cc grpc.ClientConnInterface) ExecutorClient { - return &executorClient{cc} -} - -func (c *executorClient) Execute(ctx context.Context, in *ExecuteRequest, opts ...grpc.CallOption) (*ExecuteResponse, error) { - out := new(ExecuteResponse) - err := c.cc.Invoke(ctx, "/types.Executor/Execute", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// ExecutorServer is the server API for Executor service. -// All implementations must embed UnimplementedExecutorServer -// for forward compatibility -type ExecutorServer interface { - Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) - mustEmbedUnimplementedExecutorServer() -} - -// UnimplementedExecutorServer must be embedded to have forward compatible implementations. -type UnimplementedExecutorServer struct { -} - -func (UnimplementedExecutorServer) Execute(context.Context, *ExecuteRequest) (*ExecuteResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Execute not implemented") -} -func (UnimplementedExecutorServer) mustEmbedUnimplementedExecutorServer() {} - -// UnsafeExecutorServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to ExecutorServer will -// result in compilation errors. -type UnsafeExecutorServer interface { - mustEmbedUnimplementedExecutorServer() -} - -func RegisterExecutorServer(s grpc.ServiceRegistrar, srv ExecutorServer) { - s.RegisterService(&Executor_ServiceDesc, srv) -} - -func _Executor_Execute_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ExecuteRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(ExecutorServer).Execute(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/types.Executor/Execute", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(ExecutorServer).Execute(ctx, req.(*ExecuteRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// Executor_ServiceDesc is the grpc.ServiceDesc for Executor service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var Executor_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "types.Executor", - HandlerType: (*ExecutorServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Execute", - Handler: _Executor_Execute_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "executor.proto", -} - -// StatusHelperClient is the client API for StatusHelper service. -// -// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. -type StatusHelperClient interface { - Update(ctx context.Context, in *StatusUpdateRequest, opts ...grpc.CallOption) (*StatusUpdateResponse, error) -} - -type statusHelperClient struct { - cc grpc.ClientConnInterface -} - -func NewStatusHelperClient(cc grpc.ClientConnInterface) StatusHelperClient { - return &statusHelperClient{cc} -} - -func (c *statusHelperClient) Update(ctx context.Context, in *StatusUpdateRequest, opts ...grpc.CallOption) (*StatusUpdateResponse, error) { - out := new(StatusUpdateResponse) - err := c.cc.Invoke(ctx, "/types.StatusHelper/Update", in, out, opts...) - if err != nil { - return nil, err - } - return out, nil -} - -// StatusHelperServer is the server API for StatusHelper service. -// All implementations must embed UnimplementedStatusHelperServer -// for forward compatibility -type StatusHelperServer interface { - Update(context.Context, *StatusUpdateRequest) (*StatusUpdateResponse, error) - mustEmbedUnimplementedStatusHelperServer() -} - -// UnimplementedStatusHelperServer must be embedded to have forward compatible implementations. -type UnimplementedStatusHelperServer struct { -} - -func (UnimplementedStatusHelperServer) Update(context.Context, *StatusUpdateRequest) (*StatusUpdateResponse, error) { - return nil, status.Errorf(codes.Unimplemented, "method Update not implemented") -} -func (UnimplementedStatusHelperServer) mustEmbedUnimplementedStatusHelperServer() {} - -// UnsafeStatusHelperServer may be embedded to opt out of forward compatibility for this service. -// Use of this interface is not recommended, as added methods to StatusHelperServer will -// result in compilation errors. -type UnsafeStatusHelperServer interface { - mustEmbedUnimplementedStatusHelperServer() -} - -func RegisterStatusHelperServer(s grpc.ServiceRegistrar, srv StatusHelperServer) { - s.RegisterService(&StatusHelper_ServiceDesc, srv) -} - -func _StatusHelper_Update_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(StatusUpdateRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(StatusHelperServer).Update(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: "/types.StatusHelper/Update", - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(StatusHelperServer).Update(ctx, req.(*StatusUpdateRequest)) - } - return interceptor(ctx, in, info, handler) -} - -// StatusHelper_ServiceDesc is the grpc.ServiceDesc for StatusHelper service. -// It's only intended for direct use with grpc.RegisterService, -// and not to be introspected or modified (even as a copy) -var StatusHelper_ServiceDesc = grpc.ServiceDesc{ - ServiceName: "types.StatusHelper", - HandlerType: (*StatusHelperServer)(nil), - Methods: []grpc.MethodDesc{ - { - MethodName: "Update", - Handler: _StatusHelper_Update_Handler, - }, - }, - Streams: []grpc.StreamDesc{}, - Metadata: "executor.proto", -}