syntax = "proto3";

// If you make any changes make sure you run: make regenerate-proto

package gitlab.agent.runner_controller.rpc;

option go_package = "gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18/internal/module/runner_controller/rpc";

message AdmitJobRequest {
  bytes data = 1;
}

message AdmitJobResponse {
  bool admitted = 1;
}

service RunnerControllerService {
  rpc AdmitJob(stream AdmitJobResponse) returns (stream AdmitJobRequest) {}
}
