diff --git a/README.md b/README.md index 799836e..9290ff0 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ maek install ###Build and push your image to the location specified by `IMG`. make docker-build docker-push IMG=/slurm-agent-bridge-operator:tag ###Deploy the controller to the cluster with the image specified by `IMG`. -make deploy IMG=/slurm-agent-bridge-operator:tag +make manager IMG=/slurm-agent-bridge-operator:tag ``` 3. Build and install slurm agent on the slurm login node as a proxy between kubernetes and slurm cluster. diff --git a/apis/kubecluster.org/v1alpha1/affinity.go b/apis/kubecluster.org/v1alpha1/affinity.go index 1390028..5d648f6 100644 --- a/apis/kubecluster.org/v1alpha1/affinity.go +++ b/apis/kubecluster.org/v1alpha1/affinity.go @@ -38,10 +38,13 @@ var DefaultTolerations = []corev1.Toleration{ // Resources describes job resources which will be transformed into k8s pod affinity. type Resources struct { - Nodes int64 - MemPerNode int64 - CPUPerNode int64 - WallTime time.Duration + Nodes int64 + Array string `json:"array,omitempty"` + CpusPerTask int64 `json:"cpusPerTask,omitempty"` + Ntasks int64 `json:"ntasks,omitempty"` + NtasksPerNode int64 `json:"ntasksPerNode,omitempty"` + MemPerCpu int64 `json:"mem,omitempty"` + WallTime time.Duration } // AffinityForResources returns k8s affinity for requested resources diff --git a/apis/kubecluster.org/v1alpha1/slurmbridgejob_types.go b/apis/kubecluster.org/v1alpha1/slurmbridgejob_types.go index ff55cae..6b609d0 100644 --- a/apis/kubecluster.org/v1alpha1/slurmbridgejob_types.go +++ b/apis/kubecluster.org/v1alpha1/slurmbridgejob_types.go @@ -45,6 +45,15 @@ type SlurmBridgeJobSpec struct { RunAsUser *int64 `json:"runAsUser,omitempty"` RunAsGroup *int64 `json:"runAsGroup,omitempty"` + Array string `json:"array,omitempty"` + CpusPerTask int64 `json:"cpusPerTask,omitempty"` + Ntasks int64 `json:"ntasks,omitempty"` + NtasksPerNode int64 `json:"ntasksPerNode,omitempty"` + Nodes int64 `json:"nodes,omitempty"` + WorkingDir string `json:"workingDir,omitempty"` + MemPerCpu int64 `json:"memPerCpu,omitempty"` + Gres string `json:"gres,omitempty"` + Licenses string `json:"licenses,omitempty"` // Result may be specified for an optional result-fetcher collection step. // When specified, after job is completed all result-fetcher will be downloaded from Slurm // cluster with respect to this configuration. diff --git a/go.mod b/go.mod index d1eb8e2..dbe3674 100644 --- a/go.mod +++ b/go.mod @@ -25,6 +25,7 @@ require ( github.com/virtual-kubelet/virtual-kubelet v1.10.0 go.etcd.io/etcd/client/pkg/v3 v3.5.9 go.opencensus.io v0.24.0 + golang.org/x/sync v0.2.0 golang.org/x/sys v0.13.0 google.golang.org/grpc v1.55.0 google.golang.org/protobuf v1.31.0 @@ -128,7 +129,6 @@ require ( golang.org/x/mod v0.10.0 // indirect golang.org/x/net v0.17.0 // indirect golang.org/x/oauth2 v0.8.0 // indirect - golang.org/x/sync v0.2.0 // indirect golang.org/x/term v0.13.0 // indirect golang.org/x/text v0.13.0 // indirect golang.org/x/time v0.3.0 // indirect diff --git a/manifests/crd/bases/kubecluster.org_slurmbridgejobs.yaml b/manifests/crd/bases/kubecluster.org_slurmbridgejobs.yaml index e672908..4439647 100644 --- a/manifests/crd/bases/kubecluster.org_slurmbridgejobs.yaml +++ b/manifests/crd/bases/kubecluster.org_slurmbridgejobs.yaml @@ -44,6 +44,27 @@ spec: spec: description: SlurmBridgeJobSpec defines the desired state of SlurmBridgeJob properties: + array: + type: string + cpusPerTask: + format: int64 + type: integer + gres: + type: string + licenses: + type: string + memPerCpu: + format: int64 + type: integer + nodes: + format: int64 + type: integer + ntasks: + format: int64 + type: integer + ntasksPerNode: + format: int64 + type: integer partition: type: string result: @@ -1646,6 +1667,8 @@ spec: type: integer sbatchScript: type: string + workingDir: + type: string required: - partition - sbatchScript diff --git a/manifests/default/kustomization.yaml b/manifests/default/kustomization.yaml index 27156a8..9e93198 100644 --- a/manifests/default/kustomization.yaml +++ b/manifests/default/kustomization.yaml @@ -1,12 +1,12 @@ # Adds namespace to all resources. -namespace: slurm-agent-bridge-operator-system +namespace: slurm-bridge-operator-system # Value of this field is prepended to the # names of all resources, e.g. a deployment named # "wordpress" becomes "alices-wordpress". # Note that it should also match with the prefix (text before '-') of the namespace # field above. -namePrefix: slurm-agent-bridge-operator- +namePrefix: slurm-bridge-operator- # Labels to add to all resources and selectors. #labels: @@ -18,6 +18,7 @@ resources: - ../crd - ../rbac - ../manager +- ../deploy # [WEBHOOK] To enable webhook, uncomment all the sections with [WEBHOOK] prefix including the one in # crd/kustomization.yaml #- ../webhook diff --git a/manifests/deploy/configurator-role.yaml b/manifests/deploy/configurator-role.yaml new file mode 100644 index 0000000..6899c6f --- /dev/null +++ b/manifests/deploy/configurator-role.yaml @@ -0,0 +1,30 @@ +--- +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRole +metadata: + name: configurator-role +rules: +- apiGroups: + - "" + resources: + - events + verbs: + - create + - delete + - get + - list + - patch + - update + - watch +- apiGroups: + - "" + resources: + - pods + verbs: + - create + - delete + - get + - list + - patch + - update + - watch diff --git a/manifests/deploy/configurator-role_binding.yaml b/manifests/deploy/configurator-role_binding.yaml new file mode 100644 index 0000000..ad19151 --- /dev/null +++ b/manifests/deploy/configurator-role_binding.yaml @@ -0,0 +1,19 @@ +apiVersion: rbac.authorization.k8s.io/v1 +kind: ClusterRoleBinding +metadata: + labels: + app.kubernetes.io/name: clusterrolebinding + app.kubernetes.io/instance: configurator-rolebinding + app.kubernetes.io/component: rbac + app.kubernetes.io/created-by: slurm-agent-bridge-operator + app.kubernetes.io/part-of: slurm-agent-bridge-operator + app.kubernetes.io/managed-by: kustomize + name: configurator-rolebinding +roleRef: + apiGroup: rbac.authorization.k8s.io + kind: ClusterRole + name: configurator-role +subjects: +- kind: ServiceAccount + name: configurator + namespace: system diff --git a/manifests/deploy/configurator-service-account.yaml b/manifests/deploy/configurator-service-account.yaml new file mode 100644 index 0000000..f7e815d --- /dev/null +++ b/manifests/deploy/configurator-service-account.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + labels: + app.kubernetes.io/name: serviceaccount + app.kubernetes.io/instance: configurator-sa + app.kubernetes.io/component: rbac + app.kubernetes.io/created-by: slurm-agent-bridge-operator + app.kubernetes.io/part-of: slurm-agent-bridge-operator + app.kubernetes.io/managed-by: kustomize + name: configurator + namespace: system diff --git a/manifests/deploy/configurator.yaml b/manifests/deploy/configurator.yaml new file mode 100644 index 0000000..d54ce13 --- /dev/null +++ b/manifests/deploy/configurator.yaml @@ -0,0 +1,60 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: configurator + namespace: system + labels: + control-plane: configurator + app.kubernetes.io/name: deployment + app.kubernetes.io/instance: controller-manager + app.kubernetes.io/component: manager + app.kubernetes.io/created-by: slurm-agent-bridge-operator + app.kubernetes.io/part-of: slurm-agent-bridge-operator + app.kubernetes.io/managed-by: kustomize +spec: + selector: + matchLabels: + control-plane: controller-manager + replicas: 1 + template: + metadata: + annotations: + kubectl.kubernetes.io/default-container: manager + labels: + control-plane: controller-manager + spec: + securityContext: + runAsNonRoot: true + containers: + - command: + - /configurator + args: + - --endpoint 47.74.15.157 + image: configurator:latest + name: configurator + securityContext: + allowPrivilegeEscalation: false + capabilities: + drop: + - "ALL" + livenessProbe: + httpGet: + path: /healthz + port: 8081 + initialDelaySeconds: 15 + periodSeconds: 20 + readinessProbe: + httpGet: + path: /readyz + port: 8081 + initialDelaySeconds: 5 + periodSeconds: 10 + resources: + limits: + cpu: 500m + memory: 128Mi + requests: + cpu: 10m + memory: 64Mi + serviceAccountName: configurator + terminationGracePeriodSeconds: 10 diff --git a/manifests/deploy/install_slurm_agent.sh b/manifests/deploy/install_slurm_agent.sh new file mode 100644 index 0000000..8e22126 --- /dev/null +++ b/manifests/deploy/install_slurm_agent.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +export GOPATH=${HOME}/go +export PATH=${PATH}:/usr/local/go/bin:${GOPATH}/bin + +go build -o bin/slurm-agent cmd/slurm-agent/slurm-agent.go +cp bin/slurm-agent /usr/local/bin/slurm-agent + +sudo mkdir -p /var/run/slurm-agent + +sudo sh -c 'cat > /etc/systemd/system/slurm-agent.service < 0 { + resources.Nodes = spec.Nodes + } + if spec.CpusPerTask > 0 { + resources.CpusPerTask = spec.CpusPerTask + } + if spec.MemPerCpu > 0 { + resources.MemPerCpu = spec.MemPerCpu + } + if spec.NtasksPerNode > 0 { + resources.NtasksPerNode = spec.NtasksPerNode + } + if len(spec.Array) > 0 { + resources.Array = spec.Array + } + + if spec.Ntasks > 0 { + resources.Ntasks = spec.Ntasks + } + + var cpuCount int64 + if resources.Ntasks > 0 { + cpuCount = resources.CpusPerTask * resources.Ntasks + } else if resources.NtasksPerNode > 0 { + cpuCount = resources.CpusPerTask * resources.NtasksPerNode * resources.Nodes + } + + if len(resources.Array) > 0 { + arrayLen := parseArrayLen(resources.Array) + cpuCount *= arrayLen + } + + resourceList := corev1.ResourceList{} + resourceList[corev1.ResourceCPU] = resource.MustParse(strconv.Itoa(int(cpuCount))) + resourceList[corev1.ResourceMemory] = resource.MustParse(strconv.Itoa(int(cpuCount * resources.MemPerCpu * 1024 * 1024))) + return resourceList +} + +func (r *SlurmBridgeJobReconciler) getResourceRequestLabelsForPod(spec v1alpha1.SlurmBridgeJobSpec) map[string]string { + labels := make(map[string]string) + + if spec.Nodes > 0 { + labels[common.LabelsResourceRequestNodes] = strconv.Itoa(int(spec.Nodes)) + } + if spec.CpusPerTask > 0 { + labels[common.LabelsResourceRequestCpusPerTask] = strconv.Itoa(int(spec.CpusPerTask)) + } + if spec.MemPerCpu > 0 { + labels[common.LabelsResourceRequestMemPerCpu] = strconv.Itoa(int(spec.MemPerCpu)) + } + if spec.NtasksPerNode > 0 { + labels[common.LabelsResourceRequestNTasksPerNode] = strconv.Itoa(int(spec.NtasksPerNode)) + } + if len(spec.Array) > 0 { + labels[common.LabelsResourceRequestArray] = spec.Array + } + if spec.Ntasks > 0 { + labels[common.LabelsResourceRequestNTasks] = strconv.Itoa(int(spec.Ntasks)) + } + + return labels +} + func isFinishedFetchResult(status string) bool { return status == string(corev1.PodFailed) || status == string(corev1.PodSucceeded) } diff --git a/pkg/slurm-agent/api/slurm.go b/pkg/slurm-agent/api/slurm.go index e25672d..068b7d3 100644 --- a/pkg/slurm-agent/api/slurm.go +++ b/pkg/slurm-agent/api/slurm.go @@ -91,10 +91,16 @@ func (s *Slurm) SubmitJob(ctx context.Context, req *workload.SubmitJobRequest) ( value, ok := s.knownJobs.Load(req.Uid) if !ok { id, err := s.client.SBatch(&slurm_agent.SbatchRequest{ - Script: req.Script, - Partition: req.Partition, - RunAsUser: req.RunAsUser, - RunAsGroup: req.RunAsGroup, + Script: req.Script, + Partition: req.Partition, + RunAsUser: req.RunAsUser, + RunAsGroup: req.RunAsGroup, + CpufsPerTask: req.CpufsPerTask, + MemPerCpu: req.MemPerCpu, + NtasksPerNode: req.NtasksPerNode, + Array: req.Array, + Ntasks: req.Ntasks, + Nodes: req.Nodes, }) if err != nil { return nil, errors.Wrap(err, "could not submit sbatch script") diff --git a/pkg/slurm-agent/slurm.go b/pkg/slurm-agent/slurm.go index b98f45e..dfbd59b 100644 --- a/pkg/slurm-agent/slurm.go +++ b/pkg/slurm-agent/slurm.go @@ -149,15 +149,21 @@ type SbatchRequest struct { // Bash script that will be submitted to a workload manager. Script string `protobuf:"bytes,1,opt,name=script,proto3" json:"script,omitempty"` // Partition where job should be submitted. - Partition string `protobuf:"bytes,2,opt,name=partition,proto3" json:"partition,omitempty"` - RunAsUser string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"` - RunAsGroup string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsGroup,proto3" json:"run_as_group,omitempty"` + Partition string `protobuf:"bytes,2,opt,name=partition,proto3" json:"partition,omitempty"` + RunAsUser string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"` + RunAsGroup string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsGroup,proto3" json:"run_as_group,omitempty"` + CpufsPerTask int64 `protobuf:"varint,7,opt,name=cpufs_per_task,json=cpufsPerTask,proto3" json:"cpufs_per_task,omitempty"` + MemPerCpu int64 `protobuf:"varint,8,opt,name=mem_per_cpu,json=memPerCpu,proto3" json:"mem_per_cpu,omitempty"` + NtasksPerNode int64 `protobuf:"varint,9,opt,name=ntasks_per_node,json=ntasksPerNode,proto3" json:"ntasks_per_node,omitempty"` + Array string `protobuf:"bytes,10,opt,name=array,proto3" json:"array,omitempty"` + Ntasks int64 `protobuf:"varint,11,opt,name=ntasks,proto3" json:"ntasks,omitempty"` + Nodes int64 `protobuf:"varint,12,opt,name=nodes,proto3" json:"nodes,omitempty"` } // SBatch submits batch job and returns job id if succeeded. func (*Client) SBatch(req *SbatchRequest) (int64, error) { - opt := getSbatchOpt(req) - cmd := exec.Command(sbatchBinaryName, "--parsable", opt) + opts := getSbatchOpts(req) + cmd := exec.Command(sbatchBinaryName, opts...) cmd.Stdin = bytes.NewBufferString(req.Script) out, err := cmd.CombinedOutput() @@ -176,18 +182,37 @@ func (*Client) SBatch(req *SbatchRequest) (int64, error) { return int64(id), nil } -func getSbatchOpt(req *SbatchRequest) string { - var partitionOpt string +func getSbatchOpts(req *SbatchRequest) []string { + var opts []string + opts = append(opts, "--parsable") if req.Partition != "" { - partitionOpt = "--partition=" + req.Partition + opts = append(opts, "--partition="+req.Partition) } if req.RunAsUser != "" { - partitionOpt = "--uid=" + req.RunAsUser + opts = append(opts, "--uid="+req.RunAsUser) } if req.RunAsGroup != "" { - partitionOpt = "--gid=" + req.RunAsGroup + opts = append(opts, "--gid="+req.RunAsGroup) } - return partitionOpt + if req.Array != "" { + opts = append(opts, "--array="+req.Array) + } + if req.CpufsPerTask > 0 { + opts = append(opts, "--cpus-per-task="+strconv.Itoa(int(req.CpufsPerTask))) + } + if req.MemPerCpu > 0 { + opts = append(opts, "--mem-per-cpu="+strconv.Itoa(int(req.MemPerCpu))) + } + if req.Nodes > 0 { + opts = append(opts, "--nodes="+strconv.Itoa(int(req.Nodes))) + } + if req.Ntasks > 0 { + opts = append(opts, "--ntasks="+strconv.Itoa(int(req.Ntasks))) + } + if req.NtasksPerNode > 0 { + opts = append(opts, "--ntasks-per-node="+strconv.Itoa(int(req.NtasksPerNode))) + } + return opts } // SCancel cancels batch job. diff --git a/pkg/slurm-virtual-kubelet/provider.go b/pkg/slurm-virtual-kubelet/provider.go index 5703bb6..c73af8c 100644 --- a/pkg/slurm-virtual-kubelet/provider.go +++ b/pkg/slurm-virtual-kubelet/provider.go @@ -45,19 +45,12 @@ func (s *SlurmVirtualKubeletProvider) CreatePod(ctx context.Context, pod *v1.Pod return err } - submitRequest := &workload.SubmitJobRequest{ - Uid: string(pod.GetUID()), - Partition: s.vk.KubeletServer.SlurmPartition, - } - if pod.Spec.Containers[0].SecurityContext != nil && pod.Spec.Containers[0].SecurityContext.RunAsUser != nil { - submitRequest.RunAsUser = strconv.FormatInt(*pod.Spec.Containers[0].SecurityContext.RunAsUser, 10) - } - submitRequest.Script = pod.Spec.Containers[0].Command[0] - + submitRequest := s.newSubmitRequestForPod(pod) submitJobResp, err := s.vk.SlurmClient.SubmitJob(ctx, submitRequest) if err != nil { return err } + s.vk.recorder.Eventf(pod, v1.EventTypeNormal, common.NewReason(v1alpha1.SlurmBridgeJobKind, common.SlurmBridgeJobCreatedReason), "SlurmBridgeJob submit to the slurm-agent %s, job id is %d", s.vk.KubeletServer.AgentEndpoint, submitJobResp.JobId) s.knownPods.Store(pod.UID, strconv.FormatInt(submitJobResp.GetJobId(), 10)) @@ -66,6 +59,69 @@ func (s *SlurmVirtualKubeletProvider) CreatePod(ctx context.Context, pod *v1.Pod return nil } +func (s *SlurmVirtualKubeletProvider) newSubmitRequestForPod(pod *v1.Pod) *workload.SubmitJobRequest { + submitRequest := &workload.SubmitJobRequest{ + Uid: string(pod.GetUID()), + Partition: s.vk.KubeletServer.SlurmPartition, + } + if pod.Spec.Containers[0].SecurityContext != nil && pod.Spec.Containers[0].SecurityContext.RunAsUser != nil { + submitRequest.RunAsUser = strconv.FormatInt(*pod.Spec.Containers[0].SecurityContext.RunAsUser, 10) + } + submitRequest.Script = pod.Spec.Containers[0].Command[0] + + labels := pod.GetLabels() + nodes, ok := labels[common.LabelsResourceRequestNodes] + if ok { + parseInt, err := strconv.ParseInt(nodes, 10, 64) + if err != nil { + klog.Errorf("Failed to Parse nodes for %/%s", pod.GetNamespace(), pod.GetName()) + } else { + submitRequest.Nodes = parseInt + } + } + cpusPerTask, ok := labels[common.LabelsResourceRequestCpusPerTask] + if ok { + parseInt, err := strconv.ParseInt(cpusPerTask, 10, 64) + if err != nil { + klog.Errorf("Failed to Parse cpusPerTask for %/%s", pod.GetNamespace(), pod.GetName()) + } else { + submitRequest.CpufsPerTask = parseInt + } + } + memPerCpu, ok := labels[common.LabelsResourceRequestMemPerCpu] + if ok { + parseInt, err := strconv.ParseInt(memPerCpu, 10, 64) + if err != nil { + klog.Errorf("Failed to Parse memPerCpu for %/%s", pod.GetNamespace(), pod.GetName()) + } else { + submitRequest.MemPerCpu = parseInt + } + } + ntasksPerNode, ok := labels[common.LabelsResourceRequestNTasksPerNode] + if ok { + parseInt, err := strconv.ParseInt(ntasksPerNode, 10, 64) + if err != nil { + klog.Errorf("Failed to Parse ntasksPerNode for %/%s", pod.GetNamespace(), pod.GetName()) + } else { + submitRequest.NtasksPerNode = parseInt + } + } + array, ok := labels[common.LabelsResourceRequestArray] + if ok { + submitRequest.Array = array + } + ntasks, ok := labels[common.LabelsResourceRequestNTasks] + if ok { + parseInt, err := strconv.ParseInt(ntasks, 10, 64) + if err != nil { + klog.Errorf("Failed to Parse ntasks for %/%s", pod.GetNamespace(), pod.GetName()) + } else { + submitRequest.Ntasks = parseInt + } + } + return submitRequest +} + func needReconcile(pod *v1.Pod) bool { if pod != nil && pod.OwnerReferences != nil && len(pod.OwnerReferences) != 0 && pod.OwnerReferences[0].Kind == "DaemonSet" { return false @@ -249,9 +305,79 @@ func (s *SlurmVirtualKubeletProvider) AttachToContainer(ctx context.Context, nam } func (s *SlurmVirtualKubeletProvider) GetStatsSummary(ctx context.Context) (*statsv1alpha1.Summary, error) { + //pods, err := s.GetPods(ctx) + //if err != nil { + // return nil, err + //} + // + //var errGroup errgroup.Group + // + //end := time.Now() + //start := end.Add(-1 * time.Minute) + //chResult := make(chan statsv1alpha1.PodStats, len(pods)) + //sema := make(chan struct{}, 10) + //for _, pod := range pods { + // if pod.Status.Phase != v1.PodRunning { + // continue + // } + // pod := pod + // errGroup.Go(func() error { + // select { + // case <-ctx.Done(): + // return ctx.Err() + // case sema <- struct{}{}: + // } + // defer func() { + // <-sema + // }() + // + // klog.Infof("Acquired semaphore") + // jobId := s.getSlurmJobId(pod) + // if jobId == "" { + // klog.Warningf("Failed to get pod %s/%s job id", pod.GetNamespace(), pod.GetName()) + // return nil + // } + // + // jobIdInt, err := strconv.ParseInt(jobId, 10, 64) + // if err != nil { + // klog.Error(err) + // return nil + // } + // jobStateInfo, err := s.vk.SlurmClient.JobState(ctx, &workload.JobStateRequest{JobId: jobIdInt}) + // if err != nil { + // klog.Error(err) + // return nil + // } + // + // chResult <- collectMetrics(pod, jobStateInfo) + // return nil + // }) + //} + // + //if err := errGroup.Wait(); err != nil { + // span.SetStatus(err) + // return nil, errors.Wrap(err, "error in request to fetch container group metrics") + //} + //close(chResult) + //log.G(ctx).Debugf("Collected status from azure for %d pods", len(pods)) + // + //var s stats.Summary + //s.Node = stats.NodeStats{ + // NodeName: p.nodeName, + //} + //s.Pods = make([]stats.PodStats, 0, len(chResult)) + // + //for stat := range chResult { + // s.Pods = append(s.Pods, stat) + //} + return nil, nil } +func collectMetrics(pod *v1.Pod, info *workload.JobStepsResponse) statsv1alpha1.PodStats { + +} + func (s *SlurmVirtualKubeletProvider) GetMetricsResource(ctx context.Context) ([]*io_prometheus_client.MetricFamily, error) { return nil, nil } diff --git a/pkg/workload/workload.pb.go b/pkg/workload/workload.pb.go index afc46d0..aa2b930 100644 --- a/pkg/workload/workload.pb.go +++ b/pkg/workload/workload.pb.go @@ -153,10 +153,16 @@ type SubmitJobRequest struct { // Partition where job should be submitted. Partition string `protobuf:"bytes,2,opt,name=partition,proto3" json:"partition,omitempty"` // ID of a client who submitted this job. - ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` - RunAsUser string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"` - RunAsGroup string `protobuf:"bytes,5,opt,name=run_as_group,json=runAsGroup,proto3" json:"run_as_group,omitempty"` - Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"` + ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"` + RunAsUser string `protobuf:"bytes,4,opt,name=run_as_user,json=runAsUser,proto3" json:"run_as_user,omitempty"` + RunAsGroup string `protobuf:"bytes,5,opt,name=run_as_group,json=runAsGroup,proto3" json:"run_as_group,omitempty"` + Uid string `protobuf:"bytes,6,opt,name=uid,proto3" json:"uid,omitempty"` + CpufsPerTask int64 `protobuf:"varint,7,opt,name=cpufs_per_task,json=cpufsPerTask,proto3" json:"cpufs_per_task,omitempty"` + MemPerCpu int64 `protobuf:"varint,8,opt,name=mem_per_cpu,json=memPerCpu,proto3" json:"mem_per_cpu,omitempty"` + NtasksPerNode int64 `protobuf:"varint,9,opt,name=ntasks_per_node,json=ntasksPerNode,proto3" json:"ntasks_per_node,omitempty"` + Array string `protobuf:"bytes,10,opt,name=array,proto3" json:"array,omitempty"` + Ntasks int64 `protobuf:"varint,11,opt,name=ntasks,proto3" json:"ntasks,omitempty"` + Nodes int64 `protobuf:"varint,12,opt,name=nodes,proto3" json:"nodes,omitempty"` } func (x *SubmitJobRequest) Reset() { @@ -233,6 +239,48 @@ func (x *SubmitJobRequest) GetUid() string { return "" } +func (x *SubmitJobRequest) GetCpufsPerTask() int64 { + if x != nil { + return x.CpufsPerTask + } + return 0 +} + +func (x *SubmitJobRequest) GetMemPerCpu() int64 { + if x != nil { + return x.MemPerCpu + } + return 0 +} + +func (x *SubmitJobRequest) GetNtasksPerNode() int64 { + if x != nil { + return x.NtasksPerNode + } + return 0 +} + +func (x *SubmitJobRequest) GetArray() string { + if x != nil { + return x.Array + } + return "" +} + +func (x *SubmitJobRequest) GetNtasks() int64 { + if x != nil { + return x.Ntasks + } + return 0 +} + +func (x *SubmitJobRequest) GetNodes() int64 { + if x != nil { + return x.Nodes + } + return 0 +} + type SubmitJobResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -511,6 +559,54 @@ func (x *JobStepsRequest) GetJobId() int64 { return 0 } +type JobStateRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // ID of a job to fetch steps of. + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *JobStateRequest) Reset() { + *x = JobStateRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_pkg_workload_workload_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStateRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStateRequest) ProtoMessage() {} + +func (x *JobStateRequest) ProtoReflect() protoreflect.Message { + mi := &file_pkg_workload_workload_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 JobStateRequest.ProtoReflect.Descriptor instead. +func (*JobStateRequest) Descriptor() ([]byte, []int) { + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{7} +} + +func (x *JobStateRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + type JobStepsResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -523,7 +619,7 @@ type JobStepsResponse struct { func (x *JobStepsResponse) Reset() { *x = JobStepsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[7] + mi := &file_pkg_workload_workload_proto_msgTypes[8] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -536,7 +632,7 @@ func (x *JobStepsResponse) String() string { func (*JobStepsResponse) ProtoMessage() {} func (x *JobStepsResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[7] + mi := &file_pkg_workload_workload_proto_msgTypes[8] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -549,7 +645,7 @@ func (x *JobStepsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use JobStepsResponse.ProtoReflect.Descriptor instead. func (*JobStepsResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{7} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{8} } func (x *JobStepsResponse) GetJobSteps() []*JobStepInfo { @@ -559,6 +655,54 @@ func (x *JobStepsResponse) GetJobSteps() []*JobStepInfo { return nil } +type JobStateResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Job steps information. + JobStates []*JobStateInfo `protobuf:"bytes,1,rep,name=job_states,json=jobStates,proto3" json:"job_states,omitempty"` +} + +func (x *JobStateResponse) Reset() { + *x = JobStateResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_pkg_workload_workload_proto_msgTypes[9] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStateResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStateResponse) ProtoMessage() {} + +func (x *JobStateResponse) ProtoReflect() protoreflect.Message { + mi := &file_pkg_workload_workload_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 JobStateResponse.ProtoReflect.Descriptor instead. +func (*JobStateResponse) Descriptor() ([]byte, []int) { + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{9} +} + +func (x *JobStateResponse) GetJobStates() []*JobStateInfo { + if x != nil { + return x.JobStates + } + return nil +} + type OpenFileRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -571,7 +715,7 @@ type OpenFileRequest struct { func (x *OpenFileRequest) Reset() { *x = OpenFileRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[8] + mi := &file_pkg_workload_workload_proto_msgTypes[10] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -584,7 +728,7 @@ func (x *OpenFileRequest) String() string { func (*OpenFileRequest) ProtoMessage() {} func (x *OpenFileRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[8] + mi := &file_pkg_workload_workload_proto_msgTypes[10] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -597,7 +741,7 @@ func (x *OpenFileRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use OpenFileRequest.ProtoReflect.Descriptor instead. func (*OpenFileRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{8} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{10} } func (x *OpenFileRequest) GetPath() string { @@ -619,7 +763,7 @@ type ResourcesRequest struct { func (x *ResourcesRequest) Reset() { *x = ResourcesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[9] + mi := &file_pkg_workload_workload_proto_msgTypes[11] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -632,7 +776,7 @@ func (x *ResourcesRequest) String() string { func (*ResourcesRequest) ProtoMessage() {} func (x *ResourcesRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[9] + mi := &file_pkg_workload_workload_proto_msgTypes[11] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -645,7 +789,7 @@ func (x *ResourcesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use ResourcesRequest.ProtoReflect.Descriptor instead. func (*ResourcesRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{9} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{11} } func (x *ResourcesRequest) GetPartition() string { @@ -675,7 +819,7 @@ type ResourcesResponse struct { func (x *ResourcesResponse) Reset() { *x = ResourcesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[10] + mi := &file_pkg_workload_workload_proto_msgTypes[12] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -688,7 +832,7 @@ func (x *ResourcesResponse) String() string { func (*ResourcesResponse) ProtoMessage() {} func (x *ResourcesResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[10] + mi := &file_pkg_workload_workload_proto_msgTypes[12] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -701,7 +845,7 @@ func (x *ResourcesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use ResourcesResponse.ProtoReflect.Descriptor instead. func (*ResourcesResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{10} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{12} } func (x *ResourcesResponse) GetNodes() int64 { @@ -748,7 +892,7 @@ type PartitionsRequest struct { func (x *PartitionsRequest) Reset() { *x = PartitionsRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[11] + mi := &file_pkg_workload_workload_proto_msgTypes[13] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -761,7 +905,7 @@ func (x *PartitionsRequest) String() string { func (*PartitionsRequest) ProtoMessage() {} func (x *PartitionsRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[11] + mi := &file_pkg_workload_workload_proto_msgTypes[13] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -774,7 +918,7 @@ func (x *PartitionsRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PartitionsRequest.ProtoReflect.Descriptor instead. func (*PartitionsRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{11} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{13} } type PartitionsResponse struct { @@ -788,7 +932,7 @@ type PartitionsResponse struct { func (x *PartitionsResponse) Reset() { *x = PartitionsResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[12] + mi := &file_pkg_workload_workload_proto_msgTypes[14] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -801,7 +945,7 @@ func (x *PartitionsResponse) String() string { func (*PartitionsResponse) ProtoMessage() {} func (x *PartitionsResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[12] + mi := &file_pkg_workload_workload_proto_msgTypes[14] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -814,7 +958,7 @@ func (x *PartitionsResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PartitionsResponse.ProtoReflect.Descriptor instead. func (*PartitionsResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{12} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{14} } func (x *PartitionsResponse) GetPartition() []string { @@ -835,7 +979,7 @@ type NodesRequest struct { func (x *NodesRequest) Reset() { *x = NodesRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[13] + mi := &file_pkg_workload_workload_proto_msgTypes[15] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -848,7 +992,7 @@ func (x *NodesRequest) String() string { func (*NodesRequest) ProtoMessage() {} func (x *NodesRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[13] + mi := &file_pkg_workload_workload_proto_msgTypes[15] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -861,7 +1005,7 @@ func (x *NodesRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use NodesRequest.ProtoReflect.Descriptor instead. func (*NodesRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{13} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{15} } func (x *NodesRequest) GetNodes() []string { @@ -882,7 +1026,7 @@ type NodesResponse struct { func (x *NodesResponse) Reset() { *x = NodesResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[14] + mi := &file_pkg_workload_workload_proto_msgTypes[16] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -895,7 +1039,7 @@ func (x *NodesResponse) String() string { func (*NodesResponse) ProtoMessage() {} func (x *NodesResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[14] + mi := &file_pkg_workload_workload_proto_msgTypes[16] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -908,7 +1052,7 @@ func (x *NodesResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use NodesResponse.ProtoReflect.Descriptor instead. func (*NodesResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{14} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{16} } func (x *NodesResponse) GetNodes() []*Node { @@ -935,7 +1079,7 @@ type Node struct { func (x *Node) Reset() { *x = Node{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[15] + mi := &file_pkg_workload_workload_proto_msgTypes[17] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -948,7 +1092,7 @@ func (x *Node) String() string { func (*Node) ProtoMessage() {} func (x *Node) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[15] + mi := &file_pkg_workload_workload_proto_msgTypes[17] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -961,7 +1105,7 @@ func (x *Node) ProtoReflect() protoreflect.Message { // Deprecated: Use Node.ProtoReflect.Descriptor instead. func (*Node) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{15} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{17} } func (x *Node) GetCpus() int64 { @@ -1024,7 +1168,7 @@ type PartitionRequest struct { func (x *PartitionRequest) Reset() { *x = PartitionRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[16] + mi := &file_pkg_workload_workload_proto_msgTypes[18] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1037,7 +1181,7 @@ func (x *PartitionRequest) String() string { func (*PartitionRequest) ProtoMessage() {} func (x *PartitionRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[16] + mi := &file_pkg_workload_workload_proto_msgTypes[18] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1050,7 +1194,7 @@ func (x *PartitionRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use PartitionRequest.ProtoReflect.Descriptor instead. func (*PartitionRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{16} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{18} } func (x *PartitionRequest) GetPartition() string { @@ -1071,7 +1215,7 @@ type PartitionResponse struct { func (x *PartitionResponse) Reset() { *x = PartitionResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[17] + mi := &file_pkg_workload_workload_proto_msgTypes[19] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1084,7 +1228,7 @@ func (x *PartitionResponse) String() string { func (*PartitionResponse) ProtoMessage() {} func (x *PartitionResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[17] + mi := &file_pkg_workload_workload_proto_msgTypes[19] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1097,7 +1241,7 @@ func (x *PartitionResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use PartitionResponse.ProtoReflect.Descriptor instead. func (*PartitionResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{17} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{19} } func (x *PartitionResponse) GetNodes() []string { @@ -1116,7 +1260,7 @@ type WorkloadInfoRequest struct { func (x *WorkloadInfoRequest) Reset() { *x = WorkloadInfoRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[18] + mi := &file_pkg_workload_workload_proto_msgTypes[20] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1129,7 +1273,7 @@ func (x *WorkloadInfoRequest) String() string { func (*WorkloadInfoRequest) ProtoMessage() {} func (x *WorkloadInfoRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[18] + mi := &file_pkg_workload_workload_proto_msgTypes[20] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1142,7 +1286,7 @@ func (x *WorkloadInfoRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkloadInfoRequest.ProtoReflect.Descriptor instead. func (*WorkloadInfoRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{18} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{20} } type WorkloadInfoResponse struct { @@ -1158,7 +1302,7 @@ type WorkloadInfoResponse struct { func (x *WorkloadInfoResponse) Reset() { *x = WorkloadInfoResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[19] + mi := &file_pkg_workload_workload_proto_msgTypes[21] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1171,7 +1315,7 @@ func (x *WorkloadInfoResponse) String() string { func (*WorkloadInfoResponse) ProtoMessage() {} func (x *WorkloadInfoResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[19] + mi := &file_pkg_workload_workload_proto_msgTypes[21] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1184,7 +1328,7 @@ func (x *WorkloadInfoResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use WorkloadInfoResponse.ProtoReflect.Descriptor instead. func (*WorkloadInfoResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{19} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{21} } func (x *WorkloadInfoResponse) GetName() string { @@ -1233,7 +1377,7 @@ type SubmitJobContainerRequest struct { func (x *SubmitJobContainerRequest) Reset() { *x = SubmitJobContainerRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[20] + mi := &file_pkg_workload_workload_proto_msgTypes[22] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1246,7 +1390,7 @@ func (x *SubmitJobContainerRequest) String() string { func (*SubmitJobContainerRequest) ProtoMessage() {} func (x *SubmitJobContainerRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[20] + mi := &file_pkg_workload_workload_proto_msgTypes[22] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1259,7 +1403,7 @@ func (x *SubmitJobContainerRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitJobContainerRequest.ProtoReflect.Descriptor instead. func (*SubmitJobContainerRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{20} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{22} } func (x *SubmitJobContainerRequest) GetImageName() string { @@ -1338,7 +1482,7 @@ type SingularityOptions struct { func (x *SingularityOptions) Reset() { *x = SingularityOptions{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[21] + mi := &file_pkg_workload_workload_proto_msgTypes[23] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1351,7 +1495,7 @@ func (x *SingularityOptions) String() string { func (*SingularityOptions) ProtoMessage() {} func (x *SingularityOptions) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[21] + mi := &file_pkg_workload_workload_proto_msgTypes[23] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1364,7 +1508,7 @@ func (x *SingularityOptions) ProtoReflect() protoreflect.Message { // Deprecated: Use SingularityOptions.ProtoReflect.Descriptor instead. func (*SingularityOptions) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{21} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{23} } func (x *SingularityOptions) GetApp() string { @@ -1449,7 +1593,7 @@ type SubmitJobContainerResponse struct { func (x *SubmitJobContainerResponse) Reset() { *x = SubmitJobContainerResponse{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[22] + mi := &file_pkg_workload_workload_proto_msgTypes[24] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1462,7 +1606,7 @@ func (x *SubmitJobContainerResponse) String() string { func (*SubmitJobContainerResponse) ProtoMessage() {} func (x *SubmitJobContainerResponse) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[22] + mi := &file_pkg_workload_workload_proto_msgTypes[24] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1475,7 +1619,7 @@ func (x *SubmitJobContainerResponse) ProtoReflect() protoreflect.Message { // Deprecated: Use SubmitJobContainerResponse.ProtoReflect.Descriptor instead. func (*SubmitJobContainerResponse) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{22} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{24} } func (x *SubmitJobContainerResponse) GetJobId() int64 { @@ -1498,7 +1642,7 @@ type TailFileRequest struct { func (x *TailFileRequest) Reset() { *x = TailFileRequest{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[23] + mi := &file_pkg_workload_workload_proto_msgTypes[25] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1511,7 +1655,7 @@ func (x *TailFileRequest) String() string { func (*TailFileRequest) ProtoMessage() {} func (x *TailFileRequest) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[23] + mi := &file_pkg_workload_workload_proto_msgTypes[25] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1524,7 +1668,7 @@ func (x *TailFileRequest) ProtoReflect() protoreflect.Message { // Deprecated: Use TailFileRequest.ProtoReflect.Descriptor instead. func (*TailFileRequest) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{23} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{25} } func (x *TailFileRequest) GetAction() TailAction { @@ -1590,7 +1734,7 @@ type JobInfo struct { func (x *JobInfo) Reset() { *x = JobInfo{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[24] + mi := &file_pkg_workload_workload_proto_msgTypes[26] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1603,7 +1747,7 @@ func (x *JobInfo) String() string { func (*JobInfo) ProtoMessage() {} func (x *JobInfo) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[24] + mi := &file_pkg_workload_workload_proto_msgTypes[26] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1616,7 +1760,7 @@ func (x *JobInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use JobInfo.ProtoReflect.Descriptor instead. func (*JobInfo) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{24} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{26} } func (x *JobInfo) GetId() string { @@ -1775,7 +1919,7 @@ type JobStepInfo struct { func (x *JobStepInfo) Reset() { *x = JobStepInfo{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[25] + mi := &file_pkg_workload_workload_proto_msgTypes[27] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1788,7 +1932,7 @@ func (x *JobStepInfo) String() string { func (*JobStepInfo) ProtoMessage() {} func (x *JobStepInfo) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[25] + mi := &file_pkg_workload_workload_proto_msgTypes[27] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1801,7 +1945,7 @@ func (x *JobStepInfo) ProtoReflect() protoreflect.Message { // Deprecated: Use JobStepInfo.ProtoReflect.Descriptor instead. func (*JobStepInfo) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{25} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{27} } func (x *JobStepInfo) GetId() string { @@ -1846,6 +1990,70 @@ func (x *JobStepInfo) GetEndTime() *timestamppb.Timestamp { return nil } +// JobStepInfo represents information about a single job step. +type JobStateInfo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + AveCpu string `protobuf:"bytes,1,opt,name=ave_cpu,json=aveCpu,proto3" json:"ave_cpu,omitempty"` + AveRss string `protobuf:"bytes,2,opt,name=ave_rss,json=aveRss,proto3" json:"ave_rss,omitempty"` + JobId string `protobuf:"bytes,3,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *JobStateInfo) Reset() { + *x = JobStateInfo{} + if protoimpl.UnsafeEnabled { + mi := &file_pkg_workload_workload_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStateInfo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStateInfo) ProtoMessage() {} + +func (x *JobStateInfo) ProtoReflect() protoreflect.Message { + mi := &file_pkg_workload_workload_proto_msgTypes[28] + 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 JobStateInfo.ProtoReflect.Descriptor instead. +func (*JobStateInfo) Descriptor() ([]byte, []int) { + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{28} +} + +func (x *JobStateInfo) GetAveCpu() string { + if x != nil { + return x.AveCpu + } + return "" +} + +func (x *JobStateInfo) GetAveRss() string { + if x != nil { + return x.AveRss + } + return "" +} + +func (x *JobStateInfo) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + // Chunk is an arbitrary amount of bytes. type Chunk struct { state protoimpl.MessageState @@ -1858,7 +2066,7 @@ type Chunk struct { func (x *Chunk) Reset() { *x = Chunk{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[26] + mi := &file_pkg_workload_workload_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1871,7 +2079,7 @@ func (x *Chunk) String() string { func (*Chunk) ProtoMessage() {} func (x *Chunk) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[26] + mi := &file_pkg_workload_workload_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1884,7 +2092,7 @@ func (x *Chunk) ProtoReflect() protoreflect.Message { // Deprecated: Use Chunk.ProtoReflect.Descriptor instead. func (*Chunk) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{26} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{29} } func (x *Chunk) GetContent() []byte { @@ -1907,7 +2115,7 @@ type Feature struct { func (x *Feature) Reset() { *x = Feature{} if protoimpl.UnsafeEnabled { - mi := &file_pkg_workload_workload_proto_msgTypes[27] + mi := &file_pkg_workload_workload_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1920,7 +2128,7 @@ func (x *Feature) String() string { func (*Feature) ProtoMessage() {} func (x *Feature) ProtoReflect() protoreflect.Message { - mi := &file_pkg_workload_workload_proto_msgTypes[27] + mi := &file_pkg_workload_workload_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1933,7 +2141,7 @@ func (x *Feature) ProtoReflect() protoreflect.Message { // Deprecated: Use Feature.ProtoReflect.Descriptor instead. func (*Feature) Descriptor() ([]byte, []int) { - return file_pkg_workload_workload_proto_rawDescGZIP(), []int{27} + return file_pkg_workload_workload_proto_rawDescGZIP(), []int{30} } func (x *Feature) GetName() string { @@ -1966,7 +2174,7 @@ var file_pkg_workload_workload_proto_rawDesc = []byte{ 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, 0x1e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x64, 0x75, 0x72, 0x61, 0x74, 0x69, - 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xb9, 0x01, 0x0a, 0x10, 0x53, 0x75, 0x62, + 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xeb, 0x02, 0x0a, 0x10, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, @@ -1978,180 +2186,204 @@ var file_pkg_workload_workload_proto_rawDesc = []byte{ 0x12, 0x20, 0x0a, 0x0c, 0x72, 0x75, 0x6e, 0x5f, 0x61, 0x73, 0x5f, 0x67, 0x72, 0x6f, 0x75, 0x70, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x72, 0x75, 0x6e, 0x41, 0x73, 0x47, 0x72, 0x6f, 0x75, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x03, 0x75, 0x69, 0x64, 0x22, 0x2a, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, - 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, - 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, - 0x22, 0x29, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, + 0x03, 0x75, 0x69, 0x64, 0x12, 0x24, 0x0a, 0x0e, 0x63, 0x70, 0x75, 0x66, 0x73, 0x5f, 0x70, 0x65, + 0x72, 0x5f, 0x74, 0x61, 0x73, 0x6b, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0c, 0x63, 0x70, + 0x75, 0x66, 0x73, 0x50, 0x65, 0x72, 0x54, 0x61, 0x73, 0x6b, 0x12, 0x1e, 0x0a, 0x0b, 0x6d, 0x65, + 0x6d, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x63, 0x70, 0x75, 0x18, 0x08, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x09, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x43, 0x70, 0x75, 0x12, 0x26, 0x0a, 0x0f, 0x6e, 0x74, + 0x61, 0x73, 0x6b, 0x73, 0x5f, 0x70, 0x65, 0x72, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x18, 0x09, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x0d, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x73, 0x50, 0x65, 0x72, 0x4e, 0x6f, + 0x64, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x61, 0x72, 0x72, 0x61, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x6e, 0x74, 0x61, 0x73, + 0x6b, 0x73, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6e, 0x74, 0x61, 0x73, 0x6b, 0x73, + 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x2a, 0x0a, 0x11, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, + 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x22, 0x29, 0x0a, 0x10, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x13, 0x0a, + 0x11, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x27, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x13, 0x0a, 0x11, 0x43, - 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x22, 0x27, 0x0a, 0x0e, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x0f, 0x4a, + 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, + 0x0a, 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x77, + 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x52, + 0x04, 0x69, 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, + 0x28, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x38, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, - 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x25, 0x0a, 0x04, - 0x69, 0x6e, 0x66, 0x6f, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x04, 0x69, - 0x6e, 0x66, 0x6f, 0x22, 0x28, 0x0a, 0x0f, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x73, 0x52, - 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x46, 0x0a, - 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x32, 0x0a, 0x09, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, - 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6a, 0x6f, 0x62, - 0x53, 0x74, 0x65, 0x70, 0x73, 0x22, 0x25, 0x0a, 0x0f, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, - 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0x30, 0x0a, 0x10, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, - 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, + 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x46, 0x0a, 0x10, 0x4a, 0x6f, 0x62, + 0x53, 0x74, 0x65, 0x70, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x32, 0x0a, + 0x09, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x65, 0x70, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, + 0x74, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x08, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, + 0x73, 0x22, 0x49, 0x0a, 0x10, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x35, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, + 0x74, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x77, 0x6f, 0x72, 0x6b, + 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x73, 0x22, 0x25, 0x0a, 0x0f, + 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, + 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, + 0x61, 0x74, 0x68, 0x22, 0x30, 0x0a, 0x10, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0xb4, 0x01, 0x0a, 0x11, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, + 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, + 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, + 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, + 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, + 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, + 0x11, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, + 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x13, 0x0a, 0x11, + 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x32, 0x0a, 0x12, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, + 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x24, 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, + 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x0d, 0x4e, + 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x05, + 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x77, 0x6f, + 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, + 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, + 0x70, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, + 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x12, 0x0a, 0x04, 0x67, 0x70, 0x75, 0x73, 0x18, + 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, 0x67, 0x70, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67, + 0x70, 0x75, 0x54, 0x79, 0x70, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x70, + 0x75, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x43, 0x70, 0x75, + 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x43, 0x70, 0x75, + 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, + 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x61, 0x6c, 0x6c, 0x6f, 0x4d, 0x65, 0x6d, 0x6f, 0x72, + 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x47, 0x70, 0x75, 0x73, 0x18, 0x07, 0x20, + 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x47, 0x70, 0x75, 0x73, 0x22, 0x30, 0x0a, + 0x10, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, + 0x29, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x70, - 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, - 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, - 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x61, - 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x2d, 0x0a, 0x08, 0x66, 0x65, 0x61, 0x74, 0x75, 0x72, - 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x2e, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x52, 0x08, 0x66, 0x65, 0x61, - 0x74, 0x75, 0x72, 0x65, 0x73, 0x22, 0x13, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x32, 0x0a, 0x12, 0x50, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, - 0x03, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x24, - 0x0a, 0x0c, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, - 0x6f, 0x64, 0x65, 0x73, 0x22, 0x35, 0x0a, 0x0d, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x24, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, - 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, - 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0xb8, 0x01, 0x0a, 0x04, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x63, 0x70, 0x75, 0x73, 0x18, 0x01, 0x20, 0x01, - 0x28, 0x03, 0x52, 0x04, 0x63, 0x70, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x06, 0x6d, 0x65, 0x6d, 0x6f, - 0x72, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72, 0x79, - 0x12, 0x12, 0x0a, 0x04, 0x67, 0x70, 0x75, 0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x04, - 0x67, 0x70, 0x75, 0x73, 0x12, 0x18, 0x0a, 0x07, 0x67, 0x70, 0x75, 0x54, 0x79, 0x70, 0x65, 0x18, - 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x67, 0x70, 0x75, 0x54, 0x79, 0x70, 0x65, 0x12, 0x1a, - 0x0a, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x43, 0x70, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, - 0x52, 0x08, 0x61, 0x6c, 0x6c, 0x6f, 0x43, 0x70, 0x75, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x61, 0x6c, - 0x6c, 0x6f, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, - 0x61, 0x6c, 0x6c, 0x6f, 0x4d, 0x65, 0x6d, 0x6f, 0x72, 0x79, 0x12, 0x1a, 0x0a, 0x08, 0x61, 0x6c, - 0x6c, 0x6f, 0x47, 0x70, 0x75, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x61, 0x6c, - 0x6c, 0x6f, 0x47, 0x70, 0x75, 0x73, 0x22, 0x30, 0x0a, 0x10, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, - 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, - 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x29, 0x0a, 0x11, 0x50, 0x61, 0x72, 0x74, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, - 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, - 0x64, 0x65, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x56, 0x0a, 0x14, 0x57, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, - 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, - 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, - 0x69, 0x64, 0x22, 0x9e, 0x02, 0x0a, 0x19, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, - 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, - 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, - 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, - 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, - 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x0a, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, - 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, - 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x6f, - 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, - 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x02, 0x0a, 0x12, 0x53, 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, - 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, - 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x61, 0x70, 0x70, 0x12, 0x24, 0x0a, 0x0d, - 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x73, 0x69, 0x67, 0x6e, - 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x69, 0x6e, 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, - 0x09, 0x52, 0x05, 0x62, 0x69, 0x6e, 0x64, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x65, 0x61, - 0x72, 0x45, 0x6e, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x63, 0x6c, 0x65, 0x61, - 0x72, 0x45, 0x6e, 0x76, 0x12, 0x1a, 0x0a, 0x08, 0x66, 0x61, 0x6b, 0x65, 0x52, 0x6f, 0x6f, 0x74, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, 0x61, 0x6b, 0x65, 0x52, 0x6f, 0x6f, 0x74, - 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, - 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, - 0x69, 0x70, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x69, 0x70, 0x63, 0x12, 0x10, - 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x70, 0x69, 0x64, - 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x50, 0x72, 0x69, 0x76, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, - 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x50, 0x72, 0x69, 0x76, 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x72, - 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x77, 0x72, - 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x33, 0x0a, 0x1a, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, - 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, - 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, - 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x53, 0x0a, 0x0f, 0x54, - 0x61, 0x69, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, - 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, - 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x69, 0x6c, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, - 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, - 0x22, 0xac, 0x05, 0x0a, 0x07, 0x4a, 0x6f, 0x62, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, - 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, - 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, - 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, - 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, - 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, - 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, - 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, - 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, - 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x5f, 0x74, 0x69, - 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x03, 0x28, 0x09, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x22, 0x15, 0x0a, 0x13, 0x57, 0x6f, + 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x22, 0x56, 0x0a, 0x14, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, + 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, + 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, + 0x07, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x69, 0x64, 0x18, 0x03, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x75, 0x69, 0x64, 0x22, 0x9e, 0x02, 0x0a, 0x19, 0x53, 0x75, + 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, 0x6e, 0x65, 0x72, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, + 0x4e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, + 0x65, 0x4e, 0x61, 0x6d, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x1e, 0x0a, 0x0a, 0x63, + 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x63, 0x70, 0x75, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1e, 0x0a, 0x0a, 0x6d, + 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, + 0x0a, 0x6d, 0x65, 0x6d, 0x50, 0x65, 0x72, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x77, + 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x08, 0x77, + 0x61, 0x6c, 0x6c, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, + 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x5f, + 0x69, 0x64, 0x18, 0x07, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, + 0x49, 0x64, 0x12, 0x36, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x08, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, + 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x90, 0x02, 0x0a, 0x12, 0x53, + 0x69, 0x6e, 0x67, 0x75, 0x6c, 0x61, 0x72, 0x69, 0x74, 0x79, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, + 0x73, 0x12, 0x10, 0x0a, 0x03, 0x61, 0x70, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, + 0x61, 0x70, 0x70, 0x12, 0x24, 0x0a, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, 0x77, 0x55, 0x6e, 0x73, 0x69, + 0x67, 0x6e, 0x65, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0d, 0x61, 0x6c, 0x6c, 0x6f, + 0x77, 0x55, 0x6e, 0x73, 0x69, 0x67, 0x6e, 0x65, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x69, 0x6e, + 0x64, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52, 0x05, 0x62, 0x69, 0x6e, 0x64, 0x73, 0x12, + 0x1a, 0x0a, 0x08, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x45, 0x6e, 0x76, 0x18, 0x04, 0x20, 0x01, 0x28, + 0x08, 0x52, 0x08, 0x63, 0x6c, 0x65, 0x61, 0x72, 0x45, 0x6e, 0x76, 0x12, 0x1a, 0x0a, 0x08, 0x66, + 0x61, 0x6b, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x08, 0x66, + 0x61, 0x6b, 0x65, 0x52, 0x6f, 0x6f, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x68, 0x6f, 0x73, 0x74, 0x4e, + 0x61, 0x6d, 0x65, 0x12, 0x10, 0x0a, 0x03, 0x69, 0x70, 0x63, 0x18, 0x07, 0x20, 0x01, 0x28, 0x08, + 0x52, 0x03, 0x69, 0x70, 0x63, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x08, 0x20, 0x01, + 0x28, 0x08, 0x52, 0x03, 0x70, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x6e, 0x6f, 0x50, 0x72, 0x69, + 0x76, 0x73, 0x18, 0x09, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x6e, 0x6f, 0x50, 0x72, 0x69, 0x76, + 0x73, 0x12, 0x1a, 0x0a, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x18, 0x0a, 0x20, + 0x01, 0x28, 0x08, 0x52, 0x08, 0x77, 0x72, 0x69, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x22, 0x33, 0x0a, + 0x1a, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x43, 0x6f, 0x6e, 0x74, 0x61, 0x69, + 0x6e, 0x65, 0x72, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x15, 0x0a, 0x06, 0x6a, + 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x22, 0x53, 0x0a, 0x0f, 0x54, 0x61, 0x69, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2c, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x14, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x54, 0x61, 0x69, 0x6c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x06, 0x61, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x61, 0x74, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x04, 0x70, 0x61, 0x74, 0x68, 0x22, 0xac, 0x05, 0x0a, 0x07, 0x4a, 0x6f, 0x62, 0x49, + 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, + 0x02, 0x69, 0x64, 0x12, 0x17, 0x0a, 0x07, 0x75, 0x73, 0x65, 0x72, 0x5f, 0x69, 0x64, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x75, 0x73, 0x65, 0x72, 0x49, 0x64, 0x12, 0x12, 0x0a, 0x04, + 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, + 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, + 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x75, + 0x62, 0x6d, 0x69, 0x74, 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, 0x73, 0x75, 0x62, + 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, + 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, + 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, 0x75, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, + 0x07, 0x72, 0x75, 0x6e, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, + 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, + 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, + 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x6d, + 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x69, + 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, + 0x44, 0x69, 0x72, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x74, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x0b, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x64, 0x4f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, + 0x73, 0x74, 0x64, 0x5f, 0x65, 0x72, 0x72, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, + 0x74, 0x64, 0x45, 0x72, 0x72, 0x12, 0x1c, 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, + 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x69, 0x73, 0x74, + 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, 0x63, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, 0x61, 0x74, 0x63, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, + 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, + 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69, 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x61, 0x72, 0x72, 0x61, 0x79, 0x49, 0x64, 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, + 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, + 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x13, 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, 0x07, 0x65, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0xed, 0x01, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x53, 0x74, + 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, + 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, + 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, + 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 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, 0x73, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x69, 0x6d, 0x65, - 0x12, 0x39, 0x0a, 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 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, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x34, 0x0a, 0x08, 0x72, - 0x75, 0x6e, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, - 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, - 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x07, 0x72, 0x75, 0x6e, 0x54, 0x69, 0x6d, - 0x65, 0x12, 0x38, 0x0a, 0x0a, 0x74, 0x69, 0x6d, 0x65, 0x5f, 0x6c, 0x69, 0x6d, 0x69, 0x74, 0x18, - 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x44, 0x75, 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x77, - 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x5f, 0x64, 0x69, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x0a, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x69, 0x72, 0x12, 0x17, 0x0a, 0x07, - 0x73, 0x74, 0x64, 0x5f, 0x6f, 0x75, 0x74, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, - 0x74, 0x64, 0x4f, 0x75, 0x74, 0x12, 0x17, 0x0a, 0x07, 0x73, 0x74, 0x64, 0x5f, 0x65, 0x72, 0x72, - 0x18, 0x0c, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x64, 0x45, 0x72, 0x72, 0x12, 0x1c, - 0x0a, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0d, 0x20, 0x01, 0x28, - 0x09, 0x52, 0x09, 0x70, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1b, 0x0a, 0x09, - 0x6e, 0x6f, 0x64, 0x65, 0x5f, 0x6c, 0x69, 0x73, 0x74, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x09, 0x52, - 0x08, 0x6e, 0x6f, 0x64, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x0a, 0x62, 0x61, 0x74, - 0x63, 0x68, 0x5f, 0x68, 0x6f, 0x73, 0x74, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x09, 0x52, 0x09, 0x62, - 0x61, 0x74, 0x63, 0x68, 0x48, 0x6f, 0x73, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, - 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x10, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6e, 0x75, 0x6d, - 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x19, 0x0a, 0x08, 0x61, 0x72, 0x72, 0x61, 0x79, 0x5f, 0x69, - 0x64, 0x18, 0x11, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x72, 0x72, 0x61, 0x79, 0x49, 0x64, - 0x12, 0x16, 0x0a, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x18, 0x12, 0x20, 0x01, 0x28, 0x09, - 0x52, 0x06, 0x72, 0x65, 0x61, 0x73, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 0x5f, - 0x74, 0x69, 0x6d, 0x65, 0x18, 0x13, 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, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, - 0xed, 0x01, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x49, 0x6e, 0x66, 0x6f, 0x12, - 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, - 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, - 0x61, 0x6d, 0x65, 0x12, 0x1b, 0x0a, 0x09, 0x65, 0x78, 0x69, 0x74, 0x5f, 0x63, 0x6f, 0x64, 0x65, - 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x08, 0x65, 0x78, 0x69, 0x74, 0x43, 0x6f, 0x64, 0x65, - 0x12, 0x2b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, - 0x32, 0x13, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, - 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x39, 0x0a, - 0x0a, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, + 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 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, 0x09, 0x73, - 0x74, 0x61, 0x72, 0x74, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x35, 0x0a, 0x08, 0x65, 0x6e, 0x64, 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, 0x07, 0x65, 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, + 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x07, 0x65, + 0x6e, 0x64, 0x54, 0x69, 0x6d, 0x65, 0x22, 0x57, 0x0a, 0x0c, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x17, 0x0a, 0x07, 0x61, 0x76, 0x65, 0x5f, 0x63, 0x70, + 0x75, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x76, 0x65, 0x43, 0x70, 0x75, 0x12, + 0x17, 0x0a, 0x07, 0x61, 0x76, 0x65, 0x5f, 0x72, 0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x06, 0x61, 0x76, 0x65, 0x52, 0x73, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, + 0x69, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x21, 0x0a, 0x05, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x12, 0x18, 0x0a, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x07, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x22, 0x53, 0x0a, 0x07, 0x46, 0x65, 0x61, 0x74, 0x75, 0x72, 0x65, 0x12, 0x12, 0x0a, @@ -2169,7 +2401,7 @@ var file_pkg_workload_workload_proto_rawDesc = []byte{ 0x0a, 0x07, 0x54, 0x49, 0x4d, 0x45, 0x4f, 0x55, 0x54, 0x10, 0x03, 0x12, 0x0b, 0x0a, 0x07, 0x50, 0x45, 0x4e, 0x44, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x05, 0x12, 0x0b, 0x0a, 0x07, 0x55, 0x4e, 0x4b, 0x4e, 0x4f, 0x57, 0x4e, - 0x10, 0x0a, 0x32, 0xd5, 0x06, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x4d, + 0x10, 0x0a, 0x32, 0x98, 0x07, 0x0a, 0x0f, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x72, 0x12, 0x44, 0x0a, 0x09, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, @@ -2193,38 +2425,42 @@ var file_pkg_workload_workload_proto_rawDesc = []byte{ 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, 0x73, 0x52, 0x65, - 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, - 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4f, 0x70, - 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, - 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x30, 0x01, - 0x12, 0x3a, 0x0a, 0x08, 0x54, 0x61, 0x69, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x77, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x69, 0x6c, 0x46, 0x69, 0x6c, 0x65, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, - 0x61, 0x64, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, 0x44, 0x0a, 0x09, - 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, - 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, - 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, - 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, - 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, - 0x12, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, - 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1c, 0x2e, - 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, - 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, 0x0a, 0x09, 0x50, - 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, - 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, - 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, - 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, - 0x65, 0x12, 0x38, 0x0a, 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x16, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, - 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4e, 0x6f, - 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, 0x0a, 0x0c, 0x57, - 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, 0x2e, 0x77, 0x6f, - 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, - 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x77, 0x6f, 0x72, - 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, - 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0d, 0x5a, 0x0b, 0x2e, 0x2e, - 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, - 0x33, + 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x41, 0x0a, 0x08, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, + 0x74, 0x65, 0x12, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x65, 0x70, + 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x08, 0x4f, 0x70, 0x65, + 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x12, 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x4f, 0x70, 0x65, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x0f, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x43, 0x68, 0x75, 0x6e, + 0x6b, 0x30, 0x01, 0x12, 0x3a, 0x0a, 0x08, 0x54, 0x61, 0x69, 0x6c, 0x46, 0x69, 0x6c, 0x65, 0x12, + 0x19, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x54, 0x61, 0x69, 0x6c, 0x46, + 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x77, 0x6f, 0x72, + 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x43, 0x68, 0x75, 0x6e, 0x6b, 0x28, 0x01, 0x30, 0x01, 0x12, + 0x44, 0x0a, 0x09, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x12, 0x1a, 0x2e, 0x77, + 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, + 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, + 0x6f, 0x61, 0x64, 0x2e, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x73, 0x52, 0x65, 0x73, + 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x47, 0x0a, 0x0a, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, + 0x6f, 0x6e, 0x73, 0x12, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, + 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x1a, 0x1c, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, + 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x44, + 0x0a, 0x09, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x1a, 0x2e, 0x77, 0x6f, + 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, + 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1b, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, + 0x61, 0x64, 0x2e, 0x50, 0x61, 0x72, 0x74, 0x69, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, + 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x38, 0x0a, 0x05, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x16, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, + 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, + 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x4d, + 0x0a, 0x0c, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x12, 0x1d, + 0x2e, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, + 0x61, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, + 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, + 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0d, 0x5a, + 0x0b, 0x2e, 0x2e, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x6c, 0x6f, 0x61, 0x64, 0x62, 0x06, 0x70, 0x72, + 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -2240,7 +2476,7 @@ func file_pkg_workload_workload_proto_rawDescGZIP() []byte { } var file_pkg_workload_workload_proto_enumTypes = make([]protoimpl.EnumInfo, 2) -var file_pkg_workload_workload_proto_msgTypes = make([]protoimpl.MessageInfo, 28) +var file_pkg_workload_workload_proto_msgTypes = make([]protoimpl.MessageInfo, 31) var file_pkg_workload_workload_proto_goTypes = []interface{}{ (TailAction)(0), // 0: workload.TailAction (JobStatus)(0), // 1: workload.JobStatus @@ -2251,75 +2487,81 @@ var file_pkg_workload_workload_proto_goTypes = []interface{}{ (*JobInfoRequest)(nil), // 6: workload.JobInfoRequest (*JobInfoResponse)(nil), // 7: workload.JobInfoResponse (*JobStepsRequest)(nil), // 8: workload.JobStepsRequest - (*JobStepsResponse)(nil), // 9: workload.JobStepsResponse - (*OpenFileRequest)(nil), // 10: workload.OpenFileRequest - (*ResourcesRequest)(nil), // 11: workload.ResourcesRequest - (*ResourcesResponse)(nil), // 12: workload.ResourcesResponse - (*PartitionsRequest)(nil), // 13: workload.PartitionsRequest - (*PartitionsResponse)(nil), // 14: workload.PartitionsResponse - (*NodesRequest)(nil), // 15: workload.NodesRequest - (*NodesResponse)(nil), // 16: workload.NodesResponse - (*Node)(nil), // 17: workload.Node - (*PartitionRequest)(nil), // 18: workload.PartitionRequest - (*PartitionResponse)(nil), // 19: workload.PartitionResponse - (*WorkloadInfoRequest)(nil), // 20: workload.WorkloadInfoRequest - (*WorkloadInfoResponse)(nil), // 21: workload.WorkloadInfoResponse - (*SubmitJobContainerRequest)(nil), // 22: workload.SubmitJobContainerRequest - (*SingularityOptions)(nil), // 23: workload.SingularityOptions - (*SubmitJobContainerResponse)(nil), // 24: workload.SubmitJobContainerResponse - (*TailFileRequest)(nil), // 25: workload.TailFileRequest - (*JobInfo)(nil), // 26: workload.JobInfo - (*JobStepInfo)(nil), // 27: workload.JobStepInfo - (*Chunk)(nil), // 28: workload.Chunk - (*Feature)(nil), // 29: workload.Feature - (*timestamppb.Timestamp)(nil), // 30: google.protobuf.Timestamp - (*durationpb.Duration)(nil), // 31: google.protobuf.Duration + (*JobStateRequest)(nil), // 9: workload.JobStateRequest + (*JobStepsResponse)(nil), // 10: workload.JobStepsResponse + (*JobStateResponse)(nil), // 11: workload.JobStateResponse + (*OpenFileRequest)(nil), // 12: workload.OpenFileRequest + (*ResourcesRequest)(nil), // 13: workload.ResourcesRequest + (*ResourcesResponse)(nil), // 14: workload.ResourcesResponse + (*PartitionsRequest)(nil), // 15: workload.PartitionsRequest + (*PartitionsResponse)(nil), // 16: workload.PartitionsResponse + (*NodesRequest)(nil), // 17: workload.NodesRequest + (*NodesResponse)(nil), // 18: workload.NodesResponse + (*Node)(nil), // 19: workload.Node + (*PartitionRequest)(nil), // 20: workload.PartitionRequest + (*PartitionResponse)(nil), // 21: workload.PartitionResponse + (*WorkloadInfoRequest)(nil), // 22: workload.WorkloadInfoRequest + (*WorkloadInfoResponse)(nil), // 23: workload.WorkloadInfoResponse + (*SubmitJobContainerRequest)(nil), // 24: workload.SubmitJobContainerRequest + (*SingularityOptions)(nil), // 25: workload.SingularityOptions + (*SubmitJobContainerResponse)(nil), // 26: workload.SubmitJobContainerResponse + (*TailFileRequest)(nil), // 27: workload.TailFileRequest + (*JobInfo)(nil), // 28: workload.JobInfo + (*JobStepInfo)(nil), // 29: workload.JobStepInfo + (*JobStateInfo)(nil), // 30: workload.JobStateInfo + (*Chunk)(nil), // 31: workload.Chunk + (*Feature)(nil), // 32: workload.Feature + (*timestamppb.Timestamp)(nil), // 33: google.protobuf.Timestamp + (*durationpb.Duration)(nil), // 34: google.protobuf.Duration } var file_pkg_workload_workload_proto_depIdxs = []int32{ - 26, // 0: workload.JobInfoResponse.info:type_name -> workload.JobInfo - 27, // 1: workload.JobStepsResponse.job_steps:type_name -> workload.JobStepInfo - 29, // 2: workload.ResourcesResponse.features:type_name -> workload.Feature - 17, // 3: workload.NodesResponse.nodes:type_name -> workload.Node - 23, // 4: workload.SubmitJobContainerRequest.options:type_name -> workload.SingularityOptions - 0, // 5: workload.TailFileRequest.action:type_name -> workload.TailAction - 1, // 6: workload.JobInfo.status:type_name -> workload.JobStatus - 30, // 7: workload.JobInfo.submit_time:type_name -> google.protobuf.Timestamp - 30, // 8: workload.JobInfo.start_time:type_name -> google.protobuf.Timestamp - 31, // 9: workload.JobInfo.run_time:type_name -> google.protobuf.Duration - 31, // 10: workload.JobInfo.time_limit:type_name -> google.protobuf.Duration - 30, // 11: workload.JobInfo.end_time:type_name -> google.protobuf.Timestamp - 1, // 12: workload.JobStepInfo.status:type_name -> workload.JobStatus - 30, // 13: workload.JobStepInfo.start_time:type_name -> google.protobuf.Timestamp - 30, // 14: workload.JobStepInfo.end_time:type_name -> google.protobuf.Timestamp - 2, // 15: workload.WorkloadManager.SubmitJob:input_type -> workload.SubmitJobRequest - 22, // 16: workload.WorkloadManager.SubmitJobContainer:input_type -> workload.SubmitJobContainerRequest - 4, // 17: workload.WorkloadManager.CancelJob:input_type -> workload.CancelJobRequest - 6, // 18: workload.WorkloadManager.JobInfo:input_type -> workload.JobInfoRequest - 8, // 19: workload.WorkloadManager.JobSteps:input_type -> workload.JobStepsRequest - 10, // 20: workload.WorkloadManager.OpenFile:input_type -> workload.OpenFileRequest - 25, // 21: workload.WorkloadManager.TailFile:input_type -> workload.TailFileRequest - 11, // 22: workload.WorkloadManager.Resources:input_type -> workload.ResourcesRequest - 13, // 23: workload.WorkloadManager.Partitions:input_type -> workload.PartitionsRequest - 18, // 24: workload.WorkloadManager.Partition:input_type -> workload.PartitionRequest - 15, // 25: workload.WorkloadManager.Nodes:input_type -> workload.NodesRequest - 20, // 26: workload.WorkloadManager.WorkloadInfo:input_type -> workload.WorkloadInfoRequest - 3, // 27: workload.WorkloadManager.SubmitJob:output_type -> workload.SubmitJobResponse - 24, // 28: workload.WorkloadManager.SubmitJobContainer:output_type -> workload.SubmitJobContainerResponse - 5, // 29: workload.WorkloadManager.CancelJob:output_type -> workload.CancelJobResponse - 7, // 30: workload.WorkloadManager.JobInfo:output_type -> workload.JobInfoResponse - 9, // 31: workload.WorkloadManager.JobSteps:output_type -> workload.JobStepsResponse - 28, // 32: workload.WorkloadManager.OpenFile:output_type -> workload.Chunk - 28, // 33: workload.WorkloadManager.TailFile:output_type -> workload.Chunk - 12, // 34: workload.WorkloadManager.Resources:output_type -> workload.ResourcesResponse - 14, // 35: workload.WorkloadManager.Partitions:output_type -> workload.PartitionsResponse - 19, // 36: workload.WorkloadManager.Partition:output_type -> workload.PartitionResponse - 16, // 37: workload.WorkloadManager.Nodes:output_type -> workload.NodesResponse - 21, // 38: workload.WorkloadManager.WorkloadInfo:output_type -> workload.WorkloadInfoResponse - 27, // [27:39] is the sub-list for method output_type - 15, // [15:27] is the sub-list for method input_type - 15, // [15:15] is the sub-list for extension type_name - 15, // [15:15] is the sub-list for extension extendee - 0, // [0:15] is the sub-list for field type_name + 28, // 0: workload.JobInfoResponse.info:type_name -> workload.JobInfo + 29, // 1: workload.JobStepsResponse.job_steps:type_name -> workload.JobStepInfo + 30, // 2: workload.JobStateResponse.job_states:type_name -> workload.JobStateInfo + 32, // 3: workload.ResourcesResponse.features:type_name -> workload.Feature + 19, // 4: workload.NodesResponse.nodes:type_name -> workload.Node + 25, // 5: workload.SubmitJobContainerRequest.options:type_name -> workload.SingularityOptions + 0, // 6: workload.TailFileRequest.action:type_name -> workload.TailAction + 1, // 7: workload.JobInfo.status:type_name -> workload.JobStatus + 33, // 8: workload.JobInfo.submit_time:type_name -> google.protobuf.Timestamp + 33, // 9: workload.JobInfo.start_time:type_name -> google.protobuf.Timestamp + 34, // 10: workload.JobInfo.run_time:type_name -> google.protobuf.Duration + 34, // 11: workload.JobInfo.time_limit:type_name -> google.protobuf.Duration + 33, // 12: workload.JobInfo.end_time:type_name -> google.protobuf.Timestamp + 1, // 13: workload.JobStepInfo.status:type_name -> workload.JobStatus + 33, // 14: workload.JobStepInfo.start_time:type_name -> google.protobuf.Timestamp + 33, // 15: workload.JobStepInfo.end_time:type_name -> google.protobuf.Timestamp + 2, // 16: workload.WorkloadManager.SubmitJob:input_type -> workload.SubmitJobRequest + 24, // 17: workload.WorkloadManager.SubmitJobContainer:input_type -> workload.SubmitJobContainerRequest + 4, // 18: workload.WorkloadManager.CancelJob:input_type -> workload.CancelJobRequest + 6, // 19: workload.WorkloadManager.JobInfo:input_type -> workload.JobInfoRequest + 8, // 20: workload.WorkloadManager.JobSteps:input_type -> workload.JobStepsRequest + 9, // 21: workload.WorkloadManager.JobState:input_type -> workload.JobStateRequest + 12, // 22: workload.WorkloadManager.OpenFile:input_type -> workload.OpenFileRequest + 27, // 23: workload.WorkloadManager.TailFile:input_type -> workload.TailFileRequest + 13, // 24: workload.WorkloadManager.Resources:input_type -> workload.ResourcesRequest + 15, // 25: workload.WorkloadManager.Partitions:input_type -> workload.PartitionsRequest + 20, // 26: workload.WorkloadManager.Partition:input_type -> workload.PartitionRequest + 17, // 27: workload.WorkloadManager.Nodes:input_type -> workload.NodesRequest + 22, // 28: workload.WorkloadManager.WorkloadInfo:input_type -> workload.WorkloadInfoRequest + 3, // 29: workload.WorkloadManager.SubmitJob:output_type -> workload.SubmitJobResponse + 26, // 30: workload.WorkloadManager.SubmitJobContainer:output_type -> workload.SubmitJobContainerResponse + 5, // 31: workload.WorkloadManager.CancelJob:output_type -> workload.CancelJobResponse + 7, // 32: workload.WorkloadManager.JobInfo:output_type -> workload.JobInfoResponse + 10, // 33: workload.WorkloadManager.JobSteps:output_type -> workload.JobStepsResponse + 10, // 34: workload.WorkloadManager.JobState:output_type -> workload.JobStepsResponse + 31, // 35: workload.WorkloadManager.OpenFile:output_type -> workload.Chunk + 31, // 36: workload.WorkloadManager.TailFile:output_type -> workload.Chunk + 14, // 37: workload.WorkloadManager.Resources:output_type -> workload.ResourcesResponse + 16, // 38: workload.WorkloadManager.Partitions:output_type -> workload.PartitionsResponse + 21, // 39: workload.WorkloadManager.Partition:output_type -> workload.PartitionResponse + 18, // 40: workload.WorkloadManager.Nodes:output_type -> workload.NodesResponse + 23, // 41: workload.WorkloadManager.WorkloadInfo:output_type -> workload.WorkloadInfoResponse + 29, // [29:42] is the sub-list for method output_type + 16, // [16:29] is the sub-list for method input_type + 16, // [16:16] is the sub-list for extension type_name + 16, // [16:16] is the sub-list for extension extendee + 0, // [0:16] is the sub-list for field type_name } func init() { file_pkg_workload_workload_proto_init() } @@ -2413,7 +2655,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobStepsResponse); i { + switch v := v.(*JobStateRequest); i { case 0: return &v.state case 1: @@ -2425,7 +2667,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*OpenFileRequest); i { + switch v := v.(*JobStepsResponse); i { case 0: return &v.state case 1: @@ -2437,7 +2679,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourcesRequest); i { + switch v := v.(*JobStateResponse); i { case 0: return &v.state case 1: @@ -2449,7 +2691,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ResourcesResponse); i { + switch v := v.(*OpenFileRequest); i { case 0: return &v.state case 1: @@ -2461,7 +2703,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionsRequest); i { + switch v := v.(*ResourcesRequest); i { case 0: return &v.state case 1: @@ -2473,7 +2715,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionsResponse); i { + switch v := v.(*ResourcesResponse); i { case 0: return &v.state case 1: @@ -2485,7 +2727,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[13].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodesRequest); i { + switch v := v.(*PartitionsRequest); i { case 0: return &v.state case 1: @@ -2497,7 +2739,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[14].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*NodesResponse); i { + switch v := v.(*PartitionsResponse); i { case 0: return &v.state case 1: @@ -2509,7 +2751,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[15].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Node); i { + switch v := v.(*NodesRequest); i { case 0: return &v.state case 1: @@ -2521,7 +2763,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[16].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionRequest); i { + switch v := v.(*NodesResponse); i { case 0: return &v.state case 1: @@ -2533,7 +2775,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[17].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*PartitionResponse); i { + switch v := v.(*Node); i { case 0: return &v.state case 1: @@ -2545,7 +2787,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[18].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkloadInfoRequest); i { + switch v := v.(*PartitionRequest); i { case 0: return &v.state case 1: @@ -2557,7 +2799,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[19].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*WorkloadInfoResponse); i { + switch v := v.(*PartitionResponse); i { case 0: return &v.state case 1: @@ -2569,7 +2811,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[20].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitJobContainerRequest); i { + switch v := v.(*WorkloadInfoRequest); i { case 0: return &v.state case 1: @@ -2581,7 +2823,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SingularityOptions); i { + switch v := v.(*WorkloadInfoResponse); i { case 0: return &v.state case 1: @@ -2593,7 +2835,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SubmitJobContainerResponse); i { + switch v := v.(*SubmitJobContainerRequest); i { case 0: return &v.state case 1: @@ -2605,7 +2847,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*TailFileRequest); i { + switch v := v.(*SingularityOptions); i { case 0: return &v.state case 1: @@ -2617,7 +2859,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobInfo); i { + switch v := v.(*SubmitJobContainerResponse); i { case 0: return &v.state case 1: @@ -2629,7 +2871,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*JobStepInfo); i { + switch v := v.(*TailFileRequest); i { case 0: return &v.state case 1: @@ -2641,7 +2883,7 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*Chunk); i { + switch v := v.(*JobInfo); i { case 0: return &v.state case 1: @@ -2653,6 +2895,42 @@ func file_pkg_workload_workload_proto_init() { } } file_pkg_workload_workload_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobStepInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pkg_workload_workload_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobStateInfo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pkg_workload_workload_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*Chunk); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_pkg_workload_workload_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*Feature); i { case 0: return &v.state @@ -2671,7 +2949,7 @@ func file_pkg_workload_workload_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_pkg_workload_workload_proto_rawDesc, NumEnums: 2, - NumMessages: 28, + NumMessages: 31, NumExtensions: 0, NumServices: 1, }, diff --git a/pkg/workload/workload.proto b/pkg/workload/workload.proto index a5ec633..93c6dcd 100644 --- a/pkg/workload/workload.proto +++ b/pkg/workload/workload.proto @@ -35,6 +35,8 @@ service WorkloadManager { rpc JobInfo (JobInfoRequest) returns (JobInfoResponse); // JobSteps returns information about each individual job step. rpc JobSteps (JobStepsRequest) returns (JobStepsResponse); + // JobState returns information about each individual job step. + rpc JobState(JobStateRequest) returns (JobStepsResponse); // OpenFile opens a file and streams its content back. May be // useful for results collecting. rpc OpenFile (OpenFileRequest) returns (stream Chunk); @@ -69,6 +71,12 @@ message SubmitJobRequest { string run_as_user = 4; string run_as_group = 5; string uid = 6; + int64 cpufs_per_task = 7; + int64 mem_per_cpu = 8; + int64 ntasks_per_node = 9; + string array = 10; + int64 ntasks = 11; + int64 nodes = 12; } message SubmitJobResponse { @@ -99,11 +107,21 @@ message JobStepsRequest { int64 job_id = 1; } +message JobStateRequest { + // ID of a job to fetch steps of. + string job_id = 1; +} + message JobStepsResponse { // Job steps information. repeated JobStepInfo job_steps = 1; } +message JobStateResponse { + // Job steps information. + repeated JobStateInfo job_states = 1; +} + message OpenFileRequest { // Path to file to open. string path = 1; @@ -287,6 +305,13 @@ message JobStepInfo { google.protobuf.Timestamp end_time = 6; } +// JobStepInfo represents information about a single job step. +message JobStateInfo { + string ave_cpu = 1; + string ave_rss = 2; + string job_id = 3; +} + // Chunk is an arbitrary amount of bytes. message Chunk { bytes content = 1; diff --git a/pkg/workload/workload_grpc.pb.go b/pkg/workload/workload_grpc.pb.go index 3cedcbd..f360ef0 100644 --- a/pkg/workload/workload_grpc.pb.go +++ b/pkg/workload/workload_grpc.pb.go @@ -38,6 +38,7 @@ const ( WorkloadManager_CancelJob_FullMethodName = "/workload.WorkloadManager/CancelJob" WorkloadManager_JobInfo_FullMethodName = "/workload.WorkloadManager/JobInfo" WorkloadManager_JobSteps_FullMethodName = "/workload.WorkloadManager/JobSteps" + WorkloadManager_JobState_FullMethodName = "/workload.WorkloadManager/JobState" WorkloadManager_OpenFile_FullMethodName = "/workload.WorkloadManager/OpenFile" WorkloadManager_TailFile_FullMethodName = "/workload.WorkloadManager/TailFile" WorkloadManager_Resources_FullMethodName = "/workload.WorkloadManager/Resources" @@ -65,8 +66,10 @@ type WorkloadManagerClient interface { JobInfo(ctx context.Context, in *JobInfoRequest, opts ...grpc.CallOption) (*JobInfoResponse, error) // JobSteps returns information about each individual job step. JobSteps(ctx context.Context, in *JobStepsRequest, opts ...grpc.CallOption) (*JobStepsResponse, error) + // JobState returns information about each individual job step. + JobState(ctx context.Context, in *JobStateRequest, opts ...grpc.CallOption) (*JobStepsResponse, error) // OpenFile opens a file and streams its content back. May be - // useful for result-fetcher collecting. + // useful for results collecting. OpenFile(ctx context.Context, in *OpenFileRequest, opts ...grpc.CallOption) (WorkloadManager_OpenFileClient, error) // TailFile opens a file and streams its content back. Unlike // OpenFile this call will watch file content changes and stream @@ -138,6 +141,15 @@ func (c *workloadManagerClient) JobSteps(ctx context.Context, in *JobStepsReques return out, nil } +func (c *workloadManagerClient) JobState(ctx context.Context, in *JobStateRequest, opts ...grpc.CallOption) (*JobStepsResponse, error) { + out := new(JobStepsResponse) + err := c.cc.Invoke(ctx, WorkloadManager_JobState_FullMethodName, in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + func (c *workloadManagerClient) OpenFile(ctx context.Context, in *OpenFileRequest, opts ...grpc.CallOption) (WorkloadManager_OpenFileClient, error) { stream, err := c.cc.NewStream(ctx, &WorkloadManager_ServiceDesc.Streams[0], WorkloadManager_OpenFile_FullMethodName, opts...) if err != nil { @@ -264,8 +276,10 @@ type WorkloadManagerServer interface { JobInfo(context.Context, *JobInfoRequest) (*JobInfoResponse, error) // JobSteps returns information about each individual job step. JobSteps(context.Context, *JobStepsRequest) (*JobStepsResponse, error) + // JobState returns information about each individual job step. + JobState(context.Context, *JobStateRequest) (*JobStepsResponse, error) // OpenFile opens a file and streams its content back. May be - // useful for result-fetcher collecting. + // useful for results collecting. OpenFile(*OpenFileRequest, WorkloadManager_OpenFileServer) error // TailFile opens a file and streams its content back. Unlike // OpenFile this call will watch file content changes and stream @@ -282,6 +296,7 @@ type WorkloadManagerServer interface { Nodes(context.Context, *NodesRequest) (*NodesResponse, error) // WorkloadInfo provides info about workload (name, version, red-box uid) WorkloadInfo(context.Context, *WorkloadInfoRequest) (*WorkloadInfoResponse, error) + mustEmbedUnimplementedWorkloadManagerServer() } // UnimplementedWorkloadManagerServer must be embedded to have forward compatible implementations. @@ -303,6 +318,9 @@ func (UnimplementedWorkloadManagerServer) JobInfo(context.Context, *JobInfoReque func (UnimplementedWorkloadManagerServer) JobSteps(context.Context, *JobStepsRequest) (*JobStepsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method JobSteps not implemented") } +func (UnimplementedWorkloadManagerServer) JobState(context.Context, *JobStateRequest) (*JobStepsResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method JobState not implemented") +} func (UnimplementedWorkloadManagerServer) OpenFile(*OpenFileRequest, WorkloadManager_OpenFileServer) error { return status.Errorf(codes.Unimplemented, "method OpenFile not implemented") } @@ -427,6 +445,24 @@ func _WorkloadManager_JobSteps_Handler(srv interface{}, ctx context.Context, dec return interceptor(ctx, in, info, handler) } +func _WorkloadManager_JobState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(JobStateRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(WorkloadManagerServer).JobState(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: WorkloadManager_JobState_FullMethodName, + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(WorkloadManagerServer).JobState(ctx, req.(*JobStateRequest)) + } + return interceptor(ctx, in, info, handler) +} + func _WorkloadManager_OpenFile_Handler(srv interface{}, stream grpc.ServerStream) error { m := new(OpenFileRequest) if err := stream.RecvMsg(m); err != nil { @@ -591,6 +627,10 @@ var WorkloadManager_ServiceDesc = grpc.ServiceDesc{ MethodName: "JobSteps", Handler: _WorkloadManager_JobSteps_Handler, }, + { + MethodName: "JobState", + Handler: _WorkloadManager_JobState_Handler, + }, { MethodName: "Resources", Handler: _WorkloadManager_Resources_Handler,