1716 lines
66 KiB
Go
1716 lines
66 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: backend/api/run.proto
|
|
|
|
package go_client
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger/options"
|
|
_ "google.golang.org/genproto/googleapis/api/annotations"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
math "math"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type Run_StorageState int32
|
|
|
|
const (
|
|
Run_STORAGESTATE_AVAILABLE Run_StorageState = 0
|
|
Run_STORAGESTATE_ARCHIVED Run_StorageState = 1
|
|
)
|
|
|
|
var Run_StorageState_name = map[int32]string{
|
|
0: "STORAGESTATE_AVAILABLE",
|
|
1: "STORAGESTATE_ARCHIVED",
|
|
}
|
|
|
|
var Run_StorageState_value = map[string]int32{
|
|
"STORAGESTATE_AVAILABLE": 0,
|
|
"STORAGESTATE_ARCHIVED": 1,
|
|
}
|
|
|
|
func (x Run_StorageState) String() string {
|
|
return proto.EnumName(Run_StorageState_name, int32(x))
|
|
}
|
|
|
|
func (Run_StorageState) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{9, 0}
|
|
}
|
|
|
|
type RunMetric_Format int32
|
|
|
|
const (
|
|
// Default value if not present.
|
|
RunMetric_UNSPECIFIED RunMetric_Format = 0
|
|
// Display value as its raw format.
|
|
RunMetric_RAW RunMetric_Format = 1
|
|
// Display value in percentage format.
|
|
RunMetric_PERCENTAGE RunMetric_Format = 2
|
|
)
|
|
|
|
var RunMetric_Format_name = map[int32]string{
|
|
0: "UNSPECIFIED",
|
|
1: "RAW",
|
|
2: "PERCENTAGE",
|
|
}
|
|
|
|
var RunMetric_Format_value = map[string]int32{
|
|
"UNSPECIFIED": 0,
|
|
"RAW": 1,
|
|
"PERCENTAGE": 2,
|
|
}
|
|
|
|
func (x RunMetric_Format) String() string {
|
|
return proto.EnumName(RunMetric_Format_name, int32(x))
|
|
}
|
|
|
|
func (RunMetric_Format) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{12, 0}
|
|
}
|
|
|
|
type ReportRunMetricsResponse_ReportRunMetricResult_Status int32
|
|
|
|
const (
|
|
// Default value if not present.
|
|
ReportRunMetricsResponse_ReportRunMetricResult_UNSPECIFIED ReportRunMetricsResponse_ReportRunMetricResult_Status = 0
|
|
// Indicates successful reporting.
|
|
ReportRunMetricsResponse_ReportRunMetricResult_OK ReportRunMetricsResponse_ReportRunMetricResult_Status = 1
|
|
// Indicates that the payload of the metric is invalid.
|
|
ReportRunMetricsResponse_ReportRunMetricResult_INVALID_ARGUMENT ReportRunMetricsResponse_ReportRunMetricResult_Status = 2
|
|
// Indicates that the metric has been reported before.
|
|
ReportRunMetricsResponse_ReportRunMetricResult_DUPLICATE_REPORTING ReportRunMetricsResponse_ReportRunMetricResult_Status = 3
|
|
// Indicates that something went wrong in the server.
|
|
ReportRunMetricsResponse_ReportRunMetricResult_INTERNAL_ERROR ReportRunMetricsResponse_ReportRunMetricResult_Status = 4
|
|
)
|
|
|
|
var ReportRunMetricsResponse_ReportRunMetricResult_Status_name = map[int32]string{
|
|
0: "UNSPECIFIED",
|
|
1: "OK",
|
|
2: "INVALID_ARGUMENT",
|
|
3: "DUPLICATE_REPORTING",
|
|
4: "INTERNAL_ERROR",
|
|
}
|
|
|
|
var ReportRunMetricsResponse_ReportRunMetricResult_Status_value = map[string]int32{
|
|
"UNSPECIFIED": 0,
|
|
"OK": 1,
|
|
"INVALID_ARGUMENT": 2,
|
|
"DUPLICATE_REPORTING": 3,
|
|
"INTERNAL_ERROR": 4,
|
|
}
|
|
|
|
func (x ReportRunMetricsResponse_ReportRunMetricResult_Status) String() string {
|
|
return proto.EnumName(ReportRunMetricsResponse_ReportRunMetricResult_Status_name, int32(x))
|
|
}
|
|
|
|
func (ReportRunMetricsResponse_ReportRunMetricResult_Status) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{14, 0, 0}
|
|
}
|
|
|
|
type CreateRunRequest struct {
|
|
Run *Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CreateRunRequest) Reset() { *m = CreateRunRequest{} }
|
|
func (m *CreateRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CreateRunRequest) ProtoMessage() {}
|
|
func (*CreateRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{0}
|
|
}
|
|
|
|
func (m *CreateRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CreateRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *CreateRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CreateRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *CreateRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CreateRunRequest.Merge(m, src)
|
|
}
|
|
func (m *CreateRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CreateRunRequest.Size(m)
|
|
}
|
|
func (m *CreateRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CreateRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CreateRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *CreateRunRequest) GetRun() *Run {
|
|
if m != nil {
|
|
return m.Run
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GetRunRequest struct {
|
|
// The ID of the run to be retrieved.
|
|
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GetRunRequest) Reset() { *m = GetRunRequest{} }
|
|
func (m *GetRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GetRunRequest) ProtoMessage() {}
|
|
func (*GetRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{1}
|
|
}
|
|
|
|
func (m *GetRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GetRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GetRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GetRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GetRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GetRunRequest.Merge(m, src)
|
|
}
|
|
func (m *GetRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GetRunRequest.Size(m)
|
|
}
|
|
func (m *GetRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GetRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GetRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *GetRunRequest) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListRunsRequest struct {
|
|
// A page token to request the next page of results. The token is acquried
|
|
// from the nextPageToken field of the response from the previous
|
|
// ListRuns call or can be omitted when fetching the first page.
|
|
PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
|
// The number of runs to be listed per page. If there are more runs than this
|
|
// number, the response message will contain a nextPageToken field you can use
|
|
// to fetch the next page.
|
|
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
|
// Can be format of "field_name", "field_name asc" or "field_name desc"
|
|
// (Example, "name asc" or "id desc"). Ascending by default.
|
|
SortBy string `protobuf:"bytes,3,opt,name=sort_by,json=sortBy,proto3" json:"sort_by,omitempty"`
|
|
// What resource reference to filter on.
|
|
// E.g. If listing run for an experiment, the query string would be
|
|
// resource_reference_key.type=EXPERIMENT&resource_reference_key.id=123
|
|
ResourceReferenceKey *ResourceKey `protobuf:"bytes,4,opt,name=resource_reference_key,json=resourceReferenceKey,proto3" json:"resource_reference_key,omitempty"`
|
|
// A url-encoded, JSON-serialized Filter protocol buffer (see
|
|
// [filter.proto](https://github.com/kubeflow/pipelines/
|
|
// blob/master/backend/api/filter.proto)).
|
|
Filter string `protobuf:"bytes,5,opt,name=filter,proto3" json:"filter,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListRunsRequest) Reset() { *m = ListRunsRequest{} }
|
|
func (m *ListRunsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ListRunsRequest) ProtoMessage() {}
|
|
func (*ListRunsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{2}
|
|
}
|
|
|
|
func (m *ListRunsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListRunsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ListRunsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListRunsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListRunsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListRunsRequest.Merge(m, src)
|
|
}
|
|
func (m *ListRunsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ListRunsRequest.Size(m)
|
|
}
|
|
func (m *ListRunsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListRunsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListRunsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ListRunsRequest) GetPageToken() string {
|
|
if m != nil {
|
|
return m.PageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListRunsRequest) GetPageSize() int32 {
|
|
if m != nil {
|
|
return m.PageSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ListRunsRequest) GetSortBy() string {
|
|
if m != nil {
|
|
return m.SortBy
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ListRunsRequest) GetResourceReferenceKey() *ResourceKey {
|
|
if m != nil {
|
|
return m.ResourceReferenceKey
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ListRunsRequest) GetFilter() string {
|
|
if m != nil {
|
|
return m.Filter
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type TerminateRunRequest struct {
|
|
// The ID of the run to be terminated.
|
|
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TerminateRunRequest) Reset() { *m = TerminateRunRequest{} }
|
|
func (m *TerminateRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*TerminateRunRequest) ProtoMessage() {}
|
|
func (*TerminateRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{3}
|
|
}
|
|
|
|
func (m *TerminateRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TerminateRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *TerminateRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TerminateRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *TerminateRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TerminateRunRequest.Merge(m, src)
|
|
}
|
|
func (m *TerminateRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_TerminateRunRequest.Size(m)
|
|
}
|
|
func (m *TerminateRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TerminateRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TerminateRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *TerminateRunRequest) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RetryRunRequest struct {
|
|
// The ID of the run to be retried.
|
|
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RetryRunRequest) Reset() { *m = RetryRunRequest{} }
|
|
func (m *RetryRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RetryRunRequest) ProtoMessage() {}
|
|
func (*RetryRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{4}
|
|
}
|
|
|
|
func (m *RetryRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RetryRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RetryRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RetryRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RetryRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RetryRunRequest.Merge(m, src)
|
|
}
|
|
func (m *RetryRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RetryRunRequest.Size(m)
|
|
}
|
|
func (m *RetryRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RetryRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RetryRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *RetryRunRequest) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ListRunsResponse struct {
|
|
Runs []*Run `protobuf:"bytes,1,rep,name=runs,proto3" json:"runs,omitempty"`
|
|
// The total number of runs for the given query.
|
|
TotalSize int32 `protobuf:"varint,3,opt,name=total_size,json=totalSize,proto3" json:"total_size,omitempty"`
|
|
// The token to list the next page of runs.
|
|
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ListRunsResponse) Reset() { *m = ListRunsResponse{} }
|
|
func (m *ListRunsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ListRunsResponse) ProtoMessage() {}
|
|
func (*ListRunsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{5}
|
|
}
|
|
|
|
func (m *ListRunsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ListRunsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ListRunsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ListRunsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ListRunsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ListRunsResponse.Merge(m, src)
|
|
}
|
|
func (m *ListRunsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ListRunsResponse.Size(m)
|
|
}
|
|
func (m *ListRunsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ListRunsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ListRunsResponse proto.InternalMessageInfo
|
|
|
|
func (m *ListRunsResponse) GetRuns() []*Run {
|
|
if m != nil {
|
|
return m.Runs
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *ListRunsResponse) GetTotalSize() int32 {
|
|
if m != nil {
|
|
return m.TotalSize
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *ListRunsResponse) GetNextPageToken() string {
|
|
if m != nil {
|
|
return m.NextPageToken
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ArchiveRunRequest struct {
|
|
// The ID of the run to be archived.
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ArchiveRunRequest) Reset() { *m = ArchiveRunRequest{} }
|
|
func (m *ArchiveRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ArchiveRunRequest) ProtoMessage() {}
|
|
func (*ArchiveRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{6}
|
|
}
|
|
|
|
func (m *ArchiveRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ArchiveRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ArchiveRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ArchiveRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ArchiveRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ArchiveRunRequest.Merge(m, src)
|
|
}
|
|
func (m *ArchiveRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ArchiveRunRequest.Size(m)
|
|
}
|
|
func (m *ArchiveRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ArchiveRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ArchiveRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *ArchiveRunRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type UnarchiveRunRequest struct {
|
|
// The ID of the run to be restored.
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *UnarchiveRunRequest) Reset() { *m = UnarchiveRunRequest{} }
|
|
func (m *UnarchiveRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*UnarchiveRunRequest) ProtoMessage() {}
|
|
func (*UnarchiveRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{7}
|
|
}
|
|
|
|
func (m *UnarchiveRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_UnarchiveRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *UnarchiveRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_UnarchiveRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *UnarchiveRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_UnarchiveRunRequest.Merge(m, src)
|
|
}
|
|
func (m *UnarchiveRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_UnarchiveRunRequest.Size(m)
|
|
}
|
|
func (m *UnarchiveRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_UnarchiveRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_UnarchiveRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *UnarchiveRunRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type DeleteRunRequest struct {
|
|
// The ID of the run to be deleted.
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *DeleteRunRequest) Reset() { *m = DeleteRunRequest{} }
|
|
func (m *DeleteRunRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*DeleteRunRequest) ProtoMessage() {}
|
|
func (*DeleteRunRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{8}
|
|
}
|
|
|
|
func (m *DeleteRunRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_DeleteRunRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *DeleteRunRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_DeleteRunRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *DeleteRunRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_DeleteRunRequest.Merge(m, src)
|
|
}
|
|
func (m *DeleteRunRequest) XXX_Size() int {
|
|
return xxx_messageInfo_DeleteRunRequest.Size(m)
|
|
}
|
|
func (m *DeleteRunRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_DeleteRunRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_DeleteRunRequest proto.InternalMessageInfo
|
|
|
|
func (m *DeleteRunRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Run struct {
|
|
// Output. Unique run ID. Generated by API server.
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
// Required input field. Name provided by user,
|
|
// or auto generated if run is created by scheduled job. Not unique.
|
|
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Output. Specify whether this run is in archived or available mode.
|
|
StorageState Run_StorageState `protobuf:"varint,10,opt,name=storage_state,json=storageState,proto3,enum=api.Run_StorageState" json:"storage_state,omitempty"`
|
|
// Optional input field. Describing the purpose of the run
|
|
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
|
|
// Required input field.
|
|
// Describing what the pipeline manifest and parameters to use for the run.
|
|
PipelineSpec *PipelineSpec `protobuf:"bytes,4,opt,name=pipeline_spec,json=pipelineSpec,proto3" json:"pipeline_spec,omitempty"`
|
|
// Optional input field. Specify which resource this run belongs to.
|
|
// When creating a run from a particular pipeline version, the pipeline
|
|
// version can be specified here.
|
|
ResourceReferences []*ResourceReference `protobuf:"bytes,5,rep,name=resource_references,json=resourceReferences,proto3" json:"resource_references,omitempty"`
|
|
// Optional input field. Specify which Kubernetes service account this run uses.
|
|
ServiceAccount string `protobuf:"bytes,14,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
|
|
// Output. The time that the run created.
|
|
CreatedAt *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
|
|
// Output. When this run is scheduled to run. This could be different from
|
|
// created_at. For example, if a run is from a backfilling job that was
|
|
// supposed to run 2 month ago, the scheduled_at is 2 month ago,
|
|
// v.s. created_at is the current time.
|
|
ScheduledAt *timestamp.Timestamp `protobuf:"bytes,7,opt,name=scheduled_at,json=scheduledAt,proto3" json:"scheduled_at,omitempty"`
|
|
// Output. The time this run is finished.
|
|
FinishedAt *timestamp.Timestamp `protobuf:"bytes,13,opt,name=finished_at,json=finishedAt,proto3" json:"finished_at,omitempty"`
|
|
// Output. The status of the run.
|
|
// One of [Pending, Running, Succeeded, Skipped, Failed, Error]
|
|
Status string `protobuf:"bytes,8,opt,name=status,proto3" json:"status,omitempty"`
|
|
// In case any error happens retrieving a run field, only run ID
|
|
// and the error message is returned. Client has the flexibility of choosing
|
|
// how to handle error. This is especially useful during listing call.
|
|
Error string `protobuf:"bytes,12,opt,name=error,proto3" json:"error,omitempty"`
|
|
// Output. The metrics of the run. The metrics are reported by ReportMetrics
|
|
// API.
|
|
Metrics []*RunMetric `protobuf:"bytes,9,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Run) Reset() { *m = Run{} }
|
|
func (m *Run) String() string { return proto.CompactTextString(m) }
|
|
func (*Run) ProtoMessage() {}
|
|
func (*Run) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{9}
|
|
}
|
|
|
|
func (m *Run) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Run.Unmarshal(m, b)
|
|
}
|
|
func (m *Run) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Run.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Run) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Run.Merge(m, src)
|
|
}
|
|
func (m *Run) XXX_Size() int {
|
|
return xxx_messageInfo_Run.Size(m)
|
|
}
|
|
func (m *Run) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Run.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Run proto.InternalMessageInfo
|
|
|
|
func (m *Run) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetStorageState() Run_StorageState {
|
|
if m != nil {
|
|
return m.StorageState
|
|
}
|
|
return Run_STORAGESTATE_AVAILABLE
|
|
}
|
|
|
|
func (m *Run) GetDescription() string {
|
|
if m != nil {
|
|
return m.Description
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetPipelineSpec() *PipelineSpec {
|
|
if m != nil {
|
|
return m.PipelineSpec
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Run) GetResourceReferences() []*ResourceReference {
|
|
if m != nil {
|
|
return m.ResourceReferences
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Run) GetServiceAccount() string {
|
|
if m != nil {
|
|
return m.ServiceAccount
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetCreatedAt() *timestamp.Timestamp {
|
|
if m != nil {
|
|
return m.CreatedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Run) GetScheduledAt() *timestamp.Timestamp {
|
|
if m != nil {
|
|
return m.ScheduledAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Run) GetFinishedAt() *timestamp.Timestamp {
|
|
if m != nil {
|
|
return m.FinishedAt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Run) GetStatus() string {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetError() string {
|
|
if m != nil {
|
|
return m.Error
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Run) GetMetrics() []*RunMetric {
|
|
if m != nil {
|
|
return m.Metrics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type PipelineRuntime struct {
|
|
// Output. The runtime JSON manifest of the pipeline, including the status
|
|
// of pipeline steps and fields need for UI visualization etc.
|
|
PipelineManifest string `protobuf:"bytes,10,opt,name=pipeline_manifest,json=pipelineManifest,proto3" json:"pipeline_manifest,omitempty"`
|
|
// Output. The runtime JSON manifest of the argo workflow.
|
|
// This is deprecated after pipeline_runtime_manifest is in use.
|
|
WorkflowManifest string `protobuf:"bytes,11,opt,name=workflow_manifest,json=workflowManifest,proto3" json:"workflow_manifest,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *PipelineRuntime) Reset() { *m = PipelineRuntime{} }
|
|
func (m *PipelineRuntime) String() string { return proto.CompactTextString(m) }
|
|
func (*PipelineRuntime) ProtoMessage() {}
|
|
func (*PipelineRuntime) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{10}
|
|
}
|
|
|
|
func (m *PipelineRuntime) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_PipelineRuntime.Unmarshal(m, b)
|
|
}
|
|
func (m *PipelineRuntime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_PipelineRuntime.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *PipelineRuntime) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_PipelineRuntime.Merge(m, src)
|
|
}
|
|
func (m *PipelineRuntime) XXX_Size() int {
|
|
return xxx_messageInfo_PipelineRuntime.Size(m)
|
|
}
|
|
func (m *PipelineRuntime) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_PipelineRuntime.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_PipelineRuntime proto.InternalMessageInfo
|
|
|
|
func (m *PipelineRuntime) GetPipelineManifest() string {
|
|
if m != nil {
|
|
return m.PipelineManifest
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *PipelineRuntime) GetWorkflowManifest() string {
|
|
if m != nil {
|
|
return m.WorkflowManifest
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type RunDetail struct {
|
|
Run *Run `protobuf:"bytes,1,opt,name=run,proto3" json:"run,omitempty"`
|
|
PipelineRuntime *PipelineRuntime `protobuf:"bytes,2,opt,name=pipeline_runtime,json=pipelineRuntime,proto3" json:"pipeline_runtime,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RunDetail) Reset() { *m = RunDetail{} }
|
|
func (m *RunDetail) String() string { return proto.CompactTextString(m) }
|
|
func (*RunDetail) ProtoMessage() {}
|
|
func (*RunDetail) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{11}
|
|
}
|
|
|
|
func (m *RunDetail) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RunDetail.Unmarshal(m, b)
|
|
}
|
|
func (m *RunDetail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RunDetail.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RunDetail) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RunDetail.Merge(m, src)
|
|
}
|
|
func (m *RunDetail) XXX_Size() int {
|
|
return xxx_messageInfo_RunDetail.Size(m)
|
|
}
|
|
func (m *RunDetail) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RunDetail.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RunDetail proto.InternalMessageInfo
|
|
|
|
func (m *RunDetail) GetRun() *Run {
|
|
if m != nil {
|
|
return m.Run
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RunDetail) GetPipelineRuntime() *PipelineRuntime {
|
|
if m != nil {
|
|
return m.PipelineRuntime
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RunMetric struct {
|
|
// Required. The user defined name of the metric. It must between 1 and 63
|
|
// characters long and must conform to the following regular expression:
|
|
// `[a-z]([-a-z0-9]*[a-z0-9])?`.
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
// Required. The runtime node ID which reports the metric. The node ID can be
|
|
// found in the RunDetail.workflow.Status. Metric with same (node_id, name)
|
|
// are considerd as duplicate. Only the first reporting will be recorded. Max
|
|
// length is 128.
|
|
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
// Types that are valid to be assigned to Value:
|
|
// *RunMetric_NumberValue
|
|
Value isRunMetric_Value `protobuf_oneof:"value"`
|
|
// The display format of metric.
|
|
Format RunMetric_Format `protobuf:"varint,4,opt,name=format,proto3,enum=api.RunMetric_Format" json:"format,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RunMetric) Reset() { *m = RunMetric{} }
|
|
func (m *RunMetric) String() string { return proto.CompactTextString(m) }
|
|
func (*RunMetric) ProtoMessage() {}
|
|
func (*RunMetric) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{12}
|
|
}
|
|
|
|
func (m *RunMetric) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RunMetric.Unmarshal(m, b)
|
|
}
|
|
func (m *RunMetric) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RunMetric.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RunMetric) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RunMetric.Merge(m, src)
|
|
}
|
|
func (m *RunMetric) XXX_Size() int {
|
|
return xxx_messageInfo_RunMetric.Size(m)
|
|
}
|
|
func (m *RunMetric) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RunMetric.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RunMetric proto.InternalMessageInfo
|
|
|
|
func (m *RunMetric) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RunMetric) GetNodeId() string {
|
|
if m != nil {
|
|
return m.NodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type isRunMetric_Value interface {
|
|
isRunMetric_Value()
|
|
}
|
|
|
|
type RunMetric_NumberValue struct {
|
|
NumberValue float64 `protobuf:"fixed64,3,opt,name=number_value,json=numberValue,proto3,oneof"`
|
|
}
|
|
|
|
func (*RunMetric_NumberValue) isRunMetric_Value() {}
|
|
|
|
func (m *RunMetric) GetValue() isRunMetric_Value {
|
|
if m != nil {
|
|
return m.Value
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RunMetric) GetNumberValue() float64 {
|
|
if x, ok := m.GetValue().(*RunMetric_NumberValue); ok {
|
|
return x.NumberValue
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RunMetric) GetFormat() RunMetric_Format {
|
|
if m != nil {
|
|
return m.Format
|
|
}
|
|
return RunMetric_UNSPECIFIED
|
|
}
|
|
|
|
// XXX_OneofWrappers is for the internal use of the proto package.
|
|
func (*RunMetric) XXX_OneofWrappers() []interface{} {
|
|
return []interface{}{
|
|
(*RunMetric_NumberValue)(nil),
|
|
}
|
|
}
|
|
|
|
type ReportRunMetricsRequest struct {
|
|
// Required. The parent run ID of the metric.
|
|
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
// List of metrics to report.
|
|
Metrics []*RunMetric `protobuf:"bytes,2,rep,name=metrics,proto3" json:"metrics,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReportRunMetricsRequest) Reset() { *m = ReportRunMetricsRequest{} }
|
|
func (m *ReportRunMetricsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReportRunMetricsRequest) ProtoMessage() {}
|
|
func (*ReportRunMetricsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{13}
|
|
}
|
|
|
|
func (m *ReportRunMetricsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReportRunMetricsRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ReportRunMetricsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReportRunMetricsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReportRunMetricsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReportRunMetricsRequest.Merge(m, src)
|
|
}
|
|
func (m *ReportRunMetricsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ReportRunMetricsRequest.Size(m)
|
|
}
|
|
func (m *ReportRunMetricsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReportRunMetricsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReportRunMetricsRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReportRunMetricsRequest) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReportRunMetricsRequest) GetMetrics() []*RunMetric {
|
|
if m != nil {
|
|
return m.Metrics
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReportRunMetricsResponse struct {
|
|
Results []*ReportRunMetricsResponse_ReportRunMetricResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse) Reset() { *m = ReportRunMetricsResponse{} }
|
|
func (m *ReportRunMetricsResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ReportRunMetricsResponse) ProtoMessage() {}
|
|
func (*ReportRunMetricsResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{14}
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReportRunMetricsResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ReportRunMetricsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReportRunMetricsResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReportRunMetricsResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReportRunMetricsResponse.Merge(m, src)
|
|
}
|
|
func (m *ReportRunMetricsResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ReportRunMetricsResponse.Size(m)
|
|
}
|
|
func (m *ReportRunMetricsResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReportRunMetricsResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReportRunMetricsResponse proto.InternalMessageInfo
|
|
|
|
func (m *ReportRunMetricsResponse) GetResults() []*ReportRunMetricsResponse_ReportRunMetricResult {
|
|
if m != nil {
|
|
return m.Results
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReportRunMetricsResponse_ReportRunMetricResult struct {
|
|
// Output. The name of the metric.
|
|
MetricName string `protobuf:"bytes,1,opt,name=metric_name,json=metricName,proto3" json:"metric_name,omitempty"`
|
|
// Output. The ID of the node which reports the metric.
|
|
MetricNodeId string `protobuf:"bytes,2,opt,name=metric_node_id,json=metricNodeId,proto3" json:"metric_node_id,omitempty"`
|
|
// Output. The status of the metric reporting.
|
|
Status ReportRunMetricsResponse_ReportRunMetricResult_Status `protobuf:"varint,3,opt,name=status,proto3,enum=api.ReportRunMetricsResponse_ReportRunMetricResult_Status" json:"status,omitempty"`
|
|
// Output. The detailed message of the error of the reporting.
|
|
Message string `protobuf:"bytes,4,opt,name=message,proto3" json:"message,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) Reset() {
|
|
*m = ReportRunMetricsResponse_ReportRunMetricResult{}
|
|
}
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) String() string {
|
|
return proto.CompactTextString(m)
|
|
}
|
|
func (*ReportRunMetricsResponse_ReportRunMetricResult) ProtoMessage() {}
|
|
func (*ReportRunMetricsResponse_ReportRunMetricResult) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{14, 0}
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult.Unmarshal(m, b)
|
|
}
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult.Merge(m, src)
|
|
}
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) XXX_Size() int {
|
|
return xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult.Size(m)
|
|
}
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReportRunMetricsResponse_ReportRunMetricResult proto.InternalMessageInfo
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) GetMetricName() string {
|
|
if m != nil {
|
|
return m.MetricName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) GetMetricNodeId() string {
|
|
if m != nil {
|
|
return m.MetricNodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) GetStatus() ReportRunMetricsResponse_ReportRunMetricResult_Status {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return ReportRunMetricsResponse_ReportRunMetricResult_UNSPECIFIED
|
|
}
|
|
|
|
func (m *ReportRunMetricsResponse_ReportRunMetricResult) GetMessage() string {
|
|
if m != nil {
|
|
return m.Message
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ReadArtifactRequest struct {
|
|
// The ID of the run.
|
|
RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
|
|
// The ID of the running node.
|
|
NodeId string `protobuf:"bytes,2,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
|
|
// The name of the artifact.
|
|
ArtifactName string `protobuf:"bytes,3,opt,name=artifact_name,json=artifactName,proto3" json:"artifact_name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadArtifactRequest) Reset() { *m = ReadArtifactRequest{} }
|
|
func (m *ReadArtifactRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadArtifactRequest) ProtoMessage() {}
|
|
func (*ReadArtifactRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{15}
|
|
}
|
|
|
|
func (m *ReadArtifactRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadArtifactRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadArtifactRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadArtifactRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReadArtifactRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadArtifactRequest.Merge(m, src)
|
|
}
|
|
func (m *ReadArtifactRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ReadArtifactRequest.Size(m)
|
|
}
|
|
func (m *ReadArtifactRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadArtifactRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadArtifactRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReadArtifactRequest) GetRunId() string {
|
|
if m != nil {
|
|
return m.RunId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadArtifactRequest) GetNodeId() string {
|
|
if m != nil {
|
|
return m.NodeId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ReadArtifactRequest) GetArtifactName() string {
|
|
if m != nil {
|
|
return m.ArtifactName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ReadArtifactResponse struct {
|
|
// The bytes of the artifact content.
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadArtifactResponse) Reset() { *m = ReadArtifactResponse{} }
|
|
func (m *ReadArtifactResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadArtifactResponse) ProtoMessage() {}
|
|
func (*ReadArtifactResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_50e61ed8e40fd87e, []int{16}
|
|
}
|
|
|
|
func (m *ReadArtifactResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadArtifactResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ReadArtifactResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadArtifactResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ReadArtifactResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadArtifactResponse.Merge(m, src)
|
|
}
|
|
func (m *ReadArtifactResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ReadArtifactResponse.Size(m)
|
|
}
|
|
func (m *ReadArtifactResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadArtifactResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadArtifactResponse proto.InternalMessageInfo
|
|
|
|
func (m *ReadArtifactResponse) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("api.Run_StorageState", Run_StorageState_name, Run_StorageState_value)
|
|
proto.RegisterEnum("api.RunMetric_Format", RunMetric_Format_name, RunMetric_Format_value)
|
|
proto.RegisterEnum("api.ReportRunMetricsResponse_ReportRunMetricResult_Status", ReportRunMetricsResponse_ReportRunMetricResult_Status_name, ReportRunMetricsResponse_ReportRunMetricResult_Status_value)
|
|
proto.RegisterType((*CreateRunRequest)(nil), "api.CreateRunRequest")
|
|
proto.RegisterType((*GetRunRequest)(nil), "api.GetRunRequest")
|
|
proto.RegisterType((*ListRunsRequest)(nil), "api.ListRunsRequest")
|
|
proto.RegisterType((*TerminateRunRequest)(nil), "api.TerminateRunRequest")
|
|
proto.RegisterType((*RetryRunRequest)(nil), "api.RetryRunRequest")
|
|
proto.RegisterType((*ListRunsResponse)(nil), "api.ListRunsResponse")
|
|
proto.RegisterType((*ArchiveRunRequest)(nil), "api.ArchiveRunRequest")
|
|
proto.RegisterType((*UnarchiveRunRequest)(nil), "api.UnarchiveRunRequest")
|
|
proto.RegisterType((*DeleteRunRequest)(nil), "api.DeleteRunRequest")
|
|
proto.RegisterType((*Run)(nil), "api.Run")
|
|
proto.RegisterType((*PipelineRuntime)(nil), "api.PipelineRuntime")
|
|
proto.RegisterType((*RunDetail)(nil), "api.RunDetail")
|
|
proto.RegisterType((*RunMetric)(nil), "api.RunMetric")
|
|
proto.RegisterType((*ReportRunMetricsRequest)(nil), "api.ReportRunMetricsRequest")
|
|
proto.RegisterType((*ReportRunMetricsResponse)(nil), "api.ReportRunMetricsResponse")
|
|
proto.RegisterType((*ReportRunMetricsResponse_ReportRunMetricResult)(nil), "api.ReportRunMetricsResponse.ReportRunMetricResult")
|
|
proto.RegisterType((*ReadArtifactRequest)(nil), "api.ReadArtifactRequest")
|
|
proto.RegisterType((*ReadArtifactResponse)(nil), "api.ReadArtifactResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("backend/api/run.proto", fileDescriptor_50e61ed8e40fd87e) }
|
|
|
|
var fileDescriptor_50e61ed8e40fd87e = []byte{
|
|
// 1580 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcd, 0x6e, 0xe3, 0xc8,
|
|
0x11, 0x36, 0x25, 0x5b, 0xb2, 0x4a, 0x7f, 0x74, 0xfb, 0x8f, 0xa3, 0xb1, 0x61, 0x2f, 0xbd, 0xbb,
|
|
0xe3, 0x9d, 0xac, 0x25, 0xac, 0x27, 0x08, 0x10, 0x07, 0x41, 0x40, 0xdb, 0x1a, 0xaf, 0x32, 0xb6,
|
|
0xec, 0xb4, 0x64, 0x07, 0x98, 0x1c, 0x08, 0x8a, 0x6a, 0xc9, 0x8c, 0x25, 0x92, 0xe9, 0x6e, 0xda,
|
|
0xf1, 0x0c, 0xe6, 0x12, 0x60, 0x91, 0x7b, 0x72, 0xc8, 0x2d, 0x0f, 0xb1, 0x0f, 0x11, 0x20, 0xe7,
|
|
0xbc, 0x42, 0x1e, 0x64, 0xc1, 0x6e, 0x52, 0x43, 0xfd, 0x58, 0x06, 0xf6, 0x24, 0x75, 0xd5, 0xd7,
|
|
0x55, 0xc5, 0xaa, 0xfa, 0x8a, 0x45, 0x58, 0xef, 0x58, 0xf6, 0x1d, 0x71, 0xbb, 0x35, 0xcb, 0x77,
|
|
0x6a, 0x34, 0x70, 0xab, 0x3e, 0xf5, 0xb8, 0x87, 0xd2, 0x96, 0xef, 0x54, 0x36, 0x93, 0x3a, 0x42,
|
|
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x0b, 0x3a, 0x24, 0xdc, 0x37, 0x46, 0x1f, 0x8a, 0xac, 0x96,
|
|
0xfc, 0x3a, 0xec, 0x7b, 0xa6, 0x3d, 0x70, 0x88, 0xcb, 0x3b, 0x19, 0xf1, 0x08, 0x6f, 0x7e, 0x0a,
|
|
0x00, 0x00, 0xff, 0xff, 0xd6, 0x6b, 0x76, 0xde, 0xef, 0x0e, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// RunServiceClient is the client API for RunService service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type RunServiceClient interface {
|
|
// Creates a new run.
|
|
CreateRun(ctx context.Context, in *CreateRunRequest, opts ...grpc.CallOption) (*RunDetail, error)
|
|
// Finds a specific run by ID.
|
|
GetRun(ctx context.Context, in *GetRunRequest, opts ...grpc.CallOption) (*RunDetail, error)
|
|
// Finds all runs.
|
|
ListRuns(ctx context.Context, in *ListRunsRequest, opts ...grpc.CallOption) (*ListRunsResponse, error)
|
|
// Archives a run.
|
|
ArchiveRun(ctx context.Context, in *ArchiveRunRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
// Restores an archived run.
|
|
UnarchiveRun(ctx context.Context, in *UnarchiveRunRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
// Deletes a run.
|
|
DeleteRun(ctx context.Context, in *DeleteRunRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
// ReportRunMetrics reports metrics of a run. Each metric is reported in its
|
|
// own transaction, so this API accepts partial failures. Metric can be
|
|
// uniquely identified by (run_id, node_id, name). Duplicate reporting will be
|
|
// ignored by the API. First reporting wins.
|
|
ReportRunMetrics(ctx context.Context, in *ReportRunMetricsRequest, opts ...grpc.CallOption) (*ReportRunMetricsResponse, error)
|
|
// Finds a run's artifact data.
|
|
ReadArtifact(ctx context.Context, in *ReadArtifactRequest, opts ...grpc.CallOption) (*ReadArtifactResponse, error)
|
|
// Terminates an active run.
|
|
TerminateRun(ctx context.Context, in *TerminateRunRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
// Re-initiates a failed or terminated run.
|
|
RetryRun(ctx context.Context, in *RetryRunRequest, opts ...grpc.CallOption) (*empty.Empty, error)
|
|
}
|
|
|
|
type runServiceClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRunServiceClient(cc *grpc.ClientConn) RunServiceClient {
|
|
return &runServiceClient{cc}
|
|
}
|
|
|
|
func (c *runServiceClient) CreateRun(ctx context.Context, in *CreateRunRequest, opts ...grpc.CallOption) (*RunDetail, error) {
|
|
out := new(RunDetail)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/CreateRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) GetRun(ctx context.Context, in *GetRunRequest, opts ...grpc.CallOption) (*RunDetail, error) {
|
|
out := new(RunDetail)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/GetRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) ListRuns(ctx context.Context, in *ListRunsRequest, opts ...grpc.CallOption) (*ListRunsResponse, error) {
|
|
out := new(ListRunsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/ListRuns", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) ArchiveRun(ctx context.Context, in *ArchiveRunRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/ArchiveRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) UnarchiveRun(ctx context.Context, in *UnarchiveRunRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/UnarchiveRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) DeleteRun(ctx context.Context, in *DeleteRunRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/DeleteRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) ReportRunMetrics(ctx context.Context, in *ReportRunMetricsRequest, opts ...grpc.CallOption) (*ReportRunMetricsResponse, error) {
|
|
out := new(ReportRunMetricsResponse)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/ReportRunMetrics", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) ReadArtifact(ctx context.Context, in *ReadArtifactRequest, opts ...grpc.CallOption) (*ReadArtifactResponse, error) {
|
|
out := new(ReadArtifactResponse)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/ReadArtifact", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) TerminateRun(ctx context.Context, in *TerminateRunRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/TerminateRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *runServiceClient) RetryRun(ctx context.Context, in *RetryRunRequest, opts ...grpc.CallOption) (*empty.Empty, error) {
|
|
out := new(empty.Empty)
|
|
err := c.cc.Invoke(ctx, "/api.RunService/RetryRun", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// RunServiceServer is the server API for RunService service.
|
|
type RunServiceServer interface {
|
|
// Creates a new run.
|
|
CreateRun(context.Context, *CreateRunRequest) (*RunDetail, error)
|
|
// Finds a specific run by ID.
|
|
GetRun(context.Context, *GetRunRequest) (*RunDetail, error)
|
|
// Finds all runs.
|
|
ListRuns(context.Context, *ListRunsRequest) (*ListRunsResponse, error)
|
|
// Archives a run.
|
|
ArchiveRun(context.Context, *ArchiveRunRequest) (*empty.Empty, error)
|
|
// Restores an archived run.
|
|
UnarchiveRun(context.Context, *UnarchiveRunRequest) (*empty.Empty, error)
|
|
// Deletes a run.
|
|
DeleteRun(context.Context, *DeleteRunRequest) (*empty.Empty, error)
|
|
// ReportRunMetrics reports metrics of a run. Each metric is reported in its
|
|
// own transaction, so this API accepts partial failures. Metric can be
|
|
// uniquely identified by (run_id, node_id, name). Duplicate reporting will be
|
|
// ignored by the API. First reporting wins.
|
|
ReportRunMetrics(context.Context, *ReportRunMetricsRequest) (*ReportRunMetricsResponse, error)
|
|
// Finds a run's artifact data.
|
|
ReadArtifact(context.Context, *ReadArtifactRequest) (*ReadArtifactResponse, error)
|
|
// Terminates an active run.
|
|
TerminateRun(context.Context, *TerminateRunRequest) (*empty.Empty, error)
|
|
// Re-initiates a failed or terminated run.
|
|
RetryRun(context.Context, *RetryRunRequest) (*empty.Empty, error)
|
|
}
|
|
|
|
// UnimplementedRunServiceServer can be embedded to have forward compatible implementations.
|
|
type UnimplementedRunServiceServer struct {
|
|
}
|
|
|
|
func (*UnimplementedRunServiceServer) CreateRun(ctx context.Context, req *CreateRunRequest) (*RunDetail, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method CreateRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) GetRun(ctx context.Context, req *GetRunRequest) (*RunDetail, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) ListRuns(ctx context.Context, req *ListRunsRequest) (*ListRunsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ListRuns not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) ArchiveRun(ctx context.Context, req *ArchiveRunRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ArchiveRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) UnarchiveRun(ctx context.Context, req *UnarchiveRunRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method UnarchiveRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) DeleteRun(ctx context.Context, req *DeleteRunRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method DeleteRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) ReportRunMetrics(ctx context.Context, req *ReportRunMetricsRequest) (*ReportRunMetricsResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReportRunMetrics not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) ReadArtifact(ctx context.Context, req *ReadArtifactRequest) (*ReadArtifactResponse, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ReadArtifact not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) TerminateRun(ctx context.Context, req *TerminateRunRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method TerminateRun not implemented")
|
|
}
|
|
func (*UnimplementedRunServiceServer) RetryRun(ctx context.Context, req *RetryRunRequest) (*empty.Empty, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method RetryRun not implemented")
|
|
}
|
|
|
|
func RegisterRunServiceServer(s *grpc.Server, srv RunServiceServer) {
|
|
s.RegisterService(&_RunService_serviceDesc, srv)
|
|
}
|
|
|
|
func _RunService_CreateRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CreateRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).CreateRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/CreateRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).CreateRun(ctx, req.(*CreateRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_GetRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).GetRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/GetRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).GetRun(ctx, req.(*GetRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_ListRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ListRunsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).ListRuns(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/ListRuns",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).ListRuns(ctx, req.(*ListRunsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_ArchiveRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ArchiveRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).ArchiveRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/ArchiveRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).ArchiveRun(ctx, req.(*ArchiveRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_UnarchiveRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UnarchiveRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).UnarchiveRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/UnarchiveRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).UnarchiveRun(ctx, req.(*UnarchiveRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_DeleteRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(DeleteRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).DeleteRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/DeleteRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).DeleteRun(ctx, req.(*DeleteRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_ReportRunMetrics_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReportRunMetricsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).ReportRunMetrics(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/ReportRunMetrics",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).ReportRunMetrics(ctx, req.(*ReportRunMetricsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_ReadArtifact_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReadArtifactRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).ReadArtifact(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/ReadArtifact",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).ReadArtifact(ctx, req.(*ReadArtifactRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_TerminateRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(TerminateRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).TerminateRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/TerminateRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).TerminateRun(ctx, req.(*TerminateRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RunService_RetryRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RetryRunRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RunServiceServer).RetryRun(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/api.RunService/RetryRun",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RunServiceServer).RetryRun(ctx, req.(*RetryRunRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _RunService_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "api.RunService",
|
|
HandlerType: (*RunServiceServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "CreateRun",
|
|
Handler: _RunService_CreateRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "GetRun",
|
|
Handler: _RunService_GetRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "ListRuns",
|
|
Handler: _RunService_ListRuns_Handler,
|
|
},
|
|
{
|
|
MethodName: "ArchiveRun",
|
|
Handler: _RunService_ArchiveRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "UnarchiveRun",
|
|
Handler: _RunService_UnarchiveRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeleteRun",
|
|
Handler: _RunService_DeleteRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReportRunMetrics",
|
|
Handler: _RunService_ReportRunMetrics_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReadArtifact",
|
|
Handler: _RunService_ReadArtifact_Handler,
|
|
},
|
|
{
|
|
MethodName: "TerminateRun",
|
|
Handler: _RunService_TerminateRun_Handler,
|
|
},
|
|
{
|
|
MethodName: "RetryRun",
|
|
Handler: _RunService_RetryRun_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "backend/api/run.proto",
|
|
}
|