From a75447706c45982e880062d0ca4d985020a75ded Mon Sep 17 00:00:00 2001 From: Artem Gavrilov Date: Mon, 29 Mar 2021 10:59:29 +0200 Subject: [PATCH] PMM-7590 Jobs API (#702) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Remove myself from CODEOWNERS * PMM-7557: Add bucket name field (#691) * PMM-7379 alert rule name edit (#692) * Remove myself from CODEOWNERS * PMM-7379 Add summary field to update request * PMM-7379 Update comment Co-authored-by: Alexey Palazhchenko * PMM-7590 Define some basic types for Jobs API * PMM-7590 Fix deps * PMM-7590 Update * PMM-7337 add STT check intervals (#687) * PMM-7337 add intervals in serverpb/server.proto * PMM-7337 generate files * Remove myself from CODEOWNERS * PMM-7337 update generated file * PMM-7337 fix comments * PMM-7337 update generated code * PMM-7337 fix name for standard interval * PMM-7337 update generated code * PMM-7337 fix comments Co-authored-by: Alexey Palazhchenko Co-authored-by: Artem Gavrilov * PMM-7508 Add GetResources RPC to XtraDB API * PMM-7508 Add GetResources RPC to XtraDB API * PMM-7508 Add GetPSMDBClusterResources RPC to PSMDB API * PMM-7119 Add field name to UpdateTemplateRequest (#663) Co-authored-by: Alexey Palazhchenko Co-authored-by: Nurlan Moldomurov * PMM-7313 Updated RDS (#693) * Remove myself from CODEOWNERS * PMM-7313 Updated RDS * PMM-7313 Added pg_statement to Add RDS request * PMM-7313 Renamed PG RDS param * PMM-7313 Updated RDS PG definitions * PMM-7313 Removed pg_statmonitor from request * PMM-7313 removed statmonitor from response * PMM-7313 Updated deps * Update descriptors (#700) Co-authored-by: Alexey Palazhchenko Co-authored-by: Nurlan Moldomurov * PMM-7555 QAN PostgreSQL. (#697) * PMM-7555 Gen. * PMM-7555 Database in queryexample. * Revert "PMM-7555 Database in queryexample." This reverts commit 4c3e992bc37666c9c70498112bb00041ae8bc9c4. * PMM-7555 Change order. * PMM-7503 Add GetResources RPC to DBaaS Kubernetes API (#699) * PMM-7503 Add GetResources RPC to DBaaS Kubernetes API * PMM-7521 Alert templates pagination (#695) * PMM-7521 Alert templates pagination * PMM-7521 Add validation for page params * PMM-7522 PageSize has to be greater than 0 * Merge * PMM-7522 Notifications channels paging (#698) * PMM-7590 Make Jobs API onle directional, add progress message * PMM-7590 Refactoring * PMM-7590 Update * PMM-7590 Update * PMM-7590 Update * PMM-7590 Use go-sumtype for jobs API * PMM-7590 Fix dependencies * PMM-7590 Update * PMM-7590 Add jobs to management API * PMM-7590 Update * PMM-7590 Update * PMM-7590 Fix typos * PMM-7590 Add timeout to echo job * PMM-7590 Add fields to GetJobResponse * PMM-7590 Refactoring * PMM-7590 Move jobs api to separate package * PMM-7590 Fix package name * PMM-7590 Fix comments, add validation * PMM-7590 Fix validation * PMM-7590 Add error field to StartJobResponse Co-authored-by: Alexey Palazhchenko Co-authored-by: Maksym <4347218+oter@users.noreply.github.com> Co-authored-by: Dávid Mikuš Co-authored-by: Nicola Lamacchia Co-authored-by: Tiago Mota Santos Co-authored-by: Alexey Palazhchenko Co-authored-by: Nurlan Moldomurov Co-authored-by: Carlos Salguero Co-authored-by: JiriCtvrtka <62988319+JiriCtvrtka@users.noreply.github.com> Co-authored-by: Jan Prukner Co-authored-by: Tiago Mota Santos --- api/agentpb/agent.go | 46 + api/agentpb/agent.pb.go | 1819 ++++++++++++++++---- api/agentpb/agent.proto | 77 + api/agentpb/agent.validator.pb.go | 140 ++ api/managementpb/jobs/jobs.pb.go | 912 ++++++++++ api/managementpb/jobs/jobs.pb.gw.go | 331 ++++ api/managementpb/jobs/jobs.proto | 96 ++ api/managementpb/jobs/jobs.validator.pb.go | 77 + 8 files changed, 3128 insertions(+), 370 deletions(-) create mode 100644 api/managementpb/jobs/jobs.pb.go create mode 100644 api/managementpb/jobs/jobs.pb.gw.go create mode 100644 api/managementpb/jobs/jobs.proto create mode 100644 api/managementpb/jobs/jobs.validator.pb.go diff --git a/api/agentpb/agent.go b/api/agentpb/agent.go index f134520862..b1c81470c8 100644 --- a/api/agentpb/agent.go +++ b/api/agentpb/agent.go @@ -54,6 +54,12 @@ func (m *QANCollectRequest) AgentMessageRequestPayload() isAgentMessage_Payload func (m *ActionResultRequest) AgentMessageRequestPayload() isAgentMessage_Payload { return &AgentMessage_ActionResult{ActionResult: m} } +func (m *JobProgress) AgentMessageRequestPayload() isAgentMessage_Payload { + return &AgentMessage_JobProgress{JobProgress: m} +} +func (m *JobResult) AgentMessageRequestPayload() isAgentMessage_Payload { + return &AgentMessage_JobResult{JobResult: m} +} // AgentMessage response payloads func (m *Pong) AgentMessageResponsePayload() isAgentMessage_Payload { @@ -71,6 +77,21 @@ func (m *StopActionResponse) AgentMessageResponsePayload() isAgentMessage_Payloa func (m *CheckConnectionResponse) AgentMessageResponsePayload() isAgentMessage_Payload { return &AgentMessage_CheckConnection{CheckConnection: m} } +func (m *JobStatusResponse) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_JobStatus{JobStatus: m} +} +func (m *StartJobResponse) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_StartJob{StartJob: m} +} +func (m *StopJobResponse) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_StopJob{StopJob: m} +} +func (m *JobProgress) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_JobProgress{JobProgress: m} +} +func (m *JobResult) AgentMessageResponsePayload() isAgentMessage_Payload { + return &AgentMessage_JobResult{JobResult: m} +} // ServerMessage response payloads func (m *Pong) ServerMessageResponsePayload() isServerMessage_Payload { @@ -102,12 +123,25 @@ func (m *StopActionRequest) ServerMessageRequestPayload() isServerMessage_Payloa func (m *CheckConnectionRequest) ServerMessageRequestPayload() isServerMessage_Payload { return &ServerMessage_CheckConnection{CheckConnection: m} } +func (m *StartJobRequest) ServerMessageRequestPayload() isServerMessage_Payload { + return &ServerMessage_StartJob{StartJob: m} +} +func (m *StopJobRequest) ServerMessageRequestPayload() isServerMessage_Payload { + return &ServerMessage_StopJob{StopJob: m} +} +func (m *JobStatusRequest) ServerMessageRequestPayload() isServerMessage_Payload { + return &ServerMessage_JobStatus{JobStatus: m} +} // in alphabetical order func (*ActionResultRequest) sealed() {} func (*ActionResultResponse) sealed() {} func (*CheckConnectionRequest) sealed() {} func (*CheckConnectionResponse) sealed() {} +func (*JobProgress) sealed() {} +func (*JobResult) sealed() {} +func (*JobStatusRequest) sealed() {} +func (*JobStatusResponse) sealed() {} func (*Ping) sealed() {} func (*Pong) sealed() {} func (*QANCollectRequest) sealed() {} @@ -116,10 +150,14 @@ func (*SetStateRequest) sealed() {} func (*SetStateResponse) sealed() {} func (*StartActionRequest) sealed() {} func (*StartActionResponse) sealed() {} +func (*StartJobRequest) sealed() {} +func (*StartJobResponse) sealed() {} func (*StateChangedRequest) sealed() {} func (*StateChangedResponse) sealed() {} func (*StopActionRequest) sealed() {} func (*StopActionResponse) sealed() {} +func (*StopJobRequest) sealed() {} +func (*StopJobResponse) sealed() {} // check interfaces var ( @@ -135,6 +173,11 @@ var ( _ AgentResponsePayload = (*StartActionResponse)(nil) _ AgentResponsePayload = (*StopActionResponse)(nil) _ AgentResponsePayload = (*CheckConnectionResponse)(nil) + _ AgentResponsePayload = (*JobProgress)(nil) + _ AgentResponsePayload = (*JobResult)(nil) + _ AgentResponsePayload = (*StartJobResponse)(nil) + _ AgentResponsePayload = (*StopJobResponse)(nil) + _ AgentResponsePayload = (*JobStatusResponse)(nil) // ServerMessage response payloads _ ServerResponsePayload = (*Pong)(nil) @@ -148,6 +191,9 @@ var ( _ ServerRequestPayload = (*StartActionRequest)(nil) _ ServerRequestPayload = (*StopActionRequest)(nil) _ ServerRequestPayload = (*CheckConnectionRequest)(nil) + _ ServerRequestPayload = (*StartJobRequest)(nil) + _ ServerRequestPayload = (*StopJobRequest)(nil) + _ ServerRequestPayload = (*JobStatusRequest)(nil) ) //go-sumtype:decl AgentParams diff --git a/api/agentpb/agent.pb.go b/api/agentpb/agent.pb.go index 1392fae56d..92326a8d23 100644 --- a/api/agentpb/agent.pb.go +++ b/api/agentpb/agent.pb.go @@ -1565,6 +1565,501 @@ func (x *CheckConnectionResponse) GetStats() *CheckConnectionResponse_Stats { return nil } +// JobStatusRequest is a ServerMessage asking pmm-agent for job status. +type JobStatusRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *JobStatusRequest) Reset() { + *x = JobStatusRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[21] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStatusRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStatusRequest) ProtoMessage() {} + +func (x *JobStatusRequest) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[21] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JobStatusRequest.ProtoReflect.Descriptor instead. +func (*JobStatusRequest) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{21} +} + +func (x *JobStatusRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +// JobStatusResponse is an AgentMessage containing job status. +type JobStatusResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Alive bool `protobuf:"varint,1,opt,name=alive,proto3" json:"alive,omitempty"` +} + +func (x *JobStatusResponse) Reset() { + *x = JobStatusResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[22] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobStatusResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobStatusResponse) ProtoMessage() {} + +func (x *JobStatusResponse) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[22] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use JobStatusResponse.ProtoReflect.Descriptor instead. +func (*JobStatusResponse) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{22} +} + +func (x *JobStatusResponse) GetAlive() bool { + if x != nil { + return x.Alive + } + return false +} + +// StartJobRequest is a ServerMessage asking pmm-agent to start job. +type StartJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + // Timeout for the job. + Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + // Types that are assignable to Job: + // *StartJobRequest_Echo_ + Job isStartJobRequest_Job `protobuf_oneof:"job"` +} + +func (x *StartJobRequest) Reset() { + *x = StartJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[23] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartJobRequest) ProtoMessage() {} + +func (x *StartJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[23] + 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 StartJobRequest.ProtoReflect.Descriptor instead. +func (*StartJobRequest) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{23} +} + +func (x *StartJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *StartJobRequest) GetTimeout() *duration.Duration { + if x != nil { + return x.Timeout + } + return nil +} + +func (m *StartJobRequest) GetJob() isStartJobRequest_Job { + if m != nil { + return m.Job + } + return nil +} + +func (x *StartJobRequest) GetEcho() *StartJobRequest_Echo { + if x, ok := x.GetJob().(*StartJobRequest_Echo_); ok { + return x.Echo + } + return nil +} + +type isStartJobRequest_Job interface { + isStartJobRequest_Job() +} + +type StartJobRequest_Echo_ struct { + Echo *StartJobRequest_Echo `protobuf:"bytes,10,opt,name=echo,proto3,oneof"` +} + +func (*StartJobRequest_Echo_) isStartJobRequest_Job() {} + +// StartJobResponse is an AgentMessage for StartJobRequest acceptance. +type StartJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` +} + +func (x *StartJobResponse) Reset() { + *x = StartJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[24] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartJobResponse) ProtoMessage() {} + +func (x *StartJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[24] + 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 StartJobResponse.ProtoReflect.Descriptor instead. +func (*StartJobResponse) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{24} +} + +func (x *StartJobResponse) GetError() string { + if x != nil { + return x.Error + } + return "" +} + +// StopJobRequest is a ServerMessage asking pmm-agent to stop job. +type StopJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *StopJobRequest) Reset() { + *x = StopJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[25] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StopJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StopJobRequest) ProtoMessage() {} + +func (x *StopJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[25] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StopJobRequest.ProtoReflect.Descriptor instead. +func (*StopJobRequest) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{25} +} + +func (x *StopJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +// StopJobResponse is an AgentMessage for StopJobRequest acceptance. +type StopJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *StopJobResponse) Reset() { + *x = StopJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[26] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StopJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StopJobResponse) ProtoMessage() {} + +func (x *StopJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[26] + 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 StopJobResponse.ProtoReflect.Descriptor instead. +func (*StopJobResponse) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{26} +} + +// JobResult represents job result. +type JobResult struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Types that are assignable to Result: + // *JobResult_Error_ + // *JobResult_Echo_ + Result isJobResult_Result `protobuf_oneof:"result"` +} + +func (x *JobResult) Reset() { + *x = JobResult{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[27] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobResult) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobResult) ProtoMessage() {} + +func (x *JobResult) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[27] + 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 JobResult.ProtoReflect.Descriptor instead. +func (*JobResult) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{27} +} + +func (x *JobResult) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *JobResult) GetTimestamp() *timestamp.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (m *JobResult) GetResult() isJobResult_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *JobResult) GetError() *JobResult_Error { + if x, ok := x.GetResult().(*JobResult_Error_); ok { + return x.Error + } + return nil +} + +func (x *JobResult) GetEcho() *JobResult_Echo { + if x, ok := x.GetResult().(*JobResult_Echo_); ok { + return x.Echo + } + return nil +} + +type isJobResult_Result interface { + isJobResult_Result() +} + +type JobResult_Error_ struct { + Error *JobResult_Error `protobuf:"bytes,10,opt,name=error,proto3,oneof"` +} + +type JobResult_Echo_ struct { + Echo *JobResult_Echo `protobuf:"bytes,11,opt,name=echo,proto3,oneof"` +} + +func (*JobResult_Error_) isJobResult_Result() {} + +func (*JobResult_Echo_) isJobResult_Result() {} + +// JobProgress represents job progress messages like percentage of completion, status updates, etc. +type JobProgress struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + Timestamp *timestamp.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` + // Types that are assignable to Result: + // *JobProgress_Echo_ + Result isJobProgress_Result `protobuf_oneof:"result"` +} + +func (x *JobProgress) Reset() { + *x = JobProgress{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[28] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *JobProgress) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*JobProgress) ProtoMessage() {} + +func (x *JobProgress) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_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 JobProgress.ProtoReflect.Descriptor instead. +func (*JobProgress) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{28} +} + +func (x *JobProgress) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *JobProgress) GetTimestamp() *timestamp.Timestamp { + if x != nil { + return x.Timestamp + } + return nil +} + +func (m *JobProgress) GetResult() isJobProgress_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *JobProgress) GetEcho() *JobProgress_Echo { + if x, ok := x.GetResult().(*JobProgress_Echo_); ok { + return x.Echo + } + return nil +} + +type isJobProgress_Result interface { + isJobProgress_Result() +} + +type JobProgress_Echo_ struct { + Echo *JobProgress_Echo `protobuf:"bytes,10,opt,name=echo,proto3,oneof"` +} + +func (*JobProgress_Echo_) isJobProgress_Result() {} + type AgentMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1581,13 +2076,18 @@ type AgentMessage struct { // *AgentMessage_StartAction // *AgentMessage_StopAction // *AgentMessage_CheckConnection + // *AgentMessage_StartJob + // *AgentMessage_StopJob + // *AgentMessage_JobStatus + // *AgentMessage_JobResult + // *AgentMessage_JobProgress Payload isAgentMessage_Payload `protobuf_oneof:"payload"` } func (x *AgentMessage) Reset() { *x = AgentMessage{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[21] + mi := &file_agentpb_agent_proto_msgTypes[29] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1600,7 +2100,7 @@ func (x *AgentMessage) String() string { func (*AgentMessage) ProtoMessage() {} func (x *AgentMessage) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[21] + mi := &file_agentpb_agent_proto_msgTypes[29] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1613,7 +2113,7 @@ func (x *AgentMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use AgentMessage.ProtoReflect.Descriptor instead. func (*AgentMessage) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{21} + return file_agentpb_agent_proto_rawDescGZIP(), []int{29} } func (x *AgentMessage) GetId() uint32 { @@ -1693,6 +2193,41 @@ func (x *AgentMessage) GetCheckConnection() *CheckConnectionResponse { return nil } +func (x *AgentMessage) GetStartJob() *StartJobResponse { + if x, ok := x.GetPayload().(*AgentMessage_StartJob); ok { + return x.StartJob + } + return nil +} + +func (x *AgentMessage) GetStopJob() *StopJobResponse { + if x, ok := x.GetPayload().(*AgentMessage_StopJob); ok { + return x.StopJob + } + return nil +} + +func (x *AgentMessage) GetJobStatus() *JobStatusResponse { + if x, ok := x.GetPayload().(*AgentMessage_JobStatus); ok { + return x.JobStatus + } + return nil +} + +func (x *AgentMessage) GetJobResult() *JobResult { + if x, ok := x.GetPayload().(*AgentMessage_JobResult); ok { + return x.JobResult + } + return nil +} + +func (x *AgentMessage) GetJobProgress() *JobProgress { + if x, ok := x.GetPayload().(*AgentMessage_JobProgress); ok { + return x.JobProgress + } + return nil +} + type isAgentMessage_Payload interface { isAgentMessage_Payload() } @@ -1735,6 +2270,26 @@ type AgentMessage_CheckConnection struct { CheckConnection *CheckConnectionResponse `protobuf:"bytes,12,opt,name=check_connection,json=checkConnection,proto3,oneof"` } +type AgentMessage_StartJob struct { + StartJob *StartJobResponse `protobuf:"bytes,13,opt,name=start_job,json=startJob,proto3,oneof"` +} + +type AgentMessage_StopJob struct { + StopJob *StopJobResponse `protobuf:"bytes,14,opt,name=stop_job,json=stopJob,proto3,oneof"` +} + +type AgentMessage_JobStatus struct { + JobStatus *JobStatusResponse `protobuf:"bytes,15,opt,name=job_status,json=jobStatus,proto3,oneof"` +} + +type AgentMessage_JobResult struct { + JobResult *JobResult `protobuf:"bytes,16,opt,name=job_result,json=jobResult,proto3,oneof"` +} + +type AgentMessage_JobProgress struct { + JobProgress *JobProgress `protobuf:"bytes,17,opt,name=job_progress,json=jobProgress,proto3,oneof"` +} + func (*AgentMessage_Ping) isAgentMessage_Payload() {} func (*AgentMessage_StateChanged) isAgentMessage_Payload() {} @@ -1753,6 +2308,16 @@ func (*AgentMessage_StopAction) isAgentMessage_Payload() {} func (*AgentMessage_CheckConnection) isAgentMessage_Payload() {} +func (*AgentMessage_StartJob) isAgentMessage_Payload() {} + +func (*AgentMessage_StopJob) isAgentMessage_Payload() {} + +func (*AgentMessage_JobStatus) isAgentMessage_Payload() {} + +func (*AgentMessage_JobResult) isAgentMessage_Payload() {} + +func (*AgentMessage_JobProgress) isAgentMessage_Payload() {} + type ServerMessage struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache @@ -1769,13 +2334,16 @@ type ServerMessage struct { // *ServerMessage_StartAction // *ServerMessage_StopAction // *ServerMessage_CheckConnection + // *ServerMessage_StartJob + // *ServerMessage_StopJob + // *ServerMessage_JobStatus Payload isServerMessage_Payload `protobuf_oneof:"payload"` } func (x *ServerMessage) Reset() { *x = ServerMessage{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[22] + mi := &file_agentpb_agent_proto_msgTypes[30] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1788,7 +2356,7 @@ func (x *ServerMessage) String() string { func (*ServerMessage) ProtoMessage() {} func (x *ServerMessage) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[22] + mi := &file_agentpb_agent_proto_msgTypes[30] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -1801,7 +2369,7 @@ func (x *ServerMessage) ProtoReflect() protoreflect.Message { // Deprecated: Use ServerMessage.ProtoReflect.Descriptor instead. func (*ServerMessage) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{22} + return file_agentpb_agent_proto_rawDescGZIP(), []int{30} } func (x *ServerMessage) GetId() uint32 { @@ -1881,6 +2449,27 @@ func (x *ServerMessage) GetCheckConnection() *CheckConnectionRequest { return nil } +func (x *ServerMessage) GetStartJob() *StartJobRequest { + if x, ok := x.GetPayload().(*ServerMessage_StartJob); ok { + return x.StartJob + } + return nil +} + +func (x *ServerMessage) GetStopJob() *StopJobRequest { + if x, ok := x.GetPayload().(*ServerMessage_StopJob); ok { + return x.StopJob + } + return nil +} + +func (x *ServerMessage) GetJobStatus() *JobStatusRequest { + if x, ok := x.GetPayload().(*ServerMessage_JobStatus); ok { + return x.JobStatus + } + return nil +} + type isServerMessage_Payload interface { isServerMessage_Payload() } @@ -1923,6 +2512,18 @@ type ServerMessage_CheckConnection struct { CheckConnection *CheckConnectionRequest `protobuf:"bytes,12,opt,name=check_connection,json=checkConnection,proto3,oneof"` } +type ServerMessage_StartJob struct { + StartJob *StartJobRequest `protobuf:"bytes,13,opt,name=start_job,json=startJob,proto3,oneof"` +} + +type ServerMessage_StopJob struct { + StopJob *StopJobRequest `protobuf:"bytes,14,opt,name=stop_job,json=stopJob,proto3,oneof"` +} + +type ServerMessage_JobStatus struct { + JobStatus *JobStatusRequest `protobuf:"bytes,15,opt,name=job_status,json=jobStatus,proto3,oneof"` +} + func (*ServerMessage_Pong) isServerMessage_Payload() {} func (*ServerMessage_StateChanged) isServerMessage_Payload() {} @@ -1941,6 +2542,12 @@ func (*ServerMessage_StopAction) isServerMessage_Payload() {} func (*ServerMessage_CheckConnection) isServerMessage_Payload() {} +func (*ServerMessage_StartJob) isServerMessage_Payload() {} + +func (*ServerMessage_StopJob) isServerMessage_Payload() {} + +func (*ServerMessage_JobStatus) isServerMessage_Payload() {} + // AgentProcess describes desired configuration of a single agent process started by pmm-agent. type SetStateRequest_AgentProcess struct { state protoimpl.MessageState @@ -1959,7 +2566,7 @@ type SetStateRequest_AgentProcess struct { func (x *SetStateRequest_AgentProcess) Reset() { *x = SetStateRequest_AgentProcess{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[24] + mi := &file_agentpb_agent_proto_msgTypes[32] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -1972,7 +2579,7 @@ func (x *SetStateRequest_AgentProcess) String() string { func (*SetStateRequest_AgentProcess) ProtoMessage() {} func (x *SetStateRequest_AgentProcess) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[24] + mi := &file_agentpb_agent_proto_msgTypes[32] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2056,7 +2663,7 @@ type SetStateRequest_BuiltinAgent struct { func (x *SetStateRequest_BuiltinAgent) Reset() { *x = SetStateRequest_BuiltinAgent{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[26] + mi := &file_agentpb_agent_proto_msgTypes[34] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2069,7 +2676,7 @@ func (x *SetStateRequest_BuiltinAgent) String() string { func (*SetStateRequest_BuiltinAgent) ProtoMessage() {} func (x *SetStateRequest_BuiltinAgent) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[26] + mi := &file_agentpb_agent_proto_msgTypes[34] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2135,7 +2742,7 @@ type StartActionRequest_MySQLExplainParams struct { func (x *StartActionRequest_MySQLExplainParams) Reset() { *x = StartActionRequest_MySQLExplainParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[30] + mi := &file_agentpb_agent_proto_msgTypes[38] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2148,7 +2755,7 @@ func (x *StartActionRequest_MySQLExplainParams) String() string { func (*StartActionRequest_MySQLExplainParams) ProtoMessage() {} func (x *StartActionRequest_MySQLExplainParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[30] + mi := &file_agentpb_agent_proto_msgTypes[38] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2199,7 +2806,7 @@ type StartActionRequest_MySQLShowCreateTableParams struct { func (x *StartActionRequest_MySQLShowCreateTableParams) Reset() { *x = StartActionRequest_MySQLShowCreateTableParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[31] + mi := &file_agentpb_agent_proto_msgTypes[39] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2212,7 +2819,7 @@ func (x *StartActionRequest_MySQLShowCreateTableParams) String() string { func (*StartActionRequest_MySQLShowCreateTableParams) ProtoMessage() {} func (x *StartActionRequest_MySQLShowCreateTableParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[31] + mi := &file_agentpb_agent_proto_msgTypes[39] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2256,7 +2863,7 @@ type StartActionRequest_MySQLShowTableStatusParams struct { func (x *StartActionRequest_MySQLShowTableStatusParams) Reset() { *x = StartActionRequest_MySQLShowTableStatusParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[32] + mi := &file_agentpb_agent_proto_msgTypes[40] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2269,7 +2876,7 @@ func (x *StartActionRequest_MySQLShowTableStatusParams) String() string { func (*StartActionRequest_MySQLShowTableStatusParams) ProtoMessage() {} func (x *StartActionRequest_MySQLShowTableStatusParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[32] + mi := &file_agentpb_agent_proto_msgTypes[40] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2313,7 +2920,7 @@ type StartActionRequest_MySQLShowIndexParams struct { func (x *StartActionRequest_MySQLShowIndexParams) Reset() { *x = StartActionRequest_MySQLShowIndexParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[33] + mi := &file_agentpb_agent_proto_msgTypes[41] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2326,7 +2933,7 @@ func (x *StartActionRequest_MySQLShowIndexParams) String() string { func (*StartActionRequest_MySQLShowIndexParams) ProtoMessage() {} func (x *StartActionRequest_MySQLShowIndexParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[33] + mi := &file_agentpb_agent_proto_msgTypes[41] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2370,7 +2977,7 @@ type StartActionRequest_PostgreSQLShowCreateTableParams struct { func (x *StartActionRequest_PostgreSQLShowCreateTableParams) Reset() { *x = StartActionRequest_PostgreSQLShowCreateTableParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[34] + mi := &file_agentpb_agent_proto_msgTypes[42] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2383,7 +2990,7 @@ func (x *StartActionRequest_PostgreSQLShowCreateTableParams) String() string { func (*StartActionRequest_PostgreSQLShowCreateTableParams) ProtoMessage() {} func (x *StartActionRequest_PostgreSQLShowCreateTableParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[34] + mi := &file_agentpb_agent_proto_msgTypes[42] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2427,7 +3034,7 @@ type StartActionRequest_PostgreSQLShowIndexParams struct { func (x *StartActionRequest_PostgreSQLShowIndexParams) Reset() { *x = StartActionRequest_PostgreSQLShowIndexParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[35] + mi := &file_agentpb_agent_proto_msgTypes[43] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2440,7 +3047,7 @@ func (x *StartActionRequest_PostgreSQLShowIndexParams) String() string { func (*StartActionRequest_PostgreSQLShowIndexParams) ProtoMessage() {} func (x *StartActionRequest_PostgreSQLShowIndexParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[35] + mi := &file_agentpb_agent_proto_msgTypes[43] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2487,7 +3094,7 @@ type StartActionRequest_MongoDBExplainParams struct { func (x *StartActionRequest_MongoDBExplainParams) Reset() { *x = StartActionRequest_MongoDBExplainParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[36] + mi := &file_agentpb_agent_proto_msgTypes[44] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2500,7 +3107,7 @@ func (x *StartActionRequest_MongoDBExplainParams) String() string { func (*StartActionRequest_MongoDBExplainParams) ProtoMessage() {} func (x *StartActionRequest_MongoDBExplainParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[36] + mi := &file_agentpb_agent_proto_msgTypes[44] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2547,7 +3154,7 @@ type StartActionRequest_PTSummaryParams struct { func (x *StartActionRequest_PTSummaryParams) Reset() { *x = StartActionRequest_PTSummaryParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[37] + mi := &file_agentpb_agent_proto_msgTypes[45] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2560,7 +3167,7 @@ func (x *StartActionRequest_PTSummaryParams) String() string { func (*StartActionRequest_PTSummaryParams) ProtoMessage() {} func (x *StartActionRequest_PTSummaryParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[37] + mi := &file_agentpb_agent_proto_msgTypes[45] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2591,7 +3198,7 @@ type StartActionRequest_PTPgSummaryParams struct { func (x *StartActionRequest_PTPgSummaryParams) Reset() { *x = StartActionRequest_PTPgSummaryParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[38] + mi := &file_agentpb_agent_proto_msgTypes[46] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2604,7 +3211,7 @@ func (x *StartActionRequest_PTPgSummaryParams) String() string { func (*StartActionRequest_PTPgSummaryParams) ProtoMessage() {} func (x *StartActionRequest_PTPgSummaryParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[38] + mi := &file_agentpb_agent_proto_msgTypes[46] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2663,7 +3270,7 @@ type StartActionRequest_PTMongoDBSummaryParams struct { func (x *StartActionRequest_PTMongoDBSummaryParams) Reset() { *x = StartActionRequest_PTMongoDBSummaryParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[39] + mi := &file_agentpb_agent_proto_msgTypes[47] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2676,7 +3283,7 @@ func (x *StartActionRequest_PTMongoDBSummaryParams) String() string { func (*StartActionRequest_PTMongoDBSummaryParams) ProtoMessage() {} func (x *StartActionRequest_PTMongoDBSummaryParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[39] + mi := &file_agentpb_agent_proto_msgTypes[47] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2736,7 +3343,7 @@ type StartActionRequest_PTMySQLSummaryParams struct { func (x *StartActionRequest_PTMySQLSummaryParams) Reset() { *x = StartActionRequest_PTMySQLSummaryParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[40] + mi := &file_agentpb_agent_proto_msgTypes[48] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2749,7 +3356,7 @@ func (x *StartActionRequest_PTMySQLSummaryParams) String() string { func (*StartActionRequest_PTMySQLSummaryParams) ProtoMessage() {} func (x *StartActionRequest_PTMySQLSummaryParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[40] + mi := &file_agentpb_agent_proto_msgTypes[48] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2815,7 +3422,7 @@ type StartActionRequest_MySQLQueryShowParams struct { func (x *StartActionRequest_MySQLQueryShowParams) Reset() { *x = StartActionRequest_MySQLQueryShowParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[41] + mi := &file_agentpb_agent_proto_msgTypes[49] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2828,7 +3435,7 @@ func (x *StartActionRequest_MySQLQueryShowParams) String() string { func (*StartActionRequest_MySQLQueryShowParams) ProtoMessage() {} func (x *StartActionRequest_MySQLQueryShowParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[41] + mi := &file_agentpb_agent_proto_msgTypes[49] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2873,7 +3480,7 @@ type StartActionRequest_MySQLQuerySelectParams struct { func (x *StartActionRequest_MySQLQuerySelectParams) Reset() { *x = StartActionRequest_MySQLQuerySelectParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[42] + mi := &file_agentpb_agent_proto_msgTypes[50] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2886,7 +3493,7 @@ func (x *StartActionRequest_MySQLQuerySelectParams) String() string { func (*StartActionRequest_MySQLQuerySelectParams) ProtoMessage() {} func (x *StartActionRequest_MySQLQuerySelectParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[42] + mi := &file_agentpb_agent_proto_msgTypes[50] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2929,7 +3536,7 @@ type StartActionRequest_PostgreSQLQueryShowParams struct { func (x *StartActionRequest_PostgreSQLQueryShowParams) Reset() { *x = StartActionRequest_PostgreSQLQueryShowParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[43] + mi := &file_agentpb_agent_proto_msgTypes[51] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2942,7 +3549,7 @@ func (x *StartActionRequest_PostgreSQLQueryShowParams) String() string { func (*StartActionRequest_PostgreSQLQueryShowParams) ProtoMessage() {} func (x *StartActionRequest_PostgreSQLQueryShowParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[43] + mi := &file_agentpb_agent_proto_msgTypes[51] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -2980,7 +3587,7 @@ type StartActionRequest_PostgreSQLQuerySelectParams struct { func (x *StartActionRequest_PostgreSQLQuerySelectParams) Reset() { *x = StartActionRequest_PostgreSQLQuerySelectParams{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[44] + mi := &file_agentpb_agent_proto_msgTypes[52] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } @@ -2993,7 +3600,7 @@ func (x *StartActionRequest_PostgreSQLQuerySelectParams) String() string { func (*StartActionRequest_PostgreSQLQuerySelectParams) ProtoMessage() {} func (x *StartActionRequest_PostgreSQLQuerySelectParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[44] + mi := &file_agentpb_agent_proto_msgTypes[52] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3018,41 +3625,264 @@ func (x *StartActionRequest_PostgreSQLQuerySelectParams) GetDsn() string { func (x *StartActionRequest_PostgreSQLQuerySelectParams) GetQuery() string { if x != nil { - return x.Query + return x.Query + } + return "" +} + +// MongoDBQueryGetParameterParams describes MongoDB getParameter query action parameters. +type StartActionRequest_MongoDBQueryGetParameterParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // DSN for the service. May contain connection (dial) timeout. + // May contain placeholders for file paths in DSN. + Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` + // Contains files and their contents which can be used in DSN. + TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` +} + +func (x *StartActionRequest_MongoDBQueryGetParameterParams) Reset() { + *x = StartActionRequest_MongoDBQueryGetParameterParams{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[53] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartActionRequest_MongoDBQueryGetParameterParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActionRequest_MongoDBQueryGetParameterParams) ProtoMessage() {} + +func (x *StartActionRequest_MongoDBQueryGetParameterParams) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[53] + 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 StartActionRequest_MongoDBQueryGetParameterParams.ProtoReflect.Descriptor instead. +func (*StartActionRequest_MongoDBQueryGetParameterParams) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 15} +} + +func (x *StartActionRequest_MongoDBQueryGetParameterParams) GetDsn() string { + if x != nil { + return x.Dsn + } + return "" +} + +func (x *StartActionRequest_MongoDBQueryGetParameterParams) GetTextFiles() *TextFiles { + if x != nil { + return x.TextFiles + } + return nil +} + +// MongoDBQueryBuildInfoParams describes MongoDB buildInfo query action parameters. +type StartActionRequest_MongoDBQueryBuildInfoParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // DSN for the service. May contain connection (dial) timeout. + // May contain placeholders for file paths in DSN. + Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` + // Contains files and their contents which can be used in DSN. + TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` +} + +func (x *StartActionRequest_MongoDBQueryBuildInfoParams) Reset() { + *x = StartActionRequest_MongoDBQueryBuildInfoParams{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[54] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartActionRequest_MongoDBQueryBuildInfoParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActionRequest_MongoDBQueryBuildInfoParams) ProtoMessage() {} + +func (x *StartActionRequest_MongoDBQueryBuildInfoParams) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[54] + 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 StartActionRequest_MongoDBQueryBuildInfoParams.ProtoReflect.Descriptor instead. +func (*StartActionRequest_MongoDBQueryBuildInfoParams) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 16} +} + +func (x *StartActionRequest_MongoDBQueryBuildInfoParams) GetDsn() string { + if x != nil { + return x.Dsn + } + return "" +} + +func (x *StartActionRequest_MongoDBQueryBuildInfoParams) GetTextFiles() *TextFiles { + if x != nil { + return x.TextFiles + } + return nil +} + +// MongoDBQueryGetCmdLineOptsParams describes MongoDB getCmdLineOpts query action parameters. +type StartActionRequest_MongoDBQueryGetCmdLineOptsParams struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // DSN for the service. May contain connection (dial) timeout. + // May contain placeholders for file paths in DSN. + Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` + // Contains files and their contents which can be used in DSN. + TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` +} + +func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Reset() { + *x = StartActionRequest_MongoDBQueryGetCmdLineOptsParams{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[55] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams) ProtoMessage() {} + +func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[55] + 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 StartActionRequest_MongoDBQueryGetCmdLineOptsParams.ProtoReflect.Descriptor instead. +func (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 17} +} + +func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) GetDsn() string { + if x != nil { + return x.Dsn + } + return "" +} + +func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) GetTextFiles() *TextFiles { + if x != nil { + return x.TextFiles + } + return nil +} + +// Stats contains various Service statistics. +type CheckConnectionResponse_Stats struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // A number of tables, 0 if unknown. + TableCount int32 `protobuf:"varint,1,opt,name=table_count,json=tableCount,proto3" json:"table_count,omitempty"` +} + +func (x *CheckConnectionResponse_Stats) Reset() { + *x = CheckConnectionResponse_Stats{} + if protoimpl.UnsafeEnabled { + mi := &file_agentpb_agent_proto_msgTypes[56] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CheckConnectionResponse_Stats) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CheckConnectionResponse_Stats) ProtoMessage() {} + +func (x *CheckConnectionResponse_Stats) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[56] + 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 CheckConnectionResponse_Stats.ProtoReflect.Descriptor instead. +func (*CheckConnectionResponse_Stats) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{20, 0} +} + +func (x *CheckConnectionResponse_Stats) GetTableCount() int32 { + if x != nil { + return x.TableCount } - return "" + return 0 } -// MongoDBQueryGetParameterParams describes MongoDB getParameter query action parameters. -type StartActionRequest_MongoDBQueryGetParameterParams struct { +// Echo is a simple echo job that can be delayed. +type StartJobRequest_Echo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // DSN for the service. May contain connection (dial) timeout. - // May contain placeholders for file paths in DSN. - Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` - // Contains files and their contents which can be used in DSN. - TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` + Delay *duration.Duration `protobuf:"bytes,2,opt,name=delay,proto3" json:"delay,omitempty"` } -func (x *StartActionRequest_MongoDBQueryGetParameterParams) Reset() { - *x = StartActionRequest_MongoDBQueryGetParameterParams{} +func (x *StartJobRequest_Echo) Reset() { + *x = StartJobRequest_Echo{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[45] + mi := &file_agentpb_agent_proto_msgTypes[57] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StartActionRequest_MongoDBQueryGetParameterParams) String() string { +func (x *StartJobRequest_Echo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartActionRequest_MongoDBQueryGetParameterParams) ProtoMessage() {} +func (*StartJobRequest_Echo) ProtoMessage() {} -func (x *StartActionRequest_MongoDBQueryGetParameterParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[45] +func (x *StartJobRequest_Echo) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[57] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3063,55 +3893,51 @@ func (x *StartActionRequest_MongoDBQueryGetParameterParams) ProtoReflect() proto return mi.MessageOf(x) } -// Deprecated: Use StartActionRequest_MongoDBQueryGetParameterParams.ProtoReflect.Descriptor instead. -func (*StartActionRequest_MongoDBQueryGetParameterParams) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 15} +// Deprecated: Use StartJobRequest_Echo.ProtoReflect.Descriptor instead. +func (*StartJobRequest_Echo) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{23, 0} } -func (x *StartActionRequest_MongoDBQueryGetParameterParams) GetDsn() string { +func (x *StartJobRequest_Echo) GetMessage() string { if x != nil { - return x.Dsn + return x.Message } return "" } -func (x *StartActionRequest_MongoDBQueryGetParameterParams) GetTextFiles() *TextFiles { +func (x *StartJobRequest_Echo) GetDelay() *duration.Duration { if x != nil { - return x.TextFiles + return x.Delay } return nil } -// MongoDBQueryBuildInfoParams describes MongoDB buildInfo query action parameters. -type StartActionRequest_MongoDBQueryBuildInfoParams struct { +// Error contains job error message. +type JobResult_Error struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // DSN for the service. May contain connection (dial) timeout. - // May contain placeholders for file paths in DSN. - Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` - // Contains files and their contents which can be used in DSN. - TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -func (x *StartActionRequest_MongoDBQueryBuildInfoParams) Reset() { - *x = StartActionRequest_MongoDBQueryBuildInfoParams{} +func (x *JobResult_Error) Reset() { + *x = JobResult_Error{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[46] + mi := &file_agentpb_agent_proto_msgTypes[58] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StartActionRequest_MongoDBQueryBuildInfoParams) String() string { +func (x *JobResult_Error) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartActionRequest_MongoDBQueryBuildInfoParams) ProtoMessage() {} +func (*JobResult_Error) ProtoMessage() {} -func (x *StartActionRequest_MongoDBQueryBuildInfoParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[46] +func (x *JobResult_Error) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[58] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3122,55 +3948,44 @@ func (x *StartActionRequest_MongoDBQueryBuildInfoParams) ProtoReflect() protoref return mi.MessageOf(x) } -// Deprecated: Use StartActionRequest_MongoDBQueryBuildInfoParams.ProtoReflect.Descriptor instead. -func (*StartActionRequest_MongoDBQueryBuildInfoParams) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 16} +// Deprecated: Use JobResult_Error.ProtoReflect.Descriptor instead. +func (*JobResult_Error) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{27, 0} } -func (x *StartActionRequest_MongoDBQueryBuildInfoParams) GetDsn() string { +func (x *JobResult_Error) GetMessage() string { if x != nil { - return x.Dsn + return x.Message } return "" } -func (x *StartActionRequest_MongoDBQueryBuildInfoParams) GetTextFiles() *TextFiles { - if x != nil { - return x.TextFiles - } - return nil -} - -// MongoDBQueryGetCmdLineOptsParams describes MongoDB getCmdLineOpts query action parameters. -type StartActionRequest_MongoDBQueryGetCmdLineOptsParams struct { +// Echo contains result for echo job. +type JobResult_Echo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // DSN for the service. May contain connection (dial) timeout. - // May contain placeholders for file paths in DSN. - Dsn string `protobuf:"bytes,1,opt,name=dsn,proto3" json:"dsn,omitempty"` - // Contains files and their contents which can be used in DSN. - TextFiles *TextFiles `protobuf:"bytes,2,opt,name=text_files,json=textFiles,proto3" json:"text_files,omitempty"` + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` } -func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Reset() { - *x = StartActionRequest_MongoDBQueryGetCmdLineOptsParams{} +func (x *JobResult_Echo) Reset() { + *x = JobResult_Echo{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[47] + mi := &file_agentpb_agent_proto_msgTypes[59] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) String() string { +func (x *JobResult_Echo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams) ProtoMessage() {} +func (*JobResult_Echo) ProtoMessage() {} -func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[47] +func (x *JobResult_Echo) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[59] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3181,52 +3996,44 @@ func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) ProtoReflect() pro return mi.MessageOf(x) } -// Deprecated: Use StartActionRequest_MongoDBQueryGetCmdLineOptsParams.ProtoReflect.Descriptor instead. -func (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{13, 17} +// Deprecated: Use JobResult_Echo.ProtoReflect.Descriptor instead. +func (*JobResult_Echo) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{27, 1} } -func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) GetDsn() string { +func (x *JobResult_Echo) GetMessage() string { if x != nil { - return x.Dsn + return x.Message } return "" } -func (x *StartActionRequest_MongoDBQueryGetCmdLineOptsParams) GetTextFiles() *TextFiles { - if x != nil { - return x.TextFiles - } - return nil -} - -// Stats contains various Service statistics. -type CheckConnectionResponse_Stats struct { +// Echo contains echo job status update. +type JobProgress_Echo struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields - // A number of tables, 0 if unknown. - TableCount int32 `protobuf:"varint,1,opt,name=table_count,json=tableCount,proto3" json:"table_count,omitempty"` + Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` } -func (x *CheckConnectionResponse_Stats) Reset() { - *x = CheckConnectionResponse_Stats{} +func (x *JobProgress_Echo) Reset() { + *x = JobProgress_Echo{} if protoimpl.UnsafeEnabled { - mi := &file_agentpb_agent_proto_msgTypes[48] + mi := &file_agentpb_agent_proto_msgTypes[60] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } -func (x *CheckConnectionResponse_Stats) String() string { +func (x *JobProgress_Echo) String() string { return protoimpl.X.MessageStringOf(x) } -func (*CheckConnectionResponse_Stats) ProtoMessage() {} +func (*JobProgress_Echo) ProtoMessage() {} -func (x *CheckConnectionResponse_Stats) ProtoReflect() protoreflect.Message { - mi := &file_agentpb_agent_proto_msgTypes[48] +func (x *JobProgress_Echo) ProtoReflect() protoreflect.Message { + mi := &file_agentpb_agent_proto_msgTypes[60] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { @@ -3237,16 +4044,16 @@ func (x *CheckConnectionResponse_Stats) ProtoReflect() protoreflect.Message { return mi.MessageOf(x) } -// Deprecated: Use CheckConnectionResponse_Stats.ProtoReflect.Descriptor instead. -func (*CheckConnectionResponse_Stats) Descriptor() ([]byte, []int) { - return file_agentpb_agent_proto_rawDescGZIP(), []int{20, 0} +// Deprecated: Use JobProgress_Echo.ProtoReflect.Descriptor instead. +func (*JobProgress_Echo) Descriptor() ([]byte, []int) { + return file_agentpb_agent_proto_rawDescGZIP(), []int{28, 0} } -func (x *CheckConnectionResponse_Stats) GetTableCount() int32 { +func (x *JobProgress_Echo) GetStatus() string { if x != nil { - return x.TableCount + return x.Status } - return 0 + return "" } var File_agentpb_agent_proto protoreflect.FileDescriptor @@ -3675,97 +4482,179 @@ var file_agentpb_agent_proto_rawDesc = []byte{ 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x73, 0x52, 0x05, 0x73, 0x74, 0x61, 0x74, 0x73, 0x1a, 0x28, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x74, 0x61, 0x62, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x75, 0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, - 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0xb6, 0x04, 0x0a, 0x0c, 0x41, - 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, - 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x70, - 0x69, 0x6e, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, - 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, - 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, - 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, - 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, - 0x64, 0x12, 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, - 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, - 0x41, 0x4e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, - 0x48, 0x00, 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, - 0x0a, 0x0d, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, - 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, - 0x74, 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, - 0x74, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, - 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x53, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, - 0x48, 0x00, 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, - 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, - 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0b, 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, - 0x0b, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, - 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, - 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, - 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, - 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, - 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, - 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, - 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, - 0x6f, 0x61, 0x64, 0x22, 0xb6, 0x04, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, - 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, - 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x02, 0x20, - 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, - 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, - 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, - 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0c, - 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3c, 0x0a, 0x0b, - 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, 0x6f, 0x6c, - 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, - 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x42, 0x0a, 0x0d, 0x61, 0x63, - 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, - 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, - 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x21, - 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, - 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x09, - 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x74, - 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x08, - 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x73, 0x74, 0x61, 0x72, - 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x19, - 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, - 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, 0x74, 0x61, - 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x74, 0x6f, 0x70, - 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, - 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, - 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, 0x70, 0x41, - 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x5f, 0x63, - 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, 0x0b, 0x32, - 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, - 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, - 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, - 0x6e, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, - 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, - 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, + 0x74, 0x61, 0x62, 0x6c, 0x65, 0x43, 0x6f, 0x75, 0x6e, 0x74, 0x22, 0x29, 0x0a, 0x10, 0x4a, 0x6f, + 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x22, 0x29, 0x0a, 0x11, 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, + 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x61, 0x6c, + 0x69, 0x76, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52, 0x05, 0x61, 0x6c, 0x69, 0x76, 0x65, + 0x22, 0xea, 0x01, 0x0a, 0x0f, 0x53, 0x74, 0x61, 0x72, 0x74, 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, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, + 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x18, 0x02, 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, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, + 0x12, 0x31, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1b, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x65, + 0x63, 0x68, 0x6f, 0x1a, 0x51, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6d, + 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x18, 0x02, + 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, + 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x42, 0x05, 0x0a, 0x03, 0x6a, 0x6f, 0x62, 0x22, 0x28, 0x0a, + 0x10, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x12, 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, + 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x22, 0x27, 0x0a, 0x0e, 0x53, 0x74, 0x6f, 0x70, 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, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, + 0x22, 0x11, 0x0a, 0x0f, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x22, 0x88, 0x02, 0x0a, 0x09, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x15, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, + 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, + 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, + 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x12, 0x2e, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, + 0x75, 0x6c, 0x74, 0x2e, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, + 0x6f, 0x72, 0x12, 0x2b, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x15, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, + 0x6c, 0x74, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x1a, + 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, + 0x67, 0x65, 0x1a, 0x20, 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, + 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, + 0x73, 0x61, 0x67, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xb7, + 0x01, 0x0a, 0x0b, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x12, 0x15, + 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, + 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x38, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, + 0x6d, 0x70, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, + 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, + 0x74, 0x61, 0x6d, 0x70, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, + 0x2d, 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x48, 0x00, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x1a, 0x1e, + 0x0a, 0x04, 0x45, 0x63, 0x68, 0x6f, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, + 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x08, + 0x0a, 0x06, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xca, 0x06, 0x0a, 0x0c, 0x41, 0x67, 0x65, + 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, + 0x01, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, + 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x12, 0x41, 0x0a, 0x0d, + 0x73, 0x74, 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, + 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, + 0x3b, 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, + 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, + 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x41, 0x0a, 0x0d, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, + 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, + 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, + 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, + 0x6e, 0x67, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, + 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, + 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3f, 0x0a, 0x0c, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x1a, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0b, + 0x73, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3c, 0x0a, 0x0b, 0x73, + 0x74, 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0a, 0x73, + 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4b, 0x0a, 0x10, 0x63, 0x68, 0x65, + 0x63, 0x6b, 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, + 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, + 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, + 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x36, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, + 0x6a, 0x6f, 0x62, 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, + 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x48, 0x00, 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x33, + 0x0a, 0x08, 0x73, 0x74, 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, + 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, + 0x4a, 0x6f, 0x62, 0x12, 0x39, 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, + 0x73, 0x18, 0x0f, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, + 0x65, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x31, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x10, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x52, 0x65, + 0x73, 0x75, 0x6c, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x75, 0x6c, + 0x74, 0x12, 0x37, 0x0a, 0x0c, 0x6a, 0x6f, 0x62, 0x5f, 0x70, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, + 0x73, 0x18, 0x11, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, + 0x4a, 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x48, 0x00, 0x52, 0x0b, 0x6a, + 0x6f, 0x62, 0x50, 0x72, 0x6f, 0x67, 0x72, 0x65, 0x73, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, + 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x22, 0xdb, 0x05, 0x0a, 0x0d, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, + 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x0d, 0x52, 0x02, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x18, + 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x6f, + 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, 0x6f, 0x6e, 0x67, 0x12, 0x42, 0x0a, 0x0d, 0x73, 0x74, + 0x61, 0x74, 0x65, 0x5f, 0x63, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x18, 0x03, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x43, + 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x65, 0x43, 0x68, 0x61, 0x6e, 0x67, 0x65, 0x64, 0x12, 0x3c, + 0x0a, 0x0b, 0x71, 0x61, 0x6e, 0x5f, 0x63, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x18, 0x04, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x51, 0x41, 0x4e, 0x43, + 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x48, 0x00, + 0x52, 0x0a, 0x71, 0x61, 0x6e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x12, 0x42, 0x0a, 0x0d, + 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x18, 0x05, 0x20, + 0x01, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, + 0x48, 0x00, 0x52, 0x0c, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, + 0x12, 0x21, 0x0a, 0x04, 0x70, 0x69, 0x6e, 0x67, 0x18, 0x08, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0b, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x50, 0x69, 0x6e, 0x67, 0x48, 0x00, 0x52, 0x04, 0x70, + 0x69, 0x6e, 0x67, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x65, 0x74, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x65, + 0x18, 0x09, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x08, 0x73, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x3e, 0x0a, 0x0c, 0x73, 0x74, + 0x61, 0x72, 0x74, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0a, 0x20, 0x01, 0x28, 0x0b, + 0x32, 0x19, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, + 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0b, 0x73, + 0x74, 0x61, 0x72, 0x74, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x3b, 0x0a, 0x0b, 0x73, 0x74, + 0x6f, 0x70, 0x5f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, + 0x18, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x41, 0x63, 0x74, 0x69, + 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x0a, 0x73, 0x74, 0x6f, + 0x70, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4a, 0x0a, 0x10, 0x63, 0x68, 0x65, 0x63, 0x6b, + 0x5f, 0x63, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x0c, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x1d, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x43, 0x68, 0x65, 0x63, 0x6b, 0x43, + 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, + 0x48, 0x00, 0x52, 0x0f, 0x63, 0x68, 0x65, 0x63, 0x6b, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, + 0x69, 0x6f, 0x6e, 0x12, 0x35, 0x0a, 0x09, 0x73, 0x74, 0x61, 0x72, 0x74, 0x5f, 0x6a, 0x6f, 0x62, + 0x18, 0x0d, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, + 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, + 0x52, 0x08, 0x73, 0x74, 0x61, 0x72, 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x32, 0x0a, 0x08, 0x73, 0x74, + 0x6f, 0x70, 0x5f, 0x6a, 0x6f, 0x62, 0x18, 0x0e, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x07, 0x73, 0x74, 0x6f, 0x70, 0x4a, 0x6f, 0x62, 0x12, 0x38, + 0x0a, 0x0a, 0x6a, 0x6f, 0x62, 0x5f, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x0f, 0x20, 0x01, + 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x4a, 0x6f, 0x62, 0x53, 0x74, + 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x48, 0x00, 0x52, 0x09, 0x6a, + 0x6f, 0x62, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x09, 0x0a, 0x07, 0x70, 0x61, 0x79, 0x6c, + 0x6f, 0x61, 0x64, 0x2a, 0xc4, 0x01, 0x0a, 0x18, 0x4d, 0x79, 0x73, 0x71, 0x6c, 0x45, 0x78, 0x70, + 0x6c, 0x61, 0x69, 0x6e, 0x4f, 0x75, 0x74, 0x70, 0x75, 0x74, 0x46, 0x6f, 0x72, 0x6d, 0x61, 0x74, + 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, + 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, + 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, - 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, - 0x10, 0x00, 0x12, 0x27, 0x0a, 0x23, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, + 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, + 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, - 0x54, 0x5f, 0x44, 0x45, 0x46, 0x41, 0x55, 0x4c, 0x54, 0x10, 0x01, 0x12, 0x24, 0x0a, 0x20, 0x4d, - 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, - 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, - 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, - 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, - 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, - 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, - 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, - 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, - 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, - 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x15, 0x5a, 0x13, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, - 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, - 0x72, 0x6f, 0x74, 0x6f, 0x33, + 0x54, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x02, 0x12, 0x30, 0x0a, 0x2c, 0x4d, 0x59, 0x53, 0x51, + 0x4c, 0x5f, 0x45, 0x58, 0x50, 0x4c, 0x41, 0x49, 0x4e, 0x5f, 0x4f, 0x55, 0x54, 0x50, 0x55, 0x54, + 0x5f, 0x46, 0x4f, 0x52, 0x4d, 0x41, 0x54, 0x5f, 0x54, 0x52, 0x41, 0x44, 0x49, 0x54, 0x49, 0x4f, + 0x4e, 0x41, 0x4c, 0x5f, 0x4a, 0x53, 0x4f, 0x4e, 0x10, 0x03, 0x32, 0x41, 0x0a, 0x05, 0x41, 0x67, + 0x65, 0x6e, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63, 0x74, 0x12, 0x13, + 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x4d, 0x65, 0x73, 0x73, + 0x61, 0x67, 0x65, 0x1a, 0x14, 0x2e, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x2e, 0x53, 0x65, 0x72, 0x76, + 0x65, 0x72, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x28, 0x01, 0x30, 0x01, 0x42, 0x15, 0x5a, + 0x13, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x3b, 0x61, 0x67, 0x65, + 0x6e, 0x74, 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( @@ -3781,139 +4670,167 @@ func file_agentpb_agent_proto_rawDescGZIP() []byte { } var file_agentpb_agent_proto_enumTypes = make([]protoimpl.EnumInfo, 1) -var file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 49) +var file_agentpb_agent_proto_msgTypes = make([]protoimpl.MessageInfo, 61) var file_agentpb_agent_proto_goTypes = []interface{}{ - (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat - (*TextFiles)(nil), // 1: agent.TextFiles - (*Ping)(nil), // 2: agent.Ping - (*Pong)(nil), // 3: agent.Pong - (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest - (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse - (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest - (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse - (*SetStateRequest)(nil), // 8: agent.SetStateRequest - (*SetStateResponse)(nil), // 9: agent.SetStateResponse - (*QueryActionValue)(nil), // 10: agent.QueryActionValue - (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice - (*QueryActionMap)(nil), // 12: agent.QueryActionMap - (*QueryActionResult)(nil), // 13: agent.QueryActionResult - (*StartActionRequest)(nil), // 14: agent.StartActionRequest - (*StartActionResponse)(nil), // 15: agent.StartActionResponse - (*StopActionRequest)(nil), // 16: agent.StopActionRequest - (*StopActionResponse)(nil), // 17: agent.StopActionResponse - (*ActionResultRequest)(nil), // 18: agent.ActionResultRequest - (*ActionResultResponse)(nil), // 19: agent.ActionResultResponse - (*CheckConnectionRequest)(nil), // 20: agent.CheckConnectionRequest - (*CheckConnectionResponse)(nil), // 21: agent.CheckConnectionResponse - (*AgentMessage)(nil), // 22: agent.AgentMessage - (*ServerMessage)(nil), // 23: agent.ServerMessage - nil, // 24: agent.TextFiles.FilesEntry - (*SetStateRequest_AgentProcess)(nil), // 25: agent.SetStateRequest.AgentProcess - nil, // 26: agent.SetStateRequest.AgentProcessesEntry - (*SetStateRequest_BuiltinAgent)(nil), // 27: agent.SetStateRequest.BuiltinAgent - nil, // 28: agent.SetStateRequest.BuiltinAgentsEntry - nil, // 29: agent.SetStateRequest.AgentProcess.TextFilesEntry - nil, // 30: agent.QueryActionMap.MapEntry - (*StartActionRequest_MySQLExplainParams)(nil), // 31: agent.StartActionRequest.MySQLExplainParams - (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 32: agent.StartActionRequest.MySQLShowCreateTableParams - (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 33: agent.StartActionRequest.MySQLShowTableStatusParams - (*StartActionRequest_MySQLShowIndexParams)(nil), // 34: agent.StartActionRequest.MySQLShowIndexParams - (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 35: agent.StartActionRequest.PostgreSQLShowCreateTableParams - (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 36: agent.StartActionRequest.PostgreSQLShowIndexParams - (*StartActionRequest_MongoDBExplainParams)(nil), // 37: agent.StartActionRequest.MongoDBExplainParams - (*StartActionRequest_PTSummaryParams)(nil), // 38: agent.StartActionRequest.PTSummaryParams - (*StartActionRequest_PTPgSummaryParams)(nil), // 39: agent.StartActionRequest.PTPgSummaryParams - (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 40: agent.StartActionRequest.PTMongoDBSummaryParams - (*StartActionRequest_PTMySQLSummaryParams)(nil), // 41: agent.StartActionRequest.PTMySQLSummaryParams - (*StartActionRequest_MySQLQueryShowParams)(nil), // 42: agent.StartActionRequest.MySQLQueryShowParams - (*StartActionRequest_MySQLQuerySelectParams)(nil), // 43: agent.StartActionRequest.MySQLQuerySelectParams - (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 44: agent.StartActionRequest.PostgreSQLQueryShowParams - (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 45: agent.StartActionRequest.PostgreSQLQuerySelectParams - (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 46: agent.StartActionRequest.MongoDBQueryGetParameterParams - (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 47: agent.StartActionRequest.MongoDBQueryBuildInfoParams - (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 48: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - (*CheckConnectionResponse_Stats)(nil), // 49: agent.CheckConnectionResponse.Stats - (*timestamp.Timestamp)(nil), // 50: google.protobuf.Timestamp - (*MetricsBucket)(nil), // 51: agent.MetricsBucket - (inventorypb.AgentStatus)(0), // 52: inventory.AgentStatus - (*duration.Duration)(nil), // 53: google.protobuf.Duration - (inventorypb.ServiceType)(0), // 54: inventory.ServiceType - (inventorypb.AgentType)(0), // 55: inventory.AgentType + (MysqlExplainOutputFormat)(0), // 0: agent.MysqlExplainOutputFormat + (*TextFiles)(nil), // 1: agent.TextFiles + (*Ping)(nil), // 2: agent.Ping + (*Pong)(nil), // 3: agent.Pong + (*QANCollectRequest)(nil), // 4: agent.QANCollectRequest + (*QANCollectResponse)(nil), // 5: agent.QANCollectResponse + (*StateChangedRequest)(nil), // 6: agent.StateChangedRequest + (*StateChangedResponse)(nil), // 7: agent.StateChangedResponse + (*SetStateRequest)(nil), // 8: agent.SetStateRequest + (*SetStateResponse)(nil), // 9: agent.SetStateResponse + (*QueryActionValue)(nil), // 10: agent.QueryActionValue + (*QueryActionSlice)(nil), // 11: agent.QueryActionSlice + (*QueryActionMap)(nil), // 12: agent.QueryActionMap + (*QueryActionResult)(nil), // 13: agent.QueryActionResult + (*StartActionRequest)(nil), // 14: agent.StartActionRequest + (*StartActionResponse)(nil), // 15: agent.StartActionResponse + (*StopActionRequest)(nil), // 16: agent.StopActionRequest + (*StopActionResponse)(nil), // 17: agent.StopActionResponse + (*ActionResultRequest)(nil), // 18: agent.ActionResultRequest + (*ActionResultResponse)(nil), // 19: agent.ActionResultResponse + (*CheckConnectionRequest)(nil), // 20: agent.CheckConnectionRequest + (*CheckConnectionResponse)(nil), // 21: agent.CheckConnectionResponse + (*JobStatusRequest)(nil), // 22: agent.JobStatusRequest + (*JobStatusResponse)(nil), // 23: agent.JobStatusResponse + (*StartJobRequest)(nil), // 24: agent.StartJobRequest + (*StartJobResponse)(nil), // 25: agent.StartJobResponse + (*StopJobRequest)(nil), // 26: agent.StopJobRequest + (*StopJobResponse)(nil), // 27: agent.StopJobResponse + (*JobResult)(nil), // 28: agent.JobResult + (*JobProgress)(nil), // 29: agent.JobProgress + (*AgentMessage)(nil), // 30: agent.AgentMessage + (*ServerMessage)(nil), // 31: agent.ServerMessage + nil, // 32: agent.TextFiles.FilesEntry + (*SetStateRequest_AgentProcess)(nil), // 33: agent.SetStateRequest.AgentProcess + nil, // 34: agent.SetStateRequest.AgentProcessesEntry + (*SetStateRequest_BuiltinAgent)(nil), // 35: agent.SetStateRequest.BuiltinAgent + nil, // 36: agent.SetStateRequest.BuiltinAgentsEntry + nil, // 37: agent.SetStateRequest.AgentProcess.TextFilesEntry + nil, // 38: agent.QueryActionMap.MapEntry + (*StartActionRequest_MySQLExplainParams)(nil), // 39: agent.StartActionRequest.MySQLExplainParams + (*StartActionRequest_MySQLShowCreateTableParams)(nil), // 40: agent.StartActionRequest.MySQLShowCreateTableParams + (*StartActionRequest_MySQLShowTableStatusParams)(nil), // 41: agent.StartActionRequest.MySQLShowTableStatusParams + (*StartActionRequest_MySQLShowIndexParams)(nil), // 42: agent.StartActionRequest.MySQLShowIndexParams + (*StartActionRequest_PostgreSQLShowCreateTableParams)(nil), // 43: agent.StartActionRequest.PostgreSQLShowCreateTableParams + (*StartActionRequest_PostgreSQLShowIndexParams)(nil), // 44: agent.StartActionRequest.PostgreSQLShowIndexParams + (*StartActionRequest_MongoDBExplainParams)(nil), // 45: agent.StartActionRequest.MongoDBExplainParams + (*StartActionRequest_PTSummaryParams)(nil), // 46: agent.StartActionRequest.PTSummaryParams + (*StartActionRequest_PTPgSummaryParams)(nil), // 47: agent.StartActionRequest.PTPgSummaryParams + (*StartActionRequest_PTMongoDBSummaryParams)(nil), // 48: agent.StartActionRequest.PTMongoDBSummaryParams + (*StartActionRequest_PTMySQLSummaryParams)(nil), // 49: agent.StartActionRequest.PTMySQLSummaryParams + (*StartActionRequest_MySQLQueryShowParams)(nil), // 50: agent.StartActionRequest.MySQLQueryShowParams + (*StartActionRequest_MySQLQuerySelectParams)(nil), // 51: agent.StartActionRequest.MySQLQuerySelectParams + (*StartActionRequest_PostgreSQLQueryShowParams)(nil), // 52: agent.StartActionRequest.PostgreSQLQueryShowParams + (*StartActionRequest_PostgreSQLQuerySelectParams)(nil), // 53: agent.StartActionRequest.PostgreSQLQuerySelectParams + (*StartActionRequest_MongoDBQueryGetParameterParams)(nil), // 54: agent.StartActionRequest.MongoDBQueryGetParameterParams + (*StartActionRequest_MongoDBQueryBuildInfoParams)(nil), // 55: agent.StartActionRequest.MongoDBQueryBuildInfoParams + (*StartActionRequest_MongoDBQueryGetCmdLineOptsParams)(nil), // 56: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + (*CheckConnectionResponse_Stats)(nil), // 57: agent.CheckConnectionResponse.Stats + (*StartJobRequest_Echo)(nil), // 58: agent.StartJobRequest.Echo + (*JobResult_Error)(nil), // 59: agent.JobResult.Error + (*JobResult_Echo)(nil), // 60: agent.JobResult.Echo + (*JobProgress_Echo)(nil), // 61: agent.JobProgress.Echo + (*timestamp.Timestamp)(nil), // 62: google.protobuf.Timestamp + (*MetricsBucket)(nil), // 63: agent.MetricsBucket + (inventorypb.AgentStatus)(0), // 64: inventory.AgentStatus + (*duration.Duration)(nil), // 65: google.protobuf.Duration + (inventorypb.ServiceType)(0), // 66: inventory.ServiceType + (inventorypb.AgentType)(0), // 67: inventory.AgentType } var file_agentpb_agent_proto_depIdxs = []int32{ - 24, // 0: agent.TextFiles.files:type_name -> agent.TextFiles.FilesEntry - 50, // 1: agent.Pong.current_time:type_name -> google.protobuf.Timestamp - 51, // 2: agent.QANCollectRequest.metrics_bucket:type_name -> agent.MetricsBucket - 52, // 3: agent.StateChangedRequest.status:type_name -> inventory.AgentStatus - 26, // 4: agent.SetStateRequest.agent_processes:type_name -> agent.SetStateRequest.AgentProcessesEntry - 28, // 5: agent.SetStateRequest.builtin_agents:type_name -> agent.SetStateRequest.BuiltinAgentsEntry - 50, // 6: agent.QueryActionValue.timestamp:type_name -> google.protobuf.Timestamp + 32, // 0: agent.TextFiles.files:type_name -> agent.TextFiles.FilesEntry + 62, // 1: agent.Pong.current_time:type_name -> google.protobuf.Timestamp + 63, // 2: agent.QANCollectRequest.metrics_bucket:type_name -> agent.MetricsBucket + 64, // 3: agent.StateChangedRequest.status:type_name -> inventory.AgentStatus + 34, // 4: agent.SetStateRequest.agent_processes:type_name -> agent.SetStateRequest.AgentProcessesEntry + 36, // 5: agent.SetStateRequest.builtin_agents:type_name -> agent.SetStateRequest.BuiltinAgentsEntry + 62, // 6: agent.QueryActionValue.timestamp:type_name -> google.protobuf.Timestamp 11, // 7: agent.QueryActionValue.slice:type_name -> agent.QueryActionSlice 12, // 8: agent.QueryActionValue.map:type_name -> agent.QueryActionMap 10, // 9: agent.QueryActionSlice.slice:type_name -> agent.QueryActionValue - 30, // 10: agent.QueryActionMap.map:type_name -> agent.QueryActionMap.MapEntry + 38, // 10: agent.QueryActionMap.map:type_name -> agent.QueryActionMap.MapEntry 11, // 11: agent.QueryActionResult.rows:type_name -> agent.QueryActionSlice 12, // 12: agent.QueryActionResult.docs:type_name -> agent.QueryActionMap - 31, // 13: agent.StartActionRequest.mysql_explain_params:type_name -> agent.StartActionRequest.MySQLExplainParams - 32, // 14: agent.StartActionRequest.mysql_show_create_table_params:type_name -> agent.StartActionRequest.MySQLShowCreateTableParams - 33, // 15: agent.StartActionRequest.mysql_show_table_status_params:type_name -> agent.StartActionRequest.MySQLShowTableStatusParams - 34, // 16: agent.StartActionRequest.mysql_show_index_params:type_name -> agent.StartActionRequest.MySQLShowIndexParams - 35, // 17: agent.StartActionRequest.postgresql_show_create_table_params:type_name -> agent.StartActionRequest.PostgreSQLShowCreateTableParams - 36, // 18: agent.StartActionRequest.postgresql_show_index_params:type_name -> agent.StartActionRequest.PostgreSQLShowIndexParams - 37, // 19: agent.StartActionRequest.mongodb_explain_params:type_name -> agent.StartActionRequest.MongoDBExplainParams - 38, // 20: agent.StartActionRequest.pt_summary_params:type_name -> agent.StartActionRequest.PTSummaryParams - 39, // 21: agent.StartActionRequest.pt_pg_summary_params:type_name -> agent.StartActionRequest.PTPgSummaryParams - 40, // 22: agent.StartActionRequest.pt_mongodb_summary_params:type_name -> agent.StartActionRequest.PTMongoDBSummaryParams - 41, // 23: agent.StartActionRequest.pt_mysql_summary_params:type_name -> agent.StartActionRequest.PTMySQLSummaryParams - 42, // 24: agent.StartActionRequest.mysql_query_show_params:type_name -> agent.StartActionRequest.MySQLQueryShowParams - 43, // 25: agent.StartActionRequest.mysql_query_select_params:type_name -> agent.StartActionRequest.MySQLQuerySelectParams - 44, // 26: agent.StartActionRequest.postgresql_query_show_params:type_name -> agent.StartActionRequest.PostgreSQLQueryShowParams - 45, // 27: agent.StartActionRequest.postgresql_query_select_params:type_name -> agent.StartActionRequest.PostgreSQLQuerySelectParams - 46, // 28: agent.StartActionRequest.mongodb_query_getparameter_params:type_name -> agent.StartActionRequest.MongoDBQueryGetParameterParams - 47, // 29: agent.StartActionRequest.mongodb_query_buildinfo_params:type_name -> agent.StartActionRequest.MongoDBQueryBuildInfoParams - 48, // 30: agent.StartActionRequest.mongodb_query_getcmdlineopts_params:type_name -> agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams - 53, // 31: agent.StartActionRequest.timeout:type_name -> google.protobuf.Duration - 54, // 32: agent.CheckConnectionRequest.type:type_name -> inventory.ServiceType - 53, // 33: agent.CheckConnectionRequest.timeout:type_name -> google.protobuf.Duration + 39, // 13: agent.StartActionRequest.mysql_explain_params:type_name -> agent.StartActionRequest.MySQLExplainParams + 40, // 14: agent.StartActionRequest.mysql_show_create_table_params:type_name -> agent.StartActionRequest.MySQLShowCreateTableParams + 41, // 15: agent.StartActionRequest.mysql_show_table_status_params:type_name -> agent.StartActionRequest.MySQLShowTableStatusParams + 42, // 16: agent.StartActionRequest.mysql_show_index_params:type_name -> agent.StartActionRequest.MySQLShowIndexParams + 43, // 17: agent.StartActionRequest.postgresql_show_create_table_params:type_name -> agent.StartActionRequest.PostgreSQLShowCreateTableParams + 44, // 18: agent.StartActionRequest.postgresql_show_index_params:type_name -> agent.StartActionRequest.PostgreSQLShowIndexParams + 45, // 19: agent.StartActionRequest.mongodb_explain_params:type_name -> agent.StartActionRequest.MongoDBExplainParams + 46, // 20: agent.StartActionRequest.pt_summary_params:type_name -> agent.StartActionRequest.PTSummaryParams + 47, // 21: agent.StartActionRequest.pt_pg_summary_params:type_name -> agent.StartActionRequest.PTPgSummaryParams + 48, // 22: agent.StartActionRequest.pt_mongodb_summary_params:type_name -> agent.StartActionRequest.PTMongoDBSummaryParams + 49, // 23: agent.StartActionRequest.pt_mysql_summary_params:type_name -> agent.StartActionRequest.PTMySQLSummaryParams + 50, // 24: agent.StartActionRequest.mysql_query_show_params:type_name -> agent.StartActionRequest.MySQLQueryShowParams + 51, // 25: agent.StartActionRequest.mysql_query_select_params:type_name -> agent.StartActionRequest.MySQLQuerySelectParams + 52, // 26: agent.StartActionRequest.postgresql_query_show_params:type_name -> agent.StartActionRequest.PostgreSQLQueryShowParams + 53, // 27: agent.StartActionRequest.postgresql_query_select_params:type_name -> agent.StartActionRequest.PostgreSQLQuerySelectParams + 54, // 28: agent.StartActionRequest.mongodb_query_getparameter_params:type_name -> agent.StartActionRequest.MongoDBQueryGetParameterParams + 55, // 29: agent.StartActionRequest.mongodb_query_buildinfo_params:type_name -> agent.StartActionRequest.MongoDBQueryBuildInfoParams + 56, // 30: agent.StartActionRequest.mongodb_query_getcmdlineopts_params:type_name -> agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams + 65, // 31: agent.StartActionRequest.timeout:type_name -> google.protobuf.Duration + 66, // 32: agent.CheckConnectionRequest.type:type_name -> inventory.ServiceType + 65, // 33: agent.CheckConnectionRequest.timeout:type_name -> google.protobuf.Duration 1, // 34: agent.CheckConnectionRequest.text_files:type_name -> agent.TextFiles - 49, // 35: agent.CheckConnectionResponse.stats:type_name -> agent.CheckConnectionResponse.Stats - 2, // 36: agent.AgentMessage.ping:type_name -> agent.Ping - 6, // 37: agent.AgentMessage.state_changed:type_name -> agent.StateChangedRequest - 4, // 38: agent.AgentMessage.qan_collect:type_name -> agent.QANCollectRequest - 18, // 39: agent.AgentMessage.action_result:type_name -> agent.ActionResultRequest - 3, // 40: agent.AgentMessage.pong:type_name -> agent.Pong - 9, // 41: agent.AgentMessage.set_state:type_name -> agent.SetStateResponse - 15, // 42: agent.AgentMessage.start_action:type_name -> agent.StartActionResponse - 17, // 43: agent.AgentMessage.stop_action:type_name -> agent.StopActionResponse - 21, // 44: agent.AgentMessage.check_connection:type_name -> agent.CheckConnectionResponse - 3, // 45: agent.ServerMessage.pong:type_name -> agent.Pong - 7, // 46: agent.ServerMessage.state_changed:type_name -> agent.StateChangedResponse - 5, // 47: agent.ServerMessage.qan_collect:type_name -> agent.QANCollectResponse - 19, // 48: agent.ServerMessage.action_result:type_name -> agent.ActionResultResponse - 2, // 49: agent.ServerMessage.ping:type_name -> agent.Ping - 8, // 50: agent.ServerMessage.set_state:type_name -> agent.SetStateRequest - 14, // 51: agent.ServerMessage.start_action:type_name -> agent.StartActionRequest - 16, // 52: agent.ServerMessage.stop_action:type_name -> agent.StopActionRequest - 20, // 53: agent.ServerMessage.check_connection:type_name -> agent.CheckConnectionRequest - 55, // 54: agent.SetStateRequest.AgentProcess.type:type_name -> inventory.AgentType - 29, // 55: agent.SetStateRequest.AgentProcess.text_files:type_name -> agent.SetStateRequest.AgentProcess.TextFilesEntry - 25, // 56: agent.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.SetStateRequest.AgentProcess - 55, // 57: agent.SetStateRequest.BuiltinAgent.type:type_name -> inventory.AgentType - 1, // 58: agent.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.TextFiles - 27, // 59: agent.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.SetStateRequest.BuiltinAgent - 10, // 60: agent.QueryActionMap.MapEntry.value:type_name -> agent.QueryActionValue - 0, // 61: agent.StartActionRequest.MySQLExplainParams.output_format:type_name -> agent.MysqlExplainOutputFormat - 1, // 62: agent.StartActionRequest.MongoDBExplainParams.text_files:type_name -> agent.TextFiles - 1, // 63: agent.StartActionRequest.MongoDBQueryGetParameterParams.text_files:type_name -> agent.TextFiles - 1, // 64: agent.StartActionRequest.MongoDBQueryBuildInfoParams.text_files:type_name -> agent.TextFiles - 1, // 65: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams.text_files:type_name -> agent.TextFiles - 22, // 66: agent.Agent.Connect:input_type -> agent.AgentMessage - 23, // 67: agent.Agent.Connect:output_type -> agent.ServerMessage - 67, // [67:68] is the sub-list for method output_type - 66, // [66:67] is the sub-list for method input_type - 66, // [66:66] is the sub-list for extension type_name - 66, // [66:66] is the sub-list for extension extendee - 0, // [0:66] is the sub-list for field type_name + 57, // 35: agent.CheckConnectionResponse.stats:type_name -> agent.CheckConnectionResponse.Stats + 65, // 36: agent.StartJobRequest.timeout:type_name -> google.protobuf.Duration + 58, // 37: agent.StartJobRequest.echo:type_name -> agent.StartJobRequest.Echo + 62, // 38: agent.JobResult.timestamp:type_name -> google.protobuf.Timestamp + 59, // 39: agent.JobResult.error:type_name -> agent.JobResult.Error + 60, // 40: agent.JobResult.echo:type_name -> agent.JobResult.Echo + 62, // 41: agent.JobProgress.timestamp:type_name -> google.protobuf.Timestamp + 61, // 42: agent.JobProgress.echo:type_name -> agent.JobProgress.Echo + 2, // 43: agent.AgentMessage.ping:type_name -> agent.Ping + 6, // 44: agent.AgentMessage.state_changed:type_name -> agent.StateChangedRequest + 4, // 45: agent.AgentMessage.qan_collect:type_name -> agent.QANCollectRequest + 18, // 46: agent.AgentMessage.action_result:type_name -> agent.ActionResultRequest + 3, // 47: agent.AgentMessage.pong:type_name -> agent.Pong + 9, // 48: agent.AgentMessage.set_state:type_name -> agent.SetStateResponse + 15, // 49: agent.AgentMessage.start_action:type_name -> agent.StartActionResponse + 17, // 50: agent.AgentMessage.stop_action:type_name -> agent.StopActionResponse + 21, // 51: agent.AgentMessage.check_connection:type_name -> agent.CheckConnectionResponse + 25, // 52: agent.AgentMessage.start_job:type_name -> agent.StartJobResponse + 27, // 53: agent.AgentMessage.stop_job:type_name -> agent.StopJobResponse + 23, // 54: agent.AgentMessage.job_status:type_name -> agent.JobStatusResponse + 28, // 55: agent.AgentMessage.job_result:type_name -> agent.JobResult + 29, // 56: agent.AgentMessage.job_progress:type_name -> agent.JobProgress + 3, // 57: agent.ServerMessage.pong:type_name -> agent.Pong + 7, // 58: agent.ServerMessage.state_changed:type_name -> agent.StateChangedResponse + 5, // 59: agent.ServerMessage.qan_collect:type_name -> agent.QANCollectResponse + 19, // 60: agent.ServerMessage.action_result:type_name -> agent.ActionResultResponse + 2, // 61: agent.ServerMessage.ping:type_name -> agent.Ping + 8, // 62: agent.ServerMessage.set_state:type_name -> agent.SetStateRequest + 14, // 63: agent.ServerMessage.start_action:type_name -> agent.StartActionRequest + 16, // 64: agent.ServerMessage.stop_action:type_name -> agent.StopActionRequest + 20, // 65: agent.ServerMessage.check_connection:type_name -> agent.CheckConnectionRequest + 24, // 66: agent.ServerMessage.start_job:type_name -> agent.StartJobRequest + 26, // 67: agent.ServerMessage.stop_job:type_name -> agent.StopJobRequest + 22, // 68: agent.ServerMessage.job_status:type_name -> agent.JobStatusRequest + 67, // 69: agent.SetStateRequest.AgentProcess.type:type_name -> inventory.AgentType + 37, // 70: agent.SetStateRequest.AgentProcess.text_files:type_name -> agent.SetStateRequest.AgentProcess.TextFilesEntry + 33, // 71: agent.SetStateRequest.AgentProcessesEntry.value:type_name -> agent.SetStateRequest.AgentProcess + 67, // 72: agent.SetStateRequest.BuiltinAgent.type:type_name -> inventory.AgentType + 1, // 73: agent.SetStateRequest.BuiltinAgent.text_files:type_name -> agent.TextFiles + 35, // 74: agent.SetStateRequest.BuiltinAgentsEntry.value:type_name -> agent.SetStateRequest.BuiltinAgent + 10, // 75: agent.QueryActionMap.MapEntry.value:type_name -> agent.QueryActionValue + 0, // 76: agent.StartActionRequest.MySQLExplainParams.output_format:type_name -> agent.MysqlExplainOutputFormat + 1, // 77: agent.StartActionRequest.MongoDBExplainParams.text_files:type_name -> agent.TextFiles + 1, // 78: agent.StartActionRequest.MongoDBQueryGetParameterParams.text_files:type_name -> agent.TextFiles + 1, // 79: agent.StartActionRequest.MongoDBQueryBuildInfoParams.text_files:type_name -> agent.TextFiles + 1, // 80: agent.StartActionRequest.MongoDBQueryGetCmdLineOptsParams.text_files:type_name -> agent.TextFiles + 65, // 81: agent.StartJobRequest.Echo.delay:type_name -> google.protobuf.Duration + 30, // 82: agent.Agent.Connect:input_type -> agent.AgentMessage + 31, // 83: agent.Agent.Connect:output_type -> agent.ServerMessage + 83, // [83:84] is the sub-list for method output_type + 82, // [82:83] is the sub-list for method input_type + 82, // [82:82] is the sub-list for extension type_name + 82, // [82:82] is the sub-list for extension extendee + 0, // [0:82] is the sub-list for field type_name } func init() { file_agentpb_agent_proto_init() } @@ -4176,7 +5093,7 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[21].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*AgentMessage); i { + switch v := v.(*JobStatusRequest); i { case 0: return &v.state case 1: @@ -4188,7 +5105,19 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[22].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*ServerMessage); i { + switch v := v.(*JobStatusResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[23].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartJobRequest); i { case 0: return &v.state case 1: @@ -4200,7 +5129,19 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[24].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetStateRequest_AgentProcess); i { + switch v := v.(*StartJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[25].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StopJobRequest); i { case 0: return &v.state case 1: @@ -4212,7 +5153,43 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[26].Exporter = func(v interface{}, i int) interface{} { - switch v := v.(*SetStateRequest_BuiltinAgent); i { + switch v := v.(*StopJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[27].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobResult); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[28].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobProgress); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[29].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*AgentMessage); i { case 0: return &v.state case 1: @@ -4224,6 +5201,42 @@ func file_agentpb_agent_proto_init() { } } file_agentpb_agent_proto_msgTypes[30].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*ServerMessage); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetStateRequest_AgentProcess); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*SetStateRequest_BuiltinAgent); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLExplainParams); i { case 0: return &v.state @@ -4235,7 +5248,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[31].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLShowCreateTableParams); i { case 0: return &v.state @@ -4247,7 +5260,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[32].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLShowTableStatusParams); i { case 0: return &v.state @@ -4259,7 +5272,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[33].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLShowIndexParams); i { case 0: return &v.state @@ -4271,7 +5284,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[34].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PostgreSQLShowCreateTableParams); i { case 0: return &v.state @@ -4283,7 +5296,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[35].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PostgreSQLShowIndexParams); i { case 0: return &v.state @@ -4295,7 +5308,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[36].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MongoDBExplainParams); i { case 0: return &v.state @@ -4307,7 +5320,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[37].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PTSummaryParams); i { case 0: return &v.state @@ -4319,7 +5332,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[38].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PTPgSummaryParams); i { case 0: return &v.state @@ -4331,7 +5344,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[39].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PTMongoDBSummaryParams); i { case 0: return &v.state @@ -4343,7 +5356,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[40].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PTMySQLSummaryParams); i { case 0: return &v.state @@ -4355,7 +5368,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[41].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[49].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLQueryShowParams); i { case 0: return &v.state @@ -4367,7 +5380,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[42].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[50].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MySQLQuerySelectParams); i { case 0: return &v.state @@ -4379,7 +5392,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[43].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[51].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PostgreSQLQueryShowParams); i { case 0: return &v.state @@ -4391,7 +5404,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[44].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[52].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_PostgreSQLQuerySelectParams); i { case 0: return &v.state @@ -4403,7 +5416,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[45].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[53].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MongoDBQueryGetParameterParams); i { case 0: return &v.state @@ -4415,7 +5428,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[46].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[54].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MongoDBQueryBuildInfoParams); i { case 0: return &v.state @@ -4427,7 +5440,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[47].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[55].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*StartActionRequest_MongoDBQueryGetCmdLineOptsParams); i { case 0: return &v.state @@ -4439,7 +5452,7 @@ func file_agentpb_agent_proto_init() { return nil } } - file_agentpb_agent_proto_msgTypes[48].Exporter = func(v interface{}, i int) interface{} { + file_agentpb_agent_proto_msgTypes[56].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*CheckConnectionResponse_Stats); i { case 0: return &v.state @@ -4451,6 +5464,54 @@ func file_agentpb_agent_proto_init() { return nil } } + file_agentpb_agent_proto_msgTypes[57].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartJobRequest_Echo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[58].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobResult_Error); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[59].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobResult_Echo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_agentpb_agent_proto_msgTypes[60].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*JobProgress_Echo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } } file_agentpb_agent_proto_msgTypes[9].OneofWrappers = []interface{}{ (*QueryActionValue_Nil)(nil), @@ -4483,7 +5544,17 @@ func file_agentpb_agent_proto_init() { (*StartActionRequest_MongodbQueryBuildinfoParams)(nil), (*StartActionRequest_MongodbQueryGetcmdlineoptsParams)(nil), } - file_agentpb_agent_proto_msgTypes[21].OneofWrappers = []interface{}{ + file_agentpb_agent_proto_msgTypes[23].OneofWrappers = []interface{}{ + (*StartJobRequest_Echo_)(nil), + } + file_agentpb_agent_proto_msgTypes[27].OneofWrappers = []interface{}{ + (*JobResult_Error_)(nil), + (*JobResult_Echo_)(nil), + } + file_agentpb_agent_proto_msgTypes[28].OneofWrappers = []interface{}{ + (*JobProgress_Echo_)(nil), + } + file_agentpb_agent_proto_msgTypes[29].OneofWrappers = []interface{}{ (*AgentMessage_Ping)(nil), (*AgentMessage_StateChanged)(nil), (*AgentMessage_QanCollect)(nil), @@ -4493,8 +5564,13 @@ func file_agentpb_agent_proto_init() { (*AgentMessage_StartAction)(nil), (*AgentMessage_StopAction)(nil), (*AgentMessage_CheckConnection)(nil), + (*AgentMessage_StartJob)(nil), + (*AgentMessage_StopJob)(nil), + (*AgentMessage_JobStatus)(nil), + (*AgentMessage_JobResult)(nil), + (*AgentMessage_JobProgress)(nil), } - file_agentpb_agent_proto_msgTypes[22].OneofWrappers = []interface{}{ + file_agentpb_agent_proto_msgTypes[30].OneofWrappers = []interface{}{ (*ServerMessage_Pong)(nil), (*ServerMessage_StateChanged)(nil), (*ServerMessage_QanCollect)(nil), @@ -4504,6 +5580,9 @@ func file_agentpb_agent_proto_init() { (*ServerMessage_StartAction)(nil), (*ServerMessage_StopAction)(nil), (*ServerMessage_CheckConnection)(nil), + (*ServerMessage_StartJob)(nil), + (*ServerMessage_StopJob)(nil), + (*ServerMessage_JobStatus)(nil), } type x struct{} out := protoimpl.TypeBuilder{ @@ -4511,7 +5590,7 @@ func file_agentpb_agent_proto_init() { GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_agentpb_agent_proto_rawDesc, NumEnums: 1, - NumMessages: 49, + NumMessages: 61, NumExtensions: 0, NumServices: 1, }, diff --git a/api/agentpb/agent.proto b/api/agentpb/agent.proto index 8230ddc584..5c4bd79f90 100644 --- a/api/agentpb/agent.proto +++ b/api/agentpb/agent.proto @@ -329,6 +329,75 @@ message CheckConnectionResponse { Stats stats = 2; } +// JobStatusRequest is a ServerMessage asking pmm-agent for job status. +message JobStatusRequest { + string job_id = 1; +} + +// JobStatusResponse is an AgentMessage containing job status. +message JobStatusResponse { + bool alive = 1; +} + +// StartJobRequest is a ServerMessage asking pmm-agent to start job. +message StartJobRequest { + // Echo is a simple echo job that can be delayed. + message Echo { + string message = 1; + google.protobuf.Duration delay = 2; + } + string job_id = 1; + // Timeout for the job. + google.protobuf.Duration timeout = 2; + oneof job { + Echo echo = 10; + } +} + +// StartJobResponse is an AgentMessage for StartJobRequest acceptance. +message StartJobResponse { + string error = 1; +} + +// StopJobRequest is a ServerMessage asking pmm-agent to stop job. +message StopJobRequest { + string job_id = 1; +} + +// StopJobResponse is an AgentMessage for StopJobRequest acceptance. +message StopJobResponse {} + +// JobResult represents job result. +message JobResult { + // Error contains job error message. + message Error { + string message = 1; + } + // Echo contains result for echo job. + message Echo { + string message = 1; + } + string job_id = 1; + google.protobuf.Timestamp timestamp = 2; + oneof result { + Error error = 10; + Echo echo = 11; + } +} + +// JobProgress represents job progress messages like percentage of completion, status updates, etc. +message JobProgress { + // Echo contains echo job status update. + message Echo { + string status = 1; + } + string job_id = 1; + google.protobuf.Timestamp timestamp = 2; + oneof result { + Echo echo = 10; + } +} + message AgentMessage { // TODO https://jira.percona.com/browse/PMM-3449 @@ -345,6 +414,11 @@ message AgentMessage { StartActionResponse start_action = 10; StopActionResponse stop_action = 11; CheckConnectionResponse check_connection = 12; + StartJobResponse start_job = 13; + StopJobResponse stop_job = 14; + JobStatusResponse job_status = 15; + JobResult job_result = 16; + JobProgress job_progress = 17; } } @@ -364,6 +438,9 @@ message ServerMessage { StartActionRequest start_action = 10; StopActionRequest stop_action = 11; CheckConnectionRequest check_connection = 12; + StartJobRequest start_job = 13; + StopJobRequest stop_job = 14; + JobStatusRequest job_status = 15; } } diff --git a/api/agentpb/agent.validator.pb.go b/api/agentpb/agent.validator.pb.go index 7d15a00ea0..06a281602c 100644 --- a/api/agentpb/agent.validator.pb.go +++ b/api/agentpb/agent.validator.pb.go @@ -374,6 +374,90 @@ func (this *CheckConnectionResponse) Validate() error { func (this *CheckConnectionResponse_Stats) Validate() error { return nil } +func (this *JobStatusRequest) Validate() error { + return nil +} +func (this *JobStatusResponse) Validate() error { + return nil +} +func (this *StartJobRequest) Validate() error { + if this.Timeout != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Timeout", err) + } + } + if oneOfNester, ok := this.GetJob().(*StartJobRequest_Echo_); ok { + if oneOfNester.Echo != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Echo); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Echo", err) + } + } + } + return nil +} +func (this *StartJobRequest_Echo) Validate() error { + if this.Delay != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Delay); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Delay", err) + } + } + return nil +} +func (this *StartJobResponse) Validate() error { + return nil +} +func (this *StopJobRequest) Validate() error { + return nil +} +func (this *StopJobResponse) Validate() error { + return nil +} +func (this *JobResult) Validate() error { + if this.Timestamp != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Timestamp", err) + } + } + if oneOfNester, ok := this.GetResult().(*JobResult_Error_); ok { + if oneOfNester.Error != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Error); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Error", err) + } + } + } + if oneOfNester, ok := this.GetResult().(*JobResult_Echo_); ok { + if oneOfNester.Echo != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Echo); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Echo", err) + } + } + } + return nil +} +func (this *JobResult_Error) Validate() error { + return nil +} +func (this *JobResult_Echo) Validate() error { + return nil +} +func (this *JobProgress) Validate() error { + if this.Timestamp != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timestamp); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Timestamp", err) + } + } + if oneOfNester, ok := this.GetResult().(*JobProgress_Echo_); ok { + if oneOfNester.Echo != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Echo); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Echo", err) + } + } + } + return nil +} +func (this *JobProgress_Echo) Validate() error { + return nil +} func (this *AgentMessage) Validate() error { if oneOfNester, ok := this.GetPayload().(*AgentMessage_Ping); ok { if oneOfNester.Ping != nil { @@ -438,6 +522,41 @@ func (this *AgentMessage) Validate() error { } } } + if oneOfNester, ok := this.GetPayload().(*AgentMessage_StartJob); ok { + if oneOfNester.StartJob != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StartJob); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StartJob", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*AgentMessage_StopJob); ok { + if oneOfNester.StopJob != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StopJob); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StopJob", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*AgentMessage_JobStatus); ok { + if oneOfNester.JobStatus != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.JobStatus); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("JobStatus", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*AgentMessage_JobResult); ok { + if oneOfNester.JobResult != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.JobResult); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("JobResult", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*AgentMessage_JobProgress); ok { + if oneOfNester.JobProgress != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.JobProgress); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("JobProgress", err) + } + } + } return nil } func (this *ServerMessage) Validate() error { @@ -504,5 +623,26 @@ func (this *ServerMessage) Validate() error { } } } + if oneOfNester, ok := this.GetPayload().(*ServerMessage_StartJob); ok { + if oneOfNester.StartJob != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StartJob); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StartJob", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*ServerMessage_StopJob); ok { + if oneOfNester.StopJob != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.StopJob); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("StopJob", err) + } + } + } + if oneOfNester, ok := this.GetPayload().(*ServerMessage_JobStatus); ok { + if oneOfNester.JobStatus != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.JobStatus); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("JobStatus", err) + } + } + } return nil } diff --git a/api/managementpb/jobs/jobs.pb.go b/api/managementpb/jobs/jobs.pb.go new file mode 100644 index 0000000000..76abfc27d1 --- /dev/null +++ b/api/managementpb/jobs/jobs.pb.go @@ -0,0 +1,912 @@ +// Code generated by protoc-gen-go. DO NOT EDIT. +// versions: +// protoc-gen-go v1.25.0 +// protoc v3.13.0 +// source: managementpb/jobs/jobs.proto + +package jobs1beta1 + +import ( + context "context" + proto "github.com/golang/protobuf/proto" + duration "github.com/golang/protobuf/ptypes/duration" + _ "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + grpc "google.golang.org/grpc" + codes "google.golang.org/grpc/codes" + status "google.golang.org/grpc/status" + protoreflect "google.golang.org/protobuf/reflect/protoreflect" + protoimpl "google.golang.org/protobuf/runtime/protoimpl" + reflect "reflect" + sync "sync" +) + +const ( + // Verify that this generated code is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) + // Verify that runtime/protoimpl is sufficiently up-to-date. + _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) +) + +// This is a compile-time assertion that a sufficiently up-to-date version +// of the legacy proto package is being used. +const _ = proto.ProtoPackageIsVersion4 + +type GetJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique Job ID. + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *GetJobRequest) Reset() { + *x = GetJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[0] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobRequest) ProtoMessage() {} + +func (x *GetJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[0] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobRequest.ProtoReflect.Descriptor instead. +func (*GetJobRequest) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{0} +} + +func (x *GetJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type GetJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique Job ID. + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + // pmm-agent ID where this Job is running / was run. + PmmAgentId string `protobuf:"bytes,2,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` + // True if Job is finished. + Done bool `protobuf:"varint,4,opt,name=done,proto3" json:"done,omitempty"` + // Types that are assignable to Result: + // *GetJobResponse_Error_ + // *GetJobResponse_Echo_ + Result isGetJobResponse_Result `protobuf_oneof:"result"` +} + +func (x *GetJobResponse) Reset() { + *x = GetJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[1] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobResponse) ProtoMessage() {} + +func (x *GetJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[1] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobResponse.ProtoReflect.Descriptor instead. +func (*GetJobResponse) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{1} +} + +func (x *GetJobResponse) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *GetJobResponse) GetPmmAgentId() string { + if x != nil { + return x.PmmAgentId + } + return "" +} + +func (x *GetJobResponse) GetDone() bool { + if x != nil { + return x.Done + } + return false +} + +func (m *GetJobResponse) GetResult() isGetJobResponse_Result { + if m != nil { + return m.Result + } + return nil +} + +func (x *GetJobResponse) GetError() *GetJobResponse_Error { + if x, ok := x.GetResult().(*GetJobResponse_Error_); ok { + return x.Error + } + return nil +} + +func (x *GetJobResponse) GetEcho() *GetJobResponse_Echo { + if x, ok := x.GetResult().(*GetJobResponse_Echo_); ok { + return x.Echo + } + return nil +} + +type isGetJobResponse_Result interface { + isGetJobResponse_Result() +} + +type GetJobResponse_Error_ struct { + // Error result. + Error *GetJobResponse_Error `protobuf:"bytes,10,opt,name=error,proto3,oneof"` +} + +type GetJobResponse_Echo_ struct { + // Echo job result. + Echo *GetJobResponse_Echo `protobuf:"bytes,11,opt,name=echo,proto3,oneof"` +} + +func (*GetJobResponse_Error_) isGetJobResponse_Result() {} + +func (*GetJobResponse_Echo_) isGetJobResponse_Result() {} + +type StartEchoJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // pmm-agent ID where to run this Job. + PmmAgentId string `protobuf:"bytes,1,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` + Timeout *duration.Duration `protobuf:"bytes,2,opt,name=timeout,proto3" json:"timeout,omitempty"` + Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` + Delay *duration.Duration `protobuf:"bytes,4,opt,name=delay,proto3" json:"delay,omitempty"` +} + +func (x *StartEchoJobRequest) Reset() { + *x = StartEchoJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[2] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartEchoJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartEchoJobRequest) ProtoMessage() {} + +func (x *StartEchoJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[2] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StartEchoJobRequest.ProtoReflect.Descriptor instead. +func (*StartEchoJobRequest) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{2} +} + +func (x *StartEchoJobRequest) GetPmmAgentId() string { + if x != nil { + return x.PmmAgentId + } + return "" +} + +func (x *StartEchoJobRequest) GetTimeout() *duration.Duration { + if x != nil { + return x.Timeout + } + return nil +} + +func (x *StartEchoJobRequest) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +func (x *StartEchoJobRequest) GetDelay() *duration.Duration { + if x != nil { + return x.Delay + } + return nil +} + +type StartEchoJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique Job ID. + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` + // pmm-agent ID where to this Job was started. + PmmAgentId string `protobuf:"bytes,2,opt,name=pmm_agent_id,json=pmmAgentId,proto3" json:"pmm_agent_id,omitempty"` +} + +func (x *StartEchoJobResponse) Reset() { + *x = StartEchoJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[3] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *StartEchoJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*StartEchoJobResponse) ProtoMessage() {} + +func (x *StartEchoJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[3] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use StartEchoJobResponse.ProtoReflect.Descriptor instead. +func (*StartEchoJobResponse) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{3} +} + +func (x *StartEchoJobResponse) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +func (x *StartEchoJobResponse) GetPmmAgentId() string { + if x != nil { + return x.PmmAgentId + } + return "" +} + +type CancelJobRequest struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + // Unique Job ID. Required. + JobId string `protobuf:"bytes,1,opt,name=job_id,json=jobId,proto3" json:"job_id,omitempty"` +} + +func (x *CancelJobRequest) Reset() { + *x = CancelJobRequest{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[4] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelJobRequest) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelJobRequest) ProtoMessage() {} + +func (x *CancelJobRequest) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[4] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CancelJobRequest.ProtoReflect.Descriptor instead. +func (*CancelJobRequest) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{4} +} + +func (x *CancelJobRequest) GetJobId() string { + if x != nil { + return x.JobId + } + return "" +} + +type CancelJobResponse struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields +} + +func (x *CancelJobResponse) Reset() { + *x = CancelJobResponse{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[5] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *CancelJobResponse) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*CancelJobResponse) ProtoMessage() {} + +func (x *CancelJobResponse) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[5] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use CancelJobResponse.ProtoReflect.Descriptor instead. +func (*CancelJobResponse) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{5} +} + +// Error contains job error message. +type GetJobResponse_Error struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *GetJobResponse_Error) Reset() { + *x = GetJobResponse_Error{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[6] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobResponse_Error) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobResponse_Error) ProtoMessage() {} + +func (x *GetJobResponse_Error) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[6] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobResponse_Error.ProtoReflect.Descriptor instead. +func (*GetJobResponse_Error) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{1, 0} +} + +func (x *GetJobResponse_Error) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +// Echo contains result for echo job. +type GetJobResponse_Echo struct { + state protoimpl.MessageState + sizeCache protoimpl.SizeCache + unknownFields protoimpl.UnknownFields + + Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` +} + +func (x *GetJobResponse_Echo) Reset() { + *x = GetJobResponse_Echo{} + if protoimpl.UnsafeEnabled { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[7] + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + ms.StoreMessageInfo(mi) + } +} + +func (x *GetJobResponse_Echo) String() string { + return protoimpl.X.MessageStringOf(x) +} + +func (*GetJobResponse_Echo) ProtoMessage() {} + +func (x *GetJobResponse_Echo) ProtoReflect() protoreflect.Message { + mi := &file_managementpb_jobs_jobs_proto_msgTypes[7] + if protoimpl.UnsafeEnabled && x != nil { + ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) + if ms.LoadMessageInfo() == nil { + ms.StoreMessageInfo(mi) + } + return ms + } + return mi.MessageOf(x) +} + +// Deprecated: Use GetJobResponse_Echo.ProtoReflect.Descriptor instead. +func (*GetJobResponse_Echo) Descriptor() ([]byte, []int) { + return file_managementpb_jobs_jobs_proto_rawDescGZIP(), []int{1, 1} +} + +func (x *GetJobResponse_Echo) GetMessage() string { + if x != nil { + return x.Message + } + return "" +} + +var File_managementpb_jobs_jobs_proto protoreflect.FileDescriptor + +var file_managementpb_jobs_jobs_proto_rawDesc = []byte{ + 0x0a, 0x1c, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6a, + 0x6f, 0x62, 0x73, 0x2f, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, + 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x36, 0x67, 0x69, + 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6d, 0x77, 0x69, 0x74, 0x6b, 0x6f, 0x77, + 0x2f, 0x67, 0x6f, 0x2d, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2d, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, + 0x74, 0x6f, 0x72, 0x73, 0x2f, 0x76, 0x61, 0x6c, 0x69, 0x64, 0x61, 0x74, 0x6f, 0x72, 0x2e, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, + 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 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, 0x2e, 0x0a, 0x0d, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, + 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x05, 0x6a, 0x6f, 0x62, + 0x49, 0x64, 0x22, 0xa1, 0x02, 0x0a, 0x0e, 0x47, 0x65, 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, 0x09, 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, + 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, + 0x28, 0x09, 0x52, 0x0a, 0x70, 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x12, + 0x0a, 0x04, 0x64, 0x6f, 0x6e, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x04, 0x64, 0x6f, + 0x6e, 0x65, 0x12, 0x3a, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x0a, 0x20, 0x01, 0x28, + 0x0b, 0x32, 0x22, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, + 0x45, 0x72, 0x72, 0x6f, 0x72, 0x48, 0x00, 0x52, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x12, 0x37, + 0x0a, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x18, 0x0b, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x6a, + 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x45, 0x63, 0x68, 0x6f, 0x48, + 0x00, 0x52, 0x04, 0x65, 0x63, 0x68, 0x6f, 0x1a, 0x21, 0x0a, 0x05, 0x45, 0x72, 0x72, 0x6f, 0x72, + 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, + 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x1a, 0x20, 0x0a, 0x04, 0x45, 0x63, + 0x68, 0x6f, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20, + 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x42, 0x08, 0x0a, 0x06, + 0x72, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0xbf, 0x01, 0x0a, 0x13, 0x53, 0x74, 0x61, 0x72, 0x74, + 0x45, 0x63, 0x68, 0x6f, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x28, + 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x01, + 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, 0xdf, 0x1f, 0x02, 0x58, 0x01, 0x52, 0x0a, 0x70, 0x6d, + 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x12, 0x33, 0x0a, 0x07, 0x74, 0x69, 0x6d, 0x65, + 0x6f, 0x75, 0x74, 0x18, 0x02, 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, 0x74, 0x69, 0x6d, 0x65, 0x6f, 0x75, 0x74, 0x12, 0x18, 0x0a, + 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, + 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x12, 0x2f, 0x0a, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, + 0x18, 0x04, 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, 0x05, 0x64, 0x65, 0x6c, 0x61, 0x79, 0x22, 0x4f, 0x0a, 0x14, 0x53, 0x74, 0x61, 0x72, + 0x74, 0x45, 0x63, 0x68, 0x6f, 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, 0x09, + 0x52, 0x05, 0x6a, 0x6f, 0x62, 0x49, 0x64, 0x12, 0x20, 0x0a, 0x0c, 0x70, 0x6d, 0x6d, 0x5f, 0x61, + 0x67, 0x65, 0x6e, 0x74, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x70, + 0x6d, 0x6d, 0x41, 0x67, 0x65, 0x6e, 0x74, 0x49, 0x64, 0x22, 0x31, 0x0a, 0x10, 0x43, 0x61, 0x6e, + 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1d, 0x0a, + 0x06, 0x6a, 0x6f, 0x62, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x06, 0xe2, + 0xdf, 0x1f, 0x02, 0x58, 0x01, 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, 0x32, 0xe5, 0x02, 0x0a, 0x04, 0x4a, 0x6f, 0x62, 0x73, 0x12, 0x67, 0x0a, 0x06, 0x47, 0x65, + 0x74, 0x4a, 0x6f, 0x62, 0x12, 0x1b, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, + 0x74, 0x61, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1c, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x47, 0x65, 0x74, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, + 0x22, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1c, 0x22, 0x17, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, + 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x47, 0x65, 0x74, + 0x3a, 0x01, 0x2a, 0x12, 0x7f, 0x0a, 0x0c, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x63, 0x68, 0x6f, + 0x4a, 0x6f, 0x62, 0x12, 0x21, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, + 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x63, 0x68, 0x6f, 0x4a, 0x6f, 0x62, 0x52, + 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, + 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x63, 0x68, 0x6f, 0x4a, + 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x28, 0x82, 0xd3, 0xe4, 0x93, + 0x02, 0x22, 0x22, 0x1d, 0x2f, 0x76, 0x31, 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, + 0x6e, 0x74, 0x2f, 0x4a, 0x6f, 0x62, 0x73, 0x2f, 0x53, 0x74, 0x61, 0x72, 0x74, 0x45, 0x63, 0x68, + 0x6f, 0x3a, 0x01, 0x2a, 0x12, 0x73, 0x0a, 0x09, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, + 0x62, 0x12, 0x1e, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, + 0x74, 0x1a, 0x1f, 0x2e, 0x6a, 0x6f, 0x62, 0x73, 0x2e, 0x76, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, + 0x2e, 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x4a, 0x6f, 0x62, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, + 0x73, 0x65, 0x22, 0x25, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x1f, 0x22, 0x1a, 0x2f, 0x76, 0x31, 0x2f, + 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x2f, 0x4a, 0x6f, 0x62, 0x73, 0x2f, + 0x43, 0x61, 0x6e, 0x63, 0x65, 0x6c, 0x3a, 0x01, 0x2a, 0x42, 0x22, 0x5a, 0x20, 0x61, 0x70, 0x69, + 0x2f, 0x6d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74, 0x70, 0x62, 0x2f, 0x6a, 0x6f, + 0x62, 0x73, 0x3b, 0x6a, 0x6f, 0x62, 0x73, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x62, 0x06, 0x70, + 0x72, 0x6f, 0x74, 0x6f, 0x33, +} + +var ( + file_managementpb_jobs_jobs_proto_rawDescOnce sync.Once + file_managementpb_jobs_jobs_proto_rawDescData = file_managementpb_jobs_jobs_proto_rawDesc +) + +func file_managementpb_jobs_jobs_proto_rawDescGZIP() []byte { + file_managementpb_jobs_jobs_proto_rawDescOnce.Do(func() { + file_managementpb_jobs_jobs_proto_rawDescData = protoimpl.X.CompressGZIP(file_managementpb_jobs_jobs_proto_rawDescData) + }) + return file_managementpb_jobs_jobs_proto_rawDescData +} + +var file_managementpb_jobs_jobs_proto_msgTypes = make([]protoimpl.MessageInfo, 8) +var file_managementpb_jobs_jobs_proto_goTypes = []interface{}{ + (*GetJobRequest)(nil), // 0: jobs.v1beta1.GetJobRequest + (*GetJobResponse)(nil), // 1: jobs.v1beta1.GetJobResponse + (*StartEchoJobRequest)(nil), // 2: jobs.v1beta1.StartEchoJobRequest + (*StartEchoJobResponse)(nil), // 3: jobs.v1beta1.StartEchoJobResponse + (*CancelJobRequest)(nil), // 4: jobs.v1beta1.CancelJobRequest + (*CancelJobResponse)(nil), // 5: jobs.v1beta1.CancelJobResponse + (*GetJobResponse_Error)(nil), // 6: jobs.v1beta1.GetJobResponse.Error + (*GetJobResponse_Echo)(nil), // 7: jobs.v1beta1.GetJobResponse.Echo + (*duration.Duration)(nil), // 8: google.protobuf.Duration +} +var file_managementpb_jobs_jobs_proto_depIdxs = []int32{ + 6, // 0: jobs.v1beta1.GetJobResponse.error:type_name -> jobs.v1beta1.GetJobResponse.Error + 7, // 1: jobs.v1beta1.GetJobResponse.echo:type_name -> jobs.v1beta1.GetJobResponse.Echo + 8, // 2: jobs.v1beta1.StartEchoJobRequest.timeout:type_name -> google.protobuf.Duration + 8, // 3: jobs.v1beta1.StartEchoJobRequest.delay:type_name -> google.protobuf.Duration + 0, // 4: jobs.v1beta1.Jobs.GetJob:input_type -> jobs.v1beta1.GetJobRequest + 2, // 5: jobs.v1beta1.Jobs.StartEchoJob:input_type -> jobs.v1beta1.StartEchoJobRequest + 4, // 6: jobs.v1beta1.Jobs.CancelJob:input_type -> jobs.v1beta1.CancelJobRequest + 1, // 7: jobs.v1beta1.Jobs.GetJob:output_type -> jobs.v1beta1.GetJobResponse + 3, // 8: jobs.v1beta1.Jobs.StartEchoJob:output_type -> jobs.v1beta1.StartEchoJobResponse + 5, // 9: jobs.v1beta1.Jobs.CancelJob:output_type -> jobs.v1beta1.CancelJobResponse + 7, // [7:10] is the sub-list for method output_type + 4, // [4:7] is the sub-list for method input_type + 4, // [4:4] is the sub-list for extension type_name + 4, // [4:4] is the sub-list for extension extendee + 0, // [0:4] is the sub-list for field type_name +} + +func init() { file_managementpb_jobs_jobs_proto_init() } +func file_managementpb_jobs_jobs_proto_init() { + if File_managementpb_jobs_jobs_proto != nil { + return + } + if !protoimpl.UnsafeEnabled { + file_managementpb_jobs_jobs_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartEchoJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*StartEchoJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelJobRequest); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*CancelJobResponse); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobResponse_Error); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + file_managementpb_jobs_jobs_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} { + switch v := v.(*GetJobResponse_Echo); i { + case 0: + return &v.state + case 1: + return &v.sizeCache + case 2: + return &v.unknownFields + default: + return nil + } + } + } + file_managementpb_jobs_jobs_proto_msgTypes[1].OneofWrappers = []interface{}{ + (*GetJobResponse_Error_)(nil), + (*GetJobResponse_Echo_)(nil), + } + type x struct{} + out := protoimpl.TypeBuilder{ + File: protoimpl.DescBuilder{ + GoPackagePath: reflect.TypeOf(x{}).PkgPath(), + RawDescriptor: file_managementpb_jobs_jobs_proto_rawDesc, + NumEnums: 0, + NumMessages: 8, + NumExtensions: 0, + NumServices: 1, + }, + GoTypes: file_managementpb_jobs_jobs_proto_goTypes, + DependencyIndexes: file_managementpb_jobs_jobs_proto_depIdxs, + MessageInfos: file_managementpb_jobs_jobs_proto_msgTypes, + }.Build() + File_managementpb_jobs_jobs_proto = out.File + file_managementpb_jobs_jobs_proto_rawDesc = nil + file_managementpb_jobs_jobs_proto_goTypes = nil + file_managementpb_jobs_jobs_proto_depIdxs = nil +} + +// Reference imports to suppress errors if they are not otherwise used. +var _ context.Context +var _ grpc.ClientConnInterface + +// 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.SupportPackageIsVersion6 + +// JobsClient is the client API for Jobs service. +// +// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. +type JobsClient interface { + // GetJob gets an result of given Job. + GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) + // StartEchoJob starts echo job. + StartEchoJob(ctx context.Context, in *StartEchoJobRequest, opts ...grpc.CallOption) (*StartEchoJobResponse, error) + // CancelJob stops a Job. + CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*CancelJobResponse, error) +} + +type jobsClient struct { + cc grpc.ClientConnInterface +} + +func NewJobsClient(cc grpc.ClientConnInterface) JobsClient { + return &jobsClient{cc} +} + +func (c *jobsClient) GetJob(ctx context.Context, in *GetJobRequest, opts ...grpc.CallOption) (*GetJobResponse, error) { + out := new(GetJobResponse) + err := c.cc.Invoke(ctx, "/jobs.v1beta1.Jobs/GetJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) StartEchoJob(ctx context.Context, in *StartEchoJobRequest, opts ...grpc.CallOption) (*StartEchoJobResponse, error) { + out := new(StartEchoJobResponse) + err := c.cc.Invoke(ctx, "/jobs.v1beta1.Jobs/StartEchoJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +func (c *jobsClient) CancelJob(ctx context.Context, in *CancelJobRequest, opts ...grpc.CallOption) (*CancelJobResponse, error) { + out := new(CancelJobResponse) + err := c.cc.Invoke(ctx, "/jobs.v1beta1.Jobs/CancelJob", in, out, opts...) + if err != nil { + return nil, err + } + return out, nil +} + +// JobsServer is the server API for Jobs service. +type JobsServer interface { + // GetJob gets an result of given Job. + GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) + // StartEchoJob starts echo job. + StartEchoJob(context.Context, *StartEchoJobRequest) (*StartEchoJobResponse, error) + // CancelJob stops a Job. + CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error) +} + +// UnimplementedJobsServer can be embedded to have forward compatible implementations. +type UnimplementedJobsServer struct { +} + +func (*UnimplementedJobsServer) GetJob(context.Context, *GetJobRequest) (*GetJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method GetJob not implemented") +} +func (*UnimplementedJobsServer) StartEchoJob(context.Context, *StartEchoJobRequest) (*StartEchoJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method StartEchoJob not implemented") +} +func (*UnimplementedJobsServer) CancelJob(context.Context, *CancelJobRequest) (*CancelJobResponse, error) { + return nil, status.Errorf(codes.Unimplemented, "method CancelJob not implemented") +} + +func RegisterJobsServer(s *grpc.Server, srv JobsServer) { + s.RegisterService(&_Jobs_serviceDesc, srv) +} + +func _Jobs_GetJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(GetJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).GetJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/jobs.v1beta1.Jobs/GetJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).GetJob(ctx, req.(*GetJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_StartEchoJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(StartEchoJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).StartEchoJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/jobs.v1beta1.Jobs/StartEchoJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).StartEchoJob(ctx, req.(*StartEchoJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +func _Jobs_CancelJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { + in := new(CancelJobRequest) + if err := dec(in); err != nil { + return nil, err + } + if interceptor == nil { + return srv.(JobsServer).CancelJob(ctx, in) + } + info := &grpc.UnaryServerInfo{ + Server: srv, + FullMethod: "/jobs.v1beta1.Jobs/CancelJob", + } + handler := func(ctx context.Context, req interface{}) (interface{}, error) { + return srv.(JobsServer).CancelJob(ctx, req.(*CancelJobRequest)) + } + return interceptor(ctx, in, info, handler) +} + +var _Jobs_serviceDesc = grpc.ServiceDesc{ + ServiceName: "jobs.v1beta1.Jobs", + HandlerType: (*JobsServer)(nil), + Methods: []grpc.MethodDesc{ + { + MethodName: "GetJob", + Handler: _Jobs_GetJob_Handler, + }, + { + MethodName: "StartEchoJob", + Handler: _Jobs_StartEchoJob_Handler, + }, + { + MethodName: "CancelJob", + Handler: _Jobs_CancelJob_Handler, + }, + }, + Streams: []grpc.StreamDesc{}, + Metadata: "managementpb/jobs/jobs.proto", +} diff --git a/api/managementpb/jobs/jobs.pb.gw.go b/api/managementpb/jobs/jobs.pb.gw.go new file mode 100644 index 0000000000..10d20f8f5b --- /dev/null +++ b/api/managementpb/jobs/jobs.pb.gw.go @@ -0,0 +1,331 @@ +// Code generated by protoc-gen-grpc-gateway. DO NOT EDIT. +// source: managementpb/jobs/jobs.proto + +/* +Package jobs1beta1 is a reverse proxy. + +It translates gRPC into RESTful JSON APIs. +*/ +package jobs1beta1 + +import ( + "context" + "io" + "net/http" + + "github.com/golang/protobuf/descriptor" + "github.com/golang/protobuf/proto" + "github.com/grpc-ecosystem/grpc-gateway/runtime" + "github.com/grpc-ecosystem/grpc-gateway/utilities" + "google.golang.org/grpc" + "google.golang.org/grpc/codes" + "google.golang.org/grpc/grpclog" + "google.golang.org/grpc/metadata" + "google.golang.org/grpc/status" +) + +// Suppress "imported and not used" errors +var _ codes.Code +var _ io.Reader +var _ status.Status +var _ = runtime.String +var _ = utilities.NewDoubleArray +var _ = descriptor.ForMessage +var _ = metadata.Join + +func request_Jobs_GetJob_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.GetJob(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Jobs_GetJob_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq GetJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.GetJob(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Jobs_StartEchoJob_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StartEchoJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.StartEchoJob(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Jobs_StartEchoJob_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq StartEchoJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.StartEchoJob(ctx, &protoReq) + return msg, metadata, err + +} + +func request_Jobs_CancelJob_0(ctx context.Context, marshaler runtime.Marshaler, client JobsClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CancelJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := client.CancelJob(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) + return msg, metadata, err + +} + +func local_request_Jobs_CancelJob_0(ctx context.Context, marshaler runtime.Marshaler, server JobsServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { + var protoReq CancelJobRequest + var metadata runtime.ServerMetadata + + newReader, berr := utilities.IOReaderFactory(req.Body) + if berr != nil { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", berr) + } + if err := marshaler.NewDecoder(newReader()).Decode(&protoReq); err != nil && err != io.EOF { + return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err) + } + + msg, err := server.CancelJob(ctx, &protoReq) + return msg, metadata, err + +} + +// RegisterJobsHandlerServer registers the http handlers for service Jobs to "mux". +// UnaryRPC :call JobsServer directly. +// StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. +// Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterJobsHandlerFromEndpoint instead. +func RegisterJobsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server JobsServer) error { + + mux.Handle("POST", pattern_Jobs_GetJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Jobs_GetJob_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_GetJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Jobs_StartEchoJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Jobs_StartEchoJob_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_StartEchoJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Jobs_CancelJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + var stream runtime.ServerTransportStream + ctx = grpc.NewContextWithServerTransportStream(ctx, &stream) + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateIncomingContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := local_request_Jobs_CancelJob_0(rctx, inboundMarshaler, server, req, pathParams) + md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer()) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_CancelJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +// RegisterJobsHandlerFromEndpoint is same as RegisterJobsHandler but +// automatically dials to "endpoint" and closes the connection when "ctx" gets done. +func RegisterJobsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error) { + conn, err := grpc.Dial(endpoint, opts...) + if err != nil { + return err + } + defer func() { + if err != nil { + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + return + } + go func() { + <-ctx.Done() + if cerr := conn.Close(); cerr != nil { + grpclog.Infof("Failed to close conn to %s: %v", endpoint, cerr) + } + }() + }() + + return RegisterJobsHandler(ctx, mux, conn) +} + +// RegisterJobsHandler registers the http handlers for service Jobs to "mux". +// The handlers forward requests to the grpc endpoint over "conn". +func RegisterJobsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error { + return RegisterJobsHandlerClient(ctx, mux, NewJobsClient(conn)) +} + +// RegisterJobsHandlerClient registers the http handlers for service Jobs +// to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "JobsClient". +// Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "JobsClient" +// doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in +// "JobsClient" to call the correct interceptors. +func RegisterJobsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client JobsClient) error { + + mux.Handle("POST", pattern_Jobs_GetJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Jobs_GetJob_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_GetJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Jobs_StartEchoJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Jobs_StartEchoJob_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_StartEchoJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + mux.Handle("POST", pattern_Jobs_CancelJob_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { + ctx, cancel := context.WithCancel(req.Context()) + defer cancel() + inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req) + rctx, err := runtime.AnnotateContext(ctx, mux, req) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + resp, md, err := request_Jobs_CancelJob_0(rctx, inboundMarshaler, client, req, pathParams) + ctx = runtime.NewServerMetadataContext(ctx, md) + if err != nil { + runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) + return + } + + forward_Jobs_CancelJob_0(ctx, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) + + }) + + return nil +} + +var ( + pattern_Jobs_GetJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Jobs", "Get"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Jobs_StartEchoJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Jobs", "StartEcho"}, "", runtime.AssumeColonVerbOpt(true))) + + pattern_Jobs_CancelJob_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"v1", "management", "Jobs", "Cancel"}, "", runtime.AssumeColonVerbOpt(true))) +) + +var ( + forward_Jobs_GetJob_0 = runtime.ForwardResponseMessage + + forward_Jobs_StartEchoJob_0 = runtime.ForwardResponseMessage + + forward_Jobs_CancelJob_0 = runtime.ForwardResponseMessage +) diff --git a/api/managementpb/jobs/jobs.proto b/api/managementpb/jobs/jobs.proto new file mode 100644 index 0000000000..60b708fc40 --- /dev/null +++ b/api/managementpb/jobs/jobs.proto @@ -0,0 +1,96 @@ +syntax = "proto3"; + +package jobs.v1beta1; + +option go_package = "api/managementpb/jobs;jobs1beta1"; + +import "github.com/mwitkow/go-proto-validators/validator.proto"; +import "google/api/annotations.proto"; +import "google/protobuf/duration.proto"; + +message GetJobRequest { + // Unique Job ID. + string job_id = 1 [ + (validator.field) = { + string_not_empty: true + } + ]; +} + +message GetJobResponse { + // Error contains job error message. + message Error { + string message = 1; + } + // Echo contains result for echo job. + message Echo { + string message = 1; + } + // Unique Job ID. + string job_id = 1; + // pmm-agent ID where this Job is running / was run. + string pmm_agent_id = 2; + // True if Job is finished. + bool done = 4; + oneof result { + // Error result. + Error error = 10; + // Echo job result. + Echo echo = 11; + } +} + +message StartEchoJobRequest { + // pmm-agent ID where to run this Job. + string pmm_agent_id = 1 [ + (validator.field) = { + string_not_empty: true + } + ]; + google.protobuf.Duration timeout = 2; + string message = 3; + google.protobuf.Duration delay = 4; +} + +message StartEchoJobResponse { + // Unique Job ID. + string job_id = 1; + // pmm-agent ID where to this Job was started. + string pmm_agent_id = 2; +} + +message CancelJobRequest { + // Unique Job ID. Required. + string job_id = 1 [ + (validator.field) = { + string_not_empty: true + } + ]; +} + +message CancelJobResponse {} + +// Jobs service provides public Management API methods for Jobs. +service Jobs { + // GetJob gets an result of given Job. + rpc GetJob(GetJobRequest) returns (GetJobResponse) { + option (google.api.http) = { + post: "/v1/management/Jobs/Get" + body: "*" + }; + } + // StartEchoJob starts echo job. + rpc StartEchoJob(StartEchoJobRequest) returns (StartEchoJobResponse) { + option (google.api.http) = { + post: "/v1/management/Jobs/StartEcho" + body: "*" + }; + } + // CancelJob stops a Job. + rpc CancelJob(CancelJobRequest) returns (CancelJobResponse) { + option (google.api.http) = { + post: "/v1/management/Jobs/Cancel" + body: "*" + }; + } +} diff --git a/api/managementpb/jobs/jobs.validator.pb.go b/api/managementpb/jobs/jobs.validator.pb.go new file mode 100644 index 0000000000..0fa1dc5466 --- /dev/null +++ b/api/managementpb/jobs/jobs.validator.pb.go @@ -0,0 +1,77 @@ +// Code generated by protoc-gen-gogo. DO NOT EDIT. +// source: managementpb/jobs/jobs.proto + +package jobs1beta1 + +import ( + fmt "fmt" + proto "github.com/golang/protobuf/proto" + _ "github.com/golang/protobuf/ptypes/duration" + _ "github.com/mwitkow/go-proto-validators" + github_com_mwitkow_go_proto_validators "github.com/mwitkow/go-proto-validators" + _ "google.golang.org/genproto/googleapis/api/annotations" + math "math" +) + +// Reference imports to suppress errors if they are not otherwise used. +var _ = proto.Marshal +var _ = fmt.Errorf +var _ = math.Inf + +func (this *GetJobRequest) Validate() error { + if this.JobId == "" { + return github_com_mwitkow_go_proto_validators.FieldError("JobId", fmt.Errorf(`value '%v' must not be an empty string`, this.JobId)) + } + return nil +} +func (this *GetJobResponse) Validate() error { + if oneOfNester, ok := this.GetResult().(*GetJobResponse_Error_); ok { + if oneOfNester.Error != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Error); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Error", err) + } + } + } + if oneOfNester, ok := this.GetResult().(*GetJobResponse_Echo_); ok { + if oneOfNester.Echo != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(oneOfNester.Echo); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Echo", err) + } + } + } + return nil +} +func (this *GetJobResponse_Error) Validate() error { + return nil +} +func (this *GetJobResponse_Echo) Validate() error { + return nil +} +func (this *StartEchoJobRequest) Validate() error { + if this.PmmAgentId == "" { + return github_com_mwitkow_go_proto_validators.FieldError("PmmAgentId", fmt.Errorf(`value '%v' must not be an empty string`, this.PmmAgentId)) + } + if this.Timeout != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Timeout); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Timeout", err) + } + } + if this.Delay != nil { + if err := github_com_mwitkow_go_proto_validators.CallValidatorIfExists(this.Delay); err != nil { + return github_com_mwitkow_go_proto_validators.FieldError("Delay", err) + } + } + return nil +} +func (this *StartEchoJobResponse) Validate() error { + return nil +} +func (this *CancelJobRequest) Validate() error { + if this.JobId == "" { + return github_com_mwitkow_go_proto_validators.FieldError("JobId", fmt.Errorf(`value '%v' must not be an empty string`, this.JobId)) + } + return nil +} +func (this *CancelJobResponse) Validate() error { + return nil +}